This commit is contained in:
watrabi
2025-09-18 17:55:52 -04:00
commit 977f1ff4b8
15030 changed files with 17324420 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
#pragma once
#include "Replicator.h"
#include "BitStream.h"
#include <boost/noncopyable.hpp>
#include <boost/shared_ptr.hpp>
namespace RBX {
namespace Network {
class ConcurrentRakPeer;
class Item;
class Replicator::ItemSender : boost::noncopyable
{
Replicator& replicator;
ConcurrentRakPeer* rakPeer;
shared_ptr<RakNet::BitStream> bitStream;
PacketPriority packetPriority;
void openPacket();
void closePacket();
const unsigned int maxStreamSize;
public:
bool sentItems;
ItemSender(Replicator& replicator, ConcurrentRakPeer *rakPeer);
~ItemSender();
typedef enum {SEND_BITSTREAM_FULL = 0, SEND_OK} SendStatus;
SendStatus send(Item& item);
int getNumberOfBytesUsed() const;
};
}
}