axmol/tools/tolua++/CCDictionary.pkg

27 lines
797 B
Plaintext

class CCDictionary : public CCObject
{
unsigned int count();
CCArray* allKeys();
CCArray* allKeysForObject(CCObject* object);
CCObject* objectForKey(const std::string& key);
CCObject* objectForKey(int key);
const CCString* valueForKey(const std::string& key);
const CCString* valueForKey(int key);
void setObject(CCObject* pObject, const std::string& key);
void setObject(CCObject* pObject, int key);
void removeObjectForKey(const std::string& key);
void removeObjectForKey(int key);
void removeObjectsForKeys(CCArray* pKeyArray);
void removeAllObjects();
static CCDictionary* create();
static CCDictionary* createWithDictionary(CCDictionary* srcDict);
static CCDictionary* createWithContentsOfFile(const char *pFileName);
};