IGameContext

Interface for a channel to call in order to create/destroy objects, and when changing context, to properly configure that context. More...

#include

Public Member Functions

virtual bool InitGlobalEstablishmentTasks (IContextEstablisher *pEst, int establishedToken)=0
Initializes global tasks that we need to perform to establish the game context.
virtual bool InitChannelEstablishmentTasks (IContextEstablisher *pEst, INetChannel *pChannel, int establishedToken)=0
Initializes tasks that we need to perform on a channel to establish the game context.
virtual INetSendableHookPtr CreateObjectSpawner (EntityId id, INetChannel *pChannel)=0
virtual void ObjectInitClient (EntityId id, INetChannel *pChannel)=0
virtual bool SendPostSpawnObject (EntityId id, INetChannel *pChannel)=0
virtual void ControlObject (EntityId id, bool bHaveControl)=0
We have control of an objects delegatable aspects (or not).
virtual ESynchObjectResult SynchObject (EntityId id, NetworkAspectType nAspect, uint8 nCurrentProfile, TSerialize ser, bool verboseLogging)=0
virtual void UnboundObject (EntityId id)=0
An entity has been unbound (we may wish to destroy it).
virtual INetAtSyncItem * HandleRMI (bool bClient, EntityId objID, uint8 funcID, TSerialize ser, INetChannel *pChannel)=0
Handles a remote method invocation.
virtual void PassDemoPlaybackMappedOriginalServerPlayer (EntityId id)=0
Passes current demo playback mapped entity ID of the original demo recording server (local) player.
virtual CTimeValue GetPhysicsTime ()=0
virtual void BeginUpdateObjects (CTimeValue physTime, INetChannel *pChannel)=0
virtual void EndUpdateObjects ()=0
virtual void OnEndNetworkFrame ()=0
virtual void OnStartNetworkFrame ()=0
virtual void PlaybackBreakage (int breakId, INetBreakagePlaybackPtr pBreakage)=0
virtual void * ReceiveSimpleBreakage (TSerialize ser)
virtual void PlaybackSimpleBreakage (void *userData, INetBreakageSimplePlaybackPtr pBreakage)
virtual string GetConnectionString (CryFixedStringT< HOST_MIGRATION_MAX_PLAYER_NAME_SIZE > *pNameOverride, bool fake) const =0
virtual void CompleteUnbind (EntityId id)=0
virtual void GetMemoryStatistics (ICrySizer *pSizer)

Detailed Description

Interface for a channel to call in order to create/destroy objects, and when changing context, to properly configure that context.

Member Function Documentation

◆ SynchObject()

virtual ESynchObjectResult IGameContext::SynchObject ( EntityId id,
NetworkAspectType nAspect,
uint8 nCurrentProfile,
TSerialize ser,
bool verboseLogging
)
pure virtual

Synchronizes a single aspect of an entity.

Note
nAspect will have exactly one bit set describing which aspect to synch.