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); }
public readonly void WriteTo(ENetPacketWriter writer) { writer.WriteByte(Command); writer.WriteByte(ChannelID); writer.WriteNetEndian(ReliableSequenceNumber); }