예제 #1
0
 public readonly void WriteTo(ENetPacketWriter writer)
 {
     Header.WriteTo(writer);
     writer.WriteNetEndian(OutgoingPeerID);
     writer.WriteByte(IncomingSessionID);
     writer.WriteByte(OutgoingSessionID);
     writer.WriteNetEndian(MTU);
     writer.WriteNetEndian(WindowSize);
     writer.WriteNetEndian(ChannelCount);
     writer.WriteNetEndian(IncomingBandwidth);
     writer.WriteNetEndian(OutgoingBandwidth);
     writer.WriteNetEndian(PacketThrottleInterval);
     writer.WriteNetEndian(PacketThrottleAcceleration);
     writer.WriteNetEndian(PacketThrottleDeceleration);
     writer.WriteNetEndian(ConnectID);
 }
예제 #2
0
 public readonly void WriteTo(ENetPacketWriter writer)
 {
     writer.WriteByte(Command);
     writer.WriteByte(ChannelID);
     writer.WriteNetEndian(ReliableSequenceNumber);
 }