mine2d/Mine2d/game/state/Player.cs

17 lines
388 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 Vector2 GetCenter()
{
return this.Position + new Vector2(7, -14);
}
}