Skip to content

KeyValues@

Key values. Can be used to read and write to .txt files.

Methods

  • bool LoadFromFile(string&in filePath) -- Returns true if successfully loaded file.
  • KeyValues@ FindKey(string&in keyName, bool bCreate = false) -- Gets the key.
  • string GetName() -- Gets the name of the key.
  • string GetString(string&in keyName = "", string&in defaultValue = "") -- Gets the value of the key in string.
  • bool IsEmpty(string&in keyName = "") -- Returns true if key is empty.
  • KeyValues@ GetFirstSubKey() -- Gets the first sub key of the key.
  • KeyValues@ GetNextKey() -- Gets the next key of the key.
  • KeyValues@ GetFirstTrueSubKey() -- Gets the first true sub key of the key.
  • KeyValues@ GetNextTrueSubKey() -- Gets the next true sub key of the key.
  • KeyValues@ GetFirstValue() -- Gets the first value of the key.
  • KeyValues@ GetNextValue() -- Gets the next value of the key.
  • void deleteThis() -- Deletes the KeyValues. Should be done everytime when you're done with it.