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

Find a child KeyValues object associated with the specified key name. If create is true a new KeyValues object is created if no matching key exists, otherwise null is returned.

handle CScriptKeyValues::FindKey(string name, bool create)

GetFirstSubKey

Return the first sub key object.

handle CScriptKeyValues::GetFirstSubKey()

GetKeyBool

Return the associated bool value for this key name.

bool CScriptKeyValues::GetKeyBool(string name)

GetKeyFloat

Return the associated float value for this key name.

float CScriptKeyValues::GetKeyFloat(string name)

GetKeyInt

Return the associated integer value for this key name.

int CScriptKeyValues::GetKeyInt(string name)

GetKeyString

Return the associated string value for this key name.

string CScriptKeyValues::GetKeyString(string name)

GetNextKey

Return the next key object in a sub key group.

handle CScriptKeyValues::GetNextKey()

IsKeyEmpty

Return true if key name has no value.

bool CScriptKeyValues::IsKeyEmpty(string name)

ReleaseKeyValues

Delete the contents of this KeyValues object.

void CScriptKeyValues::ReleaseKeyValues()

SetKeyBool

Sets the associated bool value for this key name.

void CScriptKeyValues::SetKeyBool(string name, bool value)

SetKeyFloat

Sets the associated float value for this key name.

void CScriptKeyValues::SetKeyFloat(string name, float value)

SetKeyInt

Sets the associated integer value for this key name.

void CScriptKeyValues::SetKeyInt(string name, int value)

SetKeyString

Sets the associated string value for this key name.

void CScriptKeyValues::SetKeyString(string name, string value)