mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-06 05:37:48 +00:00
GEEKING
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
#include "./Marker.h"
|
||||
#include "rbx/atomic.h"
|
||||
|
||||
namespace RBX {
|
||||
namespace Network {
|
||||
|
||||
const char* const sMarker = "NetworkMarker";
|
||||
|
||||
Reflection::EventDesc<Marker, void()> event_Returned(&Marker::receivedSignal, "Received");
|
||||
|
||||
static rbx::atomic<int> ctr;
|
||||
|
||||
Marker::Marker()
|
||||
:returned(false)
|
||||
,id(++ctr)
|
||||
{
|
||||
// Markers should never be put under another object
|
||||
this->lockParent();
|
||||
}
|
||||
|
||||
void Marker::fireReturned()
|
||||
{
|
||||
// TODO: Memoize the result and handle new connections using a Future system
|
||||
receivedSignal();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user