uint32_t FT_Node_Plugin::Send(FT_Session session,FT_DataBase* data, PacketPriority priority, PacketReliability reliability, char orderingChannel, const AddressOrGUID systemIdentifier){ RakNet::MessageID messageID = ID_SERVER_LOGIN; RakNet::FT_MessageTypesNode nodeID = data->NodeType(); BitStream bsOut; bsOut.Serialize(true, messageID); bsOut.Serialize(true, nodeID); session.Serialize(true, &bsOut); data->Serialize(true, &bsOut); if (_rakPeerInterface) { return _rakPeerInterface->Send(&bsOut, priority, reliability, orderingChannel, systemIdentifier, false); } return 0; }
void NetChat::OnSerialize(const NetMessage& msg, BitStream& stream) { int testInt2 = testInt; stream.Serialize(testInt2); testInt = testInt2; if (stream.isReading()) LSL_TRACE(lsl::StrFmt("NetChat.testInt=%d", testInt)); }