/// <inheritdoc/> public override void WriteTo(NetDataWriter message) { try { base.WriteTo(message); message.Put(NetworkID); message.Put(MethodID); for (int i = 0; i < ParametersNum; i++) { NetData.Write(RPCInfo.ParameterTypes[i], Parameters[i], message); } } catch (Exception e) { throw new MalformedPacketException("Failed to write packet.", e); } }