Nuclide
Software Development Kit for id Technology
NSDict Class Reference

About this class

This class is responsible for handling groups of key/value pairs.

It handles entity spawns, respawns, save/load as well as key/value pair loading, as well as inputs/outputs which is our basic entity model.

This is a very low-level class. You're never meant to use this. Use NSEntity as a basis for your classes.

Public Member Functions

void NSDict (void)
 
nonvirtual int GetInteger (string)
 
nonvirtual float GetFloat (string)
 
nonvirtual string GetString (string)
 
nonvirtual vector GetVector (string)
 
nonvirtual bool GetBool (string)
 
nonvirtual void SetDeclBody (string)
 
nonvirtual string GetDeclBody (void)
 
nonvirtual void AddKey (string, string)
 
nonvirtual void RemoveKey (string)
 
nonvirtual int TokenCount (void)
 

Static Public Member Functions

static NSDict InitWithSpawnData (string)
 
static NSDict LoadDeclFromFile (string, string)
 

Constructor & Destructor Documentation

◆ NSDict()

void NSDict::NSDict ( void  )

Member Function Documentation

◆ AddKey()

void NSDict::AddKey ( string  keyName,
string  setValue 
)

◆ GetBool()

bool NSDict::GetBool ( string  keyName)

◆ GetDeclBody()

string NSDict::GetDeclBody ( void  )

◆ GetFloat()

float NSDict::GetFloat ( string  keyName)

◆ GetInteger()

int NSDict::GetInteger ( string  keyName)

◆ GetString()

string NSDict::GetString ( string  keyName)

◆ GetVector()

vector NSDict::GetVector ( string  keyName)

◆ InitWithSpawnData()

NSDict NSDict::InitWithSpawnData ( string  spawnData)
static

◆ LoadDeclFromFile()

NSDict NSDict::LoadDeclFromFile ( string  declName,
string  fileName 
)
static

◆ RemoveKey()

void NSDict::RemoveKey ( string  keyName)

◆ SetDeclBody()

void NSDict::SetDeclBody ( string  textBody)

◆ TokenCount()

int NSDict::TokenCount ( void  )

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