|
delegate void | Handler (BitStream stream, NetworkId objectInstance, NetworkId blockedNetId, uint eventId, EndpointId sender) |
|
delegate bool | IsBlockedHandler (NetworkId objectInstance, NetworkId blockedNetId) |
|
| MyEventsBuffer (int eventCapacity=32) |
|
void | Dispose () |
|
void | EnqueueEvent (BitStream stream, NetworkId targetObjectId, NetworkId blockingObjectId, uint eventId, EndpointId sender) |
| Enqueues event that have to be done on target object. More...
|
|
void | EnqueueBarrier (NetworkId targetObjectId, NetworkId blockingObjectId) |
| Enqueues barrier for an entity that is targeting network object with blocking event. WARNING: Have to be in pair with blocking event! More...
|
|
void | RemoveEvents (NetworkId objectInstance) |
| Removes all events from target id. More...
|
|
bool | ContainsEvents (NetworkId netId) |
|
bool | ProcessEvents (NetworkId targetObjectId, Handler eventHandler, IsBlockedHandler isBlockedHandler, NetworkId caller) |
| Tries to process events for prarticular object id (network id). More...
|
|
string | GetEventsBufferStat () |
| Gets events buffer statistics. More...
|
|
Definition at line 12 of file MyEventBuffer.cs.
VRage.Replication.MyEventsBuffer.MyEventsBuffer |
( |
int |
eventCapacity = 32 | ) |
|
|
inline |
bool VRage.Replication.MyEventsBuffer.ContainsEvents |
( |
NetworkId |
netId | ) |
|
|
inline |
void VRage.Replication.MyEventsBuffer.Dispose |
( |
| ) |
|
|
inline |
void VRage.Replication.MyEventsBuffer.EnqueueBarrier |
( |
NetworkId |
targetObjectId, |
|
|
NetworkId |
blockingObjectId |
|
) |
| |
|
inline |
Enqueues barrier for an entity that is targeting network object with blocking event. WARNING: Have to be in pair with blocking event!
- Parameters
-
targetObjectId | Network object id that will get barrier event. |
blockingObjectId | Network object that have blocking event. |
Definition at line 157 of file MyEventBuffer.cs.
Enqueues event that have to be done on target object.
- Parameters
-
stream | Stream with event data. |
targetObjectId | Object id that is a target of the event. |
blockingObjectId | Object id that is blocking target to be processed. 'NetworkId.Invalid' if none. |
eventId | Event id. |
sender | Endpoint. |
Definition at line 125 of file MyEventBuffer.cs.
string VRage.Replication.MyEventsBuffer.GetEventsBufferStat |
( |
| ) |
|
|
inline |
Gets events buffer statistics.
- Returns
- Formatted events buffer statistics.
Definition at line 404 of file MyEventBuffer.cs.
delegate bool VRage.Replication.MyEventsBuffer.IsBlockedHandler |
( |
NetworkId |
objectInstance, |
|
|
NetworkId |
blockedNetId |
|
) |
| |
Tries to process events for prarticular object id (network id).
- Parameters
-
targetObjectId | Target object network id. |
eventHandler | Handler for processing events. |
isBlockedHandler | Handler for checking if processing of events should be canceled. |
caller | Parent Network id from which this is called. Set NetworkId.Invalid if no parent. |
- Returns
- True if all sucessfull.
Definition at line 240 of file MyEventBuffer.cs.
void VRage.Replication.MyEventsBuffer.RemoveEvents |
( |
NetworkId |
objectInstance | ) |
|
|
inline |
Removes all events from target id.
- Parameters
-
objectInstance | Target object network id. |
Definition at line 180 of file MyEventBuffer.cs.
The documentation for this class was generated from the following file: