Attention

This page is incomplete and needs better descriptions and research into the behavior of the variables.

World

The rfg world structure. Contains the global list of all objects in the game and info about each of the world zones. You can use rfg.ActiveWorld or World to access the current world.

Variables

MissionObjectCreationMode (bool)
Unknown value.
LevelAmbient (Vector)
The ambient light color of the environment.
LevelBackAmbient (Vector)
A secondary ambient light color of the environment.
LastLoadedTerritory (char[64])
Unknown value.
MaxWorldObjects (int)
The maximum number of objects the game world can support.
AllObjects (BaseArray<Object*>)
An array containing all of the objects in the game world. You can iterate through this and filter objects by type to interact with the game world. When iterating through the list be sure to check if each object is nil before accessing it to avoid errors.
Objects (BaseArray<Object*>)
An alternative name for AllObjects. Shorter and more convenient.
TechLevel (float)
The current tech level, used to determine the weapons used by NPCs.
TechLevelMax (float)
The maximum tech level possible.
FlaggedObjects (Object*)
Unknown value. Possibly an array of flagged objects that the game uses. May be nil.
CurrentFlaggedObject (Object*)
Unknown value. May be nil.
CurrentFlaggedMode (char)
Unknown value. Likely related to the previous two variables.
DeserializeList (char[144])
Unknown value.
CurWorldState (WorldStateModes)
Unknown value.
SlFlags (SaveLoadInfo)
Flags used by the game to determine the right behavior when loading/saving the game. Such as if it should use the reset destruction feature on next load.
PendingGameSaveSlot (GameSaveInfo*)
Info about the game state which would be stored in a save game if you save. Things like the number of missions completed or hours played. May be nil.
DlcBundleId (int)
Unknown value.
PendingFilename (char[64])
Unknown value.
PendingGameLoadWarpToPos (Vector)
Unknown value.
PendingGameLoadWarpToOrient (Matrix)
Unknown value.
StreamPos (Vector)
Unknown value.
NumTerritoryZones (int)
Unknown value.
GlobalZoneGrid (WorldZone*[257])
Unknown value. May be nil.
IsTerritory (bool)
Unknown value.
TerritoryName[128] (char)
Unknown value.
NumStreamingObjects (int)
The number of objects currently being streamed in by the game.
StubSerializationInProgress (bool)
Unknown value.