Key-Value Pair Asset

From COD Engine Research
Revision as of 21:30, 25 January 2014 by CraigChrist8239 (talk | contribs)

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;
};