LootData
This commit is contained in:
parent
89978f0fc3
commit
9e00e4d05d
2 changed files with 5 additions and 3 deletions
|
@ -6,12 +6,13 @@ using System.Threading.Tasks;
|
|||
|
||||
namespace ZoFo.GameCore.GameObjects.Entities.LivingEntities.Player
|
||||
{
|
||||
internal class LootData
|
||||
class LootData
|
||||
{
|
||||
public Dictionary<string, int> loots;
|
||||
public void AddLoot(object lootObject, int quantity)
|
||||
{
|
||||
|
||||
public void AddLoot(string lootName, int quantity)
|
||||
{
|
||||
loots.Add(lootName, quantity);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,6 +20,7 @@ public class Player : LivingEntity
|
|||
public bool IsTryingToShoot { get; set; }
|
||||
private float speed;
|
||||
private int health;
|
||||
private LootData lootData;
|
||||
public override GraphicsComponent graphicsComponent { get; } = new GraphicsComponent(new List<string> { "player_running_top_rotate" }, "player_running_top_rotate");
|
||||
public Player(Vector2 position) : base(position)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue