private static bool OnReceiveTieMessage(ByteArray byteArray, IPokemonBattleClientService clientService) { string identity = byteArray.ReadUTF(); TieMessage message = TieMessageHelper.ReadFromByteArray(byteArray); clientService.OnReceiveTieMessage(identity, message); return(true); }
private static bool OnReceiveTieMessage(int sessionID, ByteArray byteArray, IPokemonBattleServerService serverService) { string identity = byteArray.ReadUTF(); TieMessage message = TieMessageHelper.ReadFromByteArray(byteArray); serverService.OnReceiveTieMessage(sessionID, identity, message); return(true); }
public static ByteArray ReceiveTieMessage(string identity, TieMessage message) { ByteArray byteArray = new ByteArray(); byteArray.WriteInt(0x823c9f1); byteArray.WriteUTF(identity); TieMessageHelper.WriteToByteArray(byteArray, message); return(byteArray); }