mirror of
https://github.com/openlegends/asset-php.git
synced 2025-02-08 13:04:22 +00:00
update namespace
This commit is contained in:
parent
a3850d3a45
commit
fb10e3e869
@ -1,8 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
namespace OpenLegends\Asset\Test\Ability;
|
|
||||||
|
|
||||||
class Drain extends \OpenLegends\Engine\Abstract\Ability
|
|
||||||
{}
|
|
@ -1,8 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
namespace OpenLegends\Asset\Test\Ability;
|
|
||||||
|
|
||||||
class Guard extends \OpenLegends\Engine\Abstract\Ability
|
|
||||||
{}
|
|
@ -1,8 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
namespace OpenLegends\Asset\Test\Ability;
|
|
||||||
|
|
||||||
class Lethal extends \OpenLegends\Engine\Abstract\Ability
|
|
||||||
{}
|
|
@ -1,17 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
namespace OpenLegends\Asset\Test\Ability;
|
|
||||||
|
|
||||||
class Multiple extends \OpenLegends\Engine\Abstract\Ability
|
|
||||||
{
|
|
||||||
private array $_abilities = [];
|
|
||||||
|
|
||||||
public function add(
|
|
||||||
\OpenLegends\Engine\Abstract\Ability $ability
|
|
||||||
): void
|
|
||||||
{
|
|
||||||
$this->_abilities[] = $ability;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,8 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
namespace OpenLegends\Asset\Test\Attribute;
|
|
||||||
|
|
||||||
class Goblin extends \OpenLegends\Engine\Abstract\Attribute
|
|
||||||
{}
|
|
@ -1,8 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
namespace OpenLegends\Asset\Test\Attribute;
|
|
||||||
|
|
||||||
class Multiple extends \OpenLegends\Engine\Abstract\Attribute
|
|
||||||
{}
|
|
@ -1,8 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
namespace OpenLegends\Asset\Test\Attribute;
|
|
||||||
|
|
||||||
class Neutral extends \OpenLegends\Engine\Abstract\Attribute
|
|
||||||
{}
|
|
8
src/Test/Card/Ability/Drain.php
Normal file
8
src/Test/Card/Ability/Drain.php
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace OpenLegends\Asset\Test\Card\Ability;
|
||||||
|
|
||||||
|
class Drain extends \OpenLegends\Engine\Abstract\Card\Ability
|
||||||
|
{}
|
8
src/Test/Card/Ability/Guard.php
Normal file
8
src/Test/Card/Ability/Guard.php
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace OpenLegends\Asset\Test\Card\Ability;
|
||||||
|
|
||||||
|
class Guard extends \OpenLegends\Engine\Abstract\Card\Ability
|
||||||
|
{}
|
8
src/Test/Card/Ability/Lethal.php
Normal file
8
src/Test/Card/Ability/Lethal.php
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace OpenLegends\Asset\Test\Card\Ability;
|
||||||
|
|
||||||
|
class Lethal extends \OpenLegends\Engine\Abstract\Card\Ability
|
||||||
|
{}
|
17
src/Test/Card/Ability/Multiple.php
Normal file
17
src/Test/Card/Ability/Multiple.php
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace OpenLegends\Asset\Test\Card\Ability;
|
||||||
|
|
||||||
|
class Multiple extends \OpenLegends\Engine\Abstract\Card\Ability
|
||||||
|
{
|
||||||
|
private array $_abilities = [];
|
||||||
|
|
||||||
|
public function add(
|
||||||
|
\OpenLegends\Engine\Abstract\Card\Ability $ability
|
||||||
|
): void
|
||||||
|
{
|
||||||
|
$this->_abilities[] = $ability;
|
||||||
|
}
|
||||||
|
}
|
8
src/Test/Card/Attribute/Goblin.php
Normal file
8
src/Test/Card/Attribute/Goblin.php
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace OpenLegends\Asset\Test\Card\Attribute;
|
||||||
|
|
||||||
|
class Goblin extends \OpenLegends\Engine\Abstract\Card\Attribute
|
||||||
|
{}
|
8
src/Test/Card/Attribute/Multiple.php
Normal file
8
src/Test/Card/Attribute/Multiple.php
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace OpenLegends\Asset\Test\Card\Attribute;
|
||||||
|
|
||||||
|
class Multiple extends \OpenLegends\Engine\Abstract\Card\Attribute
|
||||||
|
{}
|
8
src/Test/Card/Attribute/Neutral.php
Normal file
8
src/Test/Card/Attribute/Neutral.php
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace OpenLegends\Asset\Test\Card\Attribute;
|
||||||
|
|
||||||
|
class Neutral extends \OpenLegends\Engine\Abstract\Card\Attribute
|
||||||
|
{}
|
@ -8,14 +8,14 @@ class Goblin extends \OpenLegends\Engine\Abstract\Card
|
|||||||
{
|
{
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$ability = new \OpenLegends\Asset\Test\Ability\Multiple();
|
$ability = new \OpenLegends\Asset\Test\Card\Ability\Multiple();
|
||||||
|
|
||||||
$ability->add(
|
$ability->add(
|
||||||
new \OpenLegends\Asset\Test\Ability\Lethal()
|
new \OpenLegends\Asset\Test\Card\Ability\Lethal()
|
||||||
);
|
);
|
||||||
|
|
||||||
$ability->add(
|
$ability->add(
|
||||||
new \OpenLegends\Asset\Test\Ability\Guard()
|
new \OpenLegends\Asset\Test\Card\Ability\Guard()
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->setAbility(
|
$this->setAbility(
|
||||||
@ -23,15 +23,15 @@ class Goblin extends \OpenLegends\Engine\Abstract\Card
|
|||||||
);
|
);
|
||||||
|
|
||||||
$this->setAttribute(
|
$this->setAttribute(
|
||||||
new \OpenLegends\Asset\Test\Attribute\Neutral()
|
new \OpenLegends\Asset\Test\Card\Attribute\Neutral()
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->setType(
|
$this->setType(
|
||||||
new \OpenLegends\Asset\Test\Type\Goblin()
|
new \OpenLegends\Asset\Test\Card\Type\Goblin()
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->setRarity(
|
$this->setRarity(
|
||||||
new \OpenLegends\Asset\Test\Rarity\Common()
|
new \OpenLegends\Asset\Test\Card\Rarity\Common()
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->setTitle(
|
$this->setTitle(
|
||||||
|
@ -9,15 +9,15 @@ class Mouse extends \OpenLegends\Engine\Abstract\Card
|
|||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->setAttribute(
|
$this->setAttribute(
|
||||||
new \OpenLegends\Asset\Test\Attribute\Neutral()
|
new \OpenLegends\Asset\Test\Card\Attribute\Neutral()
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->setType(
|
$this->setType(
|
||||||
new \OpenLegends\Asset\Test\Type\Animal()
|
new \OpenLegends\Asset\Test\Card\Type\Animal()
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->setRarity(
|
$this->setRarity(
|
||||||
new \OpenLegends\Asset\Test\Rarity\Common()
|
new \OpenLegends\Asset\Test\Card\Rarity\Common()
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->setTitle(
|
$this->setTitle(
|
||||||
|
8
src/Test/Card/Rarity/Common.php
Normal file
8
src/Test/Card/Rarity/Common.php
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace OpenLegends\Asset\Test\Card\Rarity;
|
||||||
|
|
||||||
|
class Common extends \OpenLegends\Engine\Abstract\Card\Rarity
|
||||||
|
{}
|
8
src/Test/Card/Rarity/Rare.php
Normal file
8
src/Test/Card/Rarity/Rare.php
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace OpenLegends\Asset\Test\Card\Rarity;
|
||||||
|
|
||||||
|
class Rare extends \OpenLegends\Engine\Abstract\Card\Rarity
|
||||||
|
{}
|
@ -9,15 +9,15 @@ class Rat extends \OpenLegends\Engine\Abstract\Card
|
|||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->setAttribute(
|
$this->setAttribute(
|
||||||
new \OpenLegends\Asset\Test\Attribute\Neutral()
|
new \OpenLegends\Asset\Test\Card\Attribute\Neutral()
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->setType(
|
$this->setType(
|
||||||
new \OpenLegends\Asset\Test\Type\Animal()
|
new \OpenLegends\Asset\Test\Card\Type\Animal()
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->setRarity(
|
$this->setRarity(
|
||||||
new \OpenLegends\Asset\Test\Rarity\Common()
|
new \OpenLegends\Asset\Test\Card\Rarity\Common()
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->setTitle(
|
$this->setTitle(
|
||||||
|
8
src/Test/Card/Type/Animal.php
Normal file
8
src/Test/Card/Type/Animal.php
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace OpenLegends\Asset\Test\Card\Type;
|
||||||
|
|
||||||
|
class Animal extends \OpenLegends\Engine\Abstract\Card\Type
|
||||||
|
{}
|
8
src/Test/Card/Type/Goblin.php
Normal file
8
src/Test/Card/Type/Goblin.php
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace OpenLegends\Asset\Test\Card\Type;
|
||||||
|
|
||||||
|
class Goblin extends \OpenLegends\Engine\Abstract\Card\Type
|
||||||
|
{}
|
@ -4,5 +4,5 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
namespace OpenLegends\Asset\Test\Game;
|
namespace OpenLegends\Asset\Test\Game;
|
||||||
|
|
||||||
class Pool extends \OpenLegends\Engine\Abstract\Pool
|
class Pool extends \OpenLegends\Engine\Abstract\Card\Pool
|
||||||
{}
|
{}
|
@ -1,8 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
namespace OpenLegends\Asset\Test\Rarity;
|
|
||||||
|
|
||||||
class Common extends \OpenLegends\Engine\Abstract\Rarity
|
|
||||||
{}
|
|
@ -1,8 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
namespace OpenLegends\Asset\Test\Rarity;
|
|
||||||
|
|
||||||
class Rare extends \OpenLegends\Engine\Abstract\Rarity
|
|
||||||
{}
|
|
@ -1,8 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
namespace OpenLegends\Asset\Test\Type;
|
|
||||||
|
|
||||||
class Animal extends \OpenLegends\Engine\Abstract\Type
|
|
||||||
{}
|
|
@ -1,8 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
declare(strict_types=1);
|
|
||||||
|
|
||||||
namespace OpenLegends\Asset\Test\Type;
|
|
||||||
|
|
||||||
class Goblin extends \OpenLegends\Engine\Abstract\Type
|
|
||||||
{}
|
|
Loading…
x
Reference in New Issue
Block a user