using ODMO.Commons.Entities; using ODMO.Commons.Models.Config; using ODMO.Commons.Models.Config.Events; using ODMO.Commons.Models.Map.Dungeons; using ODMO.Commons.Models.TamerShop; namespace ODMO.Commons.Models.Map { public sealed partial class GameMap : MapConfigModel { // Dynamic public byte Channel { get; set; } public DateTime WithoutTamers { get; private set; } public DateTime NextDatabaseOperation { get; private set; } public bool Initialized { get; private set; } public bool Operating { get; private set; } public bool UpdateMobs { get; private set; } public List MobsToAdd { get; private set; } public List MobsToRemove { get; private set; } public List EventMobsToAdd { get; private set; } public List EventMobsToRemove { get; private set; } public List Clients { get; private set; } public List Drops { get; private set; } public List ConsignedShops { get; private set; } public Dictionary> TamersView { get; private set; } public Dictionary> MobsView { get; private set; } public Dictionary> DropsView { get; private set; } public Dictionary> ConsignedShopView { get; private set; } public Dictionary TamerHandlers { get; private set; } public Dictionary DigimonHandlers { get; private set; } public Dictionary MobHandlers { get; private set; } public Dictionary DropHandlers { get; private set; } public List ColiseumMobs = new(); public object DropsLock { get; private set; } public object ClientsLock { get; private set; } public object DigimonHandlersLock { get; private set; } public object TamerHandlersLock { get; private set; } public bool IsRoyalBase { get; private set; } public RoyalBaseMap? RoyalBaseMap { get; private set; } public GameMap(short mapId, List mobs, List drops) : base(mapId, mobs) { Drops = drops; DropsLock = new object(); ClientsLock = new object(); DigimonHandlersLock = new object(); TamerHandlersLock = new object(); IsRoyalBase = false; } public GameMap(int mapId, List mobs, List drops) : base(mapId, mobs) { Drops = drops; DropsLock = new object(); ClientsLock = new object(); DigimonHandlersLock = new object(); TamerHandlersLock = new object(); IsRoyalBase = false; } public GameMap() { DropsLock = new object(); ClientsLock = new object(); DigimonHandlersLock = new object(); TamerHandlersLock = new object(); Channel = 0; Drops = new List(); Clients = new List(); ConsignedShops = new List(); WithoutTamers = DateTime.MaxValue; NextDatabaseOperation = DateTime.Now.AddSeconds(30); IsRoyalBase = false; } } }