GhostInfo

Engine/source/sim/netConnection.h

Information about a ghosted object.

More...

References

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

List of references in NetConnections to us.

Next ghosted object.

Previous ghosted object.

Connection that we're ghosting over.

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

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.

Public Attributes

The object being ghosted.

A float value indicating the priority of this object for updates.

Flags indicating what state data needs to be transferred.

How many updates have we skipped this guy?

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.

References

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

NetConnection::GhostRef * updateChain 

List of references in NetConnections to us.

GhostInfo * nextObjectRef 

Next ghosted object.

GhostInfo * prevObjectRef 

Previous ghosted object.

NetConnection * connection 

Connection that we're ghosting over.

GhostInfo * nextLookupInfo 

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

Public Types

Flags

Enumerator

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.

Public Attributes

U32 arrayIndex 
U32 flags 

Flags from GhostInfo::Flags.

U32 index 
NetObject * obj 

The object being ghosted.

F32 priority 

A float value indicating the priority of this object for updates.

U32 updateMask 

Flags indicating what state data needs to be transferred.

U32 updateSkipCount 

How many updates have we skipped this guy?