Bonsoir, c'est encore moi.
J'ai un problème avec mon AuthentificationTicketMessage. Je reçois bien "HelloConnectMessage", après m'être connecté au serveur de jeu.
J'envoi donc AuthentificationTicketMessage, avec dedans un string lang et un string ticket, mais après je ne recois pas AuthentificationTicketAcceptedMessage.
Ma classe AuthentificationTicketMessage :
Cliquez pour révéler
Cliquez pour masquer
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Prototypebot.Classes
{
public class AuthentificationTicketMessage
{
public string lang = "";
public string ticket = "";
public void initAuthenticationTicketMessage(string lang = "", string ticket = "")
{
this.lang = lang;
this.ticket = ticket;
}// end function
public void serialize(Writer param1)
{
this.serializeAs_AuthenticationTicketMessage(param1);
}// end function
public void serializeAs_AuthenticationTicketMessage(Writer param1)
{
param1.WriteString(this.lang);
param1.WriteString(this.ticket);
}// end function
public void pack(Writer param1)
{
param1.Pack(110);
}// end function
}
}
Mon switch 101:
case 101:
AuthentificationTicketMessage ATM = new AuthentificationTicketMessage();
ATM.initAuthenticationTicketMessage("fr",ticket);
ATM.serialize(writer);
ATM.Pack();
break;