mirror of
https://github.com/simtactics/mysimulation.git
synced 2025-03-26 03:09:10 +00:00
26 lines
613 B
C#
26 lines
613 B
C#
|
using FSO.Common.Serialization;
|
|||
|
using Mina.Core.Buffer;
|
|||
|
|
|||
|
namespace FSO.Server.Protocol.Aries.Packets
|
|||
|
{
|
|||
|
public class AnswerChallenge : IAriesPacket
|
|||
|
{
|
|||
|
public string Answer;
|
|||
|
|
|||
|
public void Deserialize(IoBuffer input, ISerializationContext context)
|
|||
|
{
|
|||
|
Answer = input.GetPascalVLCString();
|
|||
|
}
|
|||
|
|
|||
|
public AriesPacketType GetPacketType()
|
|||
|
{
|
|||
|
return AriesPacketType.AnswerChallenge;
|
|||
|
}
|
|||
|
|
|||
|
public void Serialize(IoBuffer output, ISerializationContext context)
|
|||
|
{
|
|||
|
output.PutPascalVLCString(Answer);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|