protected void SerializeForClient(NetDataWriter writer, FunctionReceivers receivers, long connectionId) { writer.Put((byte)receivers); if (receivers == FunctionReceivers.Target) { writer.PutPackedULong((ulong)connectionId); } SerializeForSend(writer); }
public void Serialize(NetDataWriter writer) { writer.PutPackedULong(value); }