| 123456789101112131415161718192021222324252627282930 |
- using Base;
- namespace Model
- {
- public enum UnitType
- {
- Hero,
- Npc,
- }
- public sealed class Unit: Entity
- {
- public UnitType UnitType { get; }
-
- public override void Dispose()
- {
- if (this.Id == 0)
- {
- return;
- }
- base.Dispose();
- }
-
- public Unit(UnitType unitType) : base(EntityType.UI)
- {
- this.UnitType = unitType;
- }
- }
- }
|