| 1234567891011121314151617181920212223242526272829303132333435 |
- using System.Numerics;
- namespace Model
- {
- public enum UnitType
- {
- Hero,
- Npc
- }
-
- public sealed class Unit: Entity
- {
- public UnitType UnitType { get; }
- public Gamer Gamer;
- public Vector3 Position;
- public override void Dispose()
- {
- if (this.Id == 0)
- {
- return;
- }
- base.Dispose();
- }
- public Unit(Gamer gamer, UnitType unitType)
- {
- this.Gamer = gamer;
- this.UnitType = unitType;
- }
- }
- }
|