Nuclide
Software Development Kit for id Technology (BETA)
ncDict 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 ncEntity as a basis for your classes.

Public Member Functions

void ncDict (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 ncDict InitWithSpawnData (string)
 
static ncDict LoadDeclFromFile (string, string)
 

Constructor & Destructor Documentation

◆ ncDict()

void ncDict::ncDict ( void  )

Member Function Documentation

◆ AddKey()

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

◆ GetBool()

bool ncDict::GetBool ( string  keyName)

◆ GetDeclBody()

string ncDict::GetDeclBody ( void  )

◆ GetFloat()

float ncDict::GetFloat ( string  keyName)

◆ GetInteger()

int ncDict::GetInteger ( string  keyName)

◆ GetString()

string ncDict::GetString ( string  keyName)

◆ GetVector()

vector ncDict::GetVector ( string  keyName)

◆ InitWithSpawnData()

ncDict ncDict::InitWithSpawnData ( string  spawnData)
static

◆ LoadDeclFromFile()

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

◆ RemoveKey()

void ncDict::RemoveKey ( string  keyName)

◆ SetDeclBody()

void ncDict::SetDeclBody ( string  textBody)

◆ TokenCount()

int ncDict::TokenCount ( void  )

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