Struct rcocos2d_sys::cocos2d_CCUserDefault [−][src]
#[repr(C)]pub struct cocos2d_CCUserDefault { pub _address: u8, }
Expand description
CCUserDefault acts as a tiny database. You can save and get base type values by it. For example, setBoolForKey(“played”, true) will add a bool value true into the database. Its key is “played”. You can get the value of the key by getBoolForKey(“played”).
It supports the following base types: bool, int, float, double, string
Fields
_address: u8