namespace GameServer.Dungeon; public class TickResult { public List DamageEvents { get; set; } = new(); public List DeathEvents { get; set; } = new(); public List AbilityEvents { get; set; } = new(); public List ProjectileHitEvents { get; set; } = new(); public List ProjectileExpiredEvents { get; set; } = new(); public DungeonPhase Phase { get; set; } } public class DamageEvent { public EntityType SourceType { get; set; } public int SourceId { get; set; } public EntityType TargetType { get; set; } public int TargetId { get; set; } public int Damage { get; set; } /// /// Damage type key (e.g., "physical", "fire", "poison") /// public string DamageTypeKey { get; set; } = "physical"; /// /// True if damage was reduced by resistance /// public bool WasResisted { get; set; } /// /// True if damage was increased by weakness /// public bool WasWeakness { get; set; } /// /// True if target was immune (0 damage) /// public bool WasImmune { get; set; } } public class DeathEvent { public EntityType EntityType { get; set; } public int EntityId { get; set; } public string EntityName { get; set; } = ""; public EntityType KillerType { get; set; } public int KillerId { get; set; } public string KillerName { get; set; } = ""; public int XpReward { get; set; } } public enum EntityType { Player, Mob, Chest } public class ProjectileHitEvent { public int ProjectileId { get; set; } public EntityType TargetType { get; set; } public int TargetId { get; set; } public float X { get; set; } public float Y { get; set; } } public class ProjectileExpiredEvent { public int ProjectileId { get; set; } public float X { get; set; } public float Y { get; set; } public string Reason { get; set; } = "range"; // "range", "wall", or "hit" }