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 |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
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). | __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). 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;
};