public void Consume(GameClient client, GameMessage message) { if (message is AssignActiveSkillMessage) OnAssignActiveSkill(client, (AssignActiveSkillMessage)message); else if (message is AssignPassiveSkillMessage) OnAssignPassiveSkill(client, (AssignPassiveSkillMessage)message); else if (message is PlayerChangeHotbarButtonMessage) OnPlayerChangeHotbarButtonMessage(client, (PlayerChangeHotbarButtonMessage)message); else return; UpdateClient(client); client.FlushOutgoingBuffer(); }
public void Route(GameClient client, GameMessage message) { switch(message.Consumer) { case Consumers.Universe: this.Consume(client, message); break; case Consumers.GameManager: this.GameManager.Consume(client, message); break; } }
public void Route(GameClient client, GameMessage message) { switch(message.Consumer) { case Consumers.Universe: this.Consume(client, message); break; case Consumers.PlayerManager: this.PlayerManager.Consume(client, message); break; case Consumers.Skillset: client.Player.Hero.Skillset.Consume(client, message); break; } }
public void Consume(GameClient client, GameMessage message) { if (message is TargetMessage) OnToonTargetChange(client, (TargetMessage)message); }
public void SendMessage(GameMessage msg) { //Logger.LogOutgoing(msg); _outgoingBuffer.EncodeMessage(msg); }
public void SendMessageNow(GameMessage msg) { SendMessage(msg); FlushOutgoingBuffer(); }
public void EncodeMessage(GameMessage msg) { WriteInt(9, msg.Id); msg.Encode(this); }
public void Consume(GameClient client, GameMessage message) { if (message is JoinBNetGameMessage) OnNewPlayer(client, (JoinBNetGameMessage)message); }