SimPersistSet

Engine/source/console/simPersistSet.h

A SimSet that can be safely persisted.

More...

Public Types

Parent 

Protected Attributes

bool

If true, the set is currently resolving persistent IDs.

List of unresolved persistent IDs.

Public Functions

addObject(SimObject * object)

Add the given object to the set.

DECLARE_CATEGORY("Console" )
DECLARE_DESCRIPTION("A <a href="/coding/class/classsimset/">SimSet</a> that can be safely persisted." )
bool

Process constructor options. (ie, new SimObject(1,2,3))

Try to resolve all persistent IDs that as of yet are still unresolved.

write(Stream & stream, U32 tabStop, U32 flags)

Output the TorqueScript to recreate this object.

Detailed Description

A SimSet that can be safely persisted.

Uses SimPersistIDs to reference objects in the set while persisted on disk. This allows the set to resolve its references no matter whether they are loaded before or after the set is created.

Public Types

typedef SimSet Parent 

Protected Attributes

bool mIsResolvingPIDs 

If true, the set is currently resolving persistent IDs.

Vector< SimPersistID * > mUnresolvedPIDs 

List of unresolved persistent IDs.

Public Functions

SimPersistSet()

addObject(SimObject * object)

Reimplemented from: SimSet

Reimplemented by: WorldEditorSelection

DECLARE_CATEGORY("Console" )

DECLARE_CONOBJECT(SimPersistSet )

DECLARE_DESCRIPTION("A <a href="/coding/class/classsimset/">SimSet</a> that can be safely persisted." )

processArguments(S32 argc, ConsoleValueRef * argv)

Reimplemented from: SimObject

resolvePIDs()

Try to resolve all persistent IDs that as of yet are still unresolved.

write(Stream & stream, U32 tabStop, U32 flags)

Reimplemented from: SimSet