using Server.Data.Entities; using Server.Data.Enums; namespace Server.Game.Dungeon; /// /// Runtime instance of a mob in a dungeon /// public class MobInstance { public int Id { get; set; } public int DefinitionId { get; set; } public string Name { get; set; } = ""; public float X { get; set; } public float Y { get; set; } public float Rotation { get; set; } public float SpawnX { get; set; } public float SpawnY { get; set; } public int Health { get; set; } public int MaxHealth { get; set; } public bool IsAlive { get; set; } = true; public DungeonMobCombatStats Stats { get; set; } = new(); public MobState State { get; set; } = MobState.Idle; public MobType Type { get; set; } public ulong? TargetId { get; set; } public long LastAttackTick { get; set; } // Visual public string SpriteSheet { get; set; } = ""; public int SpriteWidth { get; set; } = 32; public int SpriteHeight { get; set; } = 32; public string TintColor { get; set; } = "#ffffff"; } public enum MobState { Idle, Chasing, Attacking, Returning, Fleeing, Dead }