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