Key-Value Pair Asset: Difference between revisions
Created page with "The keyvaluepair asset only exists on Black Ops 2 and is actually Treyarch's version of a very well documented concept of Key-Value pairs. These are used to assign a value to ..." |
No edit summary |
||
| Line 1: | Line 1: | ||
__NOTOC__ | |||
[[Category:Assets]] | |||
[[Category:BO2]] | |||
The keyvaluepair asset only exists on Black Ops 2 and is actually Treyarch's version of a very well documented concept of Key-Value pairs. These are used to assign a value to a string (key). | The keyvaluepair asset only exists on Black Ops 2 and is actually Treyarch's version of a very well documented concept of Key-Value pairs. These are used to assign a value to a string (key). | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
Revision as of 21:30, 25 January 2014
The keyvaluepair asset only exists on Black Ops 2 and is actually Treyarch's version of a very well documented concept of Key-Value pairs. These are used to assign a value to a string (key).
struct KeyValuePair
{
__int64 value;
char *key;
};
struct KeyValuePairDef
{
const char *name;
int numPairs;
KeyValuePair *pairs;
};