PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
SpawnDataConverter Class Reference

Utility class that converts init.c format type of spawn commands to a json file, fill in the SpawnInit() with your data and call SpawnDataConverter.SpawnObjects() through script editor console, result is a json file. More...

Static Private Member Functions

static void SpawnObjects ()
 
static void SpawnInit ()
 
static void AddSpawnData (string objectName, vector position, vector orientation)
 

Static Private Attributes

static ref array< ref ITEM_SpawnerObjectObjects = new array<ref ITEM_SpawnerObject>
 
static string m_Path = "$mission:myspawndata.json"
 

Detailed Description

Utility class that converts init.c format type of spawn commands to a json file, fill in the SpawnInit() with your data and call SpawnDataConverter.SpawnObjects() through script editor console, result is a json file.

Member Function Documentation

◆ AddSpawnData()

static void AddSpawnData ( string  objectName,
vector  position,
vector  orientation 
)
inlinestaticprivate

◆ SpawnInit()

static void SpawnInit ( )
inlinestaticprivate

References AddSpawnData().

Referenced by SpawnObjects().

◆ SpawnObjects()

static void SpawnObjects ( )
inlinestaticprivate

Field Documentation

◆ m_Path

string m_Path = "$mission:myspawndata.json"
staticprivate

Referenced by SpawnObjects().

◆ Objects

ref array<ref ITEM_SpawnerObject> Objects = new array<ref ITEM_SpawnerObject>
staticprivate

Referenced by AddSpawnData(), and SpawnObjects().


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