A simple CCObject wrapper for a non-CCObject type. This is useful for storing custom types in a CCNode::setUserObject without making a new class for it.
Class ObjWrapper<T>
#include <Geode/utils/cocos.hpp>template<class T>classObjWrapper:publiccocos2d::CCObject{ ... }
T
The type to wrap into a CCObject
Examples0
Public static methods2
staticgeode::ObjWrapper*create(T&&value)
Construct an object wrapper
staticgeode::ObjWrapper*create(const Tconst&value)
Construct an object wrapper
Public member functions2
Fields0
Protected member functions0
Protected fields1
Tm_value;
No description provided