Допил интерфейса, здоровья, денег

This commit is contained in:
ThomasCharester committed 2025-10-30 21:13:42 +03:00
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);
}
}