public static void GameFightTurnStartMessageTreatment(Message message, byte[] packetDatas, AccountUC account) { GameFightTurnStartMessage msg = (GameFightTurnStartMessage)message; using (BigEndianReader reader = new BigEndianReader(packetDatas)) { msg.Deserialize(reader); } }
public static void GameFightTurnStartMessageTreatment(Message message, byte[] packetDatas, AccountUC account) { GameFightTurnStartMessage msg = (GameFightTurnStartMessage)message; using (BigEndianReader reader = new BigEndianReader(packetDatas)) { msg.Deserialize(reader); } if (!account.Fight.IsFightStarted) { account.Fight.IsFightStarted = true; } if (msg.id == account.CharacterBaseInformations.id) { account.Fight.IsFighterTurn = true; } else { account.Fight.IsFighterTurn = false; } }