mine2d/Mine2d/game/state/Player.cs

18 lines
480 B
C#

namespace Mine2d.game.state;
public class Player
{
public string Name { get; set; }
public Vector2 Position { get; set; }
public Guid Id { get; set; }
public Vector2 Mining { get; set; }
public int MiningCooldown { get; set; }
public PlayerInventory Inventory { get; set; } = new();
public PlayerMovementState PlayerMovementState { get; set; } = new();
public Vector2 GetCenter()
{
return this.Position + new Vector2(7, -14);
}
}