Torque2D Reference
Loading...
Searching...
No Matches
Public Types | Public Attributes | List of all members
GhostInfo Struct Reference

#include <netConnection.h>

Public Types

enum  Flags {
  Valid = BIT(0) , InScope = BIT(1) , ScopeAlways = BIT(2) , NotYetGhosted = BIT(3) ,
  Ghosting = BIT(4) , KillGhost = BIT(5) , KillingGhost = BIT(6) , ScopedEvent = BIT(7) ,
  ScopeLocalAlways = BIT(8)
}
 Flags relating to the state of the object. More...
 

Public Attributes

NetObjectobj
 The object being ghosted.
 
U32 updateMask
 Flags indicating what state data needs to be transferred.
 
U32 updateSkipCount
 How many updates have we skipped this guy?
 
U32 flags
 Flags from GhostInfo::Flags.
 
F32 priority
 
U32 index
 implementation.
 
U32 arrayIndex
 
References

updates.

The GhostInfo structure is used in several linked lists; these members are the implementation for this.

NetConnection::GhostRefupdateChain
 List of references in NetConnections to us.
 
GhostInfonextObjectRef
 Next ghosted object.
 
GhostInfoprevObjectRef
 Previous ghosted object.
 
NetConnectionconnection
 Connection that we're ghosting over.
 
GhostInfonextLookupInfo
 

Detailed Description

Information about a ghosted object.

Note
If the size of this structure changes, the NetConnection::getGhostIndex function MUST be changed to reflect the new size.

Member Enumeration Documentation

◆ Flags

enum Flags

Flags relating to the state of the object.

Enumerator
Valid 
InScope 
ScopeAlways 
NotYetGhosted 
Ghosting 
KillGhost 
KillingGhost 
ScopedEvent 
ScopeLocalAlways 

Member Data Documentation

◆ arrayIndex

U32 arrayIndex

◆ connection

NetConnection* connection

Connection that we're ghosting over.

◆ flags

U32 flags

Flags from GhostInfo::Flags.

◆ index

U32 index

implementation.

◆ nextLookupInfo

GhostInfo* nextLookupInfo

GhostInfo references are stored in a hash; this is the bucket

◆ nextObjectRef

GhostInfo* nextObjectRef

Next ghosted object.

◆ obj

NetObject* obj

The object being ghosted.

◆ prevObjectRef

GhostInfo* prevObjectRef

Previous ghosted object.

◆ priority

F32 priority

A float value indicating the priority of this object for

◆ updateChain

List of references in NetConnections to us.

◆ updateMask

U32 updateMask

Flags indicating what state data needs to be transferred.

◆ updateSkipCount

U32 updateSkipCount

How many updates have we skipped this guy?


The documentation for this struct was generated from the following file: