/// <summary> /// Initializes a new instance of the <see cref="GuildCache"/> class. /// </summary> /// <param name="gameServer">The game server.</param> /// <param name="serializer">The serializer.</param> public GuildCache(IGameServerContext gameServer, IGuildInfoSerializer serializer) { this.gameServer = gameServer; this.guildInfoSerializer = serializer; this.cache = new ConcurrentDictionary <Guid, GuildInfo>(); this.shortIdToGuid = new ConcurrentDictionary <ushort, Guid>(); }
/// <summary> /// Initializes a new instance of the <see cref="GuildCache"/> class. /// </summary> /// <param name="gameServer">The game server.</param> /// <param name="serializer">The serializer.</param> public GuildCache(IGameServerContext gameServer, IGuildInfoSerializer serializer) { this.gameServer = gameServer; this.guildInfoSerializer = serializer; this.cache = new ConcurrentDictionary <uint, byte[]>(); }