Beispiel #1
0
Armature *Armature::createWithComArmature(const char* _name, ComArmature *_comArmature)
{
#if CS_DEBUG_FOR_EDIT
	Armature *armature = new EditorArmature();
#else
	Armature *armature = new Armature();
#endif
	if (armature && armature->initWithComArmature(_name, _comArmature))
	{
		armature->autorelease();
		return armature;
	}
	CC_SAFE_DELETE(armature);
	return NULL;
}