Допил интерфейса, здоровья, денег
This commit is contained in:
1 parent
b214bb0f63
commit
bea109175b
29 files changed
+675
-789
No files matched your search
@@ -4,15 +4,16 @@ using Reflex.Attributes;
|
||||
|
||||
namespace Code.Gameplay.Player
|
||||
{
|
||||
public class PlayerFactory
|
||||
public class PlayerFactory : IPlayerFactory
|
||||
{
|
||||
[Inject] PlayerConfig _playerConfig;
|
||||
|
||||
public PlayerHealthPoints CreatePlayerHP(int count = -1)
|
||||
public PlayerHealth CreatePlayerHealth(int count = -1)
|
||||
{
|
||||
if (count < 0) count = _playerConfig.maxHealth;
|
||||
|
||||
return new PlayerHealthPoints(count);
|
||||
return new(count);
|
||||
}
|
||||
public PlayerMoney CreatePlayerMoney(int count = 0) => new(count);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user