Key-Value Pair Asset: Difference between revisions
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
[[Category:Assets]] | [[Category:Assets]] | ||
[[Category:BO2]] | [[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). What the pairs are actually used for is still unknown. | ||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
struct KeyValuePair | struct KeyValuePair | ||
{ | { | ||
int keyHash; | |||
char * | int namespaceHash; | ||
const char *value; | |||
}; | }; | ||
struct | struct KeyValuePairs | ||
{ | { | ||
const char *name; | const char *name; | ||
int | int numVariables; | ||
KeyValuePair * | KeyValuePair *keyValuePairs; | ||
}; | }; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Latest revision as of 01:31, 21 December 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). What the pairs are actually used for is still unknown.
struct KeyValuePair
{
int keyHash;
int namespaceHash;
const char *value;
};
struct KeyValuePairs
{
const char *name;
int numVariables;
KeyValuePair *keyValuePairs;
};