static Kernel() { Clients = new Selector <uint, string, Entities.GameClient>(); Maps = new Selector <ushort, string, ProjectX_V3_Game.Maps.Map>(); DynamicMaps = new Selector <uint, string, ProjectX_V3_Game.Maps.DynamicMap>(); NPCs = new ConcurrentDictionary <uint, Entities.NPC>(); ItemInfos = new Selector <uint, string, ProjectX_V3_Game.Data.ItemInfo>(); SortedItemInfos = new Selector <uint, string, ConcurrentDictionary <byte, ProjectX_V3_Game.Data.ItemInfo> >(); Shops = new ConcurrentDictionary <uint, ProjectX_V3_Game.Data.Shop>(); SpellInfos = new MultiConcurrentDictionary <ushort, byte, ProjectX_V3_Game.Data.Spell>(); WeaponSpells = new ConcurrentDictionary <ushort, ushort>(); ItemAdditions = new MultiConcurrentDictionary <uint, byte, ProjectX_V3_Game.Data.ItemAddition>(); DropData = new ConcurrentDictionary <int, ProjectX_V3_Game.Data.DropData>(); Monsters = new ConcurrentDictionary <int, ProjectX_V3_Game.Entities.Monster>(); Guilds = new Selector <uint, string, ProjectX_V3_Game.Data.Guild>(); ArcherStats = new ConcurrentDictionary <byte, ushort[]>(); NinjaStats = new ConcurrentDictionary <byte, ushort[]>(); MonkStats = new ConcurrentDictionary <byte, ushort[]>(); WarriorStats = new ConcurrentDictionary <byte, ushort[]>(); TrojanStats = new ConcurrentDictionary <byte, ushort[]>(); TaoistStats = new ConcurrentDictionary <byte, ushort[]>(); UnixEpoch = new DateTime(1970, 1, 1); Portals = new ConcurrentDictionary <PortalPoint, PortalPoint>(); }
static Kernel() { Clients = new Selector<uint, string, Entities.GameClient>(); Maps = new Selector<ushort, string, ProjectX_V3_Game.Maps.Map>(); DynamicMaps = new Selector<uint, string, ProjectX_V3_Game.Maps.DynamicMap>(); NPCs = new ConcurrentDictionary<uint, Entities.NPC>(); ItemInfos = new Selector<uint, string, ProjectX_V3_Game.Data.ItemInfo>(); SortedItemInfos = new Selector<uint, string, ConcurrentDictionary<byte, ProjectX_V3_Game.Data.ItemInfo>>(); Shops = new ConcurrentDictionary<uint, ProjectX_V3_Game.Data.Shop>(); SpellInfos = new MultiConcurrentDictionary<ushort, byte, ProjectX_V3_Game.Data.Spell>(); WeaponSpells = new ConcurrentDictionary<ushort, ushort>(); ItemAdditions = new MultiConcurrentDictionary<uint, byte, ProjectX_V3_Game.Data.ItemAddition>(); DropData = new ConcurrentDictionary<int, ProjectX_V3_Game.Data.DropData>(); Monsters = new ConcurrentDictionary<int, ProjectX_V3_Game.Entities.Monster>(); Guilds = new Selector<uint, string, ProjectX_V3_Game.Data.Guild>(); ArcherStats = new ConcurrentDictionary<byte, ushort[]>(); NinjaStats = new ConcurrentDictionary<byte, ushort[]>(); MonkStats = new ConcurrentDictionary<byte, ushort[]>(); WarriorStats = new ConcurrentDictionary<byte, ushort[]>(); TrojanStats = new ConcurrentDictionary<byte, ushort[]>(); TaoistStats = new ConcurrentDictionary<byte, ushort[]>(); UnixEpoch = new DateTime(1970, 1, 1); Portals = new ConcurrentDictionary<PortalPoint, PortalPoint>(); }
/// <summary> /// Static constructor for SpellInfoCollection. /// </summary> static SpellInfoCollection() { _spells = new MultiConcurrentDictionary <ushort, byte, CandyConquer.WorldApi.Models.Spells.SpellInfo>(); _weaponSpells = new ConcurrentDictionary <ushort, ushort>(); }
/// <summary> /// Static constructor for ItemCollection. /// </summary> static ItemCollection() { _items = new ConcurrentDictionary <uint, CandyConquer.WorldApi.Models.Items.Item>(); _itemAdditions = new MultiConcurrentDictionary <uint, byte, CandyConquer.WorldApi.Models.Items.ItemAddition>(); }