Limited support
This feature is only present in Portal 2: Community Edition and Portal: Revolution.

CScriptKeyValues

Clear

Clears this KeyValues object.

void CScriptKeyValues::Clear()

Dump

Dump the object to console

void CScriptKeyValues::Dump()

FindKey

Given a KeyValues object and a key name, find a KeyValues object associated with the key name

handle CScriptKeyValues::FindKey(string, bool)

GetFirstSubKey

Given a KeyValues object, return the first sub key object

handle CScriptKeyValues::GetFirstSubKey()

GetKeyBool

Given a KeyValues object and a key name, return associated bool value

bool CScriptKeyValues::GetKeyBool(string)

GetKeyFloat

Given a KeyValues object and a key name, return associated float value

float CScriptKeyValues::GetKeyFloat(string)

GetKeyInt

Given a KeyValues object and a key name, return associated integer value

int CScriptKeyValues::GetKeyInt(string)

GetKeyString

Given a KeyValues object and a key name, return associated string value

string CScriptKeyValues::GetKeyString(string)

GetNextKey

Given a KeyValues object, return the next key object in a sub key group

handle CScriptKeyValues::GetNextKey()

IsKeyEmpty

Given a KeyValues object and a key name, return true if key name has no value

bool CScriptKeyValues::IsKeyEmpty(string)

ReleaseKeyValues

Given a root KeyValues object, release its contents

void CScriptKeyValues::ReleaseKeyValues()

SetKeyBool

Given a KeyValues object and a key name, sets the associated bool value

void CScriptKeyValues::SetKeyBool(string, bool)

SetKeyFloat

Given a KeyValues object and a key name, sets the associated float value

void CScriptKeyValues::SetKeyFloat(string, float)

SetKeyInt

Given a KeyValues object and a key name, sets the associated integer value

void CScriptKeyValues::SetKeyInt(string, int)

SetKeyString

Given a KeyValues object and a key name, sets the associated string value

void CScriptKeyValues::SetKeyString(string, string)