Class LoginReplyServerPacket
Login reply
[Generated]
public class LoginReplyServerPacket : IPacket, ISerializable
- Inheritance
-
LoginReplyServerPacket
- Implements
- Inherited Members
Constructors
LoginReplyServerPacket()
public LoginReplyServerPacket()
Properties
Action
Gets the packet action associated with this packet
public PacketAction Action { get; }
Property Value
ByteSize
Gets the size of the data that this object was deserialized from, or 0 for an object that was not deserialized.
public int ByteSize { get; }
Property Value
Family
Gets the packet family associated with this packet
public PacketFamily Family { get; }
Property Value
ReplyCode
public LoginReply ReplyCode { get; set; }
Property Value
ReplyCodeData
public LoginReplyServerPacket.IReplyCodeData ReplyCodeData { get; set; }
Property Value
Methods
Deserialize(EoReader)
Deserialize the EO binary data representation of this object from an EoReader.
public void Deserialize(EoReader reader)
Parameters
readerEoReaderThe reader from which this object should be read.
Equals(object)
public override bool Equals(object other)
Parameters
otherobject
Returns
ForBanned()
Creates a new LoginReplyServerPacket with ReplyCode set to Banned and ReplyCodeData set to a new LoginReplyServerPacket.ReplyCodeDataBanned.
public static LoginReplyServerPacket ForBanned()
Returns
ForBusy()
Creates a new LoginReplyServerPacket with ReplyCode set to Busy and ReplyCodeData set to a new LoginReplyServerPacket.ReplyCodeDataBusy.
public static LoginReplyServerPacket ForBusy()
Returns
ForLoggedIn()
Creates a new LoginReplyServerPacket with ReplyCode set to LoggedIn and ReplyCodeData set to a new LoginReplyServerPacket.ReplyCodeDataLoggedIn.
public static LoginReplyServerPacket ForLoggedIn()
Returns
ForOk(ReplyCodeDataOk)
Creates a new LoginReplyServerPacket with ReplyCode set to Ok and ReplyCodeData set to data.
public static LoginReplyServerPacket ForOk(LoginReplyServerPacket.ReplyCodeDataOk data)
Parameters
dataLoginReplyServerPacket.ReplyCodeDataOkThe data for the case.
Returns
Exceptions
- ArgumentNullException
Thrown when
datais null.
ForWrongUser()
Creates a new LoginReplyServerPacket with ReplyCode set to WrongUser and ReplyCodeData set to a new LoginReplyServerPacket.ReplyCodeDataWrongUser.
public static LoginReplyServerPacket ForWrongUser()
Returns
ForWrongUserPassword()
Creates a new LoginReplyServerPacket with ReplyCode set to WrongUserPassword and ReplyCodeData set to a new LoginReplyServerPacket.ReplyCodeDataWrongUserPassword.
public static LoginReplyServerPacket ForWrongUserPassword()
Returns
GetHashCode()
public override int GetHashCode()
Returns
Serialize(EoWriter)
Serialize this object to an EoWriter in the EO binary data representation.
public void Serialize(EoWriter writer)
Parameters
writerEoWriterThe writer to which this object should be written.
ToString()
public override string ToString()