Let's say I'm trying to write this to a file (I don't care about newlines/whitespace), how would I construct this best using the KeyValues class? (Or is there a better way?)
Code: Select all
"Admins"
{
"Admin1"
{
"auth" "steam"
"identity" "STEAM_0:1:1337"
"flags" "z"
"group" "Group1"
"immunity" "100"
}
"Admin2"
{
"auth" "steam"
"identity" "STEAM_0:1:13372"
"flags" "a"
"group" "Group2"
"immunity" "1"
}
}