Beamable SDK
|
This type defines the SimNetworkInterface for the Multiplayer feature. More...
Public Member Functions | |
List< SimFrame > | Tick (long curFrame, long maxFrame, long expectedMaxFrame) |
Synchronize the network interface and receive any fully realized frames by the network More... | |
void | SendEvent (SimEvent evt) |
Push (or queue) an event onto the network More... | |
This type defines the SimNetworkInterface for the Multiplayer feature.
This guarantees that a given frame will only be sent to peers a maximum of 1 time and that a given frame will be surfaced to the SimClient a maximum of 1 time
void Beamable.Experimental.Api.Sim.SimNetworkInterface.SendEvent | ( | SimEvent | evt | ) |
Push (or queue) an event onto the network
evt | A SimEvent |
Implemented in Beamable.Experimental.Api.Sim.SimNetworkEventStream, and Beamable.Experimental.Api.Sim.SimNetworkLocal.
List< SimFrame > Beamable.Experimental.Api.Sim.SimNetworkInterface.Tick | ( | long | curFrame, |
long | maxFrame, | ||
long | expectedMaxFrame | ||
) |
Synchronize the network interface and receive any fully realized frames by the network
curFrame | |
maxFrame | |
expectedMaxFrame |
Implemented in Beamable.Experimental.Api.Sim.SimNetworkEventStream, and Beamable.Experimental.Api.Sim.SimNetworkLocal.