COCOS JSBinding Objects Storage

NativeObject

eg. cocos::Sprite

  • Added to _native_js_global_map

  • Added to _js_native_global_map

JSObject

eg. cc.Sprite

  • Added to _native_js_global_map

  • Added to _js_native_global_map

  • Added to NamedObjectRoot GC Thing

_native_js_global_map

/*
    Key: NativeObject

    void* as the native object. usually cocos2d::Ref
    eg. cocos2d::Sprite
*/
<void*, js_proxy_t*> _native_js_global_map;

_js_native_global_map

js_proxy_t

_js_global_type_map

js_type_class

Helper APIs

Last updated

Was this helpful?