Key-Value Pair Asset: Difference between revisions

From COD Engine Research
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
{
{
   __int64 value;
   int keyHash;
   char *key;
  int namespaceHash;
   const char *value;
};
};


struct KeyValuePairDef
struct KeyValuePairs
{
{
   const char *name;
   const char *name;
   int numPairs;
   int numVariables;
   KeyValuePair *pairs;
   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;
};