public WcHandlersAuth( ClusterServiceLocator clusterServiceLocator, IConfigurationProvider <ClusterConfiguration> configurationProvider) { _clusterServiceLocator = clusterServiceLocator; this.configurationProvider = configurationProvider; }
public WorldCluster( ClusterServiceLocator clusterServiceLocator, IConfigurationProvider <ClusterConfiguration> configurationProvider) { _clusterServiceLocator = clusterServiceLocator; this.configurationProvider = configurationProvider; }
public ClusterTcpClientFactory( ClusterServiceLocator clusterServiceLocator, ILogger logger, IConfigurationProvider <ClusterConfiguration> configurationProvider) { _clusterServiceLocator = clusterServiceLocator; this.logger = logger; this.configurationProvider = configurationProvider; }
public ClientClass(Client client, Socket socket, ClusterServiceLocator clusterServiceLocator, IConfigurationProvider <ClusterConfiguration> configurationProvider) { _clusterServiceLocator = clusterServiceLocator; _socket = socket; this.configurationProvider = configurationProvider; Client = client; }
/* TODO ERROR: Skipped EndRegionDirectiveTrivia */ public ChatChannelClass(string name, ClusterServiceLocator clusterServiceLocator) { Id = clusterServiceLocator.WsHandlerChannels.GetNexyChatChannelId(); ChannelIndex = 0; ChannelName = name; ChannelFlags = (byte)CHANNEL_FLAG.CHANNEL_FLAG_NONE; clusterServiceLocator.WsHandlerChannels.ChatChanneLs.Add(ChannelName, this); var sZone = name.Substring(name.IndexOf(" - ", StringComparison.Ordinal) + 3); foreach (var chatChannel in clusterServiceLocator.WsDbcDatabase.ChatChannelsInfo) { if ((chatChannel.Value.Name.Replace("%s", sZone).ToUpper() ?? "") == (name.ToUpper() ?? "")) { ChannelIndex = chatChannel.Key; break; } } if (clusterServiceLocator.WsDbcDatabase.ChatChannelsInfo.ContainsKey(ChannelIndex)) { // Default channel ChannelFlags = (byte)(ChannelFlags | (byte)CHANNEL_FLAG.CHANNEL_FLAG_GENERAL); Announce = false; Moderate = false; { var withBlock = clusterServiceLocator.WsDbcDatabase.ChatChannelsInfo[ChannelIndex]; if (((ChatChannelsFlags)withBlock.Flags & ChatChannelsFlags.FLAG_TRADE) == ChatChannelsFlags.FLAG_TRADE) { ChannelFlags = (byte)(ChannelFlags | (byte)CHANNEL_FLAG.CHANNEL_FLAG_TRADE); } if (((ChatChannelsFlags)withBlock.Flags & ChatChannelsFlags.FLAG_CITY_ONLY2) == ChatChannelsFlags.FLAG_CITY_ONLY2) { ChannelFlags = (byte)(ChannelFlags | (byte)CHANNEL_FLAG.CHANNEL_FLAG_CITY); } if (((ChatChannelsFlags)withBlock.Flags & ChatChannelsFlags.FLAG_LFG) == ChatChannelsFlags.FLAG_LFG) { ChannelFlags = (byte)(ChannelFlags | (byte)CHANNEL_FLAG.CHANNEL_FLAG_LFG); } else { ChannelFlags = (byte)((CHANNEL_FLAG)ChannelFlags | CHANNEL_FLAG.CHANNEL_FLAG_NOT_LFG); } } } else { // Custom channel ChannelFlags = (byte)((CHANNEL_FLAG)ChannelFlags | CHANNEL_FLAG.CHANNEL_FLAG_CUSTOM); } _clusterServiceLocator = clusterServiceLocator; }
public Battlefield(BattlefieldMapType rMapType, byte rLevel, uint rMap, ClusterServiceLocator clusterServiceLocator) { _clusterServiceLocator = clusterServiceLocator; Id = Interlocked.Increment(ref _clusterServiceLocator.WcHandlersBattleground._battlefielDsCounter); LevelMin = 0; LevelMax = 60; MapType = rMapType; _map = rMap; _maxPlayersPerTeam = _clusterServiceLocator.WsDbcDatabase.Battlegrounds[(byte)rMapType].MaxPlayersPerTeam; _minPlayersPerTeam = _clusterServiceLocator.WsDbcDatabase.Battlegrounds[(byte)rMapType].MinPlayersPerTeam; _clusterServiceLocator.WcHandlersBattleground.BattlefielDsLock.AcquireWriterLock(_clusterServiceLocator.GlobalConstants.DEFAULT_LOCK_TIMEOUT); _clusterServiceLocator.WcHandlersBattleground.BattlefielDs.Add(Id, this); _clusterServiceLocator.WcHandlersBattleground.BattlefielDsLock.ReleaseWriterLock(); _bfTimer = new Timer(Update, null, 20000, 20000); }
public CharacterObject(ulong g, ClientClass objCharacter, ClusterServiceLocator clusterServiceLocator) { _clusterServiceLocator = clusterServiceLocator; ChatFlag = ChatFlag.FLAGS_NONE; Guid = g; Client = objCharacter; ReLoad(); Access = Client.Access; CharacterObject argobjCharacter = this; _clusterServiceLocator.WcHandlersSocial.LoadIgnoreList(argobjCharacter); _clusterServiceLocator.WorldCluster.CharacteRsLock.AcquireWriterLock(_clusterServiceLocator.GlobalConstants.DEFAULT_LOCK_TIMEOUT); _clusterServiceLocator.WorldCluster.CharacteRs.Add(Guid, this); _clusterServiceLocator.WorldCluster.CharacteRsLock.ReleaseWriterLock(); }
public Group(WcHandlerCharacter.CharacterObject objCharacter, ClusterServiceLocator clusterServiceLocator) { _clusterServiceLocator = clusterServiceLocator; Members = new WcHandlerCharacter.CharacterObject[_clusterServiceLocator.GlobalConstants.GROUP_SIZE + 1]; Id = Interlocked.Increment(ref _clusterServiceLocator.WcHandlersGroup._groupCounter); _clusterServiceLocator.WcHandlersGroup.GrouPs.Add(Id, this); Members[0] = objCharacter; Members[1] = null; Members[2] = null; Members[3] = null; Members[4] = null; Leader = 0; _lootMaster = 255; objCharacter.Group = this; objCharacter.GroupAssistant = false; objCharacter.GetWorld.ClientSetGroup(objCharacter.Client.Index, Id); }
public WcNetwork(ClusterServiceLocator clusterServiceLocator) { _clusterServiceLocator = clusterServiceLocator; }
public WcHandlersTickets(ClusterServiceLocator clusterServiceLocator) { _clusterServiceLocator = clusterServiceLocator; }
public WcHandlersMovement(ClusterServiceLocator clusterServiceLocator) { _clusterServiceLocator = clusterServiceLocator; }
public WsDbcLoad(ClusterServiceLocator clusterServiceLocator) { _clusterServiceLocator = clusterServiceLocator; }
public WcHandlerCharacter(ClusterServiceLocator clusterServiceLocator) => _clusterServiceLocator = clusterServiceLocator;
public Functions(ClusterServiceLocator clusterServiceLocator) { _clusterServiceLocator = clusterServiceLocator; }
public WcHandlersGroup(ClusterServiceLocator clusterServiceLocator) { _clusterServiceLocator = clusterServiceLocator; }
public Guild(ClusterServiceLocator clusterServiceLocator) => _clusterServiceLocator = clusterServiceLocator;
public WcHandlersBattleground(ClusterServiceLocator clusterServiceLocator) { _clusterServiceLocator = clusterServiceLocator; }
public WcGuild(ClusterServiceLocator clusterServiceLocator) { _clusterServiceLocator = clusterServiceLocator; }
public WcHandlersSocial(ClusterServiceLocator clusterServiceLocator) { _clusterServiceLocator = clusterServiceLocator; }
public WcHandlersChat(ClusterServiceLocator clusterServiceLocator) { _clusterServiceLocator = clusterServiceLocator; }
public WsDbcDatabase(DataStoreProvider dataStoreProvider, ClusterServiceLocator clusterServiceLocator) { _dataStoreProvider = dataStoreProvider; _clusterServiceLocator = clusterServiceLocator; }
public WcHandlersMisc(ClusterServiceLocator clusterServiceLocator) => _clusterServiceLocator = clusterServiceLocator;
public WcHandlersGuild(ClusterServiceLocator clusterServiceLocator) => _clusterServiceLocator = clusterServiceLocator;
public Packets(ClusterServiceLocator clusterServiceLocator) { _clusterServiceLocator = clusterServiceLocator; }