Class ObjWrapper<T>

#include <Geode/utils/cocos.hpp>
template<class T>classObjWrapper:publiccocos2d::CCObject{ ... }

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.

Template parameters

T

The type to wrap into a CCObject
Examples0
Public static methods2
staticgeode::ObjWrapper*create(
T&&value
)

Construct an object wrapper

staticgeode::ObjWrapper*create()

Construct an object wrapper

Public member functions2
T&getValue()
No description provided
voidsetValue(
T&&value
)
No description provided
Fields0
Protected member functions0
Protected fields1
Tm_value
;
No description provided
Derived classes0