diff --git a/core/2d/CCAction.cpp b/core/2d/CCAction.cpp index c96df1ec48..af862d357c 100644 --- a/core/2d/CCAction.cpp +++ b/core/2d/CCAction.cpp @@ -32,7 +32,7 @@ THE SOFTWARE. #include "base/CCDirector.h" #include "base/ccUTF8.h" -NS_CC_BEGIN +NS_AX_BEGIN // // Action Base Class // @@ -296,4 +296,4 @@ void Follow::stop() Action::stop(); } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCAction.h b/core/2d/CCAction.h index e9d5a27040..e4d2b90266 100644 --- a/core/2d/CCAction.h +++ b/core/2d/CCAction.h @@ -33,7 +33,7 @@ THE SOFTWARE. #include "math/CCMath.h" #include "base/CCScriptSupport.h" -NS_CC_BEGIN +NS_AX_BEGIN class Node; @@ -445,6 +445,6 @@ private: // end of actions group /// @} -NS_CC_END +NS_AX_END #endif // __ACTIONS_CCACTION_H__ diff --git a/core/2d/CCActionCamera.cpp b/core/2d/CCActionCamera.cpp index c5aa060903..a4fd4d9f3b 100644 --- a/core/2d/CCActionCamera.cpp +++ b/core/2d/CCActionCamera.cpp @@ -30,7 +30,7 @@ THE SOFTWARE. #include "2d/CCNode.h" #include "platform/CCStdC.h" -NS_CC_BEGIN +NS_AX_BEGIN // // CameraAction // @@ -242,4 +242,4 @@ void OrbitCamera::sphericalRadius(float* newRadius, float* zenith, float* azimut *newRadius = r / FLT_EPSILON; } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCActionCamera.h b/core/2d/CCActionCamera.h index cca140d14f..ca40675180 100644 --- a/core/2d/CCActionCamera.h +++ b/core/2d/CCActionCamera.h @@ -32,7 +32,7 @@ THE SOFTWARE. #include "2d/CCActionInterval.h" #include "math/CCMath.h" -NS_CC_BEGIN +NS_AX_BEGIN class Camera; @@ -183,6 +183,6 @@ protected: // end of actions group /// @} -NS_CC_END +NS_AX_END #endif //__CCCAMERA_ACTION_H__ diff --git a/core/2d/CCActionCatmullRom.cpp b/core/2d/CCActionCatmullRom.cpp index f6cc4e0e76..2ba989acf1 100644 --- a/core/2d/CCActionCatmullRom.cpp +++ b/core/2d/CCActionCatmullRom.cpp @@ -39,7 +39,7 @@ using namespace std; -NS_CC_BEGIN; +NS_AX_BEGIN; /* * Implementation of PointArray @@ -507,4 +507,4 @@ CatmullRomBy* CatmullRomBy::reverse() const return CatmullRomBy::create(_duration, reverse); } -NS_CC_END; +NS_AX_END; diff --git a/core/2d/CCActionCatmullRom.h b/core/2d/CCActionCatmullRom.h index 079fe1a763..5695b89ca9 100644 --- a/core/2d/CCActionCatmullRom.h +++ b/core/2d/CCActionCatmullRom.h @@ -41,7 +41,7 @@ #include "2d/CCActionInterval.h" #include "math/CCMath.h" -NS_CC_BEGIN; +NS_AX_BEGIN; class Node; @@ -340,6 +340,6 @@ ccCardinalSplineAt(const Vec2& p0, const Vec2& p1, const Vec2& p2, const Vec2& p // end of actions group /// @} -NS_CC_END; +NS_AX_END; #endif // __CCACTION_CATMULLROM_H__ diff --git a/core/2d/CCActionEase.cpp b/core/2d/CCActionEase.cpp index 4dacae646b..167cc76efb 100644 --- a/core/2d/CCActionEase.cpp +++ b/core/2d/CCActionEase.cpp @@ -35,7 +35,7 @@ THE SOFTWARE. #include "2d/CCActionEase.h" #include "2d/CCTweenFunction.h" -NS_CC_BEGIN +NS_AX_BEGIN #ifndef M_PI_X_2 # define M_PI_X_2 (float)M_PI * 2.0f @@ -78,7 +78,7 @@ void ActionEase::startWithTarget(Node* target) } else { - cocos2d::log("ActionEase::startWithTarget error: target or _inner is nullptr!"); + axis::log("ActionEase::startWithTarget error: target or _inner is nullptr!"); } } @@ -135,7 +135,7 @@ bool EaseRateAction::initWithAction(ActionInterval* action, float rate) // issue #16159 [https://github.com/cocos2d/cocos2d-x/pull/16159] for further info // #define EASE_TEMPLATE_IMPL(CLASSNAME, TWEEN_FUNC, REVERSE_CLASSNAME) \ - CLASSNAME* CLASSNAME::create(cocos2d::ActionInterval* action) \ + CLASSNAME* CLASSNAME::create(axis::ActionInterval* action) \ { \ CLASSNAME* ease = new CLASSNAME(); \ if (ease->initWithAction(action)) \ @@ -186,7 +186,7 @@ EASE_TEMPLATE_IMPL(EaseCubicActionInOut, tweenfunc::cubicEaseInOut, EaseCubicAct // issue #16159 [https://github.com/cocos2d/cocos2d-x/pull/16159] for further info // #define EASERATE_TEMPLATE_IMPL(CLASSNAME, TWEEN_FUNC) \ - CLASSNAME* CLASSNAME::create(cocos2d::ActionInterval* action, float rate) \ + CLASSNAME* CLASSNAME::create(axis::ActionInterval* action, float rate) \ { \ CLASSNAME* ease = new CLASSNAME(); \ if (ease->initWithAction(action, rate)) \ @@ -229,7 +229,7 @@ bool EaseElastic::initWithAction(ActionInterval* action, float period /* = 0.3f* // issue #16159 [https://github.com/cocos2d/cocos2d-x/pull/16159] for further info // #define EASEELASTIC_TEMPLATE_IMPL(CLASSNAME, TWEEN_FUNC, REVERSE_CLASSNAME) \ - CLASSNAME* CLASSNAME::create(cocos2d::ActionInterval* action, float period /* = 0.3f*/) \ + CLASSNAME* CLASSNAME::create(axis::ActionInterval* action, float period /* = 0.3f*/) \ { \ CLASSNAME* ease = new CLASSNAME(); \ if (ease->initWithAction(action, period)) \ @@ -255,7 +255,7 @@ EASEELASTIC_TEMPLATE_IMPL(EaseElasticInOut, tweenfunc::elasticEaseInOut, EaseEla // EaseBezierAction // -EaseBezierAction* EaseBezierAction::create(cocos2d::ActionInterval* action) +EaseBezierAction* EaseBezierAction::create(axis::ActionInterval* action) { EaseBezierAction* ret = new EaseBezierAction(); if (ret->initWithAction(action)) @@ -304,4 +304,4 @@ EaseBezierAction* EaseBezierAction::reverse() const return reverseAction; } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCActionEase.h b/core/2d/CCActionEase.h index 2e04911159..0da2574c30 100644 --- a/core/2d/CCActionEase.h +++ b/core/2d/CCActionEase.h @@ -31,7 +31,7 @@ THE SOFTWARE. #include "2d/CCActionInterval.h" #include "2d/CCTweenFunction.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup actions @@ -516,7 +516,7 @@ EASEELASTIC_TEMPLATE_DECL_CLASS(EaseElasticInOut); @brief Ease Bezier @ingroup Actions */ -class CC_DLL EaseBezierAction : public cocos2d::ActionEase +class CC_DLL EaseBezierAction : public axis::ActionEase { public: /** @@ -524,7 +524,7 @@ public: @param action The pointer of the inner action. @return A pointer of EaseBezierAction action. If creation failed, return nil. */ - static EaseBezierAction* create(cocos2d::ActionInterval* action); + static EaseBezierAction* create(axis::ActionInterval* action); virtual void update(float time) override; virtual EaseBezierAction* clone() const override; @@ -551,6 +551,6 @@ private: // end of actions group /// @} -NS_CC_END +NS_AX_END #endif // __ACTION_CCEASE_ACTION_H__ diff --git a/core/2d/CCActionGrid.cpp b/core/2d/CCActionGrid.cpp index bc190650cc..1516e1e3e9 100644 --- a/core/2d/CCActionGrid.cpp +++ b/core/2d/CCActionGrid.cpp @@ -31,7 +31,7 @@ THE SOFTWARE. #include "2d/CCNodeGrid.h" #include "base/CCDirector.h" -NS_CC_BEGIN +NS_AX_BEGIN // implementation of GridAction bool GridAction::initWithDuration(float duration, const Vec2& gridSize) @@ -446,4 +446,4 @@ ReuseGrid* ReuseGrid::reverse() const return this->clone(); } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCActionGrid.h b/core/2d/CCActionGrid.h index c8e65c9303..cb9c3abbff 100644 --- a/core/2d/CCActionGrid.h +++ b/core/2d/CCActionGrid.h @@ -30,7 +30,7 @@ THE SOFTWARE. #include "2d/CCActionInterval.h" #include "2d/CCActionInstant.h" -NS_CC_BEGIN +NS_AX_BEGIN class GridBase; class NodeGrid; @@ -408,6 +408,6 @@ private: // end of actions group /// @} -NS_CC_END +NS_AX_END #endif // __ACTION_CCGRID_ACTION_H__ diff --git a/core/2d/CCActionGrid3D.cpp b/core/2d/CCActionGrid3D.cpp index 3bb2e0adf0..b363d45c24 100644 --- a/core/2d/CCActionGrid3D.cpp +++ b/core/2d/CCActionGrid3D.cpp @@ -27,7 +27,7 @@ THE SOFTWARE. #include "2d/CCActionGrid3D.h" #include "base/CCDirector.h" -NS_CC_BEGIN +NS_AX_BEGIN // implementation of Waves3D Waves3D* Waves3D::create(float duration, const Vec2& gridSize, unsigned int waves, float amplitude) @@ -735,4 +735,4 @@ void Twirl::update(float time) } } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCActionGrid3D.h b/core/2d/CCActionGrid3D.h index 9676dc4f63..22c6a93653 100644 --- a/core/2d/CCActionGrid3D.h +++ b/core/2d/CCActionGrid3D.h @@ -29,7 +29,7 @@ THE SOFTWARE. #include "2d/CCActionGrid.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup actions @@ -634,6 +634,6 @@ private: // end of actions group /// @} -NS_CC_END +NS_AX_END #endif // __ACTION_CCGRID3D_ACTION_H__ diff --git a/core/2d/CCActionInstant.cpp b/core/2d/CCActionInstant.cpp index f99a67a182..d0380c98b5 100644 --- a/core/2d/CCActionInstant.cpp +++ b/core/2d/CCActionInstant.cpp @@ -30,7 +30,7 @@ #include "2d/CCNode.h" #include "2d/CCSprite.h" -NS_CC_BEGIN +NS_AX_BEGIN // // InstantAction // @@ -399,4 +399,4 @@ CallFuncN* CallFuncN::clone() const return a; } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCActionInstant.h b/core/2d/CCActionInstant.h index a906a8d314..0a1706c541 100644 --- a/core/2d/CCActionInstant.h +++ b/core/2d/CCActionInstant.h @@ -32,7 +32,7 @@ THE SOFTWARE. #include #include "2d/CCAction.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup actions @@ -395,6 +395,6 @@ private: // end of actions group /// @} -NS_CC_END +NS_AX_END #endif //__CCINSTANT_ACTION_H__ diff --git a/core/2d/CCActionInterval.cpp b/core/2d/CCActionInterval.cpp index b9e1d9b0ea..cc2c7b5ba1 100644 --- a/core/2d/CCActionInterval.cpp +++ b/core/2d/CCActionInterval.cpp @@ -40,7 +40,7 @@ THE SOFTWARE. #include "platform/CCStdC.h" #include "base/CCScriptSupport.h" -NS_CC_BEGIN +NS_AX_BEGIN // Extra action for making a Sequence or Spawn when only adding one action to it. class ExtraAction : public FiniteTimeAction @@ -1433,7 +1433,7 @@ ResizeTo* ResizeTo::clone() const return a; } -void ResizeTo::startWithTarget(cocos2d::Node* target) +void ResizeTo::startWithTarget(axis::Node* target) { ActionInterval::startWithTarget(target); _initialSize = target->getContentSize(); @@ -1451,7 +1451,7 @@ void ResizeTo::update(float time) bool ResizeTo::initWithDuration(float duration, const Vec2& final_size) { - if (cocos2d::ActionInterval::initWithDuration(duration)) + if (axis::ActionInterval::initWithDuration(duration)) { _finalSize = final_size; return true; @@ -2072,7 +2072,7 @@ FadeIn* FadeIn::clone() const return FadeIn::create(_duration); } -void FadeIn::setReverseAction(cocos2d::FadeTo* ac) +void FadeIn::setReverseAction(axis::FadeTo* ac) { _reverseAction = ac; } @@ -2084,7 +2084,7 @@ FadeTo* FadeIn::reverse() const return action; } -void FadeIn::startWithTarget(cocos2d::Node* target) +void FadeIn::startWithTarget(axis::Node* target) { ActionInterval::startWithTarget(target); @@ -2120,7 +2120,7 @@ FadeOut* FadeOut::clone() const return FadeOut::create(_duration); } -void FadeOut::startWithTarget(cocos2d::Node* target) +void FadeOut::startWithTarget(axis::Node* target) { ActionInterval::startWithTarget(target); @@ -2133,7 +2133,7 @@ void FadeOut::startWithTarget(cocos2d::Node* target) _fromOpacity = target->getOpacity(); } -void FadeOut::setReverseAction(cocos2d::FadeTo* ac) +void FadeOut::setReverseAction(axis::FadeTo* ac) { _reverseAction = ac; } @@ -2506,7 +2506,7 @@ bool Animate::initWithAnimation(Animation* animation) return false; } -void Animate::setAnimation(cocos2d::Animation* animation) +void Animate::setAnimation(axis::Animation* animation) { if (_animation != animation) { @@ -2764,4 +2764,4 @@ ActionFloat* ActionFloat::reverse() const return ActionFloat::create(_duration, _to, _from, _callback); } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCActionInterval.h b/core/2d/CCActionInterval.h index d95dfdcd38..5ec0f87d83 100644 --- a/core/2d/CCActionInterval.h +++ b/core/2d/CCActionInterval.h @@ -37,7 +37,7 @@ THE SOFTWARE. #include "base/CCProtocols.h" #include "base/CCVector.h" -NS_CC_BEGIN +NS_AX_BEGIN class Node; class SpriteFrame; @@ -737,7 +737,7 @@ public: // Overrides // virtual ResizeTo* clone() const override; - void startWithTarget(cocos2d::Node* target) override; + void startWithTarget(axis::Node* target) override; void update(float time) override; ResizeTo() {} @@ -1615,6 +1615,6 @@ private: // end of actions group /// @} -NS_CC_END +NS_AX_END #endif //__ACTION_CCINTERVAL_ACTION_H__ diff --git a/core/2d/CCActionManager.cpp b/core/2d/CCActionManager.cpp index cc8f98690d..c11b69f3be 100644 --- a/core/2d/CCActionManager.cpp +++ b/core/2d/CCActionManager.cpp @@ -35,7 +35,7 @@ THE SOFTWARE. #include "base/ccCArray.h" #include "uthash/uthash.h" -NS_CC_BEGIN +NS_AX_BEGIN // // singleton stuff // @@ -491,4 +491,4 @@ void ActionManager::update(float dt) _currentTarget = nullptr; } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCActionManager.h b/core/2d/CCActionManager.h index 5b394d6039..497f93f1e3 100644 --- a/core/2d/CCActionManager.h +++ b/core/2d/CCActionManager.h @@ -34,7 +34,7 @@ THE SOFTWARE. #include "base/CCVector.h" #include "base/CCRef.h" -NS_CC_BEGIN +NS_AX_BEGIN class Action; @@ -209,6 +209,6 @@ protected: // end of actions group /// @} -NS_CC_END +NS_AX_END #endif // __ACTION_CCACTION_MANAGER_H__ diff --git a/core/2d/CCActionPageTurn3D.cpp b/core/2d/CCActionPageTurn3D.cpp index 54738c2c49..8799742059 100644 --- a/core/2d/CCActionPageTurn3D.cpp +++ b/core/2d/CCActionPageTurn3D.cpp @@ -28,7 +28,7 @@ THE SOFTWARE. #include "2d/CCGrid.h" #include "2d/CCNodeGrid.h" -NS_CC_BEGIN +NS_AX_BEGIN PageTurn3D* PageTurn3D::create(float duration, const Vec2& gridSize) { @@ -130,4 +130,4 @@ void PageTurn3D::update(float time) } } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCActionPageTurn3D.h b/core/2d/CCActionPageTurn3D.h index c1c66d34fa..1ad129dd32 100644 --- a/core/2d/CCActionPageTurn3D.h +++ b/core/2d/CCActionPageTurn3D.h @@ -29,7 +29,7 @@ THE SOFTWARE. #include "2d/CCActionGrid3D.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup actions @@ -69,6 +69,6 @@ public: // end of actions group /// @} -NS_CC_END +NS_AX_END #endif // __ACTION_CCPAGETURN3D_ACTION_H__ diff --git a/core/2d/CCActionProgressTimer.cpp b/core/2d/CCActionProgressTimer.cpp index 9a23a84400..70b5a31b8c 100644 --- a/core/2d/CCActionProgressTimer.cpp +++ b/core/2d/CCActionProgressTimer.cpp @@ -27,7 +27,7 @@ THE SOFTWARE. #include "2d/CCActionProgressTimer.h" #include "2d/CCProgressTimer.h" -NS_CC_BEGIN +NS_AX_BEGIN #define kProgressTimerCast ProgressTimer* @@ -130,4 +130,4 @@ void ProgressFromTo::update(float time) ((kProgressTimerCast)(_target))->setPercentage(_from + (_to - _from) * time); } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCActionProgressTimer.h b/core/2d/CCActionProgressTimer.h index 2b9db971fe..e50ec02532 100644 --- a/core/2d/CCActionProgressTimer.h +++ b/core/2d/CCActionProgressTimer.h @@ -29,7 +29,7 @@ THE SOFTWARE. #include "2d/CCActionInterval.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup actions @@ -127,6 +127,6 @@ private: // end of actions group /// @} -NS_CC_END +NS_AX_END #endif // __ACTION_CCPROGRESS_TIMER_H__ diff --git a/core/2d/CCActionTiledGrid.cpp b/core/2d/CCActionTiledGrid.cpp index 320207f63c..a4ce4f680a 100644 --- a/core/2d/CCActionTiledGrid.cpp +++ b/core/2d/CCActionTiledGrid.cpp @@ -30,7 +30,7 @@ THE SOFTWARE. #include "base/CCDirector.h" #include "base/ccMacros.h" -NS_CC_BEGIN +NS_AX_BEGIN struct Tile { @@ -876,4 +876,4 @@ void SplitCols::update(float time) } } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCActionTiledGrid.h b/core/2d/CCActionTiledGrid.h index d8aebf1823..71a65eb8ca 100644 --- a/core/2d/CCActionTiledGrid.h +++ b/core/2d/CCActionTiledGrid.h @@ -29,7 +29,7 @@ THE SOFTWARE. #include "2d/CCActionGrid.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup actions @@ -592,6 +592,6 @@ private: // end of actions group /// @} -NS_CC_END +NS_AX_END #endif // __ACTION_CCTILEDGRID_ACTION_H__ diff --git a/core/2d/CCActionTween.cpp b/core/2d/CCActionTween.cpp index 466b6938d0..9fcb6d9418 100644 --- a/core/2d/CCActionTween.cpp +++ b/core/2d/CCActionTween.cpp @@ -27,7 +27,7 @@ THE SOFTWARE. #include "2d/CCActionTween.h" -NS_CC_BEGIN +NS_AX_BEGIN ActionTween* ActionTween::create(float duration, std::string_view key, float from, float to) { @@ -77,4 +77,4 @@ ActionTween* ActionTween::reverse() const return ActionTween::create(_duration, _key, _to, _from); } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCActionTween.h b/core/2d/CCActionTween.h index cb6e649f8d..9cd0b3b3e6 100644 --- a/core/2d/CCActionTween.h +++ b/core/2d/CCActionTween.h @@ -29,7 +29,7 @@ THE SOFTWARE. #include "2d/CCActionInterval.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup actions @@ -120,6 +120,6 @@ protected: // end of actions group /// @} -NS_CC_END +NS_AX_END #endif /* __CCACTIONTWEEN_H__ */ diff --git a/core/2d/CCAnimation.cpp b/core/2d/CCAnimation.cpp index eab2b0cd15..c99ad186df 100644 --- a/core/2d/CCAnimation.cpp +++ b/core/2d/CCAnimation.cpp @@ -30,7 +30,7 @@ THE SOFTWARE. #include "renderer/CCTexture2D.h" #include "base/CCDirector.h" -NS_CC_BEGIN +NS_AX_BEGIN AnimationFrame* AnimationFrame::create(SpriteFrame* spriteFrame, float delayUnits, const ValueMap& userInfo) { @@ -195,4 +195,4 @@ Animation* Animation::clone() const return a; } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCAnimation.h b/core/2d/CCAnimation.h index f37d59dcc6..d4279ed9bb 100644 --- a/core/2d/CCAnimation.h +++ b/core/2d/CCAnimation.h @@ -36,7 +36,7 @@ THE SOFTWARE. #include -NS_CC_BEGIN +NS_AX_BEGIN class Texture2D; class SpriteFrame; @@ -320,6 +320,6 @@ private: // end of sprite_nodes group /// @} -NS_CC_END +NS_AX_END #endif // __CC_ANIMATION_H__ diff --git a/core/2d/CCAnimationCache.cpp b/core/2d/CCAnimationCache.cpp index debdda2ba5..d098a5b1ef 100644 --- a/core/2d/CCAnimationCache.cpp +++ b/core/2d/CCAnimationCache.cpp @@ -31,7 +31,7 @@ THE SOFTWARE. using namespace std; -NS_CC_BEGIN +NS_AX_BEGIN AnimationCache* AnimationCache::s_sharedAnimationCache = nullptr; @@ -265,4 +265,4 @@ void AnimationCache::addAnimationsWithFile(std::string_view plist) addAnimationsWithDictionary(dict, plist); } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCAnimationCache.h b/core/2d/CCAnimationCache.h index ea8cba03f2..228364739d 100644 --- a/core/2d/CCAnimationCache.h +++ b/core/2d/CCAnimationCache.h @@ -35,7 +35,7 @@ THE SOFTWARE. #include -NS_CC_BEGIN +NS_AX_BEGIN class Animation; @@ -127,6 +127,6 @@ private: // end of sprite_nodes group /// @} -NS_CC_END +NS_AX_END #endif // __CC_ANIMATION_CACHE_H__ diff --git a/core/2d/CCAtlasNode.cpp b/core/2d/CCAtlasNode.cpp index 6bd3e45776..670676e267 100644 --- a/core/2d/CCAtlasNode.cpp +++ b/core/2d/CCAtlasNode.cpp @@ -36,7 +36,7 @@ THE SOFTWARE. #include "renderer/CCRenderer.h" #include "renderer/backend/ProgramState.h" -NS_CC_BEGIN +NS_AX_BEGIN // implementation AtlasNode @@ -290,4 +290,4 @@ void AtlasNode::setQuadsToDraw(ssize_t quadsToDraw) _quadsToDraw = quadsToDraw; } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCAtlasNode.h b/core/2d/CCAtlasNode.h index ff05baf5de..6e1f01b898 100644 --- a/core/2d/CCAtlasNode.h +++ b/core/2d/CCAtlasNode.h @@ -32,7 +32,7 @@ THE SOFTWARE. #include "base/ccTypes.h" #include "renderer/CCQuadCommand.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup _2d @@ -153,4 +153,4 @@ private: // end of base_node group /// @} -NS_CC_END +NS_AX_END diff --git a/core/2d/CCAutoPolygon.cpp b/core/2d/CCAutoPolygon.cpp index 2578a7718d..dedce69b69 100644 --- a/core/2d/CCAutoPolygon.cpp +++ b/core/2d/CCAutoPolygon.cpp @@ -34,7 +34,7 @@ THE SOFTWARE. #include #include -USING_NS_CC; +USING_NS_AX; static unsigned short quadIndices9[] = { 0 + 4 * 0, 1 + 4 * 0, 2 + 4 * 0, 3 + 4 * 0, 2 + 4 * 0, 1 + 4 * 0, 0 + 4 * 1, 1 + 4 * 1, 2 + 4 * 1, @@ -250,7 +250,7 @@ unsigned int AutoPolygon::getSquareValue(unsigned int x, unsigned int y, const R return sv; } -std::vector AutoPolygon::marchSquare(const Rect& rect, const Vec2& start, float threshold) +std::vector AutoPolygon::marchSquare(const Rect& rect, const Vec2& start, float threshold) { int stepx = 0; int stepy = 0; @@ -265,7 +265,7 @@ std::vector AutoPolygon::marchSquare(const Rect& rect, const Vec2 std::vector case6s; int i; std::vector::iterator it; - std::vector _points; + std::vector _points; do { int sv = getSquareValue(curx, cury, rect, threshold); @@ -416,7 +416,7 @@ std::vector AutoPolygon::marchSquare(const Rect& rect, const Vec2 return _points; } -float AutoPolygon::perpendicularDistance(const cocos2d::Vec2& i, const cocos2d::Vec2& start, const cocos2d::Vec2& end) +float AutoPolygon::perpendicularDistance(const axis::Vec2& i, const axis::Vec2& start, const axis::Vec2& end) { float res; float slope; @@ -438,7 +438,7 @@ float AutoPolygon::perpendicularDistance(const cocos2d::Vec2& i, const cocos2d:: } return res; } -std::vector AutoPolygon::rdp(const std::vector& v, float optimization) +std::vector AutoPolygon::rdp(const std::vector& v, float optimization) { if (v.size() < 3) return v; @@ -505,7 +505,7 @@ std::vector AutoPolygon::reduce(const std::vector& points, const Rec return result; } -std::vector AutoPolygon::expand(const std::vector& points, const cocos2d::Rect& rect, float epsilon) +std::vector AutoPolygon::expand(const std::vector& points, const axis::Rect& rect, float epsilon) { auto size = points.size(); // if there are less than 3 points, then we have nothing diff --git a/core/2d/CCAutoPolygon.h b/core/2d/CCAutoPolygon.h index d306e94280..b6efcff087 100644 --- a/core/2d/CCAutoPolygon.h +++ b/core/2d/CCAutoPolygon.h @@ -34,7 +34,7 @@ THE SOFTWARE. #include "platform/CCImage.h" #include "renderer/CCTrianglesCommand.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup _2d @@ -166,7 +166,7 @@ public: * std::vector points = ap.trace(rect);//default threshold is 0.0 * @endcode */ - std::vector trace(const cocos2d::Rect& rect, float threshold = 0.0f); + std::vector trace(const axis::Rect& rect, float threshold = 0.0f); /** * reduce the amount of points so its faster for GPU to process and draw @@ -261,20 +261,20 @@ public: protected: Vec2 findFirstNoneTransparentPixel(const Rect& rect, float threshold); - std::vector marchSquare(const Rect& rect, const Vec2& first, float threshold); + std::vector marchSquare(const Rect& rect, const Vec2& first, float threshold); unsigned int getSquareValue(unsigned int x, unsigned int y, const Rect& rect, float threshold); unsigned char getAlphaByIndex(unsigned int i); unsigned char getAlphaByPos(const Vec2& pos); int getIndexFromPos(unsigned int x, unsigned int y) { return y * _width + x; } - cocos2d::Vec2 getPosFromIndex(unsigned int i) + axis::Vec2 getPosFromIndex(unsigned int i) { - return cocos2d::Vec2(static_cast(i % _width), static_cast(i / _width)); + return axis::Vec2(static_cast(i % _width), static_cast(i / _width)); } - std::vector rdp(const std::vector& v, float optimization); - float perpendicularDistance(const cocos2d::Vec2& i, const cocos2d::Vec2& start, const cocos2d::Vec2& end); + std::vector rdp(const std::vector& v, float optimization); + float perpendicularDistance(const axis::Vec2& i, const axis::Vec2& start, const axis::Vec2& end); // real rect is the size that is in scale with the texture file Rect getRealRect(const Rect& rect); @@ -288,6 +288,6 @@ protected: unsigned int _threshold; }; -NS_CC_END +NS_AX_END #endif // #ifndef COCOS_2D_CCAUTOPOLYGON_H__ diff --git a/core/2d/CCCamera.cpp b/core/2d/CCCamera.cpp index a7b546c274..75798fe6d9 100644 --- a/core/2d/CCCamera.cpp +++ b/core/2d/CCCamera.cpp @@ -32,7 +32,7 @@ #include "renderer/CCRenderer.h" #include "renderer/CCQuadCommand.h" -NS_CC_BEGIN +NS_AX_BEGIN Camera* Camera::_visitingCamera = nullptr; Viewport Camera::_defaultViewport; @@ -407,12 +407,12 @@ void Camera::applyZoom() { switch (_projectionType) { - case cocos2d::Director::Projection::_2D: + case axis::Director::Projection::_2D: { Mat4::createOrthographic(_zoom[0] * _zoomFactor, _zoom[1] * _zoomFactor, _nearPlane, _farPlane, &_projection); break; } - case cocos2d::Director::Projection::_3D: + case axis::Director::Projection::_3D: { // Push the far plane farther the more we zoom out. if (_zoomFactorFarPlane * _zoomFactor > _farPlane) @@ -582,4 +582,4 @@ bool Camera::isBrushValid() return _clearBrush != nullptr && _clearBrush->isValid(); } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCCamera.h b/core/2d/CCCamera.h index cf68949354..8fffddbdd6 100644 --- a/core/2d/CCCamera.h +++ b/core/2d/CCCamera.h @@ -33,7 +33,7 @@ THE SOFTWARE. #include "renderer/CCCustomCommand.h" #include "base/CCDirector.h" -NS_CC_BEGIN +NS_AX_BEGIN class Scene; class CameraBackgroundBrush; @@ -408,4 +408,4 @@ protected: CameraBackgroundBrush* _clearBrush = nullptr; // brush used to clear the back ground }; -NS_CC_END +NS_AX_END diff --git a/core/2d/CCCameraBackgroundBrush.cpp b/core/2d/CCCameraBackgroundBrush.cpp index 2866a6afb8..f992caf6d9 100644 --- a/core/2d/CCCameraBackgroundBrush.cpp +++ b/core/2d/CCCameraBackgroundBrush.cpp @@ -43,7 +43,7 @@ # include "base/CCEventDispatcher.h" #endif -NS_CC_BEGIN +NS_AX_BEGIN CameraBackgroundBrush::CameraBackgroundBrush() {} @@ -487,4 +487,4 @@ void CameraBackgroundSkyBoxBrush::onAfterDraw() renderer->setCullMode(_stateBlock.cullMode); } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCCameraBackgroundBrush.h b/core/2d/CCCameraBackgroundBrush.h index 68af50563f..715f824c52 100644 --- a/core/2d/CCCameraBackgroundBrush.h +++ b/core/2d/CCCameraBackgroundBrush.h @@ -35,7 +35,7 @@ #include "renderer/backend/Types.h" #include -NS_CC_BEGIN +NS_AX_BEGIN class CameraBackgroundColorBrush; class CameraBackgroundDepthBrush; @@ -322,4 +322,4 @@ private: } _stateBlock; }; -NS_CC_END +NS_AX_END diff --git a/core/2d/CCClippingNode.cpp b/core/2d/CCClippingNode.cpp index 20469d2b67..c1cc0dcdb3 100644 --- a/core/2d/CCClippingNode.cpp +++ b/core/2d/CCClippingNode.cpp @@ -32,7 +32,7 @@ #include "base/CCDirector.h" #include "base/CCStencilStateManager.h" -NS_CC_BEGIN +NS_AX_BEGIN ClippingNode::ClippingNode() : _stencil(nullptr), _stencilStateManager(new StencilStateManager()) {} @@ -337,4 +337,4 @@ void ClippingNode::restoreAllProgramStates() } } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCClippingNode.h b/core/2d/CCClippingNode.h index d6d5eaf1f9..16901a2ad0 100644 --- a/core/2d/CCClippingNode.h +++ b/core/2d/CCClippingNode.h @@ -32,7 +32,7 @@ #include "renderer/CCCustomCommand.h" #include "renderer/CCCallbackCommand.h" #include -NS_CC_BEGIN +NS_AX_BEGIN class StencilStateManager; /** @@ -169,4 +169,4 @@ private: CC_DISALLOW_COPY_AND_ASSIGN(ClippingNode); }; /** @} */ -NS_CC_END +NS_AX_END diff --git a/core/2d/CCClippingRectangleNode.cpp b/core/2d/CCClippingRectangleNode.cpp index a2b7361a43..60f68536f4 100644 --- a/core/2d/CCClippingRectangleNode.cpp +++ b/core/2d/CCClippingRectangleNode.cpp @@ -27,7 +27,7 @@ #include "math/Vec2.h" #include "platform/CCGLView.h" -NS_CC_BEGIN +NS_AX_BEGIN ClippingRectangleNode* ClippingRectangleNode::create(const Rect& clippingRegion) { @@ -105,4 +105,4 @@ void ClippingRectangleNode::visit(Renderer* renderer, const Mat4& parentTransfor renderer->addCommand(afterVisitCmdScissor); } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCClippingRectangleNode.h b/core/2d/CCClippingRectangleNode.h index 4b2774a888..d4c849f517 100644 --- a/core/2d/CCClippingRectangleNode.h +++ b/core/2d/CCClippingRectangleNode.h @@ -30,7 +30,7 @@ #include "2d/CCNode.h" #include "renderer/CCCallbackCommand.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup _2d @@ -102,4 +102,4 @@ protected: // end of _2d group /// @} -NS_CC_END +NS_AX_END diff --git a/core/2d/CCComponent.cpp b/core/2d/CCComponent.cpp index 46b950bc64..5222172b32 100644 --- a/core/2d/CCComponent.cpp +++ b/core/2d/CCComponent.cpp @@ -25,7 +25,7 @@ THE SOFTWARE. #include "2d/CCComponent.h" -NS_CC_BEGIN +NS_AX_BEGIN Component::Component() : _owner(nullptr), _enabled(true) {} @@ -77,4 +77,4 @@ void Component::setEnabled(bool enabled) _enabled = enabled; } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCComponent.h b/core/2d/CCComponent.h index 3f085bab36..fc79a90d63 100644 --- a/core/2d/CCComponent.h +++ b/core/2d/CCComponent.h @@ -31,7 +31,7 @@ THE SOFTWARE. #include "base/CCRef.h" #include "base/CCScriptSupport.h" -NS_CC_BEGIN +NS_AX_BEGIN class Node; @@ -85,7 +85,7 @@ protected: bool _enabled; }; -NS_CC_END +NS_AX_END /// @endcond #endif // __CC_FRAMEWORK_COMPONENT_H__ diff --git a/core/2d/CCComponentContainer.cpp b/core/2d/CCComponentContainer.cpp index 52d7903ff0..50993f5ffb 100644 --- a/core/2d/CCComponentContainer.cpp +++ b/core/2d/CCComponentContainer.cpp @@ -27,7 +27,7 @@ THE SOFTWARE. #include "2d/CCComponent.h" #include "2d/CCNode.h" -NS_CC_BEGIN +NS_AX_BEGIN ComponentContainer::ComponentContainer(Node* node) : _owner(node) {} @@ -141,4 +141,4 @@ void ComponentContainer::onExit() } } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCComponentContainer.h b/core/2d/CCComponentContainer.h index 5da8fcb517..89f9afa86e 100644 --- a/core/2d/CCComponentContainer.h +++ b/core/2d/CCComponentContainer.h @@ -31,7 +31,7 @@ THE SOFTWARE. #include "base/CCMap.h" #include -NS_CC_BEGIN +NS_AX_BEGIN class Component; class Node; @@ -74,7 +74,7 @@ private: friend class Node; }; -NS_CC_END +NS_AX_END /// @endcond #endif // __CC_FRAMEWORK_COMCONTAINER_H__ diff --git a/core/2d/CCDrawNode.cpp b/core/2d/CCDrawNode.cpp index 154d9aca8b..1e85611338 100644 --- a/core/2d/CCDrawNode.cpp +++ b/core/2d/CCDrawNode.cpp @@ -37,7 +37,7 @@ #include "renderer/ccShaders.h" #include "renderer/backend/ProgramState.h" -NS_CC_BEGIN +NS_AX_BEGIN static inline Tex2F v2ToTex2F(const Vec2& v) { @@ -822,4 +822,4 @@ void DrawNode::visit(Renderer* renderer, const Mat4& parentTransform, uint32_t p } } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCDrawNode.h b/core/2d/CCDrawNode.h index a07fd7ec3c..049cd93c0b 100644 --- a/core/2d/CCDrawNode.h +++ b/core/2d/CCDrawNode.h @@ -39,7 +39,7 @@ #include "math/CCMath.h" #include "base/any_buffer.h" -NS_CC_BEGIN +NS_AX_BEGIN static const int DEFAULT_LINE_WIDTH = 2; @@ -415,6 +415,6 @@ private: CC_DISALLOW_COPY_AND_ASSIGN(DrawNode); }; /** @} */ -NS_CC_END +NS_AX_END #endif // __CCDRAWNODES_CCDRAW_NODE_H__ diff --git a/core/2d/CCFastTMXLayer.cpp b/core/2d/CCFastTMXLayer.cpp index 93e07779bc..22265096a6 100644 --- a/core/2d/CCFastTMXLayer.cpp +++ b/core/2d/CCFastTMXLayer.cpp @@ -50,7 +50,7 @@ THE SOFTWARE. #include "base/ccUTF8.h" #include "renderer/backend/ProgramState.h" -NS_CC_BEGIN +NS_AX_BEGIN const int FastTMXLayer::FAST_TMX_ORIENTATION_ORTHO = 0; const int FastTMXLayer::FAST_TMX_ORIENTATION_HEX = 1; @@ -1055,4 +1055,4 @@ TMXTileAnimTask* TMXTileAnimTask::create(FastTMXLayer* layer, TMXTileAnimInfo* a return ret; } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCFastTMXLayer.h b/core/2d/CCFastTMXLayer.h index 4d3b22b122..8c0adb5439 100644 --- a/core/2d/CCFastTMXLayer.h +++ b/core/2d/CCFastTMXLayer.h @@ -33,7 +33,7 @@ THE SOFTWARE. #include "2d/CCTMXXMLParser.h" #include "renderer/CCCustomCommand.h" -NS_CC_BEGIN +NS_AX_BEGIN class TMXMapInfo; class TMXLayerInfo; @@ -444,4 +444,4 @@ typedef FastTMXLayer TMXLayer; // end of tilemap_parallax_nodes group /// @} -NS_CC_END +NS_AX_END diff --git a/core/2d/CCFastTMXTiledMap.cpp b/core/2d/CCFastTMXTiledMap.cpp index 10e3195784..ba63586670 100644 --- a/core/2d/CCFastTMXTiledMap.cpp +++ b/core/2d/CCFastTMXTiledMap.cpp @@ -29,7 +29,7 @@ THE SOFTWARE. #include "2d/CCFastTMXLayer.h" #include "base/ccUTF8.h" -NS_CC_BEGIN +NS_AX_BEGIN // implementation FastTMXTiledMap @@ -274,4 +274,4 @@ void FastTMXTiledMap::setTileAnimEnabled(bool enabled) } } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCFastTMXTiledMap.h b/core/2d/CCFastTMXTiledMap.h index f97c0314f2..d4aeb26de2 100644 --- a/core/2d/CCFastTMXTiledMap.h +++ b/core/2d/CCFastTMXTiledMap.h @@ -30,7 +30,7 @@ THE SOFTWARE. #include "2d/CCNode.h" #include "2d/CCTMXObjectGroup.h" -NS_CC_BEGIN +NS_AX_BEGIN class TMXLayerInfo; class TMXTilesetInfo; @@ -258,4 +258,4 @@ private: // @API compatible typedef FastTMXTiledMap TMXTiledMap; -NS_CC_END +NS_AX_END diff --git a/core/2d/CCFont.h b/core/2d/CCFont.h index 1e541fa72d..e699b03dbd 100644 --- a/core/2d/CCFont.h +++ b/core/2d/CCFont.h @@ -34,7 +34,7 @@ #include "base/ccTypes.h" #include "base/ccUTF8.h" -NS_CC_BEGIN +NS_AX_BEGIN class FontAtlas; @@ -46,7 +46,7 @@ public: virtual int getFontMaxHeight() const { return 0; } }; -NS_CC_END +NS_AX_END /// @endcond #endif diff --git a/core/2d/CCFontAtlas.cpp b/core/2d/CCFontAtlas.cpp index 2cce993b53..850e1f3360 100644 --- a/core/2d/CCFontAtlas.cpp +++ b/core/2d/CCFontAtlas.cpp @@ -38,7 +38,7 @@ #include "base/CCEventDispatcher.h" #include "base/CCEventType.h" -NS_CC_BEGIN +NS_AX_BEGIN const int FontAtlas::CacheTextureWidth = 512; const int FontAtlas::CacheTextureHeight = 512; @@ -428,4 +428,4 @@ void FontAtlas::setAntiAliasTexParameters() } } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCFontAtlas.h b/core/2d/CCFontAtlas.h index 4e11f5a073..eb2b6bb96e 100644 --- a/core/2d/CCFontAtlas.h +++ b/core/2d/CCFontAtlas.h @@ -38,7 +38,7 @@ #include "platform/CCStdC.h" // ssize_t on windows #include "renderer/CCTexture2D.h" -NS_CC_BEGIN +NS_AX_BEGIN class Font; class EventCustom; @@ -167,7 +167,7 @@ protected: friend class Label; }; -NS_CC_END +NS_AX_END /// @endcond #endif /* defined(__cocos2d_libs__CCFontAtlas__) */ diff --git a/core/2d/CCFontAtlasCache.cpp b/core/2d/CCFontAtlasCache.cpp index fb18a05c49..752c7b133b 100644 --- a/core/2d/CCFontAtlasCache.cpp +++ b/core/2d/CCFontAtlasCache.cpp @@ -34,7 +34,7 @@ #include "2d/CCLabel.h" #include "platform/CCFileUtils.h" -NS_CC_BEGIN +NS_AX_BEGIN hlookup::string_map FontAtlasCache::_atlasMap; #define ATLAS_MAP_KEY_PREFIX_BUFFER_SIZE 255 @@ -305,4 +305,4 @@ void FontAtlasCache::unloadFontAtlasTTF(std::string_view fontFileName) } } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCFontAtlasCache.h b/core/2d/CCFontAtlasCache.h index 1cec23b7c9..3a93dbd114 100644 --- a/core/2d/CCFontAtlasCache.h +++ b/core/2d/CCFontAtlasCache.h @@ -32,7 +32,7 @@ #include #include "base/ccTypes.h" -NS_CC_BEGIN +NS_AX_BEGIN class FontAtlas; class Texture2D; @@ -81,7 +81,7 @@ private: static hlookup::string_map _atlasMap; }; -NS_CC_END +NS_AX_END /// @endcond #endif diff --git a/core/2d/CCFontCharMap.cpp b/core/2d/CCFontCharMap.cpp index 3aa970026d..2f56e84683 100644 --- a/core/2d/CCFontCharMap.cpp +++ b/core/2d/CCFontCharMap.cpp @@ -31,7 +31,7 @@ #include "base/CCDirector.h" #include "renderer/CCTextureCache.h" -NS_CC_BEGIN +NS_AX_BEGIN FontCharMap* FontCharMap::create(std::string_view plistFile) { @@ -142,4 +142,4 @@ FontAtlas* FontCharMap::newFontAtlas() return tempAtlas; } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCFontCharMap.h b/core/2d/CCFontCharMap.h index 464742b20d..0fa84b71d2 100644 --- a/core/2d/CCFontCharMap.h +++ b/core/2d/CCFontCharMap.h @@ -32,7 +32,7 @@ #include "2d/CCFont.h" -NS_CC_BEGIN +NS_AX_BEGIN class Texture2D; class FontCharMap : public Font @@ -64,6 +64,6 @@ private: /// @endcond -NS_CC_END +NS_AX_END #endif /* defined(_CCFontCharMap_h_) */ diff --git a/core/2d/CCFontFNT.cpp b/core/2d/CCFontFNT.cpp index c8c2c39ee3..4d77b9b4c7 100644 --- a/core/2d/CCFontFNT.cpp +++ b/core/2d/CCFontFNT.cpp @@ -37,7 +37,7 @@ #include -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup GUI @@ -783,4 +783,4 @@ void FontFNT::reloadBMFontResource(std::string_view fntFilePath) } } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCFontFNT.h b/core/2d/CCFontFNT.h index ce65b017c4..0c5e854780 100644 --- a/core/2d/CCFontFNT.h +++ b/core/2d/CCFontFNT.h @@ -34,7 +34,7 @@ #include #include -NS_CC_BEGIN +NS_AX_BEGIN /** @struct BMFontDef @@ -188,6 +188,6 @@ protected: /// @endcond -NS_CC_END +NS_AX_END #endif /* defined(__cocos2d_libs__CCFontFNT__) */ diff --git a/core/2d/CCFontFreeType.cpp b/core/2d/CCFontFreeType.cpp index eee2714555..d6328b08a6 100644 --- a/core/2d/CCFontFreeType.cpp +++ b/core/2d/CCFontFreeType.cpp @@ -39,7 +39,7 @@ THE SOFTWARE. #include FT_BBOX_H #include FT_FONT_FORMATS_H -NS_CC_BEGIN +NS_AX_BEGIN FT_Library FontFreeType::_FTlibrary; bool FontFreeType::_FTInitialized = false; @@ -295,7 +295,7 @@ bool FontFreeType::loadFontFace(std::string_view fontPath, float fontSize) FT_Done_Face(face); - cocos2d::log("Init font '%s' failed, only unicode ttf/ttc was supported.", fontPath.data()); + axis::log("Init font '%s' failed, only unicode ttf/ttc was supported.", fontPath.data()); return false; } @@ -394,11 +394,11 @@ unsigned char* FontFreeType::getGlyphBitmap(char32_t charCode, char32_t ntcs[2] = {charCode, (char32_t)0}; std::u32string_view charUTF32(ntcs, 1); std::string charUTF8; - cocos2d::StringUtils::UTF32ToUTF8(charUTF32, charUTF8); + axis::StringUtils::UTF32ToUTF8(charUTF32, charUTF8); if (charUTF8 == "\n") charUTF8 = "\\n"; - cocos2d::log("The font face: %s doesn't contains char: <%s>", _fontFace->charmap->face->family_name, + axis::log("The font face: %s doesn't contains char: <%s>", _fontFace->charmap->face->family_name, charUTF8.c_str()); if (_mssingGlyphCharacter != 0) @@ -609,15 +609,15 @@ std::string_view FontFreeType::getGlyphCollection() const std::string_view glyphCollection; switch (_usedGlyphs) { - case cocos2d::GlyphCollection::DYNAMIC: + case axis::GlyphCollection::DYNAMIC: break; - case cocos2d::GlyphCollection::NEHE: + case axis::GlyphCollection::NEHE: glyphCollection = _glyphNEHE; break; - case cocos2d::GlyphCollection::ASCII: + case axis::GlyphCollection::ASCII: glyphCollection = _glyphASCII; break; - case cocos2d::GlyphCollection::CUSTOM: + case axis::GlyphCollection::CUSTOM: glyphCollection = _customGlyphs; break; default: @@ -639,4 +639,4 @@ void FontFreeType::releaseFont(std::string_view fontName) } } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCFontFreeType.h b/core/2d/CCFontFreeType.h index f2e5a6d3e7..b7fc133856 100644 --- a/core/2d/CCFontFreeType.h +++ b/core/2d/CCFontFreeType.h @@ -40,7 +40,7 @@ typedef struct FT_FaceRec_* FT_Face; typedef struct FT_StrokerRec_* FT_Stroker; typedef struct FT_BBox_ FT_BBox; -NS_CC_BEGIN +NS_AX_BEGIN class CC_DLL FontFreeType : public Font { @@ -146,6 +146,6 @@ private: /// @endcond -NS_CC_END +NS_AX_END #endif diff --git a/core/2d/CCGrid.cpp b/core/2d/CCGrid.cpp index 29f49b45eb..0818c70f53 100644 --- a/core/2d/CCGrid.cpp +++ b/core/2d/CCGrid.cpp @@ -38,7 +38,7 @@ THE SOFTWARE. #include "renderer/backend/RenderTarget.h" #include "2d/CCCamera.h" -NS_CC_BEGIN +NS_AX_BEGIN // implementation of GridBase bool GridBase::initWithSize(const Vec2& gridSize) @@ -46,7 +46,7 @@ bool GridBase::initWithSize(const Vec2& gridSize) return initWithSize(gridSize, Rect::ZERO); } -bool GridBase::initWithSize(const Vec2& gridSize, const cocos2d::Rect& rect) +bool GridBase::initWithSize(const Vec2& gridSize, const axis::Rect& rect) { Director* director = Director::getInstance(); Vec2 s = director->getWinSizeInPixels(); @@ -194,7 +194,7 @@ void GridBase::set2DProjection() director->loadIdentityMatrix(MATRIX_STACK_TYPE::MATRIX_STACK_MODELVIEW); } -void GridBase::setGridRect(const cocos2d::Rect& rect) +void GridBase::setGridRect(const axis::Rect& rect) { _gridRect = rect; } @@ -227,7 +227,7 @@ void GridBase::beforeDraw() renderer->clear(TargetBufferFlags::COLOR, _clearColor, 1, 0, 0.0); } -void GridBase::afterDraw(cocos2d::Node* /*target*/) +void GridBase::afterDraw(axis::Node* /*target*/) { // restore projection Director* director = Director::getInstance(); @@ -380,7 +380,7 @@ void Grid3D::blit() updateVertexBuffer(); _drawCommand.init(0, _blendFunc); Director::getInstance()->getRenderer()->addCommand(&_drawCommand); - cocos2d::Mat4 projectionMat = Director::getInstance()->getMatrix(MATRIX_STACK_TYPE::MATRIX_STACK_PROJECTION); + axis::Mat4 projectionMat = Director::getInstance()->getMatrix(MATRIX_STACK_TYPE::MATRIX_STACK_PROJECTION); auto programState = _drawCommand.getPipelineDescriptor().programState; programState->setUniform(_mvpMatrixLocation, projectionMat.m, sizeof(projectionMat.m)); programState->setTexture(_textureLocation, 0, _texture->getBackendTexture()); @@ -630,7 +630,7 @@ void TiledGrid3D::blit() { updateVertexBuffer(); Director::getInstance()->getRenderer()->addCommand(&_drawCommand); - cocos2d::Mat4 projectionMat = Director::getInstance()->getMatrix(MATRIX_STACK_TYPE::MATRIX_STACK_PROJECTION); + axis::Mat4 projectionMat = Director::getInstance()->getMatrix(MATRIX_STACK_TYPE::MATRIX_STACK_PROJECTION); auto programState = _drawCommand.getPipelineDescriptor().programState; programState->setUniform(_mvpMatrixLocation, projectionMat.m, sizeof(projectionMat.m)); programState->setTexture(_textureLocation, 0, _texture->getBackendTexture()); @@ -795,4 +795,4 @@ void TiledGrid3D::updateVertexAndTexCoordinate() _drawCommand.updateIndexBuffer(_indices, gradSize * 6 * sizeof(unsigned short)); } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCGrid.h b/core/2d/CCGrid.h index 74474cab88..07aaa769cc 100644 --- a/core/2d/CCGrid.h +++ b/core/2d/CCGrid.h @@ -34,7 +34,7 @@ THE SOFTWARE. #include "renderer/CCCustomCommand.h" #include "renderer/CCCallbackCommand.h" -NS_CC_BEGIN +NS_AX_BEGIN class Texture2D; // class Grabber; @@ -310,4 +310,4 @@ protected: // end of effects group /// @} -NS_CC_END +NS_AX_END diff --git a/core/2d/CCLabel.cpp b/core/2d/CCLabel.cpp index 7aaf5a8d75..07417f0b09 100644 --- a/core/2d/CCLabel.cpp +++ b/core/2d/CCLabel.cpp @@ -50,7 +50,7 @@ #include "renderer/backend/ProgramState.h" #include "renderer/backend/ProgramStateRegistry.h" -NS_CC_BEGIN +NS_AX_BEGIN namespace { @@ -728,7 +728,7 @@ void Label::updateShaderProgram() { switch (_currLabelEffect) { - case cocos2d::LabelEffect::NORMAL: + case axis::LabelEffect::NORMAL: if (_useDistanceField) { programType = backend::ProgramType::LABEL_DISTANCE_NORMAL; @@ -747,12 +747,12 @@ void Label::updateShaderProgram() } } break; - case cocos2d::LabelEffect::OUTLINE: + case axis::LabelEffect::OUTLINE: { programType = backend::ProgramType::LABLE_OUTLINE; } break; - case cocos2d::LabelEffect::GLOW: + case axis::LabelEffect::GLOW: if (_useDistanceField) { programType = backend::ProgramType::LABLE_DISTANCEFIELD_GLOW; @@ -1525,9 +1525,9 @@ void Label::disableEffect(LabelEffect effect) { switch (effect) { - case cocos2d::LabelEffect::NORMAL: + case axis::LabelEffect::NORMAL: break; - case cocos2d::LabelEffect::OUTLINE: + case axis::LabelEffect::OUTLINE: if (_currLabelEffect == LabelEffect::OUTLINE) { if (_currentLabelType == LabelType::TTF) @@ -1539,7 +1539,7 @@ void Label::disableEffect(LabelEffect effect) _contentDirty = true; } break; - case cocos2d::LabelEffect::SHADOW: + case axis::LabelEffect::SHADOW: if (_shadowEnabled) { _shadowEnabled = false; @@ -1547,17 +1547,17 @@ void Label::disableEffect(LabelEffect effect) updateShaderProgram(); } break; - case cocos2d::LabelEffect::GLOW: + case axis::LabelEffect::GLOW: if (_currLabelEffect == LabelEffect::GLOW) { _currLabelEffect = LabelEffect::NORMAL; updateShaderProgram(); } break; - case cocos2d::LabelEffect::ITALICS: + case axis::LabelEffect::ITALICS: setRotationSkewX(0); break; - case cocos2d::LabelEffect::BOLD: + case axis::LabelEffect::BOLD: if (_boldEnabled) { _boldEnabled = false; @@ -1565,14 +1565,14 @@ void Label::disableEffect(LabelEffect effect) disableEffect(LabelEffect::SHADOW); } break; - case cocos2d::LabelEffect::UNDERLINE: + case axis::LabelEffect::UNDERLINE: if (_underlineNode) { removeChild(_underlineNode); _underlineNode = nullptr; } break; - case cocos2d::LabelEffect::STRIKETHROUGH: + case axis::LabelEffect::STRIKETHROUGH: _strikethroughEnabled = false; // since it is based on underline, disable it as well disableEffect(LabelEffect::UNDERLINE); @@ -1937,7 +1937,7 @@ void Label::draw(Renderer* renderer, const Mat4& transform, uint32_t flags) if (_insideBounds) #endif { - cocos2d::Mat4 matrixProjection = _director->getMatrix(MATRIX_STACK_TYPE::MATRIX_STACK_PROJECTION); + axis::Mat4 matrixProjection = _director->getMatrix(MATRIX_STACK_TYPE::MATRIX_STACK_PROJECTION); if (!_shadowEnabled && (_currentLabelType == LabelType::BMFONT || _currentLabelType == LabelType::CHARMAP)) { updateBlendState(); @@ -1960,7 +1960,7 @@ void Label::draw(Renderer* renderer, const Mat4& transform, uint32_t flags) } else { - cocos2d::Mat4 matrixMVP = matrixProjection * transform; + axis::Mat4 matrixMVP = matrixProjection * transform; for (auto&& it : _letters) { @@ -2388,7 +2388,7 @@ void Label::updateColor() color4.b *= _displayedOpacity / 255.0f; } - cocos2d::TextureAtlas* textureAtlas; + axis::TextureAtlas* textureAtlas; V3F_C4B_T2F_Quad* quads; for (auto&& batchNode : _batchNodes) { @@ -2636,4 +2636,4 @@ void Label::updateLetterSpriteScale(Sprite* sprite) } } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCLabel.h b/core/2d/CCLabel.h index b170884ade..26ff70520c 100644 --- a/core/2d/CCLabel.h +++ b/core/2d/CCLabel.h @@ -34,7 +34,7 @@ #include "2d/CCFontAtlas.h" #include "base/ccTypes.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup _2d @@ -775,7 +775,7 @@ protected: void computeAlignmentOffset(); bool computeHorizontalKernings(const std::u32string& stringToRender); - void recordLetterInfo(const cocos2d::Vec2& point, char32_t utf32Char, int letterIndex, int lineIndex); + void recordLetterInfo(const axis::Vec2& point, char32_t utf32Char, int letterIndex, int lineIndex); void recordPlaceholderInfo(int letterIndex, char32_t utf16Char); bool updateQuads(); @@ -926,6 +926,6 @@ private: // end group /// @} -NS_CC_END +NS_AX_END #endif /*__COCOS2D_CCLABEL_H */ diff --git a/core/2d/CCLabelAtlas.cpp b/core/2d/CCLabelAtlas.cpp index 313c116631..7cf365f084 100644 --- a/core/2d/CCLabelAtlas.cpp +++ b/core/2d/CCLabelAtlas.cpp @@ -36,7 +36,7 @@ THE SOFTWARE. # include "renderer/CCRenderer.h" #endif -NS_CC_BEGIN +NS_AX_BEGIN // CCLabelAtlas - Creation & Init @@ -286,4 +286,4 @@ std::string LabelAtlas::getDescription() const return StringUtils::format("", _tag, _string.c_str()); } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCLabelAtlas.h b/core/2d/CCLabelAtlas.h index 43f75574c3..15d7e0284a 100644 --- a/core/2d/CCLabelAtlas.h +++ b/core/2d/CCLabelAtlas.h @@ -33,7 +33,7 @@ THE SOFTWARE. # include "renderer/CCCustomCommand.h" # include "2d/CCDrawNode.h" #endif -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup _2d @@ -137,6 +137,6 @@ protected: // end group /// @} -NS_CC_END +NS_AX_END #endif //__CCLABEL_ATLAS_H__ diff --git a/core/2d/CCLabelTextFormatter.cpp b/core/2d/CCLabelTextFormatter.cpp index ad512d2ac6..559303b610 100644 --- a/core/2d/CCLabelTextFormatter.cpp +++ b/core/2d/CCLabelTextFormatter.cpp @@ -31,23 +31,23 @@ #include "2d/CCFontAtlas.h" #include "2d/CCFontFNT.h" -NS_CC_BEGIN +NS_AX_BEGIN void Label::computeAlignmentOffset() { _linesOffsetX.clear(); switch (_hAlignment) { - case cocos2d::TextHAlignment::LEFT: + case axis::TextHAlignment::LEFT: _linesOffsetX.assign(_numberOfLines, 0); break; - case cocos2d::TextHAlignment::CENTER: + case axis::TextHAlignment::CENTER: for (auto lineWidth : _linesWidth) { _linesOffsetX.push_back((_contentSize.width - lineWidth) / 2.f); } break; - case cocos2d::TextHAlignment::RIGHT: + case axis::TextHAlignment::RIGHT: for (auto lineWidth : _linesWidth) { _linesOffsetX.push_back(_contentSize.width - lineWidth); @@ -59,13 +59,13 @@ void Label::computeAlignmentOffset() switch (_vAlignment) { - case cocos2d::TextVAlignment::TOP: + case axis::TextVAlignment::TOP: _letterOffsetY = _contentSize.height; break; - case cocos2d::TextVAlignment::CENTER: + case axis::TextVAlignment::CENTER: _letterOffsetY = (_contentSize.height + _textDesiredHeight) / 2.f; break; - case cocos2d::TextVAlignment::BOTTOM: + case axis::TextVAlignment::BOTTOM: _letterOffsetY = _textDesiredHeight; break; default: @@ -421,7 +421,7 @@ void Label::shrinkLabelToContentSize(const std::function& lambda) } } -void Label::recordLetterInfo(const cocos2d::Vec2& point, char32_t utf32Char, int letterIndex, int lineIndex) +void Label::recordLetterInfo(const axis::Vec2& point, char32_t utf32Char, int letterIndex, int lineIndex) { if (static_cast(letterIndex) >= _lettersInfo.size()) { @@ -447,4 +447,4 @@ void Label::recordPlaceholderInfo(int letterIndex, char32_t utf32Char) _lettersInfo[letterIndex].valid = false; } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCLayer.cpp b/core/2d/CCLayer.cpp index 70f4705a34..7cdcf64c95 100644 --- a/core/2d/CCLayer.cpp +++ b/core/2d/CCLayer.cpp @@ -50,7 +50,7 @@ THE SOFTWARE. # include "platform/desktop/CCGLViewImpl-desktop.h" #endif -NS_CC_BEGIN +NS_AX_BEGIN Layer* Layer::create() { @@ -409,8 +409,8 @@ LayerRadialGradient::~LayerRadialGradient() CC_SAFE_RELEASE_NULL(_customCommand.getPipelineDescriptor().programState); } -bool LayerRadialGradient::initWithColor(const cocos2d::Color4B& startColor, - const cocos2d::Color4B& endColor, +bool LayerRadialGradient::initWithColor(const axis::Color4B& startColor, + const axis::Color4B& endColor, float radius, const Vec2& center, float expand) @@ -523,7 +523,7 @@ void LayerRadialGradient::setStartColor(const Color3B& color) setStartColor(Color4B(color)); } -void LayerRadialGradient::setStartColor(const cocos2d::Color4B& color) +void LayerRadialGradient::setStartColor(const axis::Color4B& color) { _startColor = color; convertColor4B24F(_startColorRend, _startColor); @@ -544,7 +544,7 @@ void LayerRadialGradient::setEndColor(const Color3B& color) setEndColor(Color4B(color)); } -void LayerRadialGradient::setEndColor(const cocos2d::Color4B& color) +void LayerRadialGradient::setEndColor(const axis::Color4B& color) { _endColor = color; convertColor4B24F(_endColorRend, _endColor); @@ -766,4 +766,4 @@ std::string LayerMultiplex::getDescription() const return StringUtils::format("(_children.size())); } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCLayer.h b/core/2d/CCLayer.h index a6458dd935..4575b72e8e 100644 --- a/core/2d/CCLayer.h +++ b/core/2d/CCLayer.h @@ -33,7 +33,7 @@ THE SOFTWARE. #include -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup _2d @@ -445,4 +445,4 @@ private: // end of _2d group /// @} -NS_CC_END +NS_AX_END diff --git a/core/2d/CCLight.cpp b/core/2d/CCLight.cpp index 2ca7e8c68d..d5e6ef8ba7 100644 --- a/core/2d/CCLight.cpp +++ b/core/2d/CCLight.cpp @@ -25,7 +25,7 @@ #include "2d/CCLight.h" #include "2d/CCScene.h" -NS_CC_BEGIN +NS_AX_BEGIN void BaseLight::setIntensity(float intensity) { @@ -176,4 +176,4 @@ AmbientLight::AmbientLight() {} AmbientLight::~AmbientLight() {} -NS_CC_END \ No newline at end of file +NS_AX_END \ No newline at end of file diff --git a/core/2d/CCLight.h b/core/2d/CCLight.h index 6ae68f6796..67ca1e1a4e 100644 --- a/core/2d/CCLight.h +++ b/core/2d/CCLight.h @@ -28,7 +28,7 @@ #include "2d/CCNode.h" -NS_CC_BEGIN +NS_AX_BEGIN enum class LightType { @@ -288,6 +288,6 @@ public: virtual ~AmbientLight(); }; -NS_CC_END +NS_AX_END #endif \ No newline at end of file diff --git a/core/2d/CCMenu.cpp b/core/2d/CCMenu.cpp index 69d334f1a8..85d5a7c709 100644 --- a/core/2d/CCMenu.cpp +++ b/core/2d/CCMenu.cpp @@ -37,7 +37,7 @@ THE SOFTWARE. using namespace std; -NS_CC_BEGIN +NS_AX_BEGIN enum { @@ -557,4 +557,4 @@ std::string Menu::getDescription() const return StringUtils::format("", _tag); } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCMenu.h b/core/2d/CCMenu.h index c106d195ca..a288360a4d 100644 --- a/core/2d/CCMenu.h +++ b/core/2d/CCMenu.h @@ -31,7 +31,7 @@ THE SOFTWARE. #include "2d/CCLayer.h" #include "base/CCValue.h" -NS_CC_BEGIN +NS_AX_BEGIN class Touch; /** @@ -185,6 +185,6 @@ private: // end of _2d group /// @} -NS_CC_END +NS_AX_END #endif //__CCMENU_H_ diff --git a/core/2d/CCMenuItem.cpp b/core/2d/CCMenuItem.cpp index fadca4945c..6bfab4ce64 100644 --- a/core/2d/CCMenuItem.cpp +++ b/core/2d/CCMenuItem.cpp @@ -34,7 +34,7 @@ THE SOFTWARE. #include "base/ccUTF8.h" #include -NS_CC_BEGIN +NS_AX_BEGIN static int _globalFontSize = kItemSize; static std::string _globalFontName = "Marker Felt"; @@ -867,4 +867,4 @@ MenuItem* MenuItemToggle::getSelectedItem() return _subItems.at(_selectedIndex); } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCMenuItem.h b/core/2d/CCMenuItem.h index e9dff50a0a..a75648a545 100644 --- a/core/2d/CCMenuItem.h +++ b/core/2d/CCMenuItem.h @@ -36,7 +36,7 @@ THE SOFTWARE. #include "2d/CCNode.h" #include "base/CCProtocols.h" -NS_CC_BEGIN +NS_AX_BEGIN typedef std::function ccMenuCallback; @@ -507,6 +507,6 @@ private: // end of 2d group /// @} -NS_CC_END +NS_AX_END #endif //__CCMENU_ITEM_H__ diff --git a/core/2d/CCMotionStreak.cpp b/core/2d/CCMotionStreak.cpp index 92450139cd..053f211086 100644 --- a/core/2d/CCMotionStreak.cpp +++ b/core/2d/CCMotionStreak.cpp @@ -34,7 +34,7 @@ THE SOFTWARE. #include "renderer/ccShaders.h" #include "renderer/backend/ProgramState.h" -NS_CC_BEGIN +NS_AX_BEGIN MotionStreak::MotionStreak() { @@ -438,4 +438,4 @@ void MotionStreak::draw(Renderer* renderer, const Mat4& transform, uint32_t flag } } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCMotionStreak.h b/core/2d/CCMotionStreak.h index 99c40e8211..1340fec9b5 100644 --- a/core/2d/CCMotionStreak.h +++ b/core/2d/CCMotionStreak.h @@ -30,7 +30,7 @@ THE SOFTWARE. #include "2d/CCNode.h" #include "renderer/CCCustomCommand.h" -NS_CC_BEGIN +NS_AX_BEGIN class Texture2D; @@ -206,4 +206,4 @@ private: // end of _2d group /// @} -NS_CC_END +NS_AX_END diff --git a/core/2d/CCNode.cpp b/core/2d/CCNode.cpp index 3fb60ff5d9..cf5bb7ca20 100644 --- a/core/2d/CCNode.cpp +++ b/core/2d/CCNode.cpp @@ -58,7 +58,7 @@ THE SOFTWARE. */ #define CC_HASH_NODE_NAME(name) (!name.empty() ? XXH3_64bits(name.data(), name.length()) : 0) -NS_CC_BEGIN +NS_AX_BEGIN // FIXME:: Yes, nodes might have a sort problem once every 30 days if the game runs at 60 FPS and each frame sprites are // reordered. @@ -2247,4 +2247,4 @@ backend::ProgramState* Node::getProgramState() const return _programState; } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCNode.h b/core/2d/CCNode.h index 60f53bf521..3b467fadd8 100644 --- a/core/2d/CCNode.h +++ b/core/2d/CCNode.h @@ -45,7 +45,7 @@ # include "physics/CCPhysicsBody.h" #endif -NS_CC_BEGIN +NS_AX_BEGIN class GridBase; class Touch; @@ -946,7 +946,7 @@ public: * */ template - inline static void sortNodes(cocos2d::Vector<_T*>& nodes) + inline static void sortNodes(axis::Vector<_T*>& nodes) { static_assert(std::is_base_of::value, "Node::sortNodes: Only accept derived of Node!"); #if CC_64BITS @@ -2048,6 +2048,6 @@ bool CC_DLL isScreenPointInRect(const Vec2& pt, const Camera* camera, const Mat4 // end of _2d group /// @} -NS_CC_END +NS_AX_END #endif // __CCNODE_H__ diff --git a/core/2d/CCNodeGrid.cpp b/core/2d/CCNodeGrid.cpp index 4836f3c311..6ef17ddf29 100644 --- a/core/2d/CCNodeGrid.cpp +++ b/core/2d/CCNodeGrid.cpp @@ -26,7 +26,7 @@ #include "2d/CCGrid.h" #include "renderer/CCRenderer.h" -NS_CC_BEGIN +NS_AX_BEGIN NodeGrid* NodeGrid::create() { @@ -42,7 +42,7 @@ NodeGrid* NodeGrid::create() return ret; } -NodeGrid* NodeGrid::create(const cocos2d::Rect& rect) +NodeGrid* NodeGrid::create(const axis::Rect& rect) { NodeGrid* ret = NodeGrid::create(); if (ret) @@ -178,4 +178,4 @@ void NodeGrid::setGrid(GridBase* grid) _nodeGrid = grid; } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCNodeGrid.h b/core/2d/CCNodeGrid.h index 9d2f0e201d..2f5eb54503 100644 --- a/core/2d/CCNodeGrid.h +++ b/core/2d/CCNodeGrid.h @@ -28,7 +28,7 @@ #include "renderer/CCGroupCommand.h" #include "renderer/CCCustomCommand.h" -NS_CC_BEGIN +NS_AX_BEGIN class GridBase; /** @@ -107,4 +107,4 @@ private: CC_DISALLOW_COPY_AND_ASSIGN(NodeGrid); }; /** @} */ -NS_CC_END +NS_AX_END diff --git a/core/2d/CCParallaxNode.cpp b/core/2d/CCParallaxNode.cpp index 43203a6fbe..a03edf9153 100644 --- a/core/2d/CCParallaxNode.cpp +++ b/core/2d/CCParallaxNode.cpp @@ -28,7 +28,7 @@ THE SOFTWARE. #include "2d/CCParallaxNode.h" #include "base/ccCArray.h" -NS_CC_BEGIN +NS_AX_BEGIN class PointObject : public Ref { @@ -167,4 +167,4 @@ void ParallaxNode::visit(Renderer* renderer, const Mat4& parentTransform, uint32 Node::visit(renderer, parentTransform, parentFlags); } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCParallaxNode.h b/core/2d/CCParallaxNode.h index a2bc9a0a87..ef4a3008a5 100644 --- a/core/2d/CCParallaxNode.h +++ b/core/2d/CCParallaxNode.h @@ -31,7 +31,7 @@ THE SOFTWARE. #include "2d/CCNode.h" /*#include "ccArray.h"*/ -NS_CC_BEGIN +NS_AX_BEGIN struct _ccArray; @@ -113,6 +113,6 @@ private: // end of _2d group /// @} -NS_CC_END +NS_AX_END #endif //__CCPARALLAX_NODE_H__ diff --git a/core/2d/CCParticleBatchNode.cpp b/core/2d/CCParticleBatchNode.cpp index 18632f4c2d..5afcbcc5ef 100644 --- a/core/2d/CCParticleBatchNode.cpp +++ b/core/2d/CCParticleBatchNode.cpp @@ -45,7 +45,7 @@ #include "renderer/ccShaders.h" #include "renderer/backend/ProgramState.h" -NS_CC_BEGIN +NS_AX_BEGIN ParticleBatchNode::ParticleBatchNode() { @@ -455,7 +455,7 @@ void ParticleBatchNode::draw(Renderer* renderer, const Mat4& transform, uint32_t _customCommand.init(_globalZOrder, _blendFunc); // Texture is set in TextureAtlas. - const cocos2d::Mat4& projectionMat = _director->getMatrix(MATRIX_STACK_TYPE::MATRIX_STACK_PROJECTION); + const axis::Mat4& projectionMat = _director->getMatrix(MATRIX_STACK_TYPE::MATRIX_STACK_PROJECTION); Mat4 finalMat = projectionMat * transform; auto programState = _customCommand.getPipelineDescriptor().programState; programState->setUniform(_mvpMatrixLocaiton, finalMat.m, sizeof(finalMat.m)); @@ -583,4 +583,4 @@ const BlendFunc& ParticleBatchNode::getBlendFunc() const return _blendFunc; } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCParticleBatchNode.h b/core/2d/CCParticleBatchNode.h index bf51f974df..03539690fa 100644 --- a/core/2d/CCParticleBatchNode.h +++ b/core/2d/CCParticleBatchNode.h @@ -34,7 +34,7 @@ #include "base/CCProtocols.h" #include "renderer/CCCustomCommand.h" -NS_CC_BEGIN +NS_AX_BEGIN class Texture2D; class TextureAtlas; @@ -190,4 +190,4 @@ private: // end of _2d group /// @} -NS_CC_END +NS_AX_END diff --git a/core/2d/CCParticleExamples.cpp b/core/2d/CCParticleExamples.cpp index b77b04cbd9..4ec7944b69 100644 --- a/core/2d/CCParticleExamples.cpp +++ b/core/2d/CCParticleExamples.cpp @@ -31,7 +31,7 @@ THE SOFTWARE. #include "base/firePngData.h" #include "renderer/CCTextureCache.h" -NS_CC_BEGIN +NS_AX_BEGIN // // ParticleFire // @@ -1229,4 +1229,4 @@ bool ParticleRain::initWithTotalParticles(int numberOfParticles) return false; } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCParticleExamples.h b/core/2d/CCParticleExamples.h index 1d30a0675d..a067ae3958 100644 --- a/core/2d/CCParticleExamples.h +++ b/core/2d/CCParticleExamples.h @@ -30,7 +30,7 @@ THE SOFTWARE. #include "2d/CCParticleSystemQuad.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup _2d @@ -436,6 +436,6 @@ private: // end of _2d group /// @} -NS_CC_END +NS_AX_END #endif //__CCPARTICLE_EXAMPLE_H__ diff --git a/core/2d/CCParticleSystem.cpp b/core/2d/CCParticleSystem.cpp index 1c183ebb6a..b23c82e55d 100644 --- a/core/2d/CCParticleSystem.cpp +++ b/core/2d/CCParticleSystem.cpp @@ -61,7 +61,7 @@ THE SOFTWARE. using namespace std; -NS_CC_BEGIN +NS_AX_BEGIN // ideas taken from: // . The ocean spray in your face [Jeff Lander] @@ -1451,12 +1451,12 @@ bool ParticleSystem::addAnimationIndex(unsigned short index, std::string_view fr return false; } -bool ParticleSystem::addAnimationIndex(cocos2d::SpriteFrame* frame) +bool ParticleSystem::addAnimationIndex(axis::SpriteFrame* frame) { return addAnimationIndex(_animIndexCount, frame); } -bool ParticleSystem::addAnimationIndex(unsigned short index, cocos2d::SpriteFrame* frame) +bool ParticleSystem::addAnimationIndex(unsigned short index, axis::SpriteFrame* frame) { if (frame) { @@ -1468,7 +1468,7 @@ bool ParticleSystem::addAnimationIndex(unsigned short index, cocos2d::SpriteFram return false; } -bool ParticleSystem::addAnimationIndex(unsigned short index, cocos2d::Rect rect, bool rotated) +bool ParticleSystem::addAnimationIndex(unsigned short index, axis::Rect rect, bool rotated) { auto iter = _animationIndices.find(index); if (iter == _animationIndices.end()) @@ -2383,4 +2383,4 @@ void ParticleEmissionMaskCache::removeAllMasks() this->masks.clear(); } -NS_CC_END \ No newline at end of file +NS_AX_END \ No newline at end of file diff --git a/core/2d/CCParticleSystem.h b/core/2d/CCParticleSystem.h index 6815761d1b..acb00b6ac6 100644 --- a/core/2d/CCParticleSystem.h +++ b/core/2d/CCParticleSystem.h @@ -36,7 +36,7 @@ THE SOFTWARE. #include "2d/CCSpriteFrameCache.h" #include "math/FastRNG.h" -NS_CC_BEGIN +NS_AX_BEGIN class ParticleBatchNode; @@ -80,7 +80,7 @@ struct EmissionShape struct ParticleEmissionMaskDescriptor { Vec2 size; - std::vector points; + std::vector points; }; /** @struct ParticleAnimationDescriptor @@ -99,7 +99,7 @@ Structure that contains frame description */ struct ParticleFrameDescriptor { - cocos2d::Rect rect; + axis::Rect rect; bool isRotated; }; @@ -239,7 +239,7 @@ public: * Particle emission mask cache. * @since axis-1.0.0b8 */ -class CC_DLL ParticleEmissionMaskCache : public cocos2d::Ref +class CC_DLL ParticleEmissionMaskCache : public axis::Ref { public: static ParticleEmissionMaskCache* getInstance(); @@ -1144,7 +1144,7 @@ public: * * @return Returns true of the index was successfully found and added. Otherwise, false */ - bool addAnimationIndex(cocos2d::SpriteFrame* frame); + bool addAnimationIndex(axis::SpriteFrame* frame); /** Add a particle animation index based on tex coords spicified using a sprite frame. * you can specify which index you want to override in this function @@ -1154,7 +1154,7 @@ public: * * @return Returns true of the index was successfully found and added. Otherwise, false */ - bool addAnimationIndex(unsigned short index, cocos2d::SpriteFrame* frame); + bool addAnimationIndex(unsigned short index, axis::SpriteFrame* frame); /** Add a particle animation index based on tex coords spicified. * you can specify which index you want to override in this function @@ -1165,13 +1165,13 @@ public: * * @return Returns true of the index was successfully found and added. Otherwise, false */ - bool addAnimationIndex(unsigned short index, cocos2d::Rect rect, bool rotated = false); + bool addAnimationIndex(unsigned short index, axis::Rect rect, bool rotated = false); /** You can specify what rect is used if an index in an animation descriptor wasn't found. * * @param rect Rect containting data about tex coords in pixels */ - void setRectForUndefinedIndices(cocos2d::Rect rect) { _undefinedIndexRect = rect; }; + void setRectForUndefinedIndices(axis::Rect rect) { _undefinedIndexRect = rect; }; /** Add a particle animation descriptor with an index. * @@ -1647,7 +1647,7 @@ protected: /** Wether the animation goes with the time scale of the system or is independent. */ bool _animationTimescaleInd; /** A rect that is used instead when an index is not found */ - cocos2d::Rect _undefinedIndexRect; + axis::Rect _undefinedIndexRect; /** does FlippedY variance of each particle */ int _yCoordFlipped; @@ -1690,6 +1690,6 @@ private: // end of _2d group /// @} -NS_CC_END +NS_AX_END #endif //__CCPARTICLE_SYSTEM_H__ diff --git a/core/2d/CCParticleSystemQuad.cpp b/core/2d/CCParticleSystemQuad.cpp index 28bafe6da8..e83713ee21 100644 --- a/core/2d/CCParticleSystemQuad.cpp +++ b/core/2d/CCParticleSystemQuad.cpp @@ -44,7 +44,7 @@ THE SOFTWARE. #include "renderer/backend/ProgramState.h" #include "2d/CCTweenFunction.h" -NS_CC_BEGIN +NS_AX_BEGIN ParticleSystemQuad::ParticleSystemQuad() { @@ -710,7 +710,7 @@ void ParticleSystemQuad::draw(Renderer* renderer, const Mat4& transform, uint32_ { auto programState = _quadCommand.getPipelineDescriptor().programState; - cocos2d::Mat4 projectionMat = _director->getMatrix(MATRIX_STACK_TYPE::MATRIX_STACK_PROJECTION); + axis::Mat4 projectionMat = _director->getMatrix(MATRIX_STACK_TYPE::MATRIX_STACK_PROJECTION); programState->setUniform(_mvpMatrixLocaiton, projectionMat.m, sizeof(projectionMat.m)); _quadCommand.init(_globalZOrder, _texture, _blendFunc, _quads, _particleCount, transform, flags); @@ -878,4 +878,4 @@ std::string ParticleSystemQuad::getDescription() const { return StringUtils::format("", _tag, _totalParticles); } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCParticleSystemQuad.h b/core/2d/CCParticleSystemQuad.h index 204d06e9a1..a84eb4c3a0 100644 --- a/core/2d/CCParticleSystemQuad.h +++ b/core/2d/CCParticleSystemQuad.h @@ -31,7 +31,7 @@ THE SOFTWARE. #include "2d/CCParticleSystem.h" #include "renderer/CCQuadCommand.h" -NS_CC_BEGIN +NS_AX_BEGIN class SpriteFrame; class EventCustom; @@ -182,4 +182,4 @@ private: // end of _2d group /// @} -NS_CC_END +NS_AX_END diff --git a/core/2d/CCPlistSpriteSheetLoader.cpp b/core/2d/CCPlistSpriteSheetLoader.cpp index 4d7d30fdff..af98e06652 100644 --- a/core/2d/CCPlistSpriteSheetLoader.cpp +++ b/core/2d/CCPlistSpriteSheetLoader.cpp @@ -16,7 +16,7 @@ using namespace std; -NS_CC_BEGIN +NS_AX_BEGIN void PlistSpriteSheetLoader::load(std::string_view filePath, SpriteFrameCache& cache) { @@ -163,7 +163,7 @@ void PlistSpriteSheetLoader::addSpriteFramesWithDictionary(ValueMap& dictionary, Version 3 with TexturePacker 4.0 polygon mesh packing */ - if (dictionary["frames"].getType() != cocos2d::Value::Type::MAP) + if (dictionary["frames"].getType() != axis::Value::Type::MAP) return; auto spriteSheet = std::make_shared(); @@ -279,7 +279,7 @@ void PlistSpriteSheetLoader::addSpriteFramesWithDictionary(ValueMap& dictionary, if (frameDict.find("vertices") != frameDict.end()) { - using cocos2d::utils::parseIntegerList; + using axis::utils::parseIntegerList; auto vertices = parseIntegerList(optValue(frameDict, "vertices"sv).asString()); auto verticesUV = parseIntegerList(optValue(frameDict, "verticesUV"sv).asString()); auto indices = parseIntegerList(optValue(frameDict, "triangles"sv).asString()); @@ -485,4 +485,4 @@ void PlistSpriteSheetLoader::reloadSpriteFramesWithDictionary(ValueMap& dict, } } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCPlistSpriteSheetLoader.h b/core/2d/CCPlistSpriteSheetLoader.h index 6f36caad0b..0a0f037ff3 100644 --- a/core/2d/CCPlistSpriteSheetLoader.h +++ b/core/2d/CCPlistSpriteSheetLoader.h @@ -6,7 +6,7 @@ #include "base/CCValue.h" #include "base/CCData.h" -NS_CC_BEGIN +NS_AX_BEGIN class PlistSpriteSheetLoader : public SpriteSheetLoader { @@ -41,4 +41,4 @@ protected: SpriteFrameCache& cache); }; -NS_CC_END +NS_AX_END diff --git a/core/2d/CCProgressTimer.cpp b/core/2d/CCProgressTimer.cpp index 30fcc90696..c1adb585b6 100644 --- a/core/2d/CCProgressTimer.cpp +++ b/core/2d/CCProgressTimer.cpp @@ -37,7 +37,7 @@ THE SOFTWARE. #include "renderer/ccShaders.h" #include "renderer/backend/ProgramState.h" -NS_CC_BEGIN +NS_AX_BEGIN #define kProgressTextureCoordsCount 4 // kProgressTextureCoords holds points {0,1} {0,0} {1,0} {1,1} we can represent it as bits @@ -45,7 +45,7 @@ const char kProgressTextureCoords = 0x4b; namespace { -backend::ProgramState* initPipelineDescriptor(cocos2d::CustomCommand& command, +backend::ProgramState* initPipelineDescriptor(axis::CustomCommand& command, bool ridal, backend::UniformLocation& locMVP, backend::UniformLocation& locTexture) @@ -615,7 +615,7 @@ void ProgressTimer::draw(Renderer* renderer, const Mat4& transform, uint32_t fla if (_vertexData.empty() || !_sprite) return; - const cocos2d::Mat4& projectionMat = _director->getMatrix(MATRIX_STACK_TYPE::MATRIX_STACK_PROJECTION); + const axis::Mat4& projectionMat = _director->getMatrix(MATRIX_STACK_TYPE::MATRIX_STACK_PROJECTION); Mat4 finalMat = projectionMat * transform; _programState->setUniform(_locMVP1, finalMat.m, sizeof(finalMat.m)); _programState->setTexture(_locTex1, 0, _sprite->getTexture()->getBackendTexture()); @@ -645,4 +645,4 @@ void ProgressTimer::draw(Renderer* renderer, const Mat4& transform, uint32_t fla } } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCProgressTimer.h b/core/2d/CCProgressTimer.h index e61aa76549..ff2591db31 100644 --- a/core/2d/CCProgressTimer.h +++ b/core/2d/CCProgressTimer.h @@ -33,7 +33,7 @@ THE SOFTWARE. #include -NS_CC_BEGIN +NS_AX_BEGIN class Sprite; @@ -207,4 +207,4 @@ private: // end of misc_nodes group /// @} -NS_CC_END +NS_AX_END diff --git a/core/2d/CCProtectedNode.cpp b/core/2d/CCProtectedNode.cpp index 8a37d06ba7..728e13977b 100644 --- a/core/2d/CCProtectedNode.cpp +++ b/core/2d/CCProtectedNode.cpp @@ -32,7 +32,7 @@ #include "base/CCDirector.h" #include "2d/CCScene.h" -NS_CC_BEGIN +NS_AX_BEGIN ProtectedNode::ProtectedNode() : _reorderProtectedChildDirty(false) {} @@ -64,12 +64,12 @@ void ProtectedNode::cleanup() child->cleanup(); } -void ProtectedNode::addProtectedChild(cocos2d::Node* child) +void ProtectedNode::addProtectedChild(axis::Node* child) { addProtectedChild(child, child->getLocalZOrder(), child->getTag()); } -void ProtectedNode::addProtectedChild(cocos2d::Node* child, int localZOrder) +void ProtectedNode::addProtectedChild(axis::Node* child, int localZOrder) { addProtectedChild(child, localZOrder, child->getTag()); } @@ -132,7 +132,7 @@ Node* ProtectedNode::getProtectedChildByTag(int tag) * If a class want's to extend the 'removeChild' behavior it only needs * to override this method */ -void ProtectedNode::removeProtectedChild(cocos2d::Node* child, bool cleanup) +void ProtectedNode::removeProtectedChild(axis::Node* child, bool cleanup) { // explicit nil handling if (_protectedChildren.empty()) @@ -228,7 +228,7 @@ void ProtectedNode::removeProtectedChildByTag(int tag, bool cleanup) } // helper used by reorderChild & add -void ProtectedNode::insertProtectedChild(cocos2d::Node* child, int z) +void ProtectedNode::insertProtectedChild(axis::Node* child, int z) { #if CC_ENABLE_GC_FOR_NATIVE_OBJECTS auto sEngine = ScriptEngineManager::getInstance()->getScriptEngine(); @@ -251,7 +251,7 @@ void ProtectedNode::sortAllProtectedChildren() } } -void ProtectedNode::reorderProtectedChild(cocos2d::Node* child, int localZOrder) +void ProtectedNode::reorderProtectedChild(axis::Node* child, int localZOrder) { CCASSERT(child != nullptr, "Child must be non-nil"); _reorderProtectedChildDirty = true; @@ -439,4 +439,4 @@ void ProtectedNode::setGlobalZOrder(float globalZOrder) child->setGlobalZOrder(globalZOrder); } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCProtectedNode.h b/core/2d/CCProtectedNode.h index 61efd03c0a..8259da729d 100644 --- a/core/2d/CCProtectedNode.h +++ b/core/2d/CCProtectedNode.h @@ -32,7 +32,7 @@ #include "2d/CCNode.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup _2d @@ -205,6 +205,6 @@ private: // end of 2d group /// @} -NS_CC_END +NS_AX_END #endif // __CPROTECTEDCNODE_H__ diff --git a/core/2d/CCRenderTexture.cpp b/core/2d/CCRenderTexture.cpp index 0743f996b8..d56e10d399 100644 --- a/core/2d/CCRenderTexture.cpp +++ b/core/2d/CCRenderTexture.cpp @@ -40,7 +40,7 @@ THE SOFTWARE. #include "renderer/backend/Texture.h" #include "renderer/backend/RenderTarget.h" -NS_CC_BEGIN +NS_AX_BEGIN // implementation RenderTexture RenderTexture::RenderTexture() @@ -668,4 +668,4 @@ void RenderTexture::clearColorAttachment() renderer->addCommand(afterClearAttachmentCommand); } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCRenderTexture.h b/core/2d/CCRenderTexture.h index 762f80ee94..6137342dcc 100644 --- a/core/2d/CCRenderTexture.h +++ b/core/2d/CCRenderTexture.h @@ -34,7 +34,7 @@ THE SOFTWARE. #include "renderer/CCCallbackCommand.h" #include "renderer/backend/Types.h" -NS_CC_BEGIN +NS_AX_BEGIN namespace backend { @@ -436,4 +436,4 @@ private: // end of textures group /// @} -NS_CC_END +NS_AX_END diff --git a/core/2d/CCScene.cpp b/core/2d/CCScene.cpp index 668f80b4c0..7b547d97d5 100644 --- a/core/2d/CCScene.cpp +++ b/core/2d/CCScene.cpp @@ -47,7 +47,7 @@ THE SOFTWARE. # include "navmesh/CCNavMesh.h" #endif -NS_CC_BEGIN +NS_AX_BEGIN Scene::Scene() : _event(_director->getEventDispatcher()->addCustomEventListener( @@ -362,4 +362,4 @@ void Scene::stepPhysicsAndNavigation(float deltaTime) } #endif -NS_CC_END +NS_AX_END diff --git a/core/2d/CCScene.h b/core/2d/CCScene.h index dbf6485fa5..47d7967282 100644 --- a/core/2d/CCScene.h +++ b/core/2d/CCScene.h @@ -33,7 +33,7 @@ THE SOFTWARE. #include #include "2d/CCNode.h" -NS_CC_BEGIN +NS_AX_BEGIN class Camera; class BaseLight; @@ -224,6 +224,6 @@ public: // end of _2d group /// @} -NS_CC_END +NS_AX_END #endif // __CCSCENE_H__ diff --git a/core/2d/CCSprite.cpp b/core/2d/CCSprite.cpp index 635f123dae..e09e8f6aa4 100644 --- a/core/2d/CCSprite.cpp +++ b/core/2d/CCSprite.cpp @@ -46,7 +46,7 @@ THE SOFTWARE. #include "renderer/backend/ProgramState.h" #include "renderer/backend/Device.h" -NS_CC_BEGIN +NS_AX_BEGIN // MARK: create, init, dealloc Sprite* Sprite::createWithTexture(Texture2D* texture) @@ -245,7 +245,7 @@ bool Sprite::initWithSpriteFrame(SpriteFrame* spriteFrame) return ret; } -bool Sprite::initWithPolygon(const cocos2d::PolygonInfo& info) +bool Sprite::initWithPolygon(const axis::PolygonInfo& info) { bool ret = false; @@ -705,7 +705,7 @@ void Sprite::updatePoly() } } -void Sprite::setCenterRectNormalized(const cocos2d::Rect& rectTopLeft) +void Sprite::setCenterRectNormalized(const axis::Rect& rectTopLeft) { if (_renderMode != RenderMode::QUAD && _renderMode != RenderMode::SLICE9) { @@ -761,7 +761,7 @@ void Sprite::setCenterRectNormalized(const cocos2d::Rect& rectTopLeft) } } -void Sprite::setCenterRect(const cocos2d::Rect& rectInPoints) +void Sprite::setCenterRect(const axis::Rect& rectInPoints) { if (_renderMode != RenderMode::QUAD && _renderMode != RenderMode::SLICE9) { @@ -1727,4 +1727,4 @@ void Sprite::setMVPMatrixUniform() programState->setUniform(_mvpMatrixLocation, projectionMat.m, sizeof(projectionMat.m)); } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCSprite.h b/core/2d/CCSprite.h index 48705cf4a5..0b30510d35 100644 --- a/core/2d/CCSprite.h +++ b/core/2d/CCSprite.h @@ -38,7 +38,7 @@ THE SOFTWARE. #include "renderer/CCCustomCommand.h" #include "2d/CCAutoPolygon.h" -NS_CC_BEGIN +NS_AX_BEGIN class SpriteBatchNode; class SpriteFrame; @@ -708,4 +708,4 @@ private: // end of sprite_nodes group /// @} -NS_CC_END +NS_AX_END diff --git a/core/2d/CCSpriteBatchNode.cpp b/core/2d/CCSpriteBatchNode.cpp index 1edf1dc476..e459a776d1 100644 --- a/core/2d/CCSpriteBatchNode.cpp +++ b/core/2d/CCSpriteBatchNode.cpp @@ -41,7 +41,7 @@ THE SOFTWARE. #include "renderer/backend/ProgramState.h" #include "renderer/backend/Device.h" -NS_CC_BEGIN +NS_AX_BEGIN /* * creation with Texture2D @@ -802,4 +802,4 @@ std::string SpriteBatchNode::getDescription() const return StringUtils::format("", _tag); } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCSpriteBatchNode.h b/core/2d/CCSpriteBatchNode.h index bb46e4345a..4cd189adf6 100644 --- a/core/2d/CCSpriteBatchNode.h +++ b/core/2d/CCSpriteBatchNode.h @@ -35,7 +35,7 @@ THE SOFTWARE. #include "renderer/CCTextureAtlas.h" #include "renderer/CCQuadCommand.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup _2d @@ -275,11 +275,11 @@ protected: // all descendants: children, grand children, etc... // There is not need to retain/release these objects, since they are already retained by _children - // So, using std::vector is slightly faster than using cocos2d::Array for this particular case + // So, using std::vector is slightly faster than using axis::Array for this particular case std::vector _descendants; }; // end of sprite_nodes group /** @} */ -NS_CC_END +NS_AX_END diff --git a/core/2d/CCSpriteFrame.cpp b/core/2d/CCSpriteFrame.cpp index ed9d0c5870..6a31ea18cc 100644 --- a/core/2d/CCSpriteFrame.cpp +++ b/core/2d/CCSpriteFrame.cpp @@ -31,7 +31,7 @@ THE SOFTWARE. #include "base/CCDirector.h" #include "platform/CCFileUtils.h" -NS_CC_BEGIN +NS_AX_BEGIN // implementation of SpriteFrame @@ -265,4 +265,4 @@ bool SpriteFrame::hasPolygonInfo() const return _polygonInfo.triangles.vertCount != 0; } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCSpriteFrame.h b/core/2d/CCSpriteFrame.h index 4281c3e5e6..77b460bd96 100644 --- a/core/2d/CCSpriteFrame.h +++ b/core/2d/CCSpriteFrame.h @@ -34,7 +34,7 @@ THE SOFTWARE. #include "base/CCRef.h" #include "math/CCMath.h" -NS_CC_BEGIN +NS_AX_BEGIN class Texture2D; @@ -318,6 +318,6 @@ protected: // end of _2d group /// @} -NS_CC_END +NS_AX_END #endif //__SPRITE_CCSPRITE_FRAME_H__ diff --git a/core/2d/CCSpriteFrameCache.cpp b/core/2d/CCSpriteFrameCache.cpp index b68a491397..389792629e 100644 --- a/core/2d/CCSpriteFrameCache.cpp +++ b/core/2d/CCSpriteFrameCache.cpp @@ -43,7 +43,7 @@ THE SOFTWARE. using namespace std; -NS_CC_BEGIN +NS_AX_BEGIN static SpriteFrameCache* _sharedSpriteFrameCache = nullptr; @@ -207,7 +207,7 @@ void SpriteFrameCache::removeSpriteFramesFromFileContent(std::string_view plist_ void SpriteFrameCache::removeSpriteFramesFromDictionary(ValueMap& dictionary) { - if (dictionary["frames"].getType() != cocos2d::Value::Type::MAP) + if (dictionary["frames"].getType() != axis::Value::Type::MAP) return; const auto& framesDict = dictionary["frames"].asValueMap(); @@ -416,4 +416,4 @@ ISpriteSheetLoader* SpriteFrameCache::getSpriteSheetLoader(uint32_t spriteSheetF return nullptr; } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCSpriteFrameCache.h b/core/2d/CCSpriteFrameCache.h index 5582832fce..21650ca919 100644 --- a/core/2d/CCSpriteFrameCache.h +++ b/core/2d/CCSpriteFrameCache.h @@ -41,7 +41,7 @@ THE SOFTWARE. #include "base/CCMap.h" #include "base/CCData.h" -NS_CC_BEGIN +NS_AX_BEGIN class Sprite; class Texture2D; @@ -313,6 +313,6 @@ private: // end of _2d group /// @} -NS_CC_END +NS_AX_END #endif // __SPRITE_CCSPRITE_FRAME_CACHE_H__ diff --git a/core/2d/CCSpriteSheetLoader.cpp b/core/2d/CCSpriteSheetLoader.cpp index 2940bb2130..5a0db4af95 100644 --- a/core/2d/CCSpriteSheetLoader.cpp +++ b/core/2d/CCSpriteSheetLoader.cpp @@ -4,7 +4,7 @@ using namespace std; -NS_CC_BEGIN +NS_AX_BEGIN void SpriteSheetLoader::initializePolygonInfo(const Vec2& textureSize, const Vec2& spriteSize, @@ -41,4 +41,4 @@ void SpriteSheetLoader::initializePolygonInfo(const Vec2& textureSize, info.setRect(Rect(0, 0, spriteSize.width, spriteSize.height)); } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCSpriteSheetLoader.h b/core/2d/CCSpriteSheetLoader.h index 3cb07f7a93..787f7411cb 100644 --- a/core/2d/CCSpriteSheetLoader.h +++ b/core/2d/CCSpriteSheetLoader.h @@ -39,7 +39,7 @@ THE SOFTWARE. #include "base/CCMap.h" #include "base/CCData.h" -NS_CC_BEGIN +NS_AX_BEGIN class Sprite; class Texture2D; @@ -103,4 +103,4 @@ public: // end of _2d group /// @} -NS_CC_END +NS_AX_END diff --git a/core/2d/CCTMXObjectGroup.cpp b/core/2d/CCTMXObjectGroup.cpp index 58b0b11c65..3f1e99cf6b 100644 --- a/core/2d/CCTMXObjectGroup.cpp +++ b/core/2d/CCTMXObjectGroup.cpp @@ -29,7 +29,7 @@ THE SOFTWARE. #include "2d/CCTMXObjectGroup.h" #include "base/ccMacros.h" -NS_CC_BEGIN +NS_AX_BEGIN // implementation TMXObjectGroup @@ -67,4 +67,4 @@ Value TMXObjectGroup::getProperty(std::string_view propertyName) const return Value(); } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCTMXObjectGroup.h b/core/2d/CCTMXObjectGroup.h index 1fe88f13d8..4f4fe76ec5 100644 --- a/core/2d/CCTMXObjectGroup.h +++ b/core/2d/CCTMXObjectGroup.h @@ -33,7 +33,7 @@ THE SOFTWARE. #include "base/CCValue.h" #include "base/CCRef.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup _2d @@ -135,6 +135,6 @@ protected: // end of tilemap_parallax_nodes group /** @} */ -NS_CC_END +NS_AX_END #endif //__CCTMX_OBJECT_GROUP_H__ diff --git a/core/2d/CCTMXXMLParser.cpp b/core/2d/CCTMXXMLParser.cpp index 1b5857ae90..f18ea8ada7 100644 --- a/core/2d/CCTMXXMLParser.cpp +++ b/core/2d/CCTMXXMLParser.cpp @@ -38,7 +38,7 @@ THE SOFTWARE. using namespace std; -NS_CC_BEGIN +NS_AX_BEGIN // implementation TMXLayerInfo TMXLayerInfo::TMXLayerInfo() : _name(""), _tiles(nullptr), _ownTiles(true) {} @@ -828,4 +828,4 @@ TMXTileAnimInfo* TMXTileAnimInfo::create(uint32_t tileID) return ret; } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCTMXXMLParser.h b/core/2d/CCTMXXMLParser.h index 783aa7eb1a..3afe4de1e8 100644 --- a/core/2d/CCTMXXMLParser.h +++ b/core/2d/CCTMXXMLParser.h @@ -40,7 +40,7 @@ THE SOFTWARE. #include -NS_CC_BEGIN +NS_AX_BEGIN class TMXLayerInfo; class TMXTilesetInfo; @@ -409,7 +409,7 @@ protected: // end of tilemap_parallax_nodes group /// @} -NS_CC_END +NS_AX_END /// @endcond #endif diff --git a/core/2d/CCTextFieldTTF.cpp b/core/2d/CCTextFieldTTF.cpp index 1bcf545059..ed44395d5c 100644 --- a/core/2d/CCTextFieldTTF.cpp +++ b/core/2d/CCTextFieldTTF.cpp @@ -31,7 +31,7 @@ THE SOFTWARE. #include "base/ccUTF8.h" #include "2d/CCSprite.h" -NS_CC_BEGIN +NS_AX_BEGIN #define CURSOR_TIME_SHOW_HIDE 0.5f #define CURSOR_DEFAULT_CHAR '|' @@ -757,4 +757,4 @@ bool TextFieldTTF::isSecureTextEntry() const return _secureTextEntry; } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCTextFieldTTF.h b/core/2d/CCTextFieldTTF.h index d91422bf9e..cb0d8f7704 100644 --- a/core/2d/CCTextFieldTTF.h +++ b/core/2d/CCTextFieldTTF.h @@ -34,7 +34,7 @@ THE SOFTWARE. * @addtogroup ui * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN class TextFieldTTF; @@ -296,7 +296,7 @@ private: LengthStack* _lens; }; -NS_CC_END +NS_AX_END // end of ui group /// @} diff --git a/core/2d/CCTileMapAtlas.cpp b/core/2d/CCTileMapAtlas.cpp index 1913d1a3a5..d860eb00be 100644 --- a/core/2d/CCTileMapAtlas.cpp +++ b/core/2d/CCTileMapAtlas.cpp @@ -32,7 +32,7 @@ THE SOFTWARE. #include "base/CCDirector.h" #include "base/ccUTF8.h" -NS_CC_BEGIN +NS_AX_BEGIN // implementation TileMapAtlas @@ -251,4 +251,4 @@ void TileMapAtlas::updateAtlasValues() } } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCTileMapAtlas.h b/core/2d/CCTileMapAtlas.h index b619dbd86f..97d529f9a5 100644 --- a/core/2d/CCTileMapAtlas.h +++ b/core/2d/CCTileMapAtlas.h @@ -31,7 +31,7 @@ THE SOFTWARE. #include "2d/CCAtlasNode.h" #include "base/CCValue.h" -NS_CC_BEGIN +NS_AX_BEGIN /// @cond DO_NOT_SHOW @@ -115,6 +115,6 @@ protected: /// @endcond -NS_CC_END +NS_AX_END #endif //__CCTILE_MAP_ATLAS__ diff --git a/core/2d/CCTransition.cpp b/core/2d/CCTransition.cpp index 9f3bde1b7a..3fc8f6e519 100644 --- a/core/2d/CCTransition.cpp +++ b/core/2d/CCTransition.cpp @@ -39,7 +39,7 @@ THE SOFTWARE. #include "base/CCDirector.h" #include "base/CCEventDispatcher.h" -NS_CC_BEGIN +NS_AX_BEGIN const unsigned int kSceneFade = 0xFADEFADE; @@ -1465,4 +1465,4 @@ ActionInterval* TransitionFadeDown::actionWithSize(const Vec2& size) return FadeOutDownTiles::create(_duration, size); } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCTransition.h b/core/2d/CCTransition.h index be609e71cb..8980bb3296 100644 --- a/core/2d/CCTransition.h +++ b/core/2d/CCTransition.h @@ -31,7 +31,7 @@ THE SOFTWARE. #include "2d/CCScene.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup _2d @@ -1057,6 +1057,6 @@ private: // end of _2d group /// @} -NS_CC_END +NS_AX_END #endif // __CCTRANSITION_H__ diff --git a/core/2d/CCTransitionPageTurn.cpp b/core/2d/CCTransitionPageTurn.cpp index dfceb5bf06..b43f0ffd78 100644 --- a/core/2d/CCTransitionPageTurn.cpp +++ b/core/2d/CCTransitionPageTurn.cpp @@ -31,7 +31,7 @@ THE SOFTWARE. #include "2d/CCNodeGrid.h" #include "renderer/CCRenderer.h" -NS_CC_BEGIN +NS_AX_BEGIN TransitionPageTurn::TransitionPageTurn() { @@ -154,4 +154,4 @@ ActionInterval* TransitionPageTurn::actionWithSize(const Vec2& vector) } } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCTransitionPageTurn.h b/core/2d/CCTransitionPageTurn.h index adbcf36785..34cc305eaf 100644 --- a/core/2d/CCTransitionPageTurn.h +++ b/core/2d/CCTransitionPageTurn.h @@ -31,7 +31,7 @@ THE SOFTWARE. #include "2d/CCTransition.h" #include "renderer/CCCustomCommand.h" -NS_CC_BEGIN +NS_AX_BEGIN class NodeGrid; @@ -121,6 +121,6 @@ protected: // end of _2d group /// @} -NS_CC_END +NS_AX_END #endif // __CCPAGE_TURN_TRANSITION_H__ diff --git a/core/2d/CCTransitionProgress.cpp b/core/2d/CCTransitionProgress.cpp index 389935447d..c412ad92f9 100644 --- a/core/2d/CCTransitionProgress.cpp +++ b/core/2d/CCTransitionProgress.cpp @@ -33,7 +33,7 @@ THE SOFTWARE. #include "2d/CCActionInstant.h" #include "2d/CCActionProgressTimer.h" -NS_CC_BEGIN +NS_AX_BEGIN enum { @@ -330,4 +330,4 @@ ProgressTimer* TransitionProgressOutIn::progressTimerNodeWithRenderTexture(Rende return node; } -NS_CC_END +NS_AX_END diff --git a/core/2d/CCTransitionProgress.h b/core/2d/CCTransitionProgress.h index dcef8ae14e..db5330c897 100644 --- a/core/2d/CCTransitionProgress.h +++ b/core/2d/CCTransitionProgress.h @@ -31,7 +31,7 @@ THE SOFTWARE. #include "2d/CCTransition.h" -NS_CC_BEGIN +NS_AX_BEGIN class ProgressTimer; class RenderTexture; @@ -246,6 +246,6 @@ protected: // end of _2d group /// @} -NS_CC_END +NS_AX_END #endif /* __CCTRANSITIONPROGRESS_H__ */ diff --git a/core/2d/CCTweenFunction.cpp b/core/2d/CCTweenFunction.cpp index cc2c37b625..9f60f23dc8 100644 --- a/core/2d/CCTweenFunction.cpp +++ b/core/2d/CCTweenFunction.cpp @@ -29,7 +29,7 @@ THE SOFTWARE. #include // M_PI #undef _USE_MATH_DEFINES -NS_CC_BEGIN +NS_AX_BEGIN namespace tweenfunc { @@ -533,4 +533,4 @@ float bezieratFunction(float a, float b, float c, float d, float t) } // namespace tweenfunc -NS_CC_END +NS_AX_END diff --git a/core/2d/CCTweenFunction.h b/core/2d/CCTweenFunction.h index 1304335cd3..47f168adcc 100644 --- a/core/2d/CCTweenFunction.h +++ b/core/2d/CCTweenFunction.h @@ -30,7 +30,7 @@ THE SOFTWARE. #include "platform/CCPlatformMacros.h" -NS_CC_BEGIN +NS_AX_BEGIN namespace tweenfunc { @@ -293,7 +293,7 @@ float CC_DLL bounceEaseInOut(float time); float CC_DLL customEase(float time, float* easingParam); } // namespace tweenfunc -NS_CC_END +NS_AX_END /// @endcond #endif /*__CCTWEENFUNCTION_H__*/ diff --git a/core/3d/CC3DProgramInfo.cpp b/core/3d/CC3DProgramInfo.cpp index 4d90561309..da98282e27 100644 --- a/core/3d/CC3DProgramInfo.cpp +++ b/core/3d/CC3DProgramInfo.cpp @@ -1,6 +1,6 @@ #include "CC3DProgramInfo.h" -NS_CC_BEGIN +NS_AX_BEGIN namespace shaderinfos { @@ -118,4 +118,4 @@ const std::string getAttributeName(const VertexKey& key) } }; // namespace shaderinfos -NS_CC_END \ No newline at end of file +NS_AX_END \ No newline at end of file diff --git a/core/3d/CC3DProgramInfo.h b/core/3d/CC3DProgramInfo.h index bf4e71af44..13cdb63e3b 100644 --- a/core/3d/CC3DProgramInfo.h +++ b/core/3d/CC3DProgramInfo.h @@ -7,7 +7,7 @@ #include #include -NS_CC_BEGIN +NS_AX_BEGIN namespace shaderinfos { @@ -278,4 +278,4 @@ const std::vector>& getPredefinedAttributes(); const std::string getAttributeName(const VertexKey& key); }; // namespace shaderinfos -NS_CC_END \ No newline at end of file +NS_AX_END \ No newline at end of file diff --git a/core/3d/CCAABB.cpp b/core/3d/CCAABB.cpp index e41f9950f1..c8f1644d7b 100644 --- a/core/3d/CCAABB.cpp +++ b/core/3d/CCAABB.cpp @@ -25,7 +25,7 @@ #include "3d/CCAABB.h" -NS_CC_BEGIN +NS_AX_BEGIN AABB::AABB() { @@ -188,4 +188,4 @@ void AABB::transform(const Mat4& mat) updateMinMax(corners, 8); } -NS_CC_END +NS_AX_END diff --git a/core/3d/CCAABB.h b/core/3d/CCAABB.h index ff4bf29b0a..05205a1c49 100644 --- a/core/3d/CCAABB.h +++ b/core/3d/CCAABB.h @@ -29,7 +29,7 @@ #include "base/ccMacros.h" #include "math/CCMath.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup _3d @@ -123,6 +123,6 @@ public: // end of 3d group /// @} -NS_CC_END +NS_AX_END #endif diff --git a/core/3d/CCAnimate3D.cpp b/core/3d/CCAnimate3D.cpp index 46761e6f66..c87e2f6ef6 100644 --- a/core/3d/CCAnimate3D.cpp +++ b/core/3d/CCAnimate3D.cpp @@ -32,7 +32,7 @@ #include "base/CCDirector.h" #include "base/CCEventDispatcher.h" -NS_CC_BEGIN +NS_AX_BEGIN std::unordered_map Animate3D::s_fadeInAnimates; std::unordered_map Animate3D::s_fadeOutAnimates; @@ -535,4 +535,4 @@ void Animate3D::removeFromMap() } } -NS_CC_END +NS_AX_END diff --git a/core/3d/CCAnimate3D.h b/core/3d/CCAnimate3D.h index 113f44b333..0f07a450b3 100644 --- a/core/3d/CCAnimate3D.h +++ b/core/3d/CCAnimate3D.h @@ -34,7 +34,7 @@ #include "base/CCRef.h" #include "2d/CCActionInterval.h" -NS_CC_BEGIN +NS_AX_BEGIN class Bone3D; class MeshRenderer; @@ -183,6 +183,6 @@ protected: // end of 3d group /// @} -NS_CC_END +NS_AX_END #endif // __CCANIMATE3D_H__ diff --git a/core/3d/CCAnimation3D.cpp b/core/3d/CCAnimation3D.cpp index 5b3b69fd94..05fd8adc35 100644 --- a/core/3d/CCAnimation3D.cpp +++ b/core/3d/CCAnimation3D.cpp @@ -27,7 +27,7 @@ #include "3d/CCBundle3D.h" #include "platform/CCFileUtils.h" -NS_CC_BEGIN +NS_AX_BEGIN Animation3D* Animation3D::create(std::string_view fileName, std::string_view animationName) { @@ -246,4 +246,4 @@ Animation3DCache::~Animation3DCache() removeAllAnimations(); } -NS_CC_END +NS_AX_END diff --git a/core/3d/CCAnimation3D.h b/core/3d/CCAnimation3D.h index 81fc5a8752..34b8c02d1d 100644 --- a/core/3d/CCAnimation3D.h +++ b/core/3d/CCAnimation3D.h @@ -34,7 +34,7 @@ #include "base/CCRef.h" #include "3d/CCBundle3DData.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup _3d * @{ @@ -130,6 +130,6 @@ protected: // end of 3d group /// @} -NS_CC_END +NS_AX_END #endif // __CCANIMATION3D_H__ diff --git a/core/3d/CCAnimationCurve.h b/core/3d/CCAnimationCurve.h index ae45fcccf6..f8d791fba0 100644 --- a/core/3d/CCAnimationCurve.h +++ b/core/3d/CCAnimationCurve.h @@ -32,7 +32,7 @@ #include "base/CCRef.h" #include "math/CCMath.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup _3d @@ -99,7 +99,7 @@ protected: // end of 3d group /// @} -NS_CC_END +NS_AX_END #include "3d/CCAnimationCurve.inl" diff --git a/core/3d/CCAnimationCurve.inl b/core/3d/CCAnimationCurve.inl index a4204c9f82..9c2c7da90e 100644 --- a/core/3d/CCAnimationCurve.inl +++ b/core/3d/CCAnimationCurve.inl @@ -1,5 +1,5 @@ #include "3d/CCAnimationCurve.h" -NS_CC_BEGIN +NS_AX_BEGIN template void AnimationCurve::evaluate(float time, float* dst, EvaluateType type) const @@ -144,4 +144,4 @@ int AnimationCurve::determineIndex(float time) const return -1; } -NS_CC_END \ No newline at end of file +NS_AX_END \ No newline at end of file diff --git a/core/3d/CCAttachNode.cpp b/core/3d/CCAttachNode.cpp index 6861c43e77..f0054a6628 100644 --- a/core/3d/CCAttachNode.cpp +++ b/core/3d/CCAttachNode.cpp @@ -26,7 +26,7 @@ #include "3d/CCAttachNode.h" #include "3d/CCSkeleton3D.h" -NS_CC_BEGIN +NS_AX_BEGIN AttachNode* AttachNode::create(Bone3D* attachBone) { @@ -72,4 +72,4 @@ void AttachNode::visit(Renderer* renderer, const Mat4& parentTransform, uint32_t { Node::visit(renderer, parentTransform, Node::FLAGS_DIRTY_MASK); } -NS_CC_END +NS_AX_END diff --git a/core/3d/CCAttachNode.h b/core/3d/CCAttachNode.h index 2d04600c33..8077535a6e 100644 --- a/core/3d/CCAttachNode.h +++ b/core/3d/CCAttachNode.h @@ -29,7 +29,7 @@ #include "math/CCMath.h" #include "2d/CCNode.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup _3d * @{ @@ -70,5 +70,5 @@ protected: // end of 3d group /// @} -NS_CC_END +NS_AX_END #endif // __CCATTACHNODE_H__ diff --git a/core/3d/CCBillBoard.cpp b/core/3d/CCBillBoard.cpp index 1ca4c695b2..91365a70f1 100644 --- a/core/3d/CCBillBoard.cpp +++ b/core/3d/CCBillBoard.cpp @@ -29,7 +29,7 @@ #include "2d/CCCamera.h" #include "renderer/CCRenderer.h" -NS_CC_BEGIN +NS_AX_BEGIN BillBoard::BillBoard() : _mode(Mode::VIEW_POINT_ORIENTED), _modeDirty(false) { @@ -253,4 +253,4 @@ BillBoard::Mode BillBoard::getMode() const return _mode; } -NS_CC_END +NS_AX_END diff --git a/core/3d/CCBillBoard.h b/core/3d/CCBillBoard.h index 957d692241..c0e37373c3 100644 --- a/core/3d/CCBillBoard.h +++ b/core/3d/CCBillBoard.h @@ -27,7 +27,7 @@ #include "2d/CCSprite.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup _3d * @{ @@ -124,4 +124,4 @@ private: // end of 3d group /// @} -NS_CC_END +NS_AX_END diff --git a/core/3d/CCBundle3D.cpp b/core/3d/CCBundle3D.cpp index 2ca2743ed8..6ffe71093e 100644 --- a/core/3d/CCBundle3D.cpp +++ b/core/3d/CCBundle3D.cpp @@ -89,7 +89,7 @@ static const char* SCALE = "scale"; static const char* KEYTIME = "keytime"; static const char* AABBS = "aabb"; -NS_CC_BEGIN +NS_AX_BEGIN void getChildMap(std::map>& map, SkinData* skinData, const rapidjson::Value& val) { @@ -2320,7 +2320,7 @@ Bundle3D::~Bundle3D() clear(); } -cocos2d::AABB Bundle3D::calculateAABB(const std::vector& vertex, +axis::AABB Bundle3D::calculateAABB(const std::vector& vertex, int stride, const IndexArray& indices) { @@ -2335,4 +2335,4 @@ cocos2d::AABB Bundle3D::calculateAABB(const std::vector& vertex, return aabb; } -NS_CC_END +NS_AX_END diff --git a/core/3d/CCBundle3D.h b/core/3d/CCBundle3D.h index 8efd5b253f..e76bb039a5 100644 --- a/core/3d/CCBundle3D.h +++ b/core/3d/CCBundle3D.h @@ -32,7 +32,7 @@ #include "3d/CCBundleReader.h" #include "rapidjson/document-wrapper.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup _3d @@ -201,6 +201,6 @@ protected: // end of 3d group /// @} -NS_CC_END +NS_AX_END #endif // __CCBUNDLE3D_H__ diff --git a/core/3d/CCBundle3DData.cpp b/core/3d/CCBundle3DData.cpp index b1bef397cf..e181389e1e 100644 --- a/core/3d/CCBundle3DData.cpp +++ b/core/3d/CCBundle3DData.cpp @@ -1,6 +1,6 @@ #include "3d/CCBundle3DData.h" -NS_CC_BEGIN +NS_AX_BEGIN int MeshVertexAttrib::getAttribSizeBytes() const { @@ -28,4 +28,4 @@ int MeshVertexAttrib::getAttribSizeBytes() const return ret; } -NS_CC_END \ No newline at end of file +NS_AX_END \ No newline at end of file diff --git a/core/3d/CCBundle3DData.h b/core/3d/CCBundle3DData.h index 491f020fd9..a0e9480ca3 100644 --- a/core/3d/CCBundle3DData.h +++ b/core/3d/CCBundle3DData.h @@ -42,7 +42,7 @@ #include "yasio/detail/byte_buffer.hpp" -NS_CC_BEGIN +NS_AX_BEGIN using ilist_u16_t = std::initializer_list; using ilist_u32_t = std::initializer_list; @@ -318,7 +318,7 @@ struct NodeDatas */ struct MeshData { - using IndexArray = ::cocos2d::IndexArray; + using IndexArray = ::axis::IndexArray; std::vector vertex; int vertexSizeInFloat; std::vector subMeshIndices; @@ -581,6 +581,6 @@ struct Reference unsigned int offset; }; -NS_CC_END +NS_AX_END #endif //__CC_BUNDLE_3D_DATA_H__ diff --git a/core/3d/CCBundleReader.cpp b/core/3d/CCBundleReader.cpp index 616d588a19..066b55f7e3 100644 --- a/core/3d/CCBundleReader.cpp +++ b/core/3d/CCBundleReader.cpp @@ -26,7 +26,7 @@ #include "3d/CCBundleReader.h" #include "platform/CCFileUtils.h" -NS_CC_BEGIN +NS_AX_BEGIN BundleReader::BundleReader() { @@ -187,4 +187,4 @@ bool BundleReader::readMatrix(float* m) return (read(m, sizeof(float), 16) == 16); } -NS_CC_END +NS_AX_END diff --git a/core/3d/CCBundleReader.h b/core/3d/CCBundleReader.h index 23fa746834..c4ecc117fe 100644 --- a/core/3d/CCBundleReader.h +++ b/core/3d/CCBundleReader.h @@ -33,7 +33,7 @@ #include "platform/CCPlatformMacros.h" #include "base/CCConsole.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup _3d @@ -45,7 +45,7 @@ NS_CC_BEGIN * @js NA * @lua NA */ -class BundleReader : public cocos2d::Ref +class BundleReader : public axis::Ref { public: /** @@ -218,6 +218,6 @@ inline bool BundleReader::readArray(unsigned int* length, std::vect // end of 3d group /// @} -NS_CC_END +NS_AX_END #endif diff --git a/core/3d/CCFrustum.cpp b/core/3d/CCFrustum.cpp index 79360c8d85..8ae2e2c09f 100644 --- a/core/3d/CCFrustum.cpp +++ b/core/3d/CCFrustum.cpp @@ -26,7 +26,7 @@ #include "3d/CCFrustum.h" #include "2d/CCCamera.h" -NS_CC_BEGIN +NS_AX_BEGIN bool Frustum::initFrustum(const Camera* camera) { @@ -99,4 +99,4 @@ void Frustum::createPlane(const Camera* camera) (mat.m[15] - mat.m[14])); // far } -NS_CC_END +NS_AX_END diff --git a/core/3d/CCFrustum.h b/core/3d/CCFrustum.h index fb06702951..e5d6ba1ed7 100644 --- a/core/3d/CCFrustum.h +++ b/core/3d/CCFrustum.h @@ -32,7 +32,7 @@ #include "3d/CCOBB.h" #include "3d/CCPlane.h" -NS_CC_BEGIN +NS_AX_BEGIN class Camera; @@ -84,6 +84,6 @@ protected: bool _initialized; }; -NS_CC_END +NS_AX_END #endif //__CC_FRUSTUM_H_ diff --git a/core/3d/CCMesh.cpp b/core/3d/CCMesh.cpp index 459e701fb5..65fb72976e 100644 --- a/core/3d/CCMesh.cpp +++ b/core/3d/CCMesh.cpp @@ -44,7 +44,7 @@ using namespace std; -NS_CC_BEGIN +NS_AX_BEGIN // Helpers @@ -749,4 +749,4 @@ backend::Buffer* Mesh::getIndexBuffer() const { return _meshIndexData->getIndexBuffer(); } -NS_CC_END +NS_AX_END diff --git a/core/3d/CCMesh.h b/core/3d/CCMesh.h index a72f303860..d4da0068e4 100644 --- a/core/3d/CCMesh.h +++ b/core/3d/CCMesh.h @@ -36,7 +36,7 @@ #include "renderer/CCMeshCommand.h" #include "renderer/CCCustomCommand.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup _3d @@ -296,4 +296,4 @@ protected: extern std::string CC_DLL s_uniformSamplerName[]; // uniform sampler names array /// @endcond -NS_CC_END +NS_AX_END diff --git a/core/3d/CCMeshMaterial.cpp b/core/3d/CCMeshMaterial.cpp index 9e4d0f31ba..088052ba4b 100644 --- a/core/3d/CCMeshMaterial.cpp +++ b/core/3d/CCMeshMaterial.cpp @@ -34,7 +34,7 @@ #include "renderer/ccShaders.h" #include "renderer/CCPass.h" -NS_CC_BEGIN +NS_AX_BEGIN MeshMaterialCache* MeshMaterialCache::_cacheInstance = nullptr; @@ -389,4 +389,4 @@ void MeshMaterialCache::removeUnusedMeshMaterial() } } -NS_CC_END +NS_AX_END diff --git a/core/3d/CCMeshMaterial.h b/core/3d/CCMeshMaterial.h index 344f9e17f9..2e88a4552e 100644 --- a/core/3d/CCMeshMaterial.h +++ b/core/3d/CCMeshMaterial.h @@ -31,7 +31,7 @@ #include "3d/CCBundle3DData.h" #include "renderer/backend/Types.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup _3d @@ -187,4 +187,4 @@ protected: // end of 3d group /// @} -NS_CC_END +NS_AX_END diff --git a/core/3d/CCMeshRenderer.cpp b/core/3d/CCMeshRenderer.cpp index 1fb0ce50d3..9fc5a18561 100644 --- a/core/3d/CCMeshRenderer.cpp +++ b/core/3d/CCMeshRenderer.cpp @@ -46,7 +46,7 @@ #include "renderer/CCTechnique.h" #include "renderer/CCPass.h" -NS_CC_BEGIN +NS_AX_BEGIN static MeshMaterial* getMeshRendererMaterialForAttribs(MeshVertexData* meshVertexData, bool usesLight); @@ -725,7 +725,7 @@ void MeshRenderer::removeAllAttachNode() _attachments.clear(); } -void MeshRenderer::visit(cocos2d::Renderer* renderer, const cocos2d::Mat4& parentTransform, uint32_t parentFlags) +void MeshRenderer::visit(axis::Renderer* renderer, const axis::Mat4& parentTransform, uint32_t parentFlags) { // quick return if not visible. children won't be drawn. if (!_visible) @@ -1046,4 +1046,4 @@ static MeshMaterial* getMeshRendererMaterialForAttribs(MeshVertexData* meshVerte return MeshMaterial::createBuiltInMaterial(type, hasSkin); } -NS_CC_END +NS_AX_END diff --git a/core/3d/CCMeshRenderer.h b/core/3d/CCMeshRenderer.h index 6a3e8ab154..6e604ae005 100644 --- a/core/3d/CCMeshRenderer.h +++ b/core/3d/CCMeshRenderer.h @@ -38,7 +38,7 @@ #include "3d/CCBundle3DData.h" #include "3d/CCMeshVertexIndexData.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup _3d @@ -340,5 +340,5 @@ protected: // end of 3d group /// @} -NS_CC_END +NS_AX_END #endif // __CC_MESH_RENDERER_H__ diff --git a/core/3d/CCMeshSkin.cpp b/core/3d/CCMeshSkin.cpp index 44aa5a90a2..65f893251e 100644 --- a/core/3d/CCMeshSkin.cpp +++ b/core/3d/CCMeshSkin.cpp @@ -27,7 +27,7 @@ #include "3d/CCBundle3D.h" #include "3d/CCSkeleton3D.h" -NS_CC_BEGIN +NS_AX_BEGIN static int PALETTE_ROWS = 3; @@ -161,4 +161,4 @@ const Mat4& MeshSkin::getInvBindPose(const Bone3D* bone) return Mat4::IDENTITY; } -NS_CC_END +NS_AX_END diff --git a/core/3d/CCMeshSkin.h b/core/3d/CCMeshSkin.h index 2f777b16f0..b61d77b8c8 100644 --- a/core/3d/CCMeshSkin.h +++ b/core/3d/CCMeshSkin.h @@ -32,7 +32,7 @@ #include "math/CCMath.h" #include -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup _3d @@ -112,6 +112,6 @@ protected: // end of 3d group /// @} -NS_CC_END +NS_AX_END #endif // __CCSKIN_H__ diff --git a/core/3d/CCMeshVertexIndexData.cpp b/core/3d/CCMeshVertexIndexData.cpp index 299d7d69b1..0e0677e4ef 100644 --- a/core/3d/CCMeshVertexIndexData.cpp +++ b/core/3d/CCMeshVertexIndexData.cpp @@ -46,7 +46,7 @@ using namespace std; -NS_CC_BEGIN +NS_AX_BEGIN ///////////////////////////////////////////////////////////////////////////////////////////////////////////// MeshIndexData* MeshIndexData::create(std::string_view id, @@ -81,7 +81,7 @@ MeshIndexData::MeshIndexData() #endif } -void MeshIndexData::setIndexData(const cocos2d::MeshData::IndexArray& indexdata) +void MeshIndexData::setIndexData(const axis::MeshData::IndexArray& indexdata) { #if CC_ENABLE_CACHE_TEXTURE_DATA if (!_indexData.empty()) @@ -200,4 +200,4 @@ MeshVertexData::~MeshVertexData() #endif } -NS_CC_END +NS_AX_END diff --git a/core/3d/CCMeshVertexIndexData.h b/core/3d/CCMeshVertexIndexData.h index d31c3c8625..e32bb9ed90 100644 --- a/core/3d/CCMeshVertexIndexData.h +++ b/core/3d/CCMeshVertexIndexData.h @@ -36,7 +36,7 @@ #include "math/CCMath.h" #include "renderer/CCMeshCommand.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup _3d @@ -157,4 +157,4 @@ protected: // end of 3d group /// @} -NS_CC_END +NS_AX_END diff --git a/core/3d/CCMotionStreak3D.cpp b/core/3d/CCMotionStreak3D.cpp index a3d5de0287..5befbc9cd4 100644 --- a/core/3d/CCMotionStreak3D.cpp +++ b/core/3d/CCMotionStreak3D.cpp @@ -36,7 +36,7 @@ THE SOFTWARE. #include "renderer/CCRenderState.h" #include "renderer/ccShaders.h" -NS_CC_BEGIN +NS_AX_BEGIN MotionStreak3D::MotionStreak3D() : _startingPositionInitialized(false) @@ -462,4 +462,4 @@ void MotionStreak3D::onAfterDraw() renderer->setCullMode(_rendererCullface); } -NS_CC_END +NS_AX_END diff --git a/core/3d/CCMotionStreak3D.h b/core/3d/CCMotionStreak3D.h index ec1957ef4a..eb8282327d 100644 --- a/core/3d/CCMotionStreak3D.h +++ b/core/3d/CCMotionStreak3D.h @@ -32,7 +32,7 @@ THE SOFTWARE. #include -NS_CC_BEGIN +NS_AX_BEGIN class Texture2D; @@ -220,6 +220,6 @@ private: // end of _3d group /// @} -NS_CC_END +NS_AX_END #endif //__CC_MOTION_STREAK3D_H__ diff --git a/core/3d/CCOBB.cpp b/core/3d/CCOBB.cpp index 6d65216f9a..c7846bb762 100644 --- a/core/3d/CCOBB.cpp +++ b/core/3d/CCOBB.cpp @@ -25,7 +25,7 @@ #include "3d/CCOBB.h" -NS_CC_BEGIN +NS_AX_BEGIN #define ROTATE(a, i, j, k, l) \ g = a.m[i + 4 * j]; \ @@ -474,4 +474,4 @@ void OBB::transform(const Mat4& mat) computeExtAxis(); } -NS_CC_END +NS_AX_END diff --git a/core/3d/CCOBB.h b/core/3d/CCOBB.h index 2a50c0794f..2cd6babbd6 100644 --- a/core/3d/CCOBB.h +++ b/core/3d/CCOBB.h @@ -28,7 +28,7 @@ #include "3d/CCAABB.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup _3d @@ -144,6 +144,6 @@ public: // end of 3d group /// @} -NS_CC_END +NS_AX_END #endif diff --git a/core/3d/CCObjLoader.cpp b/core/3d/CCObjLoader.cpp index a95655ce4a..b2dbd0c9a8 100644 --- a/core/3d/CCObjLoader.cpp +++ b/core/3d/CCObjLoader.cpp @@ -698,7 +698,7 @@ std::string MaterialFileReader::operator()(std::string_view matId, std::string err = ""; - std::istringstream matIStream(cocos2d::FileUtils::getInstance()->getStringFromFile(filepath)); + std::istringstream matIStream(axis::FileUtils::getInstance()->getStringFromFile(filepath)); if (!matIStream) { std::stringstream ss; @@ -720,7 +720,7 @@ std::string LoadObj(std::vector& shapes, std::stringstream err; - std::istringstream ifs(cocos2d::FileUtils::getInstance()->getStringFromFile(filename)); + std::istringstream ifs(axis::FileUtils::getInstance()->getStringFromFile(filename)); if (!ifs) { err << "Cannot open file [" << filename << "]" << std::endl; diff --git a/core/3d/CCPlane.cpp b/core/3d/CCPlane.cpp index 8025a3d8a0..881236a8b6 100644 --- a/core/3d/CCPlane.cpp +++ b/core/3d/CCPlane.cpp @@ -25,7 +25,7 @@ #include "3d/CCPlane.h" -NS_CC_BEGIN +NS_AX_BEGIN Plane::Plane() : _normal(0.f, 0.f, 1.f), _dist(0.f) {} @@ -86,4 +86,4 @@ PointSide Plane::getSide(const Vec3& point) const return PointSide::IN_PLANE; } -NS_CC_END +NS_AX_END diff --git a/core/3d/CCPlane.h b/core/3d/CCPlane.h index f511181b94..f8e8cd0913 100644 --- a/core/3d/CCPlane.h +++ b/core/3d/CCPlane.h @@ -29,7 +29,7 @@ #include "base/ccMacros.h" #include "math/CCMath.h" -NS_CC_BEGIN +NS_AX_BEGIN enum class PointSide { @@ -106,6 +106,6 @@ protected: float _dist; // original displacement of the normal }; -NS_CC_END +NS_AX_END #endif diff --git a/core/3d/CCRay.cpp b/core/3d/CCRay.cpp index afa4ef6331..ae4c51f4ee 100644 --- a/core/3d/CCRay.cpp +++ b/core/3d/CCRay.cpp @@ -23,7 +23,7 @@ THE SOFTWARE. #include "3d/CCRay.h" -NS_CC_BEGIN +NS_AX_BEGIN Ray::Ray() : _direction(0, 0, 1) {} @@ -223,4 +223,4 @@ void Ray::transform(const Mat4& matrix) _direction.normalize(); } -NS_CC_END +NS_AX_END diff --git a/core/3d/CCRay.h b/core/3d/CCRay.h index eeadf170ed..dccea23361 100644 --- a/core/3d/CCRay.h +++ b/core/3d/CCRay.h @@ -31,7 +31,7 @@ #include "3d/CCOBB.h" #include "3d/CCPlane.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup _3d @@ -108,6 +108,6 @@ public: // end of 3d group /// @} -NS_CC_END +NS_AX_END #endif diff --git a/core/3d/CCSkeleton3D.cpp b/core/3d/CCSkeleton3D.cpp index 1afa7a59ec..2e36102cd2 100644 --- a/core/3d/CCSkeleton3D.cpp +++ b/core/3d/CCSkeleton3D.cpp @@ -25,7 +25,7 @@ #include "3d/CCSkeleton3D.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * Sets the inverse bind pose matrix. @@ -347,4 +347,4 @@ Bone3D* Skeleton3D::createBone3D(const NodeData& nodedata) return bone; } -NS_CC_END +NS_AX_END diff --git a/core/3d/CCSkeleton3D.h b/core/3d/CCSkeleton3D.h index 9e6988acb9..ea86fc6367 100644 --- a/core/3d/CCSkeleton3D.h +++ b/core/3d/CCSkeleton3D.h @@ -30,7 +30,7 @@ #include "base/CCRef.h" #include "base/CCVector.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup _3d @@ -224,6 +224,6 @@ protected: // end of 3d group /// @} -NS_CC_END +NS_AX_END #endif // __CCSKELETON3D_H__ diff --git a/core/3d/CCSkybox.cpp b/core/3d/CCSkybox.cpp index 74987f0af1..5b78572db3 100644 --- a/core/3d/CCSkybox.cpp +++ b/core/3d/CCSkybox.cpp @@ -32,7 +32,7 @@ #include "renderer/ccShaders.h" #include "2d/CCCamera.h" -NS_CC_BEGIN +NS_AX_BEGIN Skybox::Skybox() : _texture(nullptr) {} @@ -200,4 +200,4 @@ void Skybox::onAfterDraw() renderer->setCullMode(_rendererCullMode); } -NS_CC_END +NS_AX_END diff --git a/core/3d/CCSkybox.h b/core/3d/CCSkybox.h index 4f9f3fb271..62497d0893 100644 --- a/core/3d/CCSkybox.h +++ b/core/3d/CCSkybox.h @@ -32,7 +32,7 @@ #include "2d/CCNode.h" #include "renderer/backend/ProgramState.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup _3d @@ -126,6 +126,6 @@ private: // end of 3d group /// @} -NS_CC_END +NS_AX_END #endif // __SKYBOX_H__ diff --git a/core/3d/CCTerrain.cpp b/core/3d/CCTerrain.cpp index 969c9cb15e..e8dcb8b369 100644 --- a/core/3d/CCTerrain.cpp +++ b/core/3d/CCTerrain.cpp @@ -25,7 +25,7 @@ THE SOFTWARE. #include "3d/CCTerrain.h" -USING_NS_CC; +USING_NS_AX; #include #include #include @@ -43,7 +43,7 @@ USING_NS_CC; #include "3d/CC3DProgramInfo.h" #include "base/ccUtils.h" -NS_CC_BEGIN +NS_AX_BEGIN namespace { @@ -83,7 +83,7 @@ bool Terrain::initWithTerrainData(TerrainData& parameter, CrackFixedType fixedTy return initResult; } -void cocos2d::Terrain::setLightMap(std::string_view fileName) +void axis::Terrain::setLightMap(std::string_view fileName) { CC_SAFE_RELEASE(_lightMap); auto image = new Image(); @@ -98,7 +98,7 @@ void cocos2d::Terrain::setLightMap(std::string_view fileName) _lightMap->setTexParameters(tRepeatParams); } -void cocos2d::Terrain::setLightDir(const Vec3& lightDir) +void axis::Terrain::setLightDir(const Vec3& lightDir) { _lightDir = lightDir; } @@ -118,7 +118,7 @@ bool Terrain::initProperties() return true; } -void Terrain::draw(cocos2d::Renderer* renderer, const cocos2d::Mat4& transform, uint32_t flags) +void Terrain::draw(axis::Renderer* renderer, const axis::Mat4& transform, uint32_t flags) { auto modelMatrix = getNodeToWorldTransform(); if (memcmp(&modelMatrix, &_terrainModelMatrix, sizeof(Mat4)) != 0) @@ -493,7 +493,7 @@ Terrain::~Terrain() #endif } -cocos2d::Vec3 Terrain::getNormal(int pixel_x, int pixel_y) const +axis::Vec3 Terrain::getNormal(int pixel_x, int pixel_y) const { float a = getImageHeight(pixel_x, pixel_y) * getScaleY(); float b = getImageHeight(pixel_x, pixel_y + 1) * getScaleY(); @@ -507,7 +507,7 @@ cocos2d::Vec3 Terrain::getNormal(int pixel_x, int pixel_y) const return normal; } -cocos2d::Vec3 Terrain::getIntersectionPoint(const Ray& ray) const +axis::Vec3 Terrain::getIntersectionPoint(const Ray& ray) const { Vec3 collisionPoint; if (getIntersectionPoint(ray, collisionPoint)) @@ -587,7 +587,7 @@ void Terrain::setMaxDetailMapAmount(int max_value) _maxDetailMapValue = max_value; } -cocos2d::Vec2 Terrain::convertToTerrainSpace(const Vec2& worldSpaceXZ) const +axis::Vec2 Terrain::convertToTerrainSpace(const Vec2& worldSpaceXZ) const { Vec2 pos(worldSpaceXZ.x, worldSpaceXZ.y); @@ -640,7 +640,7 @@ float Terrain::getMaxHeight() return _maxHeight; } -cocos2d::AABB Terrain::getAABB() +axis::AABB Terrain::getAABB() { return _quadRoot->_worldSpaceAABB; } @@ -665,14 +665,14 @@ std::vector Terrain::getHeightData() const return data; } -Terrain::Chunk* cocos2d::Terrain::getChunkByIndex(int x, int y) const +Terrain::Chunk* axis::Terrain::getChunkByIndex(int x, int y) const { if (x < 0 || y < 0 || x >= MAX_CHUNKES || y >= MAX_CHUNKES) return nullptr; return _chunkesArray[y][x]; } -void Terrain::setAlphaMap(cocos2d::Texture2D* newAlphaMapTexture) +void Terrain::setAlphaMap(axis::Texture2D* newAlphaMapTexture) { CC_SAFE_RETAIN(newAlphaMapTexture); CC_SAFE_RELEASE(_alphaMap); @@ -1748,7 +1748,7 @@ Terrain::Triangle::Triangle(const Vec3& p1, const Vec3& p2, const Vec3& p3) _p3 = p3; } -void Terrain::Triangle::transform(const cocos2d::Mat4& matrix) +void Terrain::Triangle::transform(const axis::Mat4& matrix) { matrix.transformPoint(&_p1); matrix.transformPoint(&_p2); @@ -1842,4 +1842,4 @@ void Terrain::StateBlock::apply() renderer->setWinding(winding); } -NS_CC_END +NS_AX_END diff --git a/core/3d/CCTerrain.h b/core/3d/CCTerrain.h index 5411ef8c29..619027a4db 100644 --- a/core/3d/CCTerrain.h +++ b/core/3d/CCTerrain.h @@ -40,7 +40,7 @@ THE SOFTWARE. #include "base/CCEventListenerCustom.h" #include "base/CCEventDispatcher.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup _3d @@ -215,9 +215,9 @@ private: _texcoord = v2; } /*the vertex's attributes*/ - cocos2d::Vec3 _position; - cocos2d::Tex2F _texcoord; - cocos2d::Vec3 _normal; + axis::Vec3 _position; + axis::Tex2F _texcoord; + axis::Vec3 _normal; }; struct CC_DLL QuadTree; @@ -396,12 +396,12 @@ public: void setIsEnableFrustumCull(bool boolValue); /** set the alpha map*/ - void setAlphaMap(cocos2d::Texture2D* newAlphaMapTexture); + void setAlphaMap(axis::Texture2D* newAlphaMapTexture); /**set the Detail Map */ void setDetailMap(unsigned int index, DetailMap detailMap); // Overrides, internal use only - virtual void draw(cocos2d::Renderer* renderer, const cocos2d::Mat4& transform, uint32_t flags) override; + virtual void draw(axis::Renderer* renderer, const axis::Mat4& transform, uint32_t flags) override; /** * Ray-Terrain intersection. * @return the intersection point @@ -536,7 +536,7 @@ protected: Vec2 _chunkSize; bool _isEnableFrustumCull; int _maxDetailMapValue; - cocos2d::Image* _heightMapImage; + axis::Image* _heightMapImage; Mat4 _oldCameraModelMatrix; Mat4 _terrainModelMatrix; float _maxHeight; @@ -577,4 +577,4 @@ private: // end of actions group /// @} -NS_CC_END +NS_AX_END diff --git a/core/3d/CCVertexAttribBinding.cpp b/core/3d/CCVertexAttribBinding.cpp index f7325edb7e..21ac744d76 100644 --- a/core/3d/CCVertexAttribBinding.cpp +++ b/core/3d/CCVertexAttribBinding.cpp @@ -27,7 +27,7 @@ #include "3d/CC3DProgramInfo.h" #include "3d/CCVertexAttribBinding.h" -NS_CC_BEGIN +NS_AX_BEGIN static std::vector __vertexAttribBindingCache; @@ -159,4 +159,4 @@ void VertexAttribBinding::setVertexAttribPointer(std::string_view name, } } -NS_CC_END +NS_AX_END diff --git a/core/3d/CCVertexAttribBinding.h b/core/3d/CCVertexAttribBinding.h index e923782625..c4bad32dc1 100644 --- a/core/3d/CCVertexAttribBinding.h +++ b/core/3d/CCVertexAttribBinding.h @@ -30,7 +30,7 @@ #include "renderer/CCPass.h" #include "3d/CC3DProgramInfo.h" -NS_CC_BEGIN +NS_AX_BEGIN class MeshIndexData; class VertexAttribValue; @@ -122,4 +122,4 @@ private: uint32_t _vertexAttribsFlags; }; -NS_CC_END +NS_AX_END diff --git a/core/audio/AudioCache.cpp b/core/audio/AudioCache.cpp index d1ee5eb62b..bdefc94f8f 100644 --- a/core/audio/AudioCache.cpp +++ b/core/audio/AudioCache.cpp @@ -56,7 +56,7 @@ unsigned int __idIndex = 0; #define INVALID_AL_BUFFER_ID 0xFFFFFFFF #define PCMDATA_CACHEMAXSIZE 1048576 -using namespace cocos2d; +USING_NS_AX; AudioCache::AudioCache() : _totalFrames(0) diff --git a/core/audio/AudioCache.h b/core/audio/AudioCache.h index 0f59a8512f..32a3abfe8b 100644 --- a/core/audio/AudioCache.h +++ b/core/audio/AudioCache.h @@ -38,7 +38,7 @@ #include "audio/AudioMacros.h" #include "audio/alconfig.h" -NS_CC_BEGIN +NS_AX_BEGIN class AudioEngineImpl; class AudioPlayer; @@ -108,4 +108,4 @@ protected: friend class AudioPlayer; }; -NS_CC_END +NS_AX_END diff --git a/core/audio/AudioDecoder.cpp b/core/audio/AudioDecoder.cpp index 5fa340655d..0ca1a249fa 100644 --- a/core/audio/AudioDecoder.cpp +++ b/core/audio/AudioDecoder.cpp @@ -30,8 +30,7 @@ #define LOG_TAG "AudioDecoder" -namespace cocos2d -{ +NS_AX_BEGIN AudioDecoder::AudioDecoder() : _isOpened(false) @@ -102,4 +101,4 @@ AUDIO_SOURCE_FORMAT AudioDecoder::getSourceFormat() const { return _sourceFormat; } -} // namespace cocos2d +NS_AX_END // namespace axis diff --git a/core/audio/AudioDecoder.h b/core/audio/AudioDecoder.h index 4a3bb47ea6..9b940843ae 100644 --- a/core/audio/AudioDecoder.h +++ b/core/audio/AudioDecoder.h @@ -30,8 +30,8 @@ #include #include "platform/CCFileStream.h" -namespace cocos2d -{ +NS_AX_BEGIN + enum class AUDIO_SOURCE_FORMAT : uint16_t { PCM_UNK, // Unknown @@ -148,4 +148,4 @@ protected: friend class AudioDecoderManager; }; -} // namespace cocos2d +NS_AX_END // namespace axis diff --git a/core/audio/AudioDecoderEXT.h b/core/audio/AudioDecoderEXT.h index 3a536fe2de..202e5030f0 100644 --- a/core/audio/AudioDecoderEXT.h +++ b/core/audio/AudioDecoderEXT.h @@ -31,8 +31,7 @@ #include "audio/AudioDecoder.h" #include "platform/CCFileStream.h" -namespace cocos2d -{ +NS_AX_BEGIN /** * @brief The class for decoding compressed audio file to PCM buffer. @@ -99,11 +98,11 @@ private: static SInt64 getSizeCallback(void* inClientData); ExtAudioFileRef _extRef; - std::unique_ptr _fileStream; + std::unique_ptr _fileStream; SInt64 _streamSize; AudioFileID _audioFileId; AudioStreamBasicDescription _outputFormat; }; -} // namespace cocos2d +NS_AX_END // namespace axis diff --git a/core/audio/AudioDecoderEXT.mm b/core/audio/AudioDecoderEXT.mm index b8b9a50ea7..874b1176c7 100644 --- a/core/audio/AudioDecoderEXT.mm +++ b/core/audio/AudioDecoderEXT.mm @@ -32,8 +32,7 @@ #define LOG_TAG "AudioDecoder" -namespace cocos2d -{ +NS_AX_BEGIN AudioDecoderEXT::AudioDecoderEXT() : _extRef(nullptr), _fileStream(nullptr), _streamSize(0), _audioFileId(nullptr) { @@ -53,7 +52,7 @@ bool AudioDecoderEXT::open(std::string_view fullPath) { BREAK_IF_ERR_LOG(fullPath.empty(), "Invalid path!"); - _fileStream = cocos2d::FileUtils::getInstance()->openFileStream(fullPath, FileStream::Mode::READ); + _fileStream = FileUtils::getInstance()->openFileStream(fullPath, FileStream::Mode::READ); BREAK_IF_ERR_LOG(_fileStream == nullptr, "FileUtils::openFileStream FAILED for file: %s", fullPath.data()); if (_fileStream) { @@ -222,4 +221,4 @@ SInt64 AudioDecoderEXT::getSizeCallback(void* inClientData) auto* audioDecoder = (AudioDecoderEXT*)inClientData; return audioDecoder->_streamSize; } -} // namespace cocos2d { +NS_AX_END // namespace axis diff --git a/core/audio/AudioDecoderManager.cpp b/core/audio/AudioDecoderManager.cpp index 015431f434..49545e1534 100644 --- a/core/audio/AudioDecoderManager.cpp +++ b/core/audio/AudioDecoderManager.cpp @@ -42,8 +42,7 @@ THE SOFTWARE. #include "yasio/cxx17/string_view.hpp" -namespace cocos2d -{ +NS_AX_BEGIN bool AudioDecoderManager::init() { @@ -93,4 +92,4 @@ void AudioDecoderManager::destroyDecoder(AudioDecoder* decoder) delete decoder; } -} // namespace cocos2d +NS_AX_END // namespace axis diff --git a/core/audio/AudioDecoderManager.h b/core/audio/AudioDecoderManager.h index 98fed8c60e..801910e297 100644 --- a/core/audio/AudioDecoderManager.h +++ b/core/audio/AudioDecoderManager.h @@ -1,7 +1,7 @@ /**************************************************************************** Copyright (c) 2016 Chukong Technologies Inc. Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd. -Copyright (c) 2021 Bytedance Inc. +Copyright (c) 2021-2022 Bytedance Inc. https://axis-project.github.io/ @@ -27,8 +27,9 @@ THE SOFTWARE. #pragma once #include -namespace cocos2d -{ +#include "platform/CCPlatformMacros.h" + +NS_AX_BEGIN class AudioDecoder; @@ -41,4 +42,4 @@ public: static void destroyDecoder(AudioDecoder* decoder); }; -} // namespace cocos2d +NS_AX_END // namespace axis diff --git a/core/audio/AudioDecoderMp3.cpp b/core/audio/AudioDecoderMp3.cpp index 6ef3ff5467..2280f3a208 100644 --- a/core/audio/AudioDecoderMp3.cpp +++ b/core/audio/AudioDecoderMp3.cpp @@ -54,8 +54,8 @@ struct mp3dec_impl }; #endif -namespace cocos2d -{ +NS_AX_BEGIN + #if !CC_USE_MPG123 static size_t minimp3_read_r(void* buf, size_t size, void* user_data) { @@ -298,4 +298,4 @@ bool AudioDecoderMp3::seek(uint32_t frameOffset) return (offset >= 0 && offset == frameOffset); #endif } -} // namespace cocos2d +NS_AX_END // namespace axis diff --git a/core/audio/AudioDecoderMp3.h b/core/audio/AudioDecoderMp3.h index 87ddd4119c..c942cab42d 100644 --- a/core/audio/AudioDecoderMp3.h +++ b/core/audio/AudioDecoderMp3.h @@ -39,8 +39,7 @@ typedef struct mp3dec_impl* mp3dec_handle_t; typedef struct mpg123_handle_struct* mp3dec_handle_t; #endif -namespace cocos2d -{ +NS_AX_BEGIN /** * @brief The class for decoding compressed audio file to PCM buffer. @@ -90,4 +89,4 @@ protected: friend class AudioDecoderManager; }; -} // namespace cocos2d +NS_AX_END // namespace axis diff --git a/core/audio/AudioDecoderOgg.cpp b/core/audio/AudioDecoderOgg.cpp index 8381aba62b..21ef0bb452 100644 --- a/core/audio/AudioDecoderOgg.cpp +++ b/core/audio/AudioDecoderOgg.cpp @@ -35,8 +35,7 @@ # include #endif -namespace cocos2d -{ +NS_AX_BEGIN static size_t ov_fread_r(void* buffer, size_t element_size, size_t element_count, void* handle) { @@ -116,4 +115,4 @@ bool AudioDecoderOgg::seek(uint32_t frameOffset) { return 0 == ov_pcm_seek(&_vf, frameOffset); } -} // namespace cocos2d +NS_AX_END // namespace axis diff --git a/core/audio/AudioDecoderOgg.h b/core/audio/AudioDecoderOgg.h index d5f6d5ce7c..de67f6467f 100644 --- a/core/audio/AudioDecoderOgg.h +++ b/core/audio/AudioDecoderOgg.h @@ -31,8 +31,7 @@ #include "vorbis/vorbisfile.h" #include -namespace cocos2d -{ +NS_AX_BEGIN /** * @brief The class for decoding compressed audio file to PCM buffer. @@ -78,4 +77,4 @@ protected: friend class AudioDecoderManager; }; -} // namespace cocos2d +NS_AX_END // namespace axis diff --git a/core/audio/AudioDecoderWav.cpp b/core/audio/AudioDecoderWav.cpp index 6ecd5bae8f..369594d083 100644 --- a/core/audio/AudioDecoderWav.cpp +++ b/core/audio/AudioDecoderWav.cpp @@ -30,8 +30,8 @@ #include "audio/AudioMacros.h" #include "platform/CCFileUtils.h" -namespace cocos2d -{ +NS_AX_BEGIN + enum : uint32_t { WAV_SIGN_ID = MAKE_FOURCC('W', 'A', 'V', 'E'), @@ -258,4 +258,4 @@ bool AudioDecoderWav::seek(uint32_t frameOffset) auto offset = framesToBytes(frameOffset); return wav_seek(&_wavf, offset) == offset; } -} // namespace cocos2d +NS_AX_END // namespace axis diff --git a/core/audio/AudioDecoderWav.h b/core/audio/AudioDecoderWav.h index 484615c457..021eb30c87 100644 --- a/core/audio/AudioDecoderWav.h +++ b/core/audio/AudioDecoderWav.h @@ -49,8 +49,7 @@ __inline int IsEqualGUID(const GUID& rguid1, const GUID& rguid2) #include #endif -namespace cocos2d -{ +NS_AX_BEGIN // http://soundfile.sapp.org/doc/WaveFormat/ enum class WAV_FORMAT : uint16_t @@ -173,4 +172,4 @@ protected: mutable WAV_FILE _wavf; }; -} // namespace cocos2d +NS_AX_END // namespace axis diff --git a/core/audio/AudioEngine.cpp b/core/audio/AudioEngine.cpp index 4e99019b29..92909701de 100644 --- a/core/audio/AudioEngine.cpp +++ b/core/audio/AudioEngine.cpp @@ -41,7 +41,7 @@ # undef ERROR #endif // ERROR -using namespace cocos2d; +USING_NS_AX; const int AudioEngine::INVALID_AUDIO_ID = -1; const float AudioEngine::TIME_UNKNOWN = -1.0f; diff --git a/core/audio/AudioEngine.h b/core/audio/AudioEngine.h index f0b4b33fdd..a239877efa 100644 --- a/core/audio/AudioEngine.h +++ b/core/audio/AudioEngine.h @@ -44,7 +44,7 @@ * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN /** * @class AudioProfile @@ -365,7 +365,7 @@ protected: friend class AudioEngineImpl; }; -NS_CC_END +NS_AX_END // end group /// @} diff --git a/core/audio/AudioEngineImpl.cpp b/core/audio/AudioEngineImpl.cpp index bf402d6a01..aacf28172e 100644 --- a/core/audio/AudioEngineImpl.cpp +++ b/core/audio/AudioEngineImpl.cpp @@ -45,7 +45,7 @@ # import #endif -using namespace cocos2d; +USING_NS_AX; static ALCdevice* s_ALDevice = nullptr; static ALCcontext* s_ALContext = nullptr; diff --git a/core/audio/AudioEngineImpl.h b/core/audio/AudioEngineImpl.h index 3f78b336ea..9ec33a0b16 100644 --- a/core/audio/AudioEngineImpl.h +++ b/core/audio/AudioEngineImpl.h @@ -38,11 +38,11 @@ # include "audio/AudioCache.h" # include "audio/AudioPlayer.h" -NS_CC_BEGIN +NS_AX_BEGIN class Scheduler; -class CC_DLL AudioEngineImpl : public cocos2d::Ref +class CC_DLL AudioEngineImpl : public axis::Ref { public: AudioEngineImpl(); @@ -96,5 +96,5 @@ private: Scheduler* _scheduler; }; -NS_CC_END +NS_AX_END #endif // __AUDIO_ENGINE_INL_H_ diff --git a/core/audio/AudioPlayer.cpp b/core/audio/AudioPlayer.cpp index 91241537d0..50ef6bab0b 100644 --- a/core/audio/AudioPlayer.cpp +++ b/core/audio/AudioPlayer.cpp @@ -43,7 +43,7 @@ } while (false) #endif -using namespace cocos2d; +USING_NS_AX; namespace { diff --git a/core/audio/AudioPlayer.h b/core/audio/AudioPlayer.h index e32ab69d54..048b79fe4e 100644 --- a/core/audio/AudioPlayer.h +++ b/core/audio/AudioPlayer.h @@ -38,7 +38,7 @@ #include "platform/CCPlatformMacros.h" #include "audio/alconfig.h" -NS_CC_BEGIN +NS_AX_BEGIN class AudioCache; class AudioEngineImpl; @@ -98,4 +98,4 @@ protected: friend class AudioEngineImpl; }; -NS_CC_END +NS_AX_END diff --git a/core/axis.cpp b/core/axis.cpp index 420450e877..f83161bdcc 100644 --- a/core/axis.cpp +++ b/core/axis.cpp @@ -29,7 +29,7 @@ THE SOFTWARE. #include "platform/CCPlatformMacros.h" -NS_CC_BEGIN +NS_AX_BEGIN CC_DLL const char* axisVersion() { @@ -41,4 +41,4 @@ CC_DLL const char* cocos2dVersion() return axisVersion(); } -NS_CC_END +NS_AX_END diff --git a/core/axis.h b/core/axis.h index 011ed670b9..cc115694ff 100644 --- a/core/axis.h +++ b/core/axis.h @@ -270,10 +270,10 @@ THE SOFTWARE. #include "3d/CCTerrain.h" #include "3d/CCVertexAttribBinding.h" -NS_CC_BEGIN +NS_AX_BEGIN CC_DLL const char* axisVersion(); -NS_CC_END +NS_AX_END #endif // __AXIS_H__ diff --git a/core/base/CCAsyncTaskPool.cpp b/core/base/CCAsyncTaskPool.cpp index 9b442281c1..515d415863 100644 --- a/core/base/CCAsyncTaskPool.cpp +++ b/core/base/CCAsyncTaskPool.cpp @@ -26,7 +26,7 @@ THE SOFTWARE. #include "base/CCAsyncTaskPool.h" -NS_CC_BEGIN +NS_AX_BEGIN AsyncTaskPool* AsyncTaskPool::s_asyncTaskPool = nullptr; @@ -49,4 +49,4 @@ AsyncTaskPool::AsyncTaskPool() {} AsyncTaskPool::~AsyncTaskPool() {} -NS_CC_END +NS_AX_END diff --git a/core/base/CCAsyncTaskPool.h b/core/base/CCAsyncTaskPool.h index f949871527..da9711419c 100644 --- a/core/base/CCAsyncTaskPool.h +++ b/core/base/CCAsyncTaskPool.h @@ -43,7 +43,7 @@ THE SOFTWARE. * @addtogroup base * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN /** * @class AsyncTaskPool @@ -225,7 +225,7 @@ inline void AsyncTaskPool::enqueue(AsyncTaskPool::TaskType type, std::functiongetMaxAttributes(); } -NS_CC_END +NS_AX_END diff --git a/core/base/CCConfiguration.h b/core/base/CCConfiguration.h index 4632e5584d..254181c40f 100644 --- a/core/base/CCConfiguration.h +++ b/core/base/CCConfiguration.h @@ -38,7 +38,7 @@ THE SOFTWARE. * @addtogroup base * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN class EventCustom; @@ -281,7 +281,7 @@ protected: EventCustom* _loadedEvent; }; -NS_CC_END +NS_AX_END // end of base group /// @} diff --git a/core/base/CCConsole.cpp b/core/base/CCConsole.cpp index acdb226c22..a4d353ce00 100644 --- a/core/base/CCConsole.cpp +++ b/core/base/CCConsole.cpp @@ -58,7 +58,7 @@ #include "base/ccUtils.h" #include "base/ccUTF8.h" -// !FIXME: the previous version of cocos2d::log not thread safe +// !FIXME: the previous version of axis::log not thread safe // since axis make it multi-threading safe by default #if !defined(CC_LOG_MULTITHREAD) # define CC_LOG_MULTITHREAD 1 @@ -68,7 +68,7 @@ # define CC_LOG_TO_CONSOLE 1 #endif -NS_CC_BEGIN +NS_AX_BEGIN extern const char* axisVersion(void); @@ -568,7 +568,7 @@ bool Console::listenOnTCP(int port) char buf[INET_ADDRSTRLEN] = {0}; struct sockaddr_in* sin = (struct sockaddr_in*)res->ai_addr; if (inet_ntop(res->ai_family, &sin->sin_addr, buf, sizeof(buf)) != nullptr) - cocos2d::log("Console: IPV4 server is listening on %s:%d", buf, ntohs(sin->sin_port)); + axis::log("Console: IPV4 server is listening on %s:%d", buf, ntohs(sin->sin_port)); else perror("inet_ntop"); } @@ -578,7 +578,7 @@ bool Console::listenOnTCP(int port) char buf[INET6_ADDRSTRLEN] = {0}; struct sockaddr_in6* sin = (struct sockaddr_in6*)res->ai_addr; if (inet_ntop(res->ai_family, &sin->sin6_addr, buf, sizeof(buf)) != nullptr) - cocos2d::log("Console: IPV6 server is listening on [%s]:%d", buf, ntohs(sin->sin6_port)); + axis::log("Console: IPV6 server is listening on [%s]:%d", buf, ntohs(sin->sin6_port)); else perror("inet_ntop"); } @@ -591,7 +591,7 @@ bool Console::listenOnFileDescriptor(int fd) { if (_running) { - cocos2d::log("Console already started. 'stop' it before calling 'listen' again"); + axis::log("Console already started. 'stop' it before calling 'listen' again"); return false; } @@ -741,7 +741,7 @@ void Console::loop() { /* error */ if (errno != EINTR) - cocos2d::log("Abnormal error in select()\n"); + axis::log("Abnormal error in select()\n"); continue; } else if (nready == 0) @@ -776,7 +776,7 @@ void Console::loop() int n = 0; if (ioctl(fd, FIONREAD, &n) < 0) { - cocos2d::log("Abnormal error in ioctl()\n"); + axis::log("Abnormal error in ioctl()\n"); break; } #endif @@ -1272,13 +1272,13 @@ void Console::commandProjection(socket_native_type fd, std::string_view /*args*/ auto proj = director->getProjection(); switch (proj) { - case cocos2d::Director::Projection::_2D: + case axis::Director::Projection::_2D: sprintf(buf, "2d"); break; - case cocos2d::Director::Projection::_3D: + case axis::Director::Projection::_3D: sprintf(buf, "3d"); break; - case cocos2d::Director::Projection::CUSTOM: + case axis::Director::Projection::CUSTOM: sprintf(buf, "custom"); break; @@ -1640,4 +1640,4 @@ void Console::sendHelp(socket_native_type fd, const hlookup::string_map& commands, const char* msg); }; -NS_CC_END +NS_AX_END /// @endcond #endif /* defined(__CCCONSOLE_H__) */ diff --git a/core/base/CCController-android.cpp b/core/base/CCController-android.cpp index 53416e12fb..7a1c3dcf9b 100644 --- a/core/base/CCController-android.cpp +++ b/core/base/CCController-android.cpp @@ -33,7 +33,7 @@ # include "platform/android/jni/JniHelper.h" # include "base/CCEventController.h" -NS_CC_BEGIN +NS_AX_BEGIN class ControllerImpl { @@ -60,7 +60,7 @@ public: return; // It's a new controller being connected. - auto controller = new cocos2d::Controller(); + auto controller = new axis::Controller(); controller->_deviceId = deviceId; controller->_deviceName = deviceName; Controller::s_allController.push_back(controller); @@ -163,7 +163,7 @@ void Controller::receiveExternalKeyEvent(int externalKeyCode, bool receive) externalKeyCode, receive); } -NS_CC_END +NS_AX_END extern "C" { @@ -173,7 +173,7 @@ JNIEXPORT void JNICALL Java_org_cocos2dx_lib_GameControllerAdapter_nativeControl jint controllerID) { CCLOG("controller id: %d connected!", controllerID); - cocos2d::ControllerImpl::onConnected(cocos2d::JniHelper::jstring2string(deviceName), controllerID); + axis::ControllerImpl::onConnected(axis::JniHelper::jstring2string(deviceName), controllerID); } JNIEXPORT void JNICALL Java_org_cocos2dx_lib_GameControllerAdapter_nativeControllerDisconnected(JNIEnv*, @@ -182,7 +182,7 @@ JNIEXPORT void JNICALL Java_org_cocos2dx_lib_GameControllerAdapter_nativeControl jint controllerID) { CCLOG("controller id: %d disconnected!", controllerID); - cocos2d::ControllerImpl::onDisconnected(cocos2d::JniHelper::jstring2string(deviceName), controllerID); + axis::ControllerImpl::onDisconnected(axis::JniHelper::jstring2string(deviceName), controllerID); } JNIEXPORT void JNICALL Java_org_cocos2dx_lib_GameControllerAdapter_nativeControllerButtonEvent(JNIEnv*, @@ -194,7 +194,7 @@ JNIEXPORT void JNICALL Java_org_cocos2dx_lib_GameControllerAdapter_nativeControl jfloat value, jboolean isAnalog) { - cocos2d::ControllerImpl::onButtonEvent(cocos2d::JniHelper::jstring2string(deviceName), controllerID, button, + axis::ControllerImpl::onButtonEvent(axis::JniHelper::jstring2string(deviceName), controllerID, button, isPressed, value, isAnalog); } @@ -206,7 +206,7 @@ JNIEXPORT void JNICALL Java_org_cocos2dx_lib_GameControllerAdapter_nativeControl jfloat value, jboolean isAnalog) { - cocos2d::ControllerImpl::onAxisEvent(cocos2d::JniHelper::jstring2string(deviceName), controllerID, axis, value, + axis::ControllerImpl::onAxisEvent(axis::JniHelper::jstring2string(deviceName), controllerID, axis, value, isAnalog); } diff --git a/core/base/CCController-apple.mm b/core/base/CCController-apple.mm index 1005c115b6..203d4500bc 100644 --- a/core/base/CCController-apple.mm +++ b/core/base/CCController-apple.mm @@ -116,7 +116,7 @@ static GCControllerConnectionEventHandler* __instance = nil; @end -NS_CC_BEGIN +NS_AX_BEGIN class ControllerImpl { @@ -384,6 +384,6 @@ bool Controller::isConnected() const void Controller::receiveExternalKeyEvent(int externalKeyCode, bool receive) {} -NS_CC_END +NS_AX_END #endif // #if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) diff --git a/core/base/CCController-linux-win32.cpp b/core/base/CCController-linux-win32.cpp index 277ba4d957..c33aa4f7eb 100644 --- a/core/base/CCController-linux-win32.cpp +++ b/core/base/CCController-linux-win32.cpp @@ -35,7 +35,7 @@ THE SOFTWARE. # include "base/CCEventController.h" # include "glfw3.h" -NS_CC_BEGIN +NS_AX_BEGIN class CC_DLL ControllerImpl { @@ -57,7 +57,7 @@ public: // The configuration files were parsed into C++ code with: // https://github.com/Rubonnek/retroarch-joypad-config-to-cpp-mapper // which provides the following mapping from the RetroArch - // configuration variables towards the cocos2d::Controller::Key key + // configuration variables towards the axis::Controller::Key key // codes. Hardware-wise, the mapping goes from a theoretical SNES // controller with extra joysticks and shoulder buttons, towards an // Xbox-like controller which is widely common on mobile phones. @@ -4211,7 +4211,7 @@ public: return; // It's a new controller being connected. - auto controller = new cocos2d::Controller(); + auto controller = new axis::Controller(); controller->_deviceId = deviceId; controller->_deviceName = deviceName; Controller::s_allController.push_back(controller); @@ -4395,7 +4395,7 @@ std::map, std::unordered_map void Controller::startDiscoveryController() { - // Check for existing josyticks and register them as cocos2d::Controller: + // Check for existing josyticks and register them as axis::Controller: for (int deviceId = GLFW_JOYSTICK_1; deviceId <= GLFW_JOYSTICK_LAST; ++deviceId) { if (glfwJoystickPresent(deviceId)) @@ -4452,6 +4452,6 @@ Controller::~Controller() delete _axisEvent; } -NS_CC_END +NS_AX_END #endif // #if (CC_TARGET_PLATFORM == CC_PLATFORM_LINUX || CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) diff --git a/core/base/CCController.cpp b/core/base/CCController.cpp index 32e624f45e..455b3c68bd 100644 --- a/core/base/CCController.cpp +++ b/core/base/CCController.cpp @@ -34,7 +34,7 @@ # include "base/CCEventController.h" # include "base/CCDirector.h" -NS_CC_BEGIN +NS_AX_BEGIN std::vector Controller::s_allController; @@ -125,7 +125,7 @@ void Controller::onAxisEvent(int axisCode, float value, bool isAnalog) _eventDispatcher->dispatchEvent(_axisEvent); } -NS_CC_END +NS_AX_END #endif // (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM == CC_PLATFORM_IOS || CC_TARGET_PLATFORM == // CC_PLATFORM_MAC || CC_TARGET_PLATFORM == CC_PLATFORM_LINUX || CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) diff --git a/core/base/CCController.h b/core/base/CCController.h index e741454e37..5877e34174 100644 --- a/core/base/CCController.h +++ b/core/base/CCController.h @@ -34,7 +34,7 @@ # include # include -NS_CC_BEGIN +NS_AX_BEGIN class ControllerImpl; class EventListenerController; @@ -248,6 +248,6 @@ private: // end group /// @} -NS_CC_END +NS_AX_END #endif #endif /* defined(__cocos2d_libs__CCController__) */ diff --git a/core/base/CCData.cpp b/core/base/CCData.cpp index 1d39d8f191..2e369c184a 100644 --- a/core/base/CCData.cpp +++ b/core/base/CCData.cpp @@ -27,7 +27,7 @@ #include "base/CCData.h" #include "base/CCConsole.h" -NS_CC_BEGIN +NS_AX_BEGIN const Data Data::Null; @@ -161,4 +161,4 @@ uint8_t* Data::takeBuffer(ssize_t* size) return buffer; } -NS_CC_END +NS_AX_END diff --git a/core/base/CCData.h b/core/base/CCData.h index 16c2095129..95b465a164 100644 --- a/core/base/CCData.h +++ b/core/base/CCData.h @@ -37,7 +37,7 @@ * @js NA * @lua NA */ -NS_CC_BEGIN +NS_AX_BEGIN class CC_DLL Data { @@ -160,7 +160,7 @@ private: ssize_t _size; }; -NS_CC_END +NS_AX_END /** @} */ #endif // __CCDATA_H__ diff --git a/core/base/CCDirector.cpp b/core/base/CCDirector.cpp index 47248b4e33..d0df40eded 100644 --- a/core/base/CCDirector.cpp +++ b/core/base/CCDirector.cpp @@ -69,7 +69,7 @@ THE SOFTWARE. using namespace std; -NS_CC_BEGIN +NS_AX_BEGIN // FIXME: it should be a Director ivar. Move it there once support for multiple directors is added // singleton stuff @@ -1517,4 +1517,4 @@ void Director::setAnimationInterval(float interval, SetIntervalReason reason) } } -NS_CC_END +NS_AX_END diff --git a/core/base/CCDirector.h b/core/base/CCDirector.h index bb08d6ac8c..9a63a5dafb 100644 --- a/core/base/CCDirector.h +++ b/core/base/CCDirector.h @@ -39,7 +39,7 @@ THE SOFTWARE. #include "math/CCMath.h" #include "platform/CCGLView.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup base @@ -654,4 +654,4 @@ protected: // end of base group /** @} */ -NS_CC_END +NS_AX_END diff --git a/core/base/CCEvent.cpp b/core/base/CCEvent.cpp index 647e71e2fa..93eceebfaf 100644 --- a/core/base/CCEvent.cpp +++ b/core/base/CCEvent.cpp @@ -25,10 +25,10 @@ #include "base/CCEvent.h" -NS_CC_BEGIN +NS_AX_BEGIN Event::Event(Type type) : _type(type), _isStopped(false), _currentTarget(nullptr) {} Event::~Event() {} -NS_CC_END +NS_AX_END diff --git a/core/base/CCEvent.h b/core/base/CCEvent.h index 987d8d12e9..649a56eaae 100644 --- a/core/base/CCEvent.h +++ b/core/base/CCEvent.h @@ -34,7 +34,7 @@ * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN class Node; @@ -99,7 +99,7 @@ protected: friend class EventDispatcher; }; -NS_CC_END +NS_AX_END // end of base group /// @} diff --git a/core/base/CCEventAcceleration.cpp b/core/base/CCEventAcceleration.cpp index fbbadddcda..28a224ac8f 100644 --- a/core/base/CCEventAcceleration.cpp +++ b/core/base/CCEventAcceleration.cpp @@ -25,8 +25,8 @@ #include "base/CCEventAcceleration.h" -NS_CC_BEGIN +NS_AX_BEGIN EventAcceleration::EventAcceleration(const Acceleration& acc) : Event(Type::ACCELERATION), _acc(acc) {} -NS_CC_END +NS_AX_END diff --git a/core/base/CCEventAcceleration.h b/core/base/CCEventAcceleration.h index 9d0e699d99..f396e0445a 100644 --- a/core/base/CCEventAcceleration.h +++ b/core/base/CCEventAcceleration.h @@ -34,7 +34,7 @@ * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN /** @class EventAcceleration * @brief Accelerometer event. @@ -53,7 +53,7 @@ private: friend class EventListenerAcceleration; }; -NS_CC_END +NS_AX_END // end of base group /// @} diff --git a/core/base/CCEventController.cpp b/core/base/CCEventController.cpp index d43e6203d9..a51a7fa852 100644 --- a/core/base/CCEventController.cpp +++ b/core/base/CCEventController.cpp @@ -26,7 +26,7 @@ #include "base/CCEventController.h" -NS_CC_BEGIN +NS_AX_BEGIN EventController::EventController(ControllerEventType type, Controller* controller, int keyCode) : Event(Type::GAME_CONTROLLER) @@ -44,4 +44,4 @@ EventController::EventController(ControllerEventType type, Controller* controlle , _isConnected(isConnected) {} -NS_CC_END +NS_AX_END diff --git a/core/base/CCEventController.h b/core/base/CCEventController.h index 5701590545..9bbcf28153 100644 --- a/core/base/CCEventController.h +++ b/core/base/CCEventController.h @@ -35,7 +35,7 @@ * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN /// @cond EventController class Controller; @@ -106,7 +106,7 @@ protected: friend class EventListenerController; }; /// @endcond EventController -NS_CC_END +NS_AX_END // end of base group /// @} diff --git a/core/base/CCEventCustom.cpp b/core/base/CCEventCustom.cpp index 7a5772ba70..2b173d30a2 100644 --- a/core/base/CCEventCustom.cpp +++ b/core/base/CCEventCustom.cpp @@ -26,8 +26,8 @@ #include "base/CCEventCustom.h" #include "base/CCEvent.h" -NS_CC_BEGIN +NS_AX_BEGIN EventCustom::EventCustom(std::string_view eventName) : Event(Type::CUSTOM), _userData(nullptr), _eventName(eventName) {} -NS_CC_END +NS_AX_END diff --git a/core/base/CCEventCustom.h b/core/base/CCEventCustom.h index 406c3dd8df..69190a4031 100644 --- a/core/base/CCEventCustom.h +++ b/core/base/CCEventCustom.h @@ -34,7 +34,7 @@ * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN /** @class EventCustom * @brief Custom event. @@ -72,7 +72,7 @@ protected: std::string _eventName; }; -NS_CC_END +NS_AX_END // end of base group /// @} diff --git a/core/base/CCEventDispatcher.cpp b/core/base/CCEventDispatcher.cpp index 961701347e..36408c7917 100644 --- a/core/base/CCEventDispatcher.cpp +++ b/core/base/CCEventDispatcher.cpp @@ -60,7 +60,7 @@ private: } // namespace -NS_CC_BEGIN +NS_AX_BEGIN static EventListener::ListenerID __getListenerID(Event* event) { @@ -1621,4 +1621,4 @@ void EventDispatcher::releaseListener(EventListener* listener) CC_SAFE_RELEASE(listener); } -NS_CC_END +NS_AX_END diff --git a/core/base/CCEventDispatcher.h b/core/base/CCEventDispatcher.h index 265c505c0d..9f0e0d86bb 100644 --- a/core/base/CCEventDispatcher.h +++ b/core/base/CCEventDispatcher.h @@ -42,7 +42,7 @@ * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN class Event; class EventTouch; @@ -355,7 +355,7 @@ protected: std::set _internalCustomListenerIDs; }; -NS_CC_END +NS_AX_END // end of base group /// @} diff --git a/core/base/CCEventFocus.cpp b/core/base/CCEventFocus.cpp index 4c96e580fd..ab4b4618c8 100644 --- a/core/base/CCEventFocus.cpp +++ b/core/base/CCEventFocus.cpp @@ -26,10 +26,10 @@ #include "base/CCEventFocus.h" -NS_CC_BEGIN +NS_AX_BEGIN EventFocus::EventFocus(ui::Widget* widgetLoseFocus, ui::Widget* widgetGetFocus) : Event(Type::FOCUS), _widgetGetFocus(widgetGetFocus), _widgetLoseFocus(widgetLoseFocus) {} -NS_CC_END +NS_AX_END diff --git a/core/base/CCEventFocus.h b/core/base/CCEventFocus.h index ce5194736e..3a0958846d 100644 --- a/core/base/CCEventFocus.h +++ b/core/base/CCEventFocus.h @@ -34,7 +34,7 @@ * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -62,7 +62,7 @@ private: friend class EventListenerFocus; }; -NS_CC_END +NS_AX_END // end of base group /// @} diff --git a/core/base/CCEventKeyboard.cpp b/core/base/CCEventKeyboard.cpp index d7b97dec24..b9d6a69c7f 100644 --- a/core/base/CCEventKeyboard.cpp +++ b/core/base/CCEventKeyboard.cpp @@ -26,10 +26,10 @@ #include "base/CCEventKeyboard.h" -NS_CC_BEGIN +NS_AX_BEGIN EventKeyboard::EventKeyboard(KeyCode keyCode, bool isPressed) : Event(Type::KEYBOARD), _keyCode(keyCode), _isPressed(isPressed) {} -NS_CC_END +NS_AX_END diff --git a/core/base/CCEventKeyboard.h b/core/base/CCEventKeyboard.h index 9968850f50..38823e029c 100644 --- a/core/base/CCEventKeyboard.h +++ b/core/base/CCEventKeyboard.h @@ -34,7 +34,7 @@ * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN /** @class EventKeyboard * @brief Keyboard event. @@ -235,7 +235,7 @@ private: friend class EventListenerKeyboard; }; -NS_CC_END +NS_AX_END // end of base group /// @} diff --git a/core/base/CCEventListener.cpp b/core/base/CCEventListener.cpp index 5e050a4ef8..8a35be5ac2 100644 --- a/core/base/CCEventListener.cpp +++ b/core/base/CCEventListener.cpp @@ -26,7 +26,7 @@ #include "base/CCEventListener.h" #include "base/CCConsole.h" -NS_CC_BEGIN +NS_AX_BEGIN EventListener::EventListener() {} @@ -52,4 +52,4 @@ bool EventListener::checkAvailable() return (_onEvent != nullptr); } -NS_CC_END +NS_AX_END diff --git a/core/base/CCEventListener.h b/core/base/CCEventListener.h index 3e93af5487..02f4d0ac44 100644 --- a/core/base/CCEventListener.h +++ b/core/base/CCEventListener.h @@ -38,7 +38,7 @@ * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN class Event; class Node; @@ -179,7 +179,7 @@ protected: friend class EventDispatcher; }; -NS_CC_END +NS_AX_END // end of base group /// @} diff --git a/core/base/CCEventListenerAcceleration.cpp b/core/base/CCEventListenerAcceleration.cpp index a8404827e8..bf43f27831 100644 --- a/core/base/CCEventListenerAcceleration.cpp +++ b/core/base/CCEventListenerAcceleration.cpp @@ -27,7 +27,7 @@ #include "base/CCEventAcceleration.h" #include "base/CCConsole.h" -NS_CC_BEGIN +NS_AX_BEGIN const std::string EventListenerAcceleration::LISTENER_ID = "__cc_acceleration"; @@ -92,4 +92,4 @@ bool EventListenerAcceleration::checkAvailable() return true; } -NS_CC_END +NS_AX_END diff --git a/core/base/CCEventListenerAcceleration.h b/core/base/CCEventListenerAcceleration.h index 6a23d7a0e8..52b355ac2c 100644 --- a/core/base/CCEventListenerAcceleration.h +++ b/core/base/CCEventListenerAcceleration.h @@ -34,7 +34,7 @@ * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN /** @class EventListenerAcceleration * @brief Acceleration event listener. @@ -70,7 +70,7 @@ private: friend class LuaEventListenerAcceleration; }; -NS_CC_END +NS_AX_END // end of base group /// @} diff --git a/core/base/CCEventListenerController.cpp b/core/base/CCEventListenerController.cpp index 7797ff7976..1b50f52231 100644 --- a/core/base/CCEventListenerController.cpp +++ b/core/base/CCEventListenerController.cpp @@ -29,7 +29,7 @@ #include "base/ccMacros.h" #include "base/CCController.h" -NS_CC_BEGIN +NS_AX_BEGIN const std::string EventListenerController::LISTENER_ID = "__cc_controller"; @@ -115,4 +115,4 @@ EventListenerController* EventListenerController::clone() return nullptr; } -NS_CC_END \ No newline at end of file +NS_AX_END \ No newline at end of file diff --git a/core/base/CCEventListenerController.h b/core/base/CCEventListenerController.h index e23e51d2c2..a0d44df411 100644 --- a/core/base/CCEventListenerController.h +++ b/core/base/CCEventListenerController.h @@ -35,7 +35,7 @@ * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN class Event; class Controller; @@ -72,7 +72,7 @@ protected: bool init(); }; -NS_CC_END +NS_AX_END // end of base group /// @} diff --git a/core/base/CCEventListenerCustom.cpp b/core/base/CCEventListenerCustom.cpp index b3133d3553..0ca3e279d7 100644 --- a/core/base/CCEventListenerCustom.cpp +++ b/core/base/CCEventListenerCustom.cpp @@ -26,7 +26,7 @@ #include "base/CCEventListenerCustom.h" #include "base/CCEventCustom.h" -NS_CC_BEGIN +NS_AX_BEGIN EventListenerCustom::EventListenerCustom() : _onCustomEvent(nullptr) {} @@ -89,4 +89,4 @@ bool EventListenerCustom::checkAvailable() return ret; } -NS_CC_END +NS_AX_END diff --git a/core/base/CCEventListenerCustom.h b/core/base/CCEventListenerCustom.h index 8f7633a002..f4b22d06f2 100644 --- a/core/base/CCEventListenerCustom.h +++ b/core/base/CCEventListenerCustom.h @@ -33,7 +33,7 @@ * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN class EventCustom; @@ -84,7 +84,7 @@ protected: friend class LuaEventListenerCustom; }; -NS_CC_END +NS_AX_END // end of base group /// @} diff --git a/core/base/CCEventListenerFocus.cpp b/core/base/CCEventListenerFocus.cpp index b52ce7d19b..b67da31491 100644 --- a/core/base/CCEventListenerFocus.cpp +++ b/core/base/CCEventListenerFocus.cpp @@ -28,7 +28,7 @@ #include "base/CCEventFocus.h" #include "base/ccMacros.h" -NS_CC_BEGIN +NS_AX_BEGIN const std::string EventListenerFocus::LISTENER_ID = "__cc_focus_event"; @@ -91,4 +91,4 @@ bool EventListenerFocus::checkAvailable() return true; } -NS_CC_END +NS_AX_END diff --git a/core/base/CCEventListenerFocus.h b/core/base/CCEventListenerFocus.h index 5b1f6f4a0f..ab8e407786 100644 --- a/core/base/CCEventListenerFocus.h +++ b/core/base/CCEventListenerFocus.h @@ -34,7 +34,7 @@ * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -74,7 +74,7 @@ public: friend class EventDispatcher; }; -NS_CC_END +NS_AX_END // end of base group /// @} diff --git a/core/base/CCEventListenerKeyboard.cpp b/core/base/CCEventListenerKeyboard.cpp index 675b7f1050..dcd464af8a 100644 --- a/core/base/CCEventListenerKeyboard.cpp +++ b/core/base/CCEventListenerKeyboard.cpp @@ -27,7 +27,7 @@ #include "base/CCEventListenerKeyboard.h" #include "base/ccMacros.h" -NS_CC_BEGIN +NS_AX_BEGIN const std::string EventListenerKeyboard::LISTENER_ID = "__cc_keyboard"; @@ -98,4 +98,4 @@ bool EventListenerKeyboard::init() return false; } -NS_CC_END +NS_AX_END diff --git a/core/base/CCEventListenerKeyboard.h b/core/base/CCEventListenerKeyboard.h index 769a57105a..c25f9e4e31 100644 --- a/core/base/CCEventListenerKeyboard.h +++ b/core/base/CCEventListenerKeyboard.h @@ -35,7 +35,7 @@ * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN class Event; @@ -64,7 +64,7 @@ public: bool init(); }; -NS_CC_END +NS_AX_END // end of base group /// @} diff --git a/core/base/CCEventListenerMouse.cpp b/core/base/CCEventListenerMouse.cpp index e951becd45..d7c6999216 100644 --- a/core/base/CCEventListenerMouse.cpp +++ b/core/base/CCEventListenerMouse.cpp @@ -26,7 +26,7 @@ #include "base/CCEventListenerMouse.h" -NS_CC_BEGIN +NS_AX_BEGIN const std::string EventListenerMouse::LISTENER_ID = "__cc_mouse"; @@ -106,4 +106,4 @@ bool EventListenerMouse::init() return false; } -NS_CC_END +NS_AX_END diff --git a/core/base/CCEventListenerMouse.h b/core/base/CCEventListenerMouse.h index d5201b631d..00631ab177 100644 --- a/core/base/CCEventListenerMouse.h +++ b/core/base/CCEventListenerMouse.h @@ -35,7 +35,7 @@ * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN class Event; @@ -67,7 +67,7 @@ public: bool init(); }; -NS_CC_END +NS_AX_END // end of base group /// @} diff --git a/core/base/CCEventListenerTouch.cpp b/core/base/CCEventListenerTouch.cpp index 2cec272a87..f4c136afac 100644 --- a/core/base/CCEventListenerTouch.cpp +++ b/core/base/CCEventListenerTouch.cpp @@ -30,7 +30,7 @@ #include -NS_CC_BEGIN +NS_AX_BEGIN const std::string EventListenerTouchOneByOne::LISTENER_ID = "__cc_touch_one_by_one"; @@ -184,4 +184,4 @@ EventListenerTouchAllAtOnce* EventListenerTouchAllAtOnce::clone() return ret; } -NS_CC_END +NS_AX_END diff --git a/core/base/CCEventListenerTouch.h b/core/base/CCEventListenerTouch.h index 23d45f003a..7ec050ffe0 100644 --- a/core/base/CCEventListenerTouch.h +++ b/core/base/CCEventListenerTouch.h @@ -35,7 +35,7 @@ * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN class Touch; @@ -130,7 +130,7 @@ private: friend class EventDispatcher; }; -NS_CC_END +NS_AX_END // end of base group /// @} diff --git a/core/base/CCEventMouse.cpp b/core/base/CCEventMouse.cpp index c154d4f979..5faa52e8e4 100644 --- a/core/base/CCEventMouse.cpp +++ b/core/base/CCEventMouse.cpp @@ -27,7 +27,7 @@ #include "base/CCEventMouse.h" #include "base/CCDirector.h" -NS_CC_BEGIN +NS_AX_BEGIN EventMouse::EventMouse(MouseEventType mouseEventCode) : Event(Type::MOUSE) @@ -80,4 +80,4 @@ Vec2 EventMouse::getDelta() const { return getLocation() - getPreviousLocation(); } -NS_CC_END +NS_AX_END diff --git a/core/base/CCEventMouse.h b/core/base/CCEventMouse.h index 4426bcffa6..24ed182cc9 100644 --- a/core/base/CCEventMouse.h +++ b/core/base/CCEventMouse.h @@ -35,7 +35,7 @@ * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN /** @class EventMouse * @brief The mouse event. @@ -198,7 +198,7 @@ private: friend class EventListenerMouse; }; -NS_CC_END +NS_AX_END // end of base group /// @} diff --git a/core/base/CCEventTouch.cpp b/core/base/CCEventTouch.cpp index 29221ba4d5..b6eca943f3 100644 --- a/core/base/CCEventTouch.cpp +++ b/core/base/CCEventTouch.cpp @@ -26,11 +26,11 @@ #include "base/CCEventTouch.h" #include "base/CCTouch.h" -NS_CC_BEGIN +NS_AX_BEGIN EventTouch::EventTouch() : Event(Type::TOUCH) { _touches.reserve(MAX_TOUCHES); } -NS_CC_END +NS_AX_END diff --git a/core/base/CCEventTouch.h b/core/base/CCEventTouch.h index ecfabf7c88..f2a042ed1f 100644 --- a/core/base/CCEventTouch.h +++ b/core/base/CCEventTouch.h @@ -34,7 +34,7 @@ * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN class Touch; @@ -95,7 +95,7 @@ private: friend class GLView; }; -NS_CC_END +NS_AX_END // end of base group /// @} diff --git a/core/base/CCIMEDelegate.h b/core/base/CCIMEDelegate.h index 7a4530e277..29ff4fb0e9 100644 --- a/core/base/CCIMEDelegate.h +++ b/core/base/CCIMEDelegate.h @@ -35,7 +35,7 @@ THE SOFTWARE. * @addtogroup base * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN /** * A static global empty std::string install. @@ -171,7 +171,7 @@ protected: IMEDelegate(); }; -NS_CC_END +NS_AX_END // end of base group /// @} diff --git a/core/base/CCIMEDispatcher.cpp b/core/base/CCIMEDispatcher.cpp index dbc6b85721..4bfed04244 100644 --- a/core/base/CCIMEDispatcher.cpp +++ b/core/base/CCIMEDispatcher.cpp @@ -28,7 +28,7 @@ THE SOFTWARE. #include -NS_CC_BEGIN +NS_AX_BEGIN ////////////////////////////////////////////////////////////////////////// // add/remove delegate in IMEDelegate Cons/Destructor @@ -342,4 +342,4 @@ IMEDispatcher* IMEDispatcher::sharedDispatcher() return &s_instance; } -NS_CC_END +NS_AX_END diff --git a/core/base/CCIMEDispatcher.h b/core/base/CCIMEDispatcher.h index 1c2ce8187b..eafd22bf45 100644 --- a/core/base/CCIMEDispatcher.h +++ b/core/base/CCIMEDispatcher.h @@ -33,7 +33,7 @@ THE SOFTWARE. * @addtogroup base * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN /** @brief Input Method Edit Message Dispatcher. @@ -136,7 +136,7 @@ private: Impl* _impl; }; -NS_CC_END +NS_AX_END // end of base group /// @} diff --git a/core/base/CCMap.h b/core/base/CCMap.h index df27e5b613..2366ed8ac5 100644 --- a/core/base/CCMap.h +++ b/core/base/CCMap.h @@ -43,7 +43,7 @@ * @addtogroup base * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN /** * Similar to std::unordered_map, but it will manage reference count automatically internally. @@ -89,14 +89,14 @@ public: /** Default constructor */ Map() : _data() { - static_assert(std::is_convertible::value, "Invalid Type for cocos2d::Map!"); + static_assert(std::is_convertible::value, "Invalid Type for axis::Map!"); CCLOGINFO("In the default constructor of Map!"); } /** Constructor with capacity. */ explicit Map(ssize_t capacity) : _data() { - static_assert(std::is_convertible::value, "Invalid Type for cocos2d::Map!"); + static_assert(std::is_convertible::value, "Invalid Type for axis::Map!"); CCLOGINFO("In the constructor with capacity of Map!"); _data.reserve(capacity); } @@ -104,7 +104,7 @@ public: /** Copy constructor. */ Map(const Map& other) { - static_assert(std::is_convertible::value, "Invalid Type for cocos2d::Map!"); + static_assert(std::is_convertible::value, "Invalid Type for axis::Map!"); CCLOGINFO("In the copy constructor of Map!"); _data = other._data; addRefForAllObjects(); @@ -113,7 +113,7 @@ public: /** Move constructor. */ Map(Map&& other) { - static_assert(std::is_convertible::value, "Invalid Type for cocos2d::Map!"); + static_assert(std::is_convertible::value, "Invalid Type for axis::Map!"); CCLOGINFO("In the move constructor of Map!"); _data = std::move(other._data); } @@ -442,7 +442,7 @@ protected: template using StringMap = Map; -NS_CC_END +NS_AX_END // end group /// @} diff --git a/core/base/CCNS.cpp b/core/base/CCNS.cpp index 7444a5ce3b..97fcdc03e6 100644 --- a/core/base/CCNS.cpp +++ b/core/base/CCNS.cpp @@ -33,7 +33,7 @@ THE SOFTWARE. using namespace std; -NS_CC_BEGIN +NS_AX_BEGIN typedef std::vector strArray; @@ -183,4 +183,4 @@ Vec2 SizeFromString(std::string_view pszContent) return ret; } -NS_CC_END +NS_AX_END diff --git a/core/base/CCNS.h b/core/base/CCNS.h index 7dac2ca1e7..e0f3b9114f 100644 --- a/core/base/CCNS.h +++ b/core/base/CCNS.h @@ -29,7 +29,7 @@ THE SOFTWARE. #include "math/CCMath.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup base @@ -75,6 +75,6 @@ Vec2 CC_DLL SizeFromString(std::string_view str); // end of data_structure group /** @} */ -NS_CC_END +NS_AX_END #endif // __PLATFORM_CCNS_H__ diff --git a/core/base/CCNinePatchImageParser.cpp b/core/base/CCNinePatchImageParser.cpp index e1466eb113..64ffd0c67e 100644 --- a/core/base/CCNinePatchImageParser.cpp +++ b/core/base/CCNinePatchImageParser.cpp @@ -26,7 +26,7 @@ #include "platform/CCImage.h" #include "base/CCDirector.h" -NS_CC_BEGIN +NS_AX_BEGIN NinePatchImageParser::~NinePatchImageParser() {} @@ -170,7 +170,7 @@ Rect NinePatchImageParser::parseCapInset() const return capInsets; } -void NinePatchImageParser::setSpriteFrameInfo(Image* image, const cocos2d::Rect& frameRect, bool rotated) +void NinePatchImageParser::setSpriteFrameInfo(Image* image, const axis::Rect& frameRect, bool rotated) { this->_image = image; CCASSERT(image->getPixelFormat() == backend::PixelFormat::RGBA8, @@ -196,4 +196,4 @@ bool NinePatchImageParser::isNinePatchImage(std::string_view filepath) } } -NS_CC_END +NS_AX_END diff --git a/core/base/CCNinePatchImageParser.h b/core/base/CCNinePatchImageParser.h index 1c1161c89f..ec189a16c6 100644 --- a/core/base/CCNinePatchImageParser.h +++ b/core/base/CCNinePatchImageParser.h @@ -25,7 +25,7 @@ #include "platform/CCPlatformMacros.h" #include "math/CCMath.h" -NS_CC_BEGIN +NS_AX_BEGIN class Image; class SpriteFrame; @@ -116,4 +116,4 @@ private: bool _isRotated; }; -NS_CC_END +NS_AX_END diff --git a/core/base/CCProfiling.cpp b/core/base/CCProfiling.cpp index f1d99617be..75dcce055e 100644 --- a/core/base/CCProfiling.cpp +++ b/core/base/CCProfiling.cpp @@ -28,7 +28,7 @@ THE SOFTWARE. using namespace std; -NS_CC_BEGIN +NS_AX_BEGIN // Profiling Categories /* set to false the categories that you don't want to profile */ @@ -164,4 +164,4 @@ void ProfilingResetTimingBlock(const char* timerName) timer->reset(); } -NS_CC_END +NS_AX_END diff --git a/core/base/CCProfiling.h b/core/base/CCProfiling.h index 4f4cc66ad5..fbb1f551bc 100644 --- a/core/base/CCProfiling.h +++ b/core/base/CCProfiling.h @@ -35,7 +35,7 @@ THE SOFTWARE. #include "base/CCRef.h" #include "base/CCMap.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup global @@ -156,7 +156,7 @@ extern bool kProfilerCategoryParticles; // end of global group /// @} -NS_CC_END +NS_AX_END /// @endcond #endif // __SUPPORT_CCPROFILING_H__ diff --git a/core/base/CCProperties.cpp b/core/base/CCProperties.cpp index 4709844f7a..4d1f768ecb 100644 --- a/core/base/CCProperties.cpp +++ b/core/base/CCProperties.cpp @@ -34,7 +34,7 @@ #include "base/ccUTF8.h" #include "base/CCData.h" -USING_NS_CC; +USING_NS_AX; // Utility functions (shared with SceneLoader). /** @script{ignore} */ diff --git a/core/base/CCProperties.h b/core/base/CCProperties.h index 14ddc7eeb3..1025134ff0 100644 --- a/core/base/CCProperties.h +++ b/core/base/CCProperties.h @@ -34,7 +34,7 @@ #include "base/ccTypes.h" #include "base/CCVector.h" -NS_CC_BEGIN +NS_AX_BEGIN class Properties; class Vec2; diff --git a/core/base/CCProtocols.h b/core/base/CCProtocols.h index 3488c1a592..8625dea95a 100644 --- a/core/base/CCProtocols.h +++ b/core/base/CCProtocols.h @@ -34,7 +34,7 @@ THE SOFTWARE. #include "base/ccTypes.h" #include "renderer/CCTexture2D.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * RGBA protocol that affects Node's color and opacity @@ -281,7 +281,7 @@ public: virtual void stop() = 0; }; -NS_CC_END +NS_AX_END /// @endcond #endif // __BASE_CCPROTOCOLS_H__ diff --git a/core/base/CCRef.cpp b/core/base/CCRef.cpp index 804aa4ca3d..e1af11b336 100644 --- a/core/base/CCRef.cpp +++ b/core/base/CCRef.cpp @@ -36,7 +36,7 @@ THE SOFTWARE. # include #endif -NS_CC_BEGIN +NS_AX_BEGIN #if CC_REF_LEAK_DETECTION static void trackRef(Ref* ref); @@ -196,4 +196,4 @@ static void untrackRef(Ref* ref) #endif // #if CC_REF_LEAK_DETECTION -NS_CC_END +NS_AX_END diff --git a/core/base/CCRef.h b/core/base/CCRef.h index 592bc6ab3f..7beeedd2e6 100644 --- a/core/base/CCRef.h +++ b/core/base/CCRef.h @@ -36,7 +36,7 @@ THE SOFTWARE. * @addtogroup base * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN class Ref; @@ -169,14 +169,14 @@ typedef void (Ref::*SEL_CallFuncO)(Ref*); typedef void (Ref::*SEL_MenuHandler)(Ref*); typedef void (Ref::*SEL_SCHEDULE)(float); -#define CC_CALLFUNC_SELECTOR(_SELECTOR) static_cast(&_SELECTOR) -#define CC_CALLFUNCN_SELECTOR(_SELECTOR) static_cast(&_SELECTOR) -#define CC_CALLFUNCND_SELECTOR(_SELECTOR) static_cast(&_SELECTOR) -#define CC_CALLFUNCO_SELECTOR(_SELECTOR) static_cast(&_SELECTOR) -#define CC_MENU_SELECTOR(_SELECTOR) static_cast(&_SELECTOR) -#define CC_SCHEDULE_SELECTOR(_SELECTOR) static_cast(&_SELECTOR) +#define CC_CALLFUNC_SELECTOR(_SELECTOR) static_cast(&_SELECTOR) +#define CC_CALLFUNCN_SELECTOR(_SELECTOR) static_cast(&_SELECTOR) +#define CC_CALLFUNCND_SELECTOR(_SELECTOR) static_cast(&_SELECTOR) +#define CC_CALLFUNCO_SELECTOR(_SELECTOR) static_cast(&_SELECTOR) +#define CC_MENU_SELECTOR(_SELECTOR) static_cast(&_SELECTOR) +#define CC_SCHEDULE_SELECTOR(_SELECTOR) static_cast(&_SELECTOR) -NS_CC_END +NS_AX_END // end of base group /** @} */ diff --git a/core/base/CCRefPtr.h b/core/base/CCRefPtr.h index 103d816563..7e92da5fe2 100644 --- a/core/base/CCRefPtr.h +++ b/core/base/CCRefPtr.h @@ -33,7 +33,7 @@ #include #include -NS_CC_BEGIN +NS_AX_BEGIN /** * Utility/support macros. Defined to enable RefPtr to contain types like 'const T' because we do not @@ -81,7 +81,7 @@ struct ReferencedObject }; /** - * Wrapper class which maintains a strong reference to a cocos2dx cocos2d::Ref* type object. + * Wrapper class which maintains a strong reference to a cocos2dx axis::Ref* type object. * Similar in concept to a boost smart pointer. * * Enables the use of the RAII idiom with Cocos2dx objects and helps automate some of the more @@ -232,12 +232,12 @@ public: * where the RefPtr has the initial ownership of the object. * * E.G: - * RefPtr image; - * image.weakAssign(new cocos2d::Image()); + * RefPtr image; + * image.weakAssign(new axis::Image()); * * Instead of: - * RefPtr image; - * image = new cocos2d::Image(); + * RefPtr image; + * image = new axis::Image(); * image->release(); // Required because new'd object already has a reference count of '1'. */ void weakAssign(const RefPtr& other) @@ -249,7 +249,7 @@ public: private: T* _ptr; - // NOTE: We can ensure T is derived from cocos2d::Ref at compile time here. + // NOTE: We can ensure T is derived from axis::Ref at compile time here. static_assert(std::is_base_of::type>::value, "T must be derived from Ref"); }; @@ -332,7 +332,7 @@ RefPtr dynamic_pointer_cast(const RefPtr& r) #undef CC_REF_PTR_SAFE_RELEASE #undef CC_REF_PTR_SAFE_RELEASE_NULL -NS_CC_END +NS_AX_END /// @endcond #endif // __CC_REF_PTR_H__ diff --git a/core/base/CCScheduler.cpp b/core/base/CCScheduler.cpp index 07352a3737..1109449b2f 100644 --- a/core/base/CCScheduler.cpp +++ b/core/base/CCScheduler.cpp @@ -33,7 +33,7 @@ THE SOFTWARE. #include "base/ccCArray.h" #include "base/CCScriptSupport.h" -NS_CC_BEGIN +NS_AX_BEGIN // data structures @@ -1100,4 +1100,4 @@ void Scheduler::unschedule(SEL_SCHEDULE selector, Ref* target) } } -NS_CC_END +NS_AX_END diff --git a/core/base/CCScheduler.h b/core/base/CCScheduler.h index d650a771e5..4051b355a4 100644 --- a/core/base/CCScheduler.h +++ b/core/base/CCScheduler.h @@ -37,7 +37,7 @@ THE SOFTWARE. #include "base/CCVector.h" #include "uthash/uthash.h" -NS_CC_BEGIN +NS_AX_BEGIN class Scheduler; @@ -509,6 +509,6 @@ protected: // end of base group /** @} */ -NS_CC_END +NS_AX_END #endif // __CCSCHEDULER_H__ diff --git a/core/base/CCScriptSupport.cpp b/core/base/CCScriptSupport.cpp index 706e63cd6d..136382a740 100644 --- a/core/base/CCScriptSupport.cpp +++ b/core/base/CCScriptSupport.cpp @@ -33,7 +33,7 @@ bool CC_DLL cc_assert_script_compatible(const char* msg) { - cocos2d::ScriptEngineProtocol* engine = cocos2d::ScriptEngineManager::getInstance()->getScriptEngine(); + axis::ScriptEngineProtocol* engine = axis::ScriptEngineManager::getInstance()->getScriptEngine(); if (engine && engine->handleAssert(msg)) { return true; @@ -41,7 +41,7 @@ bool CC_DLL cc_assert_script_compatible(const char* msg) return false; } -NS_CC_BEGIN +NS_AX_BEGIN // // // ScriptHandlerEntry @@ -181,6 +181,6 @@ int ScriptEngineManager::sendEventToLua(const ScriptEvent& event) return 0; } -NS_CC_END +NS_AX_END #endif // #if CC_ENABLE_SCRIPT_BINDING diff --git a/core/base/CCScriptSupport.h b/core/base/CCScriptSupport.h index 234272aae7..314a421d4c 100644 --- a/core/base/CCScriptSupport.h +++ b/core/base/CCScriptSupport.h @@ -45,7 +45,7 @@ typedef struct lua_State lua_State; -NS_CC_BEGIN +NS_AX_BEGIN class TimerScriptHandler; class Layer; @@ -644,7 +644,7 @@ public: /** * Release all native refs for the given owner in script scope */ - virtual void releaseAllNativeRefs(cocos2d::Ref* /*owner*/) {} + virtual void releaseAllNativeRefs(axis::Ref* /*owner*/) {} /** * Remove script object,The specific meaning should refer to the ScriptType. @@ -864,7 +864,7 @@ private: ScriptEngineProtocol* _scriptEngine; }; -NS_CC_END +NS_AX_END #endif // #if CC_ENABLE_SCRIPT_BINDING diff --git a/core/base/CCStencilStateManager.cpp b/core/base/CCStencilStateManager.cpp index 946e992edc..48d9d12f85 100644 --- a/core/base/CCStencilStateManager.cpp +++ b/core/base/CCStencilStateManager.cpp @@ -29,7 +29,7 @@ #include "renderer/ccShaders.h" #include "renderer/backend/ProgramState.h" -NS_CC_BEGIN +NS_AX_BEGIN int StencilStateManager::s_layer = -1; @@ -220,4 +220,4 @@ void StencilStateManager::onAfterVisit() s_layer--; } -NS_CC_END +NS_AX_END diff --git a/core/base/CCStencilStateManager.h b/core/base/CCStencilStateManager.h index 8a840de9e6..0d168495bc 100644 --- a/core/base/CCStencilStateManager.h +++ b/core/base/CCStencilStateManager.h @@ -34,7 +34,7 @@ * @addtogroup base * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN class CC_DLL StencilStateManager { @@ -85,6 +85,6 @@ private: backend::ProgramState* _programState = nullptr; }; -NS_CC_END +NS_AX_END // end of base group /** @} */ diff --git a/core/base/CCTouch.cpp b/core/base/CCTouch.cpp index f7a7e9a973..ce5a4c3e21 100644 --- a/core/base/CCTouch.cpp +++ b/core/base/CCTouch.cpp @@ -27,7 +27,7 @@ #include "base/CCTouch.h" #include "base/CCDirector.h" -NS_CC_BEGIN +NS_AX_BEGIN // returns the current touch location in screen coordinates Vec2 Touch::getLocationInView() const @@ -83,4 +83,4 @@ float Touch::getMaxForce() const return _maxForce; } -NS_CC_END +NS_AX_END diff --git a/core/base/CCTouch.h b/core/base/CCTouch.h index c2f4bad509..cf9b02f283 100644 --- a/core/base/CCTouch.h +++ b/core/base/CCTouch.h @@ -30,7 +30,7 @@ THE SOFTWARE. #include "base/CCRef.h" #include "math/CCMath.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup base @@ -171,6 +171,6 @@ private: // end of base group /// @} -NS_CC_END +NS_AX_END #endif // __PLATFORM_TOUCH_H__ diff --git a/core/base/CCUserDefault.cpp b/core/base/CCUserDefault.cpp index a9ced53cf7..6b00d4b473 100644 --- a/core/base/CCUserDefault.cpp +++ b/core/base/CCUserDefault.cpp @@ -65,7 +65,7 @@ THE SOFTWARE. typedef int32_t udflen_t; -NS_CC_BEGIN +NS_AX_BEGIN /** * implements of UserDefault @@ -521,4 +521,4 @@ void UserDefault::deleteValueForKey(const char* key) flush(); } -NS_CC_END +NS_AX_END diff --git a/core/base/CCUserDefault.h b/core/base/CCUserDefault.h index d6aa865c19..a74540750c 100644 --- a/core/base/CCUserDefault.h +++ b/core/base/CCUserDefault.h @@ -38,7 +38,7 @@ THE SOFTWARE. * @addtogroup base * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN /** * UserDefault acts as a tiny database. You can save and get base type values by it. @@ -290,7 +290,7 @@ protected: std::string _iv; }; -NS_CC_END +NS_AX_END // end of base group /** @} */ diff --git a/core/base/CCValue.cpp b/core/base/CCValue.cpp index e6e07673d9..d4986694ba 100644 --- a/core/base/CCValue.cpp +++ b/core/base/CCValue.cpp @@ -30,7 +30,7 @@ #include #include "base/ccUtils.h" -NS_CC_BEGIN +NS_AX_BEGIN const ValueVector ValueVectorNull; const ValueMap ValueMapNull; @@ -971,4 +971,4 @@ void Value::reset(Type type) _type = type; } -NS_CC_END +NS_AX_END diff --git a/core/base/CCValue.h b/core/base/CCValue.h index bf0ecc0c17..afc2ff139e 100644 --- a/core/base/CCValue.h +++ b/core/base/CCValue.h @@ -38,7 +38,7 @@ * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN class Value; @@ -279,13 +279,13 @@ private: Type _type; }; -inline const cocos2d::Value& optValue(const ValueMap& dictionary, std::string_view key) +inline const axis::Value& optValue(const ValueMap& dictionary, std::string_view key) { - return dictionary.find(key) != dictionary.cend() ? dictionary.at(key) : cocos2d::Value::Null; + return dictionary.find(key) != dictionary.cend() ? dictionary.at(key) : axis::Value::Null; } /** @} */ -NS_CC_END +NS_AX_END #endif /* defined(__cocos2d_libs__CCValue__) */ diff --git a/core/base/CCVector.h b/core/base/CCVector.h index e77f015896..6dc3028e3d 100644 --- a/core/base/CCVector.h +++ b/core/base/CCVector.h @@ -37,7 +37,7 @@ THE SOFTWARE. * @addtogroup base * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN /* * Similar to std::vector, but it will manage reference count automatically internally. @@ -110,7 +110,7 @@ public: /** Constructor. */ Vector() : _data() { - static_assert(std::is_convertible::value, "Invalid Type for cocos2d::Vector!"); + static_assert(std::is_convertible::value, "Invalid Type for axis::Vector!"); } /** @@ -119,7 +119,7 @@ public: */ explicit Vector(ssize_t capacity) : _data() { - static_assert(std::is_convertible::value, "Invalid Type for cocos2d::Vector!"); + static_assert(std::is_convertible::value, "Invalid Type for axis::Vector!"); CCLOGINFO("In the default constructor with capacity of Vector."); reserve(capacity); } @@ -143,7 +143,7 @@ public: /** Copy constructor. */ Vector(const Vector& other) { - static_assert(std::is_convertible::value, "Invalid Type for cocos2d::Vector!"); + static_assert(std::is_convertible::value, "Invalid Type for axis::Vector!"); CCLOGINFO("In the copy constructor!"); _data = other._data; addRefForAllObjects(); @@ -152,7 +152,7 @@ public: /** Constructor with std::move semantic. */ Vector(Vector&& other) { - static_assert(std::is_convertible::value, "Invalid Type for cocos2d::Vector!"); + static_assert(std::is_convertible::value, "Invalid Type for axis::Vector!"); CCLOGINFO("In the move constructor of Vector!"); _data = std::move(other._data); } @@ -485,6 +485,6 @@ protected: // end of base group /** @} */ -NS_CC_END +NS_AX_END #endif // __CCVECTOR_H__ diff --git a/core/base/ConcurrentDeque.h b/core/base/ConcurrentDeque.h index a73b322ed7..05ccd36870 100644 --- a/core/base/ConcurrentDeque.h +++ b/core/base/ConcurrentDeque.h @@ -28,8 +28,8 @@ #include #include -namespace cocos2d -{ +NS_AX_BEGIN + template class ConcurrentDeque { @@ -113,4 +113,4 @@ private: std::deque<_Ty> queue_; mutable std::recursive_mutex mtx_; }; -} // namespace cocos2d +NS_AX_END // namespace axis diff --git a/core/base/ObjectFactory.cpp b/core/base/ObjectFactory.cpp index 795d55bbc4..643b093ede 100644 --- a/core/base/ObjectFactory.cpp +++ b/core/base/ObjectFactory.cpp @@ -26,7 +26,7 @@ THE SOFTWARE. #include #include "base/ObjectFactory.h" -NS_CC_BEGIN +NS_AX_BEGIN ObjectFactory::TInfo::TInfo() : _class(""), _fun(nullptr), _func(nullptr) {} @@ -113,4 +113,4 @@ void ObjectFactory::registerType(const TInfo& t) _typeMap.emplace(t._class, t); } -NS_CC_END +NS_AX_END diff --git a/core/base/ObjectFactory.h b/core/base/ObjectFactory.h index da75fdb59f..0b9c6ed24b 100644 --- a/core/base/ObjectFactory.h +++ b/core/base/ObjectFactory.h @@ -32,13 +32,13 @@ THE SOFTWARE. #include "base/CCRef.h" #include "platform/CCPlatformMacros.h" -NS_CC_BEGIN +NS_AX_BEGIN class CC_DLL ObjectFactory { public: - typedef cocos2d::Ref* (*Instance)(void); - typedef std::function InstanceFunc; + typedef axis::Ref* (*Instance)(void); + typedef std::function InstanceFunc; struct CC_DLL TInfo { TInfo(); @@ -55,7 +55,7 @@ public: static ObjectFactory* getInstance(); static void destroyInstance(); - cocos2d::Ref* createObject(std::string_view name); + axis::Ref* createObject(std::string_view name); void registerType(const TInfo& t); void removeAll(); @@ -68,6 +68,6 @@ protected: FactoryMap _typeMap; }; -NS_CC_END +NS_AX_END #endif diff --git a/core/base/SimpleTimer.cpp b/core/base/SimpleTimer.cpp index c5811cb9c5..f7c3ec37bb 100644 --- a/core/base/SimpleTimer.cpp +++ b/core/base/SimpleTimer.cpp @@ -22,7 +22,7 @@ private: // 0xffffffff, 0xfffffffe, so it's always works well. #define STIMER_TARGET(bNative) reinterpret_cast(bNative ? STIMER_TARGET_NATIVE : STIMER_TARGET_SCRIPT) -NS_CC_BEGIN +NS_AX_BEGIN namespace stimer { static const uintptr_t STIMER_TARGET_NATIVE = ~static_cast(0); @@ -92,4 +92,4 @@ void killAll(bool bNative) Director::getInstance()->getScheduler()->unscheduleAllForTarget(STIMER_TARGET(bNative)); } } // namespace stimer -NS_CC_END +NS_AX_END diff --git a/core/base/SimpleTimer.h b/core/base/SimpleTimer.h index 3c75d69db1..7d5482a068 100644 --- a/core/base/SimpleTimer.h +++ b/core/base/SimpleTimer.h @@ -7,7 +7,7 @@ #include "base/ccMacros.h" #include -NS_CC_BEGIN +NS_AX_BEGIN namespace stimer { typedef void* TIMER_ID; @@ -17,6 +17,6 @@ CC_DLL TIMER_ID delay(float delay, vcallback_t callback, bool bNative = true); CC_DLL void kill(TIMER_ID timerId, bool bNative = true); CC_DLL void killAll(bool bNative = true); } // namespace stimer -NS_CC_END +NS_AX_END #endif diff --git a/core/base/TGAlib.cpp b/core/base/TGAlib.cpp index f006dc0186..d5c89805ea 100644 --- a/core/base/TGAlib.cpp +++ b/core/base/TGAlib.cpp @@ -31,7 +31,7 @@ THE SOFTWARE. #include "base/CCData.h" #include "platform/CCFileUtils.h" -NS_CC_BEGIN +NS_AX_BEGIN static bool tgaLoadRLEImageData(unsigned char* Buffer, uint32_t bufSize, tImageTGA* info); void tgaFlipImage(tImageTGA* info); @@ -337,4 +337,4 @@ void tgaDestroy(tImageTGA* info) free(info); } } -NS_CC_END +NS_AX_END diff --git a/core/base/TGAlib.h b/core/base/TGAlib.h index 77dd9462f7..fa51e9201f 100644 --- a/core/base/TGAlib.h +++ b/core/base/TGAlib.h @@ -29,9 +29,9 @@ THE SOFTWARE. /// @cond DO_NOT_SHOW #include "stdint.h" +#include "platform/CCPlatformMacros.h" -namespace cocos2d -{ +NS_AX_BEGIN enum { @@ -78,7 +78,7 @@ void tgaRGBtogreyscale(tImageTGA* info); /// releases the memory used for the image void tgaDestroy(tImageTGA* info); -} // namespace cocos2d +NS_AX_END // namespace axis /// @endcond #endif // __SUPPORT_DATA_SUPPORT_TGALIB_H__ diff --git a/core/base/ZipUtils.cpp b/core/base/ZipUtils.cpp index f6e21a3bdc..db5bf1c4a4 100644 --- a/core/base/ZipUtils.cpp +++ b/core/base/ZipUtils.cpp @@ -54,7 +54,7 @@ #define unzGoToFirstFile64(A, B, C, D) unzGoToFirstFile2(A, B, C, D, NULL, 0, NULL, 0) #define unzGoToNextFile64(A, B, C, D) unzGoToNextFile2(A, B, C, D, NULL, 0, NULL, 0) -NS_CC_BEGIN +NS_AX_BEGIN unsigned int ZipUtils::s_uEncryptedPvrKeyParts[4] = {0, 0, 0, 0}; unsigned int ZipUtils::s_uEncryptionKey[1024]; @@ -1048,4 +1048,4 @@ unsigned char* ZipFile::getFileDataFromZip(std::string_view zipFilePath, std::st return buffer; } -NS_CC_END +NS_AX_END diff --git a/core/base/ZipUtils.h b/core/base/ZipUtils.h index 5cde73c724..8c044f4334 100644 --- a/core/base/ZipUtils.h +++ b/core/base/ZipUtils.h @@ -48,8 +48,7 @@ struct unz_file_info_s; * @addtogroup base * @{ */ -namespace cocos2d -{ +NS_AX_BEGIN /** XXX: pragma pack ??? * @struct CCZHeader @@ -337,7 +336,8 @@ private: /** Internal data like zip file pointer / file list array and so on */ ZipFilePrivate* _data; }; -} // end of namespace cocos2d + +NS_AX_END // end of namespace axis // end group /// @} diff --git a/core/base/astc.cpp b/core/base/astc.cpp index fe86fb18e0..41a773d6e2 100644 --- a/core/base/astc.cpp +++ b/core/base/astc.cpp @@ -274,7 +274,7 @@ int astc_decompress_image(const uint8_t* in, benchmark_printer(const char* fmt, int w, int h, float den) : _fmt(fmt), _w(w), _h(h), _den(den), _start(yasio::highp_clock()) {} - ~benchmark_printer() { cocos2d::log(_fmt, _w, _h, (yasio::highp_clock() - _start) / _den); } + ~benchmark_printer() { axis::log(_fmt, _w, _h, (yasio::highp_clock() - _start) / _den); } const char* _fmt; int _w, _h; float _den; diff --git a/core/base/base64.cpp b/core/base/base64.cpp index 8dafaa6a42..745dde04bc 100644 --- a/core/base/base64.cpp +++ b/core/base/base64.cpp @@ -28,8 +28,7 @@ THE SOFTWARE. #include #include "base/base64.h" -namespace cocos2d -{ +NS_AX_BEGIN unsigned char alphabet[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; diff --git a/core/base/base64.h b/core/base/base64.h index f61d81d63a..a6e16f5e7c 100644 --- a/core/base/base64.h +++ b/core/base/base64.h @@ -30,8 +30,7 @@ THE SOFTWARE. #include "platform/CCPlatformMacros.h" -namespace cocos2d -{ +NS_AX_BEGIN /** @file base64 helper functions diff --git a/core/base/ccCArray.cpp b/core/base/ccCArray.cpp index b72d97c261..8ee244c4d9 100644 --- a/core/base/ccCArray.cpp +++ b/core/base/ccCArray.cpp @@ -28,7 +28,7 @@ THE SOFTWARE. #include "base/ccCArray.h" #include "base/ccTypes.h" -NS_CC_BEGIN +NS_AX_BEGIN /** Allocates and initializes a new array with specified capacity */ ccArray* ccArrayNew(ssize_t capacity) @@ -470,4 +470,4 @@ void ccCArrayFullRemoveArray(ccCArray* arr, ccCArray* minusArr) arr->num -= back; } -NS_CC_END +NS_AX_END diff --git a/core/base/ccCArray.h b/core/base/ccCArray.h index 0c13602e78..d029fbc731 100644 --- a/core/base/ccCArray.h +++ b/core/base/ccCArray.h @@ -52,7 +52,7 @@ THE SOFTWARE. #include #include -NS_CC_BEGIN +NS_AX_BEGIN // Easy integration #define CCARRAYDATA_FOREACH(__array__, __object__) \ @@ -206,7 +206,7 @@ CC_DLL void ccCArrayRemoveArray(ccCArray* arr, ccCArray* minusArr); */ CC_DLL void ccCArrayFullRemoveArray(ccCArray* arr, ccCArray* minusArr); -NS_CC_END +NS_AX_END /// @endcond #endif // CC_ARRAY_H diff --git a/core/base/ccConstants.h b/core/base/ccConstants.h index 600f2f1b35..52a92553a5 100644 --- a/core/base/ccConstants.h +++ b/core/base/ccConstants.h @@ -25,7 +25,7 @@ #include "base/ccMacros.h" -NS_CC_BEGIN +NS_AX_BEGIN namespace GLBlendConst { @@ -63,4 +63,4 @@ const int CLAMP_TO_EDGE = 0x812F; // GL_CLAMP_TO_EDGE const int MIRROR_REPEAT = 0x8370; // GL_MIRRORED_REPEAT } // namespace GLTexParamConst -NS_CC_END \ No newline at end of file +NS_AX_END \ No newline at end of file diff --git a/core/base/ccEnums.h b/core/base/ccEnums.h index 2122f7e3ff..0d3113b565 100644 --- a/core/base/ccEnums.h +++ b/core/base/ccEnums.h @@ -28,7 +28,7 @@ THE SOFTWARE. ****************************************************************************/ #pragma once -NS_CC_BEGIN +NS_AX_BEGIN /** * @brief Effects used by `Label` @@ -137,4 +137,4 @@ enum class EmissionShapeType TEXTURE_ALPHA_MASK }; -NS_CC_END +NS_AX_END diff --git a/core/base/ccMacros.h b/core/base/ccMacros.h index be2556ab9c..ab316812a1 100644 --- a/core/base/ccMacros.h +++ b/core/base/ccMacros.h @@ -46,7 +46,7 @@ extern bool CC_DLL cc_assert_script_compatible(const char* msg); if (!(cond)) \ { \ if (msg && *msg && !cc_assert_script_compatible(msg)) \ - cocos2d::log("Assert failed: %s", msg); \ + axis::log("Assert failed: %s", msg); \ CC_ASSERT(cond); \ } \ } while (0) @@ -74,12 +74,12 @@ extern bool CC_DLL cc_assert_script_compatible(const char* msg); /** @def CCRANDOM_MINUS1_1 returns a random float between -1 and 1 */ -#define CCRANDOM_MINUS1_1() cocos2d::rand_minus1_1() +#define CCRANDOM_MINUS1_1() axis::rand_minus1_1() /** @def CCRANDOM_0_1 returns a random float between 0 and 1 */ -#define CCRANDOM_0_1() cocos2d::rand_0_1() +#define CCRANDOM_0_1() axis::rand_0_1() /** @def CC_DEGREES_TO_RADIANS converts degrees to radians @@ -97,8 +97,8 @@ extern bool CC_DLL cc_assert_script_compatible(const char* msg); /** @def CC_BLEND_SRC default gl blend src function. Compatible with premultiplied alpha images. */ -#define CC_BLEND_SRC cocos2d::backend::BlendFactor::ONE -#define CC_BLEND_DST cocos2d::backend::BlendFactor::ONE_MINUS_SRC_ALPHA +#define CC_BLEND_SRC axis::backend::BlendFactor::ONE +#define CC_BLEND_DST axis::backend::BlendFactor::ONE_MINUS_SRC_ALPHA /** @def CC_NODE_DRAW_SETUP [DEPRECATED] Helpful macro that setups the GL server state, the correct GL program and sets the Model View Projection matrix @@ -115,7 +115,7 @@ default gl blend src function. Compatible with premultiplied alpha images. #define CC_DIRECTOR_END() \ do \ { \ - Director* __director = cocos2d::Director::getInstance(); \ + Director* __director = axis::Director::getInstance(); \ __director->end(); \ } while (0) @@ -123,7 +123,7 @@ default gl blend src function. Compatible with premultiplied alpha images. On Mac it returns 1; On iPhone it returns 2 if RetinaDisplay is On. Otherwise it returns 1 */ -#define CC_CONTENT_SCALE_FACTOR() cocos2d::Director::getInstance()->getContentScaleFactor() +#define CC_CONTENT_SCALE_FACTOR() axis::Director::getInstance()->getContentScaleFactor() /****************************/ /** RETINA DISPLAY ENABLED **/ @@ -133,7 +133,7 @@ On iPhone it returns 2 if RetinaDisplay is On. Otherwise it returns 1 Converts a rect in pixels to points */ #define CC_RECT_PIXELS_TO_POINTS(__rect_in_pixels__) \ - cocos2d::Rect((__rect_in_pixels__).origin.x / CC_CONTENT_SCALE_FACTOR(), \ + axis::Rect((__rect_in_pixels__).origin.x / CC_CONTENT_SCALE_FACTOR(), \ (__rect_in_pixels__).origin.y / CC_CONTENT_SCALE_FACTOR(), \ (__rect_in_pixels__).size.width / CC_CONTENT_SCALE_FACTOR(), \ (__rect_in_pixels__).size.height / CC_CONTENT_SCALE_FACTOR()) @@ -142,7 +142,7 @@ On iPhone it returns 2 if RetinaDisplay is On. Otherwise it returns 1 Converts a rect in points to pixels */ #define CC_RECT_POINTS_TO_PIXELS(__rect_in_points_points__) \ - cocos2d::Rect((__rect_in_points_points__).origin.x* CC_CONTENT_SCALE_FACTOR(), \ + axis::Rect((__rect_in_points_points__).origin.x* CC_CONTENT_SCALE_FACTOR(), \ (__rect_in_points_points__).origin.y* CC_CONTENT_SCALE_FACTOR(), \ (__rect_in_points_points__).size.width* CC_CONTENT_SCALE_FACTOR(), \ (__rect_in_points_points__).size.height* CC_CONTENT_SCALE_FACTOR()) @@ -151,13 +151,13 @@ On iPhone it returns 2 if RetinaDisplay is On. Otherwise it returns 1 Converts a rect in pixels to points */ #define CC_POINT_PIXELS_TO_POINTS(__pixels__) \ - cocos2d::Vec2((__pixels__).x / CC_CONTENT_SCALE_FACTOR(), (__pixels__).y / CC_CONTENT_SCALE_FACTOR()) + axis::Vec2((__pixels__).x / CC_CONTENT_SCALE_FACTOR(), (__pixels__).y / CC_CONTENT_SCALE_FACTOR()) /** @def CC_POINT_POINTS_TO_PIXELS Converts a rect in points to pixels */ #define CC_POINT_POINTS_TO_PIXELS(__points__) \ - cocos2d::Vec2((__points__).x* CC_CONTENT_SCALE_FACTOR(), (__points__).y* CC_CONTENT_SCALE_FACTOR()) + axis::Vec2((__points__).x* CC_CONTENT_SCALE_FACTOR(), (__points__).y* CC_CONTENT_SCALE_FACTOR()) /** @def CC_POINT_PIXELS_TO_POINTS Converts a rect in pixels to points @@ -201,49 +201,49 @@ It should work same as apples CFSwapInt32LittleToHost(..) /**********************/ #if CC_ENABLE_PROFILERS -# define CC_PROFILER_DISPLAY_TIMERS() NS_CC::Profiler::getInstance()->displayTimers() -# define CC_PROFILER_PURGE_ALL() NS_CC::Profiler::getInstance()->releaseAllTimers() +# define CC_PROFILER_DISPLAY_TIMERS() NS_AX::Profiler::getInstance()->displayTimers() +# define CC_PROFILER_PURGE_ALL() NS_AX::Profiler::getInstance()->releaseAllTimers() -# define CC_PROFILER_START(__name__) NS_CC::ProfilingBeginTimingBlock(__name__) -# define CC_PROFILER_STOP(__name__) NS_CC::ProfilingEndTimingBlock(__name__) -# define CC_PROFILER_RESET(__name__) NS_CC::ProfilingResetTimingBlock(__name__) +# define CC_PROFILER_START(__name__) NS_AX::ProfilingBeginTimingBlock(__name__) +# define CC_PROFILER_STOP(__name__) NS_AX::ProfilingEndTimingBlock(__name__) +# define CC_PROFILER_RESET(__name__) NS_AX::ProfilingResetTimingBlock(__name__) # define CC_PROFILER_START_CATEGORY(__cat__, __name__) \ do \ { \ if (__cat__) \ - NS_CC::ProfilingBeginTimingBlock(__name__); \ + NS_AX::ProfilingBeginTimingBlock(__name__); \ } while (0) # define CC_PROFILER_STOP_CATEGORY(__cat__, __name__) \ do \ { \ if (__cat__) \ - NS_CC::ProfilingEndTimingBlock(__name__); \ + NS_AX::ProfilingEndTimingBlock(__name__); \ } while (0) # define CC_PROFILER_RESET_CATEGORY(__cat__, __name__) \ do \ { \ if (__cat__) \ - NS_CC::ProfilingResetTimingBlock(__name__); \ + NS_AX::ProfilingResetTimingBlock(__name__); \ } while (0) # define CC_PROFILER_START_INSTANCE(__id__, __name__) \ do \ { \ - NS_CC::ProfilingBeginTimingBlock( \ - NS_CC::String::createWithFormat("%08X - %s", __id__, __name__)->getCString()); \ + NS_AX::ProfilingBeginTimingBlock( \ + NS_AX::String::createWithFormat("%08X - %s", __id__, __name__)->getCString()); \ } while (0) # define CC_PROFILER_STOP_INSTANCE(__id__, __name__) \ do \ { \ - NS_CC::ProfilingEndTimingBlock( \ - NS_CC::String::createWithFormat("%08X - %s", __id__, __name__)->getCString()); \ + NS_AX::ProfilingEndTimingBlock( \ + NS_AX::String::createWithFormat("%08X - %s", __id__, __name__)->getCString()); \ } while (0) # define CC_PROFILER_RESET_INSTANCE(__id__, __name__) \ do \ { \ - NS_CC::ProfilingResetTimingBlock( \ - NS_CC::String::createWithFormat("%08X - %s", __id__, __name__)->getCString()); \ + NS_AX::ProfilingResetTimingBlock( \ + NS_AX::String::createWithFormat("%08X - %s", __id__, __name__)->getCString()); \ } while (0) #else @@ -343,11 +343,11 @@ It should work same as apples CFSwapInt32LittleToHost(..) Increments the GL Draws counts by one. The number of calls per frame are displayed on the screen when the Director's stats are enabled. */ -#define CC_INCREMENT_GL_DRAWS(__n__) cocos2d::Director::getInstance()->getRenderer()->addDrawnBatches(__n__) +#define CC_INCREMENT_GL_DRAWS(__n__) axis::Director::getInstance()->getRenderer()->addDrawnBatches(__n__) #define CC_INCREMENT_GL_DRAWN_BATCHES_AND_VERTICES(__drawcalls__, __vertices__) \ do \ { \ - auto __renderer__ = cocos2d::Director::getInstance()->getRenderer(); \ + auto __renderer__ = axis::Director::getInstance()->getRenderer(); \ __renderer__->addDrawnBatches(__drawcalls__); \ __renderer__->addDrawnVertices(__vertices__); \ } while (0) diff --git a/core/base/ccRandom.cpp b/core/base/ccRandom.cpp index 635906f5e4..a8933bec9c 100644 --- a/core/base/ccRandom.cpp +++ b/core/base/ccRandom.cpp @@ -26,7 +26,7 @@ THE SOFTWARE. #include "base/ccRandom.h" -std::mt19937& cocos2d::RandomHelper::getEngine() +std::mt19937& axis::RandomHelper::getEngine() { static std::random_device seed_gen; static std::mt19937 engine(seed_gen()); diff --git a/core/base/ccRandom.h b/core/base/ccRandom.h index bddc71a265..e86987ec16 100644 --- a/core/base/ccRandom.h +++ b/core/base/ccRandom.h @@ -36,7 +36,7 @@ THE SOFTWARE. * @addtogroup base * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN /** * @class RandomHelper @@ -97,7 +97,7 @@ inline double random(double min, double max) */ inline int random() { - return cocos2d::random(0, RAND_MAX); + return axis::random(0, RAND_MAX); }; /** @@ -112,7 +112,7 @@ inline float rand_minus1_1() // be seeded using std::srand() return ((std::rand() / (float)RAND_MAX) * 2) - 1; - // return cocos2d::random(-1.f, 1.f); + // return axis::random(-1.f, 1.f); }; /** @@ -127,10 +127,10 @@ inline float rand_0_1() // be seeded using std::srand() return std::rand() / (float)RAND_MAX; - // return cocos2d::random(0.f, 1.f); + // return axis::random(0.f, 1.f); }; -NS_CC_END +NS_AX_END // end group /// @} #endif //__ccRandom_H_ diff --git a/core/base/ccTypes.cpp b/core/base/ccTypes.cpp index 647cf9713b..c8df7f2ce4 100644 --- a/core/base/ccTypes.cpp +++ b/core/base/ccTypes.cpp @@ -29,7 +29,7 @@ Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd. #include "base/ccTypes.h" #include "renderer/backend/Types.h" -NS_CC_BEGIN +NS_AX_BEGIN const std::string STD_STRING_EMPTY(""); const ssize_t CC_INVALID_INDEX = -1; @@ -731,5 +731,5 @@ const BlendFunc BlendFunc::ALPHA_NON_PREMULTIPLIED = {backend::BlendFactor::SRC_ backend::BlendFactor::ONE_MINUS_SRC_ALPHA}; const BlendFunc BlendFunc::ADDITIVE = {backend::BlendFactor::SRC_ALPHA, backend::BlendFactor::ONE}; -NS_CC_END +NS_AX_END diff --git a/core/base/ccTypes.h b/core/base/ccTypes.h index dc5538de43..0130a95443 100644 --- a/core/base/ccTypes.h +++ b/core/base/ccTypes.h @@ -41,7 +41,7 @@ THE SOFTWARE. * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN struct Color4B; struct Color4F; @@ -664,6 +664,6 @@ using DepthStencilFlags = backend::DepthStencilFlags; using RenderTargetFlag = backend::RenderTargetFlag; using ClearFlag = backend::ClearFlag; -NS_CC_END +NS_AX_END // end group /// @} diff --git a/core/base/ccUTF8.cpp b/core/base/ccUTF8.cpp index d13b15242a..892f6ec899 100644 --- a/core/base/ccUTF8.cpp +++ b/core/base/ccUTF8.cpp @@ -33,7 +33,7 @@ using namespace llvm; -NS_CC_BEGIN +NS_AX_BEGIN namespace StringUtils { @@ -378,7 +378,7 @@ std::string getStringUTFCharsJNI(JNIEnv* env, jstring srcjStr, bool* ret) jstring newStringUTFJNI(JNIEnv* env, std::string_view utf8Str, bool* ret) { std::u16string utf16Str; - bool flag = cocos2d::StringUtils::UTF8ToUTF16(utf8Str, utf16Str); + bool flag = axis::StringUtils::UTF8ToUTF16(utf8Str, utf16Str); if (ret) { @@ -559,4 +559,4 @@ bool StringUTF8::insert(std::size_t pos, const StringUTF8& insertStr) } // namespace StringUtils -NS_CC_END +NS_AX_END diff --git a/core/base/ccUTF8.h b/core/base/ccUTF8.h index ce0d69ef1c..acfa9ed16a 100644 --- a/core/base/ccUTF8.h +++ b/core/base/ccUTF8.h @@ -37,7 +37,7 @@ # include "platform/android/jni/JniHelper.h" #endif -NS_CC_BEGIN +NS_AX_BEGIN namespace StringUtils { @@ -268,6 +268,6 @@ private: } // namespace StringUtils -NS_CC_END +NS_AX_END #endif /** defined(__cocos2dx__ccUTF8__) */ diff --git a/core/base/ccUtils.cpp b/core/base/ccUtils.cpp index 4cb07c15c7..63ec1ebe51 100644 --- a/core/base/ccUtils.cpp +++ b/core/base/ccUtils.cpp @@ -59,7 +59,7 @@ THE SOFTWARE. using namespace std::string_view_literals; -NS_CC_BEGIN +NS_AX_BEGIN int ccNextPOT(int x) { @@ -633,7 +633,7 @@ backend::SamplerAddressMode toBackendAddressMode(int mode) const Mat4& getAdjustMatrix() { - static cocos2d::Mat4 adjustMatrix = {1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0.5, 0.5, 0, 0, 0, 1}; + static axis::Mat4 adjustMatrix = {1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0.5, 0.5, 0, 0, 0, 1}; return adjustMatrix; } @@ -791,4 +791,4 @@ CC_DLL uint32_t fourccValue(std::string_view str) } // namespace utils -NS_CC_END +NS_AX_END diff --git a/core/base/ccUtils.h b/core/base/ccUtils.h index 53f5b1415a..8a75bffd83 100644 --- a/core/base/ccUtils.h +++ b/core/base/ccUtils.h @@ -41,7 +41,7 @@ THE SOFTWARE. Misc free functions */ -NS_CC_BEGIN +NS_AX_BEGIN /* ccNextPOT function is licensed under the same license that is used in Texture2D.m. */ @@ -76,7 +76,7 @@ namespace utils CC_DLL void captureScreen(std::function)> imageCallback); /** Capture a specific Node. - * @param startNode specify the snapshot Node. It should be cocos2d::Scene + * @param startNode specify the snapshot Node. It should be axis::Scene * @param scale * @returns: return a Image, then can call saveToFile to save the image as "xxx.png or xxx.jpg". * @since v4.0 with axis @@ -258,7 +258,7 @@ CC_DLL void killCurrentProcess(); * Create a Game Object, like CREATE_FUNC, but more powerful * @return Returns a RefPtr game object -* @remark Auto manage cocos2d::Ref reference count, use std::unique_ptr +* @remark Auto manage axis::Ref reference count, use std::unique_ptr * @limition The init function finit must be public */ template @@ -276,7 +276,7 @@ static RefPtr makeInstance(F&& memf, Ts&&... args) * Create a Game Object with 'bool T::init()', like CREATE_FUNC, but more powerful * @return Returns a autorelease game object -* @remark Auto manage cocos2d::Ref reference count, use std::unique_ptr +* @remark Auto manage axis::Ref reference count, use std::unique_ptr * @limition The init function finit must be public */ template @@ -289,7 +289,7 @@ inline static RefPtr makeInstance() * Create a Game Object, like CREATE_FUNC, but more powerful * @return Returns a autorelease game object -* @remark Auto manage cocos2d::Ref reference count, use AutoReleasePool +* @remark Auto manage axis::Ref reference count, use AutoReleasePool * @limition The init function finit must be public */ template @@ -310,13 +310,13 @@ inline T* createInstance(F&& finit, Ts&&... args) * Create a Game Object with 'bool T::init()', like CREATE_FUNC, but more powerful * @return Returns a autorelease game object -* @remark Auto manage cocos2d::Ref reference count, use AutoReleasePool +* @remark Auto manage axis::Ref reference count, use AutoReleasePool * @limition The init function finit must be public */ template inline T* createInstance() { - return ::cocos2d::utils::createInstance(&T::init); + return ::axis::utils::createInstance(&T::init); } /** @@ -408,6 +408,6 @@ CC_DLL std::string urlDecode(std::string_view st); CC_DLL uint32_t fourccValue(std::string_view str); } // namespace utils -NS_CC_END +NS_AX_END #endif // __SUPPORT_CC_UTILS_H__ diff --git a/core/cocos2d.h b/core/cocos2d.h index f3d0dbcf50..244d8549db 100644 --- a/core/cocos2d.h +++ b/core/cocos2d.h @@ -34,7 +34,7 @@ THE SOFTWARE. #define COCOS2D_VERSION 0x00040000 -NS_CC_BEGIN +NS_AX_BEGIN CC_DLL const char* cocos2dVersion(); @@ -47,6 +47,10 @@ using Sprite3DMaterialCache = MeshMaterialCache; #define setDisplayStats setStatsDisplay -NS_CC_END +NS_AX_END + +namespace cocos2d = axis; + +#define USING_NS_CC USING_NS_AX #endif // __COCOS2D_H__ diff --git a/core/math/CCAffineTransform.cpp b/core/math/CCAffineTransform.cpp index 0602d8f6a2..3470ce3d4a 100644 --- a/core/math/CCAffineTransform.cpp +++ b/core/math/CCAffineTransform.cpp @@ -31,7 +31,7 @@ THE SOFTWARE. using namespace std; -NS_CC_BEGIN +NS_AX_BEGIN AffineTransform __CCAffineTransformMake(float a, float b, float c, float d, float tx, float ty) { @@ -168,4 +168,4 @@ AffineTransform AffineTransformInvert(const AffineTransform& t) determinant * (t.c * t.ty - t.d * t.tx), determinant * (t.b * t.tx - t.a * t.ty)); } -NS_CC_END +NS_AX_END diff --git a/core/math/CCAffineTransform.h b/core/math/CCAffineTransform.h index 132bacd11f..99ad200934 100644 --- a/core/math/CCAffineTransform.h +++ b/core/math/CCAffineTransform.h @@ -36,7 +36,7 @@ THE SOFTWARE. * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN /**@{ Affine transform @@ -112,7 +112,7 @@ CC_DLL Mat4 TransformConcat(const Mat4& t1, const Mat4& t2); extern CC_DLL const AffineTransform AffineTransformIdentity; -NS_CC_END +NS_AX_END // end of base transform /// @} diff --git a/core/math/CCMathBase.h b/core/math/CCMathBase.h index 6580fc56e1..7c6e7895c9 100644 --- a/core/math/CCMathBase.h +++ b/core/math/CCMathBase.h @@ -58,15 +58,15 @@ // M_1_PI 0.31830988618379067154 #ifdef __cplusplus -# define NS_CC_MATH_BEGIN \ - namespace cocos2d \ +# define NS_AX_MATH_BEGIN \ + namespace axis \ { -# define NS_CC_MATH_END } -# define USING_NS_CC_MATH using namespace cocos2d +# define NS_AX_MATH_END } +# define USING_NS_AX_MATH using namespace axis #else -# define NS_CC_MATH_BEGIN -# define NS_CC_MATH_END -# define USING_NS_CC_MATH +# define NS_AX_MATH_BEGIN +# define NS_AX_MATH_END +# define USING_NS_AX_MATH #endif /** diff --git a/core/math/CCVertex.cpp b/core/math/CCVertex.cpp index d4b6cd399b..7973d0baad 100644 --- a/core/math/CCVertex.cpp +++ b/core/math/CCVertex.cpp @@ -28,7 +28,7 @@ #include "math/CCVertex.h" #include "base/ccMacros.h" -NS_CC_BEGIN +NS_AX_BEGIN void ccVertexLineToPolygon(Vec2* points, float stroke, Vec2* vertices, unsigned int offset, unsigned int nuPoints) { @@ -143,4 +143,4 @@ bool ccVertexLineIntersect(float Ax, float Ay, float Bx, float By, float Cx, flo return true; } -NS_CC_END +NS_AX_END diff --git a/core/math/CCVertex.h b/core/math/CCVertex.h index 46c33a0dba..56d3f38e96 100644 --- a/core/math/CCVertex.h +++ b/core/math/CCVertex.h @@ -34,7 +34,7 @@ * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN /** @file CCVertex.h */ @@ -46,7 +46,7 @@ ccVertexLineToPolygon(Vec2* points, float stroke, Vec2* vertices, unsigned int o bool CC_DLL ccVertexLineIntersect(float Ax, float Ay, float Bx, float By, float Cx, float Cy, float Dx, float Dy, float* T); -NS_CC_END +NS_AX_END // end of base group /// @} diff --git a/core/math/Mat3.cpp b/core/math/Mat3.cpp index 76c3b88aff..c9bb9ee83b 100644 --- a/core/math/Mat3.cpp +++ b/core/math/Mat3.cpp @@ -1,6 +1,6 @@ #include "Mat3.h" -NS_CC_MATH_BEGIN +NS_AX_MATH_BEGIN Mat3::Mat3() { @@ -61,9 +61,9 @@ float Mat3::get(int i, int j) // throw new JmeException("Invalid indices into matrix."); } -cocos2d::Vec3 Mat3::getColumn(int i) +axis::Vec3 Mat3::getColumn(int i) { - cocos2d::Vec3 store; + axis::Vec3 store; switch (i) { case 0: @@ -88,9 +88,9 @@ cocos2d::Vec3 Mat3::getColumn(int i) return store; } -cocos2d::Vec3 Mat3::getRow(int i) +axis::Vec3 Mat3::getRow(int i) { - cocos2d::Vec3 store; + axis::Vec3 store; switch (i) { case 0: @@ -119,7 +119,7 @@ std::string Mat3::toString() return ""; } -void Mat3::setColumn(int i, const cocos2d::Vec3& column) +void Mat3::setColumn(int i, const axis::Vec3& column) { switch (i) @@ -145,7 +145,7 @@ void Mat3::setColumn(int i, const cocos2d::Vec3& column) } } -void Mat3::setRow(int i, const cocos2d::Vec3& row) +void Mat3::setRow(int i, const axis::Vec3& row) { switch (i) { @@ -236,7 +236,7 @@ void Mat3::set(float matrix[3][3]) m[8] = matrix[2][2]; } -void Mat3::set(const cocos2d::Vec3& uAxis, const cocos2d::Vec3& vAxis, const cocos2d::Vec3& wAxis) +void Mat3::set(const axis::Vec3& uAxis, const axis::Vec3& vAxis, const axis::Vec3& wAxis) { m[0] = uAxis.x; m[3] = uAxis.y; @@ -330,7 +330,7 @@ void Mat3::rotateZ(float s, float c) mult(temp); } -void Mat3::createRotation(const cocos2d::Vec3& axis, float fSin, float fCos) +void Mat3::createRotation(const axis::Vec3& axis, float fSin, float fCos) { float x = axis.x; float y = axis.y; @@ -426,10 +426,10 @@ Mat3& Mat3::mult(const Mat3& mat, Mat3& product) const return product; } -cocos2d::Vec3 Mat3::mult(const cocos2d::Vec3& vec) const +axis::Vec3 Mat3::mult(const axis::Vec3& vec) const { - cocos2d::Vec3 product; + axis::Vec3 product; float x = vec.x; float y = vec.y; @@ -572,20 +572,20 @@ bool Mat3::equals(const Mat3& o) const return memcmp(&o, this, sizeof(o)) == 0; } -void Mat3::fromStartEndVectors(cocos2d::Vec3 start, cocos2d::Vec3 end) +void Mat3::fromStartEndVectors(axis::Vec3 start, axis::Vec3 end) { - cocos2d::Vec3 v; + axis::Vec3 v; float e, h, f; - cocos2d::Vec3::cross(start, end, &v); + axis::Vec3::cross(start, end, &v); e = start.dot(end); f = (e < 0) ? -e : e; // if "from" and "to" vectors are nearly parallel if (f > 1.0f - FLT_EPSILON) { - cocos2d::Vec3 u; - cocos2d::Vec3 x; + axis::Vec3 u; + axis::Vec3 x; float c1, c2, c3; /* coefficients for later use */ int i, j; @@ -666,7 +666,7 @@ void Mat3::fromStartEndVectors(cocos2d::Vec3 start, cocos2d::Vec3 end) } } -void Mat3::scale(const cocos2d::Vec3& scale) +void Mat3::scale(const axis::Vec3& scale) { m[0] *= scale.x; m[3] *= scale.x; @@ -706,4 +706,4 @@ bool Mat3::equalIdentity(const Mat3& mat) return true; } -NS_CC_MATH_END +NS_AX_MATH_END diff --git a/core/math/Mat3.h b/core/math/Mat3.h index a9396d0808..7cee88619c 100644 --- a/core/math/Mat3.h +++ b/core/math/Mat3.h @@ -23,7 +23,7 @@ DEALINGS IN THE SOFTWARE. # include "math/Vec3.h" # include "math/Vec4.h" -NS_CC_MATH_BEGIN +NS_AX_MATH_BEGIN class Mat3 { @@ -151,7 +151,7 @@ public: /** * getColumn returns one of three columns specified by the - * parameter. This column is returned as a cocos2d::Vec3 object. + * parameter. This column is returned as a axis::Vec3 object. * * @param i * the column to retrieve. Must be between 0 and 2. @@ -160,11 +160,11 @@ public: * is created. * @return the column specified by the index. */ - cocos2d::Vec3 getColumn(int i); + axis::Vec3 getColumn(int i); /** * getRow returns one of three rows as specified by the - * parameter. This row is returned as a cocos2d::Vec3 object. + * parameter. This row is returned as a axis::Vec3 object. * * @param i * the row to retrieve. Must be between 0 and 2. @@ -173,7 +173,7 @@ public: * is created. * @return the row specified by the index. */ - cocos2d::Vec3 getRow(int i); + axis::Vec3 getRow(int i); std::string toString(); @@ -187,7 +187,7 @@ public: * @param column * the data to set. */ - void setColumn(int i, const cocos2d::Vec3& column); + void setColumn(int i, const axis::Vec3& column); /** * @@ -199,7 +199,7 @@ public: * @param row * the data to set. */ - void setRow(int i, const cocos2d::Vec3& row); + void setRow(int i, const axis::Vec3& row); /** * set places a given value into the matrix at the given @@ -231,13 +231,13 @@ public: * Recreate Matrix using the provided axis. * * @param uAxis - * cocos2d::Vec3 + * axis::Vec3 * @param vAxis - * cocos2d::Vec3 + * axis::Vec3 * @param wAxis - * cocos2d::Vec3 + * axis::Vec3 */ - void set(const cocos2d::Vec3& uAxis, const cocos2d::Vec3& vAxis, const cocos2d::Vec3& wAxis); + void set(const axis::Vec3& uAxis, const axis::Vec3& vAxis, const axis::Vec3& wAxis); /** * set sets the values of this matrix from an array of values @@ -267,7 +267,7 @@ public: * @param quaternion * the quaternion to create a rotational matrix from. */ - void set(const cocos2d::Quaternion& quaternion) + void set(const axis::Quaternion& quaternion) { // quaternion.toRotationMatrix(this); } @@ -344,7 +344,7 @@ public: * @param axis * the axis of rotation. */ - void createRotation(const cocos2d::Vec3& axis, float angle) + void createRotation(const axis::Vec3& axis, float angle) { createRotation(axis, std::sin(angle), std::cos(angle)); } @@ -358,7 +358,7 @@ public: * @param axis * the axis of rotation (already normalized). */ - void createRotation(const cocos2d::Vec3& axis, float fSin, float fCos); + void createRotation(const axis::Vec3& axis, float fSin, float fCos); /** * Creates a matrix describing a rotation around the x-axis. @@ -390,7 +390,7 @@ public: * @param scale The amount to scale. * @param dst A matrix to store the result in. */ - void createScale(const cocos2d::Vec3& scale); + void createScale(const axis::Vec3& scale); /** * Creates a scale matrix. @@ -408,7 +408,7 @@ public: * @param translation The translation. * @param dst A matrix to store the result in. */ - void createTranslation(const cocos2d::Vec3& translation); + void createTranslation(const axis::Vec3& translation); /** * Creates a translation matrix. @@ -440,10 +440,10 @@ public: * product. * * @param vec - * The cocos2d::Vec3 to multiply. + * The axis::Vec3 to multiply. * @return The given product vector. */ - cocos2d::Vec3 mult(const cocos2d::Vec3& vec) const; + axis::Vec3 mult(const axis::Vec3& vec) const; Mat3& premultAlpha(float alpha) { return multLocal(alpha); } @@ -553,7 +553,7 @@ public: * @see "Tomas M?ller, John Hughes /"Efficiently Building a Matrix to Rotate * / One Vector to Another/" Journal of Graphics Tools, 4(4):1-4, 1999" */ - void fromStartEndVectors(cocos2d::Vec3 start, cocos2d::Vec3 end); + void fromStartEndVectors(axis::Vec3 start, axis::Vec3 end); /** * scale scales the operation performed by this matrix on a @@ -562,11 +562,11 @@ public: * @param scale * The scale applied to each of the X, Y and Z output values. */ - void scale(const cocos2d::Vec3& scale); + void scale(const axis::Vec3& scale); static bool equalIdentity(const Mat3& mat); }; -NS_CC_MATH_END +NS_AX_MATH_END #endif diff --git a/core/math/Mat4.cpp b/core/math/Mat4.cpp index a3de8df4e9..32ac43cc49 100644 --- a/core/math/Mat4.cpp +++ b/core/math/Mat4.cpp @@ -26,7 +26,7 @@ #include "math/MathUtil.h" #include "base/ccMacros.h" -NS_CC_MATH_BEGIN +NS_AX_MATH_BEGIN Mat4::Mat4() { @@ -1028,4 +1028,4 @@ const Mat4 Mat4::IDENTITY = const Mat4 Mat4::ZERO = Mat4(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); -NS_CC_MATH_END +NS_AX_MATH_END diff --git a/core/math/Mat4.h b/core/math/Mat4.h index 441601793c..5118e56f14 100644 --- a/core/math/Mat4.h +++ b/core/math/Mat4.h @@ -37,7 +37,7 @@ * @{ */ -NS_CC_MATH_BEGIN +NS_AX_MATH_BEGIN // class Plane; @@ -1042,7 +1042,7 @@ inline Vec4& operator*=(Vec4& v, const Mat4& m); */ inline Vec4 operator*(const Mat4& m, const Vec4& v); -NS_CC_MATH_END +NS_AX_MATH_END /** end of base group @} diff --git a/core/math/Mat4.inl b/core/math/Mat4.inl index 7fe00e43fc..69dac19e5f 100644 --- a/core/math/Mat4.inl +++ b/core/math/Mat4.inl @@ -20,7 +20,7 @@ #include "math/Mat4.h" -NS_CC_MATH_BEGIN +NS_AX_MATH_BEGIN inline Mat4 Mat4::operator+(const Mat4& mat) const { @@ -94,4 +94,4 @@ inline Vec4 operator*(const Mat4& m, const Vec4& v) return x; } -NS_CC_MATH_END +NS_AX_MATH_END diff --git a/core/math/MathUtil.cpp b/core/math/MathUtil.cpp index 07cbc18f88..76450f6625 100644 --- a/core/math/MathUtil.cpp +++ b/core/math/MathUtil.cpp @@ -73,7 +73,7 @@ This file was modified to fit the cocos2d-x project #include "math/MathUtil.inl" -NS_CC_MATH_BEGIN +NS_AX_MATH_BEGIN void MathUtil::smooth(float* x, float target, float elapsedTime, float responseTime) { @@ -298,4 +298,4 @@ void MathUtil::crossVec3(const float* v1, const float* v2, float* dst) #endif } -NS_CC_MATH_END +NS_AX_MATH_END diff --git a/core/math/MathUtil.h b/core/math/MathUtil.h index 70e41ddb20..aba75e31bb 100644 --- a/core/math/MathUtil.h +++ b/core/math/MathUtil.h @@ -34,7 +34,7 @@ * @{ */ -NS_CC_MATH_BEGIN +NS_AX_MATH_BEGIN /** * Defines a math utility class. @@ -132,7 +132,7 @@ private: static void crossVec3(const float* v1, const float* v2, float* dst); }; -NS_CC_MATH_END +NS_AX_MATH_END /** end of base group @} diff --git a/core/math/MathUtil.inl b/core/math/MathUtil.inl index 5148fa13d8..397c336d8e 100644 --- a/core/math/MathUtil.inl +++ b/core/math/MathUtil.inl @@ -18,7 +18,7 @@ This file was modified to fit the cocos2d-x project */ -NS_CC_MATH_BEGIN +NS_AX_MATH_BEGIN class MathUtilC { @@ -215,4 +215,4 @@ inline void MathUtilC::crossVec3(const float* v1, const float* v2, float* dst) dst[2] = z; } -NS_CC_MATH_END +NS_AX_MATH_END diff --git a/core/math/MathUtilNeon.inl b/core/math/MathUtilNeon.inl index bf41e6c704..7479649cb0 100644 --- a/core/math/MathUtilNeon.inl +++ b/core/math/MathUtilNeon.inl @@ -17,7 +17,7 @@ This file was modified to fit the cocos2d-x project */ -NS_CC_MATH_BEGIN +NS_AX_MATH_BEGIN class MathUtilNeon { @@ -268,4 +268,4 @@ inline void MathUtilNeon::crossVec3(const float* v1, const float* v2, float* dst ); } -NS_CC_MATH_END +NS_AX_MATH_END diff --git a/core/math/MathUtilNeon64.inl b/core/math/MathUtilNeon64.inl index 9832669907..3f683afcbd 100644 --- a/core/math/MathUtilNeon64.inl +++ b/core/math/MathUtilNeon64.inl @@ -18,7 +18,7 @@ This file was modified to fit the cocos2d-x project */ -NS_CC_MATH_BEGIN +NS_AX_MATH_BEGIN class MathUtilNeon64 { @@ -262,4 +262,4 @@ inline void MathUtilNeon64::crossVec3(const float* v1, const float* v2, float* d ); } -NS_CC_MATH_END +NS_AX_MATH_END diff --git a/core/math/MathUtilSSE.inl b/core/math/MathUtilSSE.inl index 3a6d5c1de0..dc1be24e21 100644 --- a/core/math/MathUtilSSE.inl +++ b/core/math/MathUtilSSE.inl @@ -1,4 +1,4 @@ -NS_CC_MATH_BEGIN +NS_AX_MATH_BEGIN #ifdef __SSE__ @@ -154,4 +154,4 @@ void MathUtil::transformVec4(const __m128 m[4], const __m128& v, __m128& dst) #endif -NS_CC_MATH_END +NS_AX_MATH_END diff --git a/core/math/Quaternion.cpp b/core/math/Quaternion.cpp index c536b9afd7..3f75504141 100644 --- a/core/math/Quaternion.cpp +++ b/core/math/Quaternion.cpp @@ -24,7 +24,7 @@ #include #include "base/ccMacros.h" -NS_CC_MATH_BEGIN +NS_AX_MATH_BEGIN const Quaternion Quaternion::ZERO(0.0f, 0.0f, 0.0f, 0.0f); @@ -438,4 +438,4 @@ void Quaternion::slerpForSquad(const Quaternion& q1, const Quaternion& q2, float dst->w = (q1.w * r1 + q2.w * r2); } -NS_CC_MATH_END +NS_AX_MATH_END diff --git a/core/math/Quaternion.h b/core/math/Quaternion.h index 4bc4ab9e40..7258a82172 100644 --- a/core/math/Quaternion.h +++ b/core/math/Quaternion.h @@ -32,7 +32,7 @@ * @{ */ -NS_CC_MATH_BEGIN +NS_AX_MATH_BEGIN class Mat4; @@ -421,7 +421,7 @@ private: static void slerpForSquad(const Quaternion& q1, const Quaternion& q2, float t, Quaternion* dst); }; -NS_CC_MATH_END +NS_AX_MATH_END /** end of base group @} diff --git a/core/math/Quaternion.inl b/core/math/Quaternion.inl index 8c9c1ee6a8..d62617dcd4 100644 --- a/core/math/Quaternion.inl +++ b/core/math/Quaternion.inl @@ -20,7 +20,7 @@ #include "math/Quaternion.h" -NS_CC_MATH_BEGIN +NS_AX_MATH_BEGIN inline Quaternion Quaternion::operator*(const Quaternion& q) const { @@ -48,4 +48,4 @@ inline Vec3 Quaternion::operator*(const Vec3& v) const return v + uv + uuv; } -NS_CC_MATH_END +NS_AX_MATH_END diff --git a/core/math/Rect.cpp b/core/math/Rect.cpp index 1d3c907b9d..5d19e82c0e 100644 --- a/core/math/Rect.cpp +++ b/core/math/Rect.cpp @@ -31,7 +31,7 @@ THE SOFTWARE. #include "base/ccMacros.h" // implementation of Vec2 -NS_CC_BEGIN +NS_AX_BEGIN // implementation of Rect @@ -208,4 +208,4 @@ Rect Rect::unionWithRect(const Rect& rect) const const Rect Rect::ZERO = Rect(0, 0, 0, 0); -NS_CC_END +NS_AX_END diff --git a/core/math/Rect.h b/core/math/Rect.h index 49752d1956..29818057b7 100644 --- a/core/math/Rect.h +++ b/core/math/Rect.h @@ -35,7 +35,7 @@ THE SOFTWARE. * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN /**Rectangle area.*/ class CC_DLL Rect @@ -141,7 +141,7 @@ public: static const Rect ZERO; }; -NS_CC_END +NS_AX_END // end of base group /// @} diff --git a/core/math/TransformUtils.cpp b/core/math/TransformUtils.cpp index 8b62df246b..a8de83f305 100644 --- a/core/math/TransformUtils.cpp +++ b/core/math/TransformUtils.cpp @@ -28,8 +28,7 @@ THE SOFTWARE. #include "math/TransformUtils.h" #include "math/CCAffineTransform.h" -namespace cocos2d -{ +NS_AX_BEGIN void CGAffineToGL(const AffineTransform& t, float* m) { diff --git a/core/math/TransformUtils.h b/core/math/TransformUtils.h index a59e4d7c6c..32b11d38dc 100644 --- a/core/math/TransformUtils.h +++ b/core/math/TransformUtils.h @@ -35,8 +35,7 @@ THE SOFTWARE. * @{ */ -namespace cocos2d -{ +NS_AX_BEGIN struct AffineTransform; /**@{ diff --git a/core/math/Vec2.cpp b/core/math/Vec2.cpp index ea78024434..474c39c6e1 100644 --- a/core/math/Vec2.cpp +++ b/core/math/Vec2.cpp @@ -23,7 +23,7 @@ #include "math/MathUtil.h" #include "base/ccMacros.h" -NS_CC_MATH_BEGIN +NS_AX_MATH_BEGIN // returns true if segment A-B intersects with segment C-D. S->E is the overlap part bool isOneDimensionSegmentOverlap(float A, float B, float C, float D, float* S, float* E) @@ -349,4 +349,4 @@ const Vec2 Vec2::ANCHOR_MIDDLE_LEFT(0.0f, 0.5f); const Vec2 Vec2::ANCHOR_MIDDLE_TOP(0.5f, 1.0f); const Vec2 Vec2::ANCHOR_MIDDLE_BOTTOM(0.5f, 0.0f); -NS_CC_MATH_END +NS_AX_MATH_END diff --git a/core/math/Vec2.h b/core/math/Vec2.h index 22ced87fab..fef1349ea4 100644 --- a/core/math/Vec2.h +++ b/core/math/Vec2.h @@ -36,7 +36,7 @@ * @{ */ -NS_CC_MATH_BEGIN +NS_AX_MATH_BEGIN /** Clamp a value between from and to. */ @@ -748,7 +748,7 @@ using Point = Vec2; // [DEPRECATED] compatible only using Size = Vec2; // typedef Vec2 Size; -NS_CC_MATH_END +NS_AX_MATH_END /** end of base group diff --git a/core/math/Vec2.inl b/core/math/Vec2.inl index 86b6ce3a36..9e153763a5 100644 --- a/core/math/Vec2.inl +++ b/core/math/Vec2.inl @@ -20,7 +20,7 @@ #include "math/Vec2.h" -NS_CC_MATH_BEGIN +NS_AX_MATH_BEGIN inline Vec2::Vec2() : x(0.0f), y(0.0f) @@ -227,4 +227,4 @@ inline Vec2 operator*(const Vec2& left, const Vec2& right) return Vec2(left.x * right.x, left.y * right.y); } -NS_CC_MATH_END +NS_AX_MATH_END diff --git a/core/math/Vec3.cpp b/core/math/Vec3.cpp index fc640cbb07..eb45bef644 100644 --- a/core/math/Vec3.cpp +++ b/core/math/Vec3.cpp @@ -23,7 +23,7 @@ #include "math/MathUtil.h" #include "base/ccMacros.h" -NS_CC_MATH_BEGIN +NS_AX_MATH_BEGIN Vec3::Vec3() : x(0.0f), y(0.0f), z(0.0f) {} @@ -213,4 +213,4 @@ const Vec3 Vec3::UNIT_X(1.0f, 0.0f, 0.0f); const Vec3 Vec3::UNIT_Y(0.0f, 1.0f, 0.0f); const Vec3 Vec3::UNIT_Z(0.0f, 0.0f, 1.0f); -NS_CC_MATH_END +NS_AX_MATH_END diff --git a/core/math/Vec3.h b/core/math/Vec3.h index 1949eed634..71bb9d413f 100644 --- a/core/math/Vec3.h +++ b/core/math/Vec3.h @@ -31,7 +31,7 @@ * @{ */ -NS_CC_MATH_BEGIN +NS_AX_MATH_BEGIN class Mat4; class Quaternion; @@ -488,7 +488,7 @@ inline Vec3 operator*(float x, const Vec3& v); // typedef Vec3 Point3; -NS_CC_MATH_END +NS_AX_MATH_END /** end of base group @} diff --git a/core/math/Vec3.inl b/core/math/Vec3.inl index bc2a4dfb8c..7e9a60836c 100644 --- a/core/math/Vec3.inl +++ b/core/math/Vec3.inl @@ -21,7 +21,7 @@ #include "math/Vec3.h" #include "math/Mat4.h" -NS_CC_MATH_BEGIN +NS_AX_MATH_BEGIN inline bool Vec3::isZero() const @@ -187,4 +187,4 @@ inline Vec3 operator*(float x, const Vec3& v) return result; } -NS_CC_MATH_END +NS_AX_MATH_END diff --git a/core/math/Vec4.cpp b/core/math/Vec4.cpp index d58f3c83f2..6240cc4759 100644 --- a/core/math/Vec4.cpp +++ b/core/math/Vec4.cpp @@ -25,7 +25,7 @@ #include "math/MathUtil.h" #include "base/ccMacros.h" -NS_CC_MATH_BEGIN +NS_AX_MATH_BEGIN Vec4::Vec4() : x(0.0f), y(0.0f), z(0.0f), w(0.0f) {} @@ -304,4 +304,4 @@ const Vec4 Vec4::UNIT_Y = Vec4(0.0f, 1.0f, 0.0f, 0.0f); const Vec4 Vec4::UNIT_Z = Vec4(0.0f, 0.0f, 1.0f, 0.0f); const Vec4 Vec4::UNIT_W = Vec4(0.0f, 0.0f, 0.0f, 1.0f); -NS_CC_MATH_END +NS_AX_MATH_END diff --git a/core/math/Vec4.h b/core/math/Vec4.h index 9420d44962..b8876f3ca9 100644 --- a/core/math/Vec4.h +++ b/core/math/Vec4.h @@ -34,7 +34,7 @@ * @{ */ -NS_CC_MATH_BEGIN +NS_AX_MATH_BEGIN class Mat4; @@ -461,7 +461,7 @@ public: */ inline Vec4 operator*(float x, const Vec4& v); -NS_CC_MATH_END +NS_AX_MATH_END /** end of base group @} diff --git a/core/math/Vec4.inl b/core/math/Vec4.inl index dc87ffd108..c5646105c3 100644 --- a/core/math/Vec4.inl +++ b/core/math/Vec4.inl @@ -21,7 +21,7 @@ #include "math/Mat4.h" #include "math/Vec4.h" -NS_CC_MATH_BEGIN +NS_AX_MATH_BEGIN inline Vec4 Vec4::operator+(const Vec4& v) const { @@ -111,4 +111,4 @@ inline Vec4 operator*(float x, const Vec4& v) return result; } -NS_CC_MATH_END +NS_AX_MATH_END diff --git a/core/navmesh/CCNavMesh.cpp b/core/navmesh/CCNavMesh.cpp index 1577833425..3c8882c2f2 100644 --- a/core/navmesh/CCNavMesh.cpp +++ b/core/navmesh/CCNavMesh.cpp @@ -32,7 +32,7 @@ # include "recast/DetourDebugDraw.h" # include -NS_CC_BEGIN +NS_AX_BEGIN # pragma pack(push, 1) struct TileCacheSetHeader @@ -290,7 +290,7 @@ void NavMesh::dtDraw() _debugDraw.depthMask(true); } -void cocos2d::NavMesh::drawOffMeshConnections() +void axis::NavMesh::drawOffMeshConnections() { unsigned int conColor = duRGBA(192, 0, 128, 192); unsigned int baseColor = duRGBA(0, 0, 0, 64); @@ -317,7 +317,7 @@ void cocos2d::NavMesh::drawOffMeshConnections() _debugDraw.end(); } -void cocos2d::NavMesh::drawObstacles() +void axis::NavMesh::drawObstacles() { // Draw obstacles for (auto iter : _obstacleList) @@ -345,7 +345,7 @@ void cocos2d::NavMesh::drawObstacles() } } -void cocos2d::NavMesh::drawAgents() +void axis::NavMesh::drawAgents() { for (auto iter : _agentList) { @@ -509,7 +509,7 @@ void NavMesh::update(float dt) } } -void cocos2d::NavMesh::findPath(const Vec3& start, const Vec3& end, std::vector& pathPoints) +void axis::NavMesh::findPath(const Vec3& start, const Vec3& end, std::vector& pathPoints) { static const int MAX_POLYS = 256; static const int MAX_SMOOTH = 2048; @@ -660,6 +660,6 @@ void cocos2d::NavMesh::findPath(const Vec3& start, const Vec3& end, std::vector< } } -NS_CC_END +NS_AX_END #endif // CC_USE_NAVMESH diff --git a/core/navmesh/CCNavMesh.h b/core/navmesh/CCNavMesh.h index da6c8b0943..d306df7f02 100644 --- a/core/navmesh/CCNavMesh.h +++ b/core/navmesh/CCNavMesh.h @@ -43,7 +43,7 @@ # include "navmesh/CCNavMeshObstacle.h" # include "navmesh/CCNavMeshUtils.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup 3d @@ -128,7 +128,7 @@ protected: /** @} */ -NS_CC_END +NS_AX_END #endif // CC_USE_NAVMESH diff --git a/core/navmesh/CCNavMeshAgent.cpp b/core/navmesh/CCNavMeshAgent.cpp index 0e6407e68d..1361710788 100644 --- a/core/navmesh/CCNavMeshAgent.cpp +++ b/core/navmesh/CCNavMeshAgent.cpp @@ -32,7 +32,7 @@ # include "2d/CCScene.h" # include -NS_CC_BEGIN +NS_AX_BEGIN NavMeshAgentParam::NavMeshAgentParam() : radius(0.6f) @@ -66,7 +66,7 @@ std::string_view NavMeshAgent::getNavMeshAgentComponentName() return comName; } -cocos2d::NavMeshAgent::NavMeshAgent() +axis::NavMeshAgent::NavMeshAgent() : _syncFlag(NODE_AND_NODE) , _rotRefAxes(Vec3::UNIT_Z) , _state(DT_CROWDAGENT_STATE_WALKING) @@ -80,7 +80,7 @@ cocos2d::NavMeshAgent::NavMeshAgent() , _navMeshQuery(nullptr) {} -cocos2d::NavMeshAgent::~NavMeshAgent() {} +axis::NavMeshAgent::~NavMeshAgent() {} bool NavMeshAgent::initWith(const NavMeshAgentParam& param) { @@ -89,19 +89,19 @@ bool NavMeshAgent::initWith(const NavMeshAgentParam& param) return true; } -void cocos2d::NavMeshAgent::setNavMeshQuery(dtNavMeshQuery* query) +void axis::NavMeshAgent::setNavMeshQuery(dtNavMeshQuery* query) { _navMeshQuery = query; } -void cocos2d::NavMeshAgent::removeFrom(dtCrowd* crowed) +void axis::NavMeshAgent::removeFrom(dtCrowd* crowed) { crowed->removeAgent(_agentID); _crowd = nullptr; _agentID = -1; } -void cocos2d::NavMeshAgent::addTo(dtCrowd* crowed) +void axis::NavMeshAgent::addTo(dtCrowd* crowed) { _crowd = crowed; dtCrowdAgentParams ap; @@ -110,7 +110,7 @@ void cocos2d::NavMeshAgent::addTo(dtCrowd* crowed) _agentID = _crowd->addAgent(&mat.m[12], &ap); } -void cocos2d::NavMeshAgent::convertTodtAgentParam(const NavMeshAgentParam& inParam, dtCrowdAgentParams& outParam) +void axis::NavMeshAgent::convertTodtAgentParam(const NavMeshAgentParam& inParam, dtCrowdAgentParams& outParam) { memset(&outParam, 0, sizeof(outParam)); outParam.collisionQueryRange = inParam.collisionQueryRange; @@ -125,7 +125,7 @@ void cocos2d::NavMeshAgent::convertTodtAgentParam(const NavMeshAgentParam& inPar outParam.updateFlags = inParam.updateFlags; } -void cocos2d::NavMeshAgent::onExit() +void axis::NavMeshAgent::onExit() { if (_agentID == -1) return; @@ -138,7 +138,7 @@ void cocos2d::NavMeshAgent::onExit() } } -void cocos2d::NavMeshAgent::onEnter() +void axis::NavMeshAgent::onEnter() { if (_agentID != -1) return; @@ -166,7 +166,7 @@ float NavMeshAgent::getSeparationWeight() const return _param.separationWeight; } -void cocos2d::NavMeshAgent::setObstacleAvoidanceType(unsigned char type) +void axis::NavMeshAgent::setObstacleAvoidanceType(unsigned char type) { _param.obstacleAvoidanceType = type; _needUpdateAgent = true; @@ -260,7 +260,7 @@ bool NavMeshAgent::isOnOffMeshLink() return _state == DT_CROWDAGENT_STATE_OFFMESH; } -void cocos2d::NavMeshAgent::completeOffMeshLink() +void axis::NavMeshAgent::completeOffMeshLink() { if (_crowd && isOnOffMeshLink()) { @@ -294,7 +294,7 @@ void NavMeshAgent::setOrientationRefAxes(const Vec3& rotRefAxes) _rotRefAxes = rotRefAxes; } -void cocos2d::NavMeshAgent::setAutoOrientation(bool isAuto) +void axis::NavMeshAgent::setAutoOrientation(bool isAuto) { _needAutoOrientation = isAuto; } @@ -422,6 +422,6 @@ Vec3 NavMeshAgent::getVelocity() const return Vec3::ZERO; } -NS_CC_END +NS_AX_END #endif // CC_USE_NAVMESH diff --git a/core/navmesh/CCNavMeshAgent.h b/core/navmesh/CCNavMeshAgent.h index 0c5d34f37f..3afbc9ba64 100644 --- a/core/navmesh/CCNavMeshAgent.h +++ b/core/navmesh/CCNavMeshAgent.h @@ -35,7 +35,7 @@ # include "recast/DetourCrowd.h" class dtNavMeshQuery; -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup 3d @@ -230,7 +230,7 @@ private: /** @} */ -NS_CC_END +NS_AX_END #endif // CC_USE_NAVMESH diff --git a/core/navmesh/CCNavMeshDebugDraw.cpp b/core/navmesh/CCNavMeshDebugDraw.cpp index 6729309bcb..f82c5c6a64 100644 --- a/core/navmesh/CCNavMeshDebugDraw.cpp +++ b/core/navmesh/CCNavMeshDebugDraw.cpp @@ -34,7 +34,7 @@ # include "base/CCDirector.h" # include "base/ccMacros.h" -NS_CC_BEGIN +NS_AX_BEGIN NavMeshDebugDraw::NavMeshDebugDraw() { @@ -262,6 +262,6 @@ void NavMeshDebugDraw::clear() _primitiveList.clear(); } -NS_CC_END +NS_AX_END #endif // CC_USE_NAVMESH diff --git a/core/navmesh/CCNavMeshDebugDraw.h b/core/navmesh/CCNavMeshDebugDraw.h index c4c047eee6..786603955d 100644 --- a/core/navmesh/CCNavMeshDebugDraw.h +++ b/core/navmesh/CCNavMeshDebugDraw.h @@ -40,7 +40,7 @@ # include # include -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup 3d @@ -120,6 +120,6 @@ private: /** @} */ -NS_CC_END +NS_AX_END #endif // CC_USE_NAVMESH diff --git a/core/navmesh/CCNavMeshObstacle.cpp b/core/navmesh/CCNavMeshObstacle.cpp index 2f87930602..a8aeebaf96 100644 --- a/core/navmesh/CCNavMeshObstacle.cpp +++ b/core/navmesh/CCNavMeshObstacle.cpp @@ -31,7 +31,7 @@ # include "2d/CCScene.h" # include "recast/DetourTileCache.h" -NS_CC_BEGIN +NS_AX_BEGIN NavMeshObstacle* NavMeshObstacle::create(float radius, float height) { @@ -55,7 +55,7 @@ NavMeshObstacle::NavMeshObstacle() : _radius(0.0f), _height(0.0f), _syncFlag(NODE_AND_NODE), _obstacleID(-1), _tileCache(nullptr) {} -cocos2d::NavMeshObstacle::~NavMeshObstacle() {} +axis::NavMeshObstacle::~NavMeshObstacle() {} bool NavMeshObstacle::initWith(float radius, float height) { @@ -65,21 +65,21 @@ bool NavMeshObstacle::initWith(float radius, float height) return true; } -void cocos2d::NavMeshObstacle::removeFrom(dtTileCache* /*tileCache*/) +void axis::NavMeshObstacle::removeFrom(dtTileCache* /*tileCache*/) { _tileCache->removeObstacle(_obstacleID); _tileCache = nullptr; _obstacleID = -1; } -void cocos2d::NavMeshObstacle::addTo(dtTileCache* tileCache) +void axis::NavMeshObstacle::addTo(dtTileCache* tileCache) { _tileCache = tileCache; Mat4 mat = _owner->getNodeToWorldTransform(); _tileCache->addObstacle(&mat.m[12], _radius, _height, &_obstacleID); } -void cocos2d::NavMeshObstacle::onExit() +void axis::NavMeshObstacle::onExit() { if (_obstacleID == -1) return; @@ -91,7 +91,7 @@ void cocos2d::NavMeshObstacle::onExit() } } -void cocos2d::NavMeshObstacle::onEnter() +void axis::NavMeshObstacle::onEnter() { if (_obstacleID != -1) return; @@ -103,13 +103,13 @@ void cocos2d::NavMeshObstacle::onEnter() } } -void cocos2d::NavMeshObstacle::postUpdate(float /*delta*/) +void axis::NavMeshObstacle::postUpdate(float /*delta*/) { if ((_syncFlag & OBSTACLE_TO_NODE) != 0) syncToNode(); } -void cocos2d::NavMeshObstacle::preUpdate(float /*delta*/) +void axis::NavMeshObstacle::preUpdate(float /*delta*/) { if ((_syncFlag & NODE_TO_OBSTACLE) != 0) syncToObstacle(); @@ -133,12 +133,12 @@ void NavMeshObstacle::syncToNode() } } -void cocos2d::NavMeshObstacle::setRadius(float radius) +void axis::NavMeshObstacle::setRadius(float radius) { _radius = radius; } -void cocos2d::NavMeshObstacle::setHeight(float height) +void axis::NavMeshObstacle::setHeight(float height) { _height = height; } @@ -162,6 +162,6 @@ void NavMeshObstacle::syncToObstacle() } } -NS_CC_END +NS_AX_END #endif // CC_USE_NAVMESH diff --git a/core/navmesh/CCNavMeshObstacle.h b/core/navmesh/CCNavMeshObstacle.h index bef80ee6cc..3503c5f4e4 100644 --- a/core/navmesh/CCNavMeshObstacle.h +++ b/core/navmesh/CCNavMeshObstacle.h @@ -36,7 +36,7 @@ # include "recast/DetourNavMesh.h" # include "recast/DetourTileCache.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup 3d @@ -115,7 +115,7 @@ private: /** @} */ -NS_CC_END +NS_AX_END #endif // CC_USE_NAVMESH diff --git a/core/navmesh/CCNavMeshUtils.cpp b/core/navmesh/CCNavMeshUtils.cpp index f31bd9044c..45e3789ec7 100644 --- a/core/navmesh/CCNavMeshUtils.cpp +++ b/core/navmesh/CCNavMeshUtils.cpp @@ -29,7 +29,7 @@ # include "recast/DetourNavMeshBuilder.h" # include "lz4/lz4.h" -NS_CC_BEGIN +NS_AX_BEGIN LinearAllocator::LinearAllocator(const int cap) : buffer(nullptr), capacity(0), top(0), high(0) { @@ -73,7 +73,7 @@ int LZ4Compressor::maxCompressedSize(const int bufferSize) return LZ4_compressBound(bufferSize); } -dtStatus cocos2d::LZ4Compressor::decompress(const unsigned char* compressed, +dtStatus axis::LZ4Compressor::decompress(const unsigned char* compressed, const int compressedSize, unsigned char* buffer, const int maxBufferSize, @@ -83,7 +83,7 @@ dtStatus cocos2d::LZ4Compressor::decompress(const unsigned char* compressed, return *bufferSize < 0 ? DT_FAILURE : DT_SUCCESS; } -dtStatus cocos2d::LZ4Compressor::compress(const unsigned char* buffer, +dtStatus axis::LZ4Compressor::compress(const unsigned char* buffer, const int bufferSize, unsigned char* compressed, const int maxCompressedSize, @@ -289,6 +289,6 @@ bool inRange(const float* v1, const float* v2, const float r, const float h) return (dx * dx + dz * dz) < r * r && fabsf(dy) < h; } -NS_CC_END +NS_AX_END #endif // CC_USE_NAVMESH diff --git a/core/navmesh/CCNavMeshUtils.h b/core/navmesh/CCNavMeshUtils.h index e11f46c7ff..122671b4ad 100644 --- a/core/navmesh/CCNavMeshUtils.h +++ b/core/navmesh/CCNavMeshUtils.h @@ -38,7 +38,7 @@ # include "recast/DetourTileCache.h" # include "recast/DetourTileCacheBuilder.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup 3d @@ -141,7 +141,7 @@ bool getSteerTarget(dtNavMeshQuery* navQuery, int* outPointCount = nullptr); /** @} */ -NS_CC_END +NS_AX_END #endif // CC_USE_NAVMESH diff --git a/core/network/CCDownloader-curl.cpp b/core/network/CCDownloader-curl.cpp index 28d88f1f99..db6f3a3e75 100644 --- a/core/network/CCDownloader-curl.cpp +++ b/core/network/CCDownloader-curl.cpp @@ -58,8 +58,8 @@ enum kCheckSumStateFailed = 1 << 1, }; -namespace cocos2d -{ +NS_AX_BEGIN + namespace network { @@ -956,7 +956,7 @@ void DownloaderCURL::startTask(std::shared_ptr& task) } else { - cocos2d::log("DownloaderCURL createTask fail, error: %d, detail: %s", coTask->_errCode, + axis::log("DownloaderCURL createTask fail, error: %d, detail: %s", coTask->_errCode, coTask->_errDescription.c_str()); task.reset(); } @@ -1137,4 +1137,4 @@ void DownloaderCURL::_onDownloadFinished(DownloadTask& task, int checkState) } } // namespace network -} // namespace cocos2d +NS_AX_END // namespace axis diff --git a/core/network/CCDownloader-curl.h b/core/network/CCDownloader-curl.h index ed3d30d57a..654411e67e 100644 --- a/core/network/CCDownloader-curl.h +++ b/core/network/CCDownloader-curl.h @@ -29,13 +29,10 @@ #include #include "network/CCIDownloaderImpl.h" -namespace cocos2d -{ -class Scheduler; -} +NS_AX_BEGIN + +class Scheduler; -namespace cocos2d -{ namespace network { class DownloadTaskCURL; @@ -72,4 +69,4 @@ protected: }; } // namespace network -} // namespace cocos2d +NS_AX_END // namespace axis diff --git a/core/network/CCDownloader.cpp b/core/network/CCDownloader.cpp index 573d0a0965..79fd6717c1 100644 --- a/core/network/CCDownloader.cpp +++ b/core/network/CCDownloader.cpp @@ -29,8 +29,8 @@ #include "network/CCDownloader-curl.h" #define DownloaderImpl DownloaderCURL -namespace cocos2d -{ +NS_AX_BEGIN + namespace network { @@ -181,4 +181,4 @@ std::shared_ptr Downloader::createDownloadFileTask(std::string_vie //} } // namespace network -} // namespace cocos2d +NS_AX_END // namespace axis diff --git a/core/network/CCDownloader.h b/core/network/CCDownloader.h index 68ce4d8294..e3a32e1bf5 100644 --- a/core/network/CCDownloader.h +++ b/core/network/CCDownloader.h @@ -33,8 +33,8 @@ #include "platform/CCPlatformMacros.h" -namespace cocos2d -{ +NS_AX_BEGIN + namespace network { @@ -151,4 +151,4 @@ private: }; } // namespace network -} // namespace cocos2d +NS_AX_END // namespace axis diff --git a/core/network/CCIDownloaderImpl.h b/core/network/CCIDownloaderImpl.h index 856b1afd62..9bd5339f78 100644 --- a/core/network/CCIDownloaderImpl.h +++ b/core/network/CCIDownloaderImpl.h @@ -34,7 +34,7 @@ // #define CC_DOWNLOADER_DEBUG #if defined(CC_DOWNLOADER_DEBUG) || defined(_DEBUG) -# define DLLOG(format, ...) cocos2d::log(format, ##__VA_ARGS__) +# define DLLOG(format, ...) axis::log(format, ##__VA_ARGS__) #else # define DLLOG(...) \ do \ @@ -42,8 +42,8 @@ } while (0) #endif -namespace cocos2d -{ +NS_AX_BEGIN + namespace network { class DownloadTask; @@ -75,4 +75,4 @@ public: }; } // namespace network -} // namespace cocos2d +NS_AX_END // namespace axis diff --git a/core/network/HttpClient.cpp b/core/network/HttpClient.cpp index 1cfda29980..cd6273f814 100644 --- a/core/network/HttpClient.cpp +++ b/core/network/HttpClient.cpp @@ -36,7 +36,7 @@ using namespace yasio; -NS_CC_BEGIN +NS_AX_BEGIN namespace network { @@ -544,4 +544,4 @@ std::string_view HttpClient::getSSLVerification() } // namespace network -NS_CC_END +NS_AX_END diff --git a/core/network/HttpClient.h b/core/network/HttpClient.h index e1465fa961..8881aac357 100644 --- a/core/network/HttpClient.h +++ b/core/network/HttpClient.h @@ -45,7 +45,7 @@ * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN namespace network { @@ -253,7 +253,7 @@ private: } // namespace network -NS_CC_END +NS_AX_END // end group /// @} diff --git a/core/network/HttpCookie.cpp b/core/network/HttpCookie.cpp index 5e0d53497f..c5fe3e36eb 100644 --- a/core/network/HttpCookie.cpp +++ b/core/network/HttpCookie.cpp @@ -37,7 +37,7 @@ #include #include -NS_CC_BEGIN +NS_AX_BEGIN namespace network { @@ -54,7 +54,7 @@ void HttpCookie::readFile() VALUE_INDEX, }; - std::string inString = cocos2d::FileUtils::getInstance()->getStringFromFile(_cookieFileName); + std::string inString = axis::FileUtils::getInstance()->getStringFromFile(_cookieFileName); if (!inString.empty()) { xsbase::fast_split(inString, '\n', [this](char* s, char* e) { @@ -296,4 +296,4 @@ void HttpCookie::setCookieFileName(std::string_view filename) } // namespace network -NS_CC_END +NS_AX_END diff --git a/core/network/HttpCookie.h b/core/network/HttpCookie.h index 8bfce0cd07..75499d9c19 100644 --- a/core/network/HttpCookie.h +++ b/core/network/HttpCookie.h @@ -34,7 +34,7 @@ #include #include -NS_CC_BEGIN +NS_AX_BEGIN namespace network { @@ -106,7 +106,7 @@ private: }; } // namespace network -NS_CC_END +NS_AX_END /// @endcond #endif /* HTTP_COOKIE_H */ diff --git a/core/network/HttpRequest.h b/core/network/HttpRequest.h index a3f70d9241..06095520e4 100644 --- a/core/network/HttpRequest.h +++ b/core/network/HttpRequest.h @@ -42,7 +42,7 @@ * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN namespace network { @@ -261,7 +261,7 @@ protected: } // namespace network -NS_CC_END +NS_AX_END // end group /// @} diff --git a/core/network/HttpResponse.h b/core/network/HttpResponse.h index cdaa3fe981..3e2858c7ff 100644 --- a/core/network/HttpResponse.h +++ b/core/network/HttpResponse.h @@ -39,7 +39,7 @@ * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN namespace network { @@ -51,7 +51,7 @@ class HttpClient; * @since v2.0.2. * @lua NA */ -class CC_DLL HttpResponse : public cocos2d::Ref +class CC_DLL HttpResponse : public axis::Ref { friend class HttpClient; @@ -85,9 +85,9 @@ public: /** * Override autorelease method to prevent developers from calling it. * If this method is called , it would trigger CCASSERT. - * @return cocos2d::Ref* always return nullptr. + * @return axis::Ref* always return nullptr. */ - cocos2d::Ref* autorelease() + axis::Ref* autorelease() { CCASSERT(false, "HttpResponse is used between network thread and ui thread \ @@ -254,7 +254,7 @@ protected: } // namespace network -NS_CC_END +NS_AX_END // end group /// @} diff --git a/core/network/Uri.cpp b/core/network/Uri.cpp index 695fe6e26f..4513751ac2 100644 --- a/core/network/Uri.cpp +++ b/core/network/Uri.cpp @@ -66,7 +66,7 @@ void toLower(String& s) } // namespace -NS_CC_BEGIN +NS_AX_BEGIN namespace network { @@ -406,4 +406,4 @@ std::string Uri::toString() const } // namespace network -NS_CC_END +NS_AX_END diff --git a/core/network/Uri.h b/core/network/Uri.h index 4fa604607f..15d60d83d0 100644 --- a/core/network/Uri.h +++ b/core/network/Uri.h @@ -31,7 +31,7 @@ * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN namespace network { @@ -183,7 +183,7 @@ private: } // namespace network -NS_CC_END +NS_AX_END // end group /// @} diff --git a/core/physics/CCPhysicsBody.cpp b/core/physics/CCPhysicsBody.cpp index 93f92c9e13..817399b9c5 100644 --- a/core/physics/CCPhysicsBody.cpp +++ b/core/physics/CCPhysicsBody.cpp @@ -55,7 +55,7 @@ static void internalBodyUpdateVelocity(cpBody* body, cpVect gravity, cpFloat dam cpAssertSoft(body->m > 0.0f && body->i > 0.0f, "Body's mass and moment must be positive to simulate. (Mass: %f Moment: f)", body->m, body->i); - cocos2d::PhysicsBody* physicsBody = static_cast(body->userData); + axis::PhysicsBody* physicsBody = static_cast(body->userData); if (physicsBody->isGravityEnabled()) body->v = @@ -73,7 +73,7 @@ static void internalBodyUpdateVelocity(cpBody* body, cpVect gravity, cpFloat dam cpBodySetTorque(body, 0.0f); } -NS_CC_BEGIN +NS_AX_BEGIN extern const float PHYSICS_INFINITY; const std::string PhysicsBody::COMPONENT_NAME = "PhysicsBody"; @@ -1009,6 +1009,6 @@ void PhysicsBody::removeFromPhysicsWorld() } } -NS_CC_END +NS_AX_END #endif // CC_USE_PHYSICS diff --git a/core/physics/CCPhysicsBody.h b/core/physics/CCPhysicsBody.h index 848103479f..389b5ffaad 100644 --- a/core/physics/CCPhysicsBody.h +++ b/core/physics/CCPhysicsBody.h @@ -37,7 +37,7 @@ struct cpBody; -NS_CC_BEGIN +NS_AX_BEGIN class Node; class PhysicsWorld; @@ -616,7 +616,7 @@ protected: /** @} */ /** @} */ -NS_CC_END +NS_AX_END #endif // CC_USE_PHYSICS #endif // __CCPHYSICS_BODY_H__ diff --git a/core/physics/CCPhysicsContact.cpp b/core/physics/CCPhysicsContact.cpp index eba34c465d..cdb9759fad 100644 --- a/core/physics/CCPhysicsContact.cpp +++ b/core/physics/CCPhysicsContact.cpp @@ -30,7 +30,7 @@ # include "physics/CCPhysicsHelper.h" # include "base/CCEventCustom.h" -NS_CC_BEGIN +NS_AX_BEGIN const char* PHYSICSCONTACT_EVENT_NAME = "PhysicsContactEvent"; @@ -429,5 +429,5 @@ EventListenerPhysicsContactWithGroup* EventListenerPhysicsContactWithGroup::clon return nullptr; } -NS_CC_END +NS_AX_END #endif // CC_USE_PHYSICS diff --git a/core/physics/CCPhysicsContact.h b/core/physics/CCPhysicsContact.h index 4cf28911f1..7e4200e5d0 100644 --- a/core/physics/CCPhysicsContact.h +++ b/core/physics/CCPhysicsContact.h @@ -35,7 +35,7 @@ # include "base/CCEvent.h" # include "base/CCEventCustom.h" -NS_CC_BEGIN +NS_AX_BEGIN class PhysicsShape; class PhysicsBody; @@ -319,7 +319,7 @@ protected: /** @} */ /** @} */ -NS_CC_END +NS_AX_END #endif // CC_USE_PHYSICS #endif //__CCPHYSICS_CONTACT_H__ diff --git a/core/physics/CCPhysicsHelper.h b/core/physics/CCPhysicsHelper.h index fba7f0609a..6dab709a11 100644 --- a/core/physics/CCPhysicsHelper.h +++ b/core/physics/CCPhysicsHelper.h @@ -34,7 +34,7 @@ # include "platform/CCPlatformMacros.h" # include "math/CCMath.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup physics @@ -110,7 +110,7 @@ public: /** @} */ /** @} */ -NS_CC_END +NS_AX_END #endif // CC_USE_PHYSICS #endif // __CCPHYSICS_HELPER_H__ diff --git a/core/physics/CCPhysicsJoint.cpp b/core/physics/CCPhysicsJoint.cpp index f73c14e000..8bf9dadd47 100644 --- a/core/physics/CCPhysicsJoint.cpp +++ b/core/physics/CCPhysicsJoint.cpp @@ -32,7 +32,7 @@ # include "physics/CCPhysicsHelper.h" # include "2d/CCNode.h" -NS_CC_BEGIN +NS_AX_BEGIN template class Optional @@ -145,7 +145,7 @@ PhysicsJoint::~PhysicsJoint() delete _writeCache; } -bool PhysicsJoint::init(cocos2d::PhysicsBody* a, cocos2d::PhysicsBody* b) +bool PhysicsJoint::init(axis::PhysicsBody* a, axis::PhysicsBody* b) { do { @@ -930,5 +930,5 @@ void PhysicsJointMotor::setRate(float rate) CC_PJOINT_CACHE_WRITE(_rate, cpSimpleMotorSetRate, rate); } -NS_CC_END +NS_AX_END #endif // CC_USE_PHYSICS diff --git a/core/physics/CCPhysicsJoint.h b/core/physics/CCPhysicsJoint.h index 362d396cdf..55d54c07dd 100644 --- a/core/physics/CCPhysicsJoint.h +++ b/core/physics/CCPhysicsJoint.h @@ -36,7 +36,7 @@ struct cpConstraint; -NS_CC_BEGIN +NS_AX_BEGIN class Node; class PhysicsBody; @@ -601,7 +601,7 @@ protected: /** @} */ /** @} */ -NS_CC_END +NS_AX_END #endif // CC_USE_PHYSICS #endif // __CCPHYSICS_JOINT_H__ diff --git a/core/physics/CCPhysicsShape.cpp b/core/physics/CCPhysicsShape.cpp index f930462212..607fa2074a 100644 --- a/core/physics/CCPhysicsShape.cpp +++ b/core/physics/CCPhysicsShape.cpp @@ -37,7 +37,7 @@ # include "physics/CCPhysicsWorld.h" # include "physics/CCPhysicsHelper.h" -NS_CC_BEGIN +NS_AX_BEGIN extern const float PHYSICS_INFINITY; static cpBody* s_sharedBody = nullptr; @@ -805,7 +805,7 @@ Vec2 PhysicsShapeEdgePolygon::getCenter() return center; } -void PhysicsShapeEdgePolygon::getPoints(cocos2d::Vec2* outPoints) const +void PhysicsShapeEdgePolygon::getPoints(axis::Vec2* outPoints) const { int i = 0; for (auto shape : _cpShapes) @@ -973,6 +973,6 @@ bool PhysicsShape::containsPoint(const Vec2& point) const return false; } -NS_CC_END +NS_AX_END #endif // CC_USE_PHYSICS diff --git a/core/physics/CCPhysicsShape.h b/core/physics/CCPhysicsShape.h index 74c89de3bf..dba8bcb012 100644 --- a/core/physics/CCPhysicsShape.h +++ b/core/physics/CCPhysicsShape.h @@ -35,7 +35,7 @@ struct cpShape; -NS_CC_BEGIN +NS_AX_BEGIN class PhysicsBody; @@ -784,7 +784,7 @@ protected: /** @} */ /** @} */ -NS_CC_END +NS_AX_END #endif // CC_USE_PHYSICS #endif // __CCPHYSICS_FIXTURE_H__ diff --git a/core/physics/CCPhysicsWorld.cpp b/core/physics/CCPhysicsWorld.cpp index d953a6de0b..5048072c6b 100644 --- a/core/physics/CCPhysicsWorld.cpp +++ b/core/physics/CCPhysicsWorld.cpp @@ -41,7 +41,7 @@ # include "base/CCEventDispatcher.h" # include "base/CCEventCustom.h" -NS_CC_BEGIN +NS_AX_BEGIN const float PHYSICS_INFINITY = FLT_MAX; extern const char* PHYSICSCONTACT_EVENT_NAME; @@ -1091,6 +1091,6 @@ void PhysicsWorld::setPreUpdateCallback(const std::function& callback) _preUpdateCallback = callback; } -NS_CC_END +NS_AX_END #endif // CC_USE_PHYSICS diff --git a/core/physics/CCPhysicsWorld.h b/core/physics/CCPhysicsWorld.h index 65c56f2400..43c7b1e7d3 100644 --- a/core/physics/CCPhysicsWorld.h +++ b/core/physics/CCPhysicsWorld.h @@ -36,7 +36,7 @@ struct cpSpace; -NS_CC_BEGIN +NS_AX_BEGIN class PhysicsBody; class PhysicsJoint; @@ -65,7 +65,7 @@ typedef struct PhysicsRayCastInfo // but in order to do so, we should include "chipmunk_types.h" // in Chipmunk v7.0, chipmunk_types includes all the mac types that // conflicts with cocos2d Vec2, Point,... etc types. And all the CocosStudio - // lib will need to use the `cocos2d::` namespace prefix. And it is easier to do this + // lib will need to use the `axis::` namespace prefix. And it is easier to do this // than change all the cocosstudio library (and also users code) float fraction; void* data; @@ -454,7 +454,7 @@ extern const float CC_DLL PHYSICS_INFINITY; /** @} */ /** @} */ -NS_CC_END +NS_AX_END #endif // CC_USE_PHYSICS #endif // __CCPHYSICS_WORLD_H__ diff --git a/core/physics3d/CCPhysics3D.cpp b/core/physics3d/CCPhysics3D.cpp index d91a10dc6f..2c6127d1dc 100644 --- a/core/physics3d/CCPhysics3D.cpp +++ b/core/physics3d/CCPhysics3D.cpp @@ -29,7 +29,7 @@ # if (CC_ENABLE_BULLET_INTEGRATION) -NS_CC_BEGIN +NS_AX_BEGIN CC_DLL const char* physics3dVersion() { @@ -38,21 +38,21 @@ CC_DLL const char* physics3dVersion() # endif } -NS_CC_END +NS_AX_END -cocos2d::Vec3 convertbtVector3ToVec3(const btVector3& btVec3) +axis::Vec3 convertbtVector3ToVec3(const btVector3& btVec3) { - return cocos2d::Vec3(btVec3.x(), btVec3.y(), btVec3.z()); + return axis::Vec3(btVec3.x(), btVec3.y(), btVec3.z()); } -btVector3 convertVec3TobtVector3(const cocos2d::Vec3& vec3) +btVector3 convertVec3TobtVector3(const axis::Vec3& vec3) { return btVector3(vec3.x, vec3.y, vec3.z); } -cocos2d::Mat4 convertbtTransformToMat4(const btTransform& btTrans) +axis::Mat4 convertbtTransformToMat4(const btTransform& btTrans) { - cocos2d::Mat4 mat; + axis::Mat4 mat; auto rot = btTrans.getBasis(); auto row = rot.getRow(0); mat.m[0] = row.getX(); @@ -74,19 +74,19 @@ cocos2d::Mat4 convertbtTransformToMat4(const btTransform& btTrans) return mat; } -btTransform convertMat4TobtTransform(const cocos2d::Mat4& mat4) +btTransform convertMat4TobtTransform(const axis::Mat4& mat4) { btTransform btTrans; btTrans.setFromOpenGLMatrix(mat4.m); return btTrans; } -cocos2d::Quaternion convertbtQuatToQuat(const btQuaternion& btQuat) +axis::Quaternion convertbtQuatToQuat(const btQuaternion& btQuat) { - return cocos2d::Quaternion(btQuat.x(), btQuat.y(), btQuat.z(), btQuat.w()); + return axis::Quaternion(btQuat.x(), btQuat.y(), btQuat.z(), btQuat.w()); } -btQuaternion convertQuatTobtQuat(const cocos2d::Quaternion& quat) +btQuaternion convertQuatTobtQuat(const axis::Quaternion& quat) { return btQuaternion(quat.x, quat.y, quat.z, quat.w); } diff --git a/core/physics3d/CCPhysics3D.h b/core/physics3d/CCPhysics3D.h index 5f9b5abf57..5a0bb139ea 100644 --- a/core/physics3d/CCPhysics3D.h +++ b/core/physics3d/CCPhysics3D.h @@ -39,11 +39,11 @@ # include "physics3d/CCPhysics3DComponent.h" # include "physics3d/CCPhysics3DConstraint.h" -NS_CC_BEGIN +NS_AX_BEGIN CC_DLL const char* physics3dVersion(); -NS_CC_END +NS_AX_END # if (CC_ENABLE_BULLET_INTEGRATION) @@ -57,12 +57,12 @@ NS_CC_END # include "bullet/BulletCollision/CollisionDispatch/btGhostObject.h" // convert between cocos and bullet -cocos2d::Vec3 convertbtVector3ToVec3(const btVector3& btVec3); -btVector3 convertVec3TobtVector3(const cocos2d::Vec3& vec3); -cocos2d::Mat4 convertbtTransformToMat4(const btTransform& btTrans); -btTransform convertMat4TobtTransform(const cocos2d::Mat4& mat4); -cocos2d::Quaternion convertbtQuatToQuat(const btQuaternion& btQuat); -btQuaternion convertQuatTobtQuat(const cocos2d::Quaternion& quat); +axis::Vec3 convertbtVector3ToVec3(const btVector3& btVec3); +btVector3 convertVec3TobtVector3(const axis::Vec3& vec3); +axis::Mat4 convertbtTransformToMat4(const btTransform& btTrans); +btTransform convertMat4TobtTransform(const axis::Mat4& mat4); +axis::Quaternion convertbtQuatToQuat(const btQuaternion& btQuat); +btQuaternion convertQuatTobtQuat(const axis::Quaternion& quat); # endif // CC_ENABLE_BULLET_INTEGRATION diff --git a/core/physics3d/CCPhysics3DComponent.cpp b/core/physics3d/CCPhysics3DComponent.cpp index 720d99f050..f143cbfd7d 100644 --- a/core/physics3d/CCPhysics3DComponent.cpp +++ b/core/physics3d/CCPhysics3DComponent.cpp @@ -31,7 +31,7 @@ THE SOFTWARE. # if (CC_ENABLE_BULLET_INTEGRATION) -NS_CC_BEGIN +NS_AX_BEGIN Physics3DComponent::~Physics3DComponent() { @@ -51,8 +51,8 @@ bool Physics3DComponent::init() } Physics3DComponent* Physics3DComponent::create(Physics3DObject* physicsObj, - const cocos2d::Vec3& translateInPhysics, - const cocos2d::Quaternion& rotInPhsyics) + const axis::Vec3& translateInPhysics, + const axis::Quaternion& rotInPhsyics) { auto ret = new Physics3DComponent(); if (ret->init()) @@ -162,8 +162,8 @@ void Physics3DComponent::postSimulate() } } -void Physics3DComponent::setTransformInPhysics(const cocos2d::Vec3& translateInPhysics, - const cocos2d::Quaternion& rotInPhsyics) +void Physics3DComponent::setTransformInPhysics(const axis::Vec3& translateInPhysics, + const axis::Quaternion& rotInPhsyics) { Mat4::createRotation(rotInPhsyics, &_transformInPhysics); _transformInPhysics.m[12] = translateInPhysics.x; @@ -248,7 +248,7 @@ void Physics3DComponent::syncNodeToPhysics() } } -NS_CC_END +NS_AX_END # endif // CC_ENABLE_BULLET_INTEGRATION diff --git a/core/physics3d/CCPhysics3DComponent.h b/core/physics3d/CCPhysics3DComponent.h index ee82c5d454..95bd325612 100644 --- a/core/physics3d/CCPhysics3DComponent.h +++ b/core/physics3d/CCPhysics3DComponent.h @@ -35,7 +35,7 @@ # if (CC_ENABLE_BULLET_INTEGRATION) -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup _3d @@ -47,7 +47,7 @@ class Physics3DWorld; /** @brief Physics3DComponent: A component with 3D physics, you can add a rigid body to it, and then add this component * to a node, the node will move and rotate with this rigid body */ -class CC_DLL Physics3DComponent : public cocos2d::Component +class CC_DLL Physics3DComponent : public axis::Component { friend class Physics3DWorld; @@ -74,8 +74,8 @@ public: * @return created Physics3DComponent */ static Physics3DComponent* create(Physics3DObject* physicsObj, - const cocos2d::Vec3& translateInPhysics = cocos2d::Vec3::ZERO, - const cocos2d::Quaternion& rotInPhsyics = cocos2d::Quaternion::ZERO); + const axis::Vec3& translateInPhysics = axis::Vec3::ZERO, + const axis::Quaternion& rotInPhsyics = axis::Quaternion::ZERO); /** * set Physics object to the component @@ -108,7 +108,7 @@ public: /** * The node's transform in physics object space */ - void setTransformInPhysics(const cocos2d::Vec3& translateInPhysics, const cocos2d::Quaternion& rotInPhsyics); + void setTransformInPhysics(const axis::Vec3& translateInPhysics, const axis::Quaternion& rotInPhsyics); /** * synchronization between node and physics is time consuming, you can skip some synchronization using this function @@ -132,8 +132,8 @@ protected: void postSimulate(); - cocos2d::Mat4 _transformInPhysics; // transform in physics space - cocos2d::Mat4 _invTransformInPhysics; + axis::Mat4 _transformInPhysics; // transform in physics space + axis::Mat4 _invTransformInPhysics; Physics3DObject* _physics3DObj; PhysicsSyncFlag _syncFlag; @@ -141,7 +141,7 @@ protected: // end of 3d group /// @} -NS_CC_END +NS_AX_END # endif // CC_ENABLE_BULLET_INTEGRATION diff --git a/core/physics3d/CCPhysics3DConstraint.cpp b/core/physics3d/CCPhysics3DConstraint.cpp index 414f69dfa7..ef0ff76172 100644 --- a/core/physics3d/CCPhysics3DConstraint.cpp +++ b/core/physics3d/CCPhysics3DConstraint.cpp @@ -29,7 +29,7 @@ # if (CC_ENABLE_BULLET_INTEGRATION) -NS_CC_BEGIN +NS_AX_BEGIN Physics3DConstraint::Physics3DConstraint() : _constraint(nullptr) @@ -80,7 +80,7 @@ void Physics3DConstraint::setOverrideNumSolverIterations(int overrideNumIteratio ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Physics3DPointToPointConstraint* Physics3DPointToPointConstraint::create(Physics3DRigidBody* rbA, - const cocos2d::Vec3& pivotPointInA) + const axis::Vec3& pivotPointInA) { auto ret = new Physics3DPointToPointConstraint(); if (ret->init(rbA, pivotPointInA)) @@ -95,8 +95,8 @@ Physics3DPointToPointConstraint* Physics3DPointToPointConstraint::create(Physics Physics3DPointToPointConstraint* Physics3DPointToPointConstraint::create(Physics3DRigidBody* rbA, Physics3DRigidBody* rbB, - const cocos2d::Vec3& pivotPointInA, - const cocos2d::Vec3& pivotPointInB) + const axis::Vec3& pivotPointInA, + const axis::Vec3& pivotPointInB) { auto ret = new Physics3DPointToPointConstraint(); if (ret->init(rbA, rbB, pivotPointInA, pivotPointInB)) @@ -109,7 +109,7 @@ Physics3DPointToPointConstraint* Physics3DPointToPointConstraint::create(Physics return ret; } -bool Physics3DPointToPointConstraint::init(Physics3DRigidBody* rbA, const cocos2d::Vec3& pivotPointInA) +bool Physics3DPointToPointConstraint::init(Physics3DRigidBody* rbA, const axis::Vec3& pivotPointInA) { _constraint = new btPoint2PointConstraint(*rbA->getRigidBody(), convertVec3TobtVector3(pivotPointInA)); @@ -121,8 +121,8 @@ bool Physics3DPointToPointConstraint::init(Physics3DRigidBody* rbA, const cocos2 bool Physics3DPointToPointConstraint::init(Physics3DRigidBody* rbA, Physics3DRigidBody* rbB, - const cocos2d::Vec3& pivotPointInA, - const cocos2d::Vec3& pivotPointInB) + const axis::Vec3& pivotPointInA, + const axis::Vec3& pivotPointInB) { _constraint = new btPoint2PointConstraint(*rbA->getRigidBody(), *rbB->getRigidBody(), convertVec3TobtVector3(pivotPointInA), @@ -135,25 +135,25 @@ bool Physics3DPointToPointConstraint::init(Physics3DRigidBody* rbA, return true; } -void Physics3DPointToPointConstraint::setPivotPointInA(const cocos2d::Vec3& pivotA) +void Physics3DPointToPointConstraint::setPivotPointInA(const axis::Vec3& pivotA) { auto point = convertVec3TobtVector3(pivotA); static_cast(_constraint)->setPivotA(point); } -void Physics3DPointToPointConstraint::setPivotPointInB(const cocos2d::Vec3& pivotB) +void Physics3DPointToPointConstraint::setPivotPointInB(const axis::Vec3& pivotB) { auto point = convertVec3TobtVector3(pivotB); static_cast(_constraint)->setPivotB(point); } -cocos2d::Vec3 Physics3DPointToPointConstraint::getPivotPointInA() const +axis::Vec3 Physics3DPointToPointConstraint::getPivotPointInA() const { const auto& point = static_cast(_constraint)->getPivotInA(); return convertbtVector3ToVec3(point); } -cocos2d::Vec3 Physics3DPointToPointConstraint::getPivotPointInB() const +axis::Vec3 Physics3DPointToPointConstraint::getPivotPointInB() const { const auto& point = static_cast(_constraint)->getPivotInB(); return convertbtVector3ToVec3(point); @@ -168,7 +168,7 @@ Physics3DPointToPointConstraint::~Physics3DPointToPointConstraint() {} //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Physics3DHingeConstraint* Physics3DHingeConstraint::create(Physics3DRigidBody* rbA, - const cocos2d::Mat4& rbAFrame, + const axis::Mat4& rbAFrame, bool useReferenceFrameA) { auto ret = new Physics3DHingeConstraint(); @@ -182,8 +182,8 @@ Physics3DHingeConstraint* Physics3DHingeConstraint::create(Physics3DRigidBody* r } Physics3DHingeConstraint* Physics3DHingeConstraint::create(Physics3DRigidBody* rbA, - const cocos2d::Vec3& pivotInA, - const cocos2d::Vec3& axisInA, + const axis::Vec3& pivotInA, + const axis::Vec3& axisInA, bool useReferenceFrameA) { auto ret = new Physics3DHingeConstraint(); @@ -198,10 +198,10 @@ Physics3DHingeConstraint* Physics3DHingeConstraint::create(Physics3DRigidBody* r Physics3DHingeConstraint* Physics3DHingeConstraint::create(Physics3DRigidBody* rbA, Physics3DRigidBody* rbB, - const cocos2d::Vec3& pivotInA, - const cocos2d::Vec3& pivotInB, - cocos2d::Vec3& axisInA, - cocos2d::Vec3& axisInB, + const axis::Vec3& pivotInA, + const axis::Vec3& pivotInB, + axis::Vec3& axisInA, + axis::Vec3& axisInB, bool useReferenceFrameA) { auto ret = new Physics3DHingeConstraint(); @@ -219,8 +219,8 @@ Physics3DHingeConstraint* Physics3DHingeConstraint::create(Physics3DRigidBody* r Physics3DHingeConstraint* Physics3DHingeConstraint::create(Physics3DRigidBody* rbA, Physics3DRigidBody* rbB, - const cocos2d::Mat4& rbAFrame, - const cocos2d::Mat4& rbBFrame, + const axis::Mat4& rbAFrame, + const axis::Mat4& rbBFrame, bool useReferenceFrameA) { auto ret = new Physics3DHingeConstraint(); @@ -236,19 +236,19 @@ Physics3DHingeConstraint* Physics3DHingeConstraint::create(Physics3DRigidBody* r return ret; } -cocos2d::Mat4 Physics3DHingeConstraint::getFrameOffsetA() const +axis::Mat4 Physics3DHingeConstraint::getFrameOffsetA() const { const auto& transform = static_cast(_constraint)->getFrameOffsetA(); return convertbtTransformToMat4(transform); } -cocos2d::Mat4 Physics3DHingeConstraint::getFrameOffsetB() const +axis::Mat4 Physics3DHingeConstraint::getFrameOffsetB() const { const auto& transform = static_cast(_constraint)->getFrameOffsetB(); return convertbtTransformToMat4(transform); } -void Physics3DHingeConstraint::setFrames(const cocos2d::Mat4& frameA, const cocos2d::Mat4& frameB) +void Physics3DHingeConstraint::setFrames(const axis::Mat4& frameA, const axis::Mat4& frameB) { auto transformA = convertMat4TobtTransform(frameA); auto transformB = convertMat4TobtTransform(frameB); @@ -273,7 +273,7 @@ void Physics3DHingeConstraint::setMaxMotorImpulse(float maxMotorImpulse) { static_cast(_constraint)->setMaxMotorImpulse(maxMotorImpulse); } -void Physics3DHingeConstraint::setMotorTarget(const cocos2d::Quaternion& qAinB, float dt) +void Physics3DHingeConstraint::setMotorTarget(const axis::Quaternion& qAinB, float dt) { static_cast(_constraint)->setMotorTarget(convertQuatTobtQuat(qAinB), dt); } @@ -287,7 +287,7 @@ void Physics3DHingeConstraint::setLimit(float low, float high, float softness, f static_cast(_constraint)->setLimit(low, high, softness, biasFactor, relaxationFactor); } -void Physics3DHingeConstraint::setAxis(const cocos2d::Vec3& axisInA) +void Physics3DHingeConstraint::setAxis(const axis::Vec3& axisInA) { auto axis = convertVec3TobtVector3(axisInA); static_cast(_constraint)->setAxis(axis); @@ -308,19 +308,19 @@ float Physics3DHingeConstraint::getHingeAngle() const return static_cast(_constraint)->getHingeAngle(); } -float Physics3DHingeConstraint::getHingeAngle(const cocos2d::Mat4& transA, const cocos2d::Mat4& transB) +float Physics3DHingeConstraint::getHingeAngle(const axis::Mat4& transA, const axis::Mat4& transB) { auto btTransA = convertMat4TobtTransform(transA); auto btTransB = convertMat4TobtTransform(transB); return static_cast(_constraint)->getHingeAngle(btTransA, btTransB); } -cocos2d::Mat4 Physics3DHingeConstraint::getAFrame() const +axis::Mat4 Physics3DHingeConstraint::getAFrame() const { const auto& trans = static_cast(_constraint)->getAFrame(); return convertbtTransformToMat4(trans); } -cocos2d::Mat4 Physics3DHingeConstraint::getBFrame() const +axis::Mat4 Physics3DHingeConstraint::getBFrame() const { const auto& trans = static_cast(_constraint)->getBFrame(); return convertbtTransformToMat4(trans); @@ -355,8 +355,8 @@ void Physics3DHingeConstraint::setUseFrameOffset(bool frameOffsetOnOff) //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Physics3DSliderConstraint* Physics3DSliderConstraint::create(Physics3DRigidBody* rbA, Physics3DRigidBody* rbB, - const cocos2d::Mat4& frameInA, - const cocos2d::Mat4& frameInB, + const axis::Mat4& frameInA, + const axis::Mat4& frameInB, bool useLinearReferenceFrameA) { auto ret = new Physics3DSliderConstraint(); @@ -373,12 +373,12 @@ Physics3DSliderConstraint* Physics3DSliderConstraint::create(Physics3DRigidBody* return ret; } -cocos2d::Mat4 Physics3DSliderConstraint::getFrameOffsetA() const +axis::Mat4 Physics3DSliderConstraint::getFrameOffsetA() const { const auto& frameOff = static_cast(_constraint)->getFrameOffsetA(); return convertbtTransformToMat4(frameOff); } -cocos2d::Mat4 Physics3DSliderConstraint::getFrameOffsetB() const +axis::Mat4 Physics3DSliderConstraint::getFrameOffsetB() const { const auto& frameOff = static_cast(_constraint)->getFrameOffsetB(); return convertbtTransformToMat4(frameOff); @@ -631,7 +631,7 @@ void Physics3DSliderConstraint::setUseFrameOffset(bool frameOffsetOnOff) static_cast(_constraint)->setUseFrameOffset(frameOffsetOnOff); } -void Physics3DSliderConstraint::setFrames(const cocos2d::Mat4& frameA, const cocos2d::Mat4& frameB) +void Physics3DSliderConstraint::setFrames(const axis::Mat4& frameA, const axis::Mat4& frameB) { auto btFrameA = convertMat4TobtTransform(frameA); auto btFrameB = convertMat4TobtTransform(frameB); @@ -640,7 +640,7 @@ void Physics3DSliderConstraint::setFrames(const cocos2d::Mat4& frameA, const coc ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -Physics3DConeTwistConstraint* Physics3DConeTwistConstraint::create(Physics3DRigidBody* rbA, const cocos2d::Mat4& frameA) +Physics3DConeTwistConstraint* Physics3DConeTwistConstraint::create(Physics3DRigidBody* rbA, const axis::Mat4& frameA) { auto ret = new Physics3DConeTwistConstraint(); ret->_bodyA = rbA; @@ -654,8 +654,8 @@ Physics3DConeTwistConstraint* Physics3DConeTwistConstraint::create(Physics3DRigi } Physics3DConeTwistConstraint* Physics3DConeTwistConstraint::create(Physics3DRigidBody* rbA, Physics3DRigidBody* rbB, - const cocos2d::Mat4& frameA, - const cocos2d::Mat4& frameB) + const axis::Mat4& frameA, + const axis::Mat4& frameB) { auto ret = new Physics3DConeTwistConstraint(); ret->_bodyA = rbA; @@ -683,12 +683,12 @@ void Physics3DConeTwistConstraint::setLimit(float swingSpan1, ->setLimit(swingSpan1, swingSpan2, twistSpan, softness, biasFactor, relaxationFactor); } -cocos2d::Mat4 Physics3DConeTwistConstraint::getAFrame() const +axis::Mat4 Physics3DConeTwistConstraint::getAFrame() const { const auto& frame = static_cast(_constraint)->getAFrame(); return convertbtTransformToMat4(frame); } -cocos2d::Mat4 Physics3DConeTwistConstraint::getBFrame() const +axis::Mat4 Physics3DConeTwistConstraint::getBFrame() const { const auto& frame = static_cast(_constraint)->getBFrame(); return convertbtTransformToMat4(frame); @@ -749,13 +749,13 @@ void Physics3DConeTwistConstraint::setMotorTargetInConstraintSpace(const btQuate static_cast(_constraint)->setMotorTargetInConstraintSpace(q); } -cocos2d::Vec3 Physics3DConeTwistConstraint::GetPointForAngle(float fAngleInRadians, float fLength) const +axis::Vec3 Physics3DConeTwistConstraint::GetPointForAngle(float fAngleInRadians, float fLength) const { const auto& point = static_cast(_constraint)->GetPointForAngle(fAngleInRadians, fLength); return convertbtVector3ToVec3(point); } -void Physics3DConeTwistConstraint::setFrames(const cocos2d::Mat4& frameA, const cocos2d::Mat4& frameB) +void Physics3DConeTwistConstraint::setFrames(const axis::Mat4& frameA, const axis::Mat4& frameB) { const auto& btFrameA = convertMat4TobtTransform(frameA); const auto& btFrameB = convertMat4TobtTransform(frameB); @@ -763,13 +763,13 @@ void Physics3DConeTwistConstraint::setFrames(const cocos2d::Mat4& frameA, const static_cast(_constraint)->setFrames(btFrameA, btFrameB); } -cocos2d::Mat4 Physics3DConeTwistConstraint::getFrameOffsetA() const +axis::Mat4 Physics3DConeTwistConstraint::getFrameOffsetA() const { const auto& trans = static_cast(_constraint)->getFrameOffsetA(); return convertbtTransformToMat4(trans); } -cocos2d::Mat4 Physics3DConeTwistConstraint::getFrameOffsetB() const +axis::Mat4 Physics3DConeTwistConstraint::getFrameOffsetB() const { const auto& trans = static_cast(_constraint)->getFrameOffsetB(); return convertbtTransformToMat4(trans); @@ -777,7 +777,7 @@ cocos2d::Mat4 Physics3DConeTwistConstraint::getFrameOffsetB() const /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Physics3D6DofConstraint* Physics3D6DofConstraint::create(Physics3DRigidBody* rbB, - const cocos2d::Mat4& frameInB, + const axis::Mat4& frameInB, bool useLinearReferenceFrameB) { auto ret = new Physics3D6DofConstraint(); @@ -793,8 +793,8 @@ Physics3D6DofConstraint* Physics3D6DofConstraint::create(Physics3DRigidBody* rbB Physics3D6DofConstraint* Physics3D6DofConstraint::create(Physics3DRigidBody* rbA, Physics3DRigidBody* rbB, - const cocos2d::Mat4& frameInA, - const cocos2d::Mat4& frameInB, + const axis::Mat4& frameInA, + const axis::Mat4& frameInB, bool useLinearReferenceFrameA) { auto ret = new Physics3D6DofConstraint(); @@ -812,52 +812,52 @@ Physics3D6DofConstraint* Physics3D6DofConstraint::create(Physics3DRigidBody* rbA return ret; } -void Physics3D6DofConstraint::setLinearLowerLimit(const cocos2d::Vec3& linearLower) +void Physics3D6DofConstraint::setLinearLowerLimit(const axis::Vec3& linearLower) { auto lower = convertVec3TobtVector3(linearLower); static_cast(_constraint)->setLinearLowerLimit(lower); } -cocos2d::Vec3 Physics3D6DofConstraint::getLinearLowerLimit() const +axis::Vec3 Physics3D6DofConstraint::getLinearLowerLimit() const { btVector3 lower; static_cast(_constraint)->getLinearLowerLimit(lower); return convertbtVector3ToVec3(lower); } -void Physics3D6DofConstraint::setLinearUpperLimit(const cocos2d::Vec3& linearUpper) +void Physics3D6DofConstraint::setLinearUpperLimit(const axis::Vec3& linearUpper) { auto upper = convertVec3TobtVector3(linearUpper); static_cast(_constraint)->setLinearUpperLimit(upper); } -cocos2d::Vec3 Physics3D6DofConstraint::getLinearUpperLimit() const +axis::Vec3 Physics3D6DofConstraint::getLinearUpperLimit() const { btVector3 upper; static_cast(_constraint)->getLinearUpperLimit(upper); return convertbtVector3ToVec3(upper); } -void Physics3D6DofConstraint::setAngularLowerLimit(const cocos2d::Vec3& angularLower) +void Physics3D6DofConstraint::setAngularLowerLimit(const axis::Vec3& angularLower) { auto lower = convertVec3TobtVector3(angularLower); static_cast(_constraint)->setAngularLowerLimit(lower); } -cocos2d::Vec3 Physics3D6DofConstraint::getAngularLowerLimit() const +axis::Vec3 Physics3D6DofConstraint::getAngularLowerLimit() const { btVector3 lower; static_cast(_constraint)->getAngularLowerLimit(lower); return convertbtVector3ToVec3(lower); } -void Physics3D6DofConstraint::setAngularUpperLimit(const cocos2d::Vec3& angularUpper) +void Physics3D6DofConstraint::setAngularUpperLimit(const axis::Vec3& angularUpper) { auto upper = convertVec3TobtVector3(angularUpper); static_cast(_constraint)->setAngularUpperLimit(upper); } -cocos2d::Vec3 Physics3D6DofConstraint::getAngularUpperLimit() const +axis::Vec3 Physics3D6DofConstraint::getAngularUpperLimit() const { btVector3 upper; static_cast(_constraint)->getAngularUpperLimit(upper); @@ -878,7 +878,7 @@ void Physics3D6DofConstraint::setUseFrameOffset(bool frameOffsetOnOff) const static_cast(_constraint)->setUseFrameOffset(frameOffsetOnOff); } -NS_CC_END +NS_AX_END # endif // CC_ENABLE_BULLET_INTEGRATION diff --git a/core/physics3d/CCPhysics3DConstraint.h b/core/physics3d/CCPhysics3DConstraint.h index d58b848535..72404c0bed 100644 --- a/core/physics3d/CCPhysics3DConstraint.h +++ b/core/physics3d/CCPhysics3DConstraint.h @@ -36,7 +36,7 @@ class btTypedConstraint; -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup _3d @@ -144,7 +144,7 @@ public: * @param pivotPointInA local pivot point in A's local space * @return created constraint */ - static Physics3DPointToPointConstraint* create(Physics3DRigidBody* rbA, const cocos2d::Vec3& pivotPointInA); + static Physics3DPointToPointConstraint* create(Physics3DRigidBody* rbA, const axis::Vec3& pivotPointInA); /** * create point to point constraint, make the local pivot points of 2 rigid bodies match in worldspace. @@ -156,36 +156,36 @@ public: */ static Physics3DPointToPointConstraint* create(Physics3DRigidBody* rbA, Physics3DRigidBody* rbB, - const cocos2d::Vec3& pivotPointInA, - const cocos2d::Vec3& pivotPointInB); + const axis::Vec3& pivotPointInA, + const axis::Vec3& pivotPointInB); /** * set pivot point in A's local space */ - void setPivotPointInA(const cocos2d::Vec3& pivotA); + void setPivotPointInA(const axis::Vec3& pivotA); /** * set pivot point in B's local space */ - void setPivotPointInB(const cocos2d::Vec3& pivotB); + void setPivotPointInB(const axis::Vec3& pivotB); /** * get pivot point in A's local space */ - cocos2d::Vec3 getPivotPointInA() const; + axis::Vec3 getPivotPointInA() const; /** * get pivot point in B's local space */ - cocos2d::Vec3 getPivotPointInB() const; + axis::Vec3 getPivotPointInB() const; Physics3DPointToPointConstraint(); virtual ~Physics3DPointToPointConstraint(); - bool init(Physics3DRigidBody* rbA, const cocos2d::Vec3& pivotPointInA); + bool init(Physics3DRigidBody* rbA, const axis::Vec3& pivotPointInA); bool init(Physics3DRigidBody* rbA, Physics3DRigidBody* rbB, - const cocos2d::Vec3& pivotPointInA, - const cocos2d::Vec3& pivotPointInB); + const axis::Vec3& pivotPointInA, + const axis::Vec3& pivotPointInB); }; /** @@ -203,7 +203,7 @@ public: * @param useReferenceFrameA use frame A as reference */ static Physics3DHingeConstraint* create(Physics3DRigidBody* rbA, - const cocos2d::Mat4& rbAFrame, + const axis::Mat4& rbAFrame, bool useReferenceFrameA = false); /** @@ -214,8 +214,8 @@ public: * @param useReferenceFrameA use frame A as reference */ static Physics3DHingeConstraint* create(Physics3DRigidBody* rbA, - const cocos2d::Vec3& pivotInA, - const cocos2d::Vec3& axisInA, + const axis::Vec3& pivotInA, + const axis::Vec3& axisInA, bool useReferenceFrameA = false); /** @@ -230,10 +230,10 @@ public: */ static Physics3DHingeConstraint* create(Physics3DRigidBody* rbA, Physics3DRigidBody* rbB, - const cocos2d::Vec3& pivotInA, - const cocos2d::Vec3& pivotInB, - cocos2d::Vec3& axisInA, - cocos2d::Vec3& axisInB, + const axis::Vec3& pivotInA, + const axis::Vec3& pivotInB, + axis::Vec3& axisInA, + axis::Vec3& axisInB, bool useReferenceFrameA = false); /** @@ -246,24 +246,24 @@ public: */ static Physics3DHingeConstraint* create(Physics3DRigidBody* rbA, Physics3DRigidBody* rbB, - const cocos2d::Mat4& rbAFrame, - const cocos2d::Mat4& rbBFrame, + const axis::Mat4& rbAFrame, + const axis::Mat4& rbBFrame, bool useReferenceFrameA = false); /** * get rigid body A's frame offset */ - cocos2d::Mat4 getFrameOffsetA() const; + axis::Mat4 getFrameOffsetA() const; /** * get rigid body B's frame offset */ - cocos2d::Mat4 getFrameOffsetB() const; + axis::Mat4 getFrameOffsetB() const; /** * set frames for rigid body A and B */ - void setFrames(const cocos2d::Mat4& frameA, const cocos2d::Mat4& frameB); + void setFrames(const axis::Mat4& frameA, const axis::Mat4& frameB); /** * set angular only @@ -282,7 +282,7 @@ public: /** * set motor target */ - void setMotorTarget(const cocos2d::Quaternion& qAinB, float dt); + void setMotorTarget(const axis::Quaternion& qAinB, float dt); /** set motor target */ void setMotorTarget(float targetAngle, float dt); @@ -293,7 +293,7 @@ public: float _biasFactor = 0.3f, float _relaxationFactor = 1.0f); /**set axis*/ - void setAxis(const cocos2d::Vec3& axisInA); + void setAxis(const axis::Vec3& axisInA); /**get lower limit*/ float getLowerLimit() const; /**get upper limit*/ @@ -301,12 +301,12 @@ public: /**get hinge angle*/ float getHingeAngle() const; /**get hinge angle*/ - float getHingeAngle(const cocos2d::Mat4& transA, const cocos2d::Mat4& transB); + float getHingeAngle(const axis::Mat4& transA, const axis::Mat4& transB); /**get A's frame */ - cocos2d::Mat4 getAFrame() const; + axis::Mat4 getAFrame() const; /**get B's frame*/ - cocos2d::Mat4 getBFrame() const; + axis::Mat4 getBFrame() const; /**get angular only*/ bool getAngularOnly() const; /**get enable angular motor*/ @@ -347,14 +347,14 @@ public: */ static Physics3DSliderConstraint* create(Physics3DRigidBody* rbA, Physics3DRigidBody* rbB, - const cocos2d::Mat4& frameInA, - const cocos2d::Mat4& frameInB, + const axis::Mat4& frameInA, + const axis::Mat4& frameInB, bool useLinearReferenceFrameA); /**get A's frame offset*/ - cocos2d::Mat4 getFrameOffsetA() const; + axis::Mat4 getFrameOffsetA() const; /**get B's frame offset*/ - cocos2d::Mat4 getFrameOffsetB() const; + axis::Mat4 getFrameOffsetB() const; /**get lower linear limit*/ float getLowerLinLimit() const; /**set lower linear limit*/ @@ -432,7 +432,7 @@ public: void setUseFrameOffset(bool frameOffsetOnOff); /**set frames for rigid body A and B*/ - void setFrames(const cocos2d::Mat4& frameA, const cocos2d::Mat4& frameB); + void setFrames(const axis::Mat4& frameA, const axis::Mat4& frameB); Physics3DSliderConstraint() { _type = ConstraintType::SLIDER; } virtual ~Physics3DSliderConstraint() {} @@ -449,7 +449,7 @@ public: * rbA rigid body A * frameA A's local frame */ - static Physics3DConeTwistConstraint* create(Physics3DRigidBody* rbA, const cocos2d::Mat4& frameA); + static Physics3DConeTwistConstraint* create(Physics3DRigidBody* rbA, const axis::Mat4& frameA); /** * create cone twist constraint * rbA rigid body A @@ -459,8 +459,8 @@ public: */ static Physics3DConeTwistConstraint* create(Physics3DRigidBody* rbA, Physics3DRigidBody* rbB, - const cocos2d::Mat4& frameA, - const cocos2d::Mat4& frameB); + const axis::Mat4& frameA, + const axis::Mat4& frameB); /** * set limits @@ -482,9 +482,9 @@ public: float relaxationFactor = 1.0f); /**get A's frame*/ - cocos2d::Mat4 getAFrame() const; + axis::Mat4 getAFrame() const; /**get B's frame*/ - cocos2d::Mat4 getBFrame() const; + axis::Mat4 getBFrame() const; /**get swing span1*/ float getSwingSpan1() const; @@ -520,16 +520,16 @@ public: void setMotorTargetInConstraintSpace(const btQuaternion& q); /**get point for angle*/ - cocos2d::Vec3 GetPointForAngle(float fAngleInRadians, float fLength) const; + axis::Vec3 GetPointForAngle(float fAngleInRadians, float fLength) const; /**set A and B's frame*/ - virtual void setFrames(const cocos2d::Mat4& frameA, const cocos2d::Mat4& frameB); + virtual void setFrames(const axis::Mat4& frameA, const axis::Mat4& frameB); /**get A's frame offset*/ - cocos2d::Mat4 getFrameOffsetA() const; + axis::Mat4 getFrameOffsetA() const; /**get B's frame offset*/ - cocos2d::Mat4 getFrameOffsetB() const; + axis::Mat4 getFrameOffsetB() const; Physics3DConeTwistConstraint() { _type = ConstraintType::CONE_TWIST; } virtual ~Physics3DConeTwistConstraint() {} @@ -557,8 +557,8 @@ public: */ static Physics3D6DofConstraint* create(Physics3DRigidBody* rbA, Physics3DRigidBody* rbB, - const cocos2d::Mat4& frameInA, - const cocos2d::Mat4& frameInB, + const axis::Mat4& frameInA, + const axis::Mat4& frameInB, bool useLinearReferenceFrameA); /** @@ -568,32 +568,32 @@ public: * @param useLinearReferenceFrameB use fixed frame B for linear limits */ static Physics3D6DofConstraint* create(Physics3DRigidBody* rbB, - const cocos2d::Mat4& frameInB, + const axis::Mat4& frameInB, bool useLinearReferenceFrameB); /**set linear lower limit*/ - void setLinearLowerLimit(const cocos2d::Vec3& linearLower); + void setLinearLowerLimit(const axis::Vec3& linearLower); /**get linear lower limit*/ - cocos2d::Vec3 getLinearLowerLimit() const; + axis::Vec3 getLinearLowerLimit() const; /**set linear upper limit*/ - void setLinearUpperLimit(const cocos2d::Vec3& linearUpper); + void setLinearUpperLimit(const axis::Vec3& linearUpper); /**get linear upper limit*/ - cocos2d::Vec3 getLinearUpperLimit() const; + axis::Vec3 getLinearUpperLimit() const; /**set angular lower limit*/ - void setAngularLowerLimit(const cocos2d::Vec3& angularLower); + void setAngularLowerLimit(const axis::Vec3& angularLower); /**get angular lower limit*/ - cocos2d::Vec3 getAngularLowerLimit() const; + axis::Vec3 getAngularLowerLimit() const; /**set angular upper limit*/ - void setAngularUpperLimit(const cocos2d::Vec3& angularUpper); + void setAngularUpperLimit(const axis::Vec3& angularUpper); /**get angular upper limit*/ - cocos2d::Vec3 getAngularUpperLimit() const; + axis::Vec3 getAngularUpperLimit() const; /** * is limited? @@ -613,7 +613,7 @@ public: // end of 3d group /// @} -NS_CC_END +NS_AX_END # endif // CC_ENABLE_BULLET_INTEGRATION diff --git a/core/physics3d/CCPhysics3DDebugDrawer.cpp b/core/physics3d/CCPhysics3DDebugDrawer.cpp index ef38037ba3..1f9f336742 100644 --- a/core/physics3d/CCPhysics3DDebugDrawer.cpp +++ b/core/physics3d/CCPhysics3DDebugDrawer.cpp @@ -38,7 +38,7 @@ # if (CC_ENABLE_BULLET_INTEGRATION) -NS_CC_BEGIN +NS_AX_BEGIN void Physics3DDebugDrawer::drawLine(const btVector3& from, const btVector3& to, const btVector3& color) { @@ -170,7 +170,7 @@ void Physics3DDebugDrawer::clear() _buffer.clear(); } -NS_CC_END +NS_AX_END # endif // CC_ENABLE_BULLET_INTEGRATION diff --git a/core/physics3d/CCPhysics3DDebugDrawer.h b/core/physics3d/CCPhysics3DDebugDrawer.h index ba2df24bcb..69ad88b7e0 100644 --- a/core/physics3d/CCPhysics3DDebugDrawer.h +++ b/core/physics3d/CCPhysics3DDebugDrawer.h @@ -39,7 +39,7 @@ # if (CC_ENABLE_BULLET_INTEGRATION) # include "bullet/LinearMath/btIDebugDraw.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup _3d @@ -55,7 +55,7 @@ public: Physics3DDebugDrawer(); virtual ~Physics3DDebugDrawer(); - void draw(cocos2d::Renderer* renderer); + void draw(axis::Renderer* renderer); // override function virtual void drawLine(const btVector3& from, const btVector3& to, const btVector3& color) override; @@ -79,16 +79,16 @@ protected: protected: struct V3F_V4F { - cocos2d::Vec3 vertex; - cocos2d::Vec4 color; + axis::Vec3 vertex; + axis::Vec4 color; }; std::vector _buffer; - cocos2d::backend::UniformLocation _locMVP; + axis::backend::UniformLocation _locMVP; - cocos2d::BlendFunc _blendFunc = BlendFunc::DISABLE; - cocos2d::CustomCommand _customCommand; - cocos2d::backend::ProgramState* _programState = nullptr; + axis::BlendFunc _blendFunc = BlendFunc::DISABLE; + axis::CustomCommand _customCommand; + axis::backend::ProgramState* _programState = nullptr; bool _dirty = true; int _debugMode = DBG_DrawWireframe | DBG_DrawConstraints | DBG_DrawConstraintLimits; @@ -100,7 +100,7 @@ private: // end of 3d group /// @} -NS_CC_END +NS_AX_END # endif // CC_ENABLE_BULLET_INTEGRATION diff --git a/core/physics3d/CCPhysics3DObject.cpp b/core/physics3d/CCPhysics3DObject.cpp index a02a0a0cc0..366ffd4647 100644 --- a/core/physics3d/CCPhysics3DObject.cpp +++ b/core/physics3d/CCPhysics3DObject.cpp @@ -33,7 +33,7 @@ # include "bullet/btBulletCollisionCommon.h" # include "bullet/btBulletDynamicsCommon.h" -NS_CC_BEGIN +NS_AX_BEGIN Physics3DRigidBody::Physics3DRigidBody() : _btRigidBody(nullptr), _physics3DShape(nullptr) {} @@ -99,37 +99,37 @@ void Physics3DRigidBody::setActive(bool active) } } -void Physics3DRigidBody::applyForce(const cocos2d::Vec3& force, const cocos2d::Vec3& rel_pos) +void Physics3DRigidBody::applyForce(const axis::Vec3& force, const axis::Vec3& rel_pos) { _btRigidBody->applyForce(convertVec3TobtVector3(force), convertVec3TobtVector3(rel_pos)); } -void Physics3DRigidBody::setLinearVelocity(const cocos2d::Vec3& lin_vel) +void Physics3DRigidBody::setLinearVelocity(const axis::Vec3& lin_vel) { _btRigidBody->setLinearVelocity(convertVec3TobtVector3(lin_vel)); } -void Physics3DRigidBody::applyCentralForce(const cocos2d::Vec3& force) +void Physics3DRigidBody::applyCentralForce(const axis::Vec3& force) { _btRigidBody->applyCentralForce(convertVec3TobtVector3(force)); } -void Physics3DRigidBody::applyCentralImpulse(const cocos2d::Vec3& impulse) +void Physics3DRigidBody::applyCentralImpulse(const axis::Vec3& impulse) { _btRigidBody->applyCentralImpulse(convertVec3TobtVector3(impulse)); } -void Physics3DRigidBody::applyTorque(const cocos2d::Vec3& torque) +void Physics3DRigidBody::applyTorque(const axis::Vec3& torque) { _btRigidBody->applyTorque(convertVec3TobtVector3(torque)); } -void Physics3DRigidBody::applyTorqueImpulse(const cocos2d::Vec3& torque) +void Physics3DRigidBody::applyTorqueImpulse(const axis::Vec3& torque) { _btRigidBody->applyTorqueImpulse(convertVec3TobtVector3(torque)); } -void Physics3DRigidBody::applyImpulse(const cocos2d::Vec3& impulse, const cocos2d::Vec3& rel_pos) +void Physics3DRigidBody::applyImpulse(const axis::Vec3& impulse, const axis::Vec3& rel_pos) { _btRigidBody->applyImpulse(convertVec3TobtVector3(impulse), convertVec3TobtVector3(rel_pos)); } @@ -139,22 +139,22 @@ void Physics3DRigidBody::applyDamping(float timeStep) _btRigidBody->applyDamping(timeStep); } -cocos2d::Vec3 Physics3DRigidBody::getLinearVelocity() const +axis::Vec3 Physics3DRigidBody::getLinearVelocity() const { return convertbtVector3ToVec3(_btRigidBody->getLinearVelocity()); } -void Physics3DRigidBody::setLinearFactor(const cocos2d::Vec3& linearFactor) +void Physics3DRigidBody::setLinearFactor(const axis::Vec3& linearFactor) { _btRigidBody->setLinearFactor(convertVec3TobtVector3(linearFactor)); } -cocos2d::Vec3 Physics3DRigidBody::getLinearFactor() const +axis::Vec3 Physics3DRigidBody::getLinearFactor() const { return convertbtVector3ToVec3(_btRigidBody->getLinearFactor()); } -void Physics3DRigidBody::setAngularFactor(const cocos2d::Vec3& angFac) +void Physics3DRigidBody::setAngularFactor(const axis::Vec3& angFac) { _btRigidBody->setAngularFactor(convertVec3TobtVector3(angFac)); } @@ -164,27 +164,27 @@ void Physics3DRigidBody::setAngularFactor(float angFac) _btRigidBody->setAngularFactor(angFac); } -cocos2d::Vec3 Physics3DRigidBody::getAngularFactor() const +axis::Vec3 Physics3DRigidBody::getAngularFactor() const { return convertbtVector3ToVec3(_btRigidBody->getAngularFactor()); } -void Physics3DRigidBody::setAngularVelocity(const cocos2d::Vec3& ang_vel) +void Physics3DRigidBody::setAngularVelocity(const axis::Vec3& ang_vel) { _btRigidBody->setAngularVelocity(convertVec3TobtVector3(ang_vel)); } -cocos2d::Vec3 Physics3DRigidBody::getAngularVelocity() const +axis::Vec3 Physics3DRigidBody::getAngularVelocity() const { return convertbtVector3ToVec3(_btRigidBody->getAngularVelocity()); } -void Physics3DRigidBody::setCenterOfMassTransform(const cocos2d::Mat4& xform) +void Physics3DRigidBody::setCenterOfMassTransform(const axis::Mat4& xform) { _btRigidBody->setCenterOfMassTransform(convertMat4TobtTransform(xform)); } -cocos2d::Mat4 Physics3DRigidBody::getCenterOfMassTransform() const +axis::Mat4 Physics3DRigidBody::getCenterOfMassTransform() const { return convertbtTransformToMat4(_btRigidBody->getCenterOfMassTransform()); } @@ -204,27 +204,27 @@ float Physics3DRigidBody::getAngularDamping() const return _btRigidBody->getAngularDamping(); } -void Physics3DRigidBody::setGravity(const cocos2d::Vec3& acceleration) +void Physics3DRigidBody::setGravity(const axis::Vec3& acceleration) { _btRigidBody->setGravity(convertVec3TobtVector3(acceleration)); } -cocos2d::Vec3 Physics3DRigidBody::getGravity() const +axis::Vec3 Physics3DRigidBody::getGravity() const { return convertbtVector3ToVec3(_btRigidBody->getGravity()); } -void Physics3DRigidBody::setInvInertiaDiagLocal(const cocos2d::Vec3& diagInvInertia) +void Physics3DRigidBody::setInvInertiaDiagLocal(const axis::Vec3& diagInvInertia) { _btRigidBody->setInvInertiaDiagLocal(convertVec3TobtVector3(diagInvInertia)); } -cocos2d::Vec3 Physics3DRigidBody::getInvInertiaDiagLocal() const +axis::Vec3 Physics3DRigidBody::getInvInertiaDiagLocal() const { return convertbtVector3ToVec3(_btRigidBody->getInvInertiaDiagLocal()); } -void Physics3DRigidBody::setMassProps(float mass, const cocos2d::Vec3& inertia) +void Physics3DRigidBody::setMassProps(float mass, const axis::Vec3& inertia) { _btRigidBody->setMassProps(mass, convertVec3TobtVector3(inertia)); } @@ -234,12 +234,12 @@ float Physics3DRigidBody::getInvMass() const return _btRigidBody->getInvMass(); } -cocos2d::Vec3 Physics3DRigidBody::getTotalForce() const +axis::Vec3 Physics3DRigidBody::getTotalForce() const { return convertbtVector3ToVec3(_btRigidBody->getTotalForce()); } -cocos2d::Vec3 Physics3DRigidBody::getTotalTorque() const +axis::Vec3 Physics3DRigidBody::getTotalTorque() const { return convertbtVector3ToVec3(_btRigidBody->getTotalTorque()); } @@ -341,7 +341,7 @@ unsigned int Physics3DRigidBody::getConstraintCount() const return (unsigned int)_constraintList.size(); } -cocos2d::Mat4 Physics3DRigidBody::getWorldTransform() const +axis::Mat4 Physics3DRigidBody::getWorldTransform() const { const auto& transform = _btRigidBody->getWorldTransform(); return convertbtTransformToMat4(transform); @@ -544,12 +544,12 @@ bool Physics3DCollider::init(Physics3DColliderDes* info) return true; } -cocos2d::Mat4 Physics3DCollider::getWorldTransform() const +axis::Mat4 Physics3DCollider::getWorldTransform() const { return convertbtTransformToMat4(_btGhostObject->getWorldTransform()); } -NS_CC_END +NS_AX_END # endif // CC_ENABLE_BULLET_INTEGRATION diff --git a/core/physics3d/CCPhysics3DObject.h b/core/physics3d/CCPhysics3DObject.h index 79b613b23f..a929fba0b9 100644 --- a/core/physics3d/CCPhysics3DObject.h +++ b/core/physics3d/CCPhysics3DObject.h @@ -41,7 +41,7 @@ class btRigidBody; class btPersistentManifold; class btGhostObject; -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup _3d * @{ @@ -100,7 +100,7 @@ public: Physics3DWorld* getPhysicsWorld() const { return _physicsWorld; } /** Get the world matrix of Physics3DObject. */ - virtual cocos2d::Mat4 getWorldTransform() const = 0; + virtual axis::Mat4 getWorldTransform() const = 0; /** Set the collision callback function. */ void setCollisionCallback(const CollisionCallbackFunc& func) { _collisionCallbackFunc = func; }; @@ -137,9 +137,9 @@ protected: struct CC_DLL Physics3DRigidBodyDes { float mass; // Note: mass equals zero means static, default 0 - cocos2d::Vec3 localInertia; // default (0, 0, 0) + axis::Vec3 localInertia; // default (0, 0, 0) Physics3DShape* shape; - cocos2d::Mat4 originalTransform; + axis::Mat4 originalTransform; bool disableSleep; // it is always active if disabled Physics3DRigidBodyDes() : mass(0.f), localInertia(0.f, 0.f, 0.f), shape(nullptr), disableSleep(false) {} @@ -169,35 +169,35 @@ public: * @param force the value of the force * @param rel_pos the position of the force */ - void applyForce(const cocos2d::Vec3& force, const cocos2d::Vec3& rel_pos); + void applyForce(const axis::Vec3& force, const axis::Vec3& rel_pos); /** * Apply a central force. * * @param force the value of the force */ - void applyCentralForce(const cocos2d::Vec3& force); + void applyCentralForce(const axis::Vec3& force); /** * Apply a central impulse. * * @param impulse the value of the impulse */ - void applyCentralImpulse(const cocos2d::Vec3& impulse); + void applyCentralImpulse(const axis::Vec3& impulse); /** * Apply a torque. * * @param torque the value of the torque */ - void applyTorque(const cocos2d::Vec3& torque); + void applyTorque(const axis::Vec3& torque); /** * Apply a torque impulse. * * @param torque the value of the torque */ - void applyTorqueImpulse(const cocos2d::Vec3& torque); + void applyTorqueImpulse(const axis::Vec3& torque); /** * Apply a impulse. @@ -205,43 +205,43 @@ public: * @param impulse the value of the impulse * @param rel_pos the position of the impulse */ - void applyImpulse(const cocos2d::Vec3& impulse, const cocos2d::Vec3& rel_pos); + void applyImpulse(const axis::Vec3& impulse, const axis::Vec3& rel_pos); /** Damps the velocity, using the given linearDamping and angularDamping. */ void applyDamping(float timeStep); /** Set the linear velocity. */ - void setLinearVelocity(const cocos2d::Vec3& lin_vel); + void setLinearVelocity(const axis::Vec3& lin_vel); /** Get the linear velocity. */ - cocos2d::Vec3 getLinearVelocity() const; + axis::Vec3 getLinearVelocity() const; /** Set the linear factor. */ - void setLinearFactor(const cocos2d::Vec3& linearFactor); + void setLinearFactor(const axis::Vec3& linearFactor); /** Get the linear factor. */ - cocos2d::Vec3 getLinearFactor() const; + axis::Vec3 getLinearFactor() const; /** Set the angular factor. */ - void setAngularFactor(const cocos2d::Vec3& angFac); + void setAngularFactor(const axis::Vec3& angFac); /** Set the angular factor, use unified factor. */ void setAngularFactor(float angFac); /** Get the angular factor. */ - cocos2d::Vec3 getAngularFactor() const; + axis::Vec3 getAngularFactor() const; /** Set the angular velocity. */ - void setAngularVelocity(const cocos2d::Vec3& ang_vel); + void setAngularVelocity(const axis::Vec3& ang_vel); /** Get the angular velocity. */ - cocos2d::Vec3 getAngularVelocity() const; + axis::Vec3 getAngularVelocity() const; /** Set the center of mass. */ - void setCenterOfMassTransform(const cocos2d::Mat4& xform); + void setCenterOfMassTransform(const axis::Mat4& xform); /** Get the center of mass. */ - cocos2d::Mat4 getCenterOfMassTransform() const; + axis::Mat4 getCenterOfMassTransform() const; /** Set linear damping and angular damping. */ void setDamping(float lin_damping, float ang_damping); @@ -253,28 +253,28 @@ public: float getAngularDamping() const; /** Set the acceleration. */ - void setGravity(const cocos2d::Vec3& acceleration); + void setGravity(const axis::Vec3& acceleration); /** Get the acceleration. */ - cocos2d::Vec3 getGravity() const; + axis::Vec3 getGravity() const; /** Set the inverse of local inertia. */ - void setInvInertiaDiagLocal(const cocos2d::Vec3& diagInvInertia); + void setInvInertiaDiagLocal(const axis::Vec3& diagInvInertia); /** Get the inverse of local inertia. */ - cocos2d::Vec3 getInvInertiaDiagLocal() const; + axis::Vec3 getInvInertiaDiagLocal() const; /** Set mass and inertia. */ - void setMassProps(float mass, const cocos2d::Vec3& inertia); + void setMassProps(float mass, const axis::Vec3& inertia); /** Get inverse of mass. */ float getInvMass() const; /** Get total force. */ - cocos2d::Vec3 getTotalForce() const; + axis::Vec3 getTotalForce() const; /** Get total torque. */ - cocos2d::Vec3 getTotalTorque() const; + axis::Vec3 getTotalTorque() const; /** Set restitution. */ void setRestitution(float rest); @@ -320,7 +320,7 @@ public: bool isKinematic() const; /** override. */ - virtual cocos2d::Mat4 getWorldTransform() const override; + virtual axis::Mat4 getWorldTransform() const override; /** Get constraint by index. */ Physics3DConstraint* getConstraint(unsigned int idx) const; @@ -354,7 +354,7 @@ struct CC_DLL Physics3DColliderDes /**shape pointer*/ Physics3DShape* shape; /**original world Transform*/ - cocos2d::Mat4 originalTransform; + axis::Mat4 originalTransform; /**Is collider a trigger?*/ bool isTrigger; /**the friction*/ @@ -472,7 +472,7 @@ public: float getCcdSweptSphereRadius() const; /** override. */ - virtual cocos2d::Mat4 getWorldTransform() const; + virtual axis::Mat4 getWorldTransform() const; /** Set a callback when trigger enter. */ std::function onTriggerEnter; @@ -493,7 +493,7 @@ protected: // end of 3d group /// @} -NS_CC_END +NS_AX_END # endif // CC_ENABLE_BULLET_INTEGRATION diff --git a/core/physics3d/CCPhysics3DShape.cpp b/core/physics3d/CCPhysics3DShape.cpp index 22b8fa6b9e..cef34c3717 100644 --- a/core/physics3d/CCPhysics3DShape.cpp +++ b/core/physics3d/CCPhysics3DShape.cpp @@ -30,7 +30,7 @@ # if (CC_ENABLE_BULLET_INTEGRATION) # include "bullet/BulletCollision/CollisionShapes/btHeightfieldTerrainShape.h" -NS_CC_BEGIN +NS_AX_BEGIN Physics3DShape::ShapeType Physics3DShape::getShapeType() const { @@ -57,7 +57,7 @@ Physics3DShape::~Physics3DShape() # endif } -Physics3DShape* Physics3DShape::createBox(const cocos2d::Vec3& extent) +Physics3DShape* Physics3DShape::createBox(const axis::Vec3& extent) { auto shape = new Physics3DShape(); shape->initBox(extent); @@ -89,7 +89,7 @@ Physics3DShape* Physics3DShape::createCapsule(float radius, float height) return shape; } -Physics3DShape* Physics3DShape::createConvexHull(const cocos2d::Vec3* points, int numPoints) +Physics3DShape* Physics3DShape::createConvexHull(const axis::Vec3* points, int numPoints) { auto shape = new Physics3DShape(); shape->initConvexHull(points, numPoints); @@ -97,7 +97,7 @@ Physics3DShape* Physics3DShape::createConvexHull(const cocos2d::Vec3* points, in return shape; } -Physics3DShape* Physics3DShape::createMesh(const cocos2d::Vec3* triangles, int numTriangles) +Physics3DShape* Physics3DShape::createMesh(const axis::Vec3* triangles, int numTriangles) { auto shape = new Physics3DShape(); shape->initMesh(triangles, numTriangles); @@ -130,7 +130,7 @@ Physics3DShape* Physics3DShape::createCompoundShape(const std::vectorgetShapeType() != Physics3DShape::ShapeType::HEIGHT_FIELD && @@ -421,7 +421,7 @@ void Physics3DWorld::setGhostPairCallback() } } -NS_CC_END +NS_AX_END # endif // CC_ENABLE_BULLET_INTEGRATION diff --git a/core/physics3d/CCPhysics3DWorld.h b/core/physics3d/CCPhysics3DWorld.h index 927df98c25..542e2c0186 100644 --- a/core/physics3d/CCPhysics3DWorld.h +++ b/core/physics3d/CCPhysics3DWorld.h @@ -43,7 +43,7 @@ class btGhostPairCallback; class btRigidBody; class btCollisionObject; -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup _3d * @{ @@ -62,11 +62,11 @@ class Renderer; struct CC_DLL Physics3DWorldDes { bool isDebugDrawEnabled; // using physics debug draw?, false by default - cocos2d::Vec3 gravity; // gravity, (0, -9.8, 0) + axis::Vec3 gravity; // gravity, (0, -9.8, 0) Physics3DWorldDes() { isDebugDrawEnabled = false; - gravity = cocos2d::Vec3(0.f, -9.8f, 0.f); + gravity = axis::Vec3(0.f, -9.8f, 0.f); } }; @@ -81,8 +81,8 @@ class CC_DLL Physics3DWorld : public Ref public: struct HitResult { - cocos2d::Vec3 hitPosition; - cocos2d::Vec3 hitNormal; + axis::Vec3 hitPosition; + axis::Vec3 hitNormal; Physics3DObject* hitObj; }; @@ -127,7 +127,7 @@ public: bool isDebugDrawEnabled() const; /** Internal method, the updater of debug drawing, need called each frame. */ - void debugDraw(cocos2d::Renderer* renderer); + void debugDraw(axis::Renderer* renderer); /** Get the list of Physics3DObjects. */ const std::vector& getPhysicsObjects() const { return _objects; } @@ -138,12 +138,12 @@ public: * @param endPos The end position of ray. * @param result the result of ray cast. */ - bool rayCast(const cocos2d::Vec3& startPos, const cocos2d::Vec3& endPos, HitResult* result); + bool rayCast(const axis::Vec3& startPos, const axis::Vec3& endPos, HitResult* result); /** Performs a swept shape cast on all objects in the Physics3DWorld. */ bool sweepShape(Physics3DShape* shape, - const cocos2d::Mat4& startTransform, - const cocos2d::Mat4& endTransform, + const axis::Mat4& startTransform, + const axis::Mat4& endTransform, HitResult* result); Physics3DWorld(); @@ -180,7 +180,7 @@ protected: // end of 3d group /// @} -NS_CC_END +NS_AX_END # endif diff --git a/core/physics3d/CCPhysicsMeshRenderer.cpp b/core/physics3d/CCPhysicsMeshRenderer.cpp index 70ffc7d71b..5fdef7d474 100644 --- a/core/physics3d/CCPhysicsMeshRenderer.cpp +++ b/core/physics3d/CCPhysicsMeshRenderer.cpp @@ -29,12 +29,12 @@ # if (CC_ENABLE_BULLET_INTEGRATION) -NS_CC_BEGIN +NS_AX_BEGIN PhysicsMeshRenderer* PhysicsMeshRenderer::create(std::string_view modelPath, Physics3DRigidBodyDes* rigidDes, - const cocos2d::Vec3& translateInPhysics, - const cocos2d::Quaternion& rotInPhsyics) + const axis::Vec3& translateInPhysics, + const axis::Quaternion& rotInPhsyics) { auto ret = new PhysicsMeshRenderer(); if (ret->initWithFile(modelPath)) @@ -52,8 +52,8 @@ PhysicsMeshRenderer* PhysicsMeshRenderer::create(std::string_view modelPath, PhysicsMeshRenderer* PhysicsMeshRenderer::createWithCollider(std::string_view modelPath, Physics3DColliderDes* colliderDes, - const cocos2d::Vec3& translateInPhysics, - const cocos2d::Quaternion& rotInPhsyics) + const axis::Vec3& translateInPhysics, + const axis::Quaternion& rotInPhsyics) { auto ret = new PhysicsMeshRenderer(); if (ret->initWithFile(modelPath)) @@ -95,7 +95,7 @@ void PhysicsMeshRenderer::syncPhysicsToNode() PhysicsMeshRenderer::PhysicsMeshRenderer() : _physicsComponent(nullptr) {} PhysicsMeshRenderer::~PhysicsMeshRenderer() {} -NS_CC_END +NS_AX_END # endif // CC_ENABLE_BULLET_INTEGRATION diff --git a/core/physics3d/CCPhysicsMeshRenderer.h b/core/physics3d/CCPhysicsMeshRenderer.h index 7833e86d29..f0bfdb6a4e 100644 --- a/core/physics3d/CCPhysicsMeshRenderer.h +++ b/core/physics3d/CCPhysicsMeshRenderer.h @@ -35,7 +35,7 @@ # if (CC_ENABLE_BULLET_INTEGRATION) -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup _3d * @{ @@ -44,20 +44,20 @@ NS_CC_BEGIN /** * @brief Convenient class to create a rigid body with a MeshRenderer */ -class CC_DLL PhysicsMeshRenderer : public cocos2d::MeshRenderer +class CC_DLL PhysicsMeshRenderer : public axis::MeshRenderer { public: /** creates a PhysicsMeshRenderer */ static PhysicsMeshRenderer* create(std::string_view modelPath, Physics3DRigidBodyDes* rigidDes, - const cocos2d::Vec3& translateInPhysics = cocos2d::Vec3::ZERO, - const cocos2d::Quaternion& rotInPhsyics = cocos2d::Quaternion::ZERO); + const axis::Vec3& translateInPhysics = axis::Vec3::ZERO, + const axis::Quaternion& rotInPhsyics = axis::Quaternion::ZERO); /** creates a PhysicsMeshRenderer with a collider */ static PhysicsMeshRenderer* createWithCollider(std::string_view modelPath, Physics3DColliderDes* colliderDes, - const cocos2d::Vec3& translateInPhysics = cocos2d::Vec3::ZERO, - const cocos2d::Quaternion& rotInPhsyics = cocos2d::Quaternion::ZERO); + const axis::Vec3& translateInPhysics = axis::Vec3::ZERO, + const axis::Quaternion& rotInPhsyics = axis::Quaternion::ZERO); /** Get the Physics3DObject. */ Physics3DObject* getPhysicsObj() const; @@ -80,7 +80,7 @@ protected: // end of 3d group /// @} -NS_CC_END +NS_AX_END # endif // CC_ENABLE_BULLET_INTEGRATION diff --git a/core/platform/CCApplicationProtocol.h b/core/platform/CCApplicationProtocol.h index 6c381e63ea..35bbc95631 100644 --- a/core/platform/CCApplicationProtocol.h +++ b/core/platform/CCApplicationProtocol.h @@ -31,7 +31,7 @@ THE SOFTWARE. #include "base/CCAutoreleasePool.h" #include "base/ccTypes.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup platform @@ -147,6 +147,6 @@ public: // end of platform group /** @} */ -NS_CC_END +NS_AX_END #endif // __CC_APPLICATION_PROTOCOL_H__ diff --git a/core/platform/CCCommon.h b/core/platform/CCCommon.h index a5cc5f4c7e..7a182cc8b7 100644 --- a/core/platform/CCCommon.h +++ b/core/platform/CCCommon.h @@ -30,7 +30,7 @@ THE SOFTWARE. #include "platform/CCPlatformMacros.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup platform @@ -77,7 +77,7 @@ enum class LanguageType // END of platform group /// @} -NS_CC_END +NS_AX_END /// @endcond #endif // __CC_COMMON_H__ diff --git a/core/platform/CCDevice.h b/core/platform/CCDevice.h index 190b100f8f..0e24daee81 100644 --- a/core/platform/CCDevice.h +++ b/core/platform/CCDevice.h @@ -31,7 +31,7 @@ THE SOFTWARE. #include "base/ccMacros.h" #include "base/CCData.h" -NS_CC_BEGIN +NS_AX_BEGIN struct FontDefinition; @@ -110,6 +110,6 @@ private: // end group /// @} -NS_CC_END +NS_AX_END #endif /* __CCDEVICE_H__ */ diff --git a/core/platform/CCFileStream.cpp b/core/platform/CCFileStream.cpp index e25afeb35c..372471fd6c 100644 --- a/core/platform/CCFileStream.cpp +++ b/core/platform/CCFileStream.cpp @@ -2,6 +2,6 @@ // Copyright (c) 2020 C4games Ltd #include "platform/CCFileStream.h" -NS_CC_BEGIN +NS_AX_BEGIN -NS_CC_END +NS_AX_END diff --git a/core/platform/CCFileStream.h b/core/platform/CCFileStream.h index 0b56fdaa9f..9221a9b196 100644 --- a/core/platform/CCFileStream.h +++ b/core/platform/CCFileStream.h @@ -7,7 +7,7 @@ #include "platform/CCPlatformConfig.h" #include "platform/CCPlatformMacros.h" -NS_CC_BEGIN +NS_AX_BEGIN class CC_DLL FileStream { @@ -84,4 +84,4 @@ protected: FileStream(){}; }; -NS_CC_END \ No newline at end of file +NS_AX_END \ No newline at end of file diff --git a/core/platform/CCFileUtils.cpp b/core/platform/CCFileUtils.cpp index 45a05eb46a..b497a1c83f 100644 --- a/core/platform/CCFileUtils.cpp +++ b/core/platform/CCFileUtils.cpp @@ -67,7 +67,7 @@ inline stdfs::path toFspath(const std::string_view& pathSV) } # endif -NS_CC_BEGIN +NS_AX_BEGIN // Implement DictMaker @@ -1461,4 +1461,4 @@ void FileUtils::valueMapCompact(ValueMap& /*valueMap*/) const {} void FileUtils::valueVectorCompact(ValueVector& /*valueVector*/) const {} -NS_CC_END +NS_AX_END diff --git a/core/platform/CCFileUtils.h b/core/platform/CCFileUtils.h index 091220ea31..bf663662af 100644 --- a/core/platform/CCFileUtils.h +++ b/core/platform/CCFileUtils.h @@ -45,7 +45,7 @@ THE SOFTWARE. #define AX_PC_RESOURCES_DIR "Resources/" #define AX_PC_RESOURCES_DIR_LEN (sizeof("Resources/") - 1) -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup platform @@ -187,7 +187,7 @@ public: * - does not truncate the string when '\0' is found (returned string of getContents may have '\0' in the * middle.). * - * The template version of can accept cocos2d::Data, std::basic_string and std::vector. + * The template version of can accept axis::Data, std::basic_string and std::vector. * * @code * std::string sbuf; @@ -208,7 +208,7 @@ public: * code. * * @code - * NS_CC_BEGIN // ResizableBufferAdapter needed in cocos2d namespace. + * NS_AX_BEGIN // ResizableBufferAdapter needed in cocos2d namespace. * template<> * class ResizableBufferAdapter : public ResizableBuffer { * public: @@ -221,7 +221,7 @@ public: * virtual void* buffer() const override { * // your code here * } - * NS_CC_END + * NS_AX_END * @endcode * * @param[in] filename The resource file name which contains the path. @@ -941,6 +941,6 @@ protected: // end of support group /** @} */ -NS_CC_END +NS_AX_END #endif // __CC_FILEUTILS_H__ diff --git a/core/platform/CCGLView.cpp b/core/platform/CCGLView.cpp index 9a870fc98f..2e83e466d6 100644 --- a/core/platform/CCGLView.cpp +++ b/core/platform/CCGLView.cpp @@ -33,7 +33,7 @@ THE SOFTWARE. #include "2d/CCScene.h" #include "renderer/CCRenderer.h" -NS_CC_BEGIN +NS_AX_BEGIN namespace { @@ -497,4 +497,4 @@ void GLView::renderScene(Scene* scene, Renderer* renderer) scene->render(renderer, Mat4::IDENTITY, nullptr); } -NS_CC_END +NS_AX_END diff --git a/core/platform/CCGLView.h b/core/platform/CCGLView.h index 3df09bf139..edc6e2cf27 100644 --- a/core/platform/CCGLView.h +++ b/core/platform/CCGLView.h @@ -96,7 +96,7 @@ struct GLContextAttrs #endif }; -NS_CC_BEGIN +NS_AX_BEGIN class Scene; class Renderer; @@ -453,6 +453,6 @@ protected: // end of platform group /// @} -NS_CC_END +NS_AX_END #endif /* __CCGLVIEW_H__ */ diff --git a/core/platform/CCImage.cpp b/core/platform/CCImage.cpp index d144648300..c47a0adb79 100644 --- a/core/platform/CCImage.cpp +++ b/core/platform/CCImage.cpp @@ -132,7 +132,7 @@ struct dirent* readdir$INODE64(DIR* dir) #endif -NS_CC_BEGIN +NS_AX_BEGIN ////////////////////////////////////////////////////////////////////////// // struct and data for pvr structure @@ -2517,4 +2517,4 @@ void Image::reversePremultipliedAlpha() _hasPremultipliedAlpha = false; } -NS_CC_END +NS_AX_END diff --git a/core/platform/CCImage.h b/core/platform/CCImage.h index 876f42905b..b1b3196c05 100644 --- a/core/platform/CCImage.h +++ b/core/platform/CCImage.h @@ -40,7 +40,7 @@ THE SOFTWARE. ((unsigned)((uint8_t)(vg) * ((uint8_t)(va) + 1) >> 8) << 8) | \ ((unsigned)((uint8_t)(vb) * ((uint8_t)(va) + 1) >> 8) << 16) | ((unsigned)(uint8_t)(va) << 24)) -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup platform @@ -267,6 +267,6 @@ protected: // end of platform group /// @} -NS_CC_END +NS_AX_END #endif // __CC_IMAGE_H__ diff --git a/core/platform/CCPlatformMacros.h b/core/platform/CCPlatformMacros.h index 746cde38d2..d29e60d8d6 100644 --- a/core/platform/CCPlatformMacros.h +++ b/core/platform/CCPlatformMacros.h @@ -105,21 +105,24 @@ Copyright (c) 2021 Bytedance Inc. // Generic macros -/// @name namespace cocos2d +/// @name namespace axis /// @{ #ifdef __cplusplus -# define NS_CC_BEGIN \ - namespace cocos2d \ +# define NS_AX_BEGIN \ + namespace axis \ { -# define NS_CC_END } -# define USING_NS_CC using namespace cocos2d -# define NS_CC ::cocos2d +# define NS_AX_END } +# define USING_NS_AX using namespace axis +# define NS_AX ::axis #else -# define NS_CC_BEGIN -# define NS_CC_END -# define USING_NS_CC -# define NS_CC +# define NS_AX_BEGIN +# define NS_AX_END +# define USING_NS_AX +# define NS_AX #endif + +namespace axis {} +namespace ax = axis; // end of namespace group /// @} @@ -297,7 +300,7 @@ public: \ break #define __CCLOGWITHFUNCTION(s, ...) \ - cocos2d::log("%s : %s", __FUNCTION__, cocos2d::StringUtils::format(s, ##__VA_ARGS__).c_str()) + axis::log("%s : %s", __FUNCTION__, axis::StringUtils::format(s, ##__VA_ARGS__).c_str()) /// @name Cocos2d debug /// @{ @@ -320,8 +323,8 @@ public: \ } while (0) #elif COCOS2D_DEBUG == 1 -# define CCLOG(format, ...) cocos2d::log(format, ##__VA_ARGS__) -# define CCLOGERROR(format, ...) cocos2d::log(format, ##__VA_ARGS__) +# define CCLOG(format, ...) axis::log(format, ##__VA_ARGS__) +# define CCLOGERROR(format, ...) axis::log(format, ##__VA_ARGS__) # define CCLOGINFO(format, ...) \ do \ { \ @@ -329,9 +332,9 @@ public: \ # define CCLOGWARN(...) __CCLOGWITHFUNCTION(__VA_ARGS__) #elif COCOS2D_DEBUG > 1 -# define CCLOG(format, ...) cocos2d::log(format, ##__VA_ARGS__) -# define CCLOGERROR(format, ...) cocos2d::log(format, ##__VA_ARGS__) -# define CCLOGINFO(format, ...) cocos2d::log(format, ##__VA_ARGS__) +# define CCLOG(format, ...) axis::log(format, ##__VA_ARGS__) +# define CCLOGERROR(format, ...) axis::log(format, ##__VA_ARGS__) +# define CCLOGINFO(format, ...) axis::log(format, ##__VA_ARGS__) # define CCLOGWARN(...) __CCLOGWITHFUNCTION(__VA_ARGS__) #endif // COCOS2D_DEBUG @@ -339,7 +342,7 @@ public: \ #if !defined(COCOS2D_DEBUG) || COCOS2D_DEBUG == 0 || CC_LUA_ENGINE_DEBUG == 0 # define LUALOG(...) #else -# define LUALOG(format, ...) cocos2d::log(format, ##__VA_ARGS__) +# define LUALOG(format, ...) axis::log(format, ##__VA_ARGS__) #endif // Lua engine debug // end of debug group diff --git a/core/platform/CCPosixFileStream.cpp b/core/platform/CCPosixFileStream.cpp index e80f1dfd27..83692837ac 100644 --- a/core/platform/CCPosixFileStream.cpp +++ b/core/platform/CCPosixFileStream.cpp @@ -9,7 +9,7 @@ #include #include -NS_CC_BEGIN +NS_AX_BEGIN struct PXIoF { @@ -237,4 +237,4 @@ void PosixFileStream::reset() _iof = nullptr; } -NS_CC_END +NS_AX_END diff --git a/core/platform/CCPosixFileStream.h b/core/platform/CCPosixFileStream.h index a1f8fc9f2c..52804def31 100644 --- a/core/platform/CCPosixFileStream.h +++ b/core/platform/CCPosixFileStream.h @@ -64,7 +64,7 @@ # define posix_fsetsize(fd, size) (::ftruncate(fd, size), ::lseek(fd, 0, SEEK_SET)) #endif -NS_CC_BEGIN +NS_AX_BEGIN struct UnzFileStream; union PXFileHandle @@ -132,4 +132,4 @@ private: const PXIoF* _iof{}; }; -NS_CC_END +NS_AX_END diff --git a/core/platform/CCSAXParser.cpp b/core/platform/CCSAXParser.cpp index 7af489f71f..1819e63df0 100644 --- a/core/platform/CCSAXParser.cpp +++ b/core/platform/CCSAXParser.cpp @@ -31,7 +31,7 @@ #include "platform/CCFileUtils.h" #include "xsbase/xsxml/xsxml.hpp" -NS_CC_BEGIN +NS_AX_BEGIN /// xsxml SAX2 handler class SAX2Hander @@ -157,4 +157,4 @@ void SAXParser::setDelegator(SAXDelegator* delegator) _delegator = delegator; } -NS_CC_END +NS_AX_END diff --git a/core/platform/CCSAXParser.h b/core/platform/CCSAXParser.h index ecb4c7bbe5..2de23a8484 100644 --- a/core/platform/CCSAXParser.h +++ b/core/platform/CCSAXParser.h @@ -30,7 +30,7 @@ #include "platform/CCCommon.h" #include -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup platform @@ -122,7 +122,7 @@ public: // end of platform group /// @} -NS_CC_END +NS_AX_END /// @endcond #endif //__CCSAXPARSER_H__ diff --git a/core/platform/android/CCApplication-android.cpp b/core/platform/android/CCApplication-android.cpp index 49adee96b2..18e52483b4 100644 --- a/core/platform/android/CCApplication-android.cpp +++ b/core/platform/android/CCApplication-android.cpp @@ -45,7 +45,7 @@ extern "C" size_t __ctype_get_mb_cur_max(void) static const char* helperClassName = "org.cocos2dx.lib.Cocos2dxHelper"; -NS_CC_BEGIN +NS_AX_BEGIN // sharedApplication pointer Application* Application::sm_pSharedApplication = nullptr; @@ -126,4 +126,4 @@ bool Application::openURL(std::string_view url) void Application::applicationScreenSizeChanged(int newWidth, int newHeight) {} -NS_CC_END +NS_AX_END diff --git a/core/platform/android/CCApplication-android.h b/core/platform/android/CCApplication-android.h index 8ea2724f74..dfa56b4383 100644 --- a/core/platform/android/CCApplication-android.h +++ b/core/platform/android/CCApplication-android.h @@ -28,7 +28,7 @@ THE SOFTWARE. #include "platform/CCCommon.h" #include "platform/CCApplicationProtocol.h" -NS_CC_BEGIN +NS_AX_BEGIN class CC_DLL Application : public ApplicationProtocol { @@ -103,4 +103,4 @@ protected: static Application* sm_pSharedApplication; }; -NS_CC_END +NS_AX_END diff --git a/core/platform/android/CCCommon-android.cpp b/core/platform/android/CCCommon-android.cpp index 3fd6385288..a3372bb326 100644 --- a/core/platform/android/CCCommon-android.cpp +++ b/core/platform/android/CCCommon-android.cpp @@ -29,9 +29,9 @@ THE SOFTWARE. #include #include -NS_CC_BEGIN +NS_AX_BEGIN -#define MAX_LEN (cocos2d::kMaxLogLen + 1) +#define MAX_LEN (axis::kMaxLogLen + 1) void ccMessageBox(const char* pszMsg, const char* pszTitle) { @@ -43,4 +43,4 @@ void LuaLog(const char* pszFormat) __android_log_write(ANDROID_LOG_DEBUG, "cocos2d-x debug info", pszFormat); } -NS_CC_END +NS_AX_END diff --git a/core/platform/android/CCDevice-android.cpp b/core/platform/android/CCDevice-android.cpp index c61114b0a9..4de8d440e4 100644 --- a/core/platform/android/CCDevice-android.cpp +++ b/core/platform/android/CCDevice-android.cpp @@ -35,7 +35,7 @@ THE SOFTWARE. static const char* helperClassName = "org.cocos2dx.lib.Cocos2dxHelper"; -NS_CC_BEGIN +NS_AX_BEGIN int Device::getDPI() { @@ -184,7 +184,7 @@ void Device::vibrate(float duration) JniHelper::callStaticVoidMethod(helperClassName, "vibrate", duration); } -NS_CC_END +NS_AX_END // this method is called by Cocos2dxBitmap extern "C" { @@ -195,7 +195,7 @@ JNIEXPORT void JNICALL Java_org_cocos2dx_lib_Cocos2dxBitmap_nativeInitBitmapDC(JNIEnv* env, jclass, jint width, jint height, jbyteArray pixels) { int size = width * height * 4; - cocos2d::BitmapDC& bitmapDC = cocos2d::sharedBitmapDC(); + axis::BitmapDC& bitmapDC = axis::sharedBitmapDC(); bitmapDC._width = width; bitmapDC._height = height; bitmapDC._data = (unsigned char*)malloc(sizeof(unsigned char) * size); diff --git a/core/platform/android/CCEnhanceAPI-android.cpp b/core/platform/android/CCEnhanceAPI-android.cpp index b3b3768b80..b42e4740b0 100644 --- a/core/platform/android/CCEnhanceAPI-android.cpp +++ b/core/platform/android/CCEnhanceAPI-android.cpp @@ -31,7 +31,7 @@ //} //#endif -NS_CC_BEGIN +NS_AX_BEGIN EnhanceAPI::EnhanceAPI() {} @@ -96,4 +96,4 @@ int EnhanceAPI::setLowPowerMode(bool enable) } return ret; } -NS_CC_END +NS_AX_END diff --git a/core/platform/android/CCEnhanceAPI-android.h b/core/platform/android/CCEnhanceAPI-android.h index 6d67b2efae..04b7db35a9 100644 --- a/core/platform/android/CCEnhanceAPI-android.h +++ b/core/platform/android/CCEnhanceAPI-android.h @@ -17,7 +17,7 @@ #include "platform/CCCommon.h" #include "platform/CCApplicationProtocol.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * The purpose of Enhance API is to optimize Cocos2D-X game engine special for Samsung products. @@ -92,4 +92,4 @@ public: static int setLowPowerMode(bool enable); }; -NS_CC_END +NS_AX_END diff --git a/core/platform/android/CCFileUtils-android.cpp b/core/platform/android/CCFileUtils-android.cpp index 8b9aea8cb5..b80eda88c7 100644 --- a/core/platform/android/CCFileUtils-android.cpp +++ b/core/platform/android/CCFileUtils-android.cpp @@ -48,7 +48,7 @@ using namespace std; #define DECLARE_GUARD (void)0 // std::lock_guard mutexGuard(_mutex) -NS_CC_BEGIN +NS_AX_BEGIN AAssetManager* FileUtilsAndroid::assetmanager = nullptr; ZipFile* FileUtilsAndroid::obbfile = nullptr; @@ -61,7 +61,7 @@ void FileUtilsAndroid::setassetmanager(AAssetManager* a) return; } - cocos2d::FileUtilsAndroid::assetmanager = a; + axis::FileUtilsAndroid::assetmanager = a; } FileUtils* FileUtils::getInstance() @@ -377,4 +377,4 @@ std::string FileUtilsAndroid::getNativeWritableAbsolutePath() const return path; } -NS_CC_END +NS_AX_END diff --git a/core/platform/android/CCFileUtils-android.h b/core/platform/android/CCFileUtils-android.h index a0b639f85f..7c5ccbc743 100644 --- a/core/platform/android/CCFileUtils-android.h +++ b/core/platform/android/CCFileUtils-android.h @@ -35,7 +35,7 @@ Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd. #include "jni.h" #include "android/asset_manager.h" -NS_CC_BEGIN +NS_AX_BEGIN class ZipFile; @@ -84,4 +84,4 @@ private: // end of platform group /// @} -NS_CC_END +NS_AX_END diff --git a/core/platform/android/CCGLViewImpl-android.cpp b/core/platform/android/CCGLViewImpl-android.cpp index 4fc86bb98f..e86b883970 100644 --- a/core/platform/android/CCGLViewImpl-android.cpp +++ b/core/platform/android/CCGLViewImpl-android.cpp @@ -48,7 +48,7 @@ void initExtensions() glDeleteVertexArraysOESEXT = (PFNGLDELETEVERTEXARRAYSOESPROC)eglGetProcAddress("glDeleteVertexArraysOES"); } -NS_CC_BEGIN +NS_AX_BEGIN GLViewImpl* GLViewImpl::createWithRect(std::string_view viewName, Rect rect, float frameZoomFactor) { @@ -237,4 +237,4 @@ Rect GLViewImpl::getSafeAreaRect() const return safeAreaRect; } -NS_CC_END +NS_AX_END diff --git a/core/platform/android/CCGLViewImpl-android.h b/core/platform/android/CCGLViewImpl-android.h index 0c4260f089..cfb2503990 100644 --- a/core/platform/android/CCGLViewImpl-android.h +++ b/core/platform/android/CCGLViewImpl-android.h @@ -29,7 +29,7 @@ THE SOFTWARE. #include "math/CCMath.h" #include "platform/CCGLView.h" -NS_CC_BEGIN +NS_AX_BEGIN class CC_DLL GLViewImpl : public GLView { @@ -53,4 +53,4 @@ protected: bool initWithFullScreen(std::string_view viewName); }; -NS_CC_END +NS_AX_END diff --git a/core/platform/android/javaactivity-android.cpp b/core/platform/android/javaactivity-android.cpp index 0d75ad0c9a..227af5599d 100644 --- a/core/platform/android/javaactivity-android.cpp +++ b/core/platform/android/javaactivity-android.cpp @@ -42,7 +42,7 @@ THE SOFTWARE. void cocos_android_app_init(JNIEnv* env) __attribute__((weak)); -using namespace cocos2d; +USING_NS_AX; extern "C" { @@ -81,29 +81,29 @@ JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved) JNIEXPORT void JNICALL Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv*, jclass, jint w, jint h) { - auto director = cocos2d::Director::getInstance(); + auto director = axis::Director::getInstance(); auto glview = director->getOpenGLView(); if (!glview) { - glview = cocos2d::GLViewImpl::create("Android app"); + glview = axis::GLViewImpl::create("Android app"); glview->setFrameSize(w, h); director->setOpenGLView(glview); - cocos2d::Application::getInstance()->run(); + axis::Application::getInstance()->run(); } else { - cocos2d::Director::getInstance()->resetMatrixStack(); - cocos2d::EventCustom recreatedEvent(EVENT_RENDERER_RECREATED); + axis::Director::getInstance()->resetMatrixStack(); + axis::EventCustom recreatedEvent(EVENT_RENDERER_RECREATED); director->getEventDispatcher()->dispatchEvent(&recreatedEvent); director->setGLDefaultValues(); - cocos2d::VolatileTextureMgr::reloadAllTextures(); + axis::VolatileTextureMgr::reloadAllTextures(); } } JNIEXPORT jintArray JNICALL Java_org_cocos2dx_lib_Cocos2dxActivity_getGLContextAttrs(JNIEnv* env, jclass) { - cocos2d::Application::getInstance()->initGLContextAttrs(); + axis::Application::getInstance()->initGLContextAttrs(); GLContextAttrs _glContextAttrs = GLView::getGLContextAttrs(); int tmp[7] = {_glContextAttrs.redBits, _glContextAttrs.greenBits, _glContextAttrs.blueBits, @@ -118,6 +118,6 @@ JNIEXPORT jintArray JNICALL Java_org_cocos2dx_lib_Cocos2dxActivity_getGLContextA JNIEXPORT void JNICALL Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeOnSurfaceChanged(JNIEnv*, jclass, jint w, jint h) { - cocos2d::Application::getInstance()->applicationScreenSizeChanged(w, h); + axis::Application::getInstance()->applicationScreenSizeChanged(w, h); } } diff --git a/core/platform/android/jni/Java_org_cocos2dx_lib_Cocos2dxAccelerometer.cpp b/core/platform/android/jni/Java_org_cocos2dx_lib_Cocos2dxAccelerometer.cpp index eb8a7493bc..1b6afc3f12 100644 --- a/core/platform/android/jni/Java_org_cocos2dx_lib_Cocos2dxAccelerometer.cpp +++ b/core/platform/android/jni/Java_org_cocos2dx_lib_Cocos2dxAccelerometer.cpp @@ -30,7 +30,7 @@ #define TG3_GRAVITY_EARTH (9.80665f) -using namespace cocos2d; +USING_NS_AX; extern "C" { JNIEXPORT void JNICALL Java_org_cocos2dx_lib_Cocos2dxAccelerometer_onSensorChanged(JNIEnv*, diff --git a/core/platform/android/jni/Java_org_cocos2dx_lib_Cocos2dxBitmap.cpp b/core/platform/android/jni/Java_org_cocos2dx_lib_Cocos2dxBitmap.cpp index 452e1a5ce1..f1f4d2afdc 100644 --- a/core/platform/android/jni/Java_org_cocos2dx_lib_Cocos2dxBitmap.cpp +++ b/core/platform/android/jni/Java_org_cocos2dx_lib_Cocos2dxBitmap.cpp @@ -33,7 +33,7 @@ THE SOFTWARE. static const char* className = "org.cocos2dx.lib.Cocos2dxBitmap"; -using namespace cocos2d; +USING_NS_AX; int getFontSizeAccordingHeightJni(int height) { diff --git a/core/platform/android/jni/Java_org_cocos2dx_lib_Cocos2dxHelper.cpp b/core/platform/android/jni/Java_org_cocos2dx_lib_Cocos2dxHelper.cpp index 805850adba..f7fa25b39b 100644 --- a/core/platform/android/jni/Java_org_cocos2dx_lib_Cocos2dxHelper.cpp +++ b/core/platform/android/jni/Java_org_cocos2dx_lib_Cocos2dxHelper.cpp @@ -44,7 +44,7 @@ static void* s_ctx = nullptr; static std::string g_apkPath; -using namespace cocos2d; +USING_NS_AX; using namespace std; extern "C" { @@ -94,7 +94,7 @@ JNIEXPORT void JNICALL Java_org_cocos2dx_lib_Cocos2dxHelper_nativeRunOnGLThread( void operator()(jobject_type* __ptr) const _NOEXCEPT { JniHelper::getEnv()->DeleteGlobalRef(__ptr); } }; - cocos2d::Director::getInstance()->getScheduler()->performFunctionInCocosThread( + axis::Director::getInstance()->getScheduler()->performFunctionInCocosThread( [wrap = std::make_shared>(env->NewGlobalRef(runnable))] { auto curEnv = JniHelper::getEnv(); diff --git a/core/platform/android/jni/Java_org_cocos2dx_lib_Cocos2dxRenderer.cpp b/core/platform/android/jni/Java_org_cocos2dx_lib_Cocos2dxRenderer.cpp index 6986f01487..2cee652e2b 100644 --- a/core/platform/android/jni/Java_org_cocos2dx_lib_Cocos2dxRenderer.cpp +++ b/core/platform/android/jni/Java_org_cocos2dx_lib_Cocos2dxRenderer.cpp @@ -34,13 +34,13 @@ #include "base/ccUTF8.h" -using namespace cocos2d; +USING_NS_AX; extern "C" { JNIEXPORT void JNICALL Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeRender(JNIEnv*, jclass) { - cocos2d::Director::getInstance()->mainLoop(); + axis::Director::getInstance()->mainLoop(); } JNIEXPORT void JNICALL Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeOnPause(JNIEnv*, jclass) @@ -48,8 +48,8 @@ JNIEXPORT void JNICALL Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeOnPause(JNIE if (Director::getInstance()->getOpenGLView()) { Application::getInstance()->applicationDidEnterBackground(); - cocos2d::EventCustom backgroundEvent(EVENT_COME_TO_BACKGROUND); - cocos2d::Director::getInstance()->getEventDispatcher()->dispatchEvent(&backgroundEvent); + axis::EventCustom backgroundEvent(EVENT_COME_TO_BACKGROUND); + axis::Director::getInstance()->getEventDispatcher()->dispatchEvent(&backgroundEvent); } } @@ -63,8 +63,8 @@ JNIEXPORT void JNICALL Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeOnResume(JNI if (!firstTime) Application::getInstance()->applicationWillEnterForeground(); - cocos2d::EventCustom foregroundEvent(EVENT_COME_TO_FOREGROUND); - cocos2d::Director::getInstance()->getEventDispatcher()->dispatchEvent(&foregroundEvent); + axis::EventCustom foregroundEvent(EVENT_COME_TO_FOREGROUND); + axis::Director::getInstance()->getEventDispatcher()->dispatchEvent(&foregroundEvent); firstTime = false; } @@ -72,19 +72,19 @@ JNIEXPORT void JNICALL Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeOnResume(JNI JNIEXPORT void JNICALL Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInsertText(JNIEnv* env, jclass, jstring text) { - std::string strValue = cocos2d::StringUtils::getStringUTFCharsJNI(env, text); + std::string strValue = axis::StringUtils::getStringUTFCharsJNI(env, text); const char* pszText = strValue.c_str(); - cocos2d::IMEDispatcher::sharedDispatcher()->dispatchInsertText(pszText, strlen(pszText)); + axis::IMEDispatcher::sharedDispatcher()->dispatchInsertText(pszText, strlen(pszText)); } JNIEXPORT void JNICALL Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeDeleteBackward(JNIEnv*, jclass) { - cocos2d::IMEDispatcher::sharedDispatcher()->dispatchDeleteBackward(); + axis::IMEDispatcher::sharedDispatcher()->dispatchDeleteBackward(); } JNIEXPORT jstring JNICALL Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeGetContentText(JNIEnv* env, jclass) { - auto pszText = cocos2d::IMEDispatcher::sharedDispatcher()->getContentText(); - return cocos2d::StringUtils::newStringUTFJNI(env, pszText); + auto pszText = axis::IMEDispatcher::sharedDispatcher()->getContentText(); + return axis::StringUtils::newStringUTFJNI(env, pszText); } } diff --git a/core/platform/android/jni/JniHelper.cpp b/core/platform/android/jni/JniHelper.cpp index 7bcd084bba..e225074651 100644 --- a/core/platform/android/jni/JniHelper.cpp +++ b/core/platform/android/jni/JniHelper.cpp @@ -44,12 +44,12 @@ jclass _getClassID(const char* className) return nullptr; } - JNIEnv* env = cocos2d::JniHelper::getEnv(); + JNIEnv* env = axis::JniHelper::getEnv(); jstring _jstrClassName = env->NewStringUTF(className); - jclass _clazz = (jclass)env->CallObjectMethod(cocos2d::JniHelper::classloader, - cocos2d::JniHelper::loadclassMethod_methodID, _jstrClassName); + jclass _clazz = (jclass)env->CallObjectMethod(axis::JniHelper::classloader, + axis::JniHelper::loadclassMethod_methodID, _jstrClassName); if (nullptr == _clazz) { @@ -64,11 +64,10 @@ jclass _getClassID(const char* className) void _detachCurrentThread(void* a) { - cocos2d::JniHelper::getJavaVM()->DetachCurrentThread(); + axis::JniHelper::getJavaVM()->DetachCurrentThread(); } -namespace cocos2d -{ +NS_AX_BEGIN JavaVM* JniHelper::_psJavaVM = nullptr; jmethodID JniHelper::loadclassMethod_methodID = nullptr; @@ -152,7 +151,7 @@ bool JniHelper::setClassLoaderFrom(jobject activityinstance) return false; } - jobject _c = cocos2d::JniHelper::getEnv()->CallObjectMethod(activityinstance, _getclassloaderMethod.methodID); + jobject _c = axis::JniHelper::getEnv()->CallObjectMethod(activityinstance, _getclassloaderMethod.methodID); if (nullptr == _c) { @@ -166,9 +165,9 @@ bool JniHelper::setClassLoaderFrom(jobject activityinstance) return false; } - JniHelper::classloader = cocos2d::JniHelper::getEnv()->NewGlobalRef(_c); + JniHelper::classloader = axis::JniHelper::getEnv()->NewGlobalRef(_c); JniHelper::loadclassMethod_methodID = _m.methodID; - JniHelper::_activity = cocos2d::JniHelper::getEnv()->NewGlobalRef(activityinstance); + JniHelper::_activity = axis::JniHelper::getEnv()->NewGlobalRef(activityinstance); if (JniHelper::classloaderCallback != nullptr) { JniHelper::classloaderCallback(); @@ -307,24 +306,24 @@ std::string JniHelper::jstring2string(jstring jstr) return ""; } - std::string strValue = cocos2d::StringUtils::getStringUTFCharsJNI(env, jstr); + std::string strValue = axis::StringUtils::getStringUTFCharsJNI(env, jstr); return strValue; } -jstring JniHelper::convert(LocalRefMapType& localRefs, cocos2d::JniMethodInfo& t, const char* x) +jstring JniHelper::convert(LocalRefMapType& localRefs, axis::JniMethodInfo& t, const char* x) { - jstring ret = cocos2d::StringUtils::newStringUTFJNI(t.env, x ? x : ""); + jstring ret = axis::StringUtils::newStringUTFJNI(t.env, x ? x : ""); localRefs[t.env].push_back(ret); return ret; } -jstring JniHelper::convert(LocalRefMapType& localRefs, cocos2d::JniMethodInfo& t, std::string_view x) +jstring JniHelper::convert(LocalRefMapType& localRefs, axis::JniMethodInfo& t, std::string_view x) { return convert(localRefs, t, x.data()); } -jstring JniHelper::convert(LocalRefMapType& localRefs, cocos2d::JniMethodInfo& t, const std::string& x) +jstring JniHelper::convert(LocalRefMapType& localRefs, axis::JniMethodInfo& t, const std::string& x) { return convert(localRefs, t, x.c_str()); } @@ -349,4 +348,4 @@ void JniHelper::reportError(const char* className, const char* methodName, const signature); } -} // namespace cocos2d +NS_AX_END // namespace axis diff --git a/core/platform/android/jni/JniHelper.h b/core/platform/android/jni/JniHelper.h index 6adb65ced5..0b1a2cbd6b 100644 --- a/core/platform/android/jni/JniHelper.h +++ b/core/platform/android/jni/JniHelper.h @@ -61,7 +61,7 @@ struct TypeSignature }; } // namespace jni -NS_CC_BEGIN +NS_AX_BEGIN typedef struct JniMethodInfo_ { @@ -103,9 +103,9 @@ public: template static void callStaticVoidMethod(const char* className, const char* methodName, Ts&&... xs) { - cocos2d::JniMethodInfo t; + axis::JniMethodInfo t; const char* signature = jni::TypeSignature...)>{}(); - if (cocos2d::JniHelper::getStaticMethodInfo(t, className, methodName, signature)) + if (axis::JniHelper::getStaticMethodInfo(t, className, methodName, signature)) { LocalRefMapType localRefs; t.env->CallStaticVoidMethod(t.classID, t.methodID, convert(localRefs, t, xs)...); @@ -126,9 +126,9 @@ public: static bool callStaticBooleanMethod(const char* className, const char* methodName, Ts&&... xs) { jboolean jret = JNI_FALSE; - cocos2d::JniMethodInfo t; + axis::JniMethodInfo t; const char* signature = jni::TypeSignature...)>{}(); - if (cocos2d::JniHelper::getStaticMethodInfo(t, className, methodName, signature)) + if (axis::JniHelper::getStaticMethodInfo(t, className, methodName, signature)) { LocalRefMapType localRefs; jret = t.env->CallStaticBooleanMethod(t.classID, t.methodID, convert(localRefs, t, xs)...); @@ -150,9 +150,9 @@ public: static int callStaticIntMethod(const char* className, const char* methodName, Ts&&... xs) { jint ret = 0; - cocos2d::JniMethodInfo t; + axis::JniMethodInfo t; const char* signature = jni::TypeSignature...)>{}(); - if (cocos2d::JniHelper::getStaticMethodInfo(t, className, methodName, signature)) + if (axis::JniHelper::getStaticMethodInfo(t, className, methodName, signature)) { LocalRefMapType localRefs; ret = t.env->CallStaticIntMethod(t.classID, t.methodID, convert(localRefs, t, xs)...); @@ -174,9 +174,9 @@ public: static float callStaticFloatMethod(const char* className, const char* methodName, Ts&&... xs) { jfloat ret = 0.0; - cocos2d::JniMethodInfo t; + axis::JniMethodInfo t; const char* signature = jni::TypeSignature...)>{}(); - if (cocos2d::JniHelper::getStaticMethodInfo(t, className, methodName, signature)) + if (axis::JniHelper::getStaticMethodInfo(t, className, methodName, signature)) { LocalRefMapType localRefs; ret = t.env->CallStaticFloatMethod(t.classID, t.methodID, convert(localRefs, t, xs)...); @@ -198,9 +198,9 @@ public: static float* callStaticFloatArrayMethod(const char* className, const char* methodName, Ts&&... xs) { static float ret[32]; - cocos2d::JniMethodInfo t; + axis::JniMethodInfo t; const char* signature = jni::TypeSignature(std::decay_t...)>{}(); - if (cocos2d::JniHelper::getStaticMethodInfo(t, className, methodName, signature)) + if (axis::JniHelper::getStaticMethodInfo(t, className, methodName, signature)) { LocalRefMapType localRefs; jfloatArray array = @@ -234,9 +234,9 @@ public: static int* callStaticIntArrayMethod(const char* className, const char* methodName, Ts&&... xs) { static int ret[32]; - cocos2d::JniMethodInfo t; + axis::JniMethodInfo t; const char* signature = jni::TypeSignature(std::decay_t...)>{}(); - if (cocos2d::JniHelper::getStaticMethodInfo(t, className, methodName, signature)) + if (axis::JniHelper::getStaticMethodInfo(t, className, methodName, signature)) { LocalRefMapType localRefs; jintArray array = @@ -270,9 +270,9 @@ public: static Vec3 callStaticVec3Method(const char* className, const char* methodName, Ts&&... xs) { Vec3 ret; - cocos2d::JniMethodInfo t; + axis::JniMethodInfo t; const char* signature = jni::TypeSignature(std::decay_t...)>{}(); - if (cocos2d::JniHelper::getStaticMethodInfo(t, className, methodName, signature)) + if (axis::JniHelper::getStaticMethodInfo(t, className, methodName, signature)) { LocalRefMapType localRefs; jfloatArray array = @@ -304,9 +304,9 @@ public: static double callStaticDoubleMethod(const char* className, const char* methodName, Ts&&... xs) { jdouble ret = 0.0; - cocos2d::JniMethodInfo t; + axis::JniMethodInfo t; const char* signature = jni::TypeSignature...)>{}(); - if (cocos2d::JniHelper::getStaticMethodInfo(t, className, methodName, signature)) + if (axis::JniHelper::getStaticMethodInfo(t, className, methodName, signature)) { LocalRefMapType localRefs; ret = t.env->CallStaticDoubleMethod(t.classID, t.methodID, convert(localRefs, t, xs)...); @@ -329,13 +329,13 @@ public: { std::string ret; - cocos2d::JniMethodInfo t; + axis::JniMethodInfo t; const char* signature = jni::TypeSignature...)>{}(); - if (cocos2d::JniHelper::getStaticMethodInfo(t, className, methodName, signature)) + if (axis::JniHelper::getStaticMethodInfo(t, className, methodName, signature)) { LocalRefMapType localRefs; jstring jret = (jstring)t.env->CallStaticObjectMethod(t.classID, t.methodID, convert(localRefs, t, xs)...); - ret = cocos2d::JniHelper::jstring2string(jret); + ret = axis::JniHelper::jstring2string(jret); t.env->DeleteLocalRef(t.classID); t.env->DeleteLocalRef(jret); deleteLocalRefs(t.env, localRefs); @@ -359,47 +359,47 @@ private: static jobject _activity; - static jstring convert(LocalRefMapType& localRefs, cocos2d::JniMethodInfo& t, const char* x); + static jstring convert(LocalRefMapType& localRefs, axis::JniMethodInfo& t, const char* x); - static jstring convert(LocalRefMapType& localRefs, cocos2d::JniMethodInfo& t, std::string_view x); + static jstring convert(LocalRefMapType& localRefs, axis::JniMethodInfo& t, std::string_view x); - static jstring convert(LocalRefMapType& localRefs, cocos2d::JniMethodInfo& t, const std::string& x); + static jstring convert(LocalRefMapType& localRefs, axis::JniMethodInfo& t, const std::string& x); - inline static jint convert(LocalRefMapType&, cocos2d::JniMethodInfo&, int32_t value) + inline static jint convert(LocalRefMapType&, axis::JniMethodInfo&, int32_t value) { return static_cast(value); } - inline static jlong convert(LocalRefMapType&, cocos2d::JniMethodInfo&, int64_t value) + inline static jlong convert(LocalRefMapType&, axis::JniMethodInfo&, int64_t value) { return static_cast(value); } - inline static jfloat convert(LocalRefMapType&, cocos2d::JniMethodInfo&, float value) + inline static jfloat convert(LocalRefMapType&, axis::JniMethodInfo&, float value) { return static_cast(value); } - inline static jdouble convert(LocalRefMapType&, cocos2d::JniMethodInfo&, double value) + inline static jdouble convert(LocalRefMapType&, axis::JniMethodInfo&, double value) { return static_cast(value); } - inline static jboolean convert(LocalRefMapType&, cocos2d::JniMethodInfo&, bool value) + inline static jboolean convert(LocalRefMapType&, axis::JniMethodInfo&, bool value) { return static_cast(value); } - inline static jbyte convert(LocalRefMapType&, cocos2d::JniMethodInfo&, int8_t value) + inline static jbyte convert(LocalRefMapType&, axis::JniMethodInfo&, int8_t value) { return static_cast(value); } - inline static jchar convert(LocalRefMapType&, cocos2d::JniMethodInfo&, uint8_t value) + inline static jchar convert(LocalRefMapType&, axis::JniMethodInfo&, uint8_t value) { return static_cast(value); } - inline static jshort convert(LocalRefMapType&, cocos2d::JniMethodInfo&, int16_t value) + inline static jshort convert(LocalRefMapType&, axis::JniMethodInfo&, int16_t value) { return static_cast(value); } template - static T convert(LocalRefMapType& localRefs, cocos2d::JniMethodInfo&, T x) + static T convert(LocalRefMapType& localRefs, axis::JniMethodInfo&, T x) { return x; } @@ -409,6 +409,6 @@ private: static void reportError(const char* className, const char* methodName, const char* signature); }; -NS_CC_END +NS_AX_END #endif // __ANDROID_JNI_HELPER_H__ diff --git a/core/platform/android/jni/TouchesJni.cpp b/core/platform/android/jni/TouchesJni.cpp index a401ba2aa0..7e5b90c633 100644 --- a/core/platform/android/jni/TouchesJni.cpp +++ b/core/platform/android/jni/TouchesJni.cpp @@ -30,21 +30,21 @@ THE SOFTWARE. #include #include -using namespace cocos2d; +USING_NS_AX; extern "C" { JNIEXPORT void JNICALL Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeTouchesBegin(JNIEnv*, jclass, jint id, jfloat x, jfloat y) { intptr_t idlong = id; - cocos2d::Director::getInstance()->getOpenGLView()->handleTouchesBegin(1, &idlong, &x, &y); + axis::Director::getInstance()->getOpenGLView()->handleTouchesBegin(1, &idlong, &x, &y); } JNIEXPORT void JNICALL Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeTouchesEnd(JNIEnv*, jclass, jint id, jfloat x, jfloat y) { intptr_t idlong = id; - cocos2d::Director::getInstance()->getOpenGLView()->handleTouchesEnd(1, &idlong, &x, &y); + axis::Director::getInstance()->getOpenGLView()->handleTouchesEnd(1, &idlong, &x, &y); } JNIEXPORT void JNICALL Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeTouchesMove(JNIEnv* env, @@ -66,7 +66,7 @@ JNIEXPORT void JNICALL Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeTouchesMove( for (int i = 0; i < size; i++) idlong[i] = id[i]; - cocos2d::Director::getInstance()->getOpenGLView()->handleTouchesMove(size, idlong, x, y); + axis::Director::getInstance()->getOpenGLView()->handleTouchesMove(size, idlong, x, y); } JNIEXPORT void JNICALL Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeTouchesCancel(JNIEnv* env, @@ -88,7 +88,7 @@ JNIEXPORT void JNICALL Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeTouchesCance for (int i = 0; i < size; i++) idlong[i] = id[i]; - cocos2d::Director::getInstance()->getOpenGLView()->handleTouchesCancel(size, idlong, x, y); + axis::Director::getInstance()->getOpenGLView()->handleTouchesCancel(size, idlong, x, y); } #define KEYCODE_BACK 0x04 @@ -101,16 +101,16 @@ JNIEXPORT void JNICALL Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeTouchesCance #define KEYCODE_PLAY 0x7e #define KEYCODE_DPAD_CENTER 0x17 -static std::unordered_map g_keyCodeMap = { - {KEYCODE_BACK, cocos2d::EventKeyboard::KeyCode::KEY_ESCAPE}, - {KEYCODE_MENU, cocos2d::EventKeyboard::KeyCode::KEY_MENU}, - {KEYCODE_DPAD_UP, cocos2d::EventKeyboard::KeyCode::KEY_DPAD_UP}, - {KEYCODE_DPAD_DOWN, cocos2d::EventKeyboard::KeyCode::KEY_DPAD_DOWN}, - {KEYCODE_DPAD_LEFT, cocos2d::EventKeyboard::KeyCode::KEY_DPAD_LEFT}, - {KEYCODE_DPAD_RIGHT, cocos2d::EventKeyboard::KeyCode::KEY_DPAD_RIGHT}, - {KEYCODE_ENTER, cocos2d::EventKeyboard::KeyCode::KEY_ENTER}, - {KEYCODE_PLAY, cocos2d::EventKeyboard::KeyCode::KEY_PLAY}, - {KEYCODE_DPAD_CENTER, cocos2d::EventKeyboard::KeyCode::KEY_DPAD_CENTER}, +static std::unordered_map g_keyCodeMap = { + {KEYCODE_BACK, axis::EventKeyboard::KeyCode::KEY_ESCAPE}, + {KEYCODE_MENU, axis::EventKeyboard::KeyCode::KEY_MENU}, + {KEYCODE_DPAD_UP, axis::EventKeyboard::KeyCode::KEY_DPAD_UP}, + {KEYCODE_DPAD_DOWN, axis::EventKeyboard::KeyCode::KEY_DPAD_DOWN}, + {KEYCODE_DPAD_LEFT, axis::EventKeyboard::KeyCode::KEY_DPAD_LEFT}, + {KEYCODE_DPAD_RIGHT, axis::EventKeyboard::KeyCode::KEY_DPAD_RIGHT}, + {KEYCODE_ENTER, axis::EventKeyboard::KeyCode::KEY_ENTER}, + {KEYCODE_PLAY, axis::EventKeyboard::KeyCode::KEY_PLAY}, + {KEYCODE_DPAD_CENTER, axis::EventKeyboard::KeyCode::KEY_DPAD_CENTER}, }; @@ -125,9 +125,9 @@ JNIEXPORT jboolean JNICALL Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeKeyEvent return JNI_FALSE; } - cocos2d::EventKeyboard::KeyCode cocos2dKey = g_keyCodeMap.at(keyCode); - cocos2d::EventKeyboard event(cocos2dKey, isPressed); - cocos2d::Director::getInstance()->getEventDispatcher()->dispatchEvent(&event); + axis::EventKeyboard::KeyCode cocos2dKey = g_keyCodeMap.at(keyCode); + axis::EventKeyboard event(cocos2dKey, isPressed); + axis::Director::getInstance()->getEventDispatcher()->dispatchEvent(&event); return JNI_TRUE; } } diff --git a/core/platform/apple/CCDevice-apple.h b/core/platform/apple/CCDevice-apple.h index 924884cc8c..d8223f60b3 100644 --- a/core/platform/apple/CCDevice-apple.h +++ b/core/platform/apple/CCDevice-apple.h @@ -32,8 +32,8 @@ namespace FontUtils { NSMutableParagraphStyle* _calculateParagraphStyle(bool enableWrap, int overflow); -NSTextAlignment _calculateTextAlignment(cocos2d::Device::TextAlign align); -CGFloat _calculateTextDrawStartWidth(cocos2d::Device::TextAlign align, CGSize realDimensions, CGSize dimensions); +NSTextAlignment _calculateTextAlignment(axis::Device::TextAlign align); +CGFloat _calculateTextDrawStartWidth(axis::Device::TextAlign align, CGSize realDimensions, CGSize dimensions); } #endif /* CCDevice_apple_hpp */ diff --git a/core/platform/apple/CCDevice-apple.mm b/core/platform/apple/CCDevice-apple.mm index c3caec7e14..0ee63febf3 100644 --- a/core/platform/apple/CCDevice-apple.mm +++ b/core/platform/apple/CCDevice-apple.mm @@ -51,7 +51,7 @@ NSMutableParagraphStyle* _calculateParagraphStyle(bool enableWrap, int overflow) return paragraphStyle; } -NSTextAlignment _calculateTextAlignment(cocos2d::Device::TextAlign align) +NSTextAlignment _calculateTextAlignment(axis::Device::TextAlign align) { unsigned uHoriFlag = (int)align & 0x0f; NSTextAlignment nsAlign = (2 == uHoriFlag) ? NSTextAlignmentRight @@ -61,7 +61,7 @@ NSTextAlignment _calculateTextAlignment(cocos2d::Device::TextAlign align) return nsAlign; } -CGFloat _calculateTextDrawStartWidth(cocos2d::Device::TextAlign align, CGSize realDimensions, CGSize dimensions) +CGFloat _calculateTextDrawStartWidth(axis::Device::TextAlign align, CGSize realDimensions, CGSize dimensions) { CGFloat xPadding = 0; unsigned uHoriFlag = (int)align & 0x0f; diff --git a/core/platform/apple/CCFileUtils-apple.h b/core/platform/apple/CCFileUtils-apple.h index 2513108b9d..ea4315cc71 100644 --- a/core/platform/apple/CCFileUtils-apple.h +++ b/core/platform/apple/CCFileUtils-apple.h @@ -35,7 +35,7 @@ #include "platform/CCPlatformMacros.h" #include "base/ccTypes.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup platform @@ -74,6 +74,6 @@ private: // end of platform group /// @} -NS_CC_END +NS_AX_END #endif // __CC_FILEUTILS_APPLE_H__ diff --git a/core/platform/apple/CCFileUtils-apple.mm b/core/platform/apple/CCFileUtils-apple.mm index deaffa0ca0..d8bb0b5b93 100644 --- a/core/platform/apple/CCFileUtils-apple.mm +++ b/core/platform/apple/CCFileUtils-apple.mm @@ -38,7 +38,7 @@ THE SOFTWARE. #define DECLARE_GUARD (void)0 // std::lock_guard mutexGuard(_mutex) -NS_CC_BEGIN +NS_AX_BEGIN struct FileUtilsApple::IMPL { @@ -251,4 +251,4 @@ bool FileUtilsApple::createDirectory(std::string_view path) const return result; } -NS_CC_END +NS_AX_END diff --git a/core/platform/desktop/CCGLViewImpl-desktop.cpp b/core/platform/desktop/CCGLViewImpl-desktop.cpp index dda49f16f5..5e2a33000b 100644 --- a/core/platform/desktop/CCGLViewImpl-desktop.cpp +++ b/core/platform/desktop/CCGLViewImpl-desktop.cpp @@ -54,7 +54,7 @@ THE SOFTWARE. #include "renderer/CCRenderer.h" -NS_CC_BEGIN +NS_AX_BEGIN class GLFWEventHandler { @@ -926,14 +926,14 @@ void GLViewImpl::onGLFWMouseCallBack(GLFWwindow* /*window*/, int button, int act { EventMouse event(EventMouse::MouseEventType::MOUSE_DOWN); event.setCursorPosition(cursorX, cursorY); - event.setMouseButton(static_cast(button)); + event.setMouseButton(static_cast(button)); Director::getInstance()->getEventDispatcher()->dispatchEvent(&event); } else if (GLFW_RELEASE == action) { EventMouse event(EventMouse::MouseEventType::MOUSE_UP); event.setCursorPosition(cursorX, cursorY); - event.setMouseButton(static_cast(button)); + event.setMouseButton(static_cast(button)); Director::getInstance()->getEventDispatcher()->dispatchEvent(&event); } } @@ -969,15 +969,15 @@ void GLViewImpl::onGLFWMouseMoveCallBack(GLFWwindow* window, double x, double y) // Set current button if (glfwGetMouseButton(window, GLFW_MOUSE_BUTTON_LEFT) == GLFW_PRESS) { - event.setMouseButton(static_cast(GLFW_MOUSE_BUTTON_LEFT)); + event.setMouseButton(static_cast(GLFW_MOUSE_BUTTON_LEFT)); } else if (glfwGetMouseButton(window, GLFW_MOUSE_BUTTON_RIGHT) == GLFW_PRESS) { - event.setMouseButton(static_cast(GLFW_MOUSE_BUTTON_RIGHT)); + event.setMouseButton(static_cast(GLFW_MOUSE_BUTTON_RIGHT)); } else if (glfwGetMouseButton(window, GLFW_MOUSE_BUTTON_MIDDLE) == GLFW_PRESS) { - event.setMouseButton(static_cast(GLFW_MOUSE_BUTTON_MIDDLE)); + event.setMouseButton(static_cast(GLFW_MOUSE_BUTTON_MIDDLE)); } event.setCursorPosition(cursorX, cursorY); Director::getInstance()->getEventDispatcher()->dispatchEvent(&event); @@ -1227,4 +1227,4 @@ bool GLViewImpl::loadGL() return true; } -NS_CC_END // end of namespace cocos2d; +NS_AX_END // end of namespace axis; diff --git a/core/platform/desktop/CCGLViewImpl-desktop.h b/core/platform/desktop/CCGLViewImpl-desktop.h index 09b958a663..ec9c68d525 100644 --- a/core/platform/desktop/CCGLViewImpl-desktop.h +++ b/core/platform/desktop/CCGLViewImpl-desktop.h @@ -52,7 +52,7 @@ THE SOFTWARE. # include "glfw3native.h" #endif // #if (CC_TARGET_PLATFORM == CC_PLATFORM_MAC) -NS_CC_BEGIN +NS_AX_BEGIN class GLFWEventHandler; class CC_DLL GLViewImpl : public GLView @@ -205,4 +205,4 @@ private: CC_DISALLOW_COPY_AND_ASSIGN(GLViewImpl); }; -NS_CC_END // end of namespace cocos2d +NS_AX_END // end of namespace cocos2d diff --git a/core/platform/ios/CCApplication-ios.h b/core/platform/ios/CCApplication-ios.h index ab1b26307b..52f355a06f 100644 --- a/core/platform/ios/CCApplication-ios.h +++ b/core/platform/ios/CCApplication-ios.h @@ -28,7 +28,7 @@ THE SOFTWARE. #include "platform/CCCommon.h" #include "platform/CCApplicationProtocol.h" -NS_CC_BEGIN +NS_AX_BEGIN class CC_DLL Application : public ApplicationProtocol { @@ -100,4 +100,4 @@ protected: static Application* sm_pSharedApplication; }; -NS_CC_END +NS_AX_END diff --git a/core/platform/ios/CCApplication-ios.mm b/core/platform/ios/CCApplication-ios.mm index 59f11310a8..02ade1b8f3 100644 --- a/core/platform/ios/CCApplication-ios.mm +++ b/core/platform/ios/CCApplication-ios.mm @@ -31,7 +31,7 @@ #import "platform/ios/CCDirectorCaller-ios.h" #import "base/ccUtils.h" -NS_CC_BEGIN +NS_AX_BEGIN Application* Application::sm_pSharedApplication = nullptr; @@ -133,4 +133,4 @@ bool Application::openURL(std::string_view url) void Application::applicationScreenSizeChanged(int newWidth, int newHeight) {} -NS_CC_END +NS_AX_END diff --git a/core/platform/ios/CCCommon-ios.mm b/core/platform/ios/CCCommon-ios.mm index 4d7fab08dd..9b135c617f 100644 --- a/core/platform/ios/CCCommon-ios.mm +++ b/core/platform/ios/CCCommon-ios.mm @@ -33,7 +33,7 @@ #include "base/CCDirector.h" #include "base/CCConsole.h" -NS_CC_BEGIN +NS_AX_BEGIN // ios no MessageBox, use log instead void ccMessageBox(const char* msg, const char* title) @@ -64,4 +64,4 @@ void LuaLog(const char* format) puts(format); } -NS_CC_END +NS_AX_END diff --git a/core/platform/ios/CCDevice-ios.mm b/core/platform/ios/CCDevice-ios.mm index 0f809142ef..6b87000ffd 100644 --- a/core/platform/ios/CCDevice-ios.mm +++ b/core/platform/ios/CCDevice-ios.mm @@ -65,7 +65,7 @@ static NSAttributedString* __attributedStringWithFontSize(NSMutableAttributedStr return [[attributedString copy] autorelease]; } -static CGFloat _calculateTextDrawStartHeight(cocos2d::Device::TextAlign align, CGSize realDimensions, CGSize dimensions) +static CGFloat _calculateTextDrawStartHeight(axis::Device::TextAlign align, CGSize realDimensions, CGSize dimensions) { float startH = 0; // vertical alignment @@ -191,7 +191,7 @@ static CGSize _calculateShrinkedSizeForString(NSAttributedString** str, #if !defined(CC_TARGET_OS_TVOS) @interface CCAccelerometerDispatcher : NSObject { - cocos2d::Acceleration* _acceleration; + axis::Acceleration* _acceleration; CMMotionManager* _motionManager; } @@ -220,7 +220,7 @@ static CCAccelerometerDispatcher* s_pAccelerometerDispatcher; { if ((self = [super init])) { - _acceleration = new cocos2d::Acceleration(); + _acceleration = new axis::Acceleration(); _motionManager = [[CMMotionManager alloc] init]; _motionManager.accelerometerUpdateInterval = SENSOR_DELAY_GAME; } @@ -297,8 +297,8 @@ static CCAccelerometerDispatcher* s_pAccelerometerDispatcher; NSAssert(false, @"unknown orientation"); } - cocos2d::EventAcceleration event(*_acceleration); - auto dispatcher = cocos2d::Director::getInstance()->getEventDispatcher(); + axis::EventAcceleration event(*_acceleration); + auto dispatcher = axis::Director::getInstance()->getEventDispatcher(); dispatcher->dispatchEvent(&event); } @end @@ -306,7 +306,7 @@ static CCAccelerometerDispatcher* s_pAccelerometerDispatcher; // -NS_CC_BEGIN +NS_AX_BEGIN int Device::getDPI() { @@ -432,7 +432,7 @@ static id _createSystemFont(const char* fontName, int size) } static bool _initWithString(const char* text, - cocos2d::Device::TextAlign align, + axis::Device::TextAlign align, const char* fontName, int size, tImageInfo* info, @@ -659,4 +659,4 @@ void Device::vibrate(float duration) } } -NS_CC_END +NS_AX_END diff --git a/core/platform/ios/CCDirectorCaller-ios.mm b/core/platform/ios/CCDirectorCaller-ios.mm index 07e89bc16e..9cbd9a2139 100644 --- a/core/platform/ios/CCDirectorCaller-ios.mm +++ b/core/platform/ios/CCDirectorCaller-ios.mm @@ -137,7 +137,7 @@ static id s_sharedDirectorCaller; { if (isAppActive) { - cocos2d::Director* director = cocos2d::Director::getInstance(); + axis::Director* director = axis::Director::getInstance(); #if defined(CC_USE_GLES) EAGLContext* cocos2dxContext = [(CCEAGLView*)director->getOpenGLView()->getEAGLView() context]; if (cocos2dxContext != [EAGLContext currentContext]) diff --git a/core/platform/ios/CCEAGLView-ios.mm b/core/platform/ios/CCEAGLView-ios.mm index ca1bccdadd..716c8b8af2 100644 --- a/core/platform/ios/CCEAGLView-ios.mm +++ b/core/platform/ios/CCEAGLView-ios.mm @@ -201,7 +201,7 @@ Copyright (C) 2008 Apple Inc. All Rights Reserved. metalLayer.device = device; metalLayer.pixelFormat = MTLPixelFormatBGRA8Unorm; metalLayer.framebufferOnly = YES; - cocos2d::backend::DeviceMTL::setCAMetalLayer(metalLayer); + axis::backend::DeviceMTL::setCAMetalLayer(metalLayer); #else pixelformat_ = format; depthFormat_ = depth; @@ -305,14 +305,14 @@ Copyright (C) 2008 Apple Inc. All Rights Reserved. - (void)layoutSubviews { - if (!cocos2d::Director::getInstance()->isValid()) + if (!axis::Director::getInstance()->isValid()) return; #if defined(CC_USE_METAL) size_ = [self bounds].size; size_.width *= self.contentScaleFactor; size_.height *= self.contentScaleFactor; - cocos2d::backend::UtilsMTL::resizeDefaultAttachmentTexture(size_.width, size_.height); + axis::backend::UtilsMTL::resizeDefaultAttachmentTexture(size_.width, size_.height); #else [renderer_ resizeFromLayer:(CAEAGLLayer*)self.layer]; size_ = [renderer_ backingSize]; @@ -320,16 +320,16 @@ Copyright (C) 2008 Apple Inc. All Rights Reserved. // Issue #914 #924 // Director *director = [Director sharedDirector]; // [director reshapeProjection:size_]; - cocos2d::Size size; + axis::Size size; size.width = size_.width; size.height = size_.height; - // cocos2d::Director::getInstance()->reshapeProjection(size); + // axis::Director::getInstance()->reshapeProjection(size); #endif // Avoid flicker. Issue #350 if ([NSThread isMainThread]) { - cocos2d::Director::getInstance()->drawScene(); + axis::Director::getInstance()->drawScene(); } } @@ -464,7 +464,7 @@ Copyright (C) 2008 Apple Inc. All Rights Reserved. ++i; } - auto glview = cocos2d::Director::getInstance()->getOpenGLView(); + auto glview = axis::Director::getInstance()->getOpenGLView(); glview->handleTouchesBegin(i, (intptr_t*)ids, xs, ys); } @@ -499,7 +499,7 @@ Copyright (C) 2008 Apple Inc. All Rights Reserved. ++i; } - auto glview = cocos2d::Director::getInstance()->getOpenGLView(); + auto glview = axis::Director::getInstance()->getOpenGLView(); glview->handleTouchesMove(i, (intptr_t*)ids, xs, ys, fs, ms); } @@ -524,7 +524,7 @@ Copyright (C) 2008 Apple Inc. All Rights Reserved. ++i; } - auto glview = cocos2d::Director::getInstance()->getOpenGLView(); + auto glview = axis::Director::getInstance()->getOpenGLView(); glview->handleTouchesEnd(i, (intptr_t*)ids, xs, ys); } @@ -549,7 +549,7 @@ Copyright (C) 2008 Apple Inc. All Rights Reserved. ++i; } - auto glview = cocos2d::Director::getInstance()->getOpenGLView(); + auto glview = axis::Director::getInstance()->getOpenGLView(); glview->handleTouchesCancel(i, (intptr_t*)ids, xs, ys); } @@ -572,12 +572,12 @@ Copyright (C) 2008 Apple Inc. All Rights Reserved. [UIView setAnimationDuration:duration]; [UIView setAnimationBeginsFromCurrentState:YES]; - // NSLog(@"[animation] dis = %f, scale = %f \n", dis, cocos2d::GLView::getInstance()->getScaleY()); + // NSLog(@"[animation] dis = %f, scale = %f \n", dis, axis::GLView::getInstance()->getScaleY()); if (dis < 0.0f) dis = 0.0f; - auto glview = cocos2d::Director::getInstance()->getOpenGLView(); + auto glview = axis::Director::getInstance()->getOpenGLView(); dis *= glview->getScaleY(); dis /= self.contentScaleFactor; @@ -718,7 +718,7 @@ UIInterfaceOrientation getFixedOrientation(UIInterfaceOrientation statusBarOrien break; } - auto glview = cocos2d::Director::getInstance()->getOpenGLView(); + auto glview = axis::Director::getInstance()->getOpenGLView(); float scaleX = glview->getScaleX(); float scaleY = glview->getScaleY(); @@ -742,12 +742,12 @@ UIInterfaceOrientation getFixedOrientation(UIInterfaceOrientation statusBarOrien end = CGRectApplyAffineTransform(end, CGAffineTransformScale(CGAffineTransformIdentity, 1.0f / scaleX, 1.0f / scaleY)); - cocos2d::IMEKeyboardNotificationInfo notiInfo; - notiInfo.begin = cocos2d::Rect(begin.origin.x, begin.origin.y, begin.size.width, begin.size.height); - notiInfo.end = cocos2d::Rect(end.origin.x, end.origin.y, end.size.width, end.size.height); + axis::IMEKeyboardNotificationInfo notiInfo; + notiInfo.begin = axis::Rect(begin.origin.x, begin.origin.y, begin.size.width, begin.size.height); + notiInfo.end = axis::Rect(end.origin.x, end.origin.y, end.size.width, end.size.height); notiInfo.duration = (float)aniDuration; - cocos2d::IMEDispatcher* dispatcher = cocos2d::IMEDispatcher::sharedDispatcher(); + axis::IMEDispatcher* dispatcher = axis::IMEDispatcher::sharedDispatcher(); if (UIKeyboardWillShowNotification == type) { dispatcher->dispatchKeyboardWillShow(notiInfo); diff --git a/core/platform/ios/CCGLViewImpl-ios.h b/core/platform/ios/CCGLViewImpl-ios.h index 9d4367c455..dcd5104ac7 100644 --- a/core/platform/ios/CCGLViewImpl-ios.h +++ b/core/platform/ios/CCGLViewImpl-ios.h @@ -29,7 +29,7 @@ #include "platform/CCCommon.h" #include "platform/CCGLView.h" -NS_CC_BEGIN +NS_AX_BEGIN /** Class that represent the OpenGL View */ @@ -85,4 +85,4 @@ protected: void* _eaglview; }; -NS_CC_END +NS_AX_END diff --git a/core/platform/ios/CCGLViewImpl-ios.mm b/core/platform/ios/CCGLViewImpl-ios.mm index 3f222fdfa1..b704ebce4e 100644 --- a/core/platform/ios/CCGLViewImpl-ios.mm +++ b/core/platform/ios/CCGLViewImpl-ios.mm @@ -31,7 +31,7 @@ #include "base/CCTouch.h" #include "base/CCDirector.h" -NS_CC_BEGIN +NS_AX_BEGIN void* GLViewImpl::_pixelFormat = kEAGLColorFormatRGB565; int GLViewImpl::_depthFormat = GL_DEPTH_COMPONENT16; @@ -282,4 +282,4 @@ Rect GLViewImpl::getSafeAreaRect() const return GLView::getSafeAreaRect(); } -NS_CC_END +NS_AX_END diff --git a/core/platform/ios/CCImage-ios.mm b/core/platform/ios/CCImage-ios.mm index 922b040dfa..55b0f475fe 100644 --- a/core/platform/ios/CCImage-ios.mm +++ b/core/platform/ios/CCImage-ios.mm @@ -33,9 +33,9 @@ THE SOFTWARE. #include -NS_CC_BEGIN +NS_AX_BEGIN -bool cocos2d::Image::saveToFile(std::string_view filename, bool isToRGB) +bool axis::Image::saveToFile(std::string_view filename, bool isToRGB) { // only support for backend::PixelFormat::RGB8 or backend::PixelFormat::RGBA8 uncompressed data if (isCompressed() || (_pixelFormat != backend::PixelFormat::RGB8 && _pixelFormat != backend::PixelFormat::RGBA8)) @@ -129,4 +129,4 @@ bool cocos2d::Image::saveToFile(std::string_view filename, bool isToRGB) return true; } -NS_CC_END +NS_AX_END diff --git a/core/platform/ios/CCInputView-ios.mm b/core/platform/ios/CCInputView-ios.mm index 0da604a36b..09748b5fbb 100644 --- a/core/platform/ios/CCInputView-ios.mm +++ b/core/platform/ios/CCInputView-ios.mm @@ -98,7 +98,7 @@ THE SOFTWARE. [self.myMarkedText release]; self.myMarkedText = nil; } - cocos2d::IMEDispatcher::sharedDispatcher()->dispatchDeleteBackward(); + axis::IMEDispatcher::sharedDispatcher()->dispatchDeleteBackward(); } - (void)insertText:(nonnull NSString*)text @@ -109,7 +109,7 @@ THE SOFTWARE. self.myMarkedText = nil; } const char* pszText = [text cStringUsingEncoding:NSUTF8StringEncoding]; - cocos2d::IMEDispatcher::sharedDispatcher()->dispatchInsertText(pszText, strlen(pszText)); + axis::IMEDispatcher::sharedDispatcher()->dispatchInsertText(pszText, strlen(pszText)); } - (NSWritingDirection)baseWritingDirectionForPosition:(nonnull UITextPosition*)position @@ -251,7 +251,7 @@ THE SOFTWARE. return; } const char* pszText = [self.myMarkedText cStringUsingEncoding:NSUTF8StringEncoding]; - cocos2d::IMEDispatcher::sharedDispatcher()->dispatchInsertText(pszText, strlen(pszText)); + axis::IMEDispatcher::sharedDispatcher()->dispatchInsertText(pszText, strlen(pszText)); [self.myMarkedText release]; self.myMarkedText = nil; } diff --git a/core/platform/linux/CCApplication-linux.cpp b/core/platform/linux/CCApplication-linux.cpp index 4773144256..7d7b6580b2 100644 --- a/core/platform/linux/CCApplication-linux.cpp +++ b/core/platform/linux/CCApplication-linux.cpp @@ -32,7 +32,7 @@ THE SOFTWARE. #include "base/ccUtils.h" #include "platform/CCFileUtils.h" -NS_CC_BEGIN +NS_AX_BEGIN // sharedApplication pointer Application* Application::sm_pSharedApplication = nullptr; @@ -185,4 +185,4 @@ LanguageType Application::getCurrentLanguage() return utils::getLanguageTypeByISO2(pLanguageName); } -NS_CC_END +NS_AX_END diff --git a/core/platform/linux/CCApplication-linux.h b/core/platform/linux/CCApplication-linux.h index e2c548f5ab..fdcb1933b5 100644 --- a/core/platform/linux/CCApplication-linux.h +++ b/core/platform/linux/CCApplication-linux.h @@ -30,7 +30,7 @@ THE SOFTWARE. #include #include -NS_CC_BEGIN +NS_AX_BEGIN class Rect; class Application : public ApplicationProtocol @@ -111,4 +111,4 @@ protected: static Application* sm_pSharedApplication; }; -NS_CC_END +NS_AX_END diff --git a/core/platform/linux/CCCommon-linux.cpp b/core/platform/linux/CCCommon-linux.cpp index 2b257a1328..4f01e52834 100644 --- a/core/platform/linux/CCCommon-linux.cpp +++ b/core/platform/linux/CCCommon-linux.cpp @@ -27,7 +27,7 @@ THE SOFTWARE. #include "platform/linux/CCStdC-linux.h" #include "base/CCConsole.h" -NS_CC_BEGIN +NS_AX_BEGIN void ccMessageBox(const char* msg, const char* title) { @@ -39,4 +39,4 @@ void LuaLog(const char* format) puts(format); } -NS_CC_END +NS_AX_END diff --git a/core/platform/linux/CCDevice-linux.cpp b/core/platform/linux/CCDevice-linux.cpp index 21b529ad16..297bcbacc6 100644 --- a/core/platform/linux/CCDevice-linux.cpp +++ b/core/platform/linux/CCDevice-linux.cpp @@ -79,7 +79,7 @@ struct LineBreakLine } }; -NS_CC_BEGIN +NS_AX_BEGIN int Device::getDPI() { @@ -389,8 +389,8 @@ public: std::transform(lowerCasePath.begin(), lowerCasePath.end(), lowerCasePath.begin(), ::tolower); if (lowerCasePath.find(".ttf") != std::string::npos) { - fontPath = cocos2d::FileUtils::getInstance()->fullPathForFilename(fontPath); - auto fileStream = cocos2d::FileUtils::getInstance()->openFileStream(fontPath, FileStream::Mode::READ); + fontPath = axis::FileUtils::getInstance()->fullPathForFilename(fontPath); + auto fileStream = axis::FileUtils::getInstance()->openFileStream(fontPath, FileStream::Mode::READ); if (fileStream) { fontCache.insert(std::pair(family_name, fontPath)); @@ -574,4 +574,4 @@ void Device::setKeepScreenOn(bool /*value*/) {} void Device::vibrate(float /*duration*/) {} -NS_CC_END +NS_AX_END diff --git a/core/platform/linux/CCFileUtils-linux.cpp b/core/platform/linux/CCFileUtils-linux.cpp index d888c08e40..4aac1a8b99 100644 --- a/core/platform/linux/CCFileUtils-linux.cpp +++ b/core/platform/linux/CCFileUtils-linux.cpp @@ -38,7 +38,7 @@ using namespace std; #define DECLARE_GUARD (void)0 // std::lock_guard mutexGuard(_mutex) -NS_CC_BEGIN +NS_AX_BEGIN FileUtils* FileUtils::getInstance() { @@ -117,4 +117,4 @@ bool FileUtilsLinux::isFileExistInternal(std::string_view path) const return (stat(path.data(), &sts) == 0) && S_ISREG(sts.st_mode); } -NS_CC_END +NS_AX_END diff --git a/core/platform/linux/CCFileUtils-linux.h b/core/platform/linux/CCFileUtils-linux.h index 2a17b63b7d..cb27c0c02b 100644 --- a/core/platform/linux/CCFileUtils-linux.h +++ b/core/platform/linux/CCFileUtils-linux.h @@ -31,7 +31,7 @@ THE SOFTWARE. #include #include -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup platform @@ -62,4 +62,4 @@ private: // end of platform group /// @} -NS_CC_END +NS_AX_END diff --git a/core/platform/mac/CCApplication-mac.h b/core/platform/mac/CCApplication-mac.h index 87b51f3cce..635fa06431 100644 --- a/core/platform/mac/CCApplication-mac.h +++ b/core/platform/mac/CCApplication-mac.h @@ -30,7 +30,7 @@ THE SOFTWARE. #include #include -NS_CC_BEGIN +NS_AX_BEGIN class CC_DLL Application : public ApplicationProtocol { @@ -105,4 +105,4 @@ protected: std::string _startupScriptFilename; }; -NS_CC_END +NS_AX_END diff --git a/core/platform/mac/CCApplication-mac.mm b/core/platform/mac/CCApplication-mac.mm index d2d96d74dc..ff44955a95 100644 --- a/core/platform/mac/CCApplication-mac.mm +++ b/core/platform/mac/CCApplication-mac.mm @@ -35,7 +35,7 @@ THE SOFTWARE. #include "base/ccUtils.h" #include "renderer/backend/metal/DeviceMTL.h" -NS_CC_BEGIN +NS_AX_BEGIN Application* Application::sm_pSharedApplication = nullptr; @@ -178,4 +178,4 @@ std::string_view Application::getStartupScriptFilename() return _startupScriptFilename; } -NS_CC_END +NS_AX_END diff --git a/core/platform/mac/CCCommon-mac.mm b/core/platform/mac/CCCommon-mac.mm index 7cd751fc6b..32f3fd8b9e 100644 --- a/core/platform/mac/CCCommon-mac.mm +++ b/core/platform/mac/CCCommon-mac.mm @@ -31,7 +31,7 @@ THE SOFTWARE. #include #include -NS_CC_BEGIN +NS_AX_BEGIN void LuaLog(const char* format) { @@ -55,4 +55,4 @@ void ccMessageBox(const char* msg, const char* title) [alert beginSheetModalForWindow:window completionHandler:nil]; } -NS_CC_END +NS_AX_END diff --git a/core/platform/mac/CCDevice-mac.mm b/core/platform/mac/CCDevice-mac.mm index 018a8ef24a..2458a0d452 100644 --- a/core/platform/mac/CCDevice-mac.mm +++ b/core/platform/mac/CCDevice-mac.mm @@ -30,7 +30,7 @@ THE SOFTWARE. #include "base/ccTypes.h" #include "platform/apple/CCDevice-apple.h" -NS_CC_BEGIN +NS_AX_BEGIN static NSAttributedString* __attributedStringWithFontSize(NSMutableAttributedString* attributedString, CGFloat fontSize) { @@ -243,7 +243,7 @@ static NSFont* _createSystemFont(const char* fontName, int size) return font; } -static CGFloat _calculateTextDrawStartHeight(cocos2d::Device::TextAlign align, CGSize realDimensions, CGSize dimensions) +static CGFloat _calculateTextDrawStartHeight(axis::Device::TextAlign align, CGSize realDimensions, CGSize dimensions) { float startH = 0; // vertical alignment @@ -432,4 +432,4 @@ void Device::setKeepScreenOn(bool value) {} void Device::vibrate(float duration) {} -NS_CC_END +NS_AX_END diff --git a/core/platform/mac/CCGLViewImpl-mac.h b/core/platform/mac/CCGLViewImpl-mac.h index a7a4424db2..b1bceb5e98 100644 --- a/core/platform/mac/CCGLViewImpl-mac.h +++ b/core/platform/mac/CCGLViewImpl-mac.h @@ -50,7 +50,7 @@ THE SOFTWARE. # include "glfw3native.h" #endif // #if (CC_TARGET_PLATFORM == CC_PLATFORM_MAC) -NS_CC_BEGIN +NS_AX_BEGIN class GLFWEventHandler; class CC_DLL GLViewImpl : public GLView @@ -194,4 +194,4 @@ private: CC_DISALLOW_COPY_AND_ASSIGN(GLViewImpl); }; -NS_CC_END // end of namespace cocos2d +NS_AX_END // end of namespace cocos2d diff --git a/core/platform/mac/CCGLViewImpl-mac.mm b/core/platform/mac/CCGLViewImpl-mac.mm index 5304cdbc41..22f825d7d2 100644 --- a/core/platform/mac/CCGLViewImpl-mac.mm +++ b/core/platform/mac/CCGLViewImpl-mac.mm @@ -46,7 +46,7 @@ THE SOFTWARE. #include "renderer/CCRenderer.h" #include "renderer/backend/metal/UtilsMTL.h" -NS_CC_BEGIN +NS_AX_BEGIN class GLFWEventHandler { @@ -888,14 +888,14 @@ void GLViewImpl::onGLFWMouseCallBack(GLFWwindow* /*window*/, int button, int act { EventMouse event(EventMouse::MouseEventType::MOUSE_DOWN); event.setCursorPosition(cursorX, cursorY); - event.setMouseButton(static_cast(button)); + event.setMouseButton(static_cast(button)); Director::getInstance()->getEventDispatcher()->dispatchEvent(&event); } else if (GLFW_RELEASE == action) { EventMouse event(EventMouse::MouseEventType::MOUSE_UP); event.setCursorPosition(cursorX, cursorY); - event.setMouseButton(static_cast(button)); + event.setMouseButton(static_cast(button)); Director::getInstance()->getEventDispatcher()->dispatchEvent(&event); } } @@ -931,15 +931,15 @@ void GLViewImpl::onGLFWMouseMoveCallBack(GLFWwindow* window, double x, double y) // Set current button if (glfwGetMouseButton(window, GLFW_MOUSE_BUTTON_LEFT) == GLFW_PRESS) { - event.setMouseButton(static_cast(GLFW_MOUSE_BUTTON_LEFT)); + event.setMouseButton(static_cast(GLFW_MOUSE_BUTTON_LEFT)); } else if (glfwGetMouseButton(window, GLFW_MOUSE_BUTTON_RIGHT) == GLFW_PRESS) { - event.setMouseButton(static_cast(GLFW_MOUSE_BUTTON_RIGHT)); + event.setMouseButton(static_cast(GLFW_MOUSE_BUTTON_RIGHT)); } else if (glfwGetMouseButton(window, GLFW_MOUSE_BUTTON_MIDDLE) == GLFW_PRESS) { - event.setMouseButton(static_cast(GLFW_MOUSE_BUTTON_MIDDLE)); + event.setMouseButton(static_cast(GLFW_MOUSE_BUTTON_MIDDLE)); } event.setCursorPosition(cursorX, cursorY); Director::getInstance()->getEventDispatcher()->dispatchEvent(&event); @@ -1063,4 +1063,4 @@ void GLViewImpl::onGLFWWindowFocusCallback(GLFWwindow* /*window*/, int focused) } } -NS_CC_END // end of namespace cocos2d; +NS_AX_END // end of namespace axis; diff --git a/core/platform/win32/CCApplication-win32.cpp b/core/platform/win32/CCApplication-win32.cpp index 9796212d70..8bf743da57 100644 --- a/core/platform/win32/CCApplication-win32.cpp +++ b/core/platform/win32/CCApplication-win32.cpp @@ -40,7 +40,7 @@ THE SOFTWARE. */ static void PVRFrameEnableControlWindow(bool bEnable); -NS_CC_BEGIN +NS_AX_BEGIN // sharedApplication pointer Application* Application::sm_pSharedApplication = nullptr; @@ -319,7 +319,7 @@ void Application::setStartupScriptFilename(std::string_view startupScriptFile) std::replace(_startupScriptFilename.begin(), _startupScriptFilename.end(), '\\', '/'); } -NS_CC_END +NS_AX_END ////////////////////////////////////////////////////////////////////////// // Local function diff --git a/core/platform/win32/CCApplication-win32.h b/core/platform/win32/CCApplication-win32.h index ce133516a0..d31ced54f1 100644 --- a/core/platform/win32/CCApplication-win32.h +++ b/core/platform/win32/CCApplication-win32.h @@ -30,7 +30,7 @@ THE SOFTWARE. #include "platform/CCApplicationProtocol.h" #include -NS_CC_BEGIN +NS_AX_BEGIN class CC_DLL Application : public ApplicationProtocol { @@ -106,4 +106,4 @@ protected: static Application* sm_pSharedApplication; }; -NS_CC_END +NS_AX_END diff --git a/core/platform/win32/CCCommon-win32.cpp b/core/platform/win32/CCCommon-win32.cpp index 19b1c5c5a7..6c9c8f73af 100644 --- a/core/platform/win32/CCCommon-win32.cpp +++ b/core/platform/win32/CCCommon-win32.cpp @@ -27,9 +27,9 @@ THE SOFTWARE. #include "platform/CCStdC.h" #include "ntcvt/ntcvt.hpp" -NS_CC_BEGIN +NS_AX_BEGIN -#define MAX_LEN (cocos2d::kMaxLogLen + 1) +#define MAX_LEN (axis::kMaxLogLen + 1) void ccMessageBox(const char* pszMsg, const char* pszTitle) { @@ -47,4 +47,4 @@ void LuaLog(const char* pszMsg) _putws(wsMsg.c_str()); } -NS_CC_END +NS_AX_END diff --git a/core/platform/win32/CCDevice-win32.cpp b/core/platform/win32/CCDevice-win32.cpp index 564c722907..e18b7eebca 100644 --- a/core/platform/win32/CCDevice-win32.cpp +++ b/core/platform/win32/CCDevice-win32.cpp @@ -30,7 +30,7 @@ THE SOFTWARE. #include "ntcvt/ntcvt.hpp" -NS_CC_BEGIN +NS_AX_BEGIN int Device::getDPI() { @@ -481,4 +481,4 @@ void Device::vibrate(float duration) CC_UNUSED_PARAM(duration); } -NS_CC_END +NS_AX_END diff --git a/core/platform/win32/CCFileUtils-win32.cpp b/core/platform/win32/CCFileUtils-win32.cpp index 50e1bc7175..342cab1b5d 100644 --- a/core/platform/win32/CCFileUtils-win32.cpp +++ b/core/platform/win32/CCFileUtils-win32.cpp @@ -38,7 +38,7 @@ THE SOFTWARE. #define DECLARE_GUARD (void)0 // std::lock_guard mutexGuard(_mutex) -NS_CC_BEGIN +NS_AX_BEGIN #define AX_MAX_PATH 512 @@ -434,4 +434,4 @@ bool FileUtilsWin32::removeDirectory(std::string_view dirPath) const return false; } -NS_CC_END +NS_AX_END diff --git a/core/platform/win32/CCFileUtils-win32.h b/core/platform/win32/CCFileUtils-win32.h index 1265ec5ac1..6a248f28fe 100644 --- a/core/platform/win32/CCFileUtils-win32.h +++ b/core/platform/win32/CCFileUtils-win32.h @@ -33,7 +33,7 @@ THE SOFTWARE. #include #include -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup platform @@ -140,4 +140,4 @@ protected: // end of platform group /// @} -NS_CC_END +NS_AX_END diff --git a/core/platform/win32/CCStdC-win32.cpp b/core/platform/win32/CCStdC-win32.cpp index 5202399c08..a1980ef935 100644 --- a/core/platform/win32/CCStdC-win32.cpp +++ b/core/platform/win32/CCStdC-win32.cpp @@ -27,7 +27,7 @@ THE SOFTWARE. #ifndef __MINGW32__ -NS_CC_BEGIN +NS_AX_BEGIN int gettimeofday(struct timeval* val, struct timezone*) { @@ -42,6 +42,6 @@ int gettimeofday(struct timeval* val, struct timezone*) return 0; } -NS_CC_END +NS_AX_END #endif // __MINGW32__ diff --git a/core/platform/win32/CCStdC-win32.h b/core/platform/win32/CCStdC-win32.h index aa0bdb4c8a..ad177da6a6 100644 --- a/core/platform/win32/CCStdC-win32.h +++ b/core/platform/win32/CCStdC-win32.h @@ -98,7 +98,7 @@ typedef SSIZE_T ssize_t; // Structure timeval has define in winsock.h, include windows.h for it. # include -NS_CC_BEGIN +NS_AX_BEGIN struct timezone { @@ -108,7 +108,7 @@ struct timezone int CC_DLL gettimeofday(struct timeval*, struct timezone*); -NS_CC_END +NS_AX_END #else diff --git a/core/renderer/CCCallbackCommand.cpp b/core/renderer/CCCallbackCommand.cpp index c11d661d5c..fd7c175971 100644 --- a/core/renderer/CCCallbackCommand.cpp +++ b/core/renderer/CCCallbackCommand.cpp @@ -25,7 +25,7 @@ #include "renderer/CCCallbackCommand.h" #include "renderer/backend/Device.h" -NS_CC_BEGIN +NS_AX_BEGIN static uint64_t s_nextId = 1; @@ -59,4 +59,4 @@ void CallbackCommand::execute() func(); } -NS_CC_END +NS_AX_END diff --git a/core/renderer/CCCallbackCommand.h b/core/renderer/CCCallbackCommand.h index b1e4371dc5..7b8d6c467c 100644 --- a/core/renderer/CCCallbackCommand.h +++ b/core/renderer/CCCallbackCommand.h @@ -33,7 +33,7 @@ * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN namespace backend { @@ -71,7 +71,7 @@ public: std::function func; }; -NS_CC_END +NS_AX_END /** end of support group @} diff --git a/core/renderer/CCColorizer.cpp b/core/renderer/CCColorizer.cpp index 34683b49a6..34f55d571f 100644 --- a/core/renderer/CCColorizer.cpp +++ b/core/renderer/CCColorizer.cpp @@ -5,7 +5,7 @@ #include "renderer/backend/ProgramCache.h" #include "renderer/backend/Device.h" -NS_CC_BEGIN +NS_AX_BEGIN #define FLT_SQRT_2 1.4142135623730950488016887242097 #define FLT_SQRT_3 1.7320508075688772935274463415059 @@ -863,4 +863,4 @@ void Colorizer::updateNodeHsv(Node* node, const Vec3& hsv, const Vec3& filter) programState->updateUniformID(); } -NS_CC_END +NS_AX_END diff --git a/core/renderer/CCColorizer.h b/core/renderer/CCColorizer.h index 4a1f412692..0aa10ff499 100644 --- a/core/renderer/CCColorizer.h +++ b/core/renderer/CCColorizer.h @@ -10,7 +10,7 @@ # include "base/ccTypes.h" # include -NS_CC_BEGIN +NS_AX_BEGIN class CC_DLL Colorizer { public: @@ -18,6 +18,6 @@ public: static void updateNodeHsv(Node* node, const Vec3& hsv, const Vec3& filter = Vec3(1.0f, 0.45f, 0.3109f)); }; -NS_CC_END +NS_AX_END #endif diff --git a/core/renderer/CCCustomCommand.cpp b/core/renderer/CCCustomCommand.cpp index 7deb0e12a8..f14c9cce2b 100644 --- a/core/renderer/CCCustomCommand.cpp +++ b/core/renderer/CCCustomCommand.cpp @@ -29,7 +29,7 @@ #include "base/ccUtils.h" #include -NS_CC_BEGIN +NS_AX_BEGIN CustomCommand::CustomCommand() { @@ -114,7 +114,7 @@ void CustomCommand::assign(CustomCommand&& rhs) # pragma GCC diagnostic pop #endif -void CustomCommand::init(float depth, const cocos2d::Mat4& modelViewTransform, unsigned int flags) +void CustomCommand::init(float depth, const axis::Mat4& modelViewTransform, unsigned int flags) { RenderCommand::init(depth, modelViewTransform, flags); } @@ -213,4 +213,4 @@ std::size_t CustomCommand::computeIndexSize() const return sizeof(unsigned int); } -NS_CC_END +NS_AX_END diff --git a/core/renderer/CCCustomCommand.h b/core/renderer/CCCustomCommand.h index 607a707a83..a9169df0f0 100644 --- a/core/renderer/CCCustomCommand.h +++ b/core/renderer/CCCustomCommand.h @@ -31,7 +31,7 @@ * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN namespace backend { @@ -252,7 +252,7 @@ protected: CallBackFunc _afterCallback = nullptr; }; -NS_CC_END +NS_AX_END /** end of support group @} diff --git a/core/renderer/CCGroupCommand.cpp b/core/renderer/CCGroupCommand.cpp index b55814b180..21803f06f2 100644 --- a/core/renderer/CCGroupCommand.cpp +++ b/core/renderer/CCGroupCommand.cpp @@ -27,7 +27,7 @@ #include "renderer/CCRenderer.h" #include "base/CCDirector.h" -NS_CC_BEGIN +NS_AX_BEGIN GroupCommandManager::GroupCommandManager() {} @@ -84,4 +84,4 @@ GroupCommand::~GroupCommand() Director::getInstance()->getRenderer()->getGroupCommandManager()->releaseGroupID(_renderQueueID); } -NS_CC_END +NS_AX_END diff --git a/core/renderer/CCGroupCommand.h b/core/renderer/CCGroupCommand.h index f6cb4e34f6..92578b9f90 100644 --- a/core/renderer/CCGroupCommand.h +++ b/core/renderer/CCGroupCommand.h @@ -37,7 +37,7 @@ * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN // Used for internal class GroupCommandManager : public Ref @@ -79,7 +79,7 @@ protected: int _renderQueueID; }; -NS_CC_END +NS_AX_END /** end of support group diff --git a/core/renderer/CCMaterial.cpp b/core/renderer/CCMaterial.cpp index 776cce9b55..0cb537791a 100644 --- a/core/renderer/CCMaterial.cpp +++ b/core/renderer/CCMaterial.cpp @@ -44,7 +44,7 @@ # define strcasecmp _stricmp #endif -NS_CC_BEGIN +NS_AX_BEGIN namespace { @@ -165,7 +165,7 @@ void Material::draw(MeshCommand* meshCommands, } } -void Material::setTarget(cocos2d::Node* target) +void Material::setTarget(axis::Node* target) { _target = target; } @@ -592,4 +592,4 @@ static const char* getOptionalString(Properties* properties, const char* key, co return ret; } -NS_CC_END +NS_AX_END diff --git a/core/renderer/CCMaterial.h b/core/renderer/CCMaterial.h index 9344e5141e..2908d341fa 100644 --- a/core/renderer/CCMaterial.h +++ b/core/renderer/CCMaterial.h @@ -43,7 +43,7 @@ #include "math/Mat4.h" #include "platform/CCPlatformMacros.h" -NS_CC_BEGIN +NS_AX_BEGIN class Technique; class Pass; @@ -178,4 +178,4 @@ protected: int _textureSlotIndex = 0; }; -NS_CC_END +NS_AX_END diff --git a/core/renderer/CCMeshCommand.cpp b/core/renderer/CCMeshCommand.cpp index 4b4836e11d..3cfe278a70 100644 --- a/core/renderer/CCMeshCommand.cpp +++ b/core/renderer/CCMeshCommand.cpp @@ -41,7 +41,7 @@ #include "renderer/CCPass.h" #include "xxhash.h" -NS_CC_BEGIN +NS_AX_BEGIN MeshCommand::MeshCommand() #if CC_ENABLE_CACHE_TEXTURE_DATA @@ -84,4 +84,4 @@ MeshCommand::~MeshCommand() void MeshCommand::listenRendererRecreated(EventCustom* event) {} #endif -NS_CC_END +NS_AX_END diff --git a/core/renderer/CCMeshCommand.h b/core/renderer/CCMeshCommand.h index 7901688407..ce78a53ed5 100644 --- a/core/renderer/CCMeshCommand.h +++ b/core/renderer/CCMeshCommand.h @@ -33,7 +33,7 @@ #include "renderer/CCCustomCommand.h" #include "math/CCMath.h" -NS_CC_BEGIN +NS_AX_BEGIN class GLProgramState; class EventListenerCustom; @@ -83,4 +83,4 @@ protected: #endif }; -NS_CC_END +NS_AX_END diff --git a/core/renderer/CCPass.cpp b/core/renderer/CCPass.cpp index 2b1c195099..b3c27d98ff 100644 --- a/core/renderer/CCPass.cpp +++ b/core/renderer/CCPass.cpp @@ -42,7 +42,7 @@ #include "base/ccUtils.h" #include "2d/CCNode.h" -NS_CC_BEGIN +NS_AX_BEGIN // uniform names @@ -363,4 +363,4 @@ void Pass::setUniformAmbientLigthColor(const void* data, size_t dataLen) TRY_SET_UNIFORM(_locAmbientLigthColor); } -NS_CC_END +NS_AX_END diff --git a/core/renderer/CCPass.h b/core/renderer/CCPass.h index ffe4ebba0e..26963d9974 100644 --- a/core/renderer/CCPass.h +++ b/core/renderer/CCPass.h @@ -37,7 +37,7 @@ #include "renderer/CCGroupCommand.h" #include "renderer/CCCallbackCommand.h" -NS_CC_BEGIN +NS_AX_BEGIN class Technique; class Node; @@ -185,4 +185,4 @@ private: bool _rendererDepthWrite = false; }; -NS_CC_END +NS_AX_END diff --git a/core/renderer/CCPipelineDescriptor.h b/core/renderer/CCPipelineDescriptor.h index 0136159d51..8b24a2cec0 100644 --- a/core/renderer/CCPipelineDescriptor.h +++ b/core/renderer/CCPipelineDescriptor.h @@ -36,7 +36,7 @@ * @addtogroup renderer * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN struct CC_DLL PipelineDescriptor { @@ -46,4 +46,4 @@ struct CC_DLL PipelineDescriptor // end of renderer group /// @} -NS_CC_END +NS_AX_END diff --git a/core/renderer/CCQuadCommand.cpp b/core/renderer/CCQuadCommand.cpp index 71a4cf7190..3442c1095f 100644 --- a/core/renderer/CCQuadCommand.cpp +++ b/core/renderer/CCQuadCommand.cpp @@ -32,7 +32,7 @@ #include "renderer/CCTexture2D.h" #include "base/ccUtils.h" -NS_CC_BEGIN +NS_AX_BEGIN int QuadCommand::__indexCapacity = -1; uint16_t* QuadCommand::__indices = nullptr; @@ -100,4 +100,4 @@ void QuadCommand::init(float globalOrder, TrianglesCommand::init(globalOrder, texture, blendType, triangles, mv, flags); } -NS_CC_END +NS_AX_END diff --git a/core/renderer/CCQuadCommand.h b/core/renderer/CCQuadCommand.h index ef07624e38..ec36111b35 100644 --- a/core/renderer/CCQuadCommand.h +++ b/core/renderer/CCQuadCommand.h @@ -35,7 +35,7 @@ * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN /** Command used to render one or more Quads, similar to TrianglesCommand. @@ -78,7 +78,7 @@ protected: static uint16_t* __indices; }; -NS_CC_END +NS_AX_END /** end of support group diff --git a/core/renderer/CCRenderCommand.cpp b/core/renderer/CCRenderCommand.cpp index 32116d3b32..b046b8cf17 100644 --- a/core/renderer/CCRenderCommand.cpp +++ b/core/renderer/CCRenderCommand.cpp @@ -26,13 +26,13 @@ #include "2d/CCCamera.h" #include "2d/CCNode.h" -NS_CC_BEGIN +NS_AX_BEGIN RenderCommand::RenderCommand() {} RenderCommand::~RenderCommand() {} -void RenderCommand::init(float globalZOrder, const cocos2d::Mat4& transform, unsigned int flags) +void RenderCommand::init(float globalZOrder, const axis::Mat4& transform, unsigned int flags) { _globalOrder = globalZOrder; if (flags & Node::FLAGS_RENDER_AS_3D) @@ -54,4 +54,4 @@ void RenderCommand::printID() printf("Command Depth: %f\n", _globalOrder); } -NS_CC_END +NS_AX_END diff --git a/core/renderer/CCRenderCommand.h b/core/renderer/CCRenderCommand.h index 8e3a61d72b..7804bb1fbc 100644 --- a/core/renderer/CCRenderCommand.h +++ b/core/renderer/CCRenderCommand.h @@ -33,7 +33,7 @@ * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN /** Base class of the `RenderCommand` hierarchy. * @@ -131,7 +131,7 @@ protected: PipelineDescriptor _pipelineDescriptor; }; -NS_CC_END +NS_AX_END /** end of support group @} diff --git a/core/renderer/CCRenderCommandPool.h b/core/renderer/CCRenderCommandPool.h index 1f89e3f9d3..17474a772d 100644 --- a/core/renderer/CCRenderCommandPool.h +++ b/core/renderer/CCRenderCommandPool.h @@ -31,7 +31,7 @@ #include "platform/CCPlatformMacros.h" -NS_CC_BEGIN +NS_AX_BEGIN template class RenderCommandPool @@ -95,7 +95,7 @@ private: // std::set _usedPool; }; -NS_CC_END +NS_AX_END /// @endcond #endif diff --git a/core/renderer/CCRenderState.cpp b/core/renderer/CCRenderState.cpp index 6863ff889e..cb34e99396 100644 --- a/core/renderer/CCRenderState.cpp +++ b/core/renderer/CCRenderState.cpp @@ -37,7 +37,7 @@ #include "renderer/CCRenderer.h" #include "renderer/CCMaterial.h" -NS_CC_BEGIN +NS_AX_BEGIN std::string RenderState::getName() const { @@ -409,4 +409,4 @@ void RenderState::StateBlock::setDepthFunction(DepthFunction func) _modifiedBits |= RS_DEPTH_FUNC; } -NS_CC_END +NS_AX_END diff --git a/core/renderer/CCRenderState.h b/core/renderer/CCRenderState.h index 0f29da0b1d..1a36017f33 100644 --- a/core/renderer/CCRenderState.h +++ b/core/renderer/CCRenderState.h @@ -39,7 +39,7 @@ #include "renderer/backend/Types.h" #include "renderer/CCMeshCommand.h" -NS_CC_BEGIN +NS_AX_BEGIN class Texture2D; class Pass; @@ -258,4 +258,4 @@ protected: std::string _name; }; -NS_CC_END +NS_AX_END diff --git a/core/renderer/CCRenderer.cpp b/core/renderer/CCRenderer.cpp index ec501607ff..e8ba9d3197 100644 --- a/core/renderer/CCRenderer.cpp +++ b/core/renderer/CCRenderer.cpp @@ -50,7 +50,7 @@ #include "renderer/backend/Backend.h" #include "renderer/backend/RenderTarget.h" -NS_CC_BEGIN +NS_AX_BEGIN // helper static bool compareRenderCommand(RenderCommand* a, RenderCommand* b) @@ -1038,4 +1038,4 @@ void Renderer::popStateBlock() _stateBlockStack.pop_back(); } -NS_CC_END +NS_AX_END diff --git a/core/renderer/CCRenderer.h b/core/renderer/CCRenderer.h index 35e9fe0c37..8f479cfa7d 100644 --- a/core/renderer/CCRenderer.h +++ b/core/renderer/CCRenderer.h @@ -38,7 +38,7 @@ * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN using CullMode = backend::CullMode; using Winding = backend::Winding; @@ -571,7 +571,7 @@ protected: std::deque _stateBlockStack; }; -NS_CC_END +NS_AX_END /** end of support group diff --git a/core/renderer/CCTechnique.cpp b/core/renderer/CCTechnique.cpp index 7366f07bca..35d3d30a47 100644 --- a/core/renderer/CCTechnique.cpp +++ b/core/renderer/CCTechnique.cpp @@ -32,7 +32,7 @@ #include "renderer/CCMaterial.h" #include "renderer/CCPass.h" -NS_CC_BEGIN +NS_AX_BEGIN Technique* Technique::createWithProgramState(Material* parent, backend::ProgramState* state) { @@ -119,4 +119,4 @@ const Vector& Technique::getPasses() const return _passes; } -NS_CC_END +NS_AX_END diff --git a/core/renderer/CCTechnique.h b/core/renderer/CCTechnique.h index c13341ba0a..8b4dbd6b99 100644 --- a/core/renderer/CCTechnique.h +++ b/core/renderer/CCTechnique.h @@ -35,7 +35,7 @@ #include "platform/CCPlatformMacros.h" #include "base/CCVector.h" -NS_CC_BEGIN +NS_AX_BEGIN class Pass; class Material; @@ -99,4 +99,4 @@ protected: Material* _material = nullptr; }; -NS_CC_END +NS_AX_END diff --git a/core/renderer/CCTexture2D.cpp b/core/renderer/CCTexture2D.cpp index 351ad1bfbf..f9c206e2b3 100644 --- a/core/renderer/CCTexture2D.cpp +++ b/core/renderer/CCTexture2D.cpp @@ -54,7 +54,7 @@ THE SOFTWARE. # include "renderer/CCTextureCache.h" #endif -NS_CC_BEGIN +NS_AX_BEGIN // CLASS IMPLEMENTATIONS: @@ -678,7 +678,7 @@ bool Texture2D::isContain9PatchInfo() const return nullptr != _ninePatchInfo; } -const Rect& Texture2D::getSpriteFrameCapInset(cocos2d::SpriteFrame* spriteFrame) const +const Rect& Texture2D::getSpriteFrameCapInset(axis::SpriteFrame* spriteFrame) const { CCASSERT(_ninePatchInfo != nullptr, "Can't get the sprite frame capInset when the texture contains no 9-patch info."); @@ -733,7 +733,7 @@ void Texture2D::initProgram() auto& pipelineDescriptor = _customCommand.getPipelineDescriptor(); // create program state auto* program = backend::Program::getBuiltinProgram(backend::ProgramType::POSITION_TEXTURE); - _programState = new cocos2d::backend::ProgramState(program); + _programState = new axis::backend::ProgramState(program); _mvpMatrixLocation = _programState->getUniformLocation("u_MVPMatrix"); _textureLocation = _programState->getUniformLocation("u_tex0"); @@ -817,4 +817,4 @@ void Texture2D::drawInRect(const Rect& rect, float globalZOrder) Director::getInstance()->getRenderer()->addCommand(&_customCommand); } -NS_CC_END +NS_AX_END diff --git a/core/renderer/CCTexture2D.h b/core/renderer/CCTexture2D.h index 837adfdea1..f8fcd106c8 100644 --- a/core/renderer/CCTexture2D.h +++ b/core/renderer/CCTexture2D.h @@ -36,7 +36,7 @@ THE SOFTWARE. #include "base/ccTypes.h" #include "renderer/CCCustomCommand.h" -NS_CC_BEGIN +NS_AX_BEGIN class Image; class NinePatchInfo; @@ -460,4 +460,4 @@ protected: // end of textures group /// @} -NS_CC_END +NS_AX_END diff --git a/core/renderer/CCTextureAtlas.cpp b/core/renderer/CCTextureAtlas.cpp index c9ee100a30..a32d30da72 100644 --- a/core/renderer/CCTextureAtlas.cpp +++ b/core/renderer/CCTextureAtlas.cpp @@ -45,7 +45,7 @@ THE SOFTWARE. // implementation TextureAtlas -NS_CC_BEGIN +NS_AX_BEGIN TextureAtlas::TextureAtlas() {} @@ -476,4 +476,4 @@ void TextureAtlas::fillWithEmptyQuadsFromIndex(ssize_t index, ssize_t amount) } } -NS_CC_END +NS_AX_END diff --git a/core/renderer/CCTextureAtlas.h b/core/renderer/CCTextureAtlas.h index 4e3950ed7f..971353e03e 100644 --- a/core/renderer/CCTextureAtlas.h +++ b/core/renderer/CCTextureAtlas.h @@ -33,7 +33,7 @@ THE SOFTWARE. #include "base/CCRef.h" #include "base/ccConfig.h" -NS_CC_BEGIN +NS_AX_BEGIN class Texture2D; class EventCustom; @@ -247,4 +247,4 @@ protected: // end of textures group /// @} -NS_CC_END +NS_AX_END diff --git a/core/renderer/CCTextureCache.cpp b/core/renderer/CCTextureCache.cpp index b8ecc979f3..1fa66a7573 100644 --- a/core/renderer/CCTextureCache.cpp +++ b/core/renderer/CCTextureCache.cpp @@ -47,7 +47,7 @@ THE SOFTWARE. using namespace std; -NS_CC_BEGIN +NS_AX_BEGIN std::string TextureCache::s_etc1AlphaFileSuffix = "@alpha"; @@ -457,7 +457,7 @@ Texture2D* TextureCache::addImage(std::string_view path, PixelFormat format) return texture; } -void TextureCache::parseNinePatchImage(cocos2d::Image* image, cocos2d::Texture2D* texture, std::string_view path) +void TextureCache::parseNinePatchImage(axis::Image* image, axis::Texture2D* texture, std::string_view path) { if (NinePatchImageParser::isNinePatchImage(path)) { @@ -629,7 +629,7 @@ Texture2D* TextureCache::getTextureForKey(std::string_view textureKeyName) const return nullptr; } -std::string TextureCache::getTextureFilePath(cocos2d::Texture2D* texture) const +std::string TextureCache::getTextureFilePath(axis::Texture2D* texture) const { for (auto& item : _textures) { @@ -891,4 +891,4 @@ void VolatileTextureMgr::reloadTexture(Texture2D* texture, std::string_view file #endif // CC_ENABLE_CACHE_TEXTURE_DATA -NS_CC_END +NS_AX_END diff --git a/core/renderer/CCTextureCache.h b/core/renderer/CCTextureCache.h index 9d8be7c214..a8db9976b2 100644 --- a/core/renderer/CCTextureCache.h +++ b/core/renderer/CCTextureCache.h @@ -47,7 +47,7 @@ THE SOFTWARE. # include #endif -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup _2d @@ -306,6 +306,6 @@ private: // end of textures group /// @} -NS_CC_END +NS_AX_END #endif //__CCTEXTURE_CACHE_H__ diff --git a/core/renderer/CCTextureCube.cpp b/core/renderer/CCTextureCube.cpp index e0242bc342..7a80f4ed14 100644 --- a/core/renderer/CCTextureCube.cpp +++ b/core/renderer/CCTextureCube.cpp @@ -32,7 +32,7 @@ #include "renderer/backend/Device.h" #include "renderer/backend/PixelFormatUtils.h" -NS_CC_BEGIN +NS_AX_BEGIN unsigned char* getImageData(Image* img, backend::PixelFormat& ePixFmt) { @@ -272,4 +272,4 @@ bool TextureCube::reloadTexture() return init(_imgPath[0], _imgPath[1], _imgPath[2], _imgPath[3], _imgPath[4], _imgPath[5]); } -NS_CC_END +NS_AX_END diff --git a/core/renderer/CCTextureCube.h b/core/renderer/CCTextureCube.h index 4e10358633..dc29227cdf 100644 --- a/core/renderer/CCTextureCube.h +++ b/core/renderer/CCTextureCube.h @@ -33,7 +33,7 @@ #include #include "base/ccTypes.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup _3d @@ -101,6 +101,6 @@ private: // end of 3d group /// @} -NS_CC_END +NS_AX_END #endif // __CCTEXTURECUBE_H__ diff --git a/core/renderer/CCTrianglesCommand.cpp b/core/renderer/CCTrianglesCommand.cpp index bbe4c18b38..bbe3a2575d 100644 --- a/core/renderer/CCTrianglesCommand.cpp +++ b/core/renderer/CCTrianglesCommand.cpp @@ -28,7 +28,7 @@ #include "renderer/CCTexture2D.h" #include "base//ccUtils.h" -NS_CC_BEGIN +NS_AX_BEGIN TrianglesCommand::TrianglesCommand() { @@ -110,4 +110,4 @@ void TrianglesCommand::generateMaterialID() _materialID = XXH32((const void*)&hashMe, sizeof(hashMe), 0); } -NS_CC_END +NS_AX_END diff --git a/core/renderer/CCTrianglesCommand.h b/core/renderer/CCTrianglesCommand.h index 389d587a7f..d26052dea9 100644 --- a/core/renderer/CCTrianglesCommand.h +++ b/core/renderer/CCTrianglesCommand.h @@ -32,7 +32,7 @@ * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN /** Command used to render one or more Triangles, which is similar to QuadCommand. Every TrianglesCommand will have generate material ID by give textureID, glProgramState, Blend function @@ -82,7 +82,7 @@ public: @param flags to indicate that the command is using 3D rendering or not. */ void init(float globalOrder, - cocos2d::Texture2D* texture, + axis::Texture2D* texture, const BlendFunc& blendType, const Triangles& triangles, const Mat4& mv, @@ -122,7 +122,7 @@ protected: backend::TextureBackend* _texture = nullptr; }; -NS_CC_END +NS_AX_END /** end of support group @} diff --git a/core/renderer/backend/Buffer.h b/core/renderer/backend/Buffer.h index 9efe6c06dd..380d4ab17e 100644 --- a/core/renderer/backend/Buffer.h +++ b/core/renderer/backend/Buffer.h @@ -28,13 +28,13 @@ #include "Types.h" #include "base/CCRef.h" -namespace cocos2d -{ +NS_AX_BEGIN + class MeshVertexData; class MeshIndexData; -} // namespace cocos2d +NS_AX_END // namespace axis -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN /** * @addtogroup _backend @@ -44,7 +44,7 @@ CC_BACKEND_BEGIN /** * @brief Used to store vertex and index data data. */ -class Buffer : public cocos2d::Ref +class Buffer : public axis::Ref { public: /** @@ -98,4 +98,4 @@ protected: // end of _backend group /// @} -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/CommandBuffer.cpp b/core/renderer/backend/CommandBuffer.cpp index ccfe3f8e93..466ac83a54 100644 --- a/core/renderer/backend/CommandBuffer.cpp +++ b/core/renderer/backend/CommandBuffer.cpp @@ -24,7 +24,7 @@ #include "CommandBuffer.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN void CommandBuffer::setStencilReferenceValue(uint32_t value) { @@ -37,4 +37,4 @@ void CommandBuffer::setStencilReferenceValue(unsigned int frontRef, unsigned int _stencilReferenceValueBack = backRef; } -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/CommandBuffer.h b/core/renderer/backend/CommandBuffer.h index f28b98cfe7..aba40bd294 100644 --- a/core/renderer/backend/CommandBuffer.h +++ b/core/renderer/backend/CommandBuffer.h @@ -40,7 +40,7 @@ #include #include -NS_CC_BEGIN +NS_AX_BEGIN struct PipelineDescriptor; namespace backend @@ -63,7 +63,7 @@ struct DepthStencilDescriptor; * @brief Store encoded commands for the GPU to execute. * A command buffer stores encoded commands until the buffer is committed for execution by the GPU */ -class CommandBuffer : public cocos2d::Ref +class CommandBuffer : public axis::Ref { public: /** @@ -221,4 +221,4 @@ protected: // end of _backend group /// @} -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/DepthStencilState.cpp b/core/renderer/backend/DepthStencilState.cpp index 2625fffa06..ca654d4b36 100644 --- a/core/renderer/backend/DepthStencilState.cpp +++ b/core/renderer/backend/DepthStencilState.cpp @@ -25,7 +25,7 @@ #include "DepthStencilState.h" #include "RenderTarget.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN bool StencilDescriptor::operator==(const StencilDescriptor& rhs) const { @@ -43,4 +43,4 @@ void DepthStencilState::update(const DepthStencilDescriptor& dsDesc) _isBackFrontStencilEqual = dsDesc.backFaceStencil == dsDesc.frontFaceStencil; } -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/DepthStencilState.h b/core/renderer/backend/DepthStencilState.h index 79d93ca1a2..640eecffd8 100644 --- a/core/renderer/backend/DepthStencilState.h +++ b/core/renderer/backend/DepthStencilState.h @@ -29,7 +29,7 @@ #include "base/CCRef.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN class RenderTarget; /** @@ -69,7 +69,7 @@ struct DepthStencilDescriptor /** * Store Depth and stencil status. */ -class DepthStencilState : public cocos2d::Ref +class DepthStencilState : public axis::Ref { public: virtual void update(const DepthStencilDescriptor& desc); @@ -89,4 +89,4 @@ protected: // end of _backend group /// @} -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/Device.cpp b/core/renderer/backend/Device.cpp index 7794094cc5..bafcf5f1e2 100644 --- a/core/renderer/backend/Device.cpp +++ b/core/renderer/backend/Device.cpp @@ -24,8 +24,8 @@ #include "Device.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN Device* Device::_instance = nullptr; -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/Device.h b/core/renderer/backend/Device.h index a67c40734d..a8cff2254a 100644 --- a/core/renderer/backend/Device.h +++ b/core/renderer/backend/Device.h @@ -37,7 +37,7 @@ #include -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN class CommandBuffer; class Buffer; @@ -54,7 +54,7 @@ class RenderTarget; /** * New or create resources from Device. */ -class CC_DLL Device : public cocos2d::Ref +class CC_DLL Device : public axis::Ref { public: friend class ProgramCache; @@ -150,4 +150,4 @@ private: // end of _backend group /// @} -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/DeviceInfo.h b/core/renderer/backend/DeviceInfo.h index 4d900d6569..83b62bdafb 100644 --- a/core/renderer/backend/DeviceInfo.h +++ b/core/renderer/backend/DeviceInfo.h @@ -28,7 +28,7 @@ #include "Macros.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN enum class FeatureType : uint32_t { @@ -130,4 +130,4 @@ protected: // end of _backend group /// @} -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/Enums.h b/core/renderer/backend/Enums.h index 7baf0a2465..d656ad61b7 100644 --- a/core/renderer/backend/Enums.h +++ b/core/renderer/backend/Enums.h @@ -32,7 +32,7 @@ #include #include "base/bitmask.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN enum class BufferUsage : uint32_t { @@ -372,4 +372,4 @@ struct ProgramType }; }; -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/Macros.h b/core/renderer/backend/Macros.h index f901396aac..a82235311e 100644 --- a/core/renderer/backend/Macros.h +++ b/core/renderer/backend/Macros.h @@ -25,12 +25,12 @@ #pragma once -#define CC_BACKEND_BEGIN \ - namespace cocos2d \ +#define NS_AX_BACKEND_BEGIN \ + namespace axis \ { \ namespace backend \ { -#define CC_BACKEND_END \ +#define NS_AX_BACKEND_END \ } \ } diff --git a/core/renderer/backend/PixelBufferDescriptor.h b/core/renderer/backend/PixelBufferDescriptor.h index 9b9087adc1..14d71d3da2 100644 --- a/core/renderer/backend/PixelBufferDescriptor.h +++ b/core/renderer/backend/PixelBufferDescriptor.h @@ -4,7 +4,7 @@ #include "Macros.h" #include "Types.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN struct PixelBufferDescriptor { @@ -21,4 +21,4 @@ struct PixelBufferDescriptor int _height = 0; }; -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/PixelFormatUtils.cpp b/core/renderer/backend/PixelFormatUtils.cpp index dea5ca3b5e..82c670bf3e 100644 --- a/core/renderer/backend/PixelFormatUtils.cpp +++ b/core/renderer/backend/PixelFormatUtils.cpp @@ -27,7 +27,7 @@ #include "PixelFormatUtils.h" #include "Macros.h" -NS_CC_BEGIN +NS_AX_BEGIN namespace backend { @@ -496,7 +496,7 @@ void convertBGRA8ToRGBA8(const unsigned char* data, size_t dataLen, unsigned cha // converter function end ////////////////////////////////////////////////////////////////////////// -cocos2d::backend::PixelFormat convertL8ToFormat(const unsigned char* data, +axis::backend::PixelFormat convertL8ToFormat(const unsigned char* data, size_t dataLen, PixelFormat format, unsigned char** outData, @@ -556,7 +556,7 @@ cocos2d::backend::PixelFormat convertL8ToFormat(const unsigned char* data, return format; } -cocos2d::backend::PixelFormat convertLA8ToFormat(const unsigned char* data, +axis::backend::PixelFormat convertLA8ToFormat(const unsigned char* data, size_t dataLen, PixelFormat format, unsigned char** outData, @@ -617,7 +617,7 @@ cocos2d::backend::PixelFormat convertLA8ToFormat(const unsigned char* data, return format; } -cocos2d::backend::PixelFormat convertRGB8ToFormat(const unsigned char* data, +axis::backend::PixelFormat convertRGB8ToFormat(const unsigned char* data, size_t dataLen, PixelFormat format, unsigned char** outData, @@ -677,7 +677,7 @@ cocos2d::backend::PixelFormat convertRGB8ToFormat(const unsigned char* data, return format; } -cocos2d::backend::PixelFormat convertRGBA8ToFormat(const unsigned char* data, +axis::backend::PixelFormat convertRGBA8ToFormat(const unsigned char* data, size_t dataLen, PixelFormat format, unsigned char** outData, @@ -739,7 +739,7 @@ cocos2d::backend::PixelFormat convertRGBA8ToFormat(const unsigned char* data, return format; } -cocos2d::backend::PixelFormat convertRGB5A1ToFormat(const unsigned char* data, +axis::backend::PixelFormat convertRGB5A1ToFormat(const unsigned char* data, size_t dataLen, PixelFormat format, unsigned char** outData, @@ -773,7 +773,7 @@ cocos2d::backend::PixelFormat convertRGB5A1ToFormat(const unsigned char* data, return format; } -cocos2d::backend::PixelFormat convertRGB565ToFormat(const unsigned char* data, +axis::backend::PixelFormat convertRGB565ToFormat(const unsigned char* data, size_t dataLen, PixelFormat format, unsigned char** outData, @@ -807,7 +807,7 @@ cocos2d::backend::PixelFormat convertRGB565ToFormat(const unsigned char* data, return format; } -cocos2d::backend::PixelFormat convertA8ToFormat(const unsigned char* data, +axis::backend::PixelFormat convertA8ToFormat(const unsigned char* data, size_t dataLen, PixelFormat format, unsigned char** outData, @@ -837,7 +837,7 @@ cocos2d::backend::PixelFormat convertA8ToFormat(const unsigned char* data, return format; } -cocos2d::backend::PixelFormat convertRGBA4ToFormat(const unsigned char* data, +axis::backend::PixelFormat convertRGBA4ToFormat(const unsigned char* data, size_t dataLen, PixelFormat format, unsigned char** outData, @@ -908,7 +908,7 @@ PixelFormat convertBGRA8ToFormat(const unsigned char* data, rgba(1) -> 12345678 */ -cocos2d::backend::PixelFormat convertDataToFormat(const unsigned char* data, +axis::backend::PixelFormat convertDataToFormat(const unsigned char* data, size_t dataLen, PixelFormat originFormat, PixelFormat format, @@ -954,4 +954,4 @@ cocos2d::backend::PixelFormat convertDataToFormat(const unsigned char* data, } // namespace PixelFormatUtils } // namespace backend -NS_CC_END +NS_AX_END diff --git a/core/renderer/backend/PixelFormatUtils.h b/core/renderer/backend/PixelFormatUtils.h index 69b4f5635f..af421b47bf 100644 --- a/core/renderer/backend/PixelFormatUtils.h +++ b/core/renderer/backend/PixelFormatUtils.h @@ -29,13 +29,13 @@ #include "CCPlatformMacros.h" #include "renderer/CCTexture2D.h" -NS_CC_BEGIN +NS_AX_BEGIN namespace backend { namespace PixelFormatUtils { -typedef cocos2d::backend::PixelFormat PixelFormat; +typedef axis::backend::PixelFormat PixelFormat; struct PixelFormatDescriptor { @@ -165,4 +165,4 @@ void convertRGBA4ToRGBA8(const unsigned char* data, size_t dataLen, unsigned cha void convertBGRA8ToRGBA8(const unsigned char* data, size_t dataLen, unsigned char* outData); }; // namespace PixelFormatUtils } // namespace backend -NS_CC_END +NS_AX_END diff --git a/core/renderer/backend/Program.cpp b/core/renderer/backend/Program.cpp index d4aff750d8..255a3f0d8a 100644 --- a/core/renderer/backend/Program.cpp +++ b/core/renderer/backend/Program.cpp @@ -25,7 +25,7 @@ #include "Program.h" #include "ProgramCache.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN Program::Program(std::string_view vs, std::string_view fs) : _vertexShader(vs), _fragmentShader(fs) {} @@ -39,4 +39,4 @@ Program* Program::getBuiltinProgram(uint32_t type) return ProgramCache::getInstance()->getBuiltinProgram(type); } -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/Program.h b/core/renderer/backend/Program.h index d962400607..0fca197332 100644 --- a/core/renderer/backend/Program.h +++ b/core/renderer/backend/Program.h @@ -34,7 +34,7 @@ #include #include -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN class ShaderModule; @@ -190,4 +190,4 @@ protected: // end of _backend group /// @} -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/ProgramCache.cpp b/core/renderer/backend/ProgramCache.cpp index 092ae5f8f1..d73178e303 100644 --- a/core/renderer/backend/ProgramCache.cpp +++ b/core/renderer/backend/ProgramCache.cpp @@ -29,7 +29,7 @@ #include "base/ccMacros.h" #include "base/CCConfiguration.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN namespace { @@ -262,4 +262,4 @@ void ProgramCache::removeAllPrograms() _cachedPrograms.clear(); } -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/ProgramCache.h b/core/renderer/backend/ProgramCache.h index 66979a2bcc..2533e7ad34 100644 --- a/core/renderer/backend/ProgramCache.h +++ b/core/renderer/backend/ProgramCache.h @@ -34,7 +34,7 @@ #include "ProgramStateRegistry.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN /** * @addtogroup _backend * @{ @@ -98,4 +98,4 @@ protected: // end of _backend group /// @} -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/ProgramState.cpp b/core/renderer/backend/ProgramState.cpp index 5b9b12ef0f..ffe359731d 100644 --- a/core/renderer/backend/ProgramState.cpp +++ b/core/renderer/backend/ProgramState.cpp @@ -39,7 +39,7 @@ # include "glsl_optimizer.h" #endif -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN namespace { @@ -552,4 +552,4 @@ void ProgramState::getFragmentUniformBuffer(char** buffer, std::size_t& size) co size = _fragmentUniformBufferSize; } -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/ProgramState.h b/core/renderer/backend/ProgramState.h index a6e5bb65b8..f054f5e281 100644 --- a/core/renderer/backend/ProgramState.h +++ b/core/renderer/backend/ProgramState.h @@ -41,7 +41,7 @@ struct XXH32_state_s; #endif -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN class TextureBackend; class VertexLayout; @@ -406,4 +406,4 @@ protected: // end of _backend group /// @} -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/ProgramStateRegistry.cpp b/core/renderer/backend/ProgramStateRegistry.cpp index 1ce3b1d150..5705da8875 100644 --- a/core/renderer/backend/ProgramStateRegistry.cpp +++ b/core/renderer/backend/ProgramStateRegistry.cpp @@ -1,6 +1,6 @@ #include "ProgramStateRegistry.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN static ProgramStateRegistry* _sharedStateRegistry = nullptr; /** returns the shared instance */ @@ -72,4 +72,4 @@ uint32_t ProgramStateRegistry::getProgramType(uint32_t programType, int textureS } // end of _backend group /// @} -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/ProgramStateRegistry.h b/core/renderer/backend/ProgramStateRegistry.h index 6f848fb329..c865ecfba9 100644 --- a/core/renderer/backend/ProgramStateRegistry.h +++ b/core/renderer/backend/ProgramStateRegistry.h @@ -8,7 +8,7 @@ #include #include -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN /** * @addtogroup _backend * @{ @@ -37,4 +37,4 @@ protected: // end of _backend group /// @} -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/RenderPassDescriptor.cpp b/core/renderer/backend/RenderPassDescriptor.cpp index f23153bbe5..4ead827294 100644 --- a/core/renderer/backend/RenderPassDescriptor.cpp +++ b/core/renderer/backend/RenderPassDescriptor.cpp @@ -24,7 +24,7 @@ #include "RenderPassDescriptor.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN bool RenderPassDescriptor::operator==(const RenderPassDescriptor& descriptor) const { @@ -37,4 +37,4 @@ bool RenderPassDescriptor::operator==(const RenderPassDescriptor& descriptor) co flags.discardEnd == descriptor.flags.discardEnd); } -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/RenderPassDescriptor.h b/core/renderer/backend/RenderPassDescriptor.h index 2eb07eb760..0ea2b08175 100644 --- a/core/renderer/backend/RenderPassDescriptor.h +++ b/core/renderer/backend/RenderPassDescriptor.h @@ -30,7 +30,7 @@ #include "Macros.h" #include "Types.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN class TextureBackend; /** @@ -76,4 +76,4 @@ struct RenderPassDescriptor }; // end of _backend group /// @} -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/RenderPipeline.h b/core/renderer/backend/RenderPipeline.h index 12ab0a307c..76bd605e18 100644 --- a/core/renderer/backend/RenderPipeline.h +++ b/core/renderer/backend/RenderPipeline.h @@ -30,7 +30,7 @@ #include "renderer/CCPipelineDescriptor.h" #include "renderer/backend/RenderPassDescriptor.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN /** * @addtogroup _backend * @{ @@ -40,7 +40,7 @@ class RenderTarget; /** * Render pipeline */ -class RenderPipeline : public cocos2d::Ref +class RenderPipeline : public axis::Ref { public: virtual void update(const RenderTarget*, const PipelineDescriptor& pipelineDescirptor) = 0; @@ -50,4 +50,4 @@ protected: }; // end of _backend group /// @} -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/RenderTarget.h b/core/renderer/backend/RenderTarget.h index f86905f08c..07ae3bf108 100644 --- a/core/renderer/backend/RenderTarget.h +++ b/core/renderer/backend/RenderTarget.h @@ -4,9 +4,9 @@ #include "Texture.h" #include -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN -class RenderTarget : public cocos2d::Ref +class RenderTarget : public axis::Ref { public: struct RenderBuffer @@ -92,4 +92,4 @@ protected: // uint8_t samples = 1; }; -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/ShaderCache.cpp b/core/renderer/backend/ShaderCache.cpp index 2cacadda04..eba07ad07f 100644 --- a/core/renderer/backend/ShaderCache.cpp +++ b/core/renderer/backend/ShaderCache.cpp @@ -25,7 +25,7 @@ #include "ShaderCache.h" #include "renderer/backend/Device.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN std::unordered_map ShaderCache::_cachedShaders; ShaderCache* ShaderCache::_sharedShaderCache = nullptr; @@ -106,4 +106,4 @@ void ShaderCache::removeUnusedShader() } } -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/ShaderCache.h b/core/renderer/backend/ShaderCache.h index abd03b7061..5c22ac23e5 100644 --- a/core/renderer/backend/ShaderCache.h +++ b/core/renderer/backend/ShaderCache.h @@ -31,7 +31,7 @@ #include #include -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN /** * @addtogroup _backend * @{ @@ -93,4 +93,4 @@ protected: // end of _backend group /// @} -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/ShaderModule.cpp b/core/renderer/backend/ShaderModule.cpp index 114d921f2f..55037a2303 100644 --- a/core/renderer/backend/ShaderModule.cpp +++ b/core/renderer/backend/ShaderModule.cpp @@ -24,7 +24,7 @@ #include "ShaderModule.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN ShaderStage ShaderModule::getShaderStage() const { @@ -35,4 +35,4 @@ ShaderModule::ShaderModule(ShaderStage stage) : _stage(stage) {} ShaderModule::~ShaderModule() {} -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/ShaderModule.h b/core/renderer/backend/ShaderModule.h index 8d76ad708a..a36522e29d 100644 --- a/core/renderer/backend/ShaderModule.h +++ b/core/renderer/backend/ShaderModule.h @@ -30,7 +30,7 @@ #include -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN /** * @addtogroup _backend * @{ @@ -62,7 +62,7 @@ enum Attribute : uint32_t /** * Create shader. */ -class CC_DLL ShaderModule : public cocos2d::Ref +class CC_DLL ShaderModule : public axis::Ref { public: /** @@ -85,4 +85,4 @@ protected: // end of _backend group /// @} -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/Texture.cpp b/core/renderer/backend/Texture.cpp index 01d4785ea2..30ae9169db 100644 --- a/core/renderer/backend/Texture.cpp +++ b/core/renderer/backend/Texture.cpp @@ -27,11 +27,11 @@ #include "Texture.h" #include "PixelFormatUtils.h" #include -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN TextureBackend::~TextureBackend() {} -void TextureBackend::updateTextureDescriptor(const cocos2d::backend::TextureDescriptor& descriptor, int /*index*/) +void TextureBackend::updateTextureDescriptor(const axis::backend::TextureDescriptor& descriptor, int /*index*/) { _bitsPerPixel = PixelFormatUtils::getBitsPerPixel(descriptor.textureFormat); _textureType = descriptor.textureType; @@ -41,4 +41,4 @@ void TextureBackend::updateTextureDescriptor(const cocos2d::backend::TextureDesc _height = descriptor.height; } -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/Texture.h b/core/renderer/backend/Texture.h index 0c07f615cc..25698284ff 100644 --- a/core/renderer/backend/Texture.h +++ b/core/renderer/backend/Texture.h @@ -31,7 +31,7 @@ #include -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN /** * @addtogroup _backend * @{ @@ -221,4 +221,4 @@ public: // end of _backend group /// @} -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/Types.cpp b/core/renderer/backend/Types.cpp index 525b87278b..ab297a3008 100644 --- a/core/renderer/backend/Types.cpp +++ b/core/renderer/backend/Types.cpp @@ -24,7 +24,7 @@ #include "Types.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN bool UniformLocation::operator==(const UniformLocation& other) const { @@ -36,4 +36,4 @@ std::size_t UniformLocation::operator()(const UniformLocation& uniform) const return (((size_t)shaderStage) & 0xF) | ((size_t)(location[0] << 4)) | ((size_t)(location[1] << 8)); } -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/Types.h b/core/renderer/backend/Types.h index c968512fda..c1d141d7ed 100644 --- a/core/renderer/backend/Types.h +++ b/core/renderer/backend/Types.h @@ -34,7 +34,7 @@ #include "Enums.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN inline TargetBufferFlags getMRTColorFlag(size_t index) noexcept { @@ -144,4 +144,4 @@ struct BlendDescriptor BlendFactor destinationAlphaBlendFactor = BlendFactor::ZERO; }; -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/VertexLayout.cpp b/core/renderer/backend/VertexLayout.cpp index 023d45dc9c..973bbf751e 100644 --- a/core/renderer/backend/VertexLayout.cpp +++ b/core/renderer/backend/VertexLayout.cpp @@ -26,7 +26,7 @@ #include "base/ccMacros.h" #include -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN void VertexLayout::setAttribute(std::string_view name, std::size_t index, @@ -49,4 +49,4 @@ void VertexLayout::setLayout(std::size_t stride) _stride = stride; } -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/VertexLayout.h b/core/renderer/backend/VertexLayout.h index a4430fc73d..dce25560b1 100644 --- a/core/renderer/backend/VertexLayout.h +++ b/core/renderer/backend/VertexLayout.h @@ -33,7 +33,7 @@ #include #include -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN /** * @addtogroup _backend * @{ @@ -118,4 +118,4 @@ private: // end of _backend group /// @} -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/metal/BufferMTL.h b/core/renderer/backend/metal/BufferMTL.h index 230c3ec564..2fa878cabc 100644 --- a/core/renderer/backend/metal/BufferMTL.h +++ b/core/renderer/backend/metal/BufferMTL.h @@ -27,7 +27,7 @@ #include "../Buffer.h" #import -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN /** * @addtogroup _metal @@ -100,4 +100,4 @@ private: // end of _metal group /// @} -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/metal/BufferMTL.mm b/core/renderer/backend/metal/BufferMTL.mm index ecdb0f1080..fd98e75b51 100644 --- a/core/renderer/backend/metal/BufferMTL.mm +++ b/core/renderer/backend/metal/BufferMTL.mm @@ -26,7 +26,7 @@ #include "../Macros.h" #include "BufferManager.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN BufferMTL::BufferMTL(id mtlDevice, std::size_t size, BufferType type, BufferUsage usage) : Buffer(size, type, usage) @@ -102,4 +102,4 @@ void BufferMTL::updateIndex() } } -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/metal/BufferManager.h b/core/renderer/backend/metal/BufferManager.h index 201f14a816..bf31195042 100644 --- a/core/renderer/backend/metal/BufferManager.h +++ b/core/renderer/backend/metal/BufferManager.h @@ -27,7 +27,7 @@ #include #include "../Macros.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN class BufferMTL; @@ -66,4 +66,4 @@ private: // end of _metal group /// @} -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/metal/BufferManager.mm b/core/renderer/backend/metal/BufferManager.mm index dd13de9310..67fbc2ae22 100644 --- a/core/renderer/backend/metal/BufferManager.mm +++ b/core/renderer/backend/metal/BufferManager.mm @@ -25,7 +25,7 @@ #include "BufferManager.h" #include "BufferMTL.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN std::vector BufferManager::_buffers; @@ -47,4 +47,4 @@ void BufferManager::beginFrame() buffer->beginFrame(); } -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/metal/CommandBufferMTL.h b/core/renderer/backend/metal/CommandBufferMTL.h index cca0ee164a..d5e90b4bf5 100644 --- a/core/renderer/backend/metal/CommandBufferMTL.h +++ b/core/renderer/backend/metal/CommandBufferMTL.h @@ -28,7 +28,7 @@ #include "DeviceMTL.h" #include -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN class RenderPipelineMTL; class DepthStencilStateMTL; @@ -250,4 +250,4 @@ private: // end of _metal group /// @} -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/metal/CommandBufferMTL.mm b/core/renderer/backend/metal/CommandBufferMTL.mm index e30eb05d67..8b6d78f77e 100644 --- a/core/renderer/backend/metal/CommandBufferMTL.mm +++ b/core/renderer/backend/metal/CommandBufferMTL.mm @@ -34,7 +34,7 @@ #include "DepthStencilStateMTL.h" #include "RenderTargetMTL.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN namespace { @@ -590,4 +590,4 @@ void CommandBufferMTL::readPixels(id texture, [commandBuffer waitUntilCompleted]; } -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/metal/DepthStencilStateMTL.h b/core/renderer/backend/metal/DepthStencilStateMTL.h index eec5a61625..d6c969610a 100644 --- a/core/renderer/backend/metal/DepthStencilStateMTL.h +++ b/core/renderer/backend/metal/DepthStencilStateMTL.h @@ -29,7 +29,7 @@ #include "tsl/robin_map.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN /** * @addtogroup _metal @@ -68,4 +68,4 @@ private: // end of _metal group /// @} -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/metal/DepthStencilStateMTL.mm b/core/renderer/backend/metal/DepthStencilStateMTL.mm index a8c457e99e..9328f7cacb 100644 --- a/core/renderer/backend/metal/DepthStencilStateMTL.mm +++ b/core/renderer/backend/metal/DepthStencilStateMTL.mm @@ -26,7 +26,7 @@ #include "../RenderTarget.h" #include "xxhash.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN namespace { @@ -164,4 +164,4 @@ DepthStencilStateMTL::~DepthStencilStateMTL() _mtlStateCache.clear(); } -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/metal/DeviceInfoMTL.h b/core/renderer/backend/metal/DeviceInfoMTL.h index 7c9c33e7df..11cc1c775f 100644 --- a/core/renderer/backend/metal/DeviceInfoMTL.h +++ b/core/renderer/backend/metal/DeviceInfoMTL.h @@ -27,7 +27,7 @@ #include "../DeviceInfo.h" #import -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN enum class FeatureSet : int32_t { @@ -134,4 +134,4 @@ private: // end of _metal group /// @} -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/metal/DeviceInfoMTL.mm b/core/renderer/backend/metal/DeviceInfoMTL.mm index cc303b98f7..50eecdb46c 100644 --- a/core/renderer/backend/metal/DeviceInfoMTL.mm +++ b/core/renderer/backend/metal/DeviceInfoMTL.mm @@ -26,7 +26,7 @@ #include "DeviceInfoMTL.h" #include "base/ccMacros.h" #include "UtilsMTL.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN namespace { @@ -455,4 +455,4 @@ bool DeviceInfoMTL::checkForFeatureSupported(FeatureType feature) return featureSupported; } -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/metal/DeviceMTL.h b/core/renderer/backend/metal/DeviceMTL.h index 373a292704..97d49e467f 100644 --- a/core/renderer/backend/metal/DeviceMTL.h +++ b/core/renderer/backend/metal/DeviceMTL.h @@ -28,7 +28,7 @@ #import #import -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN /** * @addtogroup _metal @@ -166,4 +166,4 @@ private: // end of _metal group /// @} -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/metal/DeviceMTL.mm b/core/renderer/backend/metal/DeviceMTL.mm index 938ed23dcd..e993f6f2e0 100644 --- a/core/renderer/backend/metal/DeviceMTL.mm +++ b/core/renderer/backend/metal/DeviceMTL.mm @@ -35,7 +35,7 @@ #include "base/ccMacros.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN CAMetalLayer* DeviceMTL::_metalLayer = nil; id DeviceMTL::_currentDrawable = nil; @@ -155,4 +155,4 @@ void DeviceMTL::setFrameBufferOnly(bool frameBufferOnly) [DeviceMTL::_metalLayer setFramebufferOnly:frameBufferOnly]; } -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/metal/ProgramMTL.h b/core/renderer/backend/metal/ProgramMTL.h index 7b981d90e4..eab017f1a7 100644 --- a/core/renderer/backend/metal/ProgramMTL.h +++ b/core/renderer/backend/metal/ProgramMTL.h @@ -27,7 +27,7 @@ #include "../Program.h" #import -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN class ShaderModuleMTL; @@ -136,4 +136,4 @@ private: // end of _metal group /// @} -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/metal/ProgramMTL.mm b/core/renderer/backend/metal/ProgramMTL.mm index c1b1f6ac0c..4f9f284224 100644 --- a/core/renderer/backend/metal/ProgramMTL.mm +++ b/core/renderer/backend/metal/ProgramMTL.mm @@ -26,7 +26,7 @@ #include "ShaderModuleMTL.h" #include "base/ccMacros.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN namespace { constexpr std::string_view metalSpecificDefine = "#define METAL\n"sv; @@ -179,4 +179,4 @@ const hlookup::string_map& ProgramMTL::getAllActiveUniformInfo(Shad } } -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/metal/RenderPipelineMTL.h b/core/renderer/backend/metal/RenderPipelineMTL.h index 4078a6179b..21957396fb 100644 --- a/core/renderer/backend/metal/RenderPipelineMTL.h +++ b/core/renderer/backend/metal/RenderPipelineMTL.h @@ -31,7 +31,7 @@ #include "tsl/robin_map.h" #import -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN /** * @addtogroup _metal * @{ @@ -80,4 +80,4 @@ private: // end of _metal group /// @} -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/metal/RenderPipelineMTL.mm b/core/renderer/backend/metal/RenderPipelineMTL.mm index e2a640b0f1..3ffeea1fd6 100644 --- a/core/renderer/backend/metal/RenderPipelineMTL.mm +++ b/core/renderer/backend/metal/RenderPipelineMTL.mm @@ -31,7 +31,7 @@ #include "ProgramMTL.h" #include "xxhash.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN namespace { @@ -338,4 +338,4 @@ void RenderPipelineMTL::setBlendStateAndFormat(const BlendDescriptor& blendDescr _mtlRenderPipelineDescriptor.stencilAttachmentPixelFormat = UtilsMTL::toMTLPixelFormat(_stencilAttachmentFormat); } -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/metal/RenderTargetMTL.h b/core/renderer/backend/metal/RenderTargetMTL.h index 0f1c59ca41..3968e62c18 100644 --- a/core/renderer/backend/metal/RenderTargetMTL.h +++ b/core/renderer/backend/metal/RenderTargetMTL.h @@ -2,7 +2,7 @@ #include "../RenderTarget.h" #include "CommandBufferMTL.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN class RenderTargetMTL : public RenderTarget { @@ -37,4 +37,4 @@ public: // MetalContext*, DeviceMTL* }; -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/metal/RenderTargetMTL.mm b/core/renderer/backend/metal/RenderTargetMTL.mm index 3bae91816f..64ffb13a8b 100644 --- a/core/renderer/backend/metal/RenderTargetMTL.mm +++ b/core/renderer/backend/metal/RenderTargetMTL.mm @@ -1,7 +1,7 @@ #include "RenderTargetMTL.h" #include "UtilsMTL.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN static MTLLoadAction getLoadAction(const RenderPassDescriptor& params, TargetBufferFlags buffer) { @@ -183,4 +183,4 @@ PixelFormat RenderTargetMTL::getStencilAttachmentPixelFormat() const return PixelFormat::NONE; } -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/metal/ShaderModuleMTL.h b/core/renderer/backend/metal/ShaderModuleMTL.h index 377ffe3c64..be6afc9675 100644 --- a/core/renderer/backend/metal/ShaderModuleMTL.h +++ b/core/renderer/backend/metal/ShaderModuleMTL.h @@ -35,7 +35,7 @@ struct glslopt_shader; -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN /** * @addtogroup _metal * @{ @@ -140,4 +140,4 @@ private: // end of _metal group /// @} -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/metal/ShaderModuleMTL.mm b/core/renderer/backend/metal/ShaderModuleMTL.mm index ac1ac0fad5..4b34259815 100644 --- a/core/renderer/backend/metal/ShaderModuleMTL.mm +++ b/core/renderer/backend/metal/ShaderModuleMTL.mm @@ -27,7 +27,7 @@ #include "glsl_optimizer.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN ShaderModuleMTL::ShaderModuleMTL(id mtlDevice, ShaderStage stage, std::string_view source) : ShaderModule(stage) @@ -276,4 +276,4 @@ void ShaderModuleMTL::parseTexture(id mtlDevice, glslopt_shader* shad } } -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/metal/TextureMTL.h b/core/renderer/backend/metal/TextureMTL.h index 40039b48cd..3242519689 100644 --- a/core/renderer/backend/metal/TextureMTL.h +++ b/core/renderer/backend/metal/TextureMTL.h @@ -29,7 +29,7 @@ #import #include -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN /** * @addtogroup _metal * @{ @@ -168,7 +168,7 @@ public: * Update texture description. * @param descriptor Specifies texture and sampler descriptor. */ - virtual void updateTextureDescriptor(const cocos2d::backend::TextureDescriptor& descriptor, int index = 0) override; + virtual void updateTextureDescriptor(const axis::backend::TextureDescriptor& descriptor, int index = 0) override; int getCount() const override { return _textureInfo._maxIdx + 1; } @@ -226,7 +226,7 @@ public: * Update texture description. * @param descriptor Specifies texture and sampler descriptor. */ - virtual void updateTextureDescriptor(const cocos2d::backend::TextureDescriptor& descriptor, int index = 0) override; + virtual void updateTextureDescriptor(const axis::backend::TextureDescriptor& descriptor, int index = 0) override; int getCount() const override { return _textureInfo._maxIdx + 1; } @@ -250,4 +250,4 @@ private: // end of _metal group /// @} -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/metal/TextureMTL.mm b/core/renderer/backend/metal/TextureMTL.mm index 0936545489..0ed8f4340e 100644 --- a/core/renderer/backend/metal/TextureMTL.mm +++ b/core/renderer/backend/metal/TextureMTL.mm @@ -29,7 +29,7 @@ #include "base/ccMacros.h" #include "../PixelFormatUtils.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN namespace { @@ -200,7 +200,7 @@ void TextureMTL::updateSamplerDescriptor(const SamplerDescriptor& sampler) _textureInfo.recreateSampler(sampler); } -void TextureMTL::updateTextureDescriptor(const cocos2d::backend::TextureDescriptor& descriptor, int index) +void TextureMTL::updateTextureDescriptor(const axis::backend::TextureDescriptor& descriptor, int index) { TextureBackend::updateTextureDescriptor(descriptor, index); @@ -283,7 +283,7 @@ TextureCubeMTL::TextureCubeMTL(id mtlDevice, const TextureDescriptor& TextureCubeMTL::~TextureCubeMTL() {} -void TextureCubeMTL::updateTextureDescriptor(const cocos2d::backend::TextureDescriptor& descriptor, int index) +void TextureCubeMTL::updateTextureDescriptor(const axis::backend::TextureDescriptor& descriptor, int index) { TextureBackend::updateTextureDescriptor(descriptor, index); @@ -328,4 +328,4 @@ void TextureCubeMTL::generateMipmaps() } } -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/metal/UtilsMTL.h b/core/renderer/backend/metal/UtilsMTL.h index 0bb0ba460e..98a5ca88af 100644 --- a/core/renderer/backend/metal/UtilsMTL.h +++ b/core/renderer/backend/metal/UtilsMTL.h @@ -30,7 +30,7 @@ #import #include -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN class TextureBackend; @@ -95,4 +95,4 @@ private: // end of _metal group /// @} -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/metal/UtilsMTL.mm b/core/renderer/backend/metal/UtilsMTL.mm index b813e18dfd..714df700c9 100644 --- a/core/renderer/backend/metal/UtilsMTL.mm +++ b/core/renderer/backend/metal/UtilsMTL.mm @@ -31,7 +31,7 @@ #include "../PixelFormatUtils.h" #include "base/CCConfiguration.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN id UtilsMTL::_defaultColorAttachmentTexture = nil; id UtilsMTL::_defaultDepthStencilAttachmentTexture = nil; @@ -199,4 +199,4 @@ void UtilsMTL::swizzleImage(unsigned char* image, std::size_t width, std::size_t } } -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/opengl/BufferGL.cpp b/core/renderer/backend/opengl/BufferGL.cpp index 4398a53a6f..7ed7023420 100644 --- a/core/renderer/backend/opengl/BufferGL.cpp +++ b/core/renderer/backend/opengl/BufferGL.cpp @@ -29,7 +29,7 @@ #include "base/CCEventDispatcher.h" #include "renderer/backend/opengl/MacrosGL.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN namespace { @@ -154,4 +154,4 @@ void BufferGL::updateSubData(void* data, std::size_t offset, std::size_t size) } } -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/opengl/BufferGL.h b/core/renderer/backend/opengl/BufferGL.h index ac94a6d691..c2062693da 100644 --- a/core/renderer/backend/opengl/BufferGL.h +++ b/core/renderer/backend/opengl/BufferGL.h @@ -30,7 +30,7 @@ #include -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN /** * @addtogroup _opengl * @{ @@ -100,4 +100,4 @@ private: }; // end of _opengl group ///> @} -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/opengl/CommandBufferGL.cpp b/core/renderer/backend/opengl/CommandBufferGL.cpp index 7ce937a9be..eac9209330 100644 --- a/core/renderer/backend/opengl/CommandBufferGL.cpp +++ b/core/renderer/backend/opengl/CommandBufferGL.cpp @@ -37,7 +37,7 @@ #include "RenderTargetGL.h" #include -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN namespace { @@ -521,4 +521,4 @@ void CommandBufferGL::readPixels(RenderTarget* rt, rtGL->unbindFrameBuffer(); } -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/opengl/CommandBufferGL.h b/core/renderer/backend/opengl/CommandBufferGL.h index 85331abcb2..f49ff943cf 100644 --- a/core/renderer/backend/opengl/CommandBufferGL.h +++ b/core/renderer/backend/opengl/CommandBufferGL.h @@ -34,7 +34,7 @@ #include -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN class BufferGL; class RenderPipelineGL; @@ -225,4 +225,4 @@ private: // end of _opengl group /// @} -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/opengl/DepthStencilStateGL.cpp b/core/renderer/backend/opengl/DepthStencilStateGL.cpp index 420f743543..b4ef949f52 100644 --- a/core/renderer/backend/opengl/DepthStencilStateGL.cpp +++ b/core/renderer/backend/opengl/DepthStencilStateGL.cpp @@ -28,7 +28,7 @@ #include "renderer/backend/opengl/MacrosGL.h" #include "renderer/backend/opengl/UtilsGL.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN void DepthStencilStateGL::reset() { @@ -98,4 +98,4 @@ void DepthStencilStateGL::apply(unsigned int stencilReferenceValueFront, unsigne CHECK_GL_ERROR_DEBUG(); } -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/opengl/DepthStencilStateGL.h b/core/renderer/backend/opengl/DepthStencilStateGL.h index 6d87fd7295..4e749a8974 100644 --- a/core/renderer/backend/opengl/DepthStencilStateGL.h +++ b/core/renderer/backend/opengl/DepthStencilStateGL.h @@ -26,7 +26,7 @@ #include "../DepthStencilState.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN /** * @addtogroup _opengl * @{ @@ -55,4 +55,4 @@ public: }; // end of _opengl group /// @} -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/opengl/DeviceGL.cpp b/core/renderer/backend/opengl/DeviceGL.cpp index f1e79bf2c8..5285f1df57 100644 --- a/core/renderer/backend/opengl/DeviceGL.cpp +++ b/core/renderer/backend/opengl/DeviceGL.cpp @@ -33,7 +33,7 @@ #include "DeviceInfoGL.h" #include "RenderTargetGL.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN Device* Device::getInstance() { @@ -132,4 +132,4 @@ Program* DeviceGL::newProgram(std::string_view vertexShader, std::string_view fr return new ProgramGL(vertexShader, fragmentShader); } -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/opengl/DeviceGL.h b/core/renderer/backend/opengl/DeviceGL.h index 9b57f9eab3..e6b3491db4 100644 --- a/core/renderer/backend/opengl/DeviceGL.h +++ b/core/renderer/backend/opengl/DeviceGL.h @@ -25,7 +25,7 @@ #include "../Device.h" #include "platform/CCGL.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN /** * @addtogroup _opengl * @{ @@ -107,4 +107,4 @@ protected: }; // end of _opengl group /// @} -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/opengl/DeviceInfoGL.cpp b/core/renderer/backend/opengl/DeviceInfoGL.cpp index 3af16801f2..baf8b5a801 100644 --- a/core/renderer/backend/opengl/DeviceInfoGL.cpp +++ b/core/renderer/backend/opengl/DeviceInfoGL.cpp @@ -36,7 +36,7 @@ // #define GL_COMPRESSED_RGBA_ASTC_8x8 0x93B7 #endif -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN /// /// 1px method to detect whether GPU support astc compressed texture really @@ -204,4 +204,4 @@ bool DeviceInfoGL::checkSupportsCompressedFormat(int compressedFormat) return supported; } -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/opengl/DeviceInfoGL.h b/core/renderer/backend/opengl/DeviceInfoGL.h index 5b0b32bbfd..c9d0956df6 100644 --- a/core/renderer/backend/opengl/DeviceInfoGL.h +++ b/core/renderer/backend/opengl/DeviceInfoGL.h @@ -27,7 +27,7 @@ #include "../DeviceInfo.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN /** * @addtogroup _opengl * @{ @@ -88,4 +88,4 @@ private: // end of _opengl group /// @} -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/opengl/MacrosGL.h b/core/renderer/backend/opengl/MacrosGL.h index 76e41f51e5..81a5f35b97 100644 --- a/core/renderer/backend/opengl/MacrosGL.h +++ b/core/renderer/backend/opengl/MacrosGL.h @@ -35,7 +35,7 @@ GLenum __error = glGetError(); \ if (__error) \ { \ - cocos2d::log("OpenGL error 0x%04X in %s %s %d\n", __error, __FILE__, __FUNCTION__, __LINE__); \ + axis::log("OpenGL error 0x%04X in %s %s %d\n", __error, __FILE__, __FUNCTION__, __LINE__); \ } \ } while (false) # define CHECK_GL_ERROR_ABORT() \ @@ -44,7 +44,7 @@ GLenum __error = glGetError(); \ if (__error) \ { \ - cocos2d::log("OpenGL error 0x%04X in %s %s %d\n", __error, __FILE__, __FUNCTION__, __LINE__); \ + axis::log("OpenGL error 0x%04X in %s %s %d\n", __error, __FILE__, __FUNCTION__, __LINE__); \ assert(false); \ } \ } while (false) diff --git a/core/renderer/backend/opengl/ProgramGL.cpp b/core/renderer/backend/opengl/ProgramGL.cpp index a8b3671511..131497787c 100644 --- a/core/renderer/backend/opengl/ProgramGL.cpp +++ b/core/renderer/backend/opengl/ProgramGL.cpp @@ -33,7 +33,7 @@ #include "renderer/backend/opengl/UtilsGL.h" #include "yasio/detail/byte_buffer.hpp" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN namespace { @@ -363,4 +363,4 @@ std::size_t ProgramGL::getUniformBufferSize(ShaderStage stage) const return _totalBufferSize; } -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/opengl/ProgramGL.h b/core/renderer/backend/opengl/ProgramGL.h index 992d13fe19..1e521b3152 100644 --- a/core/renderer/backend/opengl/ProgramGL.h +++ b/core/renderer/backend/opengl/ProgramGL.h @@ -35,7 +35,7 @@ #include #include -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN class ShaderModuleGL; @@ -188,4 +188,4 @@ private: }; // end of _opengl group /// @} -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/opengl/RenderPipelineGL.cpp b/core/renderer/backend/opengl/RenderPipelineGL.cpp index 35f0ab830d..e9bad70c3b 100644 --- a/core/renderer/backend/opengl/RenderPipelineGL.cpp +++ b/core/renderer/backend/opengl/RenderPipelineGL.cpp @@ -31,7 +31,7 @@ Copyright (c) 2020 C4games Ltd. #include -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN void RenderPipelineGL::update(const RenderTarget*, const PipelineDescriptor& pipelineDescirptor) { @@ -77,4 +77,4 @@ RenderPipelineGL::~RenderPipelineGL() CC_SAFE_RELEASE(_programGL); } -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/opengl/RenderPipelineGL.h b/core/renderer/backend/opengl/RenderPipelineGL.h index 1954793e38..c1eda24884 100644 --- a/core/renderer/backend/opengl/RenderPipelineGL.h +++ b/core/renderer/backend/opengl/RenderPipelineGL.h @@ -30,7 +30,7 @@ #include -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN class ProgramGL; /** @@ -64,4 +64,4 @@ private: }; // end of _opengl group /// @} -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/opengl/RenderTargetGL.cpp b/core/renderer/backend/opengl/RenderTargetGL.cpp index eabb054fc0..9e7b44189a 100644 --- a/core/renderer/backend/opengl/RenderTargetGL.cpp +++ b/core/renderer/backend/opengl/RenderTargetGL.cpp @@ -2,7 +2,7 @@ #include "DeviceGL.h" #include "renderer/backend/opengl/MacrosGL.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN RenderTargetGL::RenderTargetGL(bool defaultRenderTarget, DeviceGL* deviceGL) : RenderTarget(defaultRenderTarget) { @@ -80,4 +80,4 @@ void RenderTargetGL::update() const { _dirty = false; } -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/opengl/RenderTargetGL.h b/core/renderer/backend/opengl/RenderTargetGL.h index bb3bbe558f..71fd79606f 100644 --- a/core/renderer/backend/opengl/RenderTargetGL.h +++ b/core/renderer/backend/opengl/RenderTargetGL.h @@ -2,7 +2,7 @@ #include "../RenderTarget.h" #include "platform/CCGL.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN class DeviceGL; @@ -24,4 +24,4 @@ public: GLuint _FBO = 0; }; -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/opengl/ShaderModuleGL.cpp b/core/renderer/backend/opengl/ShaderModuleGL.cpp index 87ffb7e64a..afbe54b52b 100644 --- a/core/renderer/backend/opengl/ShaderModuleGL.cpp +++ b/core/renderer/backend/opengl/ShaderModuleGL.cpp @@ -29,7 +29,7 @@ #include "base/ccMacros.h" #include "yasio/detail/byte_buffer.hpp" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN ShaderModuleGL::ShaderModuleGL(ShaderStage stage, std::string_view source) : ShaderModule(stage) { @@ -63,12 +63,12 @@ void ShaderModuleGL::compileShader(ShaderStage stage, std::string_view source) { yasio::sbyte_buffer errorLog{static_cast(logLength), std::true_type{}}; glGetShaderInfoLog(_shader, logLength, nullptr, (GLchar*)errorLog.data()); - cocos2d::log("cocos2d: ERROR: Failed to compile shader, detail: %s\n%s", errorLog.data(), + axis::log("cocos2d: ERROR: Failed to compile shader, detail: %s\n%s", errorLog.data(), source.data()); } else { - cocos2d::log("cocos2d: ERROR: Failed to compile shader without errors."); + axis::log("cocos2d: ERROR: Failed to compile shader without errors."); } deleteShader(); @@ -85,4 +85,4 @@ void ShaderModuleGL::deleteShader() } } -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/opengl/ShaderModuleGL.h b/core/renderer/backend/opengl/ShaderModuleGL.h index bbf359b416..64bae1b9be 100644 --- a/core/renderer/backend/opengl/ShaderModuleGL.h +++ b/core/renderer/backend/opengl/ShaderModuleGL.h @@ -28,7 +28,7 @@ #include "platform/CCGL.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN /** * @addtogroup _opengl * @{ @@ -62,4 +62,4 @@ private: }; // end of _opengl group /// @} -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/opengl/TextureGL.cpp b/core/renderer/backend/opengl/TextureGL.cpp index 248c419523..1e6075b5d6 100644 --- a/core/renderer/backend/opengl/TextureGL.cpp +++ b/core/renderer/backend/opengl/TextureGL.cpp @@ -31,7 +31,7 @@ #include "renderer/backend/opengl/MacrosGL.h" #include "renderer/backend/opengl/UtilsGL.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN #define ISPOW2(n) (((n) & (n - 1)) == 0) @@ -149,7 +149,7 @@ Texture2DGL::Texture2DGL(const TextureDescriptor& descriptor) #endif } -void Texture2DGL::updateTextureDescriptor(const cocos2d::backend::TextureDescriptor& descriptor, int index) +void Texture2DGL::updateTextureDescriptor(const axis::backend::TextureDescriptor& descriptor, int index) { TextureBackend::updateTextureDescriptor(descriptor, index); @@ -327,7 +327,7 @@ TextureCubeGL::TextureCubeGL(const TextureDescriptor& descriptor) CHECK_GL_ERROR_DEBUG(); } -void TextureCubeGL::updateTextureDescriptor(const cocos2d::backend::TextureDescriptor& descriptor, int index) +void TextureCubeGL::updateTextureDescriptor(const axis::backend::TextureDescriptor& descriptor, int index) { backend::TextureCubemapBackend::updateTextureDescriptor(descriptor, index); @@ -379,4 +379,4 @@ void TextureCubeGL::generateMipmaps() } } -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/opengl/TextureGL.h b/core/renderer/backend/opengl/TextureGL.h index d3a26c6195..eb59fa87a5 100644 --- a/core/renderer/backend/opengl/TextureGL.h +++ b/core/renderer/backend/opengl/TextureGL.h @@ -29,7 +29,7 @@ #include "platform/CCGL.h" #include "base/CCEventListenerCustom.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN /** * Store texture information. @@ -262,4 +262,4 @@ private: // end of _opengl group /// @} -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/opengl/UtilsGL.cpp b/core/renderer/backend/opengl/UtilsGL.cpp index 8452bb2bc2..daa9182b93 100644 --- a/core/renderer/backend/opengl/UtilsGL.cpp +++ b/core/renderer/backend/opengl/UtilsGL.cpp @@ -31,7 +31,7 @@ #include "renderer/backend/PixelFormatUtils.h" #include "platform/CCGL.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN struct GPUTextureFormatInfo { @@ -492,4 +492,4 @@ GLenum UtilsGL::toGLCullMode(CullMode mode) return GL_FRONT; } -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/backend/opengl/UtilsGL.h b/core/renderer/backend/opengl/UtilsGL.h index a0fb418699..a6aaff114f 100644 --- a/core/renderer/backend/opengl/UtilsGL.h +++ b/core/renderer/backend/opengl/UtilsGL.h @@ -29,7 +29,7 @@ #include "renderer/backend/Types.h" #include "renderer/backend/PixelBufferDescriptor.h" -CC_BACKEND_BEGIN +NS_AX_BACKEND_BEGIN /** * @addtogroup _opengl * @{ @@ -159,4 +159,4 @@ struct UtilsGL }; // end of _opengl group /// @} -CC_BACKEND_END +NS_AX_BACKEND_END diff --git a/core/renderer/ccShaders.cpp b/core/renderer/ccShaders.cpp index d7bf7ff779..40b63baa78 100644 --- a/core/renderer/ccShaders.cpp +++ b/core/renderer/ccShaders.cpp @@ -27,7 +27,7 @@ THE SOFTWARE. ****************************************************************************/ #include "renderer/ccShaders.h" -NS_CC_BEGIN +NS_AX_BEGIN // // backend shader file @@ -76,4 +76,4 @@ NS_CC_BEGIN #include "renderer/shaders/quad.vert" #include "renderer/shaders/quad.frag" -NS_CC_END +NS_AX_END diff --git a/core/renderer/ccShaders.h b/core/renderer/ccShaders.h index 42bb8d56cd..9ca49efc41 100644 --- a/core/renderer/ccShaders.h +++ b/core/renderer/ccShaders.h @@ -35,7 +35,7 @@ THE SOFTWARE. * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN extern CC_DLL const char* positionColor_vert; extern CC_DLL const char* positionColor_frag; @@ -84,7 +84,7 @@ extern CC_DLL const char* CC2D_quad_vert; extern CC_DLL const char* hsv_frag; extern CC_DLL const char* dualSampler_hsv_frag; -NS_CC_END +NS_AX_END /** end of support group @} diff --git a/core/ui/CocosGUI.cpp b/core/ui/CocosGUI.cpp index 8049bb0885..9fd8c319ef 100644 --- a/core/ui/CocosGUI.cpp +++ b/core/ui/CocosGUI.cpp @@ -25,7 +25,7 @@ THE SOFTWARE. #include "ui/CocosGUI.h" -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -36,4 +36,4 @@ const char* CocosGUIVersion() } } // namespace ui -NS_CC_END +NS_AX_END diff --git a/core/ui/CocosGUI.h b/core/ui/CocosGUI.h index 340c20ea38..40dca1fcea 100644 --- a/core/ui/CocosGUI.h +++ b/core/ui/CocosGUI.h @@ -59,7 +59,7 @@ THE SOFTWARE. * @addtogroup ui * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -71,7 +71,7 @@ CC_GUI_DLL const char* CocosGUIVersion(); } // namespace ui -NS_CC_END +NS_AX_END // end of ui group /// @} diff --git a/core/ui/GUIDefine.h b/core/ui/GUIDefine.h index 3679399f7b..460c0874dd 100644 --- a/core/ui/GUIDefine.h +++ b/core/ui/GUIDefine.h @@ -36,14 +36,14 @@ #define DECLARE_CLASS_GUI_INFO \ public: \ - static cocos2d::ObjectFactory::TInfo __Type; \ - static cocos2d::Ref* createInstance(); + static axis::ObjectFactory::TInfo __Type; \ + static axis::Ref* createInstance(); #define IMPLEMENT_CLASS_GUI_INFO(className) \ - cocos2d::Ref* className::createInstance() { return className::create(); } \ - cocos2d::ObjectFactory::TInfo className::__Type(#className, &className::createInstance); + axis::Ref* className::createInstance() { return className::create(); } \ + axis::ObjectFactory::TInfo className::__Type(#className, &className::createInstance); -#define CREATE_CLASS_GUI_INFO(className) cocos2d::ObjectFactory::TInfo(#className, &className::createInstance) +#define CREATE_CLASS_GUI_INFO(className) axis::ObjectFactory::TInfo(#className, &className::createInstance) // //// Reader macro @@ -51,21 +51,21 @@ public: \ #define DECLARE_CLASS_WIDGET_READER_INFO \ public: \ - static cocos2d::ObjectFactory::TInfo __Type; \ - static cocos2d::Ref* createInstance(); + static axis::ObjectFactory::TInfo __Type; \ + static axis::Ref* createInstance(); #define IMPLEMENT_CLASS_WIDGET_READER_INFO(className) \ - cocos2d::Ref* className::createInstance() { return className::getInstance(); } \ - cocos2d::ObjectFactory::TInfo className::__Type(#className, &className::createInstance); + axis::Ref* className::createInstance() { return className::getInstance(); } \ + axis::ObjectFactory::TInfo className::__Type(#className, &className::createInstance); -#define CREATE_CLASS_WIDGET_READER_INFO(className) cocos2d::ObjectFactory::TInfo(#className, &className::createInstance) +#define CREATE_CLASS_WIDGET_READER_INFO(className) axis::ObjectFactory::TInfo(#className, &className::createInstance) #define CC_VIDEOPLAYER_DEBUG_DRAW 0 #define __LAYOUT_COMPONENT_NAME "__ui_layout" ///@endcond -NS_CC_BEGIN +NS_AX_BEGIN struct CC_DLL ResourceData { int type; @@ -112,6 +112,6 @@ struct CC_DLL ResourceData return *this; } }; -NS_CC_END +NS_AX_END #endif /* defined(__TestCpp__GUIDefine__) */ diff --git a/core/ui/LayoutHelper.cpp b/core/ui/LayoutHelper.cpp index c16826b8cf..8b817171f0 100644 --- a/core/ui/LayoutHelper.cpp +++ b/core/ui/LayoutHelper.cpp @@ -3,7 +3,7 @@ // #include "ui/LayoutHelper.h" -USING_NS_CC; +USING_NS_AX; Vec2 LayoutHelper::s_designSize; float LayoutHelper::s_adjustedScale = 1.0f; @@ -56,16 +56,16 @@ void LayoutHelper::setDesignSizeNoBorder(const Vec2& designSize) LayoutHelper::s_adjustedScale = scaleY / (frameSize.width / LayoutHelper::s_designSize.width); } - cocos2d::log("x: %f; y: %f; scale: %f", scaleX, scaleY, s_adjustedScale); + axis::log("x: %f; y: %f; scale: %f", scaleX, scaleY, s_adjustedScale); pEGLView->setDesignResolutionSize(LayoutHelper::s_designSize.width * s_adjustedScale, LayoutHelper::s_designSize.height * s_adjustedScale, ResolutionPolicy::NO_BORDER); } -cocos2d::Vec2 LayoutHelper::getVisibleOrigin(void) +axis::Vec2 LayoutHelper::getVisibleOrigin(void) { const auto& adjustedDesignSize = Director::getInstance()->getOpenGLView()->getDesignResolutionSize(); - return cocos2d::Vec2((adjustedDesignSize.width - LayoutHelper::s_designSize.width) * .5f, + return axis::Vec2((adjustedDesignSize.width - LayoutHelper::s_designSize.width) * .5f, (adjustedDesignSize.height - LayoutHelper::s_designSize.height) * .5f); } @@ -131,7 +131,7 @@ void LayoutHelper::setNodeGroupSize(const std::vector& nodes, const Vec2& for (auto iter = nodes.begin(); iter != nodes.end(); ++iter) { - auto detail = dynamic_cast(*iter); + auto detail = dynamic_cast(*iter); if (detail != nullptr) { /*auto scaledWidth = (detail->getContentWidth() * detail->getScaleX()); @@ -283,14 +283,14 @@ void LayoutHelper::setNodeGroupTop(const std::vector& nodes, float top) } } -void LayoutHelper::setNodeGroupLT(const std::vector& nodes, const cocos2d::Vec2& p) +void LayoutHelper::setNodeGroupLT(const std::vector& nodes, const axis::Vec2& p) { float deltaL = p.x - getNodeGroupLeft(nodes); float deltaT = p.y - getNodeGroupTop(nodes); for (auto iter = nodes.begin(); iter != nodes.end(); ++iter) { - setNodeLT((*iter), cocos2d::Vec2(getNodeLeft((*iter)) + deltaL, getNodeTop((*iter)) + deltaT)); + setNodeLT((*iter), axis::Vec2(getNodeLeft((*iter)) + deltaL, getNodeTop((*iter)) + deltaT)); } } @@ -494,7 +494,7 @@ void LayoutHelper::centerToParent(const std::vector& nodes) float distY = ((nodes[0]->getParent()->getContentSize().height - groupHeight) / 2.0f) - minY; std::for_each(nodes.begin(), nodes.end(), [distX, distY](Node* child) -> void { - setNodeLT(child, cocos2d::Point(getNodeLeft(child) + distX, getNodeTop(child) + distY)); + setNodeLT(child, axis::Point(getNodeLeft(child) + distX, getNodeTop(child) + distY)); }); } @@ -892,7 +892,7 @@ void LayoutHelper::makeVerticalSpacingEqual(const std::vector& nodes, flo // ----------------- LayoutHelper::VisibleRect -------------------------- -cocos2d::Rect LayoutHelper::VisibleRect::s_ScreenVisibleRect; +axis::Rect LayoutHelper::VisibleRect::s_ScreenVisibleRect; /// x-studio: when design resolution changed, should call this func. void LayoutHelper::VisibleRect::refresh(void) @@ -922,10 +922,10 @@ void LayoutHelper::VisibleRect::lazyInit() } } -cocos2d::Rect LayoutHelper::VisibleRect::getScreenVisibleRect() +axis::Rect LayoutHelper::VisibleRect::getScreenVisibleRect() { lazyInit(); - return cocos2d::Rect(s_ScreenVisibleRect.origin.x, s_ScreenVisibleRect.origin.y, s_ScreenVisibleRect.size.width, + return axis::Rect(s_ScreenVisibleRect.origin.x, s_ScreenVisibleRect.origin.y, s_ScreenVisibleRect.size.width, s_ScreenVisibleRect.size.height); } @@ -938,48 +938,48 @@ Vec2 LayoutHelper::VisibleRect::size() Point LayoutHelper::VisibleRect::left() { lazyInit(); - return cocos2d::Point(s_ScreenVisibleRect.origin.x, + return axis::Point(s_ScreenVisibleRect.origin.x, s_ScreenVisibleRect.origin.y + s_ScreenVisibleRect.size.height / 2); } Point LayoutHelper::VisibleRect::right() { lazyInit(); - return cocos2d::Point(s_ScreenVisibleRect.origin.x + s_ScreenVisibleRect.size.width, + return axis::Point(s_ScreenVisibleRect.origin.x + s_ScreenVisibleRect.size.width, s_ScreenVisibleRect.origin.y + s_ScreenVisibleRect.size.height / 2); } Point LayoutHelper::VisibleRect::top() { lazyInit(); - return cocos2d::Point(s_ScreenVisibleRect.origin.x + s_ScreenVisibleRect.size.width / 2, + return axis::Point(s_ScreenVisibleRect.origin.x + s_ScreenVisibleRect.size.width / 2, s_ScreenVisibleRect.origin.y + s_ScreenVisibleRect.size.height); } Point LayoutHelper::VisibleRect::bottom() { lazyInit(); - return cocos2d::Point(s_ScreenVisibleRect.origin.x + s_ScreenVisibleRect.size.width / 2, + return axis::Point(s_ScreenVisibleRect.origin.x + s_ScreenVisibleRect.size.width / 2, s_ScreenVisibleRect.origin.y); } Point LayoutHelper::VisibleRect::center() { lazyInit(); - return cocos2d::Point(s_ScreenVisibleRect.origin.x + s_ScreenVisibleRect.size.width / 2, + return axis::Point(s_ScreenVisibleRect.origin.x + s_ScreenVisibleRect.size.width / 2, s_ScreenVisibleRect.origin.y + s_ScreenVisibleRect.size.height / 2); } Point LayoutHelper::VisibleRect::leftTop() { lazyInit(); - return cocos2d::Point(s_ScreenVisibleRect.origin.x, s_ScreenVisibleRect.origin.y + s_ScreenVisibleRect.size.height); + return axis::Point(s_ScreenVisibleRect.origin.x, s_ScreenVisibleRect.origin.y + s_ScreenVisibleRect.size.height); } Point LayoutHelper::VisibleRect::rightTop() { lazyInit(); - return cocos2d::Point(s_ScreenVisibleRect.origin.x + s_ScreenVisibleRect.size.width, + return axis::Point(s_ScreenVisibleRect.origin.x + s_ScreenVisibleRect.size.width, s_ScreenVisibleRect.origin.y + s_ScreenVisibleRect.size.height); } @@ -992,26 +992,26 @@ Point LayoutHelper::VisibleRect::leftBottom() Point LayoutHelper::VisibleRect::rightBottom() { lazyInit(); - return cocos2d::Point(s_ScreenVisibleRect.origin.x + s_ScreenVisibleRect.size.width, s_ScreenVisibleRect.origin.y); + return axis::Point(s_ScreenVisibleRect.origin.x + s_ScreenVisibleRect.size.width, s_ScreenVisibleRect.origin.y); } /// visual screen float LayoutHelper::VisibleRect::getNodeLeft(Node* pNode) { - cocos2d::Point ptLocal(LayoutHelper::getNodeLeft(pNode), 0); + axis::Point ptLocal(LayoutHelper::getNodeLeft(pNode), 0); auto ptWorld = pNode->getParent()->convertToWorldSpace(ptLocal); return ptWorld.x; } float LayoutHelper::VisibleRect::getNodeBottom(Node* pNode) { - cocos2d::Point ptLocal(0, LayoutHelper::getNodeBottom(pNode)); + axis::Point ptLocal(0, LayoutHelper::getNodeBottom(pNode)); auto ptWorld = pNode->getParent()->convertToWorldSpace(ptLocal); return ptWorld.y; } float LayoutHelper::VisibleRect::getNodeRight(Node* pNode) { - cocos2d::Point ptLocal(LayoutHelper::getNodeLeft(pNode) + pNode->getContentSize().width /* * pNode->getScaleX()*/, + axis::Point ptLocal(LayoutHelper::getNodeLeft(pNode) + pNode->getContentSize().width /* * pNode->getScaleX()*/, 0); auto ptWorld = pNode->getParent()->convertToWorldSpace(ptLocal); @@ -1020,7 +1020,7 @@ float LayoutHelper::VisibleRect::getNodeRight(Node* pNode) } float LayoutHelper::VisibleRect::getNodeTop(Node* pNode) { - cocos2d::Point ptLocal( + axis::Point ptLocal( 0, LayoutHelper::getNodeBottom(pNode) + pNode->getContentSize().height /* * pNode->getScaleY()*/); auto ptWorld = pNode->getParent()->convertToWorldSpace(ptLocal); auto visibleRect = LayoutHelper::VisibleRect::getScreenVisibleRect(); @@ -1032,14 +1032,14 @@ void LayoutHelper::VisibleRect::setNodeLeft(Node* pNode, float left) { CC_ASSERT(pNode); Vec2 scrSize = Director::getInstance()->getOpenGLView()->getDesignResolutionSize(); - cocos2d::Point delta = cocos2d::Vec2(0, scrSize.height) - LayoutHelper::VisibleRect::leftTop(); + axis::Point delta = axis::Vec2(0, scrSize.height) - LayoutHelper::VisibleRect::leftTop(); Vec2 size = pNode->getContentSize() * getScale2D(pNode); - cocos2d::Point achorPoint = Vec2::ZERO; + axis::Point achorPoint = Vec2::ZERO; if (!pNode->isIgnoreAnchorPointForPosition()) { achorPoint = pNode->getAnchorPoint(); } - cocos2d::Point ptWorld(adjust_coord(size.width, achorPoint.x, left) /* - delta.x*/, 0); + axis::Point ptWorld(adjust_coord(size.width, achorPoint.x, left) /* - delta.x*/, 0); auto ptLocal = pNode->getParent()->convertToNodeSpace(ptWorld); pNode->setPositionX(ptLocal.x); } @@ -1047,14 +1047,14 @@ void LayoutHelper::VisibleRect::setNodeTop(Node* pNode, float top) { CC_ASSERT(pNode); Vec2 scrSize = Director::getInstance()->getOpenGLView()->getDesignResolutionSize(); - cocos2d::Point delta = cocos2d::Vec2(0, scrSize.height) - LayoutHelper::VisibleRect::leftTop(); + axis::Point delta = axis::Vec2(0, scrSize.height) - LayoutHelper::VisibleRect::leftTop(); Vec2 size = pNode->getContentSize() * getScale2D(pNode); - cocos2d::Point achorPoint = Vec2::ZERO; + axis::Point achorPoint = Vec2::ZERO; if (!pNode->isIgnoreAnchorPointForPosition()) { achorPoint = pNode->getAnchorPoint(); } - cocos2d::Point ptWorld(0, adjust_coord_neg(scrSize.height, size.height, achorPoint.y, top) - delta.y); + axis::Point ptWorld(0, adjust_coord_neg(scrSize.height, size.height, achorPoint.y, top) - delta.y); auto ptLocal = pNode->getParent()->convertToNodeSpace(ptWorld); pNode->setPositionY(ptLocal.y); } @@ -1062,14 +1062,14 @@ void LayoutHelper::VisibleRect::setNodeRight(Node* pNode, float right) { CC_ASSERT(pNode); Vec2 scrSize = Director::getInstance()->getOpenGLView()->getDesignResolutionSize(); - cocos2d::Point delta = cocos2d::Vec2(scrSize.width, 0) - LayoutHelper::VisibleRect::rightBottom(); + axis::Point delta = axis::Vec2(scrSize.width, 0) - LayoutHelper::VisibleRect::rightBottom(); Vec2 size = pNode->getContentSize() * getScale2D(pNode); - cocos2d::Point achorPoint = Vec2::ZERO; + axis::Point achorPoint = Vec2::ZERO; if (!pNode->isIgnoreAnchorPointForPosition()) { achorPoint = pNode->getAnchorPoint(); } - cocos2d::Point ptWorld(adjust_coord_neg(scrSize.width, size.width, achorPoint.x, right) /* - delta.x*/, 0); + axis::Point ptWorld(adjust_coord_neg(scrSize.width, size.width, achorPoint.x, right) /* - delta.x*/, 0); auto ptLocal = pNode->getParent()->convertToNodeSpace(ptWorld); pNode->setPositionX(ptLocal.x); } @@ -1077,167 +1077,167 @@ void LayoutHelper::VisibleRect::setNodeBottom(Node* pNode, float bottom) { CC_ASSERT(pNode); Vec2 scrSize = Director::getInstance()->getOpenGLView()->getDesignResolutionSize(); - cocos2d::Point delta = cocos2d::Vec2(scrSize.width, 0) - LayoutHelper::VisibleRect::rightBottom(); + axis::Point delta = axis::Vec2(scrSize.width, 0) - LayoutHelper::VisibleRect::rightBottom(); Vec2 size = pNode->getContentSize() * getScale2D(pNode); - cocos2d::Point achorPoint = Vec2::ZERO; + axis::Point achorPoint = Vec2::ZERO; if (!pNode->isIgnoreAnchorPointForPosition()) { achorPoint = pNode->getAnchorPoint(); } - cocos2d::Point ptWorld(0, adjust_coord(size.height, achorPoint.y, bottom) - delta.y); + axis::Point ptWorld(0, adjust_coord(size.height, achorPoint.y, bottom) - delta.y); auto ptLocal = pNode->getParent()->convertToNodeSpace(ptWorld); pNode->setPositionY(ptLocal.y); } -void LayoutHelper::VisibleRect::setNodeLT(Node* pNode, const cocos2d::Point& p) +void LayoutHelper::VisibleRect::setNodeLT(Node* pNode, const axis::Point& p) { CC_ASSERT(pNode); Vec2 scrSize = Director::getInstance()->getOpenGLView()->getDesignResolutionSize(); - cocos2d::Point delta = cocos2d::Vec2(0, scrSize.height) - LayoutHelper::VisibleRect::leftTop(); + axis::Point delta = axis::Vec2(0, scrSize.height) - LayoutHelper::VisibleRect::leftTop(); Vec2 size = pNode->getContentSize() * getScale2D(pNode); - cocos2d::Point achorPoint = Vec2::ZERO; + axis::Point achorPoint = Vec2::ZERO; if (!pNode->isIgnoreAnchorPointForPosition()) { achorPoint = pNode->getAnchorPoint(); } - cocos2d::Point ptWorld(adjust_coord(size.width, achorPoint.x, p.x), + axis::Point ptWorld(adjust_coord(size.width, achorPoint.x, p.x), adjust_coord_neg(scrSize.height, size.height, achorPoint.y, p.y) - delta.y); auto ptLocal = pNode->getParent()->convertToNodeSpace(ptWorld); pNode->setPosition(ptLocal); } -void LayoutHelper::VisibleRect::setNodeRT(Node* pNode, const cocos2d::Point& p) +void LayoutHelper::VisibleRect::setNodeRT(Node* pNode, const axis::Point& p) { // right top CC_ASSERT(pNode); Vec2 scrSize = Director::getInstance()->getOpenGLView()->getDesignResolutionSize(); - cocos2d::Point delta = cocos2d::Vec2(scrSize.width, scrSize.height) - LayoutHelper::VisibleRect::rightTop(); + axis::Point delta = axis::Vec2(scrSize.width, scrSize.height) - LayoutHelper::VisibleRect::rightTop(); Vec2 size = pNode->getContentSize() * getScale2D(pNode); - cocos2d::Point achorPoint = Vec2::ZERO; + axis::Point achorPoint = Vec2::ZERO; if (!pNode->isIgnoreAnchorPointForPosition()) { achorPoint = pNode->getAnchorPoint(); } - cocos2d::Point ptWorld(adjust_coord_neg(scrSize.width, size.width, achorPoint.x, p.x) /* - delta.x*/, + axis::Point ptWorld(adjust_coord_neg(scrSize.width, size.width, achorPoint.x, p.x) /* - delta.x*/, adjust_coord_neg(scrSize.height, size.height, achorPoint.y, p.y) /* - delta.y*/); auto ptLocal = pNode->getParent()->convertToNodeSpace(ptWorld); pNode->setPosition(ptLocal); } -void LayoutHelper::VisibleRect::setNodeLB(Node* pNode, const cocos2d::Point& p) +void LayoutHelper::VisibleRect::setNodeLB(Node* pNode, const axis::Point& p) { // left bottom CC_ASSERT(pNode); Vec2 scrSize = Director::getInstance()->getOpenGLView()->getDesignResolutionSize(); - cocos2d::Point delta = cocos2d::Vec2(0, 0) - LayoutHelper::VisibleRect::leftBottom(); + axis::Point delta = axis::Vec2(0, 0) - LayoutHelper::VisibleRect::leftBottom(); Vec2 size = pNode->getContentSize() * getScale2D(pNode); - cocos2d::Point achorPoint = Vec2::ZERO; + axis::Point achorPoint = Vec2::ZERO; if (!pNode->isIgnoreAnchorPointForPosition()) { achorPoint = pNode->getAnchorPoint(); } - cocos2d::Point ptWorld(adjust_coord(size.width, achorPoint.x, p.x) - delta.x, + axis::Point ptWorld(adjust_coord(size.width, achorPoint.x, p.x) - delta.x, adjust_coord(size.height, achorPoint.y, p.y) - delta.y); auto ptLocal = pNode->getParent()->convertToNodeSpace(ptWorld); pNode->setPosition(ptLocal); } -void LayoutHelper::VisibleRect::setNodeRB(Node* pNode, const cocos2d::Point& p) +void LayoutHelper::VisibleRect::setNodeRB(Node* pNode, const axis::Point& p) { // right bottom CC_ASSERT(pNode); Vec2 scrSize = Director::getInstance()->getOpenGLView()->getDesignResolutionSize(); - cocos2d::Point delta = cocos2d::Vec2(scrSize.width, 0) - LayoutHelper::VisibleRect::rightBottom(); + axis::Point delta = axis::Vec2(scrSize.width, 0) - LayoutHelper::VisibleRect::rightBottom(); Vec2 size = pNode->getContentSize() * getScale2D(pNode); - cocos2d::Point achorPoint = Vec2::ZERO; + axis::Point achorPoint = Vec2::ZERO; if (!pNode->isIgnoreAnchorPointForPosition()) { achorPoint = pNode->getAnchorPoint(); } - cocos2d::Point ptWorld(adjust_coord_neg(scrSize.width, size.width, achorPoint.x, p.x) /* - delta.x*/, + axis::Point ptWorld(adjust_coord_neg(scrSize.width, size.width, achorPoint.x, p.x) /* - delta.x*/, adjust_coord(size.height, achorPoint.y, p.y) - delta.y); auto ptLocal = pNode->getParent()->convertToNodeSpace(ptWorld); pNode->setPosition(ptLocal); } /// ratio position -void LayoutHelper::VisibleRect::setNodeNormalizedLT(Node* pNode, const cocos2d::Point& ratio) +void LayoutHelper::VisibleRect::setNodeNormalizedLT(Node* pNode, const axis::Point& ratio) { CC_ASSERT(pNode); Vec2 scrSize = Director::getInstance()->getOpenGLView()->getDesignResolutionSize(); - cocos2d::Point delta = cocos2d::Vec2(0, scrSize.height) - LayoutHelper::VisibleRect::leftTop(); + axis::Point delta = axis::Vec2(0, scrSize.height) - LayoutHelper::VisibleRect::leftTop(); Vec2 vscrSize = LayoutHelper::VisibleRect::size(); - cocos2d::Point p = cocos2d::Vec2(vscrSize.width * ratio.x, vscrSize.height * ratio.y); + axis::Point p = axis::Vec2(vscrSize.width * ratio.x, vscrSize.height * ratio.y); Vec2 size = pNode->getContentSize() * getScale2D(pNode); - cocos2d::Point achorPoint = Vec2::ZERO; + axis::Point achorPoint = Vec2::ZERO; if (!pNode->isIgnoreAnchorPointForPosition()) { achorPoint = pNode->getAnchorPoint(); } - cocos2d::Point ptWorld(adjust_coord(size.width, achorPoint.x, p.x) - delta.x, + axis::Point ptWorld(adjust_coord(size.width, achorPoint.x, p.x) - delta.x, adjust_coord_neg(scrSize.height, size.height, achorPoint.y, p.y) - delta.y); auto ptLocal = pNode->getParent()->convertToNodeSpace(ptWorld); pNode->setPosition(ptLocal); } -void LayoutHelper::VisibleRect::setNodeNormalizedRT(Node* pNode, const cocos2d::Point& ratio) +void LayoutHelper::VisibleRect::setNodeNormalizedRT(Node* pNode, const axis::Point& ratio) { // right top CC_ASSERT(pNode); Vec2 scrSize = Director::getInstance()->getOpenGLView()->getDesignResolutionSize(); - cocos2d::Point delta = cocos2d::Vec2(scrSize.width, scrSize.height) - LayoutHelper::VisibleRect::rightTop(); + axis::Point delta = axis::Vec2(scrSize.width, scrSize.height) - LayoutHelper::VisibleRect::rightTop(); Vec2 vscrSize = LayoutHelper::VisibleRect::size(); - cocos2d::Point p = cocos2d::Vec2(vscrSize.width * ratio.x, vscrSize.height * ratio.y); + axis::Point p = axis::Vec2(vscrSize.width * ratio.x, vscrSize.height * ratio.y); Vec2 size = pNode->getContentSize() * getScale2D(pNode); - cocos2d::Point achorPoint = Vec2::ZERO; + axis::Point achorPoint = Vec2::ZERO; if (!pNode->isIgnoreAnchorPointForPosition()) { achorPoint = pNode->getAnchorPoint(); } - cocos2d::Point ptWorld(adjust_coord_neg(scrSize.width, size.width, achorPoint.x, p.x) - delta.x, + axis::Point ptWorld(adjust_coord_neg(scrSize.width, size.width, achorPoint.x, p.x) - delta.x, adjust_coord_neg(scrSize.height, size.height, achorPoint.y, p.y) - delta.y); auto ptLocal = pNode->getParent()->convertToNodeSpace(ptWorld); pNode->setPosition(ptLocal); } -void LayoutHelper::VisibleRect::setNodeNormalizedLB(Node* pNode, const cocos2d::Point& ratio) +void LayoutHelper::VisibleRect::setNodeNormalizedLB(Node* pNode, const axis::Point& ratio) { // left bottom CC_ASSERT(pNode); Vec2 scrSize = Director::getInstance()->getOpenGLView()->getDesignResolutionSize(); - cocos2d::Point delta = cocos2d::Vec2(0, 0) - LayoutHelper::VisibleRect::leftBottom(); + axis::Point delta = axis::Vec2(0, 0) - LayoutHelper::VisibleRect::leftBottom(); Vec2 vscrSize = LayoutHelper::VisibleRect::size(); - cocos2d::Point p = cocos2d::Vec2(vscrSize.width * ratio.x, vscrSize.height * ratio.y); + axis::Point p = axis::Vec2(vscrSize.width * ratio.x, vscrSize.height * ratio.y); Vec2 size = pNode->getContentSize() * getScale2D(pNode); - cocos2d::Point achorPoint = Vec2::ZERO; + axis::Point achorPoint = Vec2::ZERO; if (!pNode->isIgnoreAnchorPointForPosition()) { achorPoint = pNode->getAnchorPoint(); } - cocos2d::Point ptWorld(adjust_coord(size.width, achorPoint.x, p.x) - delta.x, + axis::Point ptWorld(adjust_coord(size.width, achorPoint.x, p.x) - delta.x, adjust_coord(size.height, achorPoint.y, p.y) - delta.y); auto ptLocal = pNode->getParent()->convertToNodeSpace(ptWorld); pNode->setPosition(ptLocal); } -void LayoutHelper::VisibleRect::setNodeNormalizedRB(Node* pNode, const cocos2d::Point& ratio) +void LayoutHelper::VisibleRect::setNodeNormalizedRB(Node* pNode, const axis::Point& ratio) { // right bottom CC_ASSERT(pNode); Vec2 scrSize = Director::getInstance()->getOpenGLView()->getDesignResolutionSize(); - cocos2d::Point delta = cocos2d::Vec2(scrSize.width, 0) - LayoutHelper::VisibleRect::rightBottom(); + axis::Point delta = axis::Vec2(scrSize.width, 0) - LayoutHelper::VisibleRect::rightBottom(); Vec2 vscrSize = LayoutHelper::VisibleRect::size(); - cocos2d::Point p = cocos2d::Vec2(vscrSize.width * ratio.x, vscrSize.height * ratio.y); + axis::Point p = axis::Vec2(vscrSize.width * ratio.x, vscrSize.height * ratio.y); Vec2 size = pNode->getContentSize() * getScale2D(pNode); - cocos2d::Point achorPoint = Vec2::ZERO; + axis::Point achorPoint = Vec2::ZERO; if (!pNode->isIgnoreAnchorPointForPosition()) { achorPoint = pNode->getAnchorPoint(); } - cocos2d::Point ptWorld(adjust_coord_neg(scrSize.width, size.width, achorPoint.x, p.x) - delta.x, + axis::Point ptWorld(adjust_coord_neg(scrSize.width, size.width, achorPoint.x, p.x) - delta.x, adjust_coord(size.height, achorPoint.y, p.y) - delta.y); auto ptLocal = pNode->getParent()->convertToNodeSpace(ptWorld); pNode->setPosition(ptLocal); @@ -1247,47 +1247,47 @@ void LayoutHelper::VisibleRect::setNodeNormalizedTop(Node* pNode, const float ra { // right top CC_ASSERT(pNode); Vec2 scrSize = Director::getInstance()->getOpenGLView()->getDesignResolutionSize(); - cocos2d::Point delta = cocos2d::Vec2(scrSize.width, scrSize.height) - LayoutHelper::VisibleRect::rightTop(); + axis::Point delta = axis::Vec2(scrSize.width, scrSize.height) - LayoutHelper::VisibleRect::rightTop(); Vec2 vscrSize = LayoutHelper::VisibleRect::size(); float top = vscrSize.width * ratioTop; Vec2 size = pNode->getContentSize() * getScale2D(pNode); - cocos2d::Point achorPoint = Vec2::ZERO; + axis::Point achorPoint = Vec2::ZERO; if (!pNode->isIgnoreAnchorPointForPosition()) { achorPoint = pNode->getAnchorPoint(); } - cocos2d::Point ptWorld(0, adjust_coord_neg(scrSize.height, size.height, achorPoint.y, top) - delta.y); + axis::Point ptWorld(0, adjust_coord_neg(scrSize.height, size.height, achorPoint.y, top) - delta.y); auto ptLocal = pNode->getParent()->convertToNodeSpace(ptWorld); pNode->setPositionY(ptWorld.y); } -void LayoutHelper::VisibleRect::setNodeNormalizedPositionX(cocos2d::Node* pNode, float ratio) +void LayoutHelper::VisibleRect::setNodeNormalizedPositionX(axis::Node* pNode, float ratio) { CC_ASSERT(pNode); - cocos2d::Rect visibleRect = LayoutHelper::LayoutHelper::VisibleRect::getScreenVisibleRect(); - cocos2d::Point ptWorld(visibleRect.size.width * ratio + visibleRect.origin.x, 0); + axis::Rect visibleRect = LayoutHelper::LayoutHelper::VisibleRect::getScreenVisibleRect(); + axis::Point ptWorld(visibleRect.size.width * ratio + visibleRect.origin.x, 0); auto ptLocal = pNode->getParent()->convertToNodeSpace(ptWorld); pNode->setPositionX(ptLocal.x); } -void LayoutHelper::VisibleRect::setNodeNormalizedPositionY(cocos2d::Node* pNode, float ratio) +void LayoutHelper::VisibleRect::setNodeNormalizedPositionY(axis::Node* pNode, float ratio) { CC_ASSERT(pNode); - cocos2d::Rect visibleRect = LayoutHelper::LayoutHelper::VisibleRect::getScreenVisibleRect(); + axis::Rect visibleRect = LayoutHelper::LayoutHelper::VisibleRect::getScreenVisibleRect(); - cocos2d::Point ptWorld(0, visibleRect.size.height * ratio + visibleRect.origin.y); + axis::Point ptWorld(0, visibleRect.size.height * ratio + visibleRect.origin.y); auto ptLocal = pNode->getParent()->convertToNodeSpace(ptWorld); pNode->setPositionY(ptLocal.y); } -void LayoutHelper::VisibleRect::setNodeNormalizedPosition(Node* pNode, const cocos2d::Point& ratio) +void LayoutHelper::VisibleRect::setNodeNormalizedPosition(Node* pNode, const axis::Point& ratio) { CC_ASSERT(pNode); pNode->setIgnoreAnchorPointForPosition(false); - pNode->setAnchorPoint(cocos2d::Vec2(.5f, .5f)); - cocos2d::Rect visibleRect = LayoutHelper::LayoutHelper::VisibleRect::getScreenVisibleRect(); - cocos2d::Point ptWorld(visibleRect.size.width * ratio.x + visibleRect.origin.x, + pNode->setAnchorPoint(axis::Vec2(.5f, .5f)); + axis::Rect visibleRect = LayoutHelper::LayoutHelper::VisibleRect::getScreenVisibleRect(); + axis::Point ptWorld(visibleRect.size.width * ratio.x + visibleRect.origin.x, visibleRect.size.height * ratio.y + visibleRect.origin.y); auto ptLocal = pNode->getParent()->convertToNodeSpace(ptWorld); pNode->setPosition(ptLocal); diff --git a/core/ui/LayoutHelper.h b/core/ui/LayoutHelper.h index a8ee2a12d4..65073d2db1 100644 --- a/core/ui/LayoutHelper.h +++ b/core/ui/LayoutHelper.h @@ -30,9 +30,9 @@ # define center_coord(__SZ__, __sz__, __achor__) (((__SZ__) - (__sz__) + 2 * (__sz__) * (__achor__)) * 0.5f) -USING_NS_CC; +USING_NS_AX; -// inline Vec2 operator*(const Vec2& left, const cocos2d::Vec2& right) +// inline Vec2 operator*(const Vec2& left, const axis::Vec2& right) //{ // return Vec2(left.width * right.x, left.height * right.y); // } @@ -55,7 +55,7 @@ struct CC_DLL LayoutHelper /// static void setDesignSizeNoBorder(const Vec2& designSize); - static cocos2d::Vec2 getVisibleOrigin(void); + static axis::Vec2 getVisibleOrigin(void); static Vec2 getVisibleSize(void); /// align type defination @@ -86,29 +86,29 @@ struct CC_DLL LayoutHelper # define isIgnoreY(align) (align != ALIGN_TOP) && (align != ALIGN_BOTTOM) # define isIgnoreXY(align) (align == ALIGN_CENTER) - static cocos2d::Vec2 getScale2D(cocos2d::Node* pNode) + static axis::Vec2 getScale2D(axis::Node* pNode) { - return cocos2d::Vec2(pNode->getScaleX(), pNode->getScaleY()); + return axis::Vec2(pNode->getScaleX(), pNode->getScaleY()); } - static float getNodeLeftX(cocos2d::Node* pNode) + static float getNodeLeftX(axis::Node* pNode) { return pNode->getPositionX() - pNode->getAnchorPoint().x * pNode->getContentSize().width * pNode->getScaleX(); } - static float getNodeRightX(cocos2d::Node* pNode) + static float getNodeRightX(axis::Node* pNode) { return pNode->getPositionX() + (1 - pNode->getAnchorPoint().x) * pNode->getContentSize().width * pNode->getScaleX(); } - static float getNodeTopY(cocos2d::Node* pNode) + static float getNodeTopY(axis::Node* pNode) { return pNode->getPositionY() + (1 - pNode->getAnchorPoint().y) * pNode->getContentSize().height * pNode->getScaleY(); } - static float getNodeBottomY(cocos2d::Node* pNode) + static float getNodeBottomY(axis::Node* pNode) { return pNode->getPositionY() + pNode->getAnchorPoint().y * pNode->getContentSize().height * pNode->getScaleY(); } @@ -124,7 +124,7 @@ struct CC_DLL LayoutHelper ** x: specify coord x.so ** y: specify coord y. */ - static void setNodePosition(cocos2d::Node* pNode, const int align, float x, float y) + static void setNodePosition(axis::Node* pNode, const int align, float x, float y) { const AlignType alignType = (const AlignType)align; if (alignType == ALIGN_NONE) @@ -168,8 +168,8 @@ struct CC_DLL LayoutHelper ** y: specify coord y. ** */ - static void setNodePosition(cocos2d::Node* pNode, - const cocos2d::Point& anchorPoint, + static void setNodePosition(axis::Node* pNode, + const axis::Point& anchorPoint, const int align, float x, float y) @@ -178,13 +178,13 @@ struct CC_DLL LayoutHelper setNodePosition(pNode, align, x, y); } - static void setNodePosition(cocos2d::Node* pNode, const int align, float value = 0.0f) + static void setNodePosition(axis::Node* pNode, const int align, float value = 0.0f) { // ignore x or y setNodePosition(pNode, align, value, value); } - static void setNodePosition(cocos2d::Node* pNode, - const cocos2d::Point& anchorPoint, + static void setNodePosition(axis::Node* pNode, + const axis::Point& anchorPoint, const int align, float value = 0.0f) { // ignore x or y @@ -192,27 +192,27 @@ struct CC_DLL LayoutHelper } // @version 1 - static void centerNodeX(cocos2d::Node* pNode) + static void centerNodeX(axis::Node* pNode) { - cocos2d::Node* pNodeParent = pNode->getParent(); + axis::Node* pNodeParent = pNode->getParent(); if (pNodeParent) { centerNodeX(pNode, pNodeParent->getContentSize()); } } - static void centerNodeY(cocos2d::Node* pNode) + static void centerNodeY(axis::Node* pNode) { - cocos2d::Node* pNodeParent = pNode->getParent(); + axis::Node* pNodeParent = pNode->getParent(); if ((pNodeParent)) { centerNodeY(pNode, pNodeParent->getContentSize()); } } - static void centerNode(cocos2d::Node* pNode) + static void centerNode(axis::Node* pNode) { - cocos2d::Node* pNodeParent = pNode->getParent(); + axis::Node* pNodeParent = pNode->getParent(); if ((pNodeParent)) { centerNode(pNode, pNodeParent->getContentSize()); @@ -220,7 +220,7 @@ struct CC_DLL LayoutHelper } // @version 2 - static void centerNodeX(cocos2d::Node* pNode, const Vec2& parentSize) + static void centerNodeX(axis::Node* pNode, const Vec2& parentSize) { CC_ASSERT(pNode); @@ -233,7 +233,7 @@ struct CC_DLL LayoutHelper pNode->setPositionX(center_coord(parentSize.width, size.width, achorX) /*parentSize.width * 0.5f*/); } - static void centerNodeY(cocos2d::Node* pNode, const Vec2& parentSize) + static void centerNodeY(axis::Node* pNode, const Vec2& parentSize) { CC_ASSERT(pNode); @@ -246,33 +246,33 @@ struct CC_DLL LayoutHelper pNode->setPositionY(center_coord(parentSize.height, size.height, achorY)); } - static void centerNode(cocos2d::Node* pNode, const Vec2& parentSize) + static void centerNode(axis::Node* pNode, const Vec2& parentSize) { CC_ASSERT(pNode); Vec2 size = pNode->getContentSize() * getScale2D(pNode); - cocos2d::Point achor = cocos2d::Vec2::ZERO; + axis::Point achor = axis::Vec2::ZERO; if (!pNode->isIgnoreAnchorPointForPosition()) { achor = pNode->getAnchorPoint(); } - pNode->setPosition(cocos2d::Vec2(center_coord(parentSize.width, size.width, achor.x), + pNode->setPosition(axis::Vec2(center_coord(parentSize.width, size.width, achor.x), center_coord(parentSize.height, size.height, achor.y))); } // @version 1 - static void setNodeLeft(cocos2d::Node* pNode, float left, float anchor = 0.0f) + static void setNodeLeft(axis::Node* pNode, float left, float anchor = 0.0f) { - cocos2d::Node* pNodeParent = pNode->getParent(); + axis::Node* pNodeParent = pNode->getParent(); if ((pNodeParent)) { setNodeLeft(pNode, pNodeParent->getContentSize(), left, anchor); } } - static float getNodeLeft(cocos2d::Node* pNode, float anchor = 0.0f) + static float getNodeLeft(axis::Node* pNode, float anchor = 0.0f) { - cocos2d::Node* pNodeParent = pNode->getParent(); + axis::Node* pNodeParent = pNode->getParent(); if ((pNodeParent)) { return getNodeLeft(pNode, pNodeParent->getContentSize(), anchor); @@ -280,18 +280,18 @@ struct CC_DLL LayoutHelper return 0.0f; } - static void setNodeTop(cocos2d::Node* pNode, float top, float anchor = 0.0f) + static void setNodeTop(axis::Node* pNode, float top, float anchor = 0.0f) { - cocos2d::Node* pNodeParent = pNode->getParent(); + axis::Node* pNodeParent = pNode->getParent(); if ((pNodeParent)) { setNodeTop(pNode, pNodeParent->getContentSize(), top, anchor); } } - static float getNodeTop(cocos2d::Node* pNode, float anchor = 0.0f) + static float getNodeTop(axis::Node* pNode, float anchor = 0.0f) { - cocos2d::Node* pNodeParent = pNode->getParent(); + axis::Node* pNodeParent = pNode->getParent(); if ((pNodeParent)) { return getNodeTop(pNode, pNodeParent->getContentSize(), anchor); @@ -299,17 +299,17 @@ struct CC_DLL LayoutHelper return 0.0f; } - static void setNodeRight(cocos2d::Node* pNode, float right) + static void setNodeRight(axis::Node* pNode, float right) { - cocos2d::Node* pNodeParent = pNode->getParent(); + axis::Node* pNodeParent = pNode->getParent(); if ((pNodeParent)) { setNodeRight(pNode, pNodeParent->getContentSize(), right); } } - static float getNodeRight(cocos2d::Node* pNode, float anchor = 0.0f) + static float getNodeRight(axis::Node* pNode, float anchor = 0.0f) { - cocos2d::Node* pNodeParent = pNode->getParent(); + axis::Node* pNodeParent = pNode->getParent(); if ((pNodeParent)) { return getNodeRight(pNode, pNodeParent->getContentSize(), anchor); @@ -317,18 +317,18 @@ struct CC_DLL LayoutHelper return 0.0f; } - static void setNodeBottom(cocos2d::Node* pNode, float bottom, float anchor = .0f) + static void setNodeBottom(axis::Node* pNode, float bottom, float anchor = .0f) { - cocos2d::Node* pNodeParent = pNode->getParent(); + axis::Node* pNodeParent = pNode->getParent(); if ((pNodeParent)) { setNodeBottom(pNode, pNodeParent->getContentSize(), bottom, anchor); } } - static float getNodeBottom(cocos2d::Node* pNode, float anchor = 0.0f) + static float getNodeBottom(axis::Node* pNode, float anchor = 0.0f) { - cocos2d::Node* pNodeParent = pNode->getParent(); + axis::Node* pNodeParent = pNode->getParent(); if ((pNodeParent)) { return getNodeBottom(pNode, pNodeParent->getContentSize(), anchor); @@ -336,36 +336,36 @@ struct CC_DLL LayoutHelper return 0.0f; } - static void setNodeLB(cocos2d::Node* pNode, const cocos2d::Point& p) + static void setNodeLB(axis::Node* pNode, const axis::Point& p) { // left bottom - cocos2d::Node* pNodeParent = pNode->getParent(); + axis::Node* pNodeParent = pNode->getParent(); if ((pNodeParent)) { setNodeLB(pNode, pNodeParent->getContentSize(), p); } } - static void setNodeRB(cocos2d::Node* pNode, const cocos2d::Point& p) + static void setNodeRB(axis::Node* pNode, const axis::Point& p) { // right bottom - cocos2d::Node* pNodeParent = pNode->getParent(); + axis::Node* pNodeParent = pNode->getParent(); if ((pNodeParent)) { setNodeRB(pNode, pNodeParent->getContentSize(), p); } } - static void setNodeLT(cocos2d::Node* pNode, const cocos2d::Point& p) + static void setNodeLT(axis::Node* pNode, const axis::Point& p) { // left top - cocos2d::Node* pNodeParent = pNode->getParent(); + axis::Node* pNodeParent = pNode->getParent(); if ((pNodeParent)) { setNodeLT(pNode, pNodeParent->getContentSize(), p); } } - static void setNodeRT(cocos2d::Node* pNode, const cocos2d::Point& p) + static void setNodeRT(axis::Node* pNode, const axis::Point& p) { // right top - cocos2d::Node* pNodeParent = pNode->getParent(); + axis::Node* pNodeParent = pNode->getParent(); if ((pNodeParent)) { setNodeRT(pNode, pNodeParent->getContentSize(), p); @@ -373,7 +373,7 @@ struct CC_DLL LayoutHelper } // @version 2 used as internal interfaces - static void setNodeLeft(cocos2d::Node* pNode, const Vec2& parentSize, float left, float anchor = 0.0f) + static void setNodeLeft(axis::Node* pNode, const Vec2& parentSize, float left, float anchor = 0.0f) { CC_ASSERT(pNode); @@ -385,7 +385,7 @@ struct CC_DLL LayoutHelper } pNode->setPositionX(adjust_coord(size.width, achorX, left) - size.width * anchor); } - static float getNodeLeft(cocos2d::Node* pNode, const Vec2& parentSize, float anchor = 0.0f) + static float getNodeLeft(axis::Node* pNode, const Vec2& parentSize, float anchor = 0.0f) { CC_ASSERT(pNode); @@ -398,7 +398,7 @@ struct CC_DLL LayoutHelper return adjust_coord_r(size.width, achorX, pNode->getPositionX()) + anchor * size.width; } - static void setNodeTop(cocos2d::Node* pNode, const Vec2& parentSize, float top, float anchor = 0.0f) + static void setNodeTop(axis::Node* pNode, const Vec2& parentSize, float top, float anchor = 0.0f) { CC_ASSERT(pNode); @@ -410,7 +410,7 @@ struct CC_DLL LayoutHelper } pNode->setPositionY(adjust_coord_neg(parentSize.height, size.height, achorY, top) - size.height * anchor); } - static float getNodeTop(cocos2d::Node* pNode, const Vec2& parentSize, float anchor = 0.0f) + static float getNodeTop(axis::Node* pNode, const Vec2& parentSize, float anchor = 0.0f) { CC_ASSERT(pNode); @@ -423,7 +423,7 @@ struct CC_DLL LayoutHelper return adjust_coord_neg_r(parentSize.height, size.height, achorY, pNode->getPositionY()) + size.height * anchor; } - static void setNodeRight(cocos2d::Node* pNode, const Vec2& parentSize, float right) + static void setNodeRight(axis::Node* pNode, const Vec2& parentSize, float right) { CC_ASSERT(pNode); @@ -436,7 +436,7 @@ struct CC_DLL LayoutHelper pNode->setPositionX(adjust_coord_neg(parentSize.width, size.width, achorX, right)); } - static float getNodeRight(cocos2d::Node* pNode, const Vec2& parentSize, float anchor = 0.0f) + static float getNodeRight(axis::Node* pNode, const Vec2& parentSize, float anchor = 0.0f) { CC_ASSERT(pNode); @@ -449,7 +449,7 @@ struct CC_DLL LayoutHelper return adjust_coord_neg_r(parentSize.width, size.width, achorX, pNode->getPositionX()) + anchor * size.width; } - static void setNodeBottom(cocos2d::Node* pNode, const Vec2& parentSize, float bottom, float anchor = 0.0f) + static void setNodeBottom(axis::Node* pNode, const Vec2& parentSize, float bottom, float anchor = 0.0f) { CC_ASSERT(pNode); @@ -462,7 +462,7 @@ struct CC_DLL LayoutHelper pNode->setPositionY(adjust_coord(size.height, achorY, bottom) - anchor * size.height); } - static float getNodeBottom(cocos2d::Node* pNode, const Vec2& parentSize, float anchor = 0.f) + static float getNodeBottom(axis::Node* pNode, const Vec2& parentSize, float anchor = 0.f) { CC_ASSERT(pNode); @@ -475,83 +475,83 @@ struct CC_DLL LayoutHelper return adjust_coord_r(size.height, achorY, pNode->getPositionY()) + size.height * anchor; } - static void setNodeLB(cocos2d::Node* pNode, const Vec2& parentSize, const cocos2d::Point& p) + static void setNodeLB(axis::Node* pNode, const Vec2& parentSize, const axis::Point& p) { // left bottom CC_ASSERT(pNode); Vec2 size = pNode->getContentSize() * getScale2D(pNode); - cocos2d::Point achorPoint = cocos2d::Vec2::ZERO; + axis::Point achorPoint = axis::Vec2::ZERO; if (!pNode->isIgnoreAnchorPointForPosition()) { achorPoint = pNode->getAnchorPoint(); } pNode->setPosition( - cocos2d::Vec2(adjust_coord(size.width, achorPoint.x, p.x), adjust_coord(size.height, achorPoint.y, p.y))); + axis::Vec2(adjust_coord(size.width, achorPoint.x, p.x), adjust_coord(size.height, achorPoint.y, p.y))); } - static void setNodeRB(cocos2d::Node* pNode, const Vec2& parentSize, const cocos2d::Point& p) + static void setNodeRB(axis::Node* pNode, const Vec2& parentSize, const axis::Point& p) { // right bottom CC_ASSERT(pNode); Vec2 size = pNode->getContentSize() * getScale2D(pNode); - cocos2d::Point achorPoint = cocos2d::Vec2::ZERO; + axis::Point achorPoint = axis::Vec2::ZERO; if (!pNode->isIgnoreAnchorPointForPosition()) { achorPoint = pNode->getAnchorPoint(); } - pNode->setPosition(cocos2d::Vec2(adjust_coord_neg(parentSize.width, size.width, achorPoint.x, p.x), + pNode->setPosition(axis::Vec2(adjust_coord_neg(parentSize.width, size.width, achorPoint.x, p.x), adjust_coord(size.height, achorPoint.y, p.y))); } - static void setNodeLT(cocos2d::Node* pNode, const Vec2& parentSize, const cocos2d::Point& p) + static void setNodeLT(axis::Node* pNode, const Vec2& parentSize, const axis::Point& p) { // left top CC_ASSERT(pNode); Vec2 size = pNode->getContentSize() * getScale2D(pNode); - cocos2d::Point achorPoint = cocos2d::Vec2::ZERO; + axis::Point achorPoint = axis::Vec2::ZERO; if (!pNode->isIgnoreAnchorPointForPosition()) { achorPoint = pNode->getAnchorPoint(); } - pNode->setPosition(cocos2d::Vec2(adjust_coord(size.width, achorPoint.x, p.x), + pNode->setPosition(axis::Vec2(adjust_coord(size.width, achorPoint.x, p.x), adjust_coord_neg(parentSize.height, size.height, achorPoint.y, p.y))); } - static void setNodeRT(cocos2d::Node* pNode, const Vec2& parentSize, const cocos2d::Point& p) + static void setNodeRT(axis::Node* pNode, const Vec2& parentSize, const axis::Point& p) { // right top CC_ASSERT(pNode); Vec2 size = pNode->getContentSize() * getScale2D(pNode); - cocos2d::Point achorPoint = cocos2d::Vec2::ZERO; + axis::Point achorPoint = axis::Vec2::ZERO; if (!pNode->isIgnoreAnchorPointForPosition()) { achorPoint = pNode->getAnchorPoint(); } - pNode->setPosition(cocos2d::Vec2(adjust_coord_neg(parentSize.width, size.width, achorPoint.x, p.x), + pNode->setPosition(axis::Vec2(adjust_coord_neg(parentSize.width, size.width, achorPoint.x, p.x), adjust_coord_neg(parentSize.height, size.height, achorPoint.y, p.y))); } /* set node position as normalized: @version 1 */ - static void setNodeNormalizedPositionX(cocos2d::Node* pNode, float ratio) + static void setNodeNormalizedPositionX(axis::Node* pNode, float ratio) { - cocos2d::Node* pNodeParent = pNode->getParent(); + axis::Node* pNodeParent = pNode->getParent(); if ((pNodeParent)) { setNodeNormalizedPositionX(pNode, pNodeParent->getContentSize(), ratio); } } - static void setNodeNormalizedPositionY(cocos2d::Node* pNode, float ratio) + static void setNodeNormalizedPositionY(axis::Node* pNode, float ratio) { - cocos2d::Node* pNodeParent = pNode->getParent(); + axis::Node* pNodeParent = pNode->getParent(); if ((pNodeParent)) { setNodeNormalizedPositionY(pNode, pNodeParent->getContentSize(), ratio); } } - static void setNodeNormalizedPosition(cocos2d::Node* pNode, const cocos2d::Point& ratio) + static void setNodeNormalizedPosition(axis::Node* pNode, const axis::Point& ratio) { - cocos2d::Node* pNodeParent = pNode->getParent(); + axis::Node* pNodeParent = pNode->getParent(); if ((pNodeParent)) { setNodeNormalizedPosition(pNode, pNodeParent->getContentSize(), ratio); @@ -559,75 +559,75 @@ struct CC_DLL LayoutHelper } /* set node position as normalized: @version 2 */ - static void setNodeNormalizedPositionX(cocos2d::Node* pNode, const Vec2& parentSize, float ratio) + static void setNodeNormalizedPositionX(axis::Node* pNode, const Vec2& parentSize, float ratio) { CC_ASSERT(pNode); pNode->setPositionX(parentSize.width * ratio); } - static void setNodeNormalizedPositionY(cocos2d::Node* pNode, const Vec2& parentSize, float ratio) + static void setNodeNormalizedPositionY(axis::Node* pNode, const Vec2& parentSize, float ratio) { CC_ASSERT(pNode); pNode->setPositionY(parentSize.height * ratio); } - static void setNodeNormalizedPosition(cocos2d::Node* pNode, const Vec2& parentSize, const cocos2d::Point& ratio) + static void setNodeNormalizedPosition(axis::Node* pNode, const Vec2& parentSize, const axis::Point& ratio) { CC_ASSERT(pNode); - pNode->setPosition(cocos2d::Point(parentSize.width * ratio.x, parentSize.height * ratio.y)); + pNode->setPosition(axis::Point(parentSize.width * ratio.x, parentSize.height * ratio.y)); } /// Get node group size - static Vec2 getNodeGroupSize(const std::vector& nodes); + static Vec2 getNodeGroupSize(const std::vector& nodes); - static Vec2 getNodeGroupScaledSize(const std::vector& nodes); + static Vec2 getNodeGroupScaledSize(const std::vector& nodes); /// Set nodes group size - static void setNodeGroupSize(const std::vector& nodes, const Vec2& newSize); + static void setNodeGroupSize(const std::vector& nodes, const Vec2& newSize); /// Get Node group left - static float getNodeGroupLeft(const std::vector& nodes); + static float getNodeGroupLeft(const std::vector& nodes); /// Get node group top - static float getNodeGroupTop(const std::vector& nodes); + static float getNodeGroupTop(const std::vector& nodes); /// Get node group right - static float getNodeGroupRight(const std::vector& nodes); + static float getNodeGroupRight(const std::vector& nodes); /// Get node group bottom - static float getNodeGroupBottom(const std::vector& nodes); + static float getNodeGroupBottom(const std::vector& nodes); /* ** setNodeGroupLeft ** */ - static void setNodeGroupLeft(const std::vector& nodes, float left); + static void setNodeGroupLeft(const std::vector& nodes, float left); /* ** setNodeGroupLeft ** */ - static void setNodeGroupTop(const std::vector& nodes, float top); + static void setNodeGroupTop(const std::vector& nodes, float top); - static void setNodeGroupLT(const std::vector& nodes, const cocos2d::Vec2& p); + static void setNodeGroupLT(const std::vector& nodes, const axis::Vec2& p); /* ** setNodeGroupRight ** */ - static void setNodeGroupRight(const std::vector& nodes, float right); + static void setNodeGroupRight(const std::vector& nodes, float right); /* ** setNodeGroupRight ** */ - static void setNodeGroupBottom(const std::vector& nodes, float bottom); + static void setNodeGroupBottom(const std::vector& nodes, float bottom); //// move node group, use UI direction - static void moveNodeGroupHorizontally(const std::vector& nodes, float delta); - static void moveNodeGroupVertically(const std::vector& nodes, float delta); + static void moveNodeGroupHorizontally(const std::vector& nodes, float delta); + static void moveNodeGroupVertically(const std::vector& nodes, float delta); /* @brief: group layout and alignment ** @remark: @@ -636,139 +636,139 @@ struct CC_DLL LayoutHelper /// Center horiz to parent /// /// - static void centerHorizontally(const std::vector& nodes); + static void centerHorizontally(const std::vector& nodes); /// /// Center vertical to parent /// /// - static void centerVertically(const std::vector& nodes); + static void centerVertically(const std::vector& nodes); /// /// Center to parent /// /// - static void centerToParent(const std::vector& nodes); + static void centerToParent(const std::vector& nodes); /// /// Align lefts /// /// - static void alignLefts(const std::vector& nodes); + static void alignLefts(const std::vector& nodes); /// /// Align rights /// /// - static void alignRights(const std::vector& nodes); + static void alignRights(const std::vector& nodes); /// /// Align tops /// /// - static void alignTops(const std::vector& nodes); + static void alignTops(const std::vector& nodes); /// /// Align bottoms /// /// - static void alignBottoms(const std::vector& nodes); + static void alignBottoms(const std::vector& nodes); /// /// Align horiz /// /// - static void alignHorizontals(const std::vector& nodes); + static void alignHorizontals(const std::vector& nodes); /// /// Align vertical /// /// - static void alignVerticals(const std::vector& nodes); + static void alignVerticals(const std::vector& nodes); /// /// Align centers /// /// - static void alignCenters(const std::vector& nodes); + static void alignCenters(const std::vector& nodes); /// /// Make same width /// /// - static void makeSameWidth(const std::vector& nodes); + static void makeSameWidth(const std::vector& nodes); /// /// Make same height /// /// - static void makeSameHeight(const std::vector& nodes); + static void makeSameHeight(const std::vector& nodes); /// /// Make same size /// /// - static void makeSameSize(const std::vector& nodes); + static void makeSameSize(const std::vector& nodes); /// /// Make horiz spacing equal /// /// - static void makeHorizontalSpacingEqual(std::vector& nodes); + static void makeHorizontalSpacingEqual(std::vector& nodes); /// /// Make vertical spacing equal /// /// - static void makeVerticalSpacingEqual(std::vector& nodes); + static void makeVerticalSpacingEqual(std::vector& nodes); /// /// Increease horiz spacing /// /// - static void increaseHorizontalSpacing(std::vector& nodes, float theSpacing); + static void increaseHorizontalSpacing(std::vector& nodes, float theSpacing); /// /// Increase vertical spacing /// /// - static void increaseVerticalSpacing(std::vector& nodes, float theSpacing); + static void increaseVerticalSpacing(std::vector& nodes, float theSpacing); /// /// Decrease horiz spacing /// /// - static void decreaseHorizontalSpacing(std::vector& nodes, float theSpacing); + static void decreaseHorizontalSpacing(std::vector& nodes, float theSpacing); /// /// Decrease vertical spacing /// /// - static void decreaseVerticalSpacing(std::vector& nodes, float theSpacing); + static void decreaseVerticalSpacing(std::vector& nodes, float theSpacing); /// /// Remove horiz spacing /// /// - static void removeHorizontalSpacing(const std::vector& nodes); + static void removeHorizontalSpacing(const std::vector& nodes); /// /// Remove Vertical spacing /// /// - static void removeVerticalSpacing(const std::vector& nodes); + static void removeVerticalSpacing(const std::vector& nodes); /// /// maybe for internal use /// /// - static void makeHorizontalSpacingEqual(const std::vector& nodes, float theSpacing); + static void makeHorizontalSpacingEqual(const std::vector& nodes, float theSpacing); /// /// maybe for internal use /// /// - static void makeVerticalSpacingEqual(const std::vector& nodes, float theSpacing); + static void makeVerticalSpacingEqual(const std::vector& nodes, float theSpacing); /// /// CLASS VisibleRect @@ -778,59 +778,59 @@ struct CC_DLL LayoutHelper public: static void refresh(void); - static cocos2d::Rect getScreenVisibleRect(); + static axis::Rect getScreenVisibleRect(); static Vec2 size(); - static cocos2d::Point left(); - static cocos2d::Point right(); - static cocos2d::Point top(); - static cocos2d::Point bottom(); - static cocos2d::Point center(); - static cocos2d::Point leftTop(); - static cocos2d::Point rightTop(); - static cocos2d::Point leftBottom(); - static cocos2d::Point rightBottom(); + static axis::Point left(); + static axis::Point right(); + static axis::Point top(); + static axis::Point bottom(); + static axis::Point center(); + static axis::Point leftTop(); + static axis::Point rightTop(); + static axis::Point leftBottom(); + static axis::Point rightBottom(); // ------- The APIs for set layout node in visible screen rect ------ - static void setNodePosition(cocos2d::Node* pNode, const cocos2d::Point& p) + static void setNodePosition(axis::Node* pNode, const axis::Point& p) { - setNodeNormalizedPosition(pNode, cocos2d::Vec2(p.x / s_designSize.width * s_adjustedScale, + setNodeNormalizedPosition(pNode, axis::Vec2(p.x / s_designSize.width * s_adjustedScale, p.y / s_designSize.height * s_adjustedScale)); } - static void centerNode(cocos2d::Node* pNode) { setNodeNormalizedPosition(pNode, cocos2d::Vec2(.5f, .5f)); } - static void centerNodeX(cocos2d::Node* pNode) { setNodeNormalizedPositionX(pNode, .5f); } - static void centerNodeY(cocos2d::Node* pNode) { setNodeNormalizedPositionY(pNode, .5f); } + static void centerNode(axis::Node* pNode) { setNodeNormalizedPosition(pNode, axis::Vec2(.5f, .5f)); } + static void centerNodeX(axis::Node* pNode) { setNodeNormalizedPositionX(pNode, .5f); } + static void centerNodeY(axis::Node* pNode) { setNodeNormalizedPositionY(pNode, .5f); } - static void setNodeLeft(cocos2d::Node* pNode, float left); - static void setNodeTop(cocos2d::Node* pNode, float top); - static void setNodeRight(cocos2d::Node* pNode, float right); - static void setNodeBottom(cocos2d::Node* pNode, float bottom); + static void setNodeLeft(axis::Node* pNode, float left); + static void setNodeTop(axis::Node* pNode, float top); + static void setNodeRight(axis::Node* pNode, float right); + static void setNodeBottom(axis::Node* pNode, float bottom); - static float getNodeLeft(cocos2d::Node* pNode); - static float getNodeTop(cocos2d::Node* pNode); - static float getNodeRight(cocos2d::Node* pNode); - static float getNodeBottom(cocos2d::Node* pNode); + static float getNodeLeft(axis::Node* pNode); + static float getNodeTop(axis::Node* pNode); + static float getNodeRight(axis::Node* pNode); + static float getNodeBottom(axis::Node* pNode); - static void setNodeLT(cocos2d::Node* pNode, const cocos2d::Point& p); - static void setNodeRT(cocos2d::Node* pNode, const cocos2d::Point& p); - static void setNodeLB(cocos2d::Node* pNode, const cocos2d::Point& p); - static void setNodeRB(cocos2d::Node* pNode, const cocos2d::Point& p); + static void setNodeLT(axis::Node* pNode, const axis::Point& p); + static void setNodeRT(axis::Node* pNode, const axis::Point& p); + static void setNodeLB(axis::Node* pNode, const axis::Point& p); + static void setNodeRB(axis::Node* pNode, const axis::Point& p); /// ratio position - static void setNodeNormalizedLT(cocos2d::Node* pNode, const cocos2d::Point& ratio); - static void setNodeNormalizedRT(cocos2d::Node* pNode, const cocos2d::Point& ratio); - static void setNodeNormalizedLB(cocos2d::Node* pNode, const cocos2d::Point& ratio); - static void setNodeNormalizedRB(cocos2d::Node* pNode, const cocos2d::Point& ratio); + static void setNodeNormalizedLT(axis::Node* pNode, const axis::Point& ratio); + static void setNodeNormalizedRT(axis::Node* pNode, const axis::Point& ratio); + static void setNodeNormalizedLB(axis::Node* pNode, const axis::Point& ratio); + static void setNodeNormalizedRB(axis::Node* pNode, const axis::Point& ratio); - static void setNodeNormalizedTop(cocos2d::Node* pNode, const float ratioTop); + static void setNodeNormalizedTop(axis::Node* pNode, const float ratioTop); - static void setNodeNormalizedPositionX(cocos2d::Node* pNode, float ratio); + static void setNodeNormalizedPositionX(axis::Node* pNode, float ratio); - static void setNodeNormalizedPositionY(cocos2d::Node* pNode, float ratio); - static void setNodeNormalizedPosition(cocos2d::Node* pNode, const cocos2d::Point& ratio); + static void setNodeNormalizedPositionY(axis::Node* pNode, float ratio); + static void setNodeNormalizedPosition(axis::Node* pNode, const axis::Point& ratio); private: static void lazyInit(); - static cocos2d::Rect s_ScreenVisibleRect; + static axis::Rect s_ScreenVisibleRect; }; }; diff --git a/core/ui/UIAbstractCheckButton.cpp b/core/ui/UIAbstractCheckButton.cpp index fe66b8015b..de4d30b55d 100644 --- a/core/ui/UIAbstractCheckButton.cpp +++ b/core/ui/UIAbstractCheckButton.cpp @@ -28,7 +28,7 @@ THE SOFTWARE. #include "renderer/ccShaders.h" #include "renderer/backend/ProgramStateRegistry.h" -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -618,4 +618,4 @@ ResourceData AbstractCheckButton::getCrossDisabledFile() } // namespace ui -NS_CC_END +NS_AX_END diff --git a/core/ui/UIAbstractCheckButton.h b/core/ui/UIAbstractCheckButton.h index bfa13a4654..a77ff6cc7a 100644 --- a/core/ui/UIAbstractCheckButton.h +++ b/core/ui/UIAbstractCheckButton.h @@ -33,7 +33,7 @@ THE SOFTWARE. * @addtogroup ui * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN class Sprite; struct CC_DLL ResourceData; @@ -259,7 +259,7 @@ protected: } // namespace ui -NS_CC_END +NS_AX_END // end of ui group /// @} diff --git a/core/ui/UIButton.cpp b/core/ui/UIButton.cpp index f9ddc5083f..f4003b9940 100644 --- a/core/ui/UIButton.cpp +++ b/core/ui/UIButton.cpp @@ -33,7 +33,7 @@ THE SOFTWARE. #include "ui/UIHelper.h" #include -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -999,4 +999,4 @@ ResourceData Button::getDisabledFile() } // namespace ui -NS_CC_END +NS_AX_END diff --git a/core/ui/UIButton.h b/core/ui/UIButton.h index b57cc15a31..05e0f5f1cd 100644 --- a/core/ui/UIButton.h +++ b/core/ui/UIButton.h @@ -34,7 +34,7 @@ THE SOFTWARE. * @addtogroup ui * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN class Label; class SpriteFrame; @@ -389,7 +389,7 @@ protected: } // namespace ui -NS_CC_END +NS_AX_END // end of ui group /// @} diff --git a/core/ui/UICheckBox.cpp b/core/ui/UICheckBox.cpp index 08f4afdea9..50d6999e42 100644 --- a/core/ui/UICheckBox.cpp +++ b/core/ui/UICheckBox.cpp @@ -25,7 +25,7 @@ THE SOFTWARE. #include "ui/UICheckBox.h" -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -144,4 +144,4 @@ void CheckBox::copySpecialProperties(Widget* widget) } // namespace ui -NS_CC_END +NS_AX_END diff --git a/core/ui/UICheckBox.h b/core/ui/UICheckBox.h index d9afa955e8..caae7404ee 100644 --- a/core/ui/UICheckBox.h +++ b/core/ui/UICheckBox.h @@ -33,7 +33,7 @@ THE SOFTWARE. * @addtogroup ui * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -138,7 +138,7 @@ protected: } // namespace ui -NS_CC_END +NS_AX_END // end of ui group /// @} diff --git a/core/ui/UIEditBox/Mac/CCUIEditBoxMac.h b/core/ui/UIEditBox/Mac/CCUIEditBoxMac.h index 4859ed3295..adea229d27 100644 --- a/core/ui/UIEditBox/Mac/CCUIEditBoxMac.h +++ b/core/ui/UIEditBox/Mac/CCUIEditBoxMac.h @@ -45,8 +45,8 @@ @property(nonatomic, readonly, getter=isEditState) BOOL editState; @property(nonatomic, assign) void* editBox; @property(nonatomic, assign) NSRect frameRect; -@property(nonatomic, assign) cocos2d::ui::EditBox::InputFlag dataInputMode; -@property(nonatomic, assign) cocos2d::ui::EditBox::KeyboardReturnType keyboardReturnType; +@property(nonatomic, assign) axis::ui::EditBox::InputFlag dataInputMode; +@property(nonatomic, assign) axis::ui::EditBox::KeyboardReturnType keyboardReturnType; - (instancetype)initWithFrame:(NSRect)frameRect editBox:(void*)editBox; - (void)setMaxLength:(int)maxLength; @@ -56,12 +56,12 @@ - (void)closeKeyboard; - (NSString*)getDefaultFontName; -- (cocos2d::ui::EditBoxDelegate::EditBoxEndAction)getEndAction:(NSNotification*)notification; +- (axis::ui::EditBoxDelegate::EditBoxEndAction)getEndAction:(NSNotification*)notification; -- (void)setInputMode:(cocos2d::ui::EditBox::InputMode)inputMode; -- (void)setInputFlag:(cocos2d::ui::EditBox::InputFlag)inputFlag; -- (void)setReturnType:(cocos2d::ui::EditBox::KeyboardReturnType)returnType; -- (void)setTextHorizontalAlignment:(cocos2d::TextHAlignment)alignment; +- (void)setInputMode:(axis::ui::EditBox::InputMode)inputMode; +- (void)setInputFlag:(axis::ui::EditBox::InputFlag)inputFlag; +- (void)setReturnType:(axis::ui::EditBox::KeyboardReturnType)returnType; +- (void)setTextHorizontalAlignment:(axis::TextHAlignment)alignment; - (void)setPlaceHolder:(const char*)text; - (void)setVisible:(BOOL)visible; - (void)setTextColor:(NSColor*)color; diff --git a/core/ui/UIEditBox/Mac/CCUIEditBoxMac.mm b/core/ui/UIEditBox/Mac/CCUIEditBoxMac.mm index 7148845817..c7bfa40ec4 100644 --- a/core/ui/UIEditBox/Mac/CCUIEditBoxMac.mm +++ b/core/ui/UIEditBox/Mac/CCUIEditBoxMac.mm @@ -30,7 +30,7 @@ #include "ui/UIEditBox/Mac/CCUIPasswordTextField.h" #include "ui/UIEditBox/Mac/CCUIMultilineTextField.h" -#define getEditBoxImplMac() ((cocos2d::ui::EditBoxImplMac*)_editBox) +#define getEditBoxImplMac() ((axis::ui::EditBoxImplMac*)_editBox) @implementation UIEditBoxImplMac @@ -45,8 +45,8 @@ self.frameRect = frameRect; self.editBox = editBox; - self.dataInputMode = cocos2d::ui::EditBox::InputFlag::LOWERCASE_ALL_CHARACTERS; - self.keyboardReturnType = cocos2d::ui::EditBox::KeyboardReturnType::DEFAULT; + self.dataInputMode = axis::ui::EditBox::InputFlag::LOWERCASE_ALL_CHARACTERS; + self.keyboardReturnType = axis::ui::EditBox::KeyboardReturnType::DEFAULT; [self createMultiLineTextField]; } @@ -131,7 +131,7 @@ - (NSWindow*)window { - auto glview = cocos2d::Director::getInstance()->getOpenGLView(); + auto glview = axis::Director::getInstance()->getOpenGLView(); return glview->getCocoaWindow(); } @@ -150,7 +150,7 @@ auto editbox = getEditBoxImplMac()->getEditBox(); auto oldPos = editbox->getPosition(); - editbox->setPosition(oldPos + cocos2d::Vec2(10, 20)); + editbox->setPosition(oldPos + axis::Vec2(10, 20)); editbox->setPosition(oldPos); } @@ -201,10 +201,10 @@ return self.textInput.ccui_font.fontName ?: @""; } -- (void)setInputMode:(cocos2d::ui::EditBox::InputMode)inputMode +- (void)setInputMode:(axis::ui::EditBox::InputMode)inputMode { // multiline input - if (inputMode == cocos2d::ui::EditBox::InputMode::ANY) + if (inputMode == axis::ui::EditBox::InputMode::ANY) { if (![self.textInput isKindOfClass:[NSTextView class]]) { @@ -213,7 +213,7 @@ } else { - if (self.dataInputMode != cocos2d::ui::EditBox::InputFlag::PASSWORD) + if (self.dataInputMode != axis::ui::EditBox::InputFlag::PASSWORD) { if (![self.textInput isKindOfClass:[NSTextField class]]) { @@ -223,43 +223,43 @@ } } -- (void)setInputFlag:(cocos2d::ui::EditBox::InputFlag)inputFlag +- (void)setInputFlag:(axis::ui::EditBox::InputFlag)inputFlag { if (self.dataInputMode == inputFlag) { return; } - if (self.dataInputMode == cocos2d::ui::EditBox::InputFlag::PASSWORD && - inputFlag != cocos2d::ui::EditBox::InputFlag::PASSWORD) + if (self.dataInputMode == axis::ui::EditBox::InputFlag::PASSWORD && + inputFlag != axis::ui::EditBox::InputFlag::PASSWORD) { [self createSingleLineTextField]; } - if (self.dataInputMode != cocos2d::ui::EditBox::InputFlag::PASSWORD && - inputFlag == cocos2d::ui::EditBox::InputFlag::PASSWORD) + if (self.dataInputMode != axis::ui::EditBox::InputFlag::PASSWORD && + inputFlag == axis::ui::EditBox::InputFlag::PASSWORD) { [self createPasswordTextField]; } switch (inputFlag) { - case cocos2d::ui::EditBox::InputFlag::PASSWORD: + case axis::ui::EditBox::InputFlag::PASSWORD: self.dataInputMode = inputFlag; break; - case cocos2d::ui::EditBox::InputFlag::INITIAL_CAPS_WORD: + case axis::ui::EditBox::InputFlag::INITIAL_CAPS_WORD: CCLOG("INITIAL_CAPS_WORD not implemented"); break; - case cocos2d::ui::EditBox::InputFlag::INITIAL_CAPS_SENTENCE: + case axis::ui::EditBox::InputFlag::INITIAL_CAPS_SENTENCE: CCLOG("INITIAL_CAPS_SENTENCE not implemented"); break; - case cocos2d::ui::EditBox::InputFlag::INITIAL_CAPS_ALL_CHARACTERS: + case axis::ui::EditBox::InputFlag::INITIAL_CAPS_ALL_CHARACTERS: CCLOG("INITIAL_CAPS_ALL_CHARACTERS not implemented"); break; - case cocos2d::ui::EditBox::InputFlag::SENSITIVE: + case axis::ui::EditBox::InputFlag::SENSITIVE: CCLOG("SENSITIVE not implemented"); break; - case cocos2d::ui::EditBox::InputFlag::LOWERCASE_ALL_CHARACTERS: + case axis::ui::EditBox::InputFlag::LOWERCASE_ALL_CHARACTERS: CCLOG("LOWERCASE_ALL_CHARACTERS not implemented"); break; default: @@ -267,18 +267,18 @@ } } -- (void)setReturnType:(cocos2d::ui::EditBox::KeyboardReturnType)returnType +- (void)setReturnType:(axis::ui::EditBox::KeyboardReturnType)returnType { CCLOG("setReturnType not implemented"); } -- (void)setTextHorizontalAlignment:(cocos2d::TextHAlignment)alignment +- (void)setTextHorizontalAlignment:(axis::TextHAlignment)alignment { // swizzle center & right, for some reason they're backwards on !TARGET_OS_IPHONE - if (alignment == cocos2d::TextHAlignment::CENTER) - alignment = cocos2d::TextHAlignment::RIGHT; - else if (alignment == cocos2d::TextHAlignment::RIGHT) - alignment = cocos2d::TextHAlignment::CENTER; + if (alignment == axis::TextHAlignment::CENTER) + alignment = axis::TextHAlignment::RIGHT; + else if (alignment == axis::TextHAlignment::RIGHT) + alignment = axis::TextHAlignment::CENTER; self.textInput.ccui_alignment = static_cast(alignment); } @@ -335,21 +335,21 @@ getEditBoxImplMac()->editBoxEditingDidEnd([self getText], [self getEndAction:notification]); } -- (cocos2d::ui::EditBoxDelegate::EditBoxEndAction)getEndAction:(NSNotification*)notification +- (axis::ui::EditBoxDelegate::EditBoxEndAction)getEndAction:(NSNotification*)notification { - auto type = cocos2d::ui::EditBoxDelegate::EditBoxEndAction::UNKNOWN; + auto type = axis::ui::EditBoxDelegate::EditBoxEndAction::UNKNOWN; NSUInteger reasonForEnding = [[[notification userInfo] objectForKey:@"NSTextMovement"] unsignedIntValue]; if (reasonForEnding == NSTabTextMovement) { - type = cocos2d::ui::EditBoxDelegate::EditBoxEndAction::TAB_TO_NEXT; + type = axis::ui::EditBoxDelegate::EditBoxEndAction::TAB_TO_NEXT; } else if (reasonForEnding == NSBacktabTextMovement) { - type = cocos2d::ui::EditBoxDelegate::EditBoxEndAction::TAB_TO_PREVIOUS; + type = axis::ui::EditBoxDelegate::EditBoxEndAction::TAB_TO_PREVIOUS; } else if (reasonForEnding == NSReturnTextMovement) { - type = cocos2d::ui::EditBoxDelegate::EditBoxEndAction::RETURN; + type = axis::ui::EditBoxDelegate::EditBoxEndAction::RETURN; } return type; } diff --git a/core/ui/UIEditBox/UIEditBox.cpp b/core/ui/UIEditBox/UIEditBox.cpp index 1faa2464e9..e24b8703dd 100644 --- a/core/ui/UIEditBox/UIEditBox.cpp +++ b/core/ui/UIEditBox/UIEditBox.cpp @@ -28,7 +28,7 @@ #include "ui/UIEditBox/UIEditBoxImpl.h" #include "ui/UIHelper.h" -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -81,7 +81,7 @@ EditBox* EditBox::create(const Vec2& size, } EditBox* EditBox::create(const Vec2& size, - cocos2d::ui::Scale9Sprite* normalSprite, + axis::ui::Scale9Sprite* normalSprite, ui::Scale9Sprite* pressedSprite, Scale9Sprite* disabledSprite) { @@ -892,4 +892,4 @@ void EditBox::unregisterScriptEditBoxHandler() } // namespace ui -NS_CC_END +NS_AX_END diff --git a/core/ui/UIEditBox/UIEditBox.h b/core/ui/UIEditBox/UIEditBox.h index d302a164ea..67aa27ec1e 100644 --- a/core/ui/UIEditBox/UIEditBox.h +++ b/core/ui/UIEditBox/UIEditBox.h @@ -32,7 +32,7 @@ #include "ui/UIWidget.h" #include "ui/UIScale9Sprite.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup ui @@ -714,6 +714,6 @@ protected: // end of ui group /// @} -NS_CC_END +NS_AX_END #endif /* __UIEDITTEXT_H__ */ diff --git a/core/ui/UIEditBox/UIEditBoxImpl-android.cpp b/core/ui/UIEditBox/UIEditBoxImpl-android.cpp index 3425fc937a..b537baa5a7 100644 --- a/core/ui/UIEditBox/UIEditBoxImpl-android.cpp +++ b/core/ui/UIEditBox/UIEditBoxImpl-android.cpp @@ -41,7 +41,7 @@ # include "platform/CCFileUtils.h" # include "yasio/cxx17/string_view.hpp" -NS_CC_BEGIN +NS_AX_BEGIN static const char* editBoxClassName = "org.cocos2dx.lib.Cocos2dxEditBoxHelper"; @@ -95,7 +95,7 @@ EditBoxImplAndroid::~EditBoxImplAndroid() void EditBoxImplAndroid::createNativeControl(const Rect& frame) { - auto director = cocos2d::Director::getInstance(); + auto director = axis::Director::getInstance(); auto glView = director->getOpenGLView(); auto frameSize = glView->getFrameSize(); @@ -117,13 +117,13 @@ void EditBoxImplAndroid::createNativeControl(const Rect& frame) void EditBoxImplAndroid::setNativeFont(const char* pFontName, int fontSize) { - auto director = cocos2d::Director::getInstance(); + auto director = axis::Director::getInstance(); auto glView = director->getOpenGLView(); - auto isFontFileExists = cocos2d::FileUtils::getInstance()->isFileExist(pFontName); + auto isFontFileExists = axis::FileUtils::getInstance()->isFileExist(pFontName); std::string realFontPath = pFontName; if (isFontFileExists) { - realFontPath = cocos2d::FileUtils::getInstance()->fullPathForFilename(pFontName); + realFontPath = axis::FileUtils::getInstance()->fullPathForFilename(pFontName); using namespace cxx17; // for cxx17::string_view literal if (cxx20::starts_with(cxx17::string_view{realFontPath}, "assets/"_sv)) { @@ -171,7 +171,7 @@ void EditBoxImplAndroid::setNativeReturnType(EditBox::KeyboardReturnType returnT JniHelper::callStaticVoidMethod(editBoxClassName, "setReturnType", _editBoxIndex, static_cast(returnType)); } -void EditBoxImplAndroid::setNativeTextHorizontalAlignment(cocos2d::TextHAlignment alignment) +void EditBoxImplAndroid::setNativeTextHorizontalAlignment(axis::TextHAlignment alignment) { JniHelper::callStaticVoidMethod(editBoxClassName, "setTextHorizontalAlignment", _editBoxIndex, static_cast(alignment)); @@ -236,7 +236,7 @@ void editBoxEditingDidEnd(int index, std::string_view text, int action) if (it != s_allEditBoxes.end()) { s_allEditBoxes[index]->editBoxEditingDidEnd( - text, static_cast(action)); + text, static_cast(action)); } } @@ -247,6 +247,6 @@ const char* EditBoxImplAndroid::getNativeDefaultFontName() } // namespace ui -NS_CC_END +NS_AX_END #endif /* #if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) */ diff --git a/core/ui/UIEditBox/UIEditBoxImpl-android.h b/core/ui/UIEditBox/UIEditBoxImpl-android.h index a64997540f..4ae9c8b3cc 100644 --- a/core/ui/UIEditBox/UIEditBoxImpl-android.h +++ b/core/ui/UIEditBox/UIEditBoxImpl-android.h @@ -33,7 +33,7 @@ # include "ui/UIEditBox/UIEditBoxImpl-common.h" -NS_CC_BEGIN +NS_AX_BEGIN class Label; @@ -64,7 +64,7 @@ public: virtual void setNativeInputMode(EditBox::InputMode inputMode) override; virtual void setNativeInputFlag(EditBox::InputFlag inputFlag) override; virtual void setNativeReturnType(EditBox::KeyboardReturnType returnType) override; - virtual void setNativeTextHorizontalAlignment(cocos2d::TextHAlignment alignment) override; + virtual void setNativeTextHorizontalAlignment(axis::TextHAlignment alignment) override; virtual void setNativeText(const char* pText) override; virtual void setNativePlaceHolder(const char* pText) override; virtual void setNativeVisible(bool visible) override; @@ -80,7 +80,7 @@ private: } // namespace ui -NS_CC_END +NS_AX_END #endif /* #if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) */ diff --git a/core/ui/UIEditBox/UIEditBoxImpl-common.cpp b/core/ui/UIEditBox/UIEditBoxImpl-common.cpp index ca58baf953..c8203f4854 100644 --- a/core/ui/UIEditBox/UIEditBoxImpl-common.cpp +++ b/core/ui/UIEditBox/UIEditBoxImpl-common.cpp @@ -41,7 +41,7 @@ static const int CC_EDIT_BOX_PADDING = 5; # define PASSWORD_CHAR "\u25CF" #endif -NS_CC_BEGIN +NS_AX_BEGIN static Vec2 applyPadding(const Vec2& sizeToCorrect) { @@ -213,7 +213,7 @@ void EditBoxImplCommon::setMaxLength(int maxLength) this->setNativeMaxLength(maxLength); } -void EditBoxImplCommon::setTextHorizontalAlignment(cocos2d::TextHAlignment alignment) +void EditBoxImplCommon::setTextHorizontalAlignment(axis::TextHAlignment alignment) { _alignment = alignment; this->setNativeTextHorizontalAlignment(alignment); @@ -357,7 +357,7 @@ void EditBoxImplCommon::onEndEditing(std::string_view /*text*/) void EditBoxImplCommon::editBoxEditingDidBegin() { // LOGD("textFieldShouldBeginEditing..."); - cocos2d::ui::EditBoxDelegate* pDelegate = _editBox->getDelegate(); + axis::ui::EditBoxDelegate* pDelegate = _editBox->getDelegate(); if (pDelegate != nullptr) { @@ -367,9 +367,9 @@ void EditBoxImplCommon::editBoxEditingDidBegin() #if CC_ENABLE_SCRIPT_BINDING if (NULL != _editBox && 0 != _editBox->getScriptEditBoxHandler()) { - cocos2d::CommonScriptData data(_editBox->getScriptEditBoxHandler(), "began", _editBox); - cocos2d::ScriptEvent event(cocos2d::kCommonEvent, (void*)&data); - cocos2d::ScriptEngineManager::sendEventToLua(event); + axis::CommonScriptData data(_editBox->getScriptEditBoxHandler(), "began", _editBox); + axis::ScriptEvent event(axis::kCommonEvent, (void*)&data); + axis::ScriptEngineManager::sendEventToLua(event); } #endif } @@ -379,7 +379,7 @@ void EditBoxImplCommon::editBoxEditingDidEnd(std::string_view text, EditBoxDeleg // LOGD("textFieldShouldEndEditing..."); _text = text; - cocos2d::ui::EditBoxDelegate* pDelegate = _editBox->getDelegate(); + axis::ui::EditBoxDelegate* pDelegate = _editBox->getDelegate(); if (pDelegate != nullptr) { pDelegate->editBoxEditingDidEndWithAction(_editBox, action); @@ -389,13 +389,13 @@ void EditBoxImplCommon::editBoxEditingDidEnd(std::string_view text, EditBoxDeleg #if CC_ENABLE_SCRIPT_BINDING if (_editBox != nullptr && 0 != _editBox->getScriptEditBoxHandler()) { - cocos2d::CommonScriptData data(_editBox->getScriptEditBoxHandler(), "ended", _editBox); - cocos2d::ScriptEvent event(cocos2d::kCommonEvent, (void*)&data); - cocos2d::ScriptEngineManager::sendEventToLua(event); + axis::CommonScriptData data(_editBox->getScriptEditBoxHandler(), "ended", _editBox); + axis::ScriptEvent event(axis::kCommonEvent, (void*)&data); + axis::ScriptEngineManager::sendEventToLua(event); memset(data.eventName, 0, sizeof(data.eventName)); strncpy(data.eventName, "return", sizeof(data.eventName)); event.data = (void*)&data; - cocos2d::ScriptEngineManager::sendEventToLua(event); + axis::ScriptEngineManager::sendEventToLua(event); } #endif @@ -408,7 +408,7 @@ void EditBoxImplCommon::editBoxEditingDidEnd(std::string_view text, EditBoxDeleg void EditBoxImplCommon::editBoxEditingChanged(std::string_view text) { // LOGD("editBoxTextChanged..."); - cocos2d::ui::EditBoxDelegate* pDelegate = _editBox->getDelegate(); + axis::ui::EditBoxDelegate* pDelegate = _editBox->getDelegate(); _text = text; if (pDelegate != nullptr) { @@ -418,13 +418,13 @@ void EditBoxImplCommon::editBoxEditingChanged(std::string_view text) #if CC_ENABLE_SCRIPT_BINDING if (NULL != _editBox && 0 != _editBox->getScriptEditBoxHandler()) { - cocos2d::CommonScriptData data(_editBox->getScriptEditBoxHandler(), "changed", _editBox); - cocos2d::ScriptEvent event(cocos2d::kCommonEvent, (void*)&data); - cocos2d::ScriptEngineManager::sendEventToLua(event); + axis::CommonScriptData data(_editBox->getScriptEditBoxHandler(), "changed", _editBox); + axis::ScriptEvent event(axis::kCommonEvent, (void*)&data); + axis::ScriptEngineManager::sendEventToLua(event); } #endif } } // namespace ui -NS_CC_END +NS_AX_END diff --git a/core/ui/UIEditBox/UIEditBoxImpl-common.h b/core/ui/UIEditBox/UIEditBoxImpl-common.h index f0483d2882..7831f886d1 100644 --- a/core/ui/UIEditBox/UIEditBoxImpl-common.h +++ b/core/ui/UIEditBox/UIEditBoxImpl-common.h @@ -33,7 +33,7 @@ #include "ui/UIEditBox/UIEditBoxImpl-common.h" #include "ui/UIEditBox/UIEditBoxImpl.h" -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -123,7 +123,7 @@ public: virtual void setNativeInputMode(EditBox::InputMode inputMode) = 0; virtual void setNativeInputFlag(EditBox::InputFlag inputFlag) = 0; virtual void setNativeReturnType(EditBox::KeyboardReturnType returnType) = 0; - virtual void setNativeTextHorizontalAlignment(cocos2d::TextHAlignment alignment) = 0; + virtual void setNativeTextHorizontalAlignment(axis::TextHAlignment alignment) = 0; virtual void setNativeText(const char* pText) = 0; virtual void setNativePlaceHolder(const char* pText) = 0; virtual void setNativeVisible(bool visible) = 0; @@ -166,6 +166,6 @@ protected: } // namespace ui -NS_CC_END +NS_AX_END #endif /* __UIEditBoxIMPLICOMMON_H__ */ diff --git a/core/ui/UIEditBox/UIEditBoxImpl-ios.h b/core/ui/UIEditBox/UIEditBoxImpl-ios.h index 09d38414c5..a8d8869506 100644 --- a/core/ui/UIEditBox/UIEditBoxImpl-ios.h +++ b/core/ui/UIEditBox/UIEditBoxImpl-ios.h @@ -34,7 +34,7 @@ @class UIEditBoxImplIOS_objc; @class UIFont; -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -63,7 +63,7 @@ public: virtual void setNativeInputMode(EditBox::InputMode inputMode) override; virtual void setNativeInputFlag(EditBox::InputFlag inputFlag) override; virtual void setNativeReturnType(EditBox::KeyboardReturnType returnType) override; - virtual void setNativeTextHorizontalAlignment(cocos2d::TextHAlignment alignment) override; + virtual void setNativeTextHorizontalAlignment(axis::TextHAlignment alignment) override; virtual void setNativeText(const char* pText) override; virtual void setNativePlaceHolder(const char* pText) override; virtual void setNativeVisible(bool visible) override; @@ -85,7 +85,7 @@ private: } -NS_CC_END +NS_AX_END #endif /* #if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) */ diff --git a/core/ui/UIEditBox/UIEditBoxImpl-ios.mm b/core/ui/UIEditBox/UIEditBoxImpl-ios.mm index 229dd3d861..d4ed934606 100644 --- a/core/ui/UIEditBox/UIEditBoxImpl-ios.mm +++ b/core/ui/UIEditBox/UIEditBoxImpl-ios.mm @@ -40,9 +40,9 @@ # import "ui/UIEditBox/iOS/CCUIEditBoxIOS.h" -# define getEditBoxImplIOS() ((cocos2d::ui::EditBoxImplIOS*)_editBox) +# define getEditBoxImplIOS() ((axis::ui::EditBoxImplIOS*)_editBox) -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -62,11 +62,11 @@ EditBoxImplIOS::~EditBoxImplIOS() void EditBoxImplIOS::createNativeControl(const Rect& frame) { - auto glview = cocos2d::Director::getInstance()->getOpenGLView(); + auto glview = axis::Director::getInstance()->getOpenGLView(); Rect rect(0, 0, frame.size.width * glview->getScaleX(), frame.size.height * glview->getScaleY()); - float factor = cocos2d::Director::getInstance()->getContentScaleFactor(); + float factor = axis::Director::getInstance()->getContentScaleFactor(); rect.size.width /= factor; rect.size.height /= factor; @@ -153,7 +153,7 @@ void EditBoxImplIOS::setNativeReturnType(EditBox::KeyboardReturnType returnType) [_systemControl setReturnType:returnType]; } -void EditBoxImplIOS::setNativeTextHorizontalAlignment(cocos2d::TextHAlignment alignment) +void EditBoxImplIOS::setNativeTextHorizontalAlignment(axis::TextHAlignment alignment) { [_systemControl setTextHorizontalAlignment:alignment]; } @@ -179,7 +179,7 @@ void EditBoxImplIOS::setNativeVisible(bool visible) void EditBoxImplIOS::updateNativeFrame(const Rect& rect) { - auto glview = cocos2d::Director::getInstance()->getOpenGLView(); + auto glview = axis::Director::getInstance()->getOpenGLView(); CCEAGLView* eaglview = (CCEAGLView*)glview->getEAGLView(); float factor = eaglview.contentScaleFactor; @@ -208,13 +208,13 @@ void EditBoxImplIOS::nativeCloseKeyboard() UIFont* EditBoxImplIOS::constructFont(const char* fontName, int fontSize) { CCASSERT(fontName != nullptr, "fontName can't be nullptr"); - CCEAGLView* eaglview = static_cast(cocos2d::Director::getInstance()->getOpenGLView()->getEAGLView()); + CCEAGLView* eaglview = static_cast(axis::Director::getInstance()->getOpenGLView()->getEAGLView()); float retinaFactor = eaglview.contentScaleFactor; NSString* fntName = [NSString stringWithUTF8String:fontName]; fntName = [[fntName lastPathComponent] stringByDeletingPathExtension]; - auto glview = cocos2d::Director::getInstance()->getOpenGLView(); + auto glview = axis::Director::getInstance()->getOpenGLView(); float scaleFactor = glview->getScaleX(); if (fontSize == -1) @@ -243,6 +243,6 @@ UIFont* EditBoxImplIOS::constructFont(const char* fontName, int fontSize) } } -NS_CC_END +NS_AX_END #endif /* #if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) */ diff --git a/core/ui/UIEditBox/UIEditBoxImpl-linux.cpp b/core/ui/UIEditBox/UIEditBoxImpl-linux.cpp index b98e09cc99..15d1c30405 100644 --- a/core/ui/UIEditBox/UIEditBoxImpl-linux.cpp +++ b/core/ui/UIEditBox/UIEditBoxImpl-linux.cpp @@ -79,7 +79,7 @@ bool LinuxInputBox(std::string& entryLine) return didChange; } -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -110,6 +110,6 @@ void EditBoxImplLinux::nativeOpenKeyboard() } // namespace ui -NS_CC_END +NS_AX_END #endif /* #if (CC_TARGET_PLATFORM == CC_PLATFORM_LINUX) */ diff --git a/core/ui/UIEditBox/UIEditBoxImpl-linux.h b/core/ui/UIEditBox/UIEditBoxImpl-linux.h index e5129a0ef1..643c150321 100644 --- a/core/ui/UIEditBox/UIEditBoxImpl-linux.h +++ b/core/ui/UIEditBox/UIEditBoxImpl-linux.h @@ -33,7 +33,7 @@ # include "ui/UIEditBox/UIEditBoxImpl-common.h" -NS_CC_BEGIN +NS_AX_BEGIN class Label; @@ -64,7 +64,7 @@ public: virtual void setNativeInputMode(EditBox::InputMode inputMode) override{}; virtual void setNativeInputFlag(EditBox::InputFlag inputFlag) override{}; virtual void setNativeReturnType(EditBox::KeyboardReturnType returnType) override{}; - virtual void setNativeTextHorizontalAlignment(cocos2d::TextHAlignment alignment){}; + virtual void setNativeTextHorizontalAlignment(axis::TextHAlignment alignment){}; virtual void setNativeText(const char* pText) override{}; virtual void setNativePlaceHolder(const char* pText) override{}; virtual void setNativeVisible(bool visible) override{}; @@ -80,7 +80,7 @@ private: } // namespace ui -NS_CC_END +NS_AX_END #endif /* #if (CC_TARGET_PLATFORM == CC_PLATFORM_LINUX) */ diff --git a/core/ui/UIEditBox/UIEditBoxImpl-mac.h b/core/ui/UIEditBox/UIEditBoxImpl-mac.h index eca07b699b..fedcc8bed1 100644 --- a/core/ui/UIEditBox/UIEditBoxImpl-mac.h +++ b/core/ui/UIEditBox/UIEditBoxImpl-mac.h @@ -36,7 +36,7 @@ @class UIEditBoxImplMac; @class NSFont; -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -65,7 +65,7 @@ public: virtual void setNativeInputMode(EditBox::InputMode inputMode) override; virtual void setNativeInputFlag(EditBox::InputFlag inputFlag) override; virtual void setNativeReturnType(EditBox::KeyboardReturnType returnType) override; - virtual void setNativeTextHorizontalAlignment(cocos2d::TextHAlignment alignment) override; + virtual void setNativeTextHorizontalAlignment(axis::TextHAlignment alignment) override; virtual void setNativeText(const char* pText) override; virtual void setNativePlaceHolder(const char* pText) override; virtual void setNativeVisible(bool visible) override; @@ -84,7 +84,7 @@ private: } -NS_CC_END +NS_AX_END #endif // #if (CC_TARGET_PLATFORM == CC_PLATFORM_MAC) diff --git a/core/ui/UIEditBox/UIEditBoxImpl-mac.mm b/core/ui/UIEditBox/UIEditBoxImpl-mac.mm index c3c3e80005..b0731d5f1f 100644 --- a/core/ui/UIEditBox/UIEditBoxImpl-mac.mm +++ b/core/ui/UIEditBox/UIEditBoxImpl-mac.mm @@ -33,7 +33,7 @@ # include "ui/UIEditBox/UIEditBox.h" # include "ui/UIEditBox/Mac/CCUIEditBoxMac.h" -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -55,13 +55,13 @@ EditBoxImplMac::~EditBoxImplMac() [_sysEdit release]; } -void EditBoxImplMac::createNativeControl(const cocos2d::Rect& frame) +void EditBoxImplMac::createNativeControl(const axis::Rect& frame) { - auto glview = cocos2d::Director::getInstance()->getOpenGLView(); + auto glview = axis::Director::getInstance()->getOpenGLView(); Size size = frame.size; NSRect rect = NSMakeRect(0, 0, size.width * glview->getScaleX(), size.height * glview->getScaleY()); - float factor = cocos2d::Director::getInstance()->getContentScaleFactor(); + float factor = axis::Director::getInstance()->getContentScaleFactor(); rect.size.width /= factor; rect.size.height /= factor; @@ -75,7 +75,7 @@ NSFont* EditBoxImplMac::constructFont(const char* fontName, int fontSize) NSString* fntName = [NSString stringWithUTF8String:fontName]; fntName = [[fntName lastPathComponent] stringByDeletingPathExtension]; float retinaFactor = _inRetinaMode ? 2.0f : 1.0f; - auto glview = cocos2d::Director::getInstance()->getOpenGLView(); + auto glview = axis::Director::getInstance()->getOpenGLView(); float scaleFactor = glview->getScaleX(); if (fontSize == -1) @@ -123,7 +123,7 @@ void EditBoxImplMac::setNativePlaceholderFont(const char* pFontName, int fontSiz [_sysEdit setPlaceholderFont:textFont]; } -void EditBoxImplMac::setNativeFontColor(const cocos2d::Color4B& color) +void EditBoxImplMac::setNativeFontColor(const axis::Color4B& color) { NSColor* newColor = [NSColor colorWithCalibratedRed:color.r / 255.0f green:color.g / 255.0f @@ -133,7 +133,7 @@ void EditBoxImplMac::setNativeFontColor(const cocos2d::Color4B& color) [_sysEdit setTextColor:newColor]; } -void EditBoxImplMac::setNativePlaceholderFontColor(const cocos2d::Color4B& color) +void EditBoxImplMac::setNativePlaceholderFontColor(const axis::Color4B& color) { NSColor* newColor = [NSColor colorWithCalibratedRed:color.r / 255.f green:color.g / 255.f @@ -165,7 +165,7 @@ void EditBoxImplMac::setNativeReturnType(EditBox::KeyboardReturnType returnType) [_sysEdit setReturnType:returnType]; } -void EditBoxImplMac::setNativeTextHorizontalAlignment(cocos2d::TextHAlignment alignment) +void EditBoxImplMac::setNativeTextHorizontalAlignment(axis::TextHAlignment alignment) { [_sysEdit setTextHorizontalAlignment:alignment]; } @@ -191,7 +191,7 @@ void EditBoxImplMac::setNativeVisible(bool visible) [_sysEdit setVisible:visible]; } -void EditBoxImplMac::updateNativeFrame(const cocos2d::Rect& rect) +void EditBoxImplMac::updateNativeFrame(const axis::Rect& rect) { GLView* eglView = Director::getInstance()->getOpenGLView(); auto frameSize = eglView->getFrameSize(); @@ -219,6 +219,6 @@ void EditBoxImplMac::nativeCloseKeyboard() } -NS_CC_END +NS_AX_END #endif // #if (CC_TARGET_PLATFORM == CC_PLATFORM_MAC) diff --git a/core/ui/UIEditBox/UIEditBoxImpl-stub.cpp b/core/ui/UIEditBox/UIEditBoxImpl-stub.cpp index 2c32681743..5272d23752 100644 --- a/core/ui/UIEditBox/UIEditBoxImpl-stub.cpp +++ b/core/ui/UIEditBox/UIEditBoxImpl-stub.cpp @@ -27,7 +27,7 @@ #if (CC_TARGET_PLATFORM != CC_PLATFORM_ANDROID) && (CC_TARGET_PLATFORM != CC_PLATFORM_IOS) && \ (CC_TARGET_PLATFORM != CC_PLATFORM_WIN32) && (CC_TARGET_PLATFORM != CC_PLATFORM_MAC) -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -39,6 +39,6 @@ EditBoxImpl* __createSystemEditBox(EditBox* pEditBox) } // namespace ui -NS_CC_END +NS_AX_END #endif /* #if (..) */ diff --git a/core/ui/UIEditBox/UIEditBoxImpl-win32.cpp b/core/ui/UIEditBox/UIEditBoxImpl-win32.cpp index a84fa8327d..8c83cdfa47 100644 --- a/core/ui/UIEditBox/UIEditBoxImpl-win32.cpp +++ b/core/ui/UIEditBox/UIEditBoxImpl-win32.cpp @@ -39,7 +39,7 @@ THE SOFTWARE. # include # include "ui/UIHelper.h" -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -53,7 +53,7 @@ HWND EditBoxImplWin::s_hwndCocos = 0; void EditBoxImplWin::lazyInit() { - s_hwndCocos = cocos2d::Director::getInstance()->getOpenGLView()->getWin32Window(); + s_hwndCocos = axis::Director::getInstance()->getOpenGLView()->getWin32Window(); LONG style = ::GetWindowLongW(s_hwndCocos, GWL_STYLE); ::SetWindowLongW(s_hwndCocos, GWL_STYLE, style | WS_CLIPCHILDREN); s_isInitialized = true; @@ -169,13 +169,13 @@ void EditBoxImplWin::setNativePlaceholderFontColor(const Color4B& color) void EditBoxImplWin::setNativeInputMode(EditBox::InputMode inputMode) { - if (_editBoxInputMode == cocos2d::ui::EditBox::InputMode::ANY) + if (_editBoxInputMode == axis::ui::EditBox::InputMode::ANY) { this->createEditCtrl(false); } - else if (_editBoxInputMode == cocos2d::ui::EditBox::InputMode::NUMERIC || - _editBoxInputMode == cocos2d::ui::EditBox::InputMode::DECIMAL || - _editBoxInputMode == cocos2d::ui::EditBox::InputMode::PHONE_NUMBER) + else if (_editBoxInputMode == axis::ui::EditBox::InputMode::NUMERIC || + _editBoxInputMode == axis::ui::EditBox::InputMode::DECIMAL || + _editBoxInputMode == axis::ui::EditBox::InputMode::PHONE_NUMBER) { this->createEditCtrl(true); ::SetWindowLongW(_hwndEdit, GWL_STYLE, ::GetWindowLongW(_hwndEdit, GWL_STYLE) | ES_NUMBER); @@ -185,7 +185,7 @@ void EditBoxImplWin::setNativeInputMode(EditBox::InputMode inputMode) this->createEditCtrl(true); } - if (this->_editBoxInputFlag != cocos2d::ui::EditBox::InputFlag::PASSWORD) + if (this->_editBoxInputFlag != axis::ui::EditBox::InputFlag::PASSWORD) { ::PostMessageW(_hwndEdit, EM_SETPASSWORDCHAR, (WPARAM)0, (LPARAM)0); } @@ -198,7 +198,7 @@ void EditBoxImplWin::setNativeInputFlag(EditBox::InputFlag inputFlag) } else { - if (_editBoxInputMode != cocos2d::ui::EditBox::InputMode::ANY) + if (_editBoxInputMode != axis::ui::EditBox::InputMode::ANY) { this->createEditCtrl(true); @@ -239,13 +239,13 @@ void EditBoxImplWin::setNativeText(const char* pText) { std::u16string utf16Result; std::string text(pText); - cocos2d::StringUtils::UTF8ToUTF16(text, utf16Result); + axis::StringUtils::UTF8ToUTF16(text, utf16Result); this->_changedTextManually = true; ::SetWindowTextW(_hwndEdit, (LPCWSTR)utf16Result.c_str()); int textLen = text.size(); ::SendMessageW(_hwndEdit, EM_SETSEL, textLen, textLen); - if (_editBoxInputMode == cocos2d::ui::EditBox::InputMode::ANY) + if (_editBoxInputMode == axis::ui::EditBox::InputMode::ANY) { ::SendMessageW(_hwndEdit, EM_SCROLLCARET, 0, 0); } @@ -306,7 +306,7 @@ void EditBoxImplWin::_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lPa case WM_CHAR: if (wParam == VK_RETURN) { - if (_editBoxInputMode != cocos2d::ui::EditBox::InputMode::ANY) + if (_editBoxInputMode != axis::ui::EditBox::InputMode::ANY) { if (s_previousFocusWnd != s_hwndCocos) { @@ -373,7 +373,7 @@ std::string EditBoxImplWin::getText() const wstrResult.resize(inputLength); ::GetWindowTextW(_hwndEdit, (LPWSTR)&wstrResult[0], inputLength + 1); - bool conversionResult = cocos2d::StringUtils::UTF16ToUTF8(wstrResult, utf8Result); + bool conversionResult = axis::StringUtils::UTF16ToUTF8(wstrResult, utf8Result); if (!conversionResult) { CCLOG("warning, editbox input text conversion error."); @@ -436,6 +436,6 @@ LRESULT EditBoxImplWin::WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM l } } // namespace ui -NS_CC_END +NS_AX_END #endif /* (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) */ diff --git a/core/ui/UIEditBox/UIEditBoxImpl-win32.h b/core/ui/UIEditBox/UIEditBoxImpl-win32.h index 9aec675270..a7c502b17a 100644 --- a/core/ui/UIEditBox/UIEditBoxImpl-win32.h +++ b/core/ui/UIEditBox/UIEditBoxImpl-win32.h @@ -32,7 +32,7 @@ THE SOFTWARE. #if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) # include "ui/UIEditBox/UIEditBoxImpl-common.h" -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -90,7 +90,7 @@ private: } // namespace ui -NS_CC_END +NS_AX_END #endif /* (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) */ diff --git a/core/ui/UIEditBox/UIEditBoxImpl.h b/core/ui/UIEditBox/UIEditBoxImpl.h index 4274dfcfb1..1cfd169956 100644 --- a/core/ui/UIEditBox/UIEditBoxImpl.h +++ b/core/ui/UIEditBox/UIEditBoxImpl.h @@ -29,8 +29,8 @@ #include "ui/UIEditBox/UIEditBox.h" -namespace cocos2d -{ +NS_AX_BEGIN + namespace ui { @@ -98,7 +98,7 @@ public: * @js NA * @lua NA */ - virtual void draw(cocos2d::Renderer* renderer, cocos2d::Mat4 const& transform, uint32_t flags) = 0; + virtual void draw(axis::Renderer* renderer, axis::Mat4 const& transform, uint32_t flags) = 0; /** * @js NA * @lua NA @@ -118,6 +118,6 @@ protected: extern EditBoxImpl* __createSystemEditBox(EditBox* pEditBox); } // namespace ui -} // namespace cocos2d +NS_AX_END // namespace axis #endif /* __UIEditBoxIMPL_H__ */ diff --git a/core/ui/UIEditBox/iOS/CCUIEditBoxIOS.h b/core/ui/UIEditBox/iOS/CCUIEditBoxIOS.h index ea3a9916bd..4ecd4db950 100644 --- a/core/ui/UIEditBox/iOS/CCUIEditBoxIOS.h +++ b/core/ui/UIEditBox/iOS/CCUIEditBoxIOS.h @@ -36,8 +36,8 @@ @property(nonatomic, assign) void* editBox; @property(nonatomic, assign) NSString* text; @property(nonatomic, assign) CGRect frameRect; -@property(nonatomic, assign) cocos2d::ui::EditBox::InputFlag dataInputMode; -@property(nonatomic, assign) cocos2d::ui::EditBox::KeyboardReturnType keyboardReturnType; +@property(nonatomic, assign) axis::ui::EditBox::InputFlag dataInputMode; +@property(nonatomic, assign) axis::ui::EditBox::KeyboardReturnType keyboardReturnType; @property(nonatomic, readonly, getter=isEditState) BOOL editState; @property(nonatomic, readwrite) BOOL returnPressed; @@ -45,12 +45,12 @@ - (void)doAnimationWhenKeyboardMoveWithDuration:(float)duration distance:(float)distance; - (NSString*)getDefaultFontName; -- (cocos2d::ui::EditBoxDelegate::EditBoxEndAction)getEndAction; +- (axis::ui::EditBoxDelegate::EditBoxEndAction)getEndAction; -- (void)setInputMode:(cocos2d::ui::EditBox::InputMode)inputMode; -- (void)setInputFlag:(cocos2d::ui::EditBox::InputFlag)flag; -- (void)setReturnType:(cocos2d::ui::EditBox::KeyboardReturnType)returnType; -- (void)setTextHorizontalAlignment:(cocos2d::TextHAlignment)alignment; +- (void)setInputMode:(axis::ui::EditBox::InputMode)inputMode; +- (void)setInputFlag:(axis::ui::EditBox::InputFlag)flag; +- (void)setReturnType:(axis::ui::EditBox::KeyboardReturnType)returnType; +- (void)setTextHorizontalAlignment:(axis::TextHAlignment)alignment; - (void)setPlaceHolder:(NSString*)text; - (void)setPlaceholderFont:(UIFont*)font; diff --git a/core/ui/UIEditBox/iOS/CCUIEditBoxIOS.mm b/core/ui/UIEditBox/iOS/CCUIEditBoxIOS.mm index 837d94c7ee..318ddc2f4f 100644 --- a/core/ui/UIEditBox/iOS/CCUIEditBoxIOS.mm +++ b/core/ui/UIEditBox/iOS/CCUIEditBoxIOS.mm @@ -33,7 +33,7 @@ #import "platform/ios/CCEAGLView-ios.h" #include "base/CCDirector.h" -#define getEditBoxImplIOS() ((cocos2d::ui::EditBoxImplIOS*)_editBox) +#define getEditBoxImplIOS() ((axis::ui::EditBoxImplIOS*)_editBox) @implementation UIEditBoxImplIOS_objc @@ -58,8 +58,8 @@ _editState = NO; self.frameRect = frameRect; self.editBox = editBox; - self.dataInputMode = cocos2d::ui::EditBox::InputFlag::LOWERCASE_ALL_CHARACTERS; - self.keyboardReturnType = cocos2d::ui::EditBox::KeyboardReturnType::DEFAULT; + self.dataInputMode = axis::ui::EditBox::InputFlag::LOWERCASE_ALL_CHARACTERS; + self.keyboardReturnType = axis::ui::EditBox::KeyboardReturnType::DEFAULT; [self createMultiLineTextField]; } @@ -149,10 +149,10 @@ self.textInput.ccui_placeholderTextColor = color; } -- (void)setInputMode:(cocos2d::ui::EditBox::InputMode)inputMode +- (void)setInputMode:(axis::ui::EditBox::InputMode)inputMode { // multiline input - if (inputMode == cocos2d::ui::EditBox::InputMode::ANY) + if (inputMode == axis::ui::EditBox::InputMode::ANY) { if (![self.textInput isKindOfClass:[UITextView class]]) { @@ -169,22 +169,22 @@ switch (inputMode) { - case cocos2d::ui::EditBox::InputMode::EMAIL_ADDRESS: + case axis::ui::EditBox::InputMode::EMAIL_ADDRESS: self.keyboardType = UIKeyboardTypeEmailAddress; break; - case cocos2d::ui::EditBox::InputMode::NUMERIC: + case axis::ui::EditBox::InputMode::NUMERIC: self.keyboardType = UIKeyboardTypeDecimalPad; break; - case cocos2d::ui::EditBox::InputMode::PHONE_NUMBER: + case axis::ui::EditBox::InputMode::PHONE_NUMBER: self.keyboardType = UIKeyboardTypePhonePad; break; - case cocos2d::ui::EditBox::InputMode::URL: + case axis::ui::EditBox::InputMode::URL: self.keyboardType = UIKeyboardTypeURL; break; - case cocos2d::ui::EditBox::InputMode::DECIMAL: + case axis::ui::EditBox::InputMode::DECIMAL: self.keyboardType = UIKeyboardTypeDecimalPad; break; - case cocos2d::ui::EditBox::InputMode::SINGLE_LINE: + case axis::ui::EditBox::InputMode::SINGLE_LINE: self.keyboardType = UIKeyboardTypeDefault; break; default: @@ -198,33 +198,33 @@ self.textInput.keyboardType = type; } -- (void)setInputFlag:(cocos2d::ui::EditBox::InputFlag)flag +- (void)setInputFlag:(axis::ui::EditBox::InputFlag)flag { self.dataInputMode = flag; switch (flag) { - case cocos2d::ui::EditBox::InputFlag::PASSWORD: + case axis::ui::EditBox::InputFlag::PASSWORD: // textView can't be used for input password self.textInput.ccui_secureTextEntry = YES; break; - case cocos2d::ui::EditBox::InputFlag::INITIAL_CAPS_WORD: + case axis::ui::EditBox::InputFlag::INITIAL_CAPS_WORD: self.textInput.autocapitalizationType = UITextAutocapitalizationTypeWords; break; - case cocos2d::ui::EditBox::InputFlag::INITIAL_CAPS_SENTENCE: + case axis::ui::EditBox::InputFlag::INITIAL_CAPS_SENTENCE: self.textInput.autocapitalizationType = UITextAutocapitalizationTypeSentences; break; - case cocos2d::ui::EditBox::InputFlag::INITIAL_CAPS_ALL_CHARACTERS: + case axis::ui::EditBox::InputFlag::INITIAL_CAPS_ALL_CHARACTERS: self.textInput.autocapitalizationType = UITextAutocapitalizationTypeAllCharacters; break; - case cocos2d::ui::EditBox::InputFlag::SENSITIVE: + case axis::ui::EditBox::InputFlag::SENSITIVE: self.textInput.autocorrectionType = UITextAutocorrectionTypeNo; break; - case cocos2d::ui::EditBox::InputFlag::LOWERCASE_ALL_CHARACTERS: + case axis::ui::EditBox::InputFlag::LOWERCASE_ALL_CHARACTERS: self.textInput.autocapitalizationType = UITextAutocapitalizationTypeNone; break; @@ -233,32 +233,32 @@ } } -- (void)setReturnType:(cocos2d::ui::EditBox::KeyboardReturnType)returnType +- (void)setReturnType:(axis::ui::EditBox::KeyboardReturnType)returnType { self.keyboardReturnType = returnType; switch (returnType) { - case cocos2d::ui::EditBox::KeyboardReturnType::DEFAULT: + case axis::ui::EditBox::KeyboardReturnType::DEFAULT: self.textInput.returnKeyType = UIReturnKeyDefault; break; - case cocos2d::ui::EditBox::KeyboardReturnType::DONE: + case axis::ui::EditBox::KeyboardReturnType::DONE: self.textInput.returnKeyType = UIReturnKeyDone; break; - case cocos2d::ui::EditBox::KeyboardReturnType::SEND: + case axis::ui::EditBox::KeyboardReturnType::SEND: self.textInput.returnKeyType = UIReturnKeySend; break; - case cocos2d::ui::EditBox::KeyboardReturnType::SEARCH: + case axis::ui::EditBox::KeyboardReturnType::SEARCH: self.textInput.returnKeyType = UIReturnKeySearch; break; - case cocos2d::ui::EditBox::KeyboardReturnType::GO: + case axis::ui::EditBox::KeyboardReturnType::GO: self.textInput.returnKeyType = UIReturnKeyGo; break; - case cocos2d::ui::EditBox::KeyboardReturnType::NEXT: + case axis::ui::EditBox::KeyboardReturnType::NEXT: self.textInput.returnKeyType = UIReturnKeyNext; break; @@ -268,7 +268,7 @@ } } -- (void)setTextHorizontalAlignment:(cocos2d::TextHAlignment)alignment +- (void)setTextHorizontalAlignment:(axis::TextHAlignment)alignment { self.textInput.ccui_alignment = static_cast(alignment); } @@ -293,20 +293,20 @@ return self.textInput.ccui_font.fontName ?: @""; } -- (cocos2d::ui::EditBoxDelegate::EditBoxEndAction)getEndAction +- (axis::ui::EditBoxDelegate::EditBoxEndAction)getEndAction { - cocos2d::ui::EditBoxDelegate::EditBoxEndAction action = cocos2d::ui::EditBoxDelegate::EditBoxEndAction::UNKNOWN; + axis::ui::EditBoxDelegate::EditBoxEndAction action = axis::ui::EditBoxDelegate::EditBoxEndAction::UNKNOWN; if (self.returnPressed) { - if (self.keyboardReturnType == cocos2d::ui::EditBox::KeyboardReturnType::NEXT) + if (self.keyboardReturnType == axis::ui::EditBox::KeyboardReturnType::NEXT) { - action = cocos2d::ui::EditBoxDelegate::EditBoxEndAction::TAB_TO_NEXT; + action = axis::ui::EditBoxDelegate::EditBoxEndAction::TAB_TO_NEXT; } - else if (self.keyboardReturnType == cocos2d::ui::EditBox::KeyboardReturnType::GO || - self.keyboardReturnType == cocos2d::ui::EditBox::KeyboardReturnType::SEND || - self.keyboardReturnType == cocos2d::ui::EditBox::KeyboardReturnType::SEARCH) + else if (self.keyboardReturnType == axis::ui::EditBox::KeyboardReturnType::GO || + self.keyboardReturnType == axis::ui::EditBox::KeyboardReturnType::SEND || + self.keyboardReturnType == axis::ui::EditBox::KeyboardReturnType::SEARCH) { - action = cocos2d::ui::EditBoxDelegate::EditBoxEndAction::RETURN; + action = axis::ui::EditBoxDelegate::EditBoxEndAction::RETURN; } } return action; @@ -319,7 +319,7 @@ - (void)doAnimationWhenKeyboardMoveWithDuration:(float)duration distance:(float)distance { - auto view = cocos2d::Director::getInstance()->getOpenGLView(); + auto view = axis::Director::getInstance()->getOpenGLView(); CCEAGLView* eaglview = (CCEAGLView*)view->getEAGLView(); [eaglview doAnimationWhenKeyboardMoveWithDuration:duration distance:distance]; @@ -336,7 +336,7 @@ - (void)openKeyboard { - auto view = cocos2d::Director::getInstance()->getOpenGLView(); + auto view = axis::Director::getInstance()->getOpenGLView(); CCEAGLView* eaglview = (CCEAGLView*)view->getEAGLView(); [eaglview addSubview:self.textInput]; @@ -361,7 +361,7 @@ - (void)animationSelector { - auto view = cocos2d::Director::getInstance()->getOpenGLView(); + auto view = axis::Director::getInstance()->getOpenGLView(); CCEAGLView* eaglview = (CCEAGLView*)view->getEAGLView(); [eaglview doAnimationWhenAnotherEditBeClicked]; @@ -375,7 +375,7 @@ _editState = YES; _returnPressed = NO; - auto view = cocos2d::Director::getInstance()->getOpenGLView(); + auto view = axis::Director::getInstance()->getOpenGLView(); CCEAGLView* eaglview = (CCEAGLView*)view->getEAGLView(); if ([eaglview isKeyboardShown]) @@ -401,7 +401,7 @@ - (BOOL)textView:(UITextView*)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString*)text { - if (self.keyboardReturnType == cocos2d::ui::EditBox::KeyboardReturnType::DONE && [text isEqualToString:@"\n"]) + if (self.keyboardReturnType == axis::ui::EditBox::KeyboardReturnType::DONE && [text isEqualToString:@"\n"]) { [self closeKeyboard]; } @@ -468,7 +468,7 @@ _editState = YES; _returnPressed = NO; - auto view = cocos2d::Director::getInstance()->getOpenGLView(); + auto view = axis::Director::getInstance()->getOpenGLView(); CCEAGLView* eaglview = (CCEAGLView*)view->getEAGLView(); if ([eaglview isKeyboardShown]) diff --git a/core/ui/UIEditBox/iOS/CCUIMultilineTextField.mm b/core/ui/UIEditBox/iOS/CCUIMultilineTextField.mm index b4c5e95839..3cfb050f60 100644 --- a/core/ui/UIEditBox/iOS/CCUIMultilineTextField.mm +++ b/core/ui/UIEditBox/iOS/CCUIMultilineTextField.mm @@ -84,7 +84,7 @@ CGFloat const UI_PLACEHOLDER_TEXT_CHANGED_ANIMATION_DURATION = 0.25; { if (_placeHolderLabel == nil) { - auto glview = cocos2d::Director::getInstance()->getOpenGLView(); + auto glview = axis::Director::getInstance()->getOpenGLView(); float padding = CC_EDIT_BOX_PADDING * glview->getScaleX() / glview->getContentScaleFactor(); _placeHolderLabel = @@ -106,7 +106,7 @@ CGFloat const UI_PLACEHOLDER_TEXT_CHANGED_ANIMATION_DURATION = 0.25; - (CGRect)textRectForBounds:(CGRect)bounds { - auto glview = cocos2d::Director::getInstance()->getOpenGLView(); + auto glview = axis::Director::getInstance()->getOpenGLView(); float padding = CC_EDIT_BOX_PADDING * glview->getScaleX() / glview->getContentScaleFactor(); return CGRectInset(bounds, padding, padding); diff --git a/core/ui/UIEditBox/iOS/CCUISingleLineTextField.mm b/core/ui/UIEditBox/iOS/CCUISingleLineTextField.mm index 249f834d3b..4f59d8e786 100644 --- a/core/ui/UIEditBox/iOS/CCUISingleLineTextField.mm +++ b/core/ui/UIEditBox/iOS/CCUISingleLineTextField.mm @@ -76,7 +76,7 @@ - (CGRect)textRectForBounds:(CGRect)bounds { - auto glview = cocos2d::Director::getInstance()->getOpenGLView(); + auto glview = axis::Director::getInstance()->getOpenGLView(); float padding = CC_EDIT_BOX_PADDING * glview->getScaleX() / glview->getContentScaleFactor(); return CGRectInset(bounds, padding, padding); diff --git a/core/ui/UIHBox.cpp b/core/ui/UIHBox.cpp index ececd744ab..f68c375bb3 100644 --- a/core/ui/UIHBox.cpp +++ b/core/ui/UIHBox.cpp @@ -25,7 +25,7 @@ #include "ui/UIHBox.h" -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -80,4 +80,4 @@ bool HBox::initWithSize(const Vec2& size) } // namespace ui -NS_CC_END +NS_AX_END diff --git a/core/ui/UIHBox.h b/core/ui/UIHBox.h index 696b29d295..4ee6b1b014 100644 --- a/core/ui/UIHBox.h +++ b/core/ui/UIHBox.h @@ -29,7 +29,7 @@ #include "ui/UILayout.h" #include "ui/GUIExport.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup ui @@ -81,6 +81,6 @@ public: // end of ui group /// @} -NS_CC_END +NS_AX_END #endif /* defined(__UIHBox__) */ diff --git a/core/ui/UIHelper.cpp b/core/ui/UIHelper.cpp index 640c97e0b0..5bfe2d507d 100644 --- a/core/ui/UIHelper.cpp +++ b/core/ui/UIHelper.cpp @@ -29,7 +29,7 @@ THE SOFTWARE. #include "base/CCDirector.h" #include "base/ccUTF8.h" -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -144,7 +144,7 @@ void Helper::changeLayoutSystemActiveState(bool bActive) { _activeLayout = bActive; } -void Helper::doLayout(cocos2d::Node* rootNode) +void Helper::doLayout(axis::Node* rootNode) { if (!_activeLayout) { @@ -164,7 +164,7 @@ void Helper::doLayout(cocos2d::Node* rootNode) } } -Rect Helper::restrictCapInsetRect(const cocos2d::Rect& capInsets, const Vec2& textureSize) +Rect Helper::restrictCapInsetRect(const axis::Rect& capInsets, const Vec2& textureSize) { float x = capInsets.origin.x; float y = capInsets.origin.y; @@ -205,4 +205,4 @@ Rect Helper::convertBoundingBoxToScreen(Node* node) } } // namespace ui -NS_CC_END +NS_AX_END diff --git a/core/ui/UIHelper.h b/core/ui/UIHelper.h index 6b61131928..c90493b93e 100644 --- a/core/ui/UIHelper.h +++ b/core/ui/UIHelper.h @@ -31,7 +31,7 @@ THE SOFTWARE. #include "ui/GUIExport.h" #include "2d/CCNode.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup ui @@ -127,6 +127,6 @@ public: // end of ui group /// @} -NS_CC_END +NS_AX_END #endif /* defined(__CocoGUI__UISystem__) */ diff --git a/core/ui/UIImageView.cpp b/core/ui/UIImageView.cpp index 5a85ef9df7..fb3cbaad0a 100644 --- a/core/ui/UIImageView.cpp +++ b/core/ui/UIImageView.cpp @@ -28,7 +28,7 @@ THE SOFTWARE. #include "ui/UIHelper.h" #include "2d/CCSprite.h" -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -313,4 +313,4 @@ const BlendFunc& ImageView::getBlendFunc() const } // namespace ui -NS_CC_END +NS_AX_END diff --git a/core/ui/UIImageView.h b/core/ui/UIImageView.h index 6685da4852..cd7049a3b0 100644 --- a/core/ui/UIImageView.h +++ b/core/ui/UIImageView.h @@ -33,7 +33,7 @@ THE SOFTWARE. * @addtogroup ui * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN struct CC_DLL ResourceData; @@ -43,7 +43,7 @@ class Scale9Sprite; /** * @brief A widget to display images. */ -class CC_GUI_DLL ImageView : public Widget, public cocos2d::BlendProtocol +class CC_GUI_DLL ImageView : public Widget, public axis::BlendProtocol { DECLARE_CLASS_GUI_INFO @@ -175,7 +175,7 @@ protected: } // namespace ui -NS_CC_END +NS_AX_END // end of ui group /// @} diff --git a/core/ui/UILayout.cpp b/core/ui/UILayout.cpp index b4c9995e34..d71c364f39 100644 --- a/core/ui/UILayout.cpp +++ b/core/ui/UILayout.cpp @@ -38,7 +38,7 @@ THE SOFTWARE. #include "base/CCStencilStateManager.h" #include -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -1105,7 +1105,7 @@ float Layout::calculateNearestDistance(Widget* baseWidget) return distance; } -float Layout::calculateFarthestDistance(cocos2d::ui::Widget* baseWidget) +float Layout::calculateFarthestDistance(axis::ui::Widget* baseWidget) { float distance = -FLT_MAX; @@ -1205,7 +1205,7 @@ int Layout::findNearestChildWidgetIndex(FocusDirection direction, Widget* baseWi return 0; } -int Layout::findFarthestChildWidgetIndex(FocusDirection direction, cocos2d::ui::Widget* baseWidget) +int Layout::findFarthestChildWidgetIndex(FocusDirection direction, axis::ui::Widget* baseWidget) { if (baseWidget == nullptr || baseWidget == this) { @@ -1358,7 +1358,7 @@ void Layout::findProperSearchingFunctor(FocusDirection dir, Widget* baseWidget) } } -Widget* Layout::passFocusToChild(FocusDirection dir, cocos2d::ui::Widget* current) +Widget* Layout::passFocusToChild(FocusDirection dir, axis::ui::Widget* current) { if (checkFocusEnabledChild()) { @@ -1897,4 +1897,4 @@ ResourceData Layout::getRenderFile() } } // namespace ui -NS_CC_END +NS_AX_END diff --git a/core/ui/UILayout.h b/core/ui/UILayout.h index f96fa040e5..00533ffb52 100644 --- a/core/ui/UILayout.h +++ b/core/ui/UILayout.h @@ -37,7 +37,7 @@ THE SOFTWARE. * @addtogroup ui * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN class DrawNode; class LayerColor; @@ -658,7 +658,7 @@ protected: }; } // namespace ui -NS_CC_END +NS_AX_END // end of ui group /// @} #endif /* defined(__Layout__) */ diff --git a/core/ui/UILayoutComponent.cpp b/core/ui/UILayoutComponent.cpp index b997f89aee..a6755c7578 100644 --- a/core/ui/UILayoutComponent.cpp +++ b/core/ui/UILayoutComponent.cpp @@ -29,7 +29,7 @@ #include "ui/GUIDefine.h" #include "ui/UIHelper.h" -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -671,4 +671,4 @@ void LayoutComponent::setPercentOnlyEnabled(bool enable) } } // namespace ui -NS_CC_END \ No newline at end of file +NS_AX_END \ No newline at end of file diff --git a/core/ui/UILayoutComponent.h b/core/ui/UILayoutComponent.h index 7a6811d843..1300b22926 100644 --- a/core/ui/UILayoutComponent.h +++ b/core/ui/UILayoutComponent.h @@ -29,7 +29,7 @@ THE SOFTWARE. #include "2d/CCComponent.h" #include "ui/GUIExport.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup ui * @{ @@ -428,5 +428,5 @@ protected: // end of ui group /// @} -NS_CC_END +NS_AX_END #endif /* defined(__cocos2d_libs__LayoutComponent__) */ diff --git a/core/ui/UILayoutManager.cpp b/core/ui/UILayoutManager.cpp index 2e5b96290a..86e65ea635 100644 --- a/core/ui/UILayoutManager.cpp +++ b/core/ui/UILayoutManager.cpp @@ -26,7 +26,7 @@ #include "ui/UILayoutManager.h" #include "ui/UILayout.h" -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -213,7 +213,7 @@ RelativeLayoutManager* RelativeLayoutManager::create() return ret; } -Vector RelativeLayoutManager::getAllWidgets(cocos2d::ui::LayoutProtocol* layout) +Vector RelativeLayoutManager::getAllWidgets(axis::ui::LayoutProtocol* layout) { Vector container = layout->getLayoutElements(); Vector widgetChildren; @@ -618,4 +618,4 @@ void RelativeLayoutManager::doLayout(LayoutProtocol* layout) } // namespace ui -NS_CC_END +NS_AX_END diff --git a/core/ui/UILayoutManager.h b/core/ui/UILayoutManager.h index cc66a2d5b0..f67331781e 100644 --- a/core/ui/UILayoutManager.h +++ b/core/ui/UILayoutManager.h @@ -34,7 +34,7 @@ * @addtogroup ui * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -150,7 +150,7 @@ private: } // namespace ui -NS_CC_END +NS_AX_END // end of ui group /// @} #endif /* defined(__cocos2d_libs__CCLayoutManager__) */ diff --git a/core/ui/UILayoutParameter.cpp b/core/ui/UILayoutParameter.cpp index ef194a8999..5de333d59c 100644 --- a/core/ui/UILayoutParameter.cpp +++ b/core/ui/UILayoutParameter.cpp @@ -26,7 +26,7 @@ #include "ui/UILayoutParameter.h" #include "ui/UILayout.h" -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -185,4 +185,4 @@ void RelativeLayoutParameter::copyProperties(LayoutParameter* model) } // namespace ui -NS_CC_END +NS_AX_END diff --git a/core/ui/UILayoutParameter.h b/core/ui/UILayoutParameter.h index c712383764..b16ca4c585 100644 --- a/core/ui/UILayoutParameter.h +++ b/core/ui/UILayoutParameter.h @@ -34,7 +34,7 @@ * @addtogroup ui * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -398,7 +398,7 @@ protected: }; } // namespace ui -NS_CC_END +NS_AX_END // end of ui group /// @} diff --git a/core/ui/UIListView.cpp b/core/ui/UIListView.cpp index 6149657be0..e8dc2f3ee4 100644 --- a/core/ui/UIListView.cpp +++ b/core/ui/UIListView.cpp @@ -26,7 +26,7 @@ THE SOFTWARE. #include "ui/UIListView.h" #include "ui/UIHelper.h" -NS_CC_BEGIN +NS_AX_BEGIN static const float DEFAULT_TIME_IN_SEC_FOR_SCROLL_TO_ITEM = 1.0f; @@ -270,7 +270,7 @@ void ListView::pushBackCustomItem(Widget* item) requestDoLayout(); } -void ListView::addChild(cocos2d::Node* child, int zOrder, int tag) +void ListView::addChild(axis::Node* child, int zOrder, int tag) { ScrollView::addChild(child, zOrder, tag); @@ -282,12 +282,12 @@ void ListView::addChild(cocos2d::Node* child, int zOrder, int tag) } } -void ListView::addChild(cocos2d::Node* child) +void ListView::addChild(axis::Node* child) { ListView::addChild(child, child->getLocalZOrder(), child->getName()); } -void ListView::addChild(cocos2d::Node* child, int zOrder) +void ListView::addChild(axis::Node* child, int zOrder) { ListView::addChild(child, zOrder, child->getName()); } @@ -304,7 +304,7 @@ void ListView::addChild(Node* child, int zOrder, std::string_view name) } } -void ListView::removeChild(cocos2d::Node* child, bool cleanup) +void ListView::removeChild(axis::Node* child, bool cleanup) { Widget* widget = dynamic_cast(child); if (nullptr != widget) @@ -892,7 +892,7 @@ void ListView::setCurSelectedIndex(int itemIndex) return; } _curSelectedIndex = itemIndex; - this->selectedItemEvent(cocos2d::ui::Widget::TouchEventType::ENDED); + this->selectedItemEvent(axis::ui::Widget::TouchEventType::ENDED); } void ListView::onSizeChanged() @@ -1090,4 +1090,4 @@ void ListView::startMagneticScroll() } } // namespace ui -NS_CC_END +NS_AX_END diff --git a/core/ui/UIListView.h b/core/ui/UIListView.h index 74383af4ac..f81d887308 100644 --- a/core/ui/UIListView.h +++ b/core/ui/UIListView.h @@ -33,7 +33,7 @@ THE SOFTWARE. * @addtogroup ui * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -479,7 +479,7 @@ protected: }; } // namespace ui -NS_CC_END +NS_AX_END // end of ui group /// @} diff --git a/core/ui/UILoadingBar.cpp b/core/ui/UILoadingBar.cpp index cc7ee221e6..a0e28e0678 100644 --- a/core/ui/UILoadingBar.cpp +++ b/core/ui/UILoadingBar.cpp @@ -28,7 +28,7 @@ THE SOFTWARE. #include "ui/UIScale9Sprite.h" #include "2d/CCSprite.h" -NS_CC_BEGIN +NS_AX_BEGIN /* FIXME: Code could be simplified by using Sprite's setContentSize feature. @@ -98,7 +98,7 @@ void LoadingBar::initRenderer() _barRenderer->setAnchorPoint(Vec2(0.0f, 0.5f)); } -void LoadingBar::setDirection(cocos2d::ui::LoadingBar::Direction direction) +void LoadingBar::setDirection(axis::ui::LoadingBar::Direction direction) { if (_direction == direction) { @@ -433,4 +433,4 @@ ResourceData LoadingBar::getRenderFile() } // namespace ui -NS_CC_END +NS_AX_END diff --git a/core/ui/UILoadingBar.h b/core/ui/UILoadingBar.h index 4365631205..531454f12f 100644 --- a/core/ui/UILoadingBar.h +++ b/core/ui/UILoadingBar.h @@ -29,7 +29,7 @@ THE SOFTWARE. #include "ui/UIWidget.h" #include "ui/GUIExport.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup ui * @{ @@ -207,5 +207,5 @@ protected: } // namespace ui // end of ui group /// @} -NS_CC_END +NS_AX_END #endif /* defined(__CocoGUI__LoadingBar__) */ diff --git a/core/ui/UIPageView.cpp b/core/ui/UIPageView.cpp index 704abe02a7..02b2a8355a 100644 --- a/core/ui/UIPageView.cpp +++ b/core/ui/UIPageView.cpp @@ -26,7 +26,7 @@ THE SOFTWARE. #include "ui/UIPageView.h" #include "ui/UIPageViewIndicator.h" -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -482,4 +482,4 @@ void PageView::remedyLayoutParameter(Widget* item) } // namespace ui -NS_CC_END +NS_AX_END diff --git a/core/ui/UIPageView.h b/core/ui/UIPageView.h index 4345ce4643..627b966ce5 100644 --- a/core/ui/UIPageView.h +++ b/core/ui/UIPageView.h @@ -33,7 +33,7 @@ THE SOFTWARE. * @addtogroup ui * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -362,7 +362,7 @@ protected: }; } // namespace ui -NS_CC_END +NS_AX_END // end of ui group /// @} diff --git a/core/ui/UIPageViewIndicator.cpp b/core/ui/UIPageViewIndicator.cpp index ba58ca90b8..5c1a44b98c 100644 --- a/core/ui/UIPageViewIndicator.cpp +++ b/core/ui/UIPageViewIndicator.cpp @@ -35,7 +35,7 @@ static const char* CIRCLE_IMAGE = "AIV+dRpFLOYoAAAAAElFTkSuQmCC"; static const char* CIRCLE_IMAGE_KEY = "/__circleImage"; -NS_CC_BEGIN +NS_AX_BEGIN namespace { @@ -291,4 +291,4 @@ void PageViewIndicator::clear() } // namespace ui -NS_CC_END +NS_AX_END diff --git a/core/ui/UIPageViewIndicator.h b/core/ui/UIPageViewIndicator.h index 1ba3733217..105e544c64 100644 --- a/core/ui/UIPageViewIndicator.h +++ b/core/ui/UIPageViewIndicator.h @@ -29,7 +29,7 @@ THE SOFTWARE. #include "ui/UIPageView.h" #include "2d/CCSprite.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup ui * @{ @@ -99,6 +99,6 @@ protected: } // namespace ui // end of ui group /// @} -NS_CC_END +NS_AX_END #endif /* defined(__UIPAGEVIEWINDICATOR_H__) */ diff --git a/core/ui/UIRadioButton.cpp b/core/ui/UIRadioButton.cpp index 87c19a018b..e1c620c7c4 100644 --- a/core/ui/UIRadioButton.cpp +++ b/core/ui/UIRadioButton.cpp @@ -25,7 +25,7 @@ THE SOFTWARE. #include "ui/UIRadioButton.h" -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -354,4 +354,4 @@ void RadioButtonGroup::onChangedRadioButtonSelect(RadioButton* radioButton) } // namespace ui -NS_CC_END +NS_AX_END diff --git a/core/ui/UIRadioButton.h b/core/ui/UIRadioButton.h index 3b76c93acf..af832a3622 100644 --- a/core/ui/UIRadioButton.h +++ b/core/ui/UIRadioButton.h @@ -33,7 +33,7 @@ THE SOFTWARE. * @addtogroup ui * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -288,7 +288,7 @@ protected: } // namespace ui -NS_CC_END +NS_AX_END // end of ui group /// @} diff --git a/core/ui/UIRelativeBox.cpp b/core/ui/UIRelativeBox.cpp index 81a1c19f21..f99df58f3e 100644 --- a/core/ui/UIRelativeBox.cpp +++ b/core/ui/UIRelativeBox.cpp @@ -25,7 +25,7 @@ #include "ui/UIRelativeBox.h" -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -80,4 +80,4 @@ bool RelativeBox::initWithSize(const Vec2& size) } // namespace ui -NS_CC_END +NS_AX_END diff --git a/core/ui/UIRelativeBox.h b/core/ui/UIRelativeBox.h index befbb422d4..1fef1d4a05 100644 --- a/core/ui/UIRelativeBox.h +++ b/core/ui/UIRelativeBox.h @@ -30,7 +30,7 @@ #include "ui/UILayout.h" #include "ui/GUIExport.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup ui * @{ @@ -84,6 +84,6 @@ public: // end of ui group /// @} -NS_CC_END +NS_AX_END #endif /* defined(__UIRelativeBox__) */ diff --git a/core/ui/UIRichText.cpp b/core/ui/UIRichText.cpp index de23941793..ad03db9bc0 100644 --- a/core/ui/UIRichText.cpp +++ b/core/ui/UIRichText.cpp @@ -43,8 +43,8 @@ #include "platform/CCSAXParser.h" -USING_NS_CC; -using namespace cocos2d::ui; +USING_NS_AX; +using namespace axis::ui; class ListenerComponent : public Component { @@ -65,7 +65,7 @@ public: { setName(ListenerComponent::COMPONENT_NAME); - _touchListener = cocos2d::EventListenerTouchAllAtOnce::create(); + _touchListener = axis::EventListenerTouchAllAtOnce::create(); _touchListener->onTouchesEnded = CC_CALLBACK_2(ListenerComponent::onTouchesEnded, this); Director::getInstance()->getEventDispatcher()->addEventListenerWithSceneGraphPriority(_touchListener, _parent); @@ -235,7 +235,7 @@ void RichElementImage::setUrl(std::string_view url) RichElementCustomNode* RichElementCustomNode::create(int tag, const Color3B& color, uint8_t opacity, - cocos2d::Node* customNode) + axis::Node* customNode) { RichElementCustomNode* element = new RichElementCustomNode(); if (element->init(tag, color, opacity, customNode)) @@ -247,7 +247,7 @@ RichElementCustomNode* RichElementCustomNode::create(int tag, return nullptr; } -bool RichElementCustomNode::init(int tag, const Color3B& color, uint8_t opacity, cocos2d::Node* customNode) +bool RichElementCustomNode::init(int tag, const Color3B& color, uint8_t opacity, axis::Node* customNode) { if (RichElement::init(tag, color, opacity)) { @@ -1106,7 +1106,7 @@ RichText::HorizontalAlignment RichText::getHorizontalAlignment() const return static_cast(_defaults.at(KEY_HORIZONTAL_ALIGNMENT).asInt()); } -void RichText::setHorizontalAlignment(cocos2d::ui::RichText::HorizontalAlignment a) +void RichText::setHorizontalAlignment(axis::ui::RichText::HorizontalAlignment a) { if (static_cast(_defaults.at(KEY_HORIZONTAL_ALIGNMENT).asInt()) != a) { @@ -1125,7 +1125,7 @@ std::string RichText::getFontColor() return _defaults.at(KEY_FONT_COLOR_STRING).asString(); } -cocos2d::Color3B RichText::getFontColor3B() +axis::Color3B RichText::getFontColor3B() { return color3BWithString(getFontColor()); } @@ -1160,7 +1160,7 @@ std::string RichText::getAnchorFontColor() return _defaults.at(KEY_ANCHOR_FONT_COLOR_STRING).asString(); } -cocos2d::Color3B RichText::getAnchorFontColor3B() +axis::Color3B RichText::getAnchorFontColor3B() { return color3BWithString(getAnchorFontColor()); } @@ -1399,7 +1399,7 @@ ValueMap RichText::getDefaults() const return defaults; } -cocos2d::Color3B RichText::color3BWithString(std::string_view color) +axis::Color3B RichText::color3BWithString(std::string_view color) { if (color.length() == 4) { @@ -1425,7 +1425,7 @@ cocos2d::Color3B RichText::color3BWithString(std::string_view color) return Color3B::WHITE; } -std::string RichText::stringWithColor3B(const cocos2d::Color3B& color3b) +std::string RichText::stringWithColor3B(const axis::Color3B& color3b) { int r = color3b.r; int g = color3b.g; @@ -1435,7 +1435,7 @@ std::string RichText::stringWithColor3B(const cocos2d::Color3B& color3b) return std::string(buf, 7); } -std::string RichText::stringWithColor4B(const cocos2d::Color4B& color4b) +std::string RichText::stringWithColor4B(const axis::Color4B& color4b) { int r = color4b.r; int g = color4b.g; @@ -1915,7 +1915,7 @@ void RichText::handleImageRenderer(std::string_view filePath, } } -void RichText::handleCustomRenderer(cocos2d::Node* renderer) +void RichText::handleCustomRenderer(axis::Node* renderer) { Vec2 imgSize = renderer->getContentSize(); _leftSpaceWidth -= imgSize.width; @@ -2048,7 +2048,7 @@ float getPaddingAmount(const RichText::HorizontalAlignment alignment, const floa } } // namespace -void RichText::doHorizontalAlignment(const Vector& row, float rowWidth) +void RichText::doHorizontalAlignment(const Vector& row, float rowWidth) { const auto alignment = static_cast(_defaults.at(KEY_HORIZONTAL_ALIGNMENT).asInt()); if (alignment != HorizontalAlignment::LEFT) @@ -2076,7 +2076,7 @@ void rtrim(std::string& s) } } // namespace -float RichText::stripTrailingWhitespace(const Vector& row) +float RichText::stripTrailingWhitespace(const Vector& row) { if (!row.empty()) { @@ -2100,7 +2100,7 @@ void RichText::adaptRenderers() this->formatText(); } -void RichText::pushToContainer(cocos2d::Node* renderer) +void RichText::pushToContainer(axis::Node* renderer) { if (_elementRenders.empty()) { diff --git a/core/ui/UIRichText.h b/core/ui/UIRichText.h index b4005a131f..eec6903ccd 100644 --- a/core/ui/UIRichText.h +++ b/core/ui/UIRichText.h @@ -30,7 +30,7 @@ #include "ui/GUIExport.h" #include "base/CCValue.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup ui * @{ @@ -527,7 +527,7 @@ public: std::string getFontFace(); /*!< return the current font face */ void setAnchorFontColor(std::string_view color); /*!< Set the font color of a-tag. @param face the font color. */ std::string getAnchorFontColor(); /*!< return the current font color of a-tag */ - cocos2d::Color3B getAnchorFontColor3B(); /*!< return the current font color of a-tag */ + axis::Color3B getAnchorFontColor3B(); /*!< return the current font color of a-tag */ void setAnchorTextBold(bool enable); /*!< enable bold text of a-tag */ bool isAnchorTextBoldEnabled(); /*!< valid style is bold text of a-tag? */ void setAnchorTextItalic(bool enable); /*!< enable italic text of a-tag */ @@ -556,9 +556,9 @@ public: void setDefaults(const ValueMap& defaults); /*!< set the default values */ ValueMap getDefaults() const; /*!< returns the default values */ - cocos2d::Color3B color3BWithString(std::string_view color); /*!< convert a color string into a Color3B. */ - std::string stringWithColor3B(const cocos2d::Color3B& color3b); /*!< convert a Color3B into a color string. */ - std::string stringWithColor4B(const cocos2d::Color4B& color4b); /*!< convert a Color4B into a color string. */ + axis::Color3B color3BWithString(std::string_view color); /*!< convert a color string into a Color3B. */ + std::string stringWithColor3B(const axis::Color3B& color3b); /*!< convert a Color3B into a color string. */ + std::string stringWithColor4B(const axis::Color4B& color4b); /*!< convert a Color4B into a color string. */ /** * @brief add a callback to own tag. @@ -634,6 +634,6 @@ protected: // end of ui group /// @} -NS_CC_END +NS_AX_END #endif /* defined(__UIRichText__) */ diff --git a/core/ui/UIScale9Sprite.cpp b/core/ui/UIScale9Sprite.cpp index 6dd7556c95..296e19e36b 100644 --- a/core/ui/UIScale9Sprite.cpp +++ b/core/ui/UIScale9Sprite.cpp @@ -38,8 +38,8 @@ #include "renderer/CCRenderer.h" #include "renderer/backend/ProgramStateRegistry.h" -using namespace cocos2d; -using namespace cocos2d::ui; +USING_NS_AX; +using namespace axis::ui; Scale9Sprite* Scale9Sprite::create() { @@ -531,7 +531,7 @@ void Scale9Sprite::setupSlice9(Texture2D* texture, const Rect& capInsets) } } -void Scale9Sprite::setCapInsets(const cocos2d::Rect& insetsCopy) +void Scale9Sprite::setCapInsets(const axis::Rect& insetsCopy) { Rect insets = insetsCopy; diff --git a/core/ui/UIScale9Sprite.h b/core/ui/UIScale9Sprite.h index 5b99bdd1c6..b1d859482d 100644 --- a/core/ui/UIScale9Sprite.h +++ b/core/ui/UIScale9Sprite.h @@ -38,7 +38,7 @@ * @addtogroup ui * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN class DrawNode; class Texture2D; diff --git a/core/ui/UIScrollView.cpp b/core/ui/UIScrollView.cpp index d7c5c5f27b..e431d55bd2 100644 --- a/core/ui/UIScrollView.cpp +++ b/core/ui/UIScrollView.cpp @@ -30,7 +30,7 @@ THE SOFTWARE. #include "ui/UIScrollViewBar.h" #include "2d/CCTweenFunction.h" #include "2d/CCCamera.h" -NS_CC_BEGIN +NS_AX_BEGIN static const int NUMBER_OF_GATHERED_TOUCHES_FOR_MOVE_SPEED = 5; static const float OUT_OF_BOUNDARY_BREAKING_FACTOR = 0.05f; @@ -1576,7 +1576,7 @@ void ScrollView::removeScrollBar() } } -Widget* ScrollView::findNextFocusedWidget(cocos2d::ui::Widget::FocusDirection direction, cocos2d::ui::Widget* current) +Widget* ScrollView::findNextFocusedWidget(axis::ui::Widget::FocusDirection direction, axis::ui::Widget* current) { if (this->getLayoutType() == Layout::Type::VERTICAL || this->getLayoutType() == Layout::Type::HORIZONTAL) { @@ -1589,4 +1589,4 @@ Widget* ScrollView::findNextFocusedWidget(cocos2d::ui::Widget::FocusDirection di } } // namespace ui -NS_CC_END +NS_AX_END diff --git a/core/ui/UIScrollView.h b/core/ui/UIScrollView.h index 4b711b3831..a102e22271 100644 --- a/core/ui/UIScrollView.h +++ b/core/ui/UIScrollView.h @@ -30,7 +30,7 @@ THE SOFTWARE. #include "ui/GUIExport.h" #include -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup ui * @{ @@ -683,5 +683,5 @@ protected: } // namespace ui // end of ui group /// @} -NS_CC_END +NS_AX_END #endif /* defined(__CocoGUI__ScrollView__) */ diff --git a/core/ui/UIScrollViewBar.cpp b/core/ui/UIScrollViewBar.cpp index 6a0e038b86..653e4b6285 100644 --- a/core/ui/UIScrollViewBar.cpp +++ b/core/ui/UIScrollViewBar.cpp @@ -28,7 +28,7 @@ THE SOFTWARE. #include "2d/CCSprite.h" #include "base/ccUtils.h" -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -310,4 +310,4 @@ Vec2 ScrollViewBar::calculatePosition(float innerContainerMeasure, } } // namespace ui -NS_CC_END +NS_AX_END diff --git a/core/ui/UIScrollViewBar.h b/core/ui/UIScrollViewBar.h index 6635096ae6..37e3fc4839 100644 --- a/core/ui/UIScrollViewBar.h +++ b/core/ui/UIScrollViewBar.h @@ -28,7 +28,7 @@ THE SOFTWARE. #include "ui/UIScrollView.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup ui * @{ @@ -182,6 +182,6 @@ private: } // namespace ui // end of ui group /// @} -NS_CC_END +NS_AX_END #endif /* defined(__UISCROLLVIEWBAR_H__) */ diff --git a/core/ui/UISlider.cpp b/core/ui/UISlider.cpp index 756c1cb429..3e443bdd06 100644 --- a/core/ui/UISlider.cpp +++ b/core/ui/UISlider.cpp @@ -29,7 +29,7 @@ THE SOFTWARE. #include "2d/CCSprite.h" #include "2d/CCCamera.h" #include "renderer/ccShaders.h" -NS_CC_BEGIN +NS_AX_BEGIN /* FIXME: Code could be simplified by using Sprite's setContentSize feature. @@ -487,7 +487,7 @@ void Slider::updateVisualSlider() } } -bool Slider::hitTest(const cocos2d::Vec2& pt, const Camera* camera, Vec3* /*p*/) const +bool Slider::hitTest(const axis::Vec2& pt, const Camera* camera, Vec3* /*p*/) const { Rect rect; rect.size = _slidBallNormalRenderer->getContentSize(); @@ -824,4 +824,4 @@ ResourceData Slider::getBallDisabledFile() } // namespace ui -NS_CC_END +NS_AX_END diff --git a/core/ui/UISlider.h b/core/ui/UISlider.h index 423fef6a3e..982a00bdc9 100644 --- a/core/ui/UISlider.h +++ b/core/ui/UISlider.h @@ -29,7 +29,7 @@ THE SOFTWARE. #include "ui/UIWidget.h" #include "ui/GUIExport.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup ui @@ -360,6 +360,6 @@ protected: // end of ui group /// @} -NS_CC_END +NS_AX_END #endif /* defined(__CocoGUI__Slider__) */ diff --git a/core/ui/UITabControl.cpp b/core/ui/UITabControl.cpp index 517371bff6..58adb94143 100644 --- a/core/ui/UITabControl.cpp +++ b/core/ui/UITabControl.cpp @@ -29,7 +29,7 @@ #include "ui/UILayout.h" #include "ui/UITabControl.h" -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -186,7 +186,7 @@ void TabControl::setHeaderDockPlace(TabControl::Dock dockPlace) } } -cocos2d::Vec2 TabControl::getHeaderAnchorWithDock() const +axis::Vec2 TabControl::getHeaderAnchorWithDock() const { Vec2 anpoint(.5f, .0f); switch (_headerDockPlace) @@ -721,4 +721,4 @@ void TabHeader::copySpecialProperties(Widget* model) } } // namespace ui -NS_CC_END \ No newline at end of file +NS_AX_END \ No newline at end of file diff --git a/core/ui/UITabControl.h b/core/ui/UITabControl.h index d4f4785e43..9d03bab184 100644 --- a/core/ui/UITabControl.h +++ b/core/ui/UITabControl.h @@ -33,7 +33,7 @@ * @addtogroup ui * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN class Label; @@ -382,6 +382,6 @@ private: } // namespace ui // end group /// @} -NS_CC_END +NS_AX_END #endif // __UITABVIEW_H__ diff --git a/core/ui/UIText.cpp b/core/ui/UIText.cpp index 3b0c894409..9b934b647c 100644 --- a/core/ui/UIText.cpp +++ b/core/ui/UIText.cpp @@ -27,7 +27,7 @@ THE SOFTWARE. #include "2d/CCLabel.h" #include "platform/CCFileUtils.h" -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -451,4 +451,4 @@ void Text::copySpecialProperties(Widget* widget) } // namespace ui -NS_CC_END +NS_AX_END diff --git a/core/ui/UIText.h b/core/ui/UIText.h index de2da99864..0273813a10 100644 --- a/core/ui/UIText.h +++ b/core/ui/UIText.h @@ -35,7 +35,7 @@ THE SOFTWARE. * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN class Label; class Sprite; @@ -46,7 +46,7 @@ namespace ui /** * For creating a system font or a TTF font Text */ -class CC_GUI_DLL Text : public Widget, public cocos2d::BlendProtocol +class CC_GUI_DLL Text : public Widget, public axis::BlendProtocol { DECLARE_CLASS_GUI_INFO @@ -370,7 +370,7 @@ protected: } // namespace ui -NS_CC_END +NS_AX_END // end of ui group /// @} diff --git a/core/ui/UITextAtlas.cpp b/core/ui/UITextAtlas.cpp index f6508f51e2..b2bc2fe05b 100644 --- a/core/ui/UITextAtlas.cpp +++ b/core/ui/UITextAtlas.cpp @@ -26,7 +26,7 @@ THE SOFTWARE. #include "ui/UITextAtlas.h" #include "2d/CCLabel.h" -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -202,4 +202,4 @@ ResourceData TextAtlas::getRenderFile() } } // namespace ui -NS_CC_END +NS_AX_END diff --git a/core/ui/UITextAtlas.h b/core/ui/UITextAtlas.h index 5d693d86b9..4c8e21473d 100644 --- a/core/ui/UITextAtlas.h +++ b/core/ui/UITextAtlas.h @@ -29,7 +29,7 @@ THE SOFTWARE. #include "ui/UIWidget.h" #include "ui/GUIExport.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup ui @@ -166,6 +166,6 @@ protected: // end of ui group /// @} -NS_CC_END +NS_AX_END #endif /* defined(__CocoGUI__LabelAtlas__) */ diff --git a/core/ui/UITextBMFont.cpp b/core/ui/UITextBMFont.cpp index 9f02ba37f3..e4c2f2b271 100644 --- a/core/ui/UITextBMFont.cpp +++ b/core/ui/UITextBMFont.cpp @@ -26,7 +26,7 @@ THE SOFTWARE. #include "ui/UITextBMFont.h" #include "2d/CCLabel.h" -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -69,7 +69,7 @@ TextBMFont* TextBMFont::create(std::string_view text, std::string_view filename) void TextBMFont::initRenderer() { - _labelBMFontRenderer = cocos2d::Label::create(); + _labelBMFontRenderer = axis::Label::create(); addProtectedChild(_labelBMFontRenderer, LABELBMFONT_RENDERER_Z, -1); } @@ -190,4 +190,4 @@ void TextBMFont::resetRender() } } // namespace ui -NS_CC_END +NS_AX_END diff --git a/core/ui/UITextBMFont.h b/core/ui/UITextBMFont.h index 88445794c0..eb171b4484 100644 --- a/core/ui/UITextBMFont.h +++ b/core/ui/UITextBMFont.h @@ -33,7 +33,7 @@ THE SOFTWARE. * @addtogroup ui * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN class Label; struct CC_DLL ResourceData; @@ -120,7 +120,7 @@ protected: }; } // namespace ui -NS_CC_END +NS_AX_END // end of ui group /// @} diff --git a/core/ui/UITextField.cpp b/core/ui/UITextField.cpp index 0292af1fcd..61a879f073 100644 --- a/core/ui/UITextField.cpp +++ b/core/ui/UITextField.cpp @@ -29,7 +29,7 @@ THE SOFTWARE. #include "base/ccUTF8.h" #include "2d/CCCamera.h" -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -403,12 +403,12 @@ const Color4B& TextField::getPlaceHolderColor() const return _textFieldRenderer->getColorSpaceHolder(); } -void TextField::setPlaceHolderColor(const cocos2d::Color3B& color) +void TextField::setPlaceHolderColor(const axis::Color3B& color) { _textFieldRenderer->setColorSpaceHolder(color); } -void TextField::setPlaceHolderColor(const cocos2d::Color4B& color) +void TextField::setPlaceHolderColor(const axis::Color4B& color) { _textFieldRenderer->setColorSpaceHolder(color); } @@ -418,7 +418,7 @@ const Color4B& TextField::getTextColor() const return _textFieldRenderer->getTextColor(); } -void TextField::setTextColor(const cocos2d::Color4B& textColor) +void TextField::setTextColor(const axis::Color4B& textColor) { _textFieldRenderer->setTextColor(textColor); } @@ -838,4 +838,4 @@ void TextField::setCursorFromPoint(const Vec2& point, const Camera* camera) } // namespace ui -NS_CC_END +NS_AX_END diff --git a/core/ui/UITextField.h b/core/ui/UITextField.h index 81ec102152..61a17db0d3 100644 --- a/core/ui/UITextField.h +++ b/core/ui/UITextField.h @@ -30,7 +30,7 @@ THE SOFTWARE. #include "2d/CCTextFieldTTF.h" #include "ui/GUIExport.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup ui * @{ @@ -649,6 +649,6 @@ protected: // end of ui group /// @} -NS_CC_END +NS_AX_END #endif /* defined(__TextField__) */ diff --git a/core/ui/UITextFieldEx.cpp b/core/ui/UITextFieldEx.cpp index 6e62e1d34f..4a18a51b41 100644 --- a/core/ui/UITextFieldEx.cpp +++ b/core/ui/UITextFieldEx.cpp @@ -8,16 +8,16 @@ #include "base/CCDirector.h" /// cocos2d singleton objects -#define CCDIRECTOR cocos2d::Director::getInstance() +#define CCDIRECTOR axis::Director::getInstance() #define CCRUNONGL CCDIRECTOR->getScheduler()->performFunctionInCocosThread #define CCEVENTMGR CCDIRECTOR->getEventDispatcher() #define CCSCHTASKS CCDIRECTOR->getScheduler() #define CCACTIONMGR CCDIRECTOR->getActionManager() -#define CCFILEUTILS cocos2d::FileUtils::getInstance() -#define CCAUDIO cocos2d::SimpleAudioEngine::getInstance() -#define CCAPP cocos2d::CCApplication::getInstance() +#define CCFILEUTILS axis::FileUtils::getInstance() +#define CCAUDIO axis::SimpleAudioEngine::getInstance() +#define CCAPP axis::CCApplication::getInstance() -NS_CC_BEGIN +NS_AX_BEGIN #ifdef _WIN32 # define nxbeep(t) MessageBeep(t) @@ -51,15 +51,15 @@ static bool engine_inj_checkVisibility(Node* theNode) return visible; } -static bool engine_inj_containsTouchPoint(cocos2d::Node* target, cocos2d::Touch* touch) +static bool engine_inj_containsTouchPoint(axis::Node* target, axis::Touch* touch) { assert(target != nullptr); - cocos2d::Point pt = target->convertTouchToNodeSpace(touch); + axis::Point pt = target->convertTouchToNodeSpace(touch); const Vec2& size = target->getContentSize(); - cocos2d::Rect rc(0, 0, size.width, size.height); + axis::Rect rc(0, 0, size.width, size.height); bool contains = (rc.containsPoint(pt)); @@ -67,13 +67,13 @@ static bool engine_inj_containsTouchPoint(cocos2d::Node* target, cocos2d::Touch* return contains; } -static bool engine_inj_containsPoint(cocos2d::Node* target, const cocos2d::Vec2& worldPoint) +static bool engine_inj_containsPoint(axis::Node* target, const axis::Vec2& worldPoint) { - cocos2d::Point pt = target->convertToNodeSpace(worldPoint); + axis::Point pt = target->convertToNodeSpace(worldPoint); const Vec2& size = target->getContentSize(); - cocos2d::Rect rc(0, 0, size.width, size.height); + axis::Rect rc(0, 0, size.width, size.height); bool contains = (rc.containsPoint(pt)); @@ -906,7 +906,7 @@ void TextFieldEx::__initCursor(int height, int width, const Color4B& color) this->addChild(this->cursor); this->cursor->setPosition(Point(0, this->getContentSize().height / 2)); - // nodes_layout::setNodeLB(this->cursor, cocos2d::Point::ZERO); + // nodes_layout::setNodeLB(this->cursor, axis::Point::ZERO); /*CCAction* blink = CCRepeatForever::create( (CCActionInterval *)CCSequence::create(CCFadeOut::create(0.25f), @@ -1062,6 +1062,6 @@ void TextFieldEx::__moveCursorTo(float x) } }; // namespace ui -NS_CC_END +NS_AX_END #endif diff --git a/core/ui/UITextFieldEx.h b/core/ui/UITextFieldEx.h index a337388c0f..d683e81a4e 100644 --- a/core/ui/UITextFieldEx.h +++ b/core/ui/UITextFieldEx.h @@ -8,7 +8,7 @@ #include "base/ccMacros.h" #include "base/SimpleTimer.h" -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -16,7 +16,7 @@ namespace ui /** @brief A extension implementation of ui::TextField */ -class CC_DLL TextFieldEx : public cocos2d::Node, public IMEDelegate +class CC_DLL TextFieldEx : public axis::Node, public IMEDelegate { public: /** @@ -185,7 +185,7 @@ protected: int _fontType; - cocos2d::stimer::TIMER_ID _continuousTouchDelayTimerID; + axis::stimer::TIMER_ID _continuousTouchDelayTimerID; float _continuousTouchDelayTime; std::function _continuousTouchCallback; @@ -197,7 +197,7 @@ protected: }; // namespace ui -NS_CC_END +NS_AX_END #ifdef _UITEXTFIELDEX_INLINE_ # include "UITextFieldEx.cpp" diff --git a/core/ui/UIVBox.cpp b/core/ui/UIVBox.cpp index 9506368374..93e5ff064b 100644 --- a/core/ui/UIVBox.cpp +++ b/core/ui/UIVBox.cpp @@ -25,7 +25,7 @@ #include "ui/UIVBox.h" -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -80,4 +80,4 @@ bool VBox::initWithSize(const Vec2& size) } // namespace ui -NS_CC_END +NS_AX_END diff --git a/core/ui/UIVBox.h b/core/ui/UIVBox.h index 094fafdfbd..cb5e6065b7 100644 --- a/core/ui/UIVBox.h +++ b/core/ui/UIVBox.h @@ -29,7 +29,7 @@ #include "ui/UILayout.h" #include "ui/GUIExport.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * @addtogroup ui * @{ @@ -81,6 +81,6 @@ public: // end of ui group /// @} -NS_CC_END +NS_AX_END #endif /* defined(__UIVBox__) */ diff --git a/core/ui/UIVideoPlayer/UIVideoPlayer-android.cpp b/core/ui/UIVideoPlayer/UIVideoPlayer-android.cpp index 3b79d75a27..3370643f07 100644 --- a/core/ui/UIVideoPlayer/UIVideoPlayer-android.cpp +++ b/core/ui/UIVideoPlayer/UIVideoPlayer-android.cpp @@ -41,7 +41,7 @@ static const char* videoHelperClassName = "org.cocos2dx.lib.Cocos2dxVideoHelper"; -USING_NS_CC; +USING_NS_AX; static void executeVideoCallback(int index, int event); @@ -95,7 +95,7 @@ void setUserInputEnabledJNI(int index, bool enableInput) //----------------------------------------------------------------------------------------------------------- -using namespace cocos2d::ui; +using namespace axis::ui; static std::unordered_map s_allVideoPlayers; @@ -160,11 +160,11 @@ void VideoPlayer::setStyle(StyleType style) void VideoPlayer::draw(Renderer* renderer, const Mat4& transform, uint32_t flags) { - cocos2d::ui::Widget::draw(renderer, transform, flags); + axis::ui::Widget::draw(renderer, transform, flags); if (flags & FLAGS_TRANSFORM_DIRTY) { - auto uiRect = cocos2d::ui::Helper::convertBoundingBoxToScreen(this); + auto uiRect = axis::ui::Helper::convertBoundingBoxToScreen(this); JniHelper::callStaticVoidMethod(videoHelperClassName, "setVideoRect", _videoPlayerIndex, (int)uiRect.origin.x, (int)uiRect.origin.y, (int)uiRect.size.width, (int)uiRect.size.height); } @@ -262,7 +262,7 @@ bool VideoPlayer::isUserInputEnabled() const void VideoPlayer::setVisible(bool visible) { - cocos2d::ui::Widget::setVisible(visible); + axis::ui::Widget::setVisible(visible); if (!visible || isRunning()) { @@ -315,7 +315,7 @@ void VideoPlayer::onPlayEvent(int event) } } -cocos2d::ui::Widget* VideoPlayer::createCloneInstance() +axis::ui::Widget* VideoPlayer::createCloneInstance() { return VideoPlayer::create(); } diff --git a/core/ui/UIVideoPlayer/UIVideoPlayer-ios.mm b/core/ui/UIVideoPlayer/UIVideoPlayer-ios.mm index 6d4bc6f4b9..38aa9d8729 100644 --- a/core/ui/UIVideoPlayer/UIVideoPlayer-ios.mm +++ b/core/ui/UIVideoPlayer/UIVideoPlayer-ios.mm @@ -29,7 +29,7 @@ // No Available on tvOS #if CC_TARGET_PLATFORM == CC_PLATFORM_IOS && !defined(CC_TARGET_OS_TVOS) -using namespace cocos2d::ui; +using namespace axis::ui; //------------------------------------------------------------------------------------- # include "platform/ios/CCEAGLView-ios.h" @@ -176,7 +176,7 @@ typedef NS_ENUM(NSInteger, PlayerbackState) { [self setUserInteractionEnabled:_userInteractionEnabled]; [self showPlaybackControls:_showPlaybackControls]; - auto view = cocos2d::Director::getInstance()->getOpenGLView(); + auto view = axis::Director::getInstance()->getOpenGLView(); auto eaglview = (CCEAGLView*)view->getEAGLView(); [eaglview addSubview:self.playerController.view]; [self registerPlayerEventListener]; @@ -343,7 +343,7 @@ void VideoPlayer::setPlayRate(float fRate) {} void VideoPlayer::draw(Renderer* renderer, const Mat4& transform, uint32_t flags) { - cocos2d::ui::Widget::draw(renderer, transform, flags); + axis::ui::Widget::draw(renderer, transform, flags); if (flags & FLAGS_TRANSFORM_DIRTY) { @@ -450,7 +450,7 @@ bool VideoPlayer::isUserInputEnabled() const void VideoPlayer::setVisible(bool visible) { - cocos2d::ui::Widget::setVisible(visible); + axis::ui::Widget::setVisible(visible); if (!visible) { @@ -499,7 +499,7 @@ void VideoPlayer::onPlayEvent(int event) } } -cocos2d::ui::Widget* VideoPlayer::createCloneInstance() +axis::ui::Widget* VideoPlayer::createCloneInstance() { return VideoPlayer::create(); } diff --git a/core/ui/UIVideoPlayer/UIVideoPlayer-win.cpp b/core/ui/UIVideoPlayer/UIVideoPlayer-win.cpp index bd1f8252f0..9682a84957 100644 --- a/core/ui/UIVideoPlayer/UIVideoPlayer-win.cpp +++ b/core/ui/UIVideoPlayer/UIVideoPlayer-win.cpp @@ -42,7 +42,7 @@ # include "yasio/detail/sz.hpp" //----------------------------------------------------------------------------------------------------------- -USING_NS_CC; +USING_NS_AX; //----------------------------------------------------------------------------------------------------------- @@ -54,7 +54,7 @@ USING_NS_CC; (ps)->setUniform(__loc, &__v, sizeof(__v)); \ } while (false) -using namespace cocos2d::ui; +using namespace axis::ui; namespace { @@ -325,7 +325,7 @@ VideoPlayer::VideoPlayer() } else { - cocos2d::log("Create VideoPlayer backend failed, hr=%d", (int)hr); + axis::log("Create VideoPlayer backend failed, hr=%d", (int)hr); } } @@ -390,7 +390,7 @@ void VideoPlayer::setStyle(StyleType style) void VideoPlayer::draw(Renderer* renderer, const Mat4& transform, uint32_t flags) { - cocos2d::ui::Widget::draw(renderer, transform, flags); + axis::ui::Widget::draw(renderer, transform, flags); auto pvd = (PrivateVideoDescriptor*)_videoContext; // auto vrender = pvd->_vrender; @@ -635,7 +635,7 @@ bool VideoPlayer::isUserInputEnabled() const void VideoPlayer::setVisible(bool visible) { - cocos2d::ui::Widget::setVisible(visible); + axis::ui::Widget::setVisible(visible); } void VideoPlayer::onEnter() @@ -664,7 +664,7 @@ void VideoPlayer::onPlayEvent(int event) } } -cocos2d::ui::Widget* VideoPlayer::createCloneInstance() +axis::ui::Widget* VideoPlayer::createCloneInstance() { return VideoPlayer::create(); } diff --git a/core/ui/UIVideoPlayer/UIVideoPlayer.h b/core/ui/UIVideoPlayer/UIVideoPlayer.h index 82e4a4fa0c..68a65ef578 100644 --- a/core/ui/UIVideoPlayer/UIVideoPlayer.h +++ b/core/ui/UIVideoPlayer/UIVideoPlayer.h @@ -42,7 +42,7 @@ * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -54,7 +54,7 @@ namespace ui * It's mean VideoPlayer displays a video file above all graphical elements of cocos2d-x. * @js NA */ -class VideoPlayer : public cocos2d::ui::Widget +class VideoPlayer : public axis::ui::Widget { public: /** @@ -244,7 +244,7 @@ public: virtual ~VideoPlayer(); protected: - virtual cocos2d::ui::Widget* createCloneInstance() override; + virtual axis::ui::Widget* createCloneInstance() override; virtual void copySpecialProperties(Widget* model) override; # if CC_VIDEOPLAYER_DEBUG_DRAW @@ -276,7 +276,7 @@ protected: }; } // namespace ui -NS_CC_END +NS_AX_END // end group /// @} #endif diff --git a/core/ui/UIWebView/UIWebView-inl.h b/core/ui/UIWebView/UIWebView-inl.h index b1617a19aa..26a2fd73f1 100644 --- a/core/ui/UIWebView/UIWebView-inl.h +++ b/core/ui/UIWebView/UIWebView-inl.h @@ -31,7 +31,7 @@ #include "base/CCDirector.h" #include "platform/CCFileUtils.h" -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { WebView::WebView() : _impl(new WebViewImpl(this)) {} @@ -58,7 +58,7 @@ void WebView::setJavascriptInterfaceScheme(std::string_view scheme) _impl->setJavascriptInterfaceScheme(scheme); } -void WebView::loadData(const cocos2d::Data& data, +void WebView::loadData(const axis::Data& data, std::string_view MIMEType, std::string_view encoding, std::string_view baseURL) @@ -126,9 +126,9 @@ void WebView::setScalesPageToFit(bool const scalesPageToFit) _impl->setScalesPageToFit(scalesPageToFit); } -void WebView::draw(cocos2d::Renderer* renderer, cocos2d::Mat4 const& transform, uint32_t flags) +void WebView::draw(axis::Renderer* renderer, axis::Mat4 const& transform, uint32_t flags) { - cocos2d::ui::Widget::draw(renderer, transform, flags); + axis::ui::Widget::draw(renderer, transform, flags); _impl->draw(renderer, transform, flags); } @@ -176,7 +176,7 @@ void WebView::setBounces(bool bounces) _impl->setBounces(bounces); } -cocos2d::ui::Widget* WebView::createCloneInstance() +axis::ui::Widget* WebView::createCloneInstance() { return WebView::create(); } @@ -235,6 +235,6 @@ WebView::ccWebViewCallback WebView::getOnJSCallback() const } } // namespace ui -} // namespace cocos2d +NS_AX_END // namespace axis /// @endcond diff --git a/core/ui/UIWebView/UIWebView.h b/core/ui/UIWebView/UIWebView.h index e5d335cd44..34f71dab84 100644 --- a/core/ui/UIWebView/UIWebView.h +++ b/core/ui/UIWebView/UIWebView.h @@ -35,7 +35,7 @@ * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -48,7 +48,7 @@ class WebViewImpl; * It's mean WebView displays web pages above all graphical elements of cocos2d-x. * @js NA */ -class CC_GUI_DLL WebView : public cocos2d::ui::Widget +class CC_GUI_DLL WebView : public axis::ui::Widget { public: /** @@ -71,7 +71,7 @@ public: * @param encoding The encoding of the data. * @param baseURL The base URL for the content. */ - void loadData(const cocos2d::Data& data, + void loadData(const axis::Data& data, std::string_view MIMEType, std::string_view encoding, std::string_view baseURL); @@ -206,7 +206,7 @@ public: */ void setBounces(bool bounce); - virtual void draw(cocos2d::Renderer* renderer, cocos2d::Mat4 const& transform, uint32_t flags) override; + virtual void draw(axis::Renderer* renderer, axis::Mat4 const& transform, uint32_t flags) override; /** * Toggle visibility of WebView. @@ -236,7 +236,7 @@ public: virtual ~WebView(); protected: - virtual cocos2d::ui::Widget* createCloneInstance() override; + virtual axis::ui::Widget* createCloneInstance() override; virtual void copySpecialProperties(Widget* model) override; std::function _onShouldStartLoading = nullptr; @@ -250,7 +250,7 @@ private: }; } // namespace ui -} // namespace cocos2d +NS_AX_END // namespace axis #endif diff --git a/core/ui/UIWebView/UIWebViewImpl-android.cpp b/core/ui/UIWebView/UIWebViewImpl-android.cpp index 50a7a3f9e9..af5b8a6516 100644 --- a/core/ui/UIWebView/UIWebViewImpl-android.cpp +++ b/core/ui/UIWebView/UIWebViewImpl-android.cpp @@ -94,7 +94,7 @@ JNIEXPORT jboolean JNICALL Java_org_cocos2dx_lib_Cocos2dxWebViewHelper_shouldSta auto charUrl = env->GetStringUTFChars(jurl, NULL); std::string url = charUrl; env->ReleaseStringUTFChars(jurl, charUrl); - return cocos2d::ui::WebViewImpl::shouldStartLoading(index, url); + return axis::ui::WebViewImpl::shouldStartLoading(index, url); } /* @@ -111,7 +111,7 @@ JNIEXPORT void JNICALL Java_org_cocos2dx_lib_Cocos2dxWebViewHelper_didFinishLoad auto charUrl = env->GetStringUTFChars(jurl, NULL); std::string url = charUrl; env->ReleaseStringUTFChars(jurl, charUrl); - cocos2d::ui::WebViewImpl::didFinishLoading(index, url); + axis::ui::WebViewImpl::didFinishLoading(index, url); } /* @@ -128,7 +128,7 @@ JNIEXPORT void JNICALL Java_org_cocos2dx_lib_Cocos2dxWebViewHelper_didFailLoadin auto charUrl = env->GetStringUTFChars(jurl, NULL); std::string url = charUrl; env->ReleaseStringUTFChars(jurl, charUrl); - cocos2d::ui::WebViewImpl::didFailLoading(index, url); + axis::ui::WebViewImpl::didFailLoading(index, url); } /* @@ -145,7 +145,7 @@ JNIEXPORT void JNICALL Java_org_cocos2dx_lib_Cocos2dxWebViewHelper_onJsCallback( auto charMessage = env->GetStringUTFChars(jmessage, NULL); std::string message = charMessage; env->ReleaseStringUTFChars(jmessage, charMessage); - cocos2d::ui::WebViewImpl::onJsCallback(index, message); + axis::ui::WebViewImpl::onJsCallback(index, message); } } @@ -154,8 +154,8 @@ namespace int createWebViewJNI() { - cocos2d::JniMethodInfo t; - if (cocos2d::JniHelper::getStaticMethodInfo(t, className, "createWebView", "()I")) + axis::JniMethodInfo t; + if (axis::JniHelper::getStaticMethodInfo(t, className, "createWebView", "()I")) { // LOGD("error: %s,%d",__func__,__LINE__); jint viewTag = t.env->CallStaticIntMethod(t.classID, t.methodID); @@ -168,7 +168,7 @@ int createWebViewJNI() std::string getUrlStringByFileName(std::string_view fileName) { // LOGD("error: %s,%d",__func__,__LINE__); - std::string urlString = cocos2d::FileUtils::getInstance()->fullPathForFilename(fileName); + std::string urlString = axis::FileUtils::getInstance()->fullPathForFilename(fileName); if (urlString.empty()) return urlString; @@ -183,12 +183,12 @@ std::string getUrlStringByFileName(std::string_view fileName) } } // namespace -namespace cocos2d -{ +NS_AX_BEGIN + namespace ui { -static std::unordered_map s_WebViewImpls; +static std::unordered_map s_WebViewImpls; WebViewImpl::WebViewImpl(WebView* webView) : _viewTag(-1), _webView(webView) { @@ -332,11 +332,11 @@ void WebViewImpl::onJsCallback(const int viewTag, std::string_view message) } } -void WebViewImpl::draw(cocos2d::Renderer* renderer, cocos2d::Mat4 const& transform, uint32_t flags) +void WebViewImpl::draw(axis::Renderer* renderer, axis::Mat4 const& transform, uint32_t flags) { - if (flags & cocos2d::Node::FLAGS_TRANSFORM_DIRTY) + if (flags & axis::Node::FLAGS_TRANSFORM_DIRTY) { - auto uiRect = cocos2d::ui::Helper::convertBoundingBoxToScreen(_webView); + auto uiRect = axis::ui::Helper::convertBoundingBoxToScreen(_webView); JniHelper::callStaticVoidMethod(className, "setWebViewRect", _viewTag, (int)uiRect.origin.x, (int)uiRect.origin.y, (int)uiRect.size.width, (int)uiRect.size.height); } @@ -367,4 +367,4 @@ void WebViewImpl::setBounces(bool bounces) // empty function as this was mainly a fix for iOS } } // namespace ui -} // namespace cocos2d +NS_AX_END // namespace axis diff --git a/core/ui/UIWebView/UIWebViewImpl-android.h b/core/ui/UIWebView/UIWebViewImpl-android.h index 3fe3e265c9..87370bad22 100644 --- a/core/ui/UIWebView/UIWebViewImpl-android.h +++ b/core/ui/UIWebView/UIWebViewImpl-android.h @@ -31,8 +31,10 @@ #include #include -namespace cocos2d -{ +#include "platform/CCPlatformMacros.h" + +NS_AX_BEGIN + class Data; class Renderer; class Mat4; @@ -41,23 +43,23 @@ namespace ui { class WebView; } -} // namespace cocos2d +NS_AX_END // namespace axis + +NS_AX_BEGIN -namespace cocos2d -{ namespace ui { class WebViewImpl { public: - WebViewImpl(cocos2d::ui::WebView* webView); + WebViewImpl(axis::ui::WebView* webView); virtual ~WebViewImpl(); void setJavascriptInterfaceScheme(std::string_view scheme); - void loadData(const cocos2d::Data& data, + void loadData(const axis::Data& data, std::string_view MIMEType, std::string_view encoding, std::string_view baseURL); @@ -85,7 +87,7 @@ public: void setScalesPageToFit(const bool scalesPageToFit); - virtual void draw(cocos2d::Renderer* renderer, cocos2d::Mat4 const& transform, uint32_t flags); + virtual void draw(axis::Renderer* renderer, axis::Mat4 const& transform, uint32_t flags); virtual void setVisible(bool visible); @@ -108,6 +110,6 @@ private: }; } // namespace ui -} // namespace cocos2d +NS_AX_END // namespace axis /// @endcond diff --git a/core/ui/UIWebView/UIWebViewImpl-ios.h b/core/ui/UIWebView/UIWebViewImpl-ios.h index e24c93ce60..5706d80166 100644 --- a/core/ui/UIWebView/UIWebViewImpl-ios.h +++ b/core/ui/UIWebView/UIWebViewImpl-ios.h @@ -30,10 +30,11 @@ #include #include +#include "platform/CCPlatformMacros.h" + @class UIWebViewWrapper; -namespace cocos2d -{ +NS_AX_BEGIN class Data; class Renderer; @@ -53,7 +54,7 @@ public: void setJavascriptInterfaceScheme(std::string_view scheme); - void loadData(const cocos2d::Data& data, + void loadData(const axis::Data& data, std::string_view MIMEType, std::string_view encoding, std::string_view baseURL); @@ -81,7 +82,7 @@ public: void setScalesPageToFit(const bool scalesPageToFit); - virtual void draw(cocos2d::Renderer* renderer, cocos2d::Mat4 const& transform, uint32_t flags); + virtual void draw(axis::Renderer* renderer, axis::Mat4 const& transform, uint32_t flags); virtual void setVisible(bool visible); @@ -99,6 +100,6 @@ private: }; } // namespace ui -} // namespace cocos2d +NS_AX_END // namespace axis /// @endcond diff --git a/core/ui/UIWebView/UIWebViewImpl-ios.mm b/core/ui/UIWebView/UIWebViewImpl-ios.mm index 2dbbd36772..359486ee96 100644 --- a/core/ui/UIWebView/UIWebViewImpl-ios.mm +++ b/core/ui/UIWebView/UIWebViewImpl-ios.mm @@ -131,7 +131,7 @@ } if (!self.wkWebView.superview) { - auto view = cocos2d::Director::getInstance()->getOpenGLView(); + auto view = axis::Director::getInstance()->getOpenGLView(); auto eaglview = (CCEAGLView*)view->getEAGLView(); [eaglview addSubview:self.wkWebView]; } @@ -370,8 +370,8 @@ @end -namespace cocos2d -{ +NS_AX_BEGIN + namespace ui { @@ -443,7 +443,7 @@ void WebViewImpl::loadURL(std::string_view url, bool cleanCachedData) void WebViewImpl::loadFile(std::string_view fileName) { - auto fullPath = cocos2d::FileUtils::getInstance()->fullPathForFilename(fileName); + auto fullPath = axis::FileUtils::getInstance()->fullPathForFilename(fileName); [_uiWebViewWrapper loadFile:fullPath]; } @@ -492,12 +492,12 @@ void WebViewImpl::setScalesPageToFit(const bool scalesPageToFit) [_uiWebViewWrapper setScalesPageToFit:scalesPageToFit]; } -void WebViewImpl::draw(cocos2d::Renderer* renderer, cocos2d::Mat4 const& transform, uint32_t flags) +void WebViewImpl::draw(axis::Renderer* renderer, axis::Mat4 const& transform, uint32_t flags) { - if (flags & cocos2d::Node::FLAGS_TRANSFORM_DIRTY) + if (flags & axis::Node::FLAGS_TRANSFORM_DIRTY) { - auto director = cocos2d::Director::getInstance(); + auto director = axis::Director::getInstance(); auto glView = director->getOpenGLView(); auto frameSize = glView->getFrameSize(); @@ -505,9 +505,9 @@ void WebViewImpl::draw(cocos2d::Renderer* renderer, cocos2d::Mat4 const& transfo auto winSize = director->getWinSize(); - auto leftBottom = this->_webView->convertToWorldSpace(cocos2d::Vec2::ZERO); + auto leftBottom = this->_webView->convertToWorldSpace(axis::Vec2::ZERO); auto rightTop = this->_webView->convertToWorldSpace( - cocos2d::Vec2(this->_webView->getContentSize().width, this->_webView->getContentSize().height)); + axis::Vec2(this->_webView->getContentSize().width, this->_webView->getContentSize().height)); auto x = (frameSize.width / 2 + (leftBottom.x - winSize.width / 2) * glView->getScaleX()) / scaleFactor; auto y = (frameSize.height / 2 - (rightTop.y - winSize.height / 2) * glView->getScaleY()) / scaleFactor; @@ -539,4 +539,4 @@ void WebViewImpl::setBackgroundTransparent() } } // namespace ui -} // namespace cocos2d +} // namespace axis diff --git a/core/ui/UIWebView/UIWebViewImpl-win32.cpp b/core/ui/UIWebView/UIWebViewImpl-win32.cpp index 2cd516251d..dc4d6940f8 100644 --- a/core/ui/UIWebView/UIWebViewImpl-win32.cpp +++ b/core/ui/UIWebView/UIWebViewImpl-win32.cpp @@ -57,7 +57,7 @@ # include "ntcvt/ntcvt.hpp" -USING_NS_CC; +USING_NS_AX; using namespace rapidjson; using msg_cb_t = std::function; @@ -220,7 +220,7 @@ static std::string getUriStringFromArgs(ArgType* args) static std::string getDataURI(std::string_view data, std::string_view mime_type) { char* encodedData; - cocos2d::base64Encode(reinterpret_cast(data.data()), static_cast(data.size()), + axis::base64Encode(reinterpret_cast(data.data()), static_cast(data.size()), &encodedData); return std::string{"data:"}.append(mime_type).append(";base64,").append(utils::urlEncode(encodedData)); } @@ -603,8 +603,8 @@ private: }; }; -namespace cocos2d -{ +NS_AX_BEGIN + namespace ui { WebViewImpl::WebViewImpl(WebView* webView) : _createSucceeded(false), _systemWebControl(nullptr), _webView(webView) @@ -788,7 +788,7 @@ void WebViewImpl::draw(Renderer* renderer, Mat4 const& transform, uint32_t flags { if (_createSucceeded && (flags & Node::FLAGS_TRANSFORM_DIRTY)) { - const auto uiRect = cocos2d::ui::Helper::convertBoundingBoxToScreen(_webView); + const auto uiRect = axis::ui::Helper::convertBoundingBoxToScreen(_webView); _systemWebControl->setWebViewRect(static_cast(uiRect.origin.x), static_cast(uiRect.origin.y), static_cast(uiRect.size.width), static_cast(uiRect.size.height)); } @@ -822,7 +822,7 @@ void WebViewImpl::setBackgroundTransparent() _systemWebControl->setBackgroundTransparent(); } } // namespace ui -} // namespace cocos2d +NS_AX_END // namespace axis // // Implement Win32WebControl @@ -832,7 +832,7 @@ bool Win32WebControl::s_isInitialized = false; void Win32WebControl::lazyInit() { // reset the main windows style so that its drawing does not cover the webview sub window - auto hwnd = cocos2d::Director::getInstance()->getOpenGLView()->getWin32Window(); + auto hwnd = axis::Director::getInstance()->getOpenGLView()->getWin32Window(); const auto style = GetWindowLong(hwnd, GWL_STYLE); SetWindowLong(hwnd, GWL_STYLE, style | WS_CLIPCHILDREN); @@ -855,7 +855,7 @@ bool Win32WebControl::createWebView(const std::function& bool ret = false; do { - HWND hwnd = cocos2d::Director::getInstance()->getOpenGLView()->getWin32Window(); + HWND hwnd = axis::Director::getInstance()->getOpenGLView()->getWin32Window(); HINSTANCE hInstance = GetModuleHandle(nullptr); WNDCLASSEX wc; ZeroMemory(&wc, sizeof(WNDCLASSEX)); @@ -991,7 +991,7 @@ void Win32WebControl::loadURL(std::string_view url, bool cleanCachedData) void Win32WebControl::loadFile(std::string_view filePath) { - auto fullPath = cocos2d::FileUtils::getInstance()->fullPathForFilename(filePath); + auto fullPath = axis::FileUtils::getInstance()->fullPathForFilename(filePath); if (fullPath.find("file:///") != 0) { if (fullPath[0] == '/') diff --git a/core/ui/UIWebView/UIWebViewImpl-win32.h b/core/ui/UIWebView/UIWebViewImpl-win32.h index b7d2a9bd91..23c5d59b64 100644 --- a/core/ui/UIWebView/UIWebViewImpl-win32.h +++ b/core/ui/UIWebView/UIWebViewImpl-win32.h @@ -26,15 +26,15 @@ #ifndef __COCOS2D__UI__WEBVIEWIMPL_WIN32_H_ #define __COCOS2D__UI__WEBVIEWIMPL_WIN32_H_ -#include "platform/CCPlatformConfig.h" +#include "platform/CCPlatformMacros.h" #if CC_TARGET_PLATFORM == CC_PLATFORM_WIN32 && defined(AXIS_HAVE_WEBVIEW2) # include # include "CCStdC.h" -namespace cocos2d -{ +NS_AX_BEGIN + class Data; class Renderer; class Mat4; @@ -43,23 +43,24 @@ namespace ui { class WebView; } -} // namespace cocos2d + +NS_AX_END // namespace axis class Win32WebControl; -namespace cocos2d -{ +NS_AX_BEGIN + namespace ui { class WebViewImpl { public: - WebViewImpl(cocos2d::ui::WebView* webView); + WebViewImpl(axis::ui::WebView* webView); virtual ~WebViewImpl(); void setJavascriptInterfaceScheme(std::string_view scheme); - void loadData(const cocos2d::Data& data, + void loadData(const axis::Data& data, std::string_view MIMEType, std::string_view encoding, std::string_view baseURL); @@ -75,7 +76,7 @@ public: void evaluateJS(std::string_view js); void setScalesPageToFit(const bool scalesPageToFit); - virtual void draw(cocos2d::Renderer* renderer, cocos2d::Mat4 const& transform, uint32_t flags); + virtual void draw(axis::Renderer* renderer, axis::Mat4 const& transform, uint32_t flags); virtual void setVisible(bool visible); void setBounces(bool bounces); @@ -89,7 +90,7 @@ private: WebView* _webView; }; } // namespace ui -} // namespace cocos2d +NS_AX_END // namespace axis #endif // CC_TARGET_PLATFORM == CC_PLATFORM_WIN32 diff --git a/core/ui/UIWidget.cpp b/core/ui/UIWidget.cpp index 51f842c941..fdce7d7d46 100644 --- a/core/ui/UIWidget.cpp +++ b/core/ui/UIWidget.cpp @@ -38,7 +38,7 @@ THE SOFTWARE. #include "2d/CCSprite.h" #include "ui/UIScale9Sprite.h" -NS_CC_BEGIN +NS_AX_BEGIN namespace ui { @@ -770,9 +770,9 @@ bool Widget::onTouchBegan(Touch* touch, Event* /*unusedEvent*/) return true; } -void Widget::propagateTouchEvent(cocos2d::ui::Widget::TouchEventType event, - cocos2d::ui::Widget* sender, - cocos2d::Touch* touch) +void Widget::propagateTouchEvent(axis::ui::Widget::TouchEventType event, + axis::ui::Widget* sender, + axis::Touch* touch) { Widget* widgetParent = getWidgetParent(); if (widgetParent) @@ -958,7 +958,7 @@ bool Widget::isClippingParentContainsPoint(const Vec2& pt) return true; } -void Widget::interceptTouchEvent(cocos2d::ui::Widget::TouchEventType event, cocos2d::ui::Widget* sender, Touch* touch) +void Widget::interceptTouchEvent(axis::ui::Widget::TouchEventType event, axis::ui::Widget* sender, Touch* touch) { Widget* widgetParent = getWidgetParent(); if (widgetParent) @@ -1344,7 +1344,7 @@ Widget* Widget::findNextFocusedWidget(FocusDirection direction, Widget* current) } } -void Widget::dispatchFocusEvent(cocos2d::ui::Widget* widgetLoseFocus, cocos2d::ui::Widget* widgetGetFocus) +void Widget::dispatchFocusEvent(axis::ui::Widget* widgetLoseFocus, axis::ui::Widget* widgetGetFocus) { // if the widgetLoseFocus doesn't get focus, it will use the previous focused widget instead if (widgetLoseFocus && !widgetLoseFocus->isFocused()) @@ -1445,4 +1445,4 @@ bool Widget::isLayoutComponentEnabled() const } } // namespace ui -NS_CC_END +NS_AX_END diff --git a/core/ui/UIWidget.h b/core/ui/UIWidget.h index 1e8d7e3937..bd9f461a59 100644 --- a/core/ui/UIWidget.h +++ b/core/ui/UIWidget.h @@ -38,7 +38,7 @@ THE SOFTWARE. * @addtogroup ui * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN class EventListenerTouchOneByOne; class Camera; @@ -252,7 +252,7 @@ public: /** * @js NA */ - virtual void visit(cocos2d::Renderer* renderer, const Mat4& parentTransform, uint32_t parentFlags) override; + virtual void visit(axis::Renderer* renderer, const Mat4& parentTransform, uint32_t parentFlags) override; /** * Set a callback to touch vent listener. @@ -847,7 +847,7 @@ private: }; } // namespace ui -NS_CC_END +NS_AX_END // end of ui group /// @} diff --git a/examples/SimpleSnake/Classes/AppDelegate.cpp b/examples/SimpleSnake/Classes/AppDelegate.cpp index d619c3dfaf..4a189f2d83 100644 --- a/examples/SimpleSnake/Classes/AppDelegate.cpp +++ b/examples/SimpleSnake/Classes/AppDelegate.cpp @@ -32,12 +32,12 @@ # include "audio/AudioEngine.h" #endif -USING_NS_CC; +USING_NS_AX; -static cocos2d::Size designResolutionSize = cocos2d::Size(720, 720); -static cocos2d::Size smallResolutionSize = cocos2d::Size(480, 320); -static cocos2d::Size mediumResolutionSize = cocos2d::Size(1024, 768); -static cocos2d::Size largeResolutionSize = cocos2d::Size(2048, 1536); +static axis::Size designResolutionSize = axis::Size(720, 720); +static axis::Size smallResolutionSize = axis::Size(480, 320); +static axis::Size mediumResolutionSize = axis::Size(1024, 768); +static axis::Size largeResolutionSize = axis::Size(2048, 1536); AppDelegate::AppDelegate() {} @@ -70,7 +70,7 @@ bool AppDelegate::applicationDidFinishLaunching() #if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC) || \ (CC_TARGET_PLATFORM == CC_PLATFORM_LINUX) glview = GLViewImpl::createWithRect( - "Example: Simple Snake", cocos2d::Rect(0, 0, designResolutionSize.width, designResolutionSize.height)); + "Example: Simple Snake", axis::Rect(0, 0, designResolutionSize.width, designResolutionSize.height)); #else glview = GLViewImpl::create("Example: Simple Snake"); #endif diff --git a/examples/SimpleSnake/Classes/AppDelegate.h b/examples/SimpleSnake/Classes/AppDelegate.h index 4f6bdec272..174ca18c01 100644 --- a/examples/SimpleSnake/Classes/AppDelegate.h +++ b/examples/SimpleSnake/Classes/AppDelegate.h @@ -33,7 +33,7 @@ Private inheritance here hides part of interface from Director. */ -class AppDelegate : private cocos2d::Application +class AppDelegate : private axis::Application { public: AppDelegate(); diff --git a/examples/SimpleSnake/Classes/SimpleSnakeScene.cpp b/examples/SimpleSnake/Classes/SimpleSnakeScene.cpp index fa784157f8..c880172d35 100644 --- a/examples/SimpleSnake/Classes/SimpleSnakeScene.cpp +++ b/examples/SimpleSnake/Classes/SimpleSnakeScene.cpp @@ -20,7 +20,7 @@ #include #include -USING_NS_CC; +USING_NS_AX; struct Snake { @@ -42,7 +42,7 @@ static void problemLoading(const char* filename) "HelloWorldScene.cpp\n"); } -inline void setNodeIgnoreDesignScale(cocos2d::Node* node) +inline void setNodeIgnoreDesignScale(axis::Node* node) { CCASSERT(node, "node pointer cannot be null."); diff --git a/examples/SimpleSnake/Classes/SimpleSnakeScene.h b/examples/SimpleSnake/Classes/SimpleSnakeScene.h index dd7a55fd74..e46af984f0 100644 --- a/examples/SimpleSnake/Classes/SimpleSnakeScene.h +++ b/examples/SimpleSnake/Classes/SimpleSnakeScene.h @@ -24,7 +24,7 @@ const int snakeBodies = 9; const int StartBodies = 4; -class SimpleSnake : public cocos2d::Scene +class SimpleSnake : public axis::Scene { public: virtual bool init() override; @@ -33,10 +33,10 @@ public: void menuCloseCallback(Ref* sender); virtual void update(float delta) override; void drawAll(bool finish); - void onKeyPressed(cocos2d::EventKeyboard::KeyCode keyCode, cocos2d::Event* event); + void onKeyPressed(axis::EventKeyboard::KeyCode keyCode, axis::Event* event); - cocos2d::Vec2 offset; - cocos2d::DrawNode* mydraw; + axis::Vec2 offset; + axis::DrawNode* mydraw; // game stuff int N = 36, M = 36; @@ -50,8 +50,8 @@ public: float endLevelTime = 0.0; int dir, num = StartBodies; - cocos2d::Label* myScoreLabel[snakeBodies + 1]; - cocos2d::Sprite* background; + axis::Label* myScoreLabel[snakeBodies + 1]; + axis::Sprite* background; }; #endif // __SIMPLE_SNAKE_SCENE_H__ diff --git a/examples/SimpleSnake/proj.android/app/build.gradle b/examples/SimpleSnake/proj.android/app/build.gradle index 2522551ccc..ac4cafdc1f 100644 --- a/examples/SimpleSnake/proj.android/app/build.gradle +++ b/examples/SimpleSnake/proj.android/app/build.gradle @@ -3,7 +3,7 @@ import java.nio.file.Paths import java.nio.file.Files apply plugin: 'com.android.application' -apply from: project(':libcocos2dx').projectDir.toString() + "/axis-tools.gradle" +apply from: project(':libcocos2dx').projectDir.toString() + "/axistools.gradle" android { compileSdkVersion PROP_COMPILE_SDK_VERSION.toInteger() diff --git a/examples/SimpleSnake/proj.ios_mac/ios/AppController.mm b/examples/SimpleSnake/proj.ios_mac/ios/AppController.mm index 2dafa17d40..28c5b7e56b 100644 --- a/examples/SimpleSnake/proj.ios_mac/ios/AppController.mm +++ b/examples/SimpleSnake/proj.ios_mac/ios/AppController.mm @@ -42,11 +42,11 @@ static AppDelegate s_sharedApplication; - (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions { - cocos2d::Application* app = cocos2d::Application::getInstance(); + axis::Application* app = axis::Application::getInstance(); // Initialize the GLView attributes app->initGLContextAttrs(); - cocos2d::GLViewImpl::convertAttrs(); + axis::GLViewImpl::convertAttrs(); // Override point for customization after application launch. @@ -80,8 +80,8 @@ static AppDelegate s_sharedApplication; } // IMPORTANT: Setting the GLView should be done after creating the RootViewController - cocos2d::GLView* glview = cocos2d::GLViewImpl::createWithEAGLView((__bridge void*)_viewController.view); - cocos2d::Director::getInstance()->setOpenGLView(glview); + axis::GLView* glview = axis::GLViewImpl::createWithEAGLView((__bridge void*)_viewController.view); + axis::Director::getInstance()->setOpenGLView(glview); // run the cocos2d-x game scene app->run(); @@ -98,7 +98,7 @@ static AppDelegate s_sharedApplication; throttle down OpenGL ES frame rates. Games should use this method to pause the game. */ // We don't need to call this method any more. It will interrupt user defined game pause&resume logic - /* cocos2d::Director::getInstance()->pause(); */ + /* axis::Director::getInstance()->pause(); */ } - (void)applicationDidBecomeActive:(UIApplication*)application @@ -108,7 +108,7 @@ static AppDelegate s_sharedApplication; previously in the background, optionally refresh the user interface. */ // We don't need to call this method any more. It will interrupt user defined game pause&resume logic - /* cocos2d::Director::getInstance()->resume(); */ + /* axis::Director::getInstance()->resume(); */ } - (void)applicationDidEnterBackground:(UIApplication*)application @@ -118,7 +118,7 @@ static AppDelegate s_sharedApplication; information to restore your application to its current state in case it is terminated later. If your application supports background execution, called instead of applicationWillTerminate: when the user quits. */ - cocos2d::Application::getInstance()->applicationDidEnterBackground(); + axis::Application::getInstance()->applicationDidEnterBackground(); } - (void)applicationWillEnterForeground:(UIApplication*)application @@ -127,7 +127,7 @@ static AppDelegate s_sharedApplication; Called as part of transition from the background to the inactive state: here you can undo many of the changes made on entering the background. */ - cocos2d::Application::getInstance()->applicationWillEnterForeground(); + axis::Application::getInstance()->applicationWillEnterForeground(); } - (void)applicationWillTerminate:(UIApplication*)application diff --git a/examples/SimpleSnake/proj.ios_mac/ios/RootViewController.mm b/examples/SimpleSnake/proj.ios_mac/ios/RootViewController.mm index 8eaf237db9..a5ded72f81 100644 --- a/examples/SimpleSnake/proj.ios_mac/ios/RootViewController.mm +++ b/examples/SimpleSnake/proj.ios_mac/ios/RootViewController.mm @@ -46,12 +46,12 @@ customization that is not appropriate for viewDidLoad. { // Initialize the CCEAGLView CCEAGLView* eaglView = [CCEAGLView viewWithFrame:[UIScreen mainScreen].bounds - pixelFormat:(__bridge NSString*)cocos2d::GLViewImpl::_pixelFormat - depthFormat:cocos2d::GLViewImpl::_depthFormat + pixelFormat:(__bridge NSString*)axis::GLViewImpl::_pixelFormat + depthFormat:axis::GLViewImpl::_depthFormat preserveBackbuffer:NO sharegroup:nil - multiSampling:cocos2d::GLViewImpl::_multisamplingCount > 0 ? YES : NO - numberOfSamples:cocos2d::GLViewImpl::_multisamplingCount]; + multiSampling:axis::GLViewImpl::_multisamplingCount > 0 ? YES : NO + numberOfSamples:axis::GLViewImpl::_multisamplingCount]; // Enable or disable multiple touches [eaglView setMultipleTouchEnabled:NO]; @@ -93,7 +93,7 @@ customization that is not appropriate for viewDidLoad. { [super didRotateFromInterfaceOrientation:fromInterfaceOrientation]; - auto glview = cocos2d::Director::getInstance()->getOpenGLView(); + auto glview = axis::Director::getInstance()->getOpenGLView(); if (glview) { @@ -102,7 +102,7 @@ customization that is not appropriate for viewDidLoad. if (eaglview) { CGSize s = CGSizeMake([eaglview getWidth], [eaglview getHeight]); - cocos2d::Application::getInstance()->applicationScreenSizeChanged((int)s.width, (int)s.height); + axis::Application::getInstance()->applicationScreenSizeChanged((int)s.width, (int)s.height); } } } diff --git a/examples/SimpleSnake/proj.ios_mac/mac/main.cpp b/examples/SimpleSnake/proj.ios_mac/mac/main.cpp index 44045f8feb..59748b3c5f 100644 --- a/examples/SimpleSnake/proj.ios_mac/mac/main.cpp +++ b/examples/SimpleSnake/proj.ios_mac/mac/main.cpp @@ -26,7 +26,7 @@ #include "AppDelegate.h" #include "cocos2d.h" -USING_NS_CC; +USING_NS_AX; int main(int argc, char* argv[]) { diff --git a/examples/SimpleSnake/proj.linux/main.cpp b/examples/SimpleSnake/proj.linux/main.cpp index 3cbdb2bc35..dd68d8f841 100644 --- a/examples/SimpleSnake/proj.linux/main.cpp +++ b/examples/SimpleSnake/proj.linux/main.cpp @@ -29,7 +29,7 @@ #include #include -USING_NS_CC; +USING_NS_AX; int main(int argc, char** argv) { diff --git a/examples/SimpleSnake/proj.win32/main.cpp b/examples/SimpleSnake/proj.win32/main.cpp index 636fa57f07..1fdf40a681 100644 --- a/examples/SimpleSnake/proj.win32/main.cpp +++ b/examples/SimpleSnake/proj.win32/main.cpp @@ -26,7 +26,7 @@ #include "AppDelegate.h" #include "cocos2d.h" -USING_NS_CC; +USING_NS_AX; int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow) { diff --git a/extensions/DragonBones/CCArmatureDisplay.cpp b/extensions/DragonBones/CCArmatureDisplay.cpp index 81c12b564e..f545ce78a7 100644 --- a/extensions/DragonBones/CCArmatureDisplay.cpp +++ b/extensions/DragonBones/CCArmatureDisplay.cpp @@ -25,7 +25,7 @@ void CCArmatureDisplay::dbInit(Armature* armature) void CCArmatureDisplay::dbClear() { - setEventDispatcher(cocos2d::Director::getInstance()->getEventDispatcher()); + setEventDispatcher(axis::Director::getInstance()->getEventDispatcher()); _armature = nullptr; CC_SAFE_RELEASE(_dispatcher); @@ -58,7 +58,7 @@ void CCArmatureDisplay::dbUpdate() void CCArmatureDisplay::addDBEventListener(std::string_view type, const std::function& callback) { - auto lambda = [callback](cocos2d::EventCustom* event) -> void { + auto lambda = [callback](axis::EventCustom* event) -> void { callback(static_cast(event->getUserData())); }; _dispatcher->addCustomEventListener(type, lambda); @@ -75,7 +75,7 @@ void CCArmatureDisplay::removeDBEventListener(std::string_view type, const std:: _dispatcher->removeCustomEventListeners(type); } -cocos2d::Rect CCArmatureDisplay::getBoundingBox() const +axis::Rect CCArmatureDisplay::getBoundingBox() const { auto isFirst = true; float minX = 0.0f; @@ -109,9 +109,9 @@ cocos2d::Rect CCArmatureDisplay::getBoundingBox() const } } - cocos2d::Rect rect(minX, minY, maxX - minX, maxY - minY); + axis::Rect rect(minX, minY, maxX - minX, maxY - minY); - return cocos2d::RectApplyTransform(rect, getNodeToParentTransform()); + return axis::RectApplyTransform(rect, getNodeToParentTransform()); } DBCCSprite* DBCCSprite::create() @@ -130,26 +130,26 @@ DBCCSprite* DBCCSprite::create() return sprite; } -bool DBCCSprite::_checkVisibility(const cocos2d::Mat4& transform, const cocos2d::Size& size, const cocos2d::Rect& rect) +bool DBCCSprite::_checkVisibility(const axis::Mat4& transform, const axis::Size& size, const axis::Rect& rect) { - auto scene = cocos2d::Director::getInstance()->getRunningScene(); + auto scene = axis::Director::getInstance()->getRunningScene(); // If draw to Rendertexture, return true directly. // only cull the default camera. The culling algorithm is valid for default camera. - if (!scene || (scene && scene->getDefaultCamera() != cocos2d::Camera::getVisitingCamera())) + if (!scene || (scene && scene->getDefaultCamera() != axis::Camera::getVisitingCamera())) return true; - auto director = cocos2d::Director::getInstance(); - cocos2d::Rect visiableRect(director->getVisibleOrigin(), director->getVisibleSize()); + auto director = axis::Director::getInstance(); + axis::Rect visiableRect(director->getVisibleOrigin(), director->getVisibleSize()); // transform center point to screen space float hSizeX = size.width / 2; float hSizeY = size.height / 2; - cocos2d::Vec3 v3p(hSizeX, hSizeY, 0); + axis::Vec3 v3p(hSizeX, hSizeY, 0); transform.transformPoint(&v3p); - cocos2d::Vec2 v2p = cocos2d::Camera::getVisitingCamera()->projectGL(v3p); + axis::Vec2 v2p = axis::Camera::getVisitingCamera()->projectGL(v3p); // convert content size to world coordinates float wshw = std::max(fabsf(hSizeX * transform.m[0] + hSizeY * transform.m[4]), @@ -166,7 +166,7 @@ bool DBCCSprite::_checkVisibility(const cocos2d::Mat4& transform, const cocos2d: return ret; } -void DBCCSprite::draw(cocos2d::Renderer* renderer, const cocos2d::Mat4& transform, uint32_t flags) +void DBCCSprite::draw(axis::Renderer* renderer, const axis::Mat4& transform, uint32_t flags) { #if CC_USE_CULLING # if COCOS2D_VERSION >= 0x00031400 @@ -176,8 +176,8 @@ void DBCCSprite::draw(cocos2d::Renderer* renderer, const cocos2d::Mat4& transfor # endif // Don't do calculate the culling if the transform was not updated - auto visitingCamera = cocos2d::Camera::getVisitingCamera(); - auto defaultCamera = cocos2d::Camera::getDefaultCamera(); + auto visitingCamera = axis::Camera::getVisitingCamera(); + auto defaultCamera = axis::Camera::getDefaultCamera(); if (visitingCamera == defaultCamera) { _insideBounds = ((flags & FLAGS_TRANSFORM_DIRTY) || visitingCamera->isViewProjectionUpdated()) @@ -210,21 +210,21 @@ void DBCCSprite::draw(cocos2d::Renderer* renderer, const cocos2d::Mat4& transfor // draw 3 lines auto from = verts[indices[i * 3]].vertices; auto to = verts[indices[i * 3 + 1]].vertices; - _debugDrawNode->drawLine(cocos2d::Vec2(from.x, from.y), cocos2d::Vec2(to.x, to.y), cocos2d::Color4F::WHITE); + _debugDrawNode->drawLine(axis::Vec2(from.x, from.y), axis::Vec2(to.x, to.y), axis::Color4F::WHITE); from = verts[indices[i * 3 + 1]].vertices; to = verts[indices[i * 3 + 2]].vertices; - _debugDrawNode->drawLine(cocos2d::Vec2(from.x, from.y), cocos2d::Vec2(to.x, to.y), cocos2d::Color4F::WHITE); + _debugDrawNode->drawLine(axis::Vec2(from.x, from.y), axis::Vec2(to.x, to.y), axis::Color4F::WHITE); from = verts[indices[i * 3 + 2]].vertices; to = verts[indices[i * 3]].vertices; - _debugDrawNode->drawLine(cocos2d::Vec2(from.x, from.y), cocos2d::Vec2(to.x, to.y), cocos2d::Color4F::WHITE); + _debugDrawNode->drawLine(axis::Vec2(from.x, from.y), axis::Vec2(to.x, to.y), axis::Color4F::WHITE); } #endif // CC_SPRITE_DEBUG_DRAW } } -cocos2d::PolygonInfo& DBCCSprite::getPolygonInfoModify() +axis::PolygonInfo& DBCCSprite::getPolygonInfoModify() { return _polyInfo; } diff --git a/extensions/DragonBones/CCArmatureDisplay.h b/extensions/DragonBones/CCArmatureDisplay.h index a055e6add0..a06db8dd18 100644 --- a/extensions/DragonBones/CCArmatureDisplay.h +++ b/extensions/DragonBones/CCArmatureDisplay.h @@ -30,7 +30,7 @@ DRAGONBONES_NAMESPACE_BEGIN /** * @inheritDoc */ -class CCArmatureDisplay : public cocos2d::Node, public virtual IArmatureProxy +class CCArmatureDisplay : public axis::Node, public virtual IArmatureProxy { DRAGONBONES_DISALLOW_COPY_AND_ASSIGN(CCArmatureDisplay) @@ -46,7 +46,7 @@ public: protected: bool _debugDraw; Armature* _armature; - cocos2d::EventDispatcher* _dispatcher; + axis::EventDispatcher* _dispatcher; public: CCArmatureDisplay() @@ -57,7 +57,7 @@ public: , _armature(nullptr) , _dispatcher(nullptr) { - _dispatcher = new cocos2d::EventDispatcher(); + _dispatcher = new axis::EventDispatcher(); setEventDispatcher(_dispatcher); // _dispatcher->setEnabled(true); } @@ -108,12 +108,12 @@ public: /** * @inheritDoc */ - virtual cocos2d::Rect getBoundingBox() const override; + virtual axis::Rect getBoundingBox() const override; }; /** * @internal */ -class DBCCSprite : public cocos2d::Sprite +class DBCCSprite : public axis::Sprite { DRAGONBONES_DISALLOW_COPY_AND_ASSIGN(DBCCSprite) @@ -126,17 +126,17 @@ protected: /** * Modify for polyInfo rect */ - bool _checkVisibility(const cocos2d::Mat4& transform, const cocos2d::Size& size, const cocos2d::Rect& rect); + bool _checkVisibility(const axis::Mat4& transform, const axis::Size& size, const axis::Rect& rect); public: /** * Modify for polyInfo rect */ - virtual void draw(cocos2d::Renderer* renderer, const cocos2d::Mat4& transform, uint32_t flags) override; + virtual void draw(axis::Renderer* renderer, const axis::Mat4& transform, uint32_t flags) override; /** * Modify for cocos2dx 3.7, 3.8, 3.9 */ - cocos2d::PolygonInfo& getPolygonInfoModify(); + axis::PolygonInfo& getPolygonInfoModify(); }; DRAGONBONES_NAMESPACE_END diff --git a/extensions/DragonBones/CCFactory.cpp b/extensions/DragonBones/CCFactory.cpp index 5bd44b844f..055dc9a2ea 100644 --- a/extensions/DragonBones/CCFactory.cpp +++ b/extensions/DragonBones/CCFactory.cpp @@ -22,41 +22,41 @@ TextureAtlasData* CCFactory::_buildTextureAtlasData(TextureAtlasData* textureAtl if (textureAtlas != nullptr) { static_cast(textureAtlasData) - ->setRenderTexture(static_cast(textureAtlas)); + ->setRenderTexture(static_cast(textureAtlas)); } else { - const auto textureCache = cocos2d::Director::getInstance()->getTextureCache(); + const auto textureCache = axis::Director::getInstance()->getTextureCache(); auto texture = textureCache->getTextureForKey(textureAtlasData->imagePath); if (texture == nullptr) { - const auto defaultPixelFormat = cocos2d::Texture2D::getDefaultAlphaPixelFormat(); + const auto defaultPixelFormat = axis::Texture2D::getDefaultAlphaPixelFormat(); auto pixelFormat = defaultPixelFormat; #if COCOS2D_VERSION >= 0x00040000 switch (textureAtlasData->format) { case TextureFormat::RGBA8888: - pixelFormat = cocos2d::backend::PixelFormat::RGBA8; + pixelFormat = axis::backend::PixelFormat::RGBA8; break; case TextureFormat::BGRA8888: - pixelFormat = cocos2d::backend::PixelFormat::BGRA8; + pixelFormat = axis::backend::PixelFormat::BGRA8; break; case TextureFormat::RGBA4444: - pixelFormat = cocos2d::backend::PixelFormat::RGBA4; + pixelFormat = axis::backend::PixelFormat::RGBA4; break; case TextureFormat::RGB888: - pixelFormat = cocos2d::backend::PixelFormat::RGB8; + pixelFormat = axis::backend::PixelFormat::RGB8; break; case TextureFormat::RGB565: - pixelFormat = cocos2d::backend::PixelFormat::RGB565; + pixelFormat = axis::backend::PixelFormat::RGB565; break; case TextureFormat::RGBA5551: - pixelFormat = cocos2d::backend::PixelFormat::RGB5A1; + pixelFormat = axis::backend::PixelFormat::RGB5A1; break; case TextureFormat::DEFAULT: @@ -67,27 +67,27 @@ TextureAtlasData* CCFactory::_buildTextureAtlasData(TextureAtlasData* textureAtl switch (textureAtlasData->format) { case TextureFormat::RGBA8888: - pixelFormat = cocos2d::Texture2D::PixelFormat::RGBA8; + pixelFormat = axis::Texture2D::PixelFormat::RGBA8; break; case TextureFormat::BGRA8888: - pixelFormat = cocos2d::Texture2D::PixelFormat::BGRA8; + pixelFormat = axis::Texture2D::PixelFormat::BGRA8; break; case TextureFormat::RGBA4444: - pixelFormat = cocos2d::Texture2D::PixelFormat::RGBA4; + pixelFormat = axis::Texture2D::PixelFormat::RGBA4; break; case TextureFormat::RGB888: - pixelFormat = cocos2d::Texture2D::PixelFormat::RGB8; + pixelFormat = axis::Texture2D::PixelFormat::RGB8; break; case TextureFormat::RGB565: - pixelFormat = cocos2d::Texture2D::PixelFormat::RGB565; + pixelFormat = axis::Texture2D::PixelFormat::RGB565; break; case TextureFormat::RGBA5551: - pixelFormat = cocos2d::Texture2D::PixelFormat::RGB5A1; + pixelFormat = axis::Texture2D::PixelFormat::RGB5A1; break; case TextureFormat::DEFAULT: @@ -131,7 +131,7 @@ Slot* CCFactory::_buildSlot(const BuildArmaturePackage& dataPackage, const SlotD rawDisplay->setCascadeOpacityEnabled(true); rawDisplay->setCascadeColorEnabled(true); - rawDisplay->setAnchorPoint(cocos2d::Vec2::ZERO); + rawDisplay->setAnchorPoint(axis::Vec2::ZERO); rawDisplay->setLocalZOrder(slotData->zOrder); slot->init(slotData, armature, rawDisplay, rawDisplay); @@ -150,24 +150,24 @@ DragonBonesData* CCFactory::loadDragonBonesData(std::string_view filePath, std:: } } - const auto fullpath = cocos2d::FileUtils::getInstance()->fullPathForFilename(filePath); - if (cocos2d::FileUtils::getInstance()->isFileExist(filePath)) + const auto fullpath = axis::FileUtils::getInstance()->fullPathForFilename(filePath); + if (axis::FileUtils::getInstance()->isFileExist(filePath)) { const auto pos = fullpath.find(".json"); if (pos != std::string::npos) { - const auto data = cocos2d::FileUtils::getInstance()->getStringFromFile(filePath); + const auto data = axis::FileUtils::getInstance()->getStringFromFile(filePath); return parseDragonBonesData(data.c_str(), name, scale); } else { #if COCOS2D_VERSION >= 0x00031200 - cocos2d::Data cocos2dData; - cocos2d::FileUtils::getInstance()->getContents(fullpath, &cocos2dData); + axis::Data cocos2dData; + axis::FileUtils::getInstance()->getContents(fullpath, &cocos2dData); #else - const auto cocos2dData = cocos2d::FileUtils::getInstance()->getDataFromFile(fullpath); + const auto cocos2dData = axis::FileUtils::getInstance()->getDataFromFile(fullpath); #endif const auto binary = (unsigned char*)malloc(sizeof(unsigned char) * cocos2dData.getSize()); memcpy(binary, cocos2dData.getBytes(), cocos2dData.getSize()); @@ -182,8 +182,8 @@ DragonBonesData* CCFactory::loadDragonBonesData(std::string_view filePath, std:: TextureAtlasData* CCFactory::loadTextureAtlasData(std::string_view filePath, std::string_view name, float scale) { - _prevPath = cocos2d::FileUtils::getInstance()->fullPathForFilename(filePath); - const auto data = cocos2d::FileUtils::getInstance()->getStringFromFile(_prevPath); + _prevPath = axis::FileUtils::getInstance()->fullPathForFilename(filePath); + const auto data = axis::FileUtils::getInstance()->getStringFromFile(_prevPath); if (data.empty()) { return nullptr; @@ -208,12 +208,12 @@ CCArmatureDisplay* CCFactory::buildArmatureDisplay(std::string_view armatureName return nullptr; } -cocos2d::Sprite* CCFactory::getTextureDisplay(std::string_view textureName, std::string_view dragonBonesName) const +axis::Sprite* CCFactory::getTextureDisplay(std::string_view textureName, std::string_view dragonBonesName) const { const auto textureData = static_cast(_getTextureData(dragonBonesName, textureName)); if (textureData != nullptr && textureData->spriteFrame != nullptr) { - const auto display = cocos2d::Sprite::createWithSpriteFrame(textureData->spriteFrame); + const auto display = axis::Sprite::createWithSpriteFrame(textureData->spriteFrame); return display; } diff --git a/extensions/DragonBones/CCFactory.h b/extensions/DragonBones/CCFactory.h index d4fbfdc4eb..29dc2f462e 100644 --- a/extensions/DragonBones/CCFactory.h +++ b/extensions/DragonBones/CCFactory.h @@ -84,7 +84,7 @@ public: _dragonBonesInstance = new DragonBones(eventManager); _dragonBonesInstance->yDown = false; - cocos2d::Director::getInstance()->getScheduler()->schedule( + axis::Director::getInstance()->getScheduler()->schedule( [&](float passedTime) { _dragonBonesInstance->advanceTime(passedTime); }, this, 0.0f, false, "dragonBonesClock"); } @@ -186,7 +186,7 @@ public: * @version DragonBones 3.0 * @language zh_CN */ - virtual cocos2d::Sprite* getTextureDisplay(std::string_view textureName, + virtual axis::Sprite* getTextureDisplay(std::string_view textureName, std::string_view dragonBonesName = "") const; /** * - A global sound event manager. diff --git a/extensions/DragonBones/CCSlot.cpp b/extensions/DragonBones/CCSlot.cpp index 8b2af0947c..8c1aa29c39 100644 --- a/extensions/DragonBones/CCSlot.cpp +++ b/extensions/DragonBones/CCSlot.cpp @@ -14,19 +14,19 @@ void CCSlot::_onClear() void CCSlot::_initDisplay(void* value, bool isRetain) { - const auto renderDisplay = static_cast(value); + const auto renderDisplay = static_cast(value); renderDisplay->retain(); } void CCSlot::_disposeDisplay(void* value, bool isRelease) { - const auto renderDisplay = static_cast(value); + const auto renderDisplay = static_cast(value); renderDisplay->release(); } void CCSlot::_onUpdateDisplay() { - _renderDisplay = static_cast(_display != nullptr ? _display : _rawDisplay); + _renderDisplay = static_cast(_display != nullptr ? _display : _rawDisplay); } void CCSlot::_addDisplay() @@ -39,7 +39,7 @@ void CCSlot::_replaceDisplay(void* value, bool isArmatureDisplay) { const auto container = static_cast(_armature->getDisplay()); const auto prevDisplay = - isArmatureDisplay ? static_cast(value) : static_cast(value); + isArmatureDisplay ? static_cast(value) : static_cast(value); container->addChild(_renderDisplay, prevDisplay->getLocalZOrder()); container->removeChild(prevDisplay); _textureScale = 1.0f; @@ -92,9 +92,9 @@ void CCSlot::_updateFrame() const auto& region = currentTextureData->region; const auto& textureAtlasSize = currentTextureData->spriteFrame->getTexture()->getContentSizeInPixels(); - auto vertices = new cocos2d::V3F_C4B_T2F[vertexCount]; // does cocos2dx release it? + auto vertices = new axis::V3F_C4B_T2F[vertexCount]; // does cocos2dx release it? auto vertexIndices = new unsigned short[triangleCount * 3]; // does cocos2dx release it? - cocos2d::Rect boundsRect(999999.0f, 999999.0f, -999999.0f, -999999.0f); + axis::Rect boundsRect(999999.0f, 999999.0f, -999999.0f, -999999.0f); for (std::size_t i = 0, l = vertexCount * 2; i < l; i += 2) { @@ -103,7 +103,7 @@ void CCSlot::_updateFrame() const auto y = floatArray[vertexOffset + i + 1]; auto u = floatArray[uvOffset + i]; auto v = floatArray[uvOffset + i + 1]; - cocos2d::V3F_C4B_T2F vertexData; + axis::V3F_C4B_T2F vertexData; vertexData.vertices.set(x, -y, 0.0f); if (currentTextureData->rotated) @@ -117,7 +117,7 @@ void CCSlot::_updateFrame() vertexData.texCoords.v = (region.y + v * region.height) / textureAtlasSize.height; } - vertexData.colors = cocos2d::Color4B::WHITE; + vertexData.colors = axis::Color4B::WHITE; vertices[iH] = vertexData; if (boundsRect.origin.x > x) @@ -153,7 +153,7 @@ void CCSlot::_updateFrame() _textureScale = 1.0f; frameDisplay->setSpriteFrame(currentTextureData->spriteFrame); // polygonInfo will be override - cocos2d::PolygonInfo polygonInfo; + axis::PolygonInfo polygonInfo; auto& triangles = polygonInfo.triangles; triangles.verts = vertices; triangles.indices = vertexIndices; @@ -183,7 +183,7 @@ void CCSlot::_updateFrame() else // Normal texture. { const auto scale = currentTextureData->parent->scale * _armature->_armatureData->scale; - _textureScale = scale * cocos2d::Director::getInstance()->getContentScaleFactor(); + _textureScale = scale * axis::Director::getInstance()->getContentScaleFactor(); frameDisplay->setSpriteFrame(currentTextureData->spriteFrame); // polygonInfo will be override } @@ -196,7 +196,7 @@ void CCSlot::_updateFrame() } frameDisplay->setTexture(nullptr); - frameDisplay->setTextureRect(cocos2d::Rect::ZERO); + frameDisplay->setTextureRect(axis::Rect::ZERO); frameDisplay->setPosition(0.0f, 0.0f); frameDisplay->setVisible(false); } @@ -213,7 +213,7 @@ void CCSlot::_updateMesh() const auto textureData = static_cast(_textureData); const auto meshDisplay = static_cast(_renderDisplay); const auto vertices = meshDisplay->getPolygonInfoModify().triangles.verts; - cocos2d::Rect boundsRect(999999.0f, 999999.0f, -999999.0f, -999999.0f); + axis::Rect boundsRect(999999.0f, 999999.0f, -999999.0f, -999999.0f); if (!textureData || meshDisplay->getSpriteFrame() != textureData->spriteFrame) { @@ -361,7 +361,7 @@ void CCSlot::_updateMesh() void CCSlot::_updateTransform() { - static cocos2d::Mat4 transform; + static axis::Mat4 transform; transform.m[0] = globalTransformMatrix.a; transform.m[1] = globalTransformMatrix.b; transform.m[4] = -globalTransformMatrix.c; @@ -401,7 +401,7 @@ void CCSlot::_updateTransform() void CCSlot::_identityTransform() { - static cocos2d::Mat4 transform; + static axis::Mat4 transform; transform.m[0] = 1.0f; transform.m[1] = 0.0f; transform.m[4] = -0.0f; @@ -419,13 +419,13 @@ void CCSlot::_updateVisible() void CCSlot::_updateBlendMode() { - cocos2d::Sprite* spriteDisplay = dynamic_cast(_renderDisplay); + axis::Sprite* spriteDisplay = dynamic_cast(_renderDisplay); if (spriteDisplay) { switch (_blendMode) { case BlendMode::Normal: - // spriteDisplay->setBlendFunc(cocos2d::BlendFunc::DISABLE); + // spriteDisplay->setBlendFunc(axis::BlendFunc::DISABLE); break; case BlendMode::Add: @@ -434,15 +434,15 @@ void CCSlot::_updateBlendMode() if (texture && texture->hasPremultipliedAlpha()) { #if COCOS2D_VERSION >= 0x00040000 - cocos2d::BlendFunc blendFunc = {cocos2d::backend::BlendFactor::ONE, cocos2d::backend::BlendFactor::ONE}; + axis::BlendFunc blendFunc = {axis::backend::BlendFactor::ONE, axis::backend::BlendFactor::ONE}; #else - cocos2d::BlendFunc blendFunc = {GL_ONE, GL_ONE}; + axis::BlendFunc blendFunc = {GL_ONE, GL_ONE}; #endif spriteDisplay->setBlendFunc(blendFunc); } else { - spriteDisplay->setBlendFunc(cocos2d::BlendFunc::ADDITIVE); + spriteDisplay->setBlendFunc(axis::BlendFunc::ADDITIVE); } break; } @@ -465,7 +465,7 @@ void CCSlot::_updateColor() { _renderDisplay->setOpacity(_colorTransform.alphaMultiplier * 255.0f); - static cocos2d::Color3B helpColor; + static axis::Color3B helpColor; helpColor.r = _colorTransform.redMultiplier * 255.0f; helpColor.g = _colorTransform.greenMultiplier * 255.0f; helpColor.b = _colorTransform.blueMultiplier * 255.0f; diff --git a/extensions/DragonBones/CCSlot.h b/extensions/DragonBones/CCSlot.h index 966018affb..1ece5d8a01 100644 --- a/extensions/DragonBones/CCSlot.h +++ b/extensions/DragonBones/CCSlot.h @@ -38,7 +38,7 @@ class CCSlot : public Slot private: float _textureScale; - cocos2d::Node* _renderDisplay; + axis::Node* _renderDisplay; protected: virtual void _onClear() override; @@ -68,8 +68,8 @@ public: * @version DragonBones 3.0 * @language en_US */ - inline cocos2d::Node* getCCDisplay() const { return static_cast(_display); } - inline void setCCDisplay(cocos2d::Node* value) { setDisplay(value, DisplayType::Image); } + inline axis::Node* getCCDisplay() const { return static_cast(_display); } + inline void setCCDisplay(axis::Node* value) { setDisplay(value, DisplayType::Image); } }; DRAGONBONES_NAMESPACE_END diff --git a/extensions/DragonBones/CCTextureAtlasData.cpp b/extensions/DragonBones/CCTextureAtlasData.cpp index f31f0f8672..e0ecd8f280 100644 --- a/extensions/DragonBones/CCTextureAtlasData.cpp +++ b/extensions/DragonBones/CCTextureAtlasData.cpp @@ -17,7 +17,7 @@ TextureData* CCTextureAtlasData::createTexture() const return BaseObject::borrowObject(); } -void CCTextureAtlasData::setRenderTexture(cocos2d::Texture2D* value) +void CCTextureAtlasData::setRenderTexture(axis::Texture2D* value) { if (_renderTexture == value) { @@ -36,12 +36,12 @@ void CCTextureAtlasData::setRenderTexture(cocos2d::Texture2D* value) if (textureData->spriteFrame == nullptr) { - cocos2d::Rect rect(textureData->region.x, textureData->region.y, + axis::Rect rect(textureData->region.x, textureData->region.y, textureData->rotated ? textureData->region.height : textureData->region.width, textureData->rotated ? textureData->region.width : textureData->region.height); - cocos2d::Vec2 offset(0.0f, 0.0f); - cocos2d::Size originSize(rect.size.width, rect.size.height); - textureData->spriteFrame = cocos2d::SpriteFrame::createWithTexture( + axis::Vec2 offset(0.0f, 0.0f); + axis::Size originSize(rect.size.width, rect.size.height); + textureData->spriteFrame = axis::SpriteFrame::createWithTexture( _renderTexture, rect, textureData->rotated, offset, originSize); // TODO multiply textureAtlas textureData->spriteFrame->retain(); } diff --git a/extensions/DragonBones/CCTextureAtlasData.h b/extensions/DragonBones/CCTextureAtlasData.h index 8ffdd190d7..7cd0bfe3d3 100644 --- a/extensions/DragonBones/CCTextureAtlasData.h +++ b/extensions/DragonBones/CCTextureAtlasData.h @@ -37,7 +37,7 @@ class CCTextureAtlasData : public TextureAtlasData BIND_CLASS_TYPE_B(CCTextureAtlasData); private: - cocos2d::Texture2D* _renderTexture; + axis::Texture2D* _renderTexture; public: CCTextureAtlasData() : _renderTexture(nullptr) { _onClear(); } @@ -56,8 +56,8 @@ public: * @version DragonBones 3.0 * @language en_US */ - inline cocos2d::Texture2D* getRenderTexture() const { return _renderTexture; } - void setRenderTexture(cocos2d::Texture2D* value); + inline axis::Texture2D* getRenderTexture() const { return _renderTexture; } + void setRenderTexture(axis::Texture2D* value); }; /** * @internal @@ -67,7 +67,7 @@ class CCTextureData : public TextureData BIND_CLASS_TYPE_B(CCTextureData); public: - cocos2d::SpriteFrame* spriteFrame; + axis::SpriteFrame* spriteFrame; CCTextureData() : spriteFrame(nullptr) { _onClear(); } virtual ~CCTextureData() { _onClear(); } diff --git a/extensions/ExtensionMacros.h b/extensions/ExtensionMacros.h index f41d60d7fe..5eb34c6405 100644 --- a/extensions/ExtensionMacros.h +++ b/extensions/ExtensionMacros.h @@ -26,14 +26,14 @@ #ifndef __EXTENSIONMARCROS_H__ #define __EXTENSIONMARCROS_H__ -#define NS_CC_EXT_BEGIN \ - namespace cocos2d \ +#define NS_AX_EXT_BEGIN \ + namespace axis \ { \ namespace extension \ { -#define NS_CC_EXT_END \ +#define NS_AX_EXT_END \ } \ } -#define USING_NS_CC_EXT using namespace cocos2d::extension +#define USING_NS_AX_EXT using namespace axis::extension #endif /* __EXTENSIONMARCROS_H__ */ diff --git a/extensions/GUI/CCControlExtension/CCControl.cpp b/extensions/GUI/CCControlExtension/CCControl.cpp index 9a01148939..848a2f82bd 100644 --- a/extensions/GUI/CCControlExtension/CCControl.cpp +++ b/extensions/GUI/CCControlExtension/CCControl.cpp @@ -37,7 +37,7 @@ #include "base/CCEventDispatcher.h" #include "base/CCEventListenerTouch.h" -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN Control::Control() : _enabled(false) @@ -118,9 +118,9 @@ void Control::sendActionsForControlEvents(EventType controlEvents) invocation->invoke(this); } #if CC_ENABLE_SCRIPT_BINDING - cocos2d::BasicScriptData data(this, (void*)&controlEvents); - cocos2d::ScriptEvent event(cocos2d::kControlEvent, (void*)&data); - auto scriptEngine = cocos2d::ScriptEngineManager::getInstance()->getScriptEngine(); + axis::BasicScriptData data(this, (void*)&controlEvents); + axis::ScriptEvent event(axis::kControlEvent, (void*)&data); + auto scriptEngine = axis::ScriptEngineManager::getInstance()->getScriptEngine(); if (scriptEngine) scriptEngine->sendEvent(event); #endif @@ -344,4 +344,4 @@ Control::EventType operator|(Control::EventType a, Control::EventType b) return static_cast(static_cast(a) | static_cast(b)); } -NS_CC_EXT_END +NS_AX_EXT_END diff --git a/extensions/GUI/CCControlExtension/CCControl.h b/extensions/GUI/CCControlExtension/CCControl.h index e63478df28..0af905388f 100644 --- a/extensions/GUI/CCControlExtension/CCControl.h +++ b/extensions/GUI/CCControlExtension/CCControl.h @@ -35,7 +35,7 @@ #include "2d/CCLayer.h" #include "extensions/ExtensionExport.h" -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN class Invocation; @@ -279,6 +279,6 @@ CC_EX_DLL Control::EventType operator|(Control::EventType a, Control::EventType /// @} /// @} -NS_CC_EXT_END +NS_AX_EXT_END #endif diff --git a/extensions/GUI/CCControlExtension/CCControlButton.cpp b/extensions/GUI/CCControlExtension/CCControlButton.cpp index ae4ace8d2a..334a60428f 100644 --- a/extensions/GUI/CCControlExtension/CCControlButton.cpp +++ b/extensions/GUI/CCControlExtension/CCControlButton.cpp @@ -34,7 +34,7 @@ using namespace std; -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN enum { @@ -64,7 +64,7 @@ ControlButton::~ControlButton() bool ControlButton::init() { return this->initWithLabelAndBackgroundSprite(Label::createWithSystemFont("", "Helvetica", 12), - cocos2d::ui::Scale9Sprite::create(), true); + axis::ui::Scale9Sprite::create(), true); } bool ControlButton::initWithLabelAndBackgroundSprite(Node* node, @@ -123,7 +123,7 @@ bool ControlButton::initWithLabelAndBackgroundSprite(Node* node, } } -ControlButton* ControlButton::create(Node* label, cocos2d::ui::Scale9Sprite* backgroundSprite) +ControlButton* ControlButton::create(Node* label, axis::ui::Scale9Sprite* backgroundSprite) { ControlButton* pRet = new ControlButton(); pRet->initWithLabelAndBackgroundSprite(label, backgroundSprite, true); @@ -132,7 +132,7 @@ ControlButton* ControlButton::create(Node* label, cocos2d::ui::Scale9Sprite* bac } ControlButton* ControlButton::create(Node* label, - cocos2d::ui::Scale9Sprite* backgroundSprite, + axis::ui::Scale9Sprite* backgroundSprite, bool adjustBackGroundSize) { ControlButton* pRet = new ControlButton(); @@ -146,7 +146,7 @@ bool ControlButton::initWithTitleAndFontNameAndFontSize(std::string_view title, float fontSize) { return initWithLabelAndBackgroundSprite(Label::createWithSystemFont(title, fontName, fontSize), - cocos2d::ui::Scale9Sprite::create(), true); + axis::ui::Scale9Sprite::create(), true); } ControlButton* ControlButton::create(std::string_view title, std::string_view fontName, float fontSize) @@ -157,13 +157,13 @@ ControlButton* ControlButton::create(std::string_view title, std::string_view fo return pRet; } -bool ControlButton::initWithBackgroundSprite(cocos2d::ui::Scale9Sprite* sprite) +bool ControlButton::initWithBackgroundSprite(axis::ui::Scale9Sprite* sprite) { Label* label = Label::createWithSystemFont("", "Arial", 30); // return initWithLabelAndBackgroundSprite(label, sprite, false); } -ControlButton* ControlButton::create(cocos2d::ui::Scale9Sprite* sprite) +ControlButton* ControlButton::create(axis::ui::Scale9Sprite* sprite) { ControlButton* pRet = new ControlButton(); pRet->initWithBackgroundSprite(sprite); @@ -744,4 +744,4 @@ ControlButton* ControlButton::create() return nullptr; } -NS_CC_EXT_END +NS_AX_EXT_END diff --git a/extensions/GUI/CCControlExtension/CCControlButton.h b/extensions/GUI/CCControlExtension/CCControlButton.h index 7f3f6b8bf1..7eb5b97df7 100644 --- a/extensions/GUI/CCControlExtension/CCControlButton.h +++ b/extensions/GUI/CCControlExtension/CCControlButton.h @@ -36,7 +36,7 @@ #include "base/CCMap.h" #include "ui/UIScale9Sprite.h" -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN /* Define the button margin for Left/Right edge */ #define ControlButtonMarginLR 8 // px @@ -55,10 +55,10 @@ class CC_EX_DLL ControlButton : public Control { public: static ControlButton* create(); - static ControlButton* create(cocos2d::ui::Scale9Sprite* sprite); - static ControlButton* create(Node* label, cocos2d::ui::Scale9Sprite* backgroundSprite); + static ControlButton* create(axis::ui::Scale9Sprite* sprite); + static ControlButton* create(Node* label, axis::ui::Scale9Sprite* backgroundSprite); static ControlButton* create(std::string_view title, std::string_view fontName, float fontSize); - static ControlButton* create(Node* label, cocos2d::ui::Scale9Sprite* backgroundSprite, bool adjustBackGroundSize); + static ControlButton* create(Node* label, axis::ui::Scale9Sprite* backgroundSprite, bool adjustBackGroundSize); virtual void needsLayout() override; @@ -149,7 +149,7 @@ public: * @param state The state that uses the background sprite. Possible values are * described in "CCControlState". */ - virtual cocos2d::ui::Scale9Sprite* getBackgroundSpriteForState(State state); + virtual axis::ui::Scale9Sprite* getBackgroundSpriteForState(State state); /** * Sets the background sprite to use for the specified button state. @@ -158,7 +158,7 @@ public: * @param state The state that uses the specified image. The values are described * in "CCControlState". */ - virtual void setBackgroundSpriteForState(cocos2d::ui::Scale9Sprite* sprite, State state); + virtual void setBackgroundSpriteForState(axis::ui::Scale9Sprite* sprite, State state); /** * Sets the background spriteFrame to use for the specified button state. @@ -203,9 +203,9 @@ public: virtual bool init() override; virtual bool initWithLabelAndBackgroundSprite(Node* label, - cocos2d::ui::Scale9Sprite* backgroundSprite, + axis::ui::Scale9Sprite* backgroundSprite, bool adjustBackGroundSize); - virtual bool initWithBackgroundSprite(cocos2d::ui::Scale9Sprite* sprite); + virtual bool initWithBackgroundSprite(axis::ui::Scale9Sprite* sprite); virtual bool initWithTitleAndFontNameAndFontSize(std::string_view title, std::string_view fontName, float fontSize); protected: @@ -223,7 +223,7 @@ protected: CC_SYNTHESIZE_RETAIN(Node*, _titleLabel, TitleLabel); /** The current background sprite. */ - CC_SYNTHESIZE_RETAIN(cocos2d::ui::Scale9Sprite*, _backgroundSprite, BackgroundSprite); + CC_SYNTHESIZE_RETAIN(axis::ui::Scale9Sprite*, _backgroundSprite, BackgroundSprite); /** The preferred size of the button, if label is larger it will be expanded. */ CC_PROPERTY_PASS_BY_REF(Size, _preferredSize, PreferredSize); @@ -239,7 +239,7 @@ protected: std::unordered_map _titleColorDispatchTable; Map _titleLabelDispatchTable; - Map _backgroundSpriteDispatchTable; + Map _backgroundSpriteDispatchTable; /* Define the button margin for Top/Bottom edge */ CC_SYNTHESIZE_READONLY(int, _marginV, VerticalMargin); @@ -254,6 +254,6 @@ private: /// @} /// @} -NS_CC_EXT_END +NS_AX_EXT_END #endif diff --git a/extensions/GUI/CCControlExtension/CCControlColourPicker.cpp b/extensions/GUI/CCControlExtension/CCControlColourPicker.cpp index 774eb88b84..21fd888482 100644 --- a/extensions/GUI/CCControlExtension/CCControlColourPicker.cpp +++ b/extensions/GUI/CCControlExtension/CCControlColourPicker.cpp @@ -35,7 +35,7 @@ #include "2d/CCSpriteFrameCache.h" #include "2d/CCSpriteBatchNode.h" -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN ControlColourPicker::ControlColourPicker() : _colourPicker(nullptr), _huePicker(nullptr), _background(nullptr) {} @@ -197,4 +197,4 @@ bool ControlColourPicker::onTouchBegan(Touch* /*touch*/, Event* /*pEvent*/) return false; } -NS_CC_EXT_END +NS_AX_EXT_END diff --git a/extensions/GUI/CCControlExtension/CCControlColourPicker.h b/extensions/GUI/CCControlExtension/CCControlColourPicker.h index 17d44403cf..e93def4280 100644 --- a/extensions/GUI/CCControlExtension/CCControlColourPicker.h +++ b/extensions/GUI/CCControlExtension/CCControlColourPicker.h @@ -40,7 +40,7 @@ #include "CCControlSaturationBrightnessPicker.h" #include "extensions/ExtensionExport.h" -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN /** * @addtogroup GUI @@ -88,6 +88,6 @@ protected: /// @} /// @} -NS_CC_EXT_END +NS_AX_EXT_END #endif diff --git a/extensions/GUI/CCControlExtension/CCControlHuePicker.cpp b/extensions/GUI/CCControlExtension/CCControlHuePicker.cpp index 90eafbd675..59f2cfcb56 100644 --- a/extensions/GUI/CCControlExtension/CCControlHuePicker.cpp +++ b/extensions/GUI/CCControlExtension/CCControlHuePicker.cpp @@ -33,7 +33,7 @@ #include "CCControlHuePicker.h" -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN ControlHuePicker::ControlHuePicker() : _hue(0.0f), _huePercentage(0.0f), _background(nullptr), _slider(nullptr) {} @@ -184,4 +184,4 @@ void ControlHuePicker::onTouchMoved(Touch* touch, Event* /*event*/) checkSliderPosition(touchLocation); } -NS_CC_EXT_END +NS_AX_EXT_END diff --git a/extensions/GUI/CCControlExtension/CCControlHuePicker.h b/extensions/GUI/CCControlExtension/CCControlHuePicker.h index 9a2a2dcad9..88f7bafad6 100644 --- a/extensions/GUI/CCControlExtension/CCControlHuePicker.h +++ b/extensions/GUI/CCControlExtension/CCControlHuePicker.h @@ -38,7 +38,7 @@ #include "CCInvocation.h" #include "extensions/ExtensionExport.h" -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN /** * @addtogroup GUI @@ -88,6 +88,6 @@ protected: /// @} /// @} -NS_CC_EXT_END +NS_AX_EXT_END #endif diff --git a/extensions/GUI/CCControlExtension/CCControlPotentiometer.cpp b/extensions/GUI/CCControlExtension/CCControlPotentiometer.cpp index a3c7dea75b..d74dc94af3 100644 --- a/extensions/GUI/CCControlExtension/CCControlPotentiometer.cpp +++ b/extensions/GUI/CCControlExtension/CCControlPotentiometer.cpp @@ -29,7 +29,7 @@ #include "CCControlPotentiometer.h" -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN ControlPotentiometer::ControlPotentiometer() : _value(0.0f), _minimumValue(0.0f), _maximumValue(0.0f), _thumbSprite(nullptr), _progressTimer(nullptr) @@ -253,4 +253,4 @@ void ControlPotentiometer::potentiometerEnded(Vec2 /*location*/) setSelected(false); } -NS_CC_EXT_END +NS_AX_EXT_END diff --git a/extensions/GUI/CCControlExtension/CCControlPotentiometer.h b/extensions/GUI/CCControlExtension/CCControlPotentiometer.h index edde05b809..8a6051821a 100644 --- a/extensions/GUI/CCControlExtension/CCControlPotentiometer.h +++ b/extensions/GUI/CCControlExtension/CCControlPotentiometer.h @@ -33,7 +33,7 @@ #include "2d/CCProgressTimer.h" #include "extensions/ExtensionExport.h" -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN /** * @addtogroup GUI @@ -119,6 +119,6 @@ protected: /// @} /// @} -NS_CC_EXT_END +NS_AX_EXT_END #endif /* __CCCONTROLPOTENTIOMETER_H__ */ diff --git a/extensions/GUI/CCControlExtension/CCControlSaturationBrightnessPicker.cpp b/extensions/GUI/CCControlExtension/CCControlSaturationBrightnessPicker.cpp index a94b333112..64b871924c 100644 --- a/extensions/GUI/CCControlExtension/CCControlSaturationBrightnessPicker.cpp +++ b/extensions/GUI/CCControlExtension/CCControlSaturationBrightnessPicker.cpp @@ -33,7 +33,7 @@ #include "CCControlSaturationBrightnessPicker.h" -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN ControlSaturationBrightnessPicker::ControlSaturationBrightnessPicker() : _saturation(0.0f) @@ -211,4 +211,4 @@ void ControlSaturationBrightnessPicker::onTouchMoved(Touch* touch, Event* /*even checkSliderPosition(touchLocation); } -NS_CC_EXT_END +NS_AX_EXT_END diff --git a/extensions/GUI/CCControlExtension/CCControlSaturationBrightnessPicker.h b/extensions/GUI/CCControlExtension/CCControlSaturationBrightnessPicker.h index bdf1e7b792..c2a7df3f8d 100644 --- a/extensions/GUI/CCControlExtension/CCControlSaturationBrightnessPicker.h +++ b/extensions/GUI/CCControlExtension/CCControlSaturationBrightnessPicker.h @@ -38,7 +38,7 @@ #include "CCInvocation.h" #include "extensions/ExtensionExport.h" -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN /** * @addtogroup GUI @@ -103,6 +103,6 @@ protected: /// @} /// @} -NS_CC_EXT_END +NS_AX_EXT_END #endif diff --git a/extensions/GUI/CCControlExtension/CCControlSlider.cpp b/extensions/GUI/CCControlExtension/CCControlSlider.cpp index d7ebaa9963..16dbd88431 100644 --- a/extensions/GUI/CCControlExtension/CCControlSlider.cpp +++ b/extensions/GUI/CCControlExtension/CCControlSlider.cpp @@ -33,7 +33,7 @@ #include "base/CCTouch.h" #include "base/CCDirector.h" -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN ControlSlider::ControlSlider() : _value(0.0f) @@ -325,4 +325,4 @@ float ControlSlider::valueForLocation(Vec2 location) _minimumAllowedValue); } -NS_CC_EXT_END +NS_AX_EXT_END diff --git a/extensions/GUI/CCControlExtension/CCControlSlider.h b/extensions/GUI/CCControlExtension/CCControlSlider.h index 2883fe922c..482632da66 100644 --- a/extensions/GUI/CCControlExtension/CCControlSlider.h +++ b/extensions/GUI/CCControlExtension/CCControlSlider.h @@ -35,7 +35,7 @@ #include "CCInvocation.h" #include "extensions/ExtensionExport.h" -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN /** * @addtogroup GUI @@ -162,6 +162,6 @@ protected: /// @} /// @} -NS_CC_EXT_END +NS_AX_EXT_END #endif diff --git a/extensions/GUI/CCControlExtension/CCControlStepper.cpp b/extensions/GUI/CCControlExtension/CCControlStepper.cpp index 8e5fa0f705..9c3fb23471 100644 --- a/extensions/GUI/CCControlExtension/CCControlStepper.cpp +++ b/extensions/GUI/CCControlExtension/CCControlStepper.cpp @@ -29,7 +29,7 @@ #include "CCControlStepper.h" -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN #define ControlStepperLabelColorEnabled Color3B(55, 55, 55) #define ControlStepperLabelColorDisabled Color3B(147, 147, 147) @@ -350,4 +350,4 @@ void ControlStepper::onTouchEnded(Touch* pTouch, Event* /*pEvent*/) } } -NS_CC_EXT_END +NS_AX_EXT_END diff --git a/extensions/GUI/CCControlExtension/CCControlStepper.h b/extensions/GUI/CCControlExtension/CCControlStepper.h index 8ed0c70696..b38e149b53 100644 --- a/extensions/GUI/CCControlExtension/CCControlStepper.h +++ b/extensions/GUI/CCControlExtension/CCControlStepper.h @@ -34,7 +34,7 @@ #include "2d/CCLabel.h" #include "extensions/ExtensionExport.h" -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN /** * @addtogroup GUI @@ -123,6 +123,6 @@ protected: /// @} /// @} -NS_CC_EXT_END +NS_AX_EXT_END #endif /* __CCCONTROLSTEPPER_H__ */ diff --git a/extensions/GUI/CCControlExtension/CCControlSwitch.cpp b/extensions/GUI/CCControlExtension/CCControlSwitch.cpp index 02b016cec9..6ce82e48d8 100644 --- a/extensions/GUI/CCControlExtension/CCControlSwitch.cpp +++ b/extensions/GUI/CCControlExtension/CCControlSwitch.cpp @@ -35,7 +35,7 @@ #include "renderer/ccShaders.h" #include "2d/CCRenderTexture.h" -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN // ControlSwitchSprite class ControlSwitchSprite : public Sprite, public ActionTweenDelegate @@ -454,4 +454,4 @@ void ControlSwitch::onTouchCancelled(Touch* pTouch, Event* /*pEvent*/) } } -NS_CC_EXT_END +NS_AX_EXT_END diff --git a/extensions/GUI/CCControlExtension/CCControlSwitch.h b/extensions/GUI/CCControlExtension/CCControlSwitch.h index 5366a922a0..3231a314c3 100644 --- a/extensions/GUI/CCControlExtension/CCControlSwitch.h +++ b/extensions/GUI/CCControlExtension/CCControlSwitch.h @@ -33,16 +33,12 @@ #include "CCControl.h" #include "extensions/ExtensionExport.h" -namespace cocos2d -{ +NS_AX_BEGIN class Sprite; -} -namespace cocos2d -{ class Label; -} +NS_AX_END -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN class ControlSwitchSprite; @@ -124,6 +120,6 @@ protected: /// @} /// @} -NS_CC_EXT_END +NS_AX_EXT_END #endif /* __CCCONTROLSWITCH_H__ */ diff --git a/extensions/GUI/CCControlExtension/CCControlUtils.cpp b/extensions/GUI/CCControlExtension/CCControlUtils.cpp index 24bb73773b..850c9d7637 100644 --- a/extensions/GUI/CCControlExtension/CCControlUtils.cpp +++ b/extensions/GUI/CCControlExtension/CCControlUtils.cpp @@ -25,7 +25,7 @@ THE SOFTWARE. #include "CCControlUtils.h" -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN Sprite* ControlUtils::addSpriteToTargetWithPosAndAnchor(const char* spriteName, Node* target, Vec2 pos, Vec2 anchor) { @@ -171,4 +171,4 @@ Rect ControlUtils::RectUnion(const Rect& src1, const Rect& src2) return result; } -NS_CC_EXT_END +NS_AX_EXT_END diff --git a/extensions/GUI/CCControlExtension/CCControlUtils.h b/extensions/GUI/CCControlExtension/CCControlUtils.h index 175f9f650d..3d59cbcea3 100644 --- a/extensions/GUI/CCControlExtension/CCControlUtils.h +++ b/extensions/GUI/CCControlExtension/CCControlUtils.h @@ -40,7 +40,7 @@ #include "../../ExtensionMacros.h" #include "extensions/ExtensionExport.h" -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN typedef struct { @@ -105,6 +105,6 @@ public: /// @} /// @} -NS_CC_EXT_END +NS_AX_EXT_END #endif diff --git a/extensions/GUI/CCControlExtension/CCInvocation.cpp b/extensions/GUI/CCControlExtension/CCInvocation.cpp index 72dd921d0c..22bbdfdb2f 100644 --- a/extensions/GUI/CCControlExtension/CCInvocation.cpp +++ b/extensions/GUI/CCControlExtension/CCInvocation.cpp @@ -28,7 +28,7 @@ #include "CCInvocation.h" -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN Invocation* Invocation::create(Ref* target, Control::Handler action, Control::EventType controlEvent) { @@ -52,4 +52,4 @@ void Invocation::invoke(Ref* sender) } } -NS_CC_EXT_END +NS_AX_EXT_END diff --git a/extensions/GUI/CCControlExtension/CCInvocation.h b/extensions/GUI/CCControlExtension/CCInvocation.h index e9d5cee5dc..1cfbd2c51d 100644 --- a/extensions/GUI/CCControlExtension/CCInvocation.h +++ b/extensions/GUI/CCControlExtension/CCInvocation.h @@ -38,7 +38,7 @@ #include "extensions/ExtensionExport.h" #include "CCControl.h" -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN /** * @addtogroup GUI @@ -47,7 +47,7 @@ NS_CC_EXT_BEGIN * @{ */ -#define cccontrol_selector(_SELECTOR) static_cast(&_SELECTOR) +#define cccontrol_selector(_SELECTOR) static_cast(&_SELECTOR) class CC_EX_DLL Invocation : public Ref { @@ -78,6 +78,6 @@ protected: /// @} /// @} -NS_CC_EXT_END +NS_AX_EXT_END #endif diff --git a/extensions/GUI/CCScrollView/CCScrollView.cpp b/extensions/GUI/CCScrollView/CCScrollView.cpp index 5afada4daa..d9331addda 100644 --- a/extensions/GUI/CCScrollView/CCScrollView.cpp +++ b/extensions/GUI/CCScrollView/CCScrollView.cpp @@ -35,7 +35,7 @@ #include -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN #define SCROLL_DEACCEL_RATE 0.95f #define SCROLL_DEACCEL_DIST 1.0f @@ -912,4 +912,4 @@ Rect ScrollView::getViewRect() return Rect(screenPos.x, screenPos.y, _viewSize.width * scaleX, _viewSize.height * scaleY); } -NS_CC_EXT_END +NS_AX_EXT_END diff --git a/extensions/GUI/CCScrollView/CCScrollView.h b/extensions/GUI/CCScrollView/CCScrollView.h index 30061c45dd..8e90324f62 100644 --- a/extensions/GUI/CCScrollView/CCScrollView.h +++ b/extensions/GUI/CCScrollView/CCScrollView.h @@ -37,7 +37,7 @@ * @addtogroup ui * @{ */ -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN class ScrollView; @@ -386,7 +386,7 @@ protected: Action* _animatedScrollAction; }; -NS_CC_EXT_END +NS_AX_EXT_END // end of ui group /// @} diff --git a/extensions/GUI/CCScrollView/CCTableView.cpp b/extensions/GUI/CCScrollView/CCTableView.cpp index 08bdb8db97..8b01add9ce 100644 --- a/extensions/GUI/CCScrollView/CCTableView.cpp +++ b/extensions/GUI/CCScrollView/CCTableView.cpp @@ -27,7 +27,7 @@ #include "CCTableView.h" #include "CCTableViewCell.h" -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN void TableViewDelegate::tableCellHighlight(TableView* /*table*/, TableViewCell* /*cell*/) {} @@ -690,4 +690,4 @@ void TableView::onTouchCancelled(Touch* pTouch, Event* pEvent) } } -NS_CC_EXT_END +NS_AX_EXT_END diff --git a/extensions/GUI/CCScrollView/CCTableView.h b/extensions/GUI/CCScrollView/CCTableView.h index 1a8dc6c7c5..bcb9f1125b 100644 --- a/extensions/GUI/CCScrollView/CCTableView.h +++ b/extensions/GUI/CCScrollView/CCTableView.h @@ -38,7 +38,7 @@ * @addtogroup ui * @{ */ -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN class TableView; @@ -324,7 +324,7 @@ public: void _updateContentSize(); }; -NS_CC_EXT_END +NS_AX_EXT_END // end of ui group /// @} diff --git a/extensions/GUI/CCScrollView/CCTableViewCell.cpp b/extensions/GUI/CCScrollView/CCTableViewCell.cpp index e3a452bc92..da0280fe31 100644 --- a/extensions/GUI/CCScrollView/CCTableViewCell.cpp +++ b/extensions/GUI/CCScrollView/CCTableViewCell.cpp @@ -26,7 +26,7 @@ #include "CCTableViewCell.h" -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN void TableViewCell::reset() { @@ -43,4 +43,4 @@ void TableViewCell::setIdx(ssize_t idx) _idx = idx; } -NS_CC_EXT_END +NS_AX_EXT_END diff --git a/extensions/GUI/CCScrollView/CCTableViewCell.h b/extensions/GUI/CCScrollView/CCTableViewCell.h index b4f0f8a2a7..cd39fe5009 100644 --- a/extensions/GUI/CCScrollView/CCTableViewCell.h +++ b/extensions/GUI/CCScrollView/CCTableViewCell.h @@ -35,7 +35,7 @@ * @addtogroup ui * @{ */ -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN /** * Abstract class for SWTableView cell node @@ -60,7 +60,7 @@ private: ssize_t _idx; }; -NS_CC_EXT_END +NS_AX_EXT_END // end of ui group /// @} diff --git a/extensions/ImGui/ImGuiPresenter.cpp b/extensions/ImGui/ImGuiPresenter.cpp index bd869955ee..8c78179a1e 100644 --- a/extensions/ImGui/ImGuiPresenter.cpp +++ b/extensions/ImGui/ImGuiPresenter.cpp @@ -10,7 +10,7 @@ # define CC_IMGUI_ENABLE_MULTI_VIEWPORT 0 #endif -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN static uint32_t fourccValue(std::string_view str) { @@ -700,4 +700,4 @@ int ImGuiPresenter::getCCRefId(Ref* p) return (int)hash; } -NS_CC_EXT_END +NS_AX_EXT_END diff --git a/extensions/ImGui/ImGuiPresenter.h b/extensions/ImGui/ImGuiPresenter.h index 9c7c9af761..e8603ffdd7 100644 --- a/extensions/ImGui/ImGuiPresenter.h +++ b/extensions/ImGui/ImGuiPresenter.h @@ -10,7 +10,7 @@ // #define HAVE_IMGUI_MARKDOWN 1 -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN class ImGuiEventTracker; class ImGuiPresenter @@ -159,4 +159,4 @@ private: bool _purgeNextLoop = false; }; -NS_CC_EXT_END +NS_AX_EXT_END diff --git a/extensions/ImGui/imgui_impl_axis.cpp b/extensions/ImGui/imgui_impl_axis.cpp index 27ca1f0c96..37b557e93e 100644 --- a/extensions/ImGui/imgui_impl_axis.cpp +++ b/extensions/ImGui/imgui_impl_axis.cpp @@ -59,7 +59,7 @@ #include "renderer/backend/Backend.h" #include -using namespace cocos2d; +USING_NS_AX; using namespace backend; // Clang warnings with -Weverything @@ -1516,7 +1516,7 @@ static void AddRendererCommand(const std::function& f) //bd->CallbackCommands.push_back(cmd); } -static void ImGui_ImplAxis_SaveRenderState(cocos2d::Renderer* renderer) +static void ImGui_ImplAxis_SaveRenderState(axis::Renderer* renderer) { AddRendererCommand([renderer]() { auto bd = ImGui_ImplGlfw_GetBackendData(); @@ -1528,7 +1528,7 @@ static void ImGui_ImplAxis_SaveRenderState(cocos2d::Renderer* renderer) }); } -static void ImGui_ImplAxis_SetupRenderState(cocos2d::Renderer* renderer, +static void ImGui_ImplAxis_SetupRenderState(axis::Renderer* renderer, ImDrawData* draw_data, int fb_width, int fb_height) @@ -1549,7 +1549,7 @@ static void ImGui_ImplAxis_SetupRenderState(cocos2d::Renderer* renderer, Mat4::createOrthographicOffCenter(L, R, B, T, -1.f, 1.f, &bd->Projection); } -static void ImGui_ImplAxis_RestoreRenderState(cocos2d::Renderer* renderer) +static void ImGui_ImplAxis_RestoreRenderState(axis::Renderer* renderer) { AddRendererCommand([renderer]() { auto bd = ImGui_ImplGlfw_GetBackendData(); diff --git a/extensions/ImGui/imgui_impl_axis.h b/extensions/ImGui/imgui_impl_axis.h index 7f14d2b0e3..9f39e70ebe 100644 --- a/extensions/ImGui/imgui_impl_axis.h +++ b/extensions/ImGui/imgui_impl_axis.h @@ -17,7 +17,7 @@ IMGUI_IMPL_API void ImGui_ImplAxis_NewFrame(); IMGUI_IMPL_API void ImGui_ImplAxis_RenderDrawData(ImDrawData* draw_data); IMGUI_IMPL_API void ImGui_ImplAxis_RenderPlatform(); -// Get FontTexture object cocos2d::Texture2D* +// Get FontTexture object axis::Texture2D* IMGUI_IMPL_API void ImGui_ImplAxis_SetCustomFontLoader(ImGuiImplCocos2dxLoadFontFun fun, void* userdata); IMGUI_IMPL_API void* ImGui_ImplAxis_GetFontsTexture(); diff --git a/extensions/Live2D/Framework/src/Rendering/axis/CubismCommandBuffer_Cocos2dx.cpp b/extensions/Live2D/Framework/src/Rendering/axis/CubismCommandBuffer_Cocos2dx.cpp index 5f39f3f647..fda25295cf 100644 --- a/extensions/Live2D/Framework/src/Rendering/axis/CubismCommandBuffer_Cocos2dx.cpp +++ b/extensions/Live2D/Framework/src/Rendering/axis/CubismCommandBuffer_Cocos2dx.cpp @@ -20,17 +20,17 @@ CubismCommandBuffer_Cocos2dx::DrawCommandBuffer::DrawCommand::~DrawCommand() { } -cocos2d::backend::BlendDescriptor* CubismCommandBuffer_Cocos2dx::DrawCommandBuffer::DrawCommand::GetBlendDescriptor() +axis::backend::BlendDescriptor* CubismCommandBuffer_Cocos2dx::DrawCommandBuffer::DrawCommand::GetBlendDescriptor() { return &_command.getPipelineDescriptor().blendDescriptor; } -cocos2d::PipelineDescriptor* CubismCommandBuffer_Cocos2dx::DrawCommandBuffer::DrawCommand::GetPipelineDescriptor() +axis::PipelineDescriptor* CubismCommandBuffer_Cocos2dx::DrawCommandBuffer::DrawCommand::GetPipelineDescriptor() { return &_command.getPipelineDescriptor(); } -cocos2d::CustomCommand* CubismCommandBuffer_Cocos2dx::DrawCommandBuffer::DrawCommand::GetCommand() +axis::CustomCommand* CubismCommandBuffer_Cocos2dx::DrawCommandBuffer::DrawCommand::GetCommand() { return &_command; } @@ -52,13 +52,13 @@ void CubismCommandBuffer_Cocos2dx::DrawCommandBuffer::CreateVertexBuffer(csmSize _vbStride = stride; _vbCount = count; _drawBuffer = static_cast(CSM_MALLOC(stride * count)); - _drawCommandDraw.GetCommand()->createVertexBuffer(stride, count, cocos2d::CustomCommand::BufferUsage::DYNAMIC); + _drawCommandDraw.GetCommand()->createVertexBuffer(stride, count, axis::CustomCommand::BufferUsage::DYNAMIC); } void CubismCommandBuffer_Cocos2dx::DrawCommandBuffer::CreateIndexBuffer(csmSizeInt count) { _ibCount = count; - _drawCommandDraw.GetCommand()->createIndexBuffer(cocos2d::backend::IndexFormat::U_SHORT, count, cocos2d::CustomCommand::BufferUsage::DYNAMIC); + _drawCommandDraw.GetCommand()->createIndexBuffer(axis::backend::IndexFormat::U_SHORT, count, axis::CustomCommand::BufferUsage::DYNAMIC); } void CubismCommandBuffer_Cocos2dx::DrawCommandBuffer::UpdateVertexBuffer(void* data, void* uvData, csmSizeInt count) @@ -149,17 +149,17 @@ void CubismCommandBuffer_Cocos2dx::SetOperationEnable(OperationType operationTyp case OperationType_Culling: if (!enabled) { - GetCocos2dRenderer()->setCullMode(cocos2d::CullMode::NONE); + GetCocos2dRenderer()->setCullMode(axis::CullMode::NONE); } else { switch (_operationStateArray[operationType].Arg0.i32) { case CullType_Front: - GetCocos2dRenderer()->setCullMode(cocos2d::CullMode::FRONT); + GetCocos2dRenderer()->setCullMode(axis::CullMode::FRONT); break; case CullType_Back: - GetCocos2dRenderer()->setCullMode(cocos2d::CullMode::BACK); + GetCocos2dRenderer()->setCullMode(axis::CullMode::BACK); break; } } @@ -195,11 +195,11 @@ void CubismCommandBuffer_Cocos2dx::SetWindingMode(WindingType windingType) switch (_operationStateArray[OperationType_Winding].Arg0.i32) { case WindingType_ClockWise: - GetCocos2dRenderer()->setWinding(cocos2d::Winding::CLOCK_WISE); + GetCocos2dRenderer()->setWinding(axis::Winding::CLOCK_WISE); break; case WindingType_CounterClockWise: - GetCocos2dRenderer()->setWinding(cocos2d::Winding::COUNTER_CLOCK_WISE); + GetCocos2dRenderer()->setWinding(axis::Winding::COUNTER_CLOCK_WISE); break; } } @@ -209,7 +209,7 @@ void CubismCommandBuffer_Cocos2dx::SetWindingMode(WindingType windingType) void CubismCommandBuffer_Cocos2dx::Clear(csmFloat32 r, csmFloat32 g, csmFloat32 b, csmFloat32 a) { // Add the callback command internally. - GetCocos2dRenderer()->clear(cocos2d::ClearFlag::COLOR, cocos2d::Color4F(r, g, b, a), 0.0f, 0, 0.0f); + GetCocos2dRenderer()->clear(axis::ClearFlag::COLOR, axis::Color4F(r, g, b, a), 0.0f, 0, 0.0f); } void CubismCommandBuffer_Cocos2dx::Viewport(csmFloat32 x, csmFloat32 y, csmFloat32 w, csmFloat32 h) @@ -255,7 +255,7 @@ void CubismCommandBuffer_Cocos2dx::AddDrawCommand(DrawCommandBuffer::DrawCommand void CubismCommandBuffer_Cocos2dx::AddCommand(const std::function& fn) { - cocos2d::CallbackCommand* command = GetCocos2dRenderer()->nextCallbackCommand(); + axis::CallbackCommand* command = GetCocos2dRenderer()->nextCallbackCommand(); command->init(0.0f); command->func = fn; diff --git a/extensions/Live2D/Framework/src/Rendering/axis/CubismCommandBuffer_Cocos2dx.hpp b/extensions/Live2D/Framework/src/Rendering/axis/CubismCommandBuffer_Cocos2dx.hpp index 37bb72cdfb..1fd6161a55 100644 --- a/extensions/Live2D/Framework/src/Rendering/axis/CubismCommandBuffer_Cocos2dx.hpp +++ b/extensions/Live2D/Framework/src/Rendering/axis/CubismCommandBuffer_Cocos2dx.hpp @@ -36,13 +36,13 @@ #include "renderer/backend/Texture.h" -USING_NS_CC; +USING_NS_AX; namespace Live2D { namespace Cubism { namespace Framework { namespace Rendering { -static inline cocos2d::Renderer* GetCocos2dRenderer() +static inline axis::Renderer* GetCocos2dRenderer() { - return cocos2d::Director::getInstance()->getRenderer(); + return axis::Director::getInstance()->getRenderer(); } class CubismCommandBuffer_Cocos2dx @@ -57,13 +57,13 @@ public: DrawCommand(); virtual ~DrawCommand(); - cocos2d::backend::BlendDescriptor* GetBlendDescriptor(); - cocos2d::PipelineDescriptor* GetPipelineDescriptor(); - cocos2d::CustomCommand* GetCommand(); + axis::backend::BlendDescriptor* GetBlendDescriptor(); + axis::PipelineDescriptor* GetPipelineDescriptor(); + axis::CustomCommand* GetCommand(); private: DrawCommand& operator=(const DrawCommand&); - cocos2d::CustomCommand _command; + axis::CustomCommand _command; }; DrawCommandBuffer(); @@ -160,7 +160,7 @@ private: backend::TextureBackend* _currentColorBuffer; OperationStateData _operationStateArray[OperationType_TypeMax]; - cocos2d::GroupCommand _groupCommand; + axis::GroupCommand _groupCommand; }; }}}} diff --git a/extensions/Live2D/Framework/src/Rendering/axis/CubismOffscreenSurface_Cocos2dx.cpp b/extensions/Live2D/Framework/src/Rendering/axis/CubismOffscreenSurface_Cocos2dx.cpp index 9f669c1777..cf76d05743 100644 --- a/extensions/Live2D/Framework/src/Rendering/axis/CubismOffscreenSurface_Cocos2dx.cpp +++ b/extensions/Live2D/Framework/src/Rendering/axis/CubismOffscreenSurface_Cocos2dx.cpp @@ -65,7 +65,7 @@ void CubismOffscreenFrame_Cocos2dx::Clear(CubismCommandBuffer_Cocos2dx* commandB commandBuffer->Clear(r, g, b, a); } -csmBool CubismOffscreenFrame_Cocos2dx::CreateOffscreenFrame(csmUint32 displayBufferWidth, csmUint32 displayBufferHeight, cocos2d::RenderTexture* renderTexture) +csmBool CubismOffscreenFrame_Cocos2dx::CreateOffscreenFrame(csmUint32 displayBufferWidth, csmUint32 displayBufferHeight, axis::RenderTexture* renderTexture) { // 一旦削除 DestroyOffscreenFrame(); @@ -82,7 +82,7 @@ csmBool CubismOffscreenFrame_Cocos2dx::CreateOffscreenFrame(csmUint32 displayBuf csmBool initResult = false; - _renderTexture = cocos2d::RenderTexture::create(displayBufferWidth, displayBufferHeight); + _renderTexture = axis::RenderTexture::create(displayBufferWidth, displayBufferHeight); if (!_renderTexture) { @@ -93,11 +93,11 @@ csmBool CubismOffscreenFrame_Cocos2dx::CreateOffscreenFrame(csmUint32 displayBuf _renderTexture->getSprite()->getTexture()->setTexParameters( - cocos2d::Texture2D::TexParams( - cocos2d::backend::SamplerFilter::LINEAR, // MagFilter - cocos2d::backend::SamplerFilter::LINEAR, // MinFilter - cocos2d::backend::SamplerAddressMode::CLAMP_TO_EDGE, // AddressingMode S - cocos2d::backend::SamplerAddressMode::CLAMP_TO_EDGE // AddressingMode T + axis::Texture2D::TexParams( + axis::backend::SamplerFilter::LINEAR, // MagFilter + axis::backend::SamplerFilter::LINEAR, // MinFilter + axis::backend::SamplerAddressMode::CLAMP_TO_EDGE, // AddressingMode S + axis::backend::SamplerAddressMode::CLAMP_TO_EDGE // AddressingMode T ) ); @@ -151,7 +151,7 @@ void CubismOffscreenFrame_Cocos2dx::DestroyOffscreenFrame() } } -cocos2d::Texture2D* CubismOffscreenFrame_Cocos2dx::GetColorBuffer() const +axis::Texture2D* CubismOffscreenFrame_Cocos2dx::GetColorBuffer() const { return _renderTexture->getSprite()->getTexture(); } diff --git a/extensions/Live2D/Framework/src/Rendering/axis/CubismOffscreenSurface_Cocos2dx.hpp b/extensions/Live2D/Framework/src/Rendering/axis/CubismOffscreenSurface_Cocos2dx.hpp index 487c652604..cd6bbc62f2 100644 --- a/extensions/Live2D/Framework/src/Rendering/axis/CubismOffscreenSurface_Cocos2dx.hpp +++ b/extensions/Live2D/Framework/src/Rendering/axis/CubismOffscreenSurface_Cocos2dx.hpp @@ -40,7 +40,7 @@ #include "renderer/backend/RenderTarget.h" -USING_NS_CC; +USING_NS_AX; //------------ LIVE2D NAMESPACE ------------ namespace Live2D { namespace Cubism { namespace Framework { namespace Rendering { @@ -83,7 +83,7 @@ public: * @param displayBufferHeight 作成するバッファ高さ * @param colorBuffer 0以外の場合、ピクセル格納領域としてcolorBufferを使用する */ - csmBool CreateOffscreenFrame(csmUint32 displayBufferWidth, csmUint32 displayBufferHeight, cocos2d::RenderTexture* renderTexture = NULL); + csmBool CreateOffscreenFrame(csmUint32 displayBufferWidth, csmUint32 displayBufferHeight, axis::RenderTexture* renderTexture = NULL); /** * @brief CubismOffscreenFrameの削除 @@ -93,7 +93,7 @@ public: /** * @brief カラーバッファメンバーへのアクセッサ */ - cocos2d::Texture2D* GetColorBuffer() const; + axis::Texture2D* GetColorBuffer() const; /** * @brief バッファ幅取得 @@ -113,7 +113,7 @@ public: csmBool IsValid() const; private: - cocos2d::RenderTexture* _renderTexture; ///< レンダリングターゲットとしてのアドレス + axis::RenderTexture* _renderTexture; ///< レンダリングターゲットとしてのアドレス backend::TextureBackend* _colorBuffer; csmBool _isInheritedRenderTexture; diff --git a/extensions/Live2D/Framework/src/Rendering/axis/CubismRenderer_Cocos2dx.cpp b/extensions/Live2D/Framework/src/Rendering/axis/CubismRenderer_Cocos2dx.cpp index 1a45007df0..ee3fe99663 100644 --- a/extensions/Live2D/Framework/src/Rendering/axis/CubismRenderer_Cocos2dx.cpp +++ b/extensions/Live2D/Framework/src/Rendering/axis/CubismRenderer_Cocos2dx.cpp @@ -12,7 +12,7 @@ #include #include "renderer/backend/Device.h" -USING_NS_CC; +USING_NS_AX; #ifdef CSM_TARGET_WIN_GL #include @@ -580,8 +580,8 @@ CubismClippingContext::CubismClippingContext(CubismClippingManager_Cocos2dx* man drawCommandBuffer = CSM_NEW CubismCommandBuffer_Cocos2dx::DrawCommandBuffer(); - drawCommandBuffer->GetCommandDraw()->GetCommand()->setDrawType(cocos2d::CustomCommand::DrawType::ELEMENT); - drawCommandBuffer->GetCommandDraw()->GetCommand()->setPrimitiveType(cocos2d::backend::PrimitiveType::TRIANGLE); + drawCommandBuffer->GetCommandDraw()->GetCommand()->setDrawType(axis::CustomCommand::DrawType::ELEMENT); + drawCommandBuffer->GetCommandDraw()->GetCommand()->setPrimitiveType(axis::backend::PrimitiveType::TRIANGLE); drawCommandBuffer->CreateVertexBuffer(vertexSize, drawableVertexCount * 2); // Vertices + UVs drawCommandBuffer->CreateIndexBuffer(drawableVertexIndexCount); @@ -1318,7 +1318,7 @@ void CubismShader_Cocos2dx::GenerateShaders() _shaderSets[18]->UniformBaseColorLocation = _shaderSets[18]->ShaderProgram->getUniformLocation("u_baseColor"); } -void CubismShader_Cocos2dx::SetupShaderProgram(CubismCommandBuffer_Cocos2dx::DrawCommandBuffer::DrawCommand* drawCommand, CubismRenderer_Cocos2dx* renderer, cocos2d::Texture2D* texture +void CubismShader_Cocos2dx::SetupShaderProgram(CubismCommandBuffer_Cocos2dx::DrawCommandBuffer::DrawCommand* drawCommand, CubismRenderer_Cocos2dx* renderer, axis::Texture2D* texture , csmInt32 vertexCount, csmFloat32* vertexArray , csmFloat32* uvArray, csmFloat32 opacity , CubismRenderer::CubismBlendMode colorBlendMode @@ -1331,10 +1331,10 @@ void CubismShader_Cocos2dx::SetupShaderProgram(CubismCommandBuffer_Cocos2dx::Dra GenerateShaders(); } - cocos2d::backend::BlendDescriptor* blendDescriptor = drawCommand->GetBlendDescriptor(); - cocos2d::PipelineDescriptor* pipelineDescriptor = drawCommand->GetPipelineDescriptor(); + axis::backend::BlendDescriptor* blendDescriptor = drawCommand->GetBlendDescriptor(); + axis::PipelineDescriptor* pipelineDescriptor = drawCommand->GetPipelineDescriptor(); - cocos2d::backend::ProgramState* programState = pipelineDescriptor->programState; + axis::backend::ProgramState* programState = pipelineDescriptor->programState; if (renderer->GetClippingContextBufferForMask() != NULL) // マスク生成時 { @@ -1342,7 +1342,7 @@ void CubismShader_Cocos2dx::SetupShaderProgram(CubismCommandBuffer_Cocos2dx::Dra if (!programState) { - programState = new cocos2d::backend::ProgramState(shaderSet->ShaderProgram); + programState = new axis::backend::ProgramState(shaderSet->ShaderProgram); } @@ -1350,9 +1350,9 @@ void CubismShader_Cocos2dx::SetupShaderProgram(CubismCommandBuffer_Cocos2dx::Dra programState->setTexture(shaderSet->SamplerTexture0Location, 0, texture->getBackendTexture()); // 頂点配列の設定 - programState->getVertexLayout()->setAttribute("a_position", shaderSet->AttributePositionLocation, cocos2d::backend::VertexFormat::FLOAT2, 0, false); + programState->getVertexLayout()->setAttribute("a_position", shaderSet->AttributePositionLocation, axis::backend::VertexFormat::FLOAT2, 0, false); // テクスチャ頂点の設定 - programState->getVertexLayout()->setAttribute("a_texCoord", shaderSet->AttributeTexCoordLocation, cocos2d::backend::VertexFormat::FLOAT2, sizeof(csmFloat32) * 2, false); + programState->getVertexLayout()->setAttribute("a_texCoord", shaderSet->AttributeTexCoordLocation, axis::backend::VertexFormat::FLOAT2, sizeof(csmFloat32) * 2, false); // チャンネル const csmInt32 channelNo = renderer->GetClippingContextBufferForMask()->_layoutChannelNo; @@ -1372,10 +1372,10 @@ void CubismShader_Cocos2dx::SetupShaderProgram(CubismCommandBuffer_Cocos2dx::Dra rect->GetBottom() * 2.0f - 1.0f }; programState->setUniform(shaderSet->UniformBaseColorLocation, base, sizeof(float) * 4); - blendDescriptor->sourceRGBBlendFactor = cocos2d::backend::BlendFactor::ZERO; - blendDescriptor->destinationRGBBlendFactor = cocos2d::backend::BlendFactor::ONE_MINUS_SRC_COLOR; - blendDescriptor->sourceAlphaBlendFactor = cocos2d::backend::BlendFactor::ZERO; - blendDescriptor->destinationAlphaBlendFactor = cocos2d::backend::BlendFactor::ONE_MINUS_SRC_ALPHA; + blendDescriptor->sourceRGBBlendFactor = axis::backend::BlendFactor::ZERO; + blendDescriptor->destinationRGBBlendFactor = axis::backend::BlendFactor::ONE_MINUS_SRC_COLOR; + blendDescriptor->sourceAlphaBlendFactor = axis::backend::BlendFactor::ZERO; + blendDescriptor->destinationAlphaBlendFactor = axis::backend::BlendFactor::ONE_MINUS_SRC_ALPHA; } else // マスク生成以外の場合 { @@ -1388,43 +1388,43 @@ void CubismShader_Cocos2dx::SetupShaderProgram(CubismCommandBuffer_Cocos2dx::Dra case CubismRenderer::CubismBlendMode_Normal: default: shaderSet = _shaderSets[ShaderNames_Normal + offset]; - blendDescriptor->sourceRGBBlendFactor = cocos2d::backend::BlendFactor::ONE; - blendDescriptor->destinationRGBBlendFactor = cocos2d::backend::BlendFactor::ONE_MINUS_SRC_ALPHA; - blendDescriptor->sourceAlphaBlendFactor = cocos2d::backend::BlendFactor::ONE; - blendDescriptor->destinationAlphaBlendFactor = cocos2d::backend::BlendFactor::ONE_MINUS_SRC_ALPHA; + blendDescriptor->sourceRGBBlendFactor = axis::backend::BlendFactor::ONE; + blendDescriptor->destinationRGBBlendFactor = axis::backend::BlendFactor::ONE_MINUS_SRC_ALPHA; + blendDescriptor->sourceAlphaBlendFactor = axis::backend::BlendFactor::ONE; + blendDescriptor->destinationAlphaBlendFactor = axis::backend::BlendFactor::ONE_MINUS_SRC_ALPHA; break; case CubismRenderer::CubismBlendMode_Additive: shaderSet = _shaderSets[ShaderNames_Add + offset]; - blendDescriptor->sourceRGBBlendFactor = cocos2d::backend::BlendFactor::ONE; - blendDescriptor->destinationRGBBlendFactor = cocos2d::backend::BlendFactor::ONE; - blendDescriptor->sourceAlphaBlendFactor = cocos2d::backend::BlendFactor::ZERO; - blendDescriptor->destinationAlphaBlendFactor = cocos2d::backend::BlendFactor::ONE; + blendDescriptor->sourceRGBBlendFactor = axis::backend::BlendFactor::ONE; + blendDescriptor->destinationRGBBlendFactor = axis::backend::BlendFactor::ONE; + blendDescriptor->sourceAlphaBlendFactor = axis::backend::BlendFactor::ZERO; + blendDescriptor->destinationAlphaBlendFactor = axis::backend::BlendFactor::ONE; break; case CubismRenderer::CubismBlendMode_Multiplicative: shaderSet = _shaderSets[ShaderNames_Mult + offset]; - blendDescriptor->sourceRGBBlendFactor = cocos2d::backend::BlendFactor::DST_COLOR; - blendDescriptor->destinationRGBBlendFactor = cocos2d::backend::BlendFactor::ONE_MINUS_SRC_ALPHA; - blendDescriptor->sourceAlphaBlendFactor = cocos2d::backend::BlendFactor::ZERO; - blendDescriptor->destinationAlphaBlendFactor = cocos2d::backend::BlendFactor::ONE; + blendDescriptor->sourceRGBBlendFactor = axis::backend::BlendFactor::DST_COLOR; + blendDescriptor->destinationRGBBlendFactor = axis::backend::BlendFactor::ONE_MINUS_SRC_ALPHA; + blendDescriptor->sourceAlphaBlendFactor = axis::backend::BlendFactor::ZERO; + blendDescriptor->destinationAlphaBlendFactor = axis::backend::BlendFactor::ONE; break; } if (!programState) { - programState = new cocos2d::backend::ProgramState(shaderSet->ShaderProgram); + programState = new axis::backend::ProgramState(shaderSet->ShaderProgram); } // 頂点配列の設定 - programState->getVertexLayout()->setAttribute("a_position", shaderSet->AttributePositionLocation, cocos2d::backend::VertexFormat::FLOAT2, 0, false); + programState->getVertexLayout()->setAttribute("a_position", shaderSet->AttributePositionLocation, axis::backend::VertexFormat::FLOAT2, 0, false); // テクスチャ頂点の設定 - programState->getVertexLayout()->setAttribute("a_texCoord", shaderSet->AttributeTexCoordLocation, cocos2d::backend::VertexFormat::FLOAT2, sizeof(csmFloat32) * 2, false); + programState->getVertexLayout()->setAttribute("a_texCoord", shaderSet->AttributeTexCoordLocation, axis::backend::VertexFormat::FLOAT2, sizeof(csmFloat32) * 2, false); if (masked) { // frameBufferに書かれたテクスチャ - cocos2d::Texture2D* tex = renderer->_offscreenFrameBuffer.GetColorBuffer(); + axis::Texture2D* tex = renderer->_offscreenFrameBuffer.GetColorBuffer(); programState->setTexture(shaderSet->SamplerTexture1Location, 1, tex->getBackendTexture()); @@ -1455,11 +1455,11 @@ void CubismShader_Cocos2dx::SetupShaderProgram(CubismCommandBuffer_Cocos2dx::Dra pipelineDescriptor->programState = programState; } -cocos2d::backend::Program* CubismShader_Cocos2dx::LoadShaderProgram(const csmChar* vertShaderSrc, const csmChar* fragShaderSrc) +axis::backend::Program* CubismShader_Cocos2dx::LoadShaderProgram(const csmChar* vertShaderSrc, const csmChar* fragShaderSrc) { // cocos2dx対応 // Create shader program. - return cocos2d::backend::Device::getInstance()->newProgram(vertShaderSrc, fragShaderSrc); + return axis::backend::Device::getInstance()->newProgram(vertShaderSrc, fragShaderSrc); } /********************************************************************************************************************* @@ -1542,8 +1542,8 @@ void CubismRenderer_Cocos2dx::Initialize(CubismModel* model) const csmSizeInt vertexSize = sizeof(csmFloat32) * 2; _drawableDrawCommandBuffer[i] = CSM_NEW CubismCommandBuffer_Cocos2dx::DrawCommandBuffer(); - _drawableDrawCommandBuffer[i]->GetCommandDraw()->GetCommand()->setDrawType(cocos2d::CustomCommand::DrawType::ELEMENT); - _drawableDrawCommandBuffer[i]->GetCommandDraw()->GetCommand()->setPrimitiveType(cocos2d::backend::PrimitiveType::TRIANGLE); + _drawableDrawCommandBuffer[i]->GetCommandDraw()->GetCommand()->setDrawType(axis::CustomCommand::DrawType::ELEMENT); + _drawableDrawCommandBuffer[i]->GetCommandDraw()->GetCommand()->setPrimitiveType(axis::backend::PrimitiveType::TRIANGLE); _drawableDrawCommandBuffer[i]->CreateVertexBuffer(vertexSize, drawableVertexCount * 2); // Vertices + UVs if (drawableVertexIndexCount > 0) @@ -1794,7 +1794,7 @@ void CubismRenderer_Cocos2dx::DrawMeshCocos2d(CubismCommandBuffer_Cocos2dx::Draw } } - cocos2d::Texture2D* drawTexture; // シェーダに渡すテクスチャ + axis::Texture2D* drawTexture; // シェーダに渡すテクスチャ // テクスチャマップからバインド済みテクスチャIDを取得 // バインドされていなければダミーのテクスチャIDをセットする @@ -1853,12 +1853,12 @@ void CubismRenderer_Cocos2dx::RestoreProfile() _rendererProfile.Restore(); } -void CubismRenderer_Cocos2dx::BindTexture(csmUint32 modelTextureNo, cocos2d::Texture2D* texture) +void CubismRenderer_Cocos2dx::BindTexture(csmUint32 modelTextureNo, axis::Texture2D* texture) { _textures[modelTextureNo] = texture; } -const csmMap& CubismRenderer_Cocos2dx::GetBindedTextures() const +const csmMap& CubismRenderer_Cocos2dx::GetBindedTextures() const { return _textures; } diff --git a/extensions/Live2D/Framework/src/Rendering/axis/CubismRenderer_Cocos2dx.hpp b/extensions/Live2D/Framework/src/Rendering/axis/CubismRenderer_Cocos2dx.hpp index 392a72fd70..cfd4bf5cce 100644 --- a/extensions/Live2D/Framework/src/Rendering/axis/CubismRenderer_Cocos2dx.hpp +++ b/extensions/Live2D/Framework/src/Rendering/axis/CubismRenderer_Cocos2dx.hpp @@ -41,7 +41,7 @@ #include #endif -USING_NS_CC; +USING_NS_AX; //------------ LIVE2D NAMESPACE ------------ namespace Live2D { namespace Cubism { namespace Framework { namespace Rendering { @@ -244,15 +244,15 @@ private: */ struct CubismShaderSet { - cocos2d::backend::Program* ShaderProgram; ///< シェーダプログラムのアドレス + axis::backend::Program* ShaderProgram; ///< シェーダプログラムのアドレス unsigned int AttributePositionLocation; ///< シェーダプログラムに渡す変数のアドレス(Position) unsigned int AttributeTexCoordLocation; ///< シェーダプログラムに渡す変数のアドレス(TexCoord) - cocos2d::backend::UniformLocation UniformMatrixLocation; ///< シェーダプログラムに渡す変数のアドレス(Matrix) - cocos2d::backend::UniformLocation UniformClipMatrixLocation; ///< シェーダプログラムに渡す変数のアドレス(ClipMatrix) - cocos2d::backend::UniformLocation SamplerTexture0Location; ///< シェーダプログラムに渡す変数のアドレス(Texture0) - cocos2d::backend::UniformLocation SamplerTexture1Location; ///< シェーダプログラムに渡す変数のアドレス(Texture1) - cocos2d::backend::UniformLocation UniformBaseColorLocation; ///< シェーダプログラムに渡す変数のアドレス(BaseColor) - cocos2d::backend::UniformLocation UnifromChannelFlagLocation; ///< シェーダプログラムに渡す変数のアドレス(ChannelFlag) + axis::backend::UniformLocation UniformMatrixLocation; ///< シェーダプログラムに渡す変数のアドレス(Matrix) + axis::backend::UniformLocation UniformClipMatrixLocation; ///< シェーダプログラムに渡す変数のアドレス(ClipMatrix) + axis::backend::UniformLocation SamplerTexture0Location; ///< シェーダプログラムに渡す変数のアドレス(Texture0) + axis::backend::UniformLocation SamplerTexture1Location; ///< シェーダプログラムに渡す変数のアドレス(Texture1) + axis::backend::UniformLocation UniformBaseColorLocation; ///< シェーダプログラムに渡す変数のアドレス(BaseColor) + axis::backend::UniformLocation UnifromChannelFlagLocation; ///< シェーダプログラムに渡す変数のアドレス(ChannelFlag) }; /** @@ -280,7 +280,7 @@ private: * @param[in] matrix4x4 -> Model-View-Projection行列 * @param[in] invertedMask -> マスクを反転して使用するフラグ */ - void SetupShaderProgram(CubismCommandBuffer_Cocos2dx::DrawCommandBuffer::DrawCommand* drawCommand, CubismRenderer_Cocos2dx* renderer, cocos2d::Texture2D* texture + void SetupShaderProgram(CubismCommandBuffer_Cocos2dx::DrawCommandBuffer::DrawCommand* drawCommand, CubismRenderer_Cocos2dx* renderer, axis::Texture2D* texture , csmInt32 vertexCount, csmFloat32* vertexArray , csmFloat32* uvArray, csmFloat32 opacity , CubismRenderer::CubismBlendMode colorBlendMode @@ -306,7 +306,7 @@ private: * * @return シェーダプログラムのアドレス */ - cocos2d::backend::Program* LoadShaderProgram(const csmChar* vertShaderSrc, const csmChar* fragShaderSrc); + axis::backend::Program* LoadShaderProgram(const csmChar* vertShaderSrc, const csmChar* fragShaderSrc); #ifdef CSM_TARGET_ANDROID_ES2 public: @@ -361,12 +361,12 @@ private: csmBool _lastBlend; ///< モデル描画直前のGL_SCISSOR_TESTパラメータ csmBool _lastStencilTest; ///< モデル描画直前のGL_STENCIL_TESTパラメータ csmBool _lastDepthTest; ///< モデル描画直前のGL_DEPTH_TESTパラメータ - cocos2d::CullMode _lastCullFace; ///< モデル描画直前のGL_CULL_FACEパラメータ - cocos2d::Winding _lastWinding; + axis::CullMode _lastCullFace; ///< モデル描画直前のGL_CULL_FACEパラメータ + axis::Winding _lastWinding; backend::TextureBackend* _lastColorBuffer; ///< モデル描画直前のフレームバッファ backend::TextureBackend* _lastDepthBuffer; backend::TextureBackend* _lastStencilBuffer; - cocos2d::RenderTargetFlag _lastRenderTargetFlag; + axis::RenderTargetFlag _lastRenderTargetFlag; backend::RenderTarget* _lastRenderTarget; csmRectF _lastViewport; ///< モデル描画直前のビューポート }; @@ -398,14 +398,14 @@ public: * @param[in] texture -> バックエンドテクスチャ * */ - void BindTexture(csmUint32 modelTextureNo, cocos2d::Texture2D* texture); + void BindTexture(csmUint32 modelTextureNo, axis::Texture2D* texture); /** * @brief OpenGLにバインドされたテクスチャのリストを取得する * * @return テクスチャのアドレスのリスト */ - const csmMap& GetBindedTextures() const; + const csmMap& GetBindedTextures() const; /** * @brief クリッピングマスクバッファのサイズを設定する
@@ -548,7 +548,7 @@ private: CubismClippingContext* GetClippingContextBufferForDraw() const; - csmMap _textures; ///< モデルが参照するテクスチャとレンダラでバインドしているテクスチャとのマップ + csmMap _textures; ///< モデルが参照するテクスチャとレンダラでバインドしているテクスチャとのマップ csmVector _sortedDrawableIndexList; ///< 描画オブジェクトのインデックスを描画順に並べたリスト CubismRendererProfile_Cocos2dx _rendererProfile; ///< OpenGLのステートを保持するオブジェクト CubismClippingManager_Cocos2dx* _clippingManager; ///< クリッピングマスク管理オブジェクト diff --git a/extensions/Particle3D/CCParticle3DAffector.cpp b/extensions/Particle3D/CCParticle3DAffector.cpp index b648be26dd..df66f3f415 100644 --- a/extensions/Particle3D/CCParticle3DAffector.cpp +++ b/extensions/Particle3D/CCParticle3DAffector.cpp @@ -26,7 +26,7 @@ #include "CCParticle3DAffector.h" #include "CCParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN Particle3DAffector::Particle3DAffector() : _particleSystem(nullptr), _isEnabled(true) {} @@ -37,4 +37,4 @@ Particle3DAffector::~Particle3DAffector() void Particle3DAffector::updateAffector(Particle3D* /*particle*/, float /*deltaTime*/) {} -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/CCParticle3DAffector.h b/extensions/Particle3D/CCParticle3DAffector.h index 97ec326e26..6889673261 100644 --- a/extensions/Particle3D/CCParticle3DAffector.h +++ b/extensions/Particle3D/CCParticle3DAffector.h @@ -30,7 +30,7 @@ #include #include "ExtensionExport.h" -NS_CC_BEGIN +NS_AX_BEGIN class ParticleSystem3D; struct Particle3D; @@ -56,6 +56,6 @@ protected: bool _isEnabled; }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/CCParticle3DEmitter.cpp b/extensions/Particle3D/CCParticle3DEmitter.cpp index 997ada72c9..ca0c1f635c 100644 --- a/extensions/Particle3D/CCParticle3DEmitter.cpp +++ b/extensions/Particle3D/CCParticle3DEmitter.cpp @@ -25,7 +25,7 @@ #include "CCParticle3DEmitter.h" -NS_CC_BEGIN +NS_AX_BEGIN Particle3DEmitter::Particle3DEmitter() : _particleSystem(nullptr), _isEnabled(true) {} @@ -38,4 +38,4 @@ void Particle3DEmitter::updateEmitter(Particle3D* /*particle*/, float /*deltaTim void Particle3DEmitter::emit(int /*count*/) {} -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/CCParticle3DEmitter.h b/extensions/Particle3D/CCParticle3DEmitter.h index eab058f5be..ea84104aae 100644 --- a/extensions/Particle3D/CCParticle3DEmitter.h +++ b/extensions/Particle3D/CCParticle3DEmitter.h @@ -30,7 +30,7 @@ #include #include "ExtensionExport.h" -NS_CC_BEGIN +NS_AX_BEGIN class ParticleSystem3D; struct Particle3D; @@ -61,6 +61,6 @@ protected: bool _isEnabled; }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/CCParticle3DRender.cpp b/extensions/Particle3D/CCParticle3DRender.cpp index f2e91f2de6..fe378faf5b 100644 --- a/extensions/Particle3D/CCParticle3DRender.cpp +++ b/extensions/Particle3D/CCParticle3DRender.cpp @@ -37,7 +37,7 @@ #include "3d/CCMeshRenderer.h" #include "2d/CCCamera.h" -NS_CC_BEGIN +NS_AX_BEGIN Particle3DQuadRender::Particle3DQuadRender() : _texture(nullptr), _programState(nullptr), _indexBuffer(nullptr), _vertexBuffer(nullptr), _texFile("") @@ -412,4 +412,4 @@ void Particle3DRender::setBlendFunc(const BlendFunc& blendFunc) _stateBlock.setBlendFunc(blendFunc); } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/CCParticle3DRender.h b/extensions/Particle3D/CCParticle3DRender.h index ec988af909..eff20b1857 100644 --- a/extensions/Particle3D/CCParticle3DRender.h +++ b/extensions/Particle3D/CCParticle3DRender.h @@ -36,7 +36,7 @@ #include "math/CCMath.h" #include "ExtensionExport.h" -NS_CC_BEGIN +NS_AX_BEGIN class ParticleSystem3D; class Renderer; @@ -160,4 +160,4 @@ protected: Vec3 _meshSize; }; -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/CCParticleSystem3D.cpp b/extensions/Particle3D/CCParticleSystem3D.cpp index a653c0f1b3..845cfdac0c 100644 --- a/extensions/Particle3D/CCParticleSystem3D.cpp +++ b/extensions/Particle3D/CCParticleSystem3D.cpp @@ -28,7 +28,7 @@ #include "CCParticle3DAffector.h" #include "CCParticle3DRender.h" -NS_CC_BEGIN +NS_AX_BEGIN Particle3D::Particle3D() : color(Vec4::ONE), rt_uv(Vec2::ONE), width(1.0f), height(1.0f), depth(1.0f) {} @@ -206,4 +206,4 @@ void ParticleSystem3D::setEnabled(bool enabled) _isEnabled = enabled; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/CCParticleSystem3D.h b/extensions/Particle3D/CCParticleSystem3D.h index 6e33757342..fcb0e126d9 100644 --- a/extensions/Particle3D/CCParticleSystem3D.h +++ b/extensions/Particle3D/CCParticleSystem3D.h @@ -33,7 +33,7 @@ #include #include "ExtensionExport.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * 3d particle system @@ -296,6 +296,6 @@ protected: bool _isEnabled; }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUAffector.cpp b/extensions/Particle3D/PU/CCPUAffector.cpp index 61872e7db8..67adaff4a7 100644 --- a/extensions/Particle3D/PU/CCPUAffector.cpp +++ b/extensions/Particle3D/PU/CCPUAffector.cpp @@ -28,7 +28,7 @@ #include "extensions/Particle3D/PU/CCPUEmitter.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN PUAffector::PUAffector() : _affectorScale(Vec3::ONE), _affectSpecialisation(AFSP_DEFAULT), _mass(1.0f) {} @@ -200,4 +200,4 @@ void PUAffector::process(PUParticle3D* particle, float delta, bool firstParticle updatePUAffector(particle, delta); } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUAffector.h b/extensions/Particle3D/PU/CCPUAffector.h index d5fa344e0d..a76f174f62 100644 --- a/extensions/Particle3D/PU/CCPUAffector.h +++ b/extensions/Particle3D/PU/CCPUAffector.h @@ -33,7 +33,7 @@ #include #include -NS_CC_BEGIN +NS_AX_BEGIN struct PUParticle3D; class PUParticleSystem3D; @@ -143,6 +143,6 @@ protected: float _mass; }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUAffectorManager.cpp b/extensions/Particle3D/PU/CCPUAffectorManager.cpp index 606ecb2ffa..7c6212cc8a 100644 --- a/extensions/Particle3D/PU/CCPUAffectorManager.cpp +++ b/extensions/Particle3D/PU/CCPUAffectorManager.cpp @@ -52,7 +52,7 @@ #include "extensions/Particle3D/PU/CCPUVelocityMatchingAffector.h" #include "extensions/Particle3D/PU/CCPUVortexAffector.h" -NS_CC_BEGIN +NS_AX_BEGIN PUAffectorManager::PUAffectorManager() {} PUAffectorManager::~PUAffectorManager() {} @@ -281,4 +281,4 @@ PUAffector* PUAffectorManager::createAffector(std::string_view type) return nullptr; } -NS_CC_END \ No newline at end of file +NS_AX_END \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUAffectorManager.h b/extensions/Particle3D/PU/CCPUAffectorManager.h index 554d0ba75b..86979b25cc 100644 --- a/extensions/Particle3D/PU/CCPUAffectorManager.h +++ b/extensions/Particle3D/PU/CCPUAffectorManager.h @@ -57,7 +57,7 @@ #include "extensions/Particle3D/PU/CCPUVelocityMatchingAffectorTranslator.h" #include "extensions/Particle3D/PU/CCPUVortexAffectorTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN class CC_EX_DLL PUAffectorManager { @@ -101,6 +101,6 @@ protected: PUVortexAffectorTranslator _vortexAffectorTranslator; }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUAffectorTranslator.cpp b/extensions/Particle3D/PU/CCPUAffectorTranslator.cpp index 3f8fd739fa..95bb6479fc 100644 --- a/extensions/Particle3D/PU/CCPUAffectorTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUAffectorTranslator.cpp @@ -28,7 +28,7 @@ #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" #include "extensions/Particle3D/PU/CCPUAffectorManager.h" -NS_CC_BEGIN +NS_AX_BEGIN PUAffectorTranslator::PUAffectorTranslator() : _affector(nullptr) {} //------------------------------------------------------------------------- @@ -191,4 +191,4 @@ void PUAffectorTranslator::translate(PUScriptCompiler* compiler, PUAbstractNode* } } -NS_CC_END \ No newline at end of file +NS_AX_END \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUAffectorTranslator.h b/extensions/Particle3D/PU/CCPUAffectorTranslator.h index 175d6af135..8abfb0261b 100644 --- a/extensions/Particle3D/PU/CCPUAffectorTranslator.h +++ b/extensions/Particle3D/PU/CCPUAffectorTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUAffector.h" -NS_CC_BEGIN +NS_AX_BEGIN class CC_EX_DLL PUAffectorTranslator : public PUScriptTranslator { @@ -44,6 +44,6 @@ public: virtual void translate(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif /* defined(__cocos2d_libs__CCParticle3DAffectorTranslator__) */ diff --git a/extensions/Particle3D/PU/CCPUAlignAffector.cpp b/extensions/Particle3D/PU/CCPUAlignAffector.cpp index ba719f2459..d41c7f654b 100644 --- a/extensions/Particle3D/PU/CCPUAlignAffector.cpp +++ b/extensions/Particle3D/PU/CCPUAlignAffector.cpp @@ -27,7 +27,7 @@ #include "CCPUAlignAffector.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN // Constants const bool PUAlignAffector::DEFAULT_RESIZE = false; @@ -90,4 +90,4 @@ void PUAlignAffector::copyAttributesTo(PUAffector* affector) alignAffector->_resize = _resize; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUAlignAffector.h b/extensions/Particle3D/PU/CCPUAlignAffector.h index 9ea3a865ca..478382ac9d 100644 --- a/extensions/Particle3D/PU/CCPUAlignAffector.h +++ b/extensions/Particle3D/PU/CCPUAlignAffector.h @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUAffector.h" -NS_CC_BEGIN +NS_AX_BEGIN class CC_EX_DLL PUAlignAffector : public PUAffector { @@ -60,6 +60,6 @@ protected: bool _resize; PUParticle3D* _previousParticle; }; -NS_CC_END +NS_AX_END #endif \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUAlignAffectorTranslator.cpp b/extensions/Particle3D/PU/CCPUAlignAffectorTranslator.cpp index f602a64567..a0618107cc 100644 --- a/extensions/Particle3D/PU/CCPUAlignAffectorTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUAlignAffectorTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUAlignAffectorTranslator::PUAlignAffectorTranslator() {} //------------------------------------------------------------------------- @@ -73,4 +73,4 @@ bool PUAlignAffectorTranslator::translateChildObject(PUScriptCompiler* /*compile return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUAlignAffectorTranslator.h b/extensions/Particle3D/PU/CCPUAlignAffectorTranslator.h index 864cbf9019..f0437c70ef 100644 --- a/extensions/Particle3D/PU/CCPUAlignAffectorTranslator.h +++ b/extensions/Particle3D/PU/CCPUAlignAffectorTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUAlignAffector.h" -NS_CC_BEGIN +NS_AX_BEGIN class CC_EX_DLL PUAlignAffectorTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUBaseCollider.cpp b/extensions/Particle3D/PU/CCPUBaseCollider.cpp index 56df786791..6d74ffb453 100644 --- a/extensions/Particle3D/PU/CCPUBaseCollider.cpp +++ b/extensions/Particle3D/PU/CCPUBaseCollider.cpp @@ -27,7 +27,7 @@ #include "CCPUBaseCollider.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN // Constants const float PUBaseCollider::DEFAULT_BOUNCYNESS = 1.0f; @@ -127,4 +127,4 @@ void PUBaseCollider::copyAttributesTo(PUAffector* affector) baseCollider->_collisionType = _collisionType; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUBaseCollider.h b/extensions/Particle3D/PU/CCPUBaseCollider.h index 3291d3f372..739c92c621 100644 --- a/extensions/Particle3D/PU/CCPUBaseCollider.h +++ b/extensions/Particle3D/PU/CCPUBaseCollider.h @@ -30,7 +30,7 @@ #include "extensions/Particle3D/PU/CCPUAffector.h" #include "3d/CCAABB.h" -NS_CC_BEGIN +NS_AX_BEGIN struct PUParticle3D; class CC_EX_DLL PUBaseCollider : public PUAffector @@ -124,6 +124,6 @@ protected: CollisionType _collisionType; float _velocityScale; // Value set in the particle system, but stored in the collider for convenience. }; -NS_CC_END +NS_AX_END #endif \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUBaseColliderTranslator.cpp b/extensions/Particle3D/PU/CCPUBaseColliderTranslator.cpp index 30f64f4a40..1115242a7f 100644 --- a/extensions/Particle3D/PU/CCPUBaseColliderTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUBaseColliderTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUBaseColliderTranslator::PUBaseColliderTranslator() {} //------------------------------------------------------------------------- @@ -137,4 +137,4 @@ bool PUBaseColliderTranslator::translateChildObject(PUScriptCompiler* /*compiler return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUBaseColliderTranslator.h b/extensions/Particle3D/PU/CCPUBaseColliderTranslator.h index 37a7b9d369..cee8a94671 100644 --- a/extensions/Particle3D/PU/CCPUBaseColliderTranslator.h +++ b/extensions/Particle3D/PU/CCPUBaseColliderTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUBaseCollider.h" -NS_CC_BEGIN +NS_AX_BEGIN class CC_EX_DLL PUBaseColliderTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUBaseForceAffector.cpp b/extensions/Particle3D/PU/CCPUBaseForceAffector.cpp index 18f66ab433..b8a4fa29f8 100644 --- a/extensions/Particle3D/PU/CCPUBaseForceAffector.cpp +++ b/extensions/Particle3D/PU/CCPUBaseForceAffector.cpp @@ -27,7 +27,7 @@ #include "CCPUBaseForceAffector.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN // Constants const Vec3 PUBaseForceAffector::DEFAULT_FORCE_VECTOR(0, 0, 0); @@ -69,4 +69,4 @@ void PUBaseForceAffector::copyAttributesTo(PUAffector* affector) baseForceAffector->_forceApplication = _forceApplication; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUBaseForceAffector.h b/extensions/Particle3D/PU/CCPUBaseForceAffector.h index b7a3831fe2..05358425e1 100644 --- a/extensions/Particle3D/PU/CCPUBaseForceAffector.h +++ b/extensions/Particle3D/PU/CCPUBaseForceAffector.h @@ -30,7 +30,7 @@ #include "math/CCMath.h" #include "extensions/Particle3D/PU/CCPUAffector.h" -NS_CC_BEGIN +NS_AX_BEGIN class CC_EX_DLL PUBaseForceAffector : public PUAffector { @@ -65,6 +65,6 @@ protected: Vec3 _scaledVector; ForceApplication _forceApplication; }; -NS_CC_END +NS_AX_END #endif \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUBaseForceAffectorTranslator.cpp b/extensions/Particle3D/PU/CCPUBaseForceAffectorTranslator.cpp index 0c61173fb2..5f988a4256 100644 --- a/extensions/Particle3D/PU/CCPUBaseForceAffectorTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUBaseForceAffectorTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUBaseForceAffectorTranslator::PUBaseForceAffectorTranslator() {} //------------------------------------------------------------------------- @@ -113,4 +113,4 @@ bool PUBaseForceAffectorTranslator::translateChildObject(PUScriptCompiler* /*com return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUBaseForceAffectorTranslator.h b/extensions/Particle3D/PU/CCPUBaseForceAffectorTranslator.h index d9a327899f..101eca3c83 100644 --- a/extensions/Particle3D/PU/CCPUBaseForceAffectorTranslator.h +++ b/extensions/Particle3D/PU/CCPUBaseForceAffectorTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUBaseForceAffector.h" -NS_CC_BEGIN +NS_AX_BEGIN class CC_EX_DLL PUBaseForceAffectorTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUBeamRender.cpp b/extensions/Particle3D/PU/CCPUBeamRender.cpp index 0d7c31989c..b8696c2be6 100644 --- a/extensions/Particle3D/PU/CCPUBeamRender.cpp +++ b/extensions/Particle3D/PU/CCPUBeamRender.cpp @@ -39,7 +39,7 @@ #include "2d/CCCamera.h" #include -NS_CC_BEGIN +NS_AX_BEGIN // Constants const bool PUBeamRender::DEFAULT_USE_VERTEX_COLOURS = false; @@ -373,4 +373,4 @@ void PUBeamRender::copyAttributesTo(PUBeamRender* beamRender) beamRender->setTexCoordDirection(_texCoordDirection); } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUBeamRender.h b/extensions/Particle3D/PU/CCPUBeamRender.h index ae0ffcfafd..cb567edd5f 100644 --- a/extensions/Particle3D/PU/CCPUBeamRender.h +++ b/extensions/Particle3D/PU/CCPUBeamRender.h @@ -35,7 +35,7 @@ #include "extensions/Particle3D/PU/CCPURender.h" #include -NS_CC_BEGIN +NS_AX_BEGIN class PUParticle3DBeamVisualData : public Ref { @@ -146,5 +146,5 @@ protected: PUBillboardChain::TexCoordDirection _texCoordDirection; }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUBehaviour.cpp b/extensions/Particle3D/PU/CCPUBehaviour.cpp index 0cc3461e3f..b90a348317 100644 --- a/extensions/Particle3D/PU/CCPUBehaviour.cpp +++ b/extensions/Particle3D/PU/CCPUBehaviour.cpp @@ -27,7 +27,7 @@ #include "extensions/Particle3D/PU/CCPUBehaviour.h" #include "base/ccMacros.h" -NS_CC_BEGIN +NS_AX_BEGIN PUBehaviour::PUBehaviour(void) : _particleSystem(nullptr), _behaviourScale(Vec3::ONE) {} @@ -54,4 +54,4 @@ void PUBehaviour::copyAttributesTo(PUBehaviour* behaviour) behaviour->_behaviourScale = _behaviourScale; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUBehaviour.h b/extensions/Particle3D/PU/CCPUBehaviour.h index 515de602a3..37e5dc4edc 100644 --- a/extensions/Particle3D/PU/CCPUBehaviour.h +++ b/extensions/Particle3D/PU/CCPUBehaviour.h @@ -33,7 +33,7 @@ #include #include -NS_CC_BEGIN +NS_AX_BEGIN struct PUParticle3D; class PUParticleSystem3D; @@ -83,6 +83,6 @@ protected: Vec3 _behaviourScale; }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUBehaviourManager.cpp b/extensions/Particle3D/PU/CCPUBehaviourManager.cpp index 096694d387..6c42df950e 100644 --- a/extensions/Particle3D/PU/CCPUBehaviourManager.cpp +++ b/extensions/Particle3D/PU/CCPUBehaviourManager.cpp @@ -27,7 +27,7 @@ #include "CCPUBehaviourManager.h" #include "extensions/Particle3D/PU/CCPUSlaveBehaviour.h" -NS_CC_BEGIN +NS_AX_BEGIN PUBehaviourManager::PUBehaviourManager() {} PUBehaviourManager::~PUBehaviourManager() {} @@ -56,4 +56,4 @@ PUBehaviour* PUBehaviourManager::createBehaviour(std::string_view type) return nullptr; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUBehaviourManager.h b/extensions/Particle3D/PU/CCPUBehaviourManager.h index 565c26de62..f56d3085d3 100644 --- a/extensions/Particle3D/PU/CCPUBehaviourManager.h +++ b/extensions/Particle3D/PU/CCPUBehaviourManager.h @@ -32,7 +32,7 @@ #include "extensions/Particle3D/PU/CCPUBehaviour.h" #include "extensions/Particle3D/PU/CCPUSlaveBehaviourTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUBehaviourManager { @@ -51,6 +51,6 @@ protected: PUSlaveBehaviourTranslator _slaveBehaviourTranslator; }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUBehaviourTranslator.cpp b/extensions/Particle3D/PU/CCPUBehaviourTranslator.cpp index ca72fa4636..93369d8363 100644 --- a/extensions/Particle3D/PU/CCPUBehaviourTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUBehaviourTranslator.cpp @@ -28,7 +28,7 @@ #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" #include "extensions/Particle3D/PU/CCPUBehaviourManager.h" -NS_CC_BEGIN +NS_AX_BEGIN PUBehaviourTranslator::PUBehaviourTranslator() : _behaviour(nullptr) {} //------------------------------------------------------------------------- @@ -119,4 +119,4 @@ void PUBehaviourTranslator::translate(PUScriptCompiler* compiler, PUAbstractNode } } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUBehaviourTranslator.h b/extensions/Particle3D/PU/CCPUBehaviourTranslator.h index 732e6cc379..7b5a3a91c5 100644 --- a/extensions/Particle3D/PU/CCPUBehaviourTranslator.h +++ b/extensions/Particle3D/PU/CCPUBehaviourTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUBehaviour.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUBehaviourTranslator : public PUScriptTranslator { @@ -44,6 +44,6 @@ public: virtual void translate(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif /* defined(__cocos2d_libs__CCParticle3DAffectorTranslator__) */ diff --git a/extensions/Particle3D/PU/CCPUBillboardChain.cpp b/extensions/Particle3D/PU/CCPUBillboardChain.cpp index 5eaabb8092..fff5ec20ff 100644 --- a/extensions/Particle3D/PU/CCPUBillboardChain.cpp +++ b/extensions/Particle3D/PU/CCPUBillboardChain.cpp @@ -38,7 +38,7 @@ #include "2d/CCCamera.h" #include "3d/CCMeshRenderer.h" -NS_CC_BEGIN +NS_AX_BEGIN const size_t PUBillboardChain::SEGMENT_EMPTY = std::numeric_limits::max(); //----------------------------------------------------------------------- @@ -805,4 +805,4 @@ void PUBillboardChain::onAfterDraw() //} //--------------------------------------------------------------------- -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUBillboardChain.h b/extensions/Particle3D/PU/CCPUBillboardChain.h index 2dac717c4b..c13ee56504 100644 --- a/extensions/Particle3D/PU/CCPUBillboardChain.h +++ b/extensions/Particle3D/PU/CCPUBillboardChain.h @@ -34,7 +34,7 @@ #include "base/CCRef.h" #include "math/CCMath.h" -NS_CC_BEGIN +NS_AX_BEGIN class MeshCommand; class GLProgramState; @@ -339,4 +339,4 @@ protected: bool _rendererDepthWrite = false; }; -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUBoxCollider.cpp b/extensions/Particle3D/PU/CCPUBoxCollider.cpp index 9a07fde8ff..5279de34dc 100644 --- a/extensions/Particle3D/PU/CCPUBoxCollider.cpp +++ b/extensions/Particle3D/PU/CCPUBoxCollider.cpp @@ -27,7 +27,7 @@ #include "CCPUBoxCollider.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN // Constants const float PUBoxCollider::DEFAULT_WIDTH = 100.0f; @@ -280,4 +280,4 @@ void PUBoxCollider::copyAttributesTo(PUAffector* affector) boxCollider->_innerCollision = _innerCollision; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUBoxCollider.h b/extensions/Particle3D/PU/CCPUBoxCollider.h index 49d94f7145..7fb7f3f90e 100644 --- a/extensions/Particle3D/PU/CCPUBoxCollider.h +++ b/extensions/Particle3D/PU/CCPUBoxCollider.h @@ -29,7 +29,7 @@ #include "CCPUBaseCollider.h" -NS_CC_BEGIN +NS_AX_BEGIN class CC_EX_DLL PUBoxCollider : public PUBaseCollider { @@ -110,6 +110,6 @@ protected: Vec3 _predictedPosition; bool _innerCollision; }; -NS_CC_END +NS_AX_END #endif \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUBoxColliderTranslator.cpp b/extensions/Particle3D/PU/CCPUBoxColliderTranslator.cpp index e0692c8b98..ace7496d4d 100644 --- a/extensions/Particle3D/PU/CCPUBoxColliderTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUBoxColliderTranslator.cpp @@ -30,7 +30,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" #include "extensions/Particle3D/PU/CCPUBaseColliderTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUBoxColliderTranslator::PUBoxColliderTranslator() {} //------------------------------------------------------------------------- @@ -147,4 +147,4 @@ bool PUBoxColliderTranslator::translateChildObject(PUScriptCompiler* /*compiler* return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUBoxColliderTranslator.h b/extensions/Particle3D/PU/CCPUBoxColliderTranslator.h index d9c48849ff..943108edca 100644 --- a/extensions/Particle3D/PU/CCPUBoxColliderTranslator.h +++ b/extensions/Particle3D/PU/CCPUBoxColliderTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUBoxCollider.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUBoxColliderTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUBoxEmitter.cpp b/extensions/Particle3D/PU/CCPUBoxEmitter.cpp index 8a547f0eea..3c33a6e16f 100644 --- a/extensions/Particle3D/PU/CCPUBoxEmitter.cpp +++ b/extensions/Particle3D/PU/CCPUBoxEmitter.cpp @@ -27,7 +27,7 @@ #include "CCPUBoxEmitter.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN // Constants const float CCPUBoxEmitter::DEFAULT_WIDTH = 100.0f; @@ -130,4 +130,4 @@ CCPUBoxEmitter* CCPUBoxEmitter::clone() return be; } -NS_CC_END \ No newline at end of file +NS_AX_END \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUBoxEmitter.h b/extensions/Particle3D/PU/CCPUBoxEmitter.h index dbe1fdd3d6..146c65fcef 100644 --- a/extensions/Particle3D/PU/CCPUBoxEmitter.h +++ b/extensions/Particle3D/PU/CCPUBoxEmitter.h @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUEmitter.h" -NS_CC_BEGIN +NS_AX_BEGIN class CC_EX_DLL CCPUBoxEmitter : public PUEmitter { @@ -76,6 +76,6 @@ protected: float _yRange; float _zRange; }; -NS_CC_END +NS_AX_END #endif \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUBoxEmitterTranslator.cpp b/extensions/Particle3D/PU/CCPUBoxEmitterTranslator.cpp index b70810ac30..37b17ed990 100644 --- a/extensions/Particle3D/PU/CCPUBoxEmitterTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUBoxEmitterTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN CCPUBoxEmitterTranslator::CCPUBoxEmitterTranslator() {} //------------------------------------------------------------------------- @@ -127,4 +127,4 @@ bool CCPUBoxEmitterTranslator::translateChildObject(PUScriptCompiler* /*compiler return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUBoxEmitterTranslator.h b/extensions/Particle3D/PU/CCPUBoxEmitterTranslator.h index 4d32deac58..8c35623e86 100644 --- a/extensions/Particle3D/PU/CCPUBoxEmitterTranslator.h +++ b/extensions/Particle3D/PU/CCPUBoxEmitterTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUBoxEmitter.h" -NS_CC_BEGIN +NS_AX_BEGIN class CCPUBoxEmitterTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif /* defined(__cocos2d_libs__CCParticle3DAffectorTranslator__) */ diff --git a/extensions/Particle3D/PU/CCPUCircleEmitter.cpp b/extensions/Particle3D/PU/CCPUCircleEmitter.cpp index a13c072478..a5a2f0ee52 100644 --- a/extensions/Particle3D/PU/CCPUCircleEmitter.cpp +++ b/extensions/Particle3D/PU/CCPUCircleEmitter.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUUtil.h" #include "base/ccRandom.h" -NS_CC_BEGIN +NS_AX_BEGIN // Constants const float PUCircleEmitter::DEFAULT_RADIUS = 100.0f; @@ -122,7 +122,7 @@ void PUCircleEmitter::initParticlePosition(PUParticle3D* particle) if (_random) { // Choose a random position on the circle. - angle = cocos2d::random(0.0, M_PI * 2.0); + angle = axis::random(0.0, M_PI * 2.0); } else { @@ -193,7 +193,7 @@ PUCircleEmitter* PUCircleEmitter::create() return pe; } -cocos2d::Quaternion PUCircleEmitter::getRotationTo(const Vec3& src, +axis::Quaternion PUCircleEmitter::getRotationTo(const Vec3& src, const Vec3& dest, const Vec3& fallbackAxis /*= Vec3::ZERO*/) const { @@ -272,4 +272,4 @@ PUCircleEmitter* PUCircleEmitter::clone() return be; } -NS_CC_END \ No newline at end of file +NS_AX_END \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUCircleEmitter.h b/extensions/Particle3D/PU/CCPUCircleEmitter.h index 5c2b1a8145..e101d3c3e5 100644 --- a/extensions/Particle3D/PU/CCPUCircleEmitter.h +++ b/extensions/Particle3D/PU/CCPUCircleEmitter.h @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUEmitter.h" -NS_CC_BEGIN +NS_AX_BEGIN class CC_EX_DLL PUCircleEmitter : public PUEmitter { @@ -101,6 +101,6 @@ protected: Quaternion _orientation; Vec3 _normal; }; -NS_CC_END +NS_AX_END #endif \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUCircleEmitterTranslator.cpp b/extensions/Particle3D/PU/CCPUCircleEmitterTranslator.cpp index 9b6ab88d00..23522dbd5f 100644 --- a/extensions/Particle3D/PU/CCPUCircleEmitterTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUCircleEmitterTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUCircleEmitterTranslator::PUCircleEmitterTranslator() {} //------------------------------------------------------------------------- @@ -177,4 +177,4 @@ bool PUCircleEmitterTranslator::translateChildObject(PUScriptCompiler* /*compile return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUCircleEmitterTranslator.h b/extensions/Particle3D/PU/CCPUCircleEmitterTranslator.h index 60bab54754..5e03d54b00 100644 --- a/extensions/Particle3D/PU/CCPUCircleEmitterTranslator.h +++ b/extensions/Particle3D/PU/CCPUCircleEmitterTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUCircleEmitter.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUCircleEmitterTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif /* defined(__cocos2d_libs__CCParticle3DAffectorTranslator__) */ diff --git a/extensions/Particle3D/PU/CCPUCollisionAvoidanceAffector.cpp b/extensions/Particle3D/PU/CCPUCollisionAvoidanceAffector.cpp index f3d901a6fa..d97cc45900 100644 --- a/extensions/Particle3D/PU/CCPUCollisionAvoidanceAffector.cpp +++ b/extensions/Particle3D/PU/CCPUCollisionAvoidanceAffector.cpp @@ -27,7 +27,7 @@ #include "CCPUCollisionAvoidanceAffector.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN // Constants const float PUCollisionAvoidanceAffector::DEFAULT_RADIUS = 100.0f; @@ -102,4 +102,4 @@ void PUCollisionAvoidanceAffector::copyAttributesTo(PUAffector* affector) collisionAvoidanceAffector->_radius = _radius; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUCollisionAvoidanceAffector.h b/extensions/Particle3D/PU/CCPUCollisionAvoidanceAffector.h index 0fe0ac850b..0ce443269f 100644 --- a/extensions/Particle3D/PU/CCPUCollisionAvoidanceAffector.h +++ b/extensions/Particle3D/PU/CCPUCollisionAvoidanceAffector.h @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUAffector.h" -NS_CC_BEGIN +NS_AX_BEGIN class CC_EX_DLL PUCollisionAvoidanceAffector : public PUAffector { @@ -57,6 +57,6 @@ public: protected: float _radius; }; -NS_CC_END +NS_AX_END #endif \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUCollisionAvoidanceAffectorTranslator.cpp b/extensions/Particle3D/PU/CCPUCollisionAvoidanceAffectorTranslator.cpp index 927e69de08..31260f2664 100644 --- a/extensions/Particle3D/PU/CCPUCollisionAvoidanceAffectorTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUCollisionAvoidanceAffectorTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUCollisionAvoidanceAffectorTranslator::PUCollisionAvoidanceAffectorTranslator() {} //------------------------------------------------------------------------- @@ -62,4 +62,4 @@ bool PUCollisionAvoidanceAffectorTranslator::translateChildObject(PUScriptCompil return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUCollisionAvoidanceAffectorTranslator.h b/extensions/Particle3D/PU/CCPUCollisionAvoidanceAffectorTranslator.h index 14f9cf6edb..bb16906a5c 100644 --- a/extensions/Particle3D/PU/CCPUCollisionAvoidanceAffectorTranslator.h +++ b/extensions/Particle3D/PU/CCPUCollisionAvoidanceAffectorTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUCollisionAvoidanceAffector.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUCollisionAvoidanceAffectorTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUColorAffector.cpp b/extensions/Particle3D/PU/CCPUColorAffector.cpp index 554d157c47..5d76dc4e0c 100644 --- a/extensions/Particle3D/PU/CCPUColorAffector.cpp +++ b/extensions/Particle3D/PU/CCPUColorAffector.cpp @@ -27,7 +27,7 @@ #include "CCPUColorAffector.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN // Constants const PUColorAffector::ColorOperation PUColorAffector::DEFAULT_COLOR_OPERATION = PUColorAffector::CAO_SET; @@ -138,4 +138,4 @@ void PUColorAffector::copyAttributesTo(PUAffector* affector) colourAffector->_colorOperation = _colorOperation; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUColorAffector.h b/extensions/Particle3D/PU/CCPUColorAffector.h index cdb9b7376b..e9ae4841d0 100644 --- a/extensions/Particle3D/PU/CCPUColorAffector.h +++ b/extensions/Particle3D/PU/CCPUColorAffector.h @@ -31,7 +31,7 @@ #include "base/ccTypes.h" #include -NS_CC_BEGIN +NS_AX_BEGIN class CC_EX_DLL PUColorAffector : public PUAffector { @@ -85,6 +85,6 @@ protected: ColorMap _colorMap; ColorOperation _colorOperation; }; -NS_CC_END +NS_AX_END #endif \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUColorAffectorTranslator.cpp b/extensions/Particle3D/PU/CCPUColorAffectorTranslator.cpp index 692fb9bbe9..79a523c67b 100644 --- a/extensions/Particle3D/PU/CCPUColorAffectorTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUColorAffectorTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUColorAffectorTranslator::PUColorAffectorTranslator() {} //------------------------------------------------------------------------- @@ -109,4 +109,4 @@ bool PUColorAffectorTranslator::translateChildObject(PUScriptCompiler* /*compile return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUColorAffectorTranslator.h b/extensions/Particle3D/PU/CCPUColorAffectorTranslator.h index 0b40daaa60..2fe9683a64 100644 --- a/extensions/Particle3D/PU/CCPUColorAffectorTranslator.h +++ b/extensions/Particle3D/PU/CCPUColorAffectorTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUColorAffector.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUColorAffectorTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUDoAffectorEventHandler.cpp b/extensions/Particle3D/PU/CCPUDoAffectorEventHandler.cpp index c3204e6f79..212f4facce 100644 --- a/extensions/Particle3D/PU/CCPUDoAffectorEventHandler.cpp +++ b/extensions/Particle3D/PU/CCPUDoAffectorEventHandler.cpp @@ -28,7 +28,7 @@ #include "extensions/Particle3D/PU/CCPUAffector.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN // Constants const bool PUDoAffectorEventHandler::DEFAULT_PRE_POST = false; @@ -91,4 +91,4 @@ void PUDoAffectorEventHandler::copyAttributesTo(PUEventHandler* eventHandler) doAffectorEventHandler->setPrePost(_prePost); } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUDoAffectorEventHandler.h b/extensions/Particle3D/PU/CCPUDoAffectorEventHandler.h index 3dc9d7c381..f0770e81dc 100644 --- a/extensions/Particle3D/PU/CCPUDoAffectorEventHandler.h +++ b/extensions/Particle3D/PU/CCPUDoAffectorEventHandler.h @@ -33,7 +33,7 @@ #include #include -NS_CC_BEGIN +NS_AX_BEGIN struct PUParticle3D; class PUObserver; @@ -84,6 +84,6 @@ protected: bool _prePost; }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUDoAffectorEventHandlerTranslator.cpp b/extensions/Particle3D/PU/CCPUDoAffectorEventHandlerTranslator.cpp index 5706dd0a5a..bc97ec1259 100644 --- a/extensions/Particle3D/PU/CCPUDoAffectorEventHandlerTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUDoAffectorEventHandlerTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUDoAffectorEventHandlerTranslator::PUDoAffectorEventHandlerTranslator() {} //------------------------------------------------------------------------- @@ -75,4 +75,4 @@ bool PUDoAffectorEventHandlerTranslator::translateChildObject(PUScriptCompiler* return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUDoAffectorEventHandlerTranslator.h b/extensions/Particle3D/PU/CCPUDoAffectorEventHandlerTranslator.h index 0081053b6d..2595f85277 100644 --- a/extensions/Particle3D/PU/CCPUDoAffectorEventHandlerTranslator.h +++ b/extensions/Particle3D/PU/CCPUDoAffectorEventHandlerTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUDoAffectorEventHandler.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUDoAffectorEventHandlerTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUDoEnableComponentEventHandler.cpp b/extensions/Particle3D/PU/CCPUDoEnableComponentEventHandler.cpp index be8f492b92..b7fb46cbaa 100644 --- a/extensions/Particle3D/PU/CCPUDoEnableComponentEventHandler.cpp +++ b/extensions/Particle3D/PU/CCPUDoEnableComponentEventHandler.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUEmitter.h" #include "extensions/Particle3D/PU/CCPUObserver.h" -NS_CC_BEGIN +NS_AX_BEGIN //----------------------------------------------------------------------- PUDoEnableComponentEventHandler::PUDoEnableComponentEventHandler() : PUEventHandler(), _componentType(CT_EMITTER), _componentEnabled(true) @@ -178,4 +178,4 @@ void PUDoEnableComponentEventHandler::copyAttributesTo(PUEventHandler* eventHand doEnableComponentEventHandler->setComponentEnabled(_componentEnabled); } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUDoEnableComponentEventHandler.h b/extensions/Particle3D/PU/CCPUDoEnableComponentEventHandler.h index db6a99793c..3404cd65c3 100644 --- a/extensions/Particle3D/PU/CCPUDoEnableComponentEventHandler.h +++ b/extensions/Particle3D/PU/CCPUDoEnableComponentEventHandler.h @@ -34,7 +34,7 @@ #include #include -NS_CC_BEGIN +NS_AX_BEGIN struct PUParticle3D; class PUObserver; @@ -94,6 +94,6 @@ protected: bool _componentEnabled; }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUDoEnableComponentEventHandlerTranslator.cpp b/extensions/Particle3D/PU/CCPUDoEnableComponentEventHandlerTranslator.cpp index d49f21f939..093ca690ef 100644 --- a/extensions/Particle3D/PU/CCPUDoEnableComponentEventHandlerTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUDoEnableComponentEventHandlerTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUDoEnableComponentEventHandlerTranslator::PUDoEnableComponentEventHandlerTranslator() {} //------------------------------------------------------------------------- @@ -91,4 +91,4 @@ bool PUDoEnableComponentEventHandlerTranslator::translateChildObject(PUScriptCom return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUDoEnableComponentEventHandlerTranslator.h b/extensions/Particle3D/PU/CCPUDoEnableComponentEventHandlerTranslator.h index 10b034bfba..deaa3a711d 100644 --- a/extensions/Particle3D/PU/CCPUDoEnableComponentEventHandlerTranslator.h +++ b/extensions/Particle3D/PU/CCPUDoEnableComponentEventHandlerTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUDoEnableComponentEventHandler.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUDoEnableComponentEventHandlerTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUDoExpireEventHandler.cpp b/extensions/Particle3D/PU/CCPUDoExpireEventHandler.cpp index a8cd027269..e1998eafcb 100644 --- a/extensions/Particle3D/PU/CCPUDoExpireEventHandler.cpp +++ b/extensions/Particle3D/PU/CCPUDoExpireEventHandler.cpp @@ -28,7 +28,7 @@ #include "extensions/Particle3D/PU/CCPUAffector.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN //----------------------------------------------------------------------- void PUDoExpireEventHandler::handle(PUParticleSystem3D* /*particleSystem*/, @@ -48,4 +48,4 @@ PUDoExpireEventHandler* PUDoExpireEventHandler::create() return peh; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUDoExpireEventHandler.h b/extensions/Particle3D/PU/CCPUDoExpireEventHandler.h index ee3182a4e7..97780aada0 100644 --- a/extensions/Particle3D/PU/CCPUDoExpireEventHandler.h +++ b/extensions/Particle3D/PU/CCPUDoExpireEventHandler.h @@ -33,7 +33,7 @@ #include #include -NS_CC_BEGIN +NS_AX_BEGIN struct PUParticle3D; class PUObserver; @@ -60,6 +60,6 @@ public: virtual ~PUDoExpireEventHandler(){}; }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUDoExpireEventHandlerTranslator.cpp b/extensions/Particle3D/PU/CCPUDoExpireEventHandlerTranslator.cpp index c9873ec666..617465323d 100644 --- a/extensions/Particle3D/PU/CCPUDoExpireEventHandlerTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUDoExpireEventHandlerTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUDoExpireEventHandlerTranslator::PUDoExpireEventHandlerTranslator() {} //------------------------------------------------------------------------- @@ -44,4 +44,4 @@ bool PUDoExpireEventHandlerTranslator::translateChildObject(PUScriptCompiler* /* return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUDoExpireEventHandlerTranslator.h b/extensions/Particle3D/PU/CCPUDoExpireEventHandlerTranslator.h index 6ac4547326..ebbeafe75f 100644 --- a/extensions/Particle3D/PU/CCPUDoExpireEventHandlerTranslator.h +++ b/extensions/Particle3D/PU/CCPUDoExpireEventHandlerTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUDoExpireEventHandler.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUDoExpireEventHandlerTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUDoFreezeEventHandler.cpp b/extensions/Particle3D/PU/CCPUDoFreezeEventHandler.cpp index f8a9b10918..8d91292c63 100644 --- a/extensions/Particle3D/PU/CCPUDoFreezeEventHandler.cpp +++ b/extensions/Particle3D/PU/CCPUDoFreezeEventHandler.cpp @@ -28,7 +28,7 @@ #include "extensions/Particle3D/PU/CCPUAffector.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN //----------------------------------------------------------------------- void PUDoFreezeEventHandler::handle(PUParticleSystem3D* /*particleSystem*/, @@ -48,4 +48,4 @@ PUDoFreezeEventHandler* PUDoFreezeEventHandler::create() return peh; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUDoFreezeEventHandler.h b/extensions/Particle3D/PU/CCPUDoFreezeEventHandler.h index 91e42519b0..ec2d6b41ff 100644 --- a/extensions/Particle3D/PU/CCPUDoFreezeEventHandler.h +++ b/extensions/Particle3D/PU/CCPUDoFreezeEventHandler.h @@ -33,7 +33,7 @@ #include #include -NS_CC_BEGIN +NS_AX_BEGIN struct PUParticle3D; class PUObserver; @@ -52,6 +52,6 @@ public: virtual ~PUDoFreezeEventHandler(){}; }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUDoFreezeEventHandlerTranslator.cpp b/extensions/Particle3D/PU/CCPUDoFreezeEventHandlerTranslator.cpp index 61d2115991..9da75846e2 100644 --- a/extensions/Particle3D/PU/CCPUDoFreezeEventHandlerTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUDoFreezeEventHandlerTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUDoFreezeEventHandlerTranslator::PUDoFreezeEventHandlerTranslator() {} //------------------------------------------------------------------------- @@ -44,4 +44,4 @@ bool PUDoFreezeEventHandlerTranslator::translateChildObject(PUScriptCompiler* /* return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUDoFreezeEventHandlerTranslator.h b/extensions/Particle3D/PU/CCPUDoFreezeEventHandlerTranslator.h index 52e65cb454..343b8dab3b 100644 --- a/extensions/Particle3D/PU/CCPUDoFreezeEventHandlerTranslator.h +++ b/extensions/Particle3D/PU/CCPUDoFreezeEventHandlerTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUDoFreezeEventHandler.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUDoFreezeEventHandlerTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUDoPlacementParticleEventHandler.cpp b/extensions/Particle3D/PU/CCPUDoPlacementParticleEventHandler.cpp index 428719ecb8..2c71d7156c 100644 --- a/extensions/Particle3D/PU/CCPUDoPlacementParticleEventHandler.cpp +++ b/extensions/Particle3D/PU/CCPUDoPlacementParticleEventHandler.cpp @@ -28,7 +28,7 @@ #include "extensions/Particle3D/PU/CCPUAffector.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN // Constants const unsigned int PUDoPlacementParticleEventHandler::DEFAULT_NUMBER_OF_PARTICLES = 1; @@ -290,4 +290,4 @@ void PUDoPlacementParticleEventHandler::copyAttributesTo(PUEventHandler* eventHa doPlacementParticleEventHandler->_inheritParticleDepth = _inheritParticleDepth; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUDoPlacementParticleEventHandler.h b/extensions/Particle3D/PU/CCPUDoPlacementParticleEventHandler.h index 9f9741cf2e..2ef7910abe 100644 --- a/extensions/Particle3D/PU/CCPUDoPlacementParticleEventHandler.h +++ b/extensions/Particle3D/PU/CCPUDoPlacementParticleEventHandler.h @@ -34,7 +34,7 @@ #include #include -NS_CC_BEGIN +NS_AX_BEGIN struct PUParticle3D; class PUObserver; @@ -186,6 +186,6 @@ protected: bool _inheritParticleDepth; }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUDoPlacementParticleEventHandlerTranslator.cpp b/extensions/Particle3D/PU/CCPUDoPlacementParticleEventHandlerTranslator.cpp index 705b2a039f..bb46ed5862 100644 --- a/extensions/Particle3D/PU/CCPUDoPlacementParticleEventHandlerTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUDoPlacementParticleEventHandlerTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUDoPlacementParticleEventHandlerTranslator::PUDoPlacementParticleEventHandlerTranslator() {} //------------------------------------------------------------------------- @@ -207,4 +207,4 @@ bool PUDoPlacementParticleEventHandlerTranslator::translateChildObject(PUScriptC return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUDoPlacementParticleEventHandlerTranslator.h b/extensions/Particle3D/PU/CCPUDoPlacementParticleEventHandlerTranslator.h index 9c4c48437c..0e7fedb4e9 100644 --- a/extensions/Particle3D/PU/CCPUDoPlacementParticleEventHandlerTranslator.h +++ b/extensions/Particle3D/PU/CCPUDoPlacementParticleEventHandlerTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUDoPlacementParticleEventHandler.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUDoPlacementParticleEventHandlerTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUDoScaleEventHandler.cpp b/extensions/Particle3D/PU/CCPUDoScaleEventHandler.cpp index 19dcd3cdaa..9ba435a466 100644 --- a/extensions/Particle3D/PU/CCPUDoScaleEventHandler.cpp +++ b/extensions/Particle3D/PU/CCPUDoScaleEventHandler.cpp @@ -27,7 +27,7 @@ #include "extensions/Particle3D/PU/CCPUDoScaleEventHandler.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN // Constants const PUDoScaleEventHandler::ScaleType PUDoScaleEventHandler::DEFAULT_SCALE_TYPE = @@ -91,4 +91,4 @@ void PUDoScaleEventHandler::copyAttributesTo(PUEventHandler* eventHandler) doScaleEventHandler->setScaleType(_scaleType); } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUDoScaleEventHandler.h b/extensions/Particle3D/PU/CCPUDoScaleEventHandler.h index 85f0197ede..1ac2fdf61f 100644 --- a/extensions/Particle3D/PU/CCPUDoScaleEventHandler.h +++ b/extensions/Particle3D/PU/CCPUDoScaleEventHandler.h @@ -33,7 +33,7 @@ #include #include -NS_CC_BEGIN +NS_AX_BEGIN struct PUParticle3D; class PUParticleSystem3D; @@ -84,6 +84,6 @@ protected: ScaleType _scaleType; }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUDoScaleEventHandlerTranslator.cpp b/extensions/Particle3D/PU/CCPUDoScaleEventHandlerTranslator.cpp index 3a1d1b17a8..1c55155915 100644 --- a/extensions/Particle3D/PU/CCPUDoScaleEventHandlerTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUDoScaleEventHandlerTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUDoScaleEventHandlerTranslator::PUDoScaleEventHandlerTranslator() {} //------------------------------------------------------------------------- @@ -83,4 +83,4 @@ bool PUDoScaleEventHandlerTranslator::translateChildObject(PUScriptCompiler* /*c return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUDoScaleEventHandlerTranslator.h b/extensions/Particle3D/PU/CCPUDoScaleEventHandlerTranslator.h index 66e8a55b38..6454f543eb 100644 --- a/extensions/Particle3D/PU/CCPUDoScaleEventHandlerTranslator.h +++ b/extensions/Particle3D/PU/CCPUDoScaleEventHandlerTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUDoScaleEventHandler.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUDoScaleEventHandlerTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUDoStopSystemEventHandler.cpp b/extensions/Particle3D/PU/CCPUDoStopSystemEventHandler.cpp index 1cc07976e2..2d443db77b 100644 --- a/extensions/Particle3D/PU/CCPUDoStopSystemEventHandler.cpp +++ b/extensions/Particle3D/PU/CCPUDoStopSystemEventHandler.cpp @@ -27,7 +27,7 @@ #include "extensions/Particle3D/PU/CCPUDoStopSystemEventHandler.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN //----------------------------------------------------------------------- void PUDoStopSystemEventHandler::handle(PUParticleSystem3D* particleSystem, PUParticle3D* /*particle*/, @@ -45,4 +45,4 @@ PUDoStopSystemEventHandler* PUDoStopSystemEventHandler::create() return peh; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUDoStopSystemEventHandler.h b/extensions/Particle3D/PU/CCPUDoStopSystemEventHandler.h index 89bc835bfe..1dcde9f3bb 100644 --- a/extensions/Particle3D/PU/CCPUDoStopSystemEventHandler.h +++ b/extensions/Particle3D/PU/CCPUDoStopSystemEventHandler.h @@ -33,7 +33,7 @@ #include #include -NS_CC_BEGIN +NS_AX_BEGIN struct PUParticle3D; class PUObserver; @@ -53,6 +53,6 @@ public: virtual ~PUDoStopSystemEventHandler(){}; }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUDoStopSystemEventHandlerTranslator.cpp b/extensions/Particle3D/PU/CCPUDoStopSystemEventHandlerTranslator.cpp index cb5b6f6ca1..f9396d7aef 100644 --- a/extensions/Particle3D/PU/CCPUDoStopSystemEventHandlerTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUDoStopSystemEventHandlerTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUDoStopSystemEventHandlerTranslator::PUDoStopSystemEventHandlerTranslator() {} //------------------------------------------------------------------------- @@ -46,4 +46,4 @@ bool PUDoStopSystemEventHandlerTranslator::translateChildObject(PUScriptCompiler return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUDoStopSystemEventHandlerTranslator.h b/extensions/Particle3D/PU/CCPUDoStopSystemEventHandlerTranslator.h index a90f29b8e6..0b9d6e818b 100644 --- a/extensions/Particle3D/PU/CCPUDoStopSystemEventHandlerTranslator.h +++ b/extensions/Particle3D/PU/CCPUDoStopSystemEventHandlerTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUDoStopSystemEventHandler.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUDoStopSystemEventHandlerTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUDynamicAttribute.cpp b/extensions/Particle3D/PU/CCPUDynamicAttribute.cpp index 7c0540e1ba..16e3c91127 100644 --- a/extensions/Particle3D/PU/CCPUDynamicAttribute.cpp +++ b/extensions/Particle3D/PU/CCPUDynamicAttribute.cpp @@ -28,7 +28,7 @@ #include "base/ccRandom.h" #include "platform/CCStdC.h" -NS_CC_BEGIN +NS_AX_BEGIN //----------------------------------------------------------------------- PUDynamicAttribute::PUDynamicAttribute() {} //----------------------------------------------------------------------- @@ -127,7 +127,7 @@ void PUDynamicAttributeRandom::setMinMax(float min, float max) //----------------------------------------------------------------------- float PUDynamicAttributeRandom::getValue(float /*x*/) { - return cocos2d::random(_min, _max); + return axis::random(_min, _max); } void PUDynamicAttributeRandom::copyAttributesTo(PUDynamicAttribute* dynamicAttribute) @@ -449,4 +449,4 @@ float PUDynamicAttributeHelper::calculate(PUDynamicAttribute* dyn, float x, floa return defaultValue; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUDynamicAttribute.h b/extensions/Particle3D/PU/CCPUDynamicAttribute.h index 1175194e3d..5bbeec74e1 100644 --- a/extensions/Particle3D/PU/CCPUDynamicAttribute.h +++ b/extensions/Particle3D/PU/CCPUDynamicAttribute.h @@ -32,7 +32,7 @@ #include "CCPUSimpleSpline.h" #include -NS_CC_BEGIN +NS_AX_BEGIN enum PUInterpolationType { @@ -327,6 +327,6 @@ public: */ float calculate(PUDynamicAttribute* dyn, float x, float defaultValue = 0.0f); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.cpp b/extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.cpp index aacb8c9acd..4cc22b5574 100644 --- a/extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.cpp @@ -27,7 +27,7 @@ #include "CCPUDynamicAttributeTranslator.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN PUDynamicAttributeTranslator::PUDynamicAttributeTranslator() {} PUDynamicAttributeTranslator::~PUDynamicAttributeTranslator() {} @@ -215,4 +215,4 @@ void PUDynamicAttributeTranslator::translate(PUScriptCompiler* compiler, PUAbstr obj->context = _dynamicAttribute; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h b/extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h index cdbffde840..b26412e3c0 100644 --- a/extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h +++ b/extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptTranslator.h" #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUDynamicAttributeTranslator : public PUScriptTranslator { @@ -44,5 +44,5 @@ public: virtual void translate(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif /* defined(__cocos2d_libs__CCParticle3DRendererTranslator__) */ diff --git a/extensions/Particle3D/PU/CCPUEmitter.cpp b/extensions/Particle3D/PU/CCPUEmitter.cpp index 3449faa0a5..b25a5414ac 100644 --- a/extensions/Particle3D/PU/CCPUEmitter.cpp +++ b/extensions/Particle3D/PU/CCPUEmitter.cpp @@ -28,7 +28,7 @@ #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" #include "extensions/Particle3D/PU/CCPUUtil.h" -NS_CC_BEGIN +NS_AX_BEGIN // Constants const bool PUEmitter::DEFAULT_ENABLED = true; @@ -785,21 +785,21 @@ void PUEmitter::initParticleColor(PUParticle3D* particle) if (_particleColorRangeSet) { if (_particleColorRangeStart.x < _particleColorRangeEnd.x) - particle->color.x = cocos2d::random(_particleColorRangeStart.x, _particleColorRangeEnd.x); + particle->color.x = axis::random(_particleColorRangeStart.x, _particleColorRangeEnd.x); else - particle->color.x = cocos2d::random(_particleColorRangeEnd.x, _particleColorRangeStart.x); + particle->color.x = axis::random(_particleColorRangeEnd.x, _particleColorRangeStart.x); if (_particleColorRangeStart.y < _particleColorRangeEnd.y) - particle->color.y = cocos2d::random(_particleColorRangeStart.y, _particleColorRangeEnd.y); + particle->color.y = axis::random(_particleColorRangeStart.y, _particleColorRangeEnd.y); else - particle->color.y = cocos2d::random(_particleColorRangeEnd.y, _particleColorRangeStart.y); + particle->color.y = axis::random(_particleColorRangeEnd.y, _particleColorRangeStart.y); if (_particleColorRangeStart.z < _particleColorRangeEnd.z) - particle->color.z = cocos2d::random(_particleColorRangeStart.z, _particleColorRangeEnd.z); + particle->color.z = axis::random(_particleColorRangeStart.z, _particleColorRangeEnd.z); else - particle->color.z = cocos2d::random(_particleColorRangeEnd.z, _particleColorRangeStart.z); + particle->color.z = axis::random(_particleColorRangeEnd.z, _particleColorRangeStart.z); if (_particleColorRangeStart.w < _particleColorRangeEnd.w) - particle->color.w = cocos2d::random(_particleColorRangeStart.w, _particleColorRangeEnd.w); + particle->color.w = axis::random(_particleColorRangeStart.w, _particleColorRangeEnd.w); else - particle->color.w = cocos2d::random(_particleColorRangeEnd.w, _particleColorRangeStart.w); + particle->color.w = axis::random(_particleColorRangeEnd.w, _particleColorRangeStart.w); } else { @@ -814,7 +814,7 @@ void PUEmitter::initParticleTextureCoords(PUParticle3D* particle) { if (_particleTextureCoordsRangeSet) { - particle->textureCoordsCurrent = (unsigned short)cocos2d::random( + particle->textureCoordsCurrent = (unsigned short)axis::random( (float)_particleTextureCoordsRangeStart, (float)_particleTextureCoordsRangeEnd + 0.999f); } else @@ -979,4 +979,4 @@ void PUEmitter::copyAttributesTo(PUEmitter* emitter) } } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUEmitter.h b/extensions/Particle3D/PU/CCPUEmitter.h index 2185c00b5e..6eadc7f9f6 100644 --- a/extensions/Particle3D/PU/CCPUEmitter.h +++ b/extensions/Particle3D/PU/CCPUEmitter.h @@ -35,7 +35,7 @@ #include #include -NS_CC_BEGIN +NS_AX_BEGIN struct PUParticle3D; class PUParticleSystem3D; /** @@ -576,6 +576,6 @@ protected: bool _isMarkedForEmission; }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUEmitterManager.cpp b/extensions/Particle3D/PU/CCPUEmitterManager.cpp index 2329aeaf7a..7a9347527a 100644 --- a/extensions/Particle3D/PU/CCPUEmitterManager.cpp +++ b/extensions/Particle3D/PU/CCPUEmitterManager.cpp @@ -34,7 +34,7 @@ #include "extensions/Particle3D/PU/CCPUSlaveEmitter.h" #include "extensions/Particle3D/PU/CCPUSphereSurfaceEmitter.h" -NS_CC_BEGIN +NS_AX_BEGIN PUEmitterManager::PUEmitterManager() {} PUEmitterManager::~PUEmitterManager() {} @@ -127,4 +127,4 @@ PUEmitter* PUEmitterManager::createEmitter(std::string_view type) return nullptr; } -NS_CC_END \ No newline at end of file +NS_AX_END \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUEmitterManager.h b/extensions/Particle3D/PU/CCPUEmitterManager.h index 48a00b8489..d302e6dc2a 100644 --- a/extensions/Particle3D/PU/CCPUEmitterManager.h +++ b/extensions/Particle3D/PU/CCPUEmitterManager.h @@ -39,7 +39,7 @@ #include "extensions/Particle3D/PU/CCPUSlaveEmitterTranslator.h" #include "extensions/Particle3D/PU/CCPUSphereSurfaceEmitterTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUEmitterManager { @@ -65,6 +65,6 @@ protected: PUSphereSurfaceEmitterTranslator _sphereSurfaceEmitterTranlator; }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUEmitterTranslator.cpp b/extensions/Particle3D/PU/CCPUEmitterTranslator.cpp index 3c6766b45d..dbe3937341 100644 --- a/extensions/Particle3D/PU/CCPUEmitterTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUEmitterTranslator.cpp @@ -30,7 +30,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" #include "extensions/Particle3D/PU/CCPUEmitterManager.h" -NS_CC_BEGIN +NS_AX_BEGIN PUEmitterTranslator::PUEmitterTranslator() : _emitter(nullptr) {} //------------------------------------------------------------------------- @@ -645,4 +645,4 @@ void PUEmitterTranslator::translate(PUScriptCompiler* compiler, PUAbstractNode* } } -NS_CC_END \ No newline at end of file +NS_AX_END \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUEmitterTranslator.h b/extensions/Particle3D/PU/CCPUEmitterTranslator.h index 46dfa688e4..676ed8afd4 100644 --- a/extensions/Particle3D/PU/CCPUEmitterTranslator.h +++ b/extensions/Particle3D/PU/CCPUEmitterTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUEmitter.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUEmitterTranslator : public PUScriptTranslator { @@ -44,6 +44,6 @@ public: virtual void translate(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif /* defined(__cocos2d_libs__CCParticle3DAffectorTranslator__) */ diff --git a/extensions/Particle3D/PU/CCPUEventHandler.cpp b/extensions/Particle3D/PU/CCPUEventHandler.cpp index b4959ec7d2..27c6832779 100644 --- a/extensions/Particle3D/PU/CCPUEventHandler.cpp +++ b/extensions/Particle3D/PU/CCPUEventHandler.cpp @@ -27,7 +27,7 @@ #include "Particle3D/PU/CCPUEventHandler.h" #include "Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN PUEventHandler::PUEventHandler() : _parentObserver(0) @@ -44,4 +44,4 @@ void PUEventHandler::copyAttributesTo(PUEventHandler* eventHandler) eventHandler->_eventHandlerScale = _eventHandlerScale; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUEventHandler.h b/extensions/Particle3D/PU/CCPUEventHandler.h index c9e135272e..e5bb16c050 100644 --- a/extensions/Particle3D/PU/CCPUEventHandler.h +++ b/extensions/Particle3D/PU/CCPUEventHandler.h @@ -33,7 +33,7 @@ #include #include "ExtensionExport.h" -NS_CC_BEGIN +NS_AX_BEGIN struct PUParticle3D; class PUObserver; @@ -85,6 +85,6 @@ protected: Vec3 _eventHandlerScale; }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUEventHandlerManager.cpp b/extensions/Particle3D/PU/CCPUEventHandlerManager.cpp index 96dc0b7916..e51b4763c2 100644 --- a/extensions/Particle3D/PU/CCPUEventHandlerManager.cpp +++ b/extensions/Particle3D/PU/CCPUEventHandlerManager.cpp @@ -33,7 +33,7 @@ #include "Particle3D/PU/CCPUDoScaleEventHandler.h" #include "Particle3D/PU/CCPUDoStopSystemEventHandler.h" -NS_CC_BEGIN +NS_AX_BEGIN PUEventHandlerManager::PUEventHandlerManager() {} PUEventHandlerManager::~PUEventHandlerManager() {} @@ -110,4 +110,4 @@ PUEventHandler* PUEventHandlerManager::createEventHandler(std::string_view type) return nullptr; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUEventHandlerManager.h b/extensions/Particle3D/PU/CCPUEventHandlerManager.h index d6ab2643ff..26052cb8b9 100644 --- a/extensions/Particle3D/PU/CCPUEventHandlerManager.h +++ b/extensions/Particle3D/PU/CCPUEventHandlerManager.h @@ -37,7 +37,7 @@ #include "extensions/Particle3D/PU/CCPUDoScaleEventHandlerTranslator.h" #include "extensions/Particle3D/PU/CCPUDoStopSystemEventHandlerTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUEventHandlerManager { public: @@ -61,6 +61,6 @@ protected: PUDoStopSystemEventHandlerTranslator _doStopSystemEventHandlerTranslator; }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUEventHandlerTranslator.cpp b/extensions/Particle3D/PU/CCPUEventHandlerTranslator.cpp index 6b3a4b1fdc..9a7e1c8cfd 100644 --- a/extensions/Particle3D/PU/CCPUEventHandlerTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUEventHandlerTranslator.cpp @@ -29,7 +29,7 @@ #include "Particle3D/PU/CCPUEventHandlerManager.h" #include "Particle3D/PU/CCPUObserver.h" -NS_CC_BEGIN +NS_AX_BEGIN PUEventHandlerTranslator::PUEventHandlerTranslator() : _handler(nullptr) {} //------------------------------------------------------------------------- @@ -121,4 +121,4 @@ void PUEventHandlerTranslator::translate(PUScriptCompiler* compiler, PUAbstractN } } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUEventHandlerTranslator.h b/extensions/Particle3D/PU/CCPUEventHandlerTranslator.h index bdecd559f9..769aecdf96 100644 --- a/extensions/Particle3D/PU/CCPUEventHandlerTranslator.h +++ b/extensions/Particle3D/PU/CCPUEventHandlerTranslator.h @@ -30,7 +30,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUEventHandler.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUEventHandlerTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual void translate(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif /* defined(__cocos2d_libs__CCParticle3DAffectorTranslator__) */ diff --git a/extensions/Particle3D/PU/CCPUFlockCenteringAffector.cpp b/extensions/Particle3D/PU/CCPUFlockCenteringAffector.cpp index 3558d2b3ba..8579745c07 100644 --- a/extensions/Particle3D/PU/CCPUFlockCenteringAffector.cpp +++ b/extensions/Particle3D/PU/CCPUFlockCenteringAffector.cpp @@ -27,7 +27,7 @@ #include "CCPUFlockCenteringAffector.h" #include "Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN //----------------------------------------------------------------------- PUFlockCenteringAffector::PUFlockCenteringAffector() : PUAffector(), _count(0.0f) {} @@ -75,4 +75,4 @@ void PUFlockCenteringAffector::copyAttributesTo(PUAffector* affector) flockCenteringAffector->_count = _count; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUFlockCenteringAffector.h b/extensions/Particle3D/PU/CCPUFlockCenteringAffector.h index 6966822bf0..0910d16caa 100644 --- a/extensions/Particle3D/PU/CCPUFlockCenteringAffector.h +++ b/extensions/Particle3D/PU/CCPUFlockCenteringAffector.h @@ -29,7 +29,7 @@ #include "Particle3D/PU/CCPUAffector.h" -NS_CC_BEGIN +NS_AX_BEGIN class CC_EX_DLL PUFlockCenteringAffector : public PUAffector { @@ -49,6 +49,6 @@ protected: Vec3 _average; float _count; }; -NS_CC_END +NS_AX_END #endif \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUFlockCenteringAffectorTranslator.cpp b/extensions/Particle3D/PU/CCPUFlockCenteringAffectorTranslator.cpp index 55d79b9af5..0729689146 100644 --- a/extensions/Particle3D/PU/CCPUFlockCenteringAffectorTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUFlockCenteringAffectorTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUFlockCenteringAffectorTranslator::PUFlockCenteringAffectorTranslator() {} //------------------------------------------------------------------------- @@ -45,4 +45,4 @@ bool PUFlockCenteringAffectorTranslator::translateChildObject(PUScriptCompiler* return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUFlockCenteringAffectorTranslator.h b/extensions/Particle3D/PU/CCPUFlockCenteringAffectorTranslator.h index d0002373bc..2c6e0cfd48 100644 --- a/extensions/Particle3D/PU/CCPUFlockCenteringAffectorTranslator.h +++ b/extensions/Particle3D/PU/CCPUFlockCenteringAffectorTranslator.h @@ -31,7 +31,7 @@ #include "Particle3D/PU/CCPUScriptCompiler.h" #include "Particle3D/PU/CCPUFlockCenteringAffector.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUFlockCenteringAffectorTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUForceField.cpp b/extensions/Particle3D/PU/CCPUForceField.cpp index 1e57d7446a..ca9da2be97 100644 --- a/extensions/Particle3D/PU/CCPUForceField.cpp +++ b/extensions/Particle3D/PU/CCPUForceField.cpp @@ -26,7 +26,7 @@ #include "CCPUForceField.h" -NS_CC_BEGIN +NS_AX_BEGIN const Vec3 PUForceFieldCalculationFactory::DEFAULT_WORLDSIZE(500.0f, 500.0f, 500.0f); @@ -356,4 +356,4 @@ void PUForceField::setWorldSize(const Vec3& worldSize) } } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUForceField.h b/extensions/Particle3D/PU/CCPUForceField.h index ba00f4ebf5..ca6b58e7c4 100644 --- a/extensions/Particle3D/PU/CCPUForceField.h +++ b/extensions/Particle3D/PU/CCPUForceField.h @@ -31,7 +31,7 @@ #include "math/CCMath.h" #include "CCPUNoise.h" -NS_CC_BEGIN +NS_AX_BEGIN /** Pure virtual ForceFieldCalculationFactory */ @@ -205,6 +205,6 @@ protected: //------------------------------------------------------------------------- //------------------------------------------------------------------------- -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUForceFieldAffector.cpp b/extensions/Particle3D/PU/CCPUForceFieldAffector.cpp index 773b6ac175..a65639fa22 100644 --- a/extensions/Particle3D/PU/CCPUForceFieldAffector.cpp +++ b/extensions/Particle3D/PU/CCPUForceFieldAffector.cpp @@ -27,7 +27,7 @@ #include "CCPUForceFieldAffector.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN //----------------------------------------------------------------------- // Constants const PUForceField::ForceFieldType PUForceFieldAffector::DEFAULT_FORCEFIELD_TYPE = PUForceField::FF_REALTIME_CALC; @@ -333,4 +333,4 @@ void PUForceFieldAffector::copyAttributesTo(PUAffector* affector) forceFieldAffector->_movement = _movement; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUForceFieldAffector.h b/extensions/Particle3D/PU/CCPUForceFieldAffector.h index 1ad8706f81..7f05f23862 100644 --- a/extensions/Particle3D/PU/CCPUForceFieldAffector.h +++ b/extensions/Particle3D/PU/CCPUForceFieldAffector.h @@ -30,7 +30,7 @@ #include "extensions/Particle3D/PU/CCPUAffector.h" #include "extensions/Particle3D/PU/CCPUForceField.h" -NS_CC_BEGIN +NS_AX_BEGIN class CC_EX_DLL PUForceFieldAffector : public PUAffector { @@ -156,6 +156,6 @@ protected: Vec3 _basePosition; bool _suppressGeneration; // Prevents re-generation of the complete forcefield after a change. }; -NS_CC_END +NS_AX_END #endif \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUForceFieldAffectorTranslator.cpp b/extensions/Particle3D/PU/CCPUForceFieldAffectorTranslator.cpp index dbf6712db6..a0e4d6f981 100644 --- a/extensions/Particle3D/PU/CCPUForceFieldAffectorTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUForceFieldAffectorTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUForceFieldAffectorTranslator::PUForceFieldAffectorTranslator() {} //------------------------------------------------------------------------- @@ -267,4 +267,4 @@ bool PUForceFieldAffectorTranslator::translateChildObject(PUScriptCompiler* /*co return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUForceFieldAffectorTranslator.h b/extensions/Particle3D/PU/CCPUForceFieldAffectorTranslator.h index dcedb563ec..7344b7c2ab 100644 --- a/extensions/Particle3D/PU/CCPUForceFieldAffectorTranslator.h +++ b/extensions/Particle3D/PU/CCPUForceFieldAffectorTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUForceFieldAffector.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUForceFieldAffectorTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUGeometryRotator.cpp b/extensions/Particle3D/PU/CCPUGeometryRotator.cpp index 2ef257caaa..76723b21c2 100644 --- a/extensions/Particle3D/PU/CCPUGeometryRotator.cpp +++ b/extensions/Particle3D/PU/CCPUGeometryRotator.cpp @@ -27,7 +27,7 @@ #include "CCPUGeometryRotator.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN //----------------------------------------------------------------------- // Constants const bool PUGeometryRotator::DEFAULT_USE_OWN = false; @@ -185,4 +185,4 @@ void PUGeometryRotator::copyAttributesTo(PUAffector* affector) //----------------------------------------------------------------------- -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUGeometryRotator.h b/extensions/Particle3D/PU/CCPUGeometryRotator.h index c51b9fb045..a2d22fcbf5 100644 --- a/extensions/Particle3D/PU/CCPUGeometryRotator.h +++ b/extensions/Particle3D/PU/CCPUGeometryRotator.h @@ -30,7 +30,7 @@ #include "extensions/Particle3D/PU/CCPUAffector.h" #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" -NS_CC_BEGIN +NS_AX_BEGIN struct PUParticle3D; class CC_EX_DLL PUGeometryRotator : public PUAffector { @@ -98,6 +98,6 @@ protected: */ PUDynamicAttributeHelper _dynamicAttributeHelper; }; -NS_CC_END +NS_AX_END #endif \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUGeometryRotatorTranslator.cpp b/extensions/Particle3D/PU/CCPUGeometryRotatorTranslator.cpp index 33e295f85b..bb536fc72e 100644 --- a/extensions/Particle3D/PU/CCPUGeometryRotatorTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUGeometryRotatorTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUGeometryRotatorTranslator::PUGeometryRotatorTranslator() {} //------------------------------------------------------------------------- @@ -152,4 +152,4 @@ bool PUGeometryRotatorTranslator::translateChildObject(PUScriptCompiler* compile return false; } -NS_CC_END \ No newline at end of file +NS_AX_END \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUGeometryRotatorTranslator.h b/extensions/Particle3D/PU/CCPUGeometryRotatorTranslator.h index 43cd3843de..4459bb9c3d 100644 --- a/extensions/Particle3D/PU/CCPUGeometryRotatorTranslator.h +++ b/extensions/Particle3D/PU/CCPUGeometryRotatorTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUGeometryRotator.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUGeometryRotatorTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUGravityAffector.cpp b/extensions/Particle3D/PU/CCPUGravityAffector.cpp index c16bf4acfb..fc05156ecc 100644 --- a/extensions/Particle3D/PU/CCPUGravityAffector.cpp +++ b/extensions/Particle3D/PU/CCPUGravityAffector.cpp @@ -27,7 +27,7 @@ #include "CCPUGravityAffector.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN // Constants const float PUGravityAffector::DEFAULT_GRAVITY = 1.0f; @@ -90,4 +90,4 @@ void PUGravityAffector::copyAttributesTo(PUAffector* affector) gravityAffector->_gravity = _gravity; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUGravityAffector.h b/extensions/Particle3D/PU/CCPUGravityAffector.h index 7f3ad95fa4..0f7f651507 100644 --- a/extensions/Particle3D/PU/CCPUGravityAffector.h +++ b/extensions/Particle3D/PU/CCPUGravityAffector.h @@ -30,7 +30,7 @@ #include "extensions/Particle3D/PU/CCPUAffector.h" #include "base/ccTypes.h" -NS_CC_BEGIN +NS_AX_BEGIN class CC_EX_DLL PUGravityAffector : public PUAffector { @@ -56,6 +56,6 @@ public: protected: float _gravity; }; -NS_CC_END +NS_AX_END #endif \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUGravityAffectorTranslator.cpp b/extensions/Particle3D/PU/CCPUGravityAffectorTranslator.cpp index b871b9a22b..5ab6cf8e03 100644 --- a/extensions/Particle3D/PU/CCPUGravityAffectorTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUGravityAffectorTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUGravityAffectorTranslator::PUGravityAffectorTranslator() {} //------------------------------------------------------------------------- @@ -61,4 +61,4 @@ bool PUGravityAffectorTranslator::translateChildObject(PUScriptCompiler* /*compi return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUGravityAffectorTranslator.h b/extensions/Particle3D/PU/CCPUGravityAffectorTranslator.h index 6295481fff..f8c89c5f29 100644 --- a/extensions/Particle3D/PU/CCPUGravityAffectorTranslator.h +++ b/extensions/Particle3D/PU/CCPUGravityAffectorTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUGravityAffector.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUGravityAffectorTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUInterParticleCollider.cpp b/extensions/Particle3D/PU/CCPUInterParticleCollider.cpp index a184e23740..4577e1a128 100644 --- a/extensions/Particle3D/PU/CCPUInterParticleCollider.cpp +++ b/extensions/Particle3D/PU/CCPUInterParticleCollider.cpp @@ -27,7 +27,7 @@ #include "CCPUInterParticleCollider.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN // Constants const float PUParticle3DInterParticleCollider::DEFAULT_ADJUSTMENT = 1.0f; @@ -186,4 +186,4 @@ void PUParticle3DInterParticleCollider::copyAttributesTo(PUAffector* affector) interParticleCollider->_interParticleCollisionResponse = _interParticleCollisionResponse; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUInterParticleCollider.h b/extensions/Particle3D/PU/CCPUInterParticleCollider.h index 1e89e16a55..15aac1489d 100644 --- a/extensions/Particle3D/PU/CCPUInterParticleCollider.h +++ b/extensions/Particle3D/PU/CCPUInterParticleCollider.h @@ -30,7 +30,7 @@ #include "CCPUBaseCollider.h" #include "base/ccTypes.h" -NS_CC_BEGIN +NS_AX_BEGIN struct PUParticle3D; class CC_EX_DLL PUParticle3DInterParticleCollider : public PUBaseCollider { @@ -81,6 +81,6 @@ protected: float _adjustment; InterParticleCollisionResponse _interParticleCollisionResponse; }; -NS_CC_END +NS_AX_END #endif \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUInterParticleColliderTranslator.cpp b/extensions/Particle3D/PU/CCPUInterParticleColliderTranslator.cpp index c015aa416b..4fab07f273 100644 --- a/extensions/Particle3D/PU/CCPUInterParticleColliderTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUInterParticleColliderTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUInterParticleColliderTranslator::PUInterParticleColliderTranslator() {} //------------------------------------------------------------------------- @@ -121,4 +121,4 @@ bool PUInterParticleColliderTranslator::translateChildObject(PUScriptCompiler* / return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUInterParticleColliderTranslator.h b/extensions/Particle3D/PU/CCPUInterParticleColliderTranslator.h index 3ef470a1c2..bcdb5ded08 100644 --- a/extensions/Particle3D/PU/CCPUInterParticleColliderTranslator.h +++ b/extensions/Particle3D/PU/CCPUInterParticleColliderTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUInterParticleCollider.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUInterParticleColliderTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUJetAffector.cpp b/extensions/Particle3D/PU/CCPUJetAffector.cpp index a1348ad1d2..08ba3ffd08 100644 --- a/extensions/Particle3D/PU/CCPUJetAffector.cpp +++ b/extensions/Particle3D/PU/CCPUJetAffector.cpp @@ -27,7 +27,7 @@ #include "CCPUJetAffector.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN // Constants const float PUJetAffector::DEFAULT_ACCELERATION = 1.0f; @@ -89,4 +89,4 @@ void PUJetAffector::copyAttributesTo(PUAffector* affector) jetAffector->setDynAcceleration(getDynAcceleration()->clone()); } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUJetAffector.h b/extensions/Particle3D/PU/CCPUJetAffector.h index 8580984ce2..656ef3d7a9 100644 --- a/extensions/Particle3D/PU/CCPUJetAffector.h +++ b/extensions/Particle3D/PU/CCPUJetAffector.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "base/ccTypes.h" -NS_CC_BEGIN +NS_AX_BEGIN class CC_EX_DLL PUJetAffector : public PUAffector { @@ -60,6 +60,6 @@ protected: */ PUDynamicAttribute* _dynAcceleration; }; -NS_CC_END +NS_AX_END #endif \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUJetAffectorTranslator.cpp b/extensions/Particle3D/PU/CCPUJetAffectorTranslator.cpp index 39c588a6ce..c0c0988177 100644 --- a/extensions/Particle3D/PU/CCPUJetAffectorTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUJetAffectorTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUJetAffectorTranslator::PUJetAffectorTranslator() {} //------------------------------------------------------------------------- @@ -100,4 +100,4 @@ bool PUJetAffectorTranslator::translateChildObject(PUScriptCompiler* compiler, P return false; } -NS_CC_END \ No newline at end of file +NS_AX_END \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUJetAffectorTranslator.h b/extensions/Particle3D/PU/CCPUJetAffectorTranslator.h index cd9604f07e..18642ca58f 100644 --- a/extensions/Particle3D/PU/CCPUJetAffectorTranslator.h +++ b/extensions/Particle3D/PU/CCPUJetAffectorTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUJetAffector.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUJetAffectorTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPULineAffector.cpp b/extensions/Particle3D/PU/CCPULineAffector.cpp index e1896f5936..c7a6aa1e4c 100644 --- a/extensions/Particle3D/PU/CCPULineAffector.cpp +++ b/extensions/Particle3D/PU/CCPULineAffector.cpp @@ -27,7 +27,7 @@ #include "CCPULineAffector.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN // Constants const float PULineAffector::DEFAULT_MAX_DEVIATION = 1.0f; @@ -175,4 +175,4 @@ void PULineAffector::copyAttributesTo(PUAffector* affector) lineAffector->_oneMinusDrift = _oneMinusDrift; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPULineAffector.h b/extensions/Particle3D/PU/CCPULineAffector.h index 48c6d8b9d3..150fa8deb7 100644 --- a/extensions/Particle3D/PU/CCPULineAffector.h +++ b/extensions/Particle3D/PU/CCPULineAffector.h @@ -30,7 +30,7 @@ #include "extensions/Particle3D/PU/CCPUAffector.h" #include "base/ccTypes.h" -NS_CC_BEGIN +NS_AX_BEGIN class CC_EX_DLL PULineAffector : public PUAffector { @@ -86,6 +86,6 @@ protected: bool _update; bool _first; }; -NS_CC_END +NS_AX_END #endif \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPULineAffectorTranslator.cpp b/extensions/Particle3D/PU/CCPULineAffectorTranslator.cpp index 00e27b43e6..36bd602df4 100644 --- a/extensions/Particle3D/PU/CCPULineAffectorTranslator.cpp +++ b/extensions/Particle3D/PU/CCPULineAffectorTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PULineAffectorTranslator::PULineAffectorTranslator() {} //------------------------------------------------------------------------- @@ -153,4 +153,4 @@ bool PULineAffectorTranslator::translateChildObject(PUScriptCompiler* /*compiler return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPULineAffectorTranslator.h b/extensions/Particle3D/PU/CCPULineAffectorTranslator.h index b0d527c9b2..70294a4bbb 100644 --- a/extensions/Particle3D/PU/CCPULineAffectorTranslator.h +++ b/extensions/Particle3D/PU/CCPULineAffectorTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPULineAffector.h" -NS_CC_BEGIN +NS_AX_BEGIN class PULineAffectorTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPULineEmitter.cpp b/extensions/Particle3D/PU/CCPULineEmitter.cpp index cdc04a4a5e..74af4e454d 100644 --- a/extensions/Particle3D/PU/CCPULineEmitter.cpp +++ b/extensions/Particle3D/PU/CCPULineEmitter.cpp @@ -28,7 +28,7 @@ #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" #include "extensions/Particle3D/PU/CCPUUtil.h" -NS_CC_BEGIN +NS_AX_BEGIN // Constants const Vec3 PULineEmitter::DEFAULT_END(0, 0, 0); const float PULineEmitter::DEFAULT_MIN_INCREMENT = 0.0f; @@ -250,4 +250,4 @@ PULineEmitter* PULineEmitter::clone() return be; } -NS_CC_END \ No newline at end of file +NS_AX_END \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPULineEmitter.h b/extensions/Particle3D/PU/CCPULineEmitter.h index 2219354382..118b825035 100644 --- a/extensions/Particle3D/PU/CCPULineEmitter.h +++ b/extensions/Particle3D/PU/CCPULineEmitter.h @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUEmitter.h" -NS_CC_BEGIN +NS_AX_BEGIN struct PUParticle3D; class CC_EX_DLL PULineEmitter : public PUEmitter @@ -115,6 +115,6 @@ protected: float _scaledMaxIncrement; float _scaledLength; }; -NS_CC_END +NS_AX_END #endif \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPULineEmitterTranslator.cpp b/extensions/Particle3D/PU/CCPULineEmitterTranslator.cpp index 2199d3d1a8..f12d4cebba 100644 --- a/extensions/Particle3D/PU/CCPULineEmitterTranslator.cpp +++ b/extensions/Particle3D/PU/CCPULineEmitterTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PULineEmitterTranslator::PULineEmitterTranslator() {} //------------------------------------------------------------------------- @@ -153,4 +153,4 @@ bool PULineEmitterTranslator::translateChildObject(PUScriptCompiler* /*compiler* return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPULineEmitterTranslator.h b/extensions/Particle3D/PU/CCPULineEmitterTranslator.h index 83248cf554..7e51a8217d 100644 --- a/extensions/Particle3D/PU/CCPULineEmitterTranslator.h +++ b/extensions/Particle3D/PU/CCPULineEmitterTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPULineEmitter.h" -NS_CC_BEGIN +NS_AX_BEGIN class PULineEmitterTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif /* defined(__cocos2d_libs__CCParticle3DAffectorTranslator__) */ diff --git a/extensions/Particle3D/PU/CCPULinearForceAffector.cpp b/extensions/Particle3D/PU/CCPULinearForceAffector.cpp index 35794f6892..1e82131f5a 100644 --- a/extensions/Particle3D/PU/CCPULinearForceAffector.cpp +++ b/extensions/Particle3D/PU/CCPULinearForceAffector.cpp @@ -27,7 +27,7 @@ #include "CCPULinearForceAffector.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN //----------------------------------------------------------------------- void PULinearForceAffector::preUpdateAffector(float deltaTime) @@ -66,4 +66,4 @@ void PULinearForceAffector::copyAttributesTo(PUAffector* affector) PUBaseForceAffector::copyAttributesTo(affector); } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPULinearForceAffector.h b/extensions/Particle3D/PU/CCPULinearForceAffector.h index 328c0b5e69..5800a6ad40 100644 --- a/extensions/Particle3D/PU/CCPULinearForceAffector.h +++ b/extensions/Particle3D/PU/CCPULinearForceAffector.h @@ -30,7 +30,7 @@ #include "CCPUBaseForceAffector.h" #include "base/ccTypes.h" -NS_CC_BEGIN +NS_AX_BEGIN class CC_EX_DLL PULinearForceAffector : public PUBaseForceAffector { @@ -45,6 +45,6 @@ public: PULinearForceAffector(){}; virtual ~PULinearForceAffector(){}; }; -NS_CC_END +NS_AX_END #endif \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPULinearForceAffectorTranslator.cpp b/extensions/Particle3D/PU/CCPULinearForceAffectorTranslator.cpp index 2cf6383a50..7e870e14a7 100644 --- a/extensions/Particle3D/PU/CCPULinearForceAffectorTranslator.cpp +++ b/extensions/Particle3D/PU/CCPULinearForceAffectorTranslator.cpp @@ -30,7 +30,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" #include "extensions/Particle3D/PU/CCPUBaseForceAffectorTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PULinearForceAffectorTranslator::PULinearForceAffectorTranslator() {} //------------------------------------------------------------------------- @@ -49,4 +49,4 @@ bool PULinearForceAffectorTranslator::translateChildObject(PUScriptCompiler* /*c return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPULinearForceAffectorTranslator.h b/extensions/Particle3D/PU/CCPULinearForceAffectorTranslator.h index 73d0706838..98ab3296e9 100644 --- a/extensions/Particle3D/PU/CCPULinearForceAffectorTranslator.h +++ b/extensions/Particle3D/PU/CCPULinearForceAffectorTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPULinearForceAffector.h" -NS_CC_BEGIN +NS_AX_BEGIN class PULinearForceAffectorTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUListener.cpp b/extensions/Particle3D/PU/CCPUListener.cpp index 8a17745a70..7fc99bbf76 100644 --- a/extensions/Particle3D/PU/CCPUListener.cpp +++ b/extensions/Particle3D/PU/CCPUListener.cpp @@ -27,10 +27,10 @@ #include "extensions/Particle3D/PU/CCPUListener.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN PUListener::PUListener() {} PUListener::~PUListener() {} -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUListener.h b/extensions/Particle3D/PU/CCPUListener.h index 5bc77c4829..e50e365f14 100644 --- a/extensions/Particle3D/PU/CCPUListener.h +++ b/extensions/Particle3D/PU/CCPUListener.h @@ -33,7 +33,7 @@ #include #include "ExtensionExport.h" -NS_CC_BEGIN +NS_AX_BEGIN struct PUParticle3D; class PUParticleSystem3D; @@ -53,6 +53,6 @@ public: virtual void particleExpired(PUParticleSystem3D* particleSystem, PUParticle3D* particle) = 0; }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUMaterialManager.cpp b/extensions/Particle3D/PU/CCPUMaterialManager.cpp index 69528d917b..c5f40e0332 100644 --- a/extensions/Particle3D/PU/CCPUMaterialManager.cpp +++ b/extensions/Particle3D/PU/CCPUMaterialManager.cpp @@ -43,7 +43,7 @@ # include # include #endif -NS_CC_BEGIN +NS_AX_BEGIN PUMaterial::PUMaterial() : isEnabledLight(true) @@ -207,4 +207,4 @@ bool PUMaterialCache::loadMaterialsFromSearchPaths(std::string_view fileFolder) return state; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUMaterialManager.h b/extensions/Particle3D/PU/CCPUMaterialManager.h index 9b4b267c6a..168da5ffc2 100644 --- a/extensions/Particle3D/PU/CCPUMaterialManager.h +++ b/extensions/Particle3D/PU/CCPUMaterialManager.h @@ -31,7 +31,7 @@ #include #include "ExtensionExport.h" -NS_CC_BEGIN +NS_AX_BEGIN class CC_EX_DLL PUMaterial : public Ref { @@ -73,6 +73,6 @@ protected: MaterialVector _materialMap; }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUMaterialTranslator.cpp b/extensions/Particle3D/PU/CCPUMaterialTranslator.cpp index 3e889cf57f..077a523588 100644 --- a/extensions/Particle3D/PU/CCPUMaterialTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUMaterialTranslator.cpp @@ -28,7 +28,7 @@ #include "extensions/Particle3D/PU/CCPUMaterialManager.h" #include "renderer/backend/Types.h" -NS_CC_BEGIN +NS_AX_BEGIN enum MaterialToken { @@ -430,4 +430,4 @@ void PUMaterialTextureUnitTranslator::translate(PUScriptCompiler* compiler, PUAb } } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUMaterialTranslator.h b/extensions/Particle3D/PU/CCPUMaterialTranslator.h index 3c9ae4fa6b..cebb718beb 100644 --- a/extensions/Particle3D/PU/CCPUMaterialTranslator.h +++ b/extensions/Particle3D/PU/CCPUMaterialTranslator.h @@ -30,7 +30,7 @@ #include "extensions/Particle3D/PU/CCPUScriptTranslator.h" #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUMaterial; class PUMaterialCache; class CCPUMaterialTranslator : public PUScriptTranslator @@ -67,6 +67,6 @@ public: virtual void translate(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif /* defined(__cocos2d_libs__CCParticle3DTechniqueTranslator__) */ diff --git a/extensions/Particle3D/PU/CCPUMeshSurfaceEmitter.cpp b/extensions/Particle3D/PU/CCPUMeshSurfaceEmitter.cpp index f370a2ea17..deb58d8a3b 100644 --- a/extensions/Particle3D/PU/CCPUMeshSurfaceEmitter.cpp +++ b/extensions/Particle3D/PU/CCPUMeshSurfaceEmitter.cpp @@ -28,7 +28,7 @@ #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" #include "extensions/Particle3D/PU/CCPUUtil.h" -NS_CC_BEGIN +NS_AX_BEGIN // Constants const Vec3 PUMeshSurfaceEmitter::DEFAULT_SCALE(1, 1, 1); const MeshInfo::MeshSurfaceDistribution PUMeshSurfaceEmitter::DEFAULT_DISTRIBUTION = MeshInfo::MSD_HOMOGENEOUS; @@ -600,4 +600,4 @@ PUMeshSurfaceEmitter* PUMeshSurfaceEmitter::clone() return be; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUMeshSurfaceEmitter.h b/extensions/Particle3D/PU/CCPUMeshSurfaceEmitter.h index 0969518ce5..ab62c87d01 100644 --- a/extensions/Particle3D/PU/CCPUMeshSurfaceEmitter.h +++ b/extensions/Particle3D/PU/CCPUMeshSurfaceEmitter.h @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUEmitter.h" -NS_CC_BEGIN +NS_AX_BEGIN /** Definition of a Triangle */ @@ -248,6 +248,6 @@ protected: bool _directionSet; }; -NS_CC_END +NS_AX_END #endif \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUMeshSurfaceEmitterTranslator.cpp b/extensions/Particle3D/PU/CCPUMeshSurfaceEmitterTranslator.cpp index c62d7a24fd..f98fcc522c 100644 --- a/extensions/Particle3D/PU/CCPUMeshSurfaceEmitterTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUMeshSurfaceEmitterTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUMeshSurfaceEmitterTranslator::PUMeshSurfaceEmitterTranslator() {} //------------------------------------------------------------------------- @@ -119,4 +119,4 @@ bool PUMeshSurfaceEmitterTranslator::translateChildObject(PUScriptCompiler* /*co return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUMeshSurfaceEmitterTranslator.h b/extensions/Particle3D/PU/CCPUMeshSurfaceEmitterTranslator.h index 00f0db7229..521a43192d 100644 --- a/extensions/Particle3D/PU/CCPUMeshSurfaceEmitterTranslator.h +++ b/extensions/Particle3D/PU/CCPUMeshSurfaceEmitterTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUMeshSurfaceEmitter.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUMeshSurfaceEmitterTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif /* defined(__cocos2d_libs__CCParticle3DAffectorTranslator__) */ diff --git a/extensions/Particle3D/PU/CCPUNoise.cpp b/extensions/Particle3D/PU/CCPUNoise.cpp index 5e6ea80cc8..deef1db96a 100644 --- a/extensions/Particle3D/PU/CCPUNoise.cpp +++ b/extensions/Particle3D/PU/CCPUNoise.cpp @@ -26,7 +26,7 @@ #include "CCPUNoise.h" -NS_CC_BEGIN +NS_AX_BEGIN static int permutation[] = { 151, 160, 137, 91, 90, 15, 131, 13, 201, 95, 96, 53, 194, 233, 7, 225, 140, 36, 103, 30, 69, 142, @@ -151,4 +151,4 @@ double PUNoise3D::grad(int hash, double x, double y, double z) return ((h & 1) == 0 ? u : -u) + ((h & 2) == 0 ? v : -v); } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUNoise.h b/extensions/Particle3D/PU/CCPUNoise.h index 5da974a25d..f070b0dfd0 100644 --- a/extensions/Particle3D/PU/CCPUNoise.h +++ b/extensions/Particle3D/PU/CCPUNoise.h @@ -30,7 +30,7 @@ #include "base/CCRef.h" #include "math/CCMath.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUNoise3D { @@ -76,6 +76,6 @@ protected: double _persistence; }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUObserver.cpp b/extensions/Particle3D/PU/CCPUObserver.cpp index f033b54292..b1192bba5b 100644 --- a/extensions/Particle3D/PU/CCPUObserver.cpp +++ b/extensions/Particle3D/PU/CCPUObserver.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUEventHandlerManager.h" #include "base/ccMacros.h" -NS_CC_BEGIN +NS_AX_BEGIN // Constants const bool PUObserver::DEFAULT_ENABLED = true; @@ -339,4 +339,4 @@ void PUObserver::copyAttributesTo(PUObserver* observer) } } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUObserver.h b/extensions/Particle3D/PU/CCPUObserver.h index 89fccb1c63..a82a984979 100644 --- a/extensions/Particle3D/PU/CCPUObserver.h +++ b/extensions/Particle3D/PU/CCPUObserver.h @@ -33,7 +33,7 @@ #include #include -NS_CC_BEGIN +NS_AX_BEGIN struct PUParticle3D; class PUParticleSystem3D; @@ -239,6 +239,6 @@ protected: virtual void handleEvent(PUParticle3D* particle, float timeElapsed); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUObserverManager.cpp b/extensions/Particle3D/PU/CCPUObserverManager.cpp index a317307df4..cebc3190b4 100644 --- a/extensions/Particle3D/PU/CCPUObserverManager.cpp +++ b/extensions/Particle3D/PU/CCPUObserverManager.cpp @@ -37,7 +37,7 @@ #include "extensions/Particle3D/PU/CCPUOnTimeObserver.h" #include "extensions/Particle3D/PU/CCPUOnVelocityObserver.h" -NS_CC_BEGIN +NS_AX_BEGIN PUObserverManager::PUObserverManager() {} PUObserverManager::~PUObserverManager() {} @@ -146,4 +146,4 @@ PUObserver* PUObserverManager::createObserver(std::string_view type) return nullptr; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUObserverManager.h b/extensions/Particle3D/PU/CCPUObserverManager.h index 441d4e383c..1373c6a2d5 100644 --- a/extensions/Particle3D/PU/CCPUObserverManager.h +++ b/extensions/Particle3D/PU/CCPUObserverManager.h @@ -42,7 +42,7 @@ #include "extensions/Particle3D/PU/CCPUOnTimeObserverTranslator.h" #include "extensions/Particle3D/PU/CCPUOnVelocityObserverTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUObserverManager { public: @@ -70,6 +70,6 @@ protected: PUOnVelocityObserverTranslator _onVelocityObserverTranslator; }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUObserverTranslator.cpp b/extensions/Particle3D/PU/CCPUObserverTranslator.cpp index e065beead2..daa93fd796 100644 --- a/extensions/Particle3D/PU/CCPUObserverTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUObserverTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUObserverManager.h" #include "extensions/Particle3D/PU/CCPUObserver.h" -NS_CC_BEGIN +NS_AX_BEGIN PUObserverTranslator::PUObserverTranslator() : _observer(nullptr) {} //------------------------------------------------------------------------- @@ -196,4 +196,4 @@ void PUObserverTranslator::translate(PUScriptCompiler* compiler, PUAbstractNode* } } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUObserverTranslator.h b/extensions/Particle3D/PU/CCPUObserverTranslator.h index 269f90de27..5bb7f5d0c1 100644 --- a/extensions/Particle3D/PU/CCPUObserverTranslator.h +++ b/extensions/Particle3D/PU/CCPUObserverTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUObserver.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUObserverTranslator : public PUScriptTranslator { @@ -44,6 +44,6 @@ public: virtual void translate(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif /* defined(__cocos2d_libs__CCParticle3DAffectorTranslator__) */ diff --git a/extensions/Particle3D/PU/CCPUOnClearObserver.cpp b/extensions/Particle3D/PU/CCPUOnClearObserver.cpp index 04b4d4ccb0..fe9e737c2b 100644 --- a/extensions/Particle3D/PU/CCPUOnClearObserver.cpp +++ b/extensions/Particle3D/PU/CCPUOnClearObserver.cpp @@ -27,7 +27,7 @@ #include "extensions/Particle3D/PU/CCPUOnClearObserver.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN //----------------------------------------------------------------------- void PUOnClearObserver::notifyStart() @@ -77,4 +77,4 @@ PUOnClearObserver* PUOnClearObserver::create() return pco; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUOnClearObserver.h b/extensions/Particle3D/PU/CCPUOnClearObserver.h index 6d4d444303..812d0623ad 100644 --- a/extensions/Particle3D/PU/CCPUOnClearObserver.h +++ b/extensions/Particle3D/PU/CCPUOnClearObserver.h @@ -33,7 +33,7 @@ #include #include -NS_CC_BEGIN +NS_AX_BEGIN struct PUParticle3D; class PUParticleSystem3D; @@ -67,6 +67,6 @@ protected: bool _continue; }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUOnClearObserverTranslator.cpp b/extensions/Particle3D/PU/CCPUOnClearObserverTranslator.cpp index cda5d26973..369b85a2c9 100644 --- a/extensions/Particle3D/PU/CCPUOnClearObserverTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUOnClearObserverTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUOnClearObserverTranslator::PUOnClearObserverTranslator() {} //------------------------------------------------------------------------- @@ -44,4 +44,4 @@ bool PUOnClearObserverTranslator::translateChildObject(PUScriptCompiler* /*compi return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUOnClearObserverTranslator.h b/extensions/Particle3D/PU/CCPUOnClearObserverTranslator.h index 9c49e82787..cc684ae8e1 100644 --- a/extensions/Particle3D/PU/CCPUOnClearObserverTranslator.h +++ b/extensions/Particle3D/PU/CCPUOnClearObserverTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUOnClearObserver.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUOnClearObserverTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUOnCollisionObserver.cpp b/extensions/Particle3D/PU/CCPUOnCollisionObserver.cpp index c2b217e538..07d03dec67 100644 --- a/extensions/Particle3D/PU/CCPUOnCollisionObserver.cpp +++ b/extensions/Particle3D/PU/CCPUOnCollisionObserver.cpp @@ -27,7 +27,7 @@ #include "extensions/Particle3D/PU/CCPUOnCollisionObserver.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN bool PUOnCollisionObserver::observe(PUParticle3D* particle, float /*timeElapsed*/) { @@ -41,4 +41,4 @@ PUOnCollisionObserver* PUOnCollisionObserver::create() return pco; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUOnCollisionObserver.h b/extensions/Particle3D/PU/CCPUOnCollisionObserver.h index 6ea078c761..97268414b0 100644 --- a/extensions/Particle3D/PU/CCPUOnCollisionObserver.h +++ b/extensions/Particle3D/PU/CCPUOnCollisionObserver.h @@ -33,7 +33,7 @@ #include #include -NS_CC_BEGIN +NS_AX_BEGIN struct PUParticle3D; class CC_EX_DLL PUOnCollisionObserver : public PUObserver @@ -48,6 +48,6 @@ public: virtual ~PUOnCollisionObserver(){}; }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUOnCollisionObserverTranslator.cpp b/extensions/Particle3D/PU/CCPUOnCollisionObserverTranslator.cpp index 94881e95ea..359e7ddcd2 100644 --- a/extensions/Particle3D/PU/CCPUOnCollisionObserverTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUOnCollisionObserverTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUOnCollisionObserverTranslator::PUOnCollisionObserverTranslator() {} //------------------------------------------------------------------------- @@ -44,4 +44,4 @@ bool PUOnCollisionObserverTranslator::translateChildObject(PUScriptCompiler* /*c return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUOnCollisionObserverTranslator.h b/extensions/Particle3D/PU/CCPUOnCollisionObserverTranslator.h index 737a54457c..daa40aa245 100644 --- a/extensions/Particle3D/PU/CCPUOnCollisionObserverTranslator.h +++ b/extensions/Particle3D/PU/CCPUOnCollisionObserverTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUOnCollisionObserver.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUOnCollisionObserverTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUOnCountObserver.cpp b/extensions/Particle3D/PU/CCPUOnCountObserver.cpp index 2c710e744c..8562d660f2 100644 --- a/extensions/Particle3D/PU/CCPUOnCountObserver.cpp +++ b/extensions/Particle3D/PU/CCPUOnCountObserver.cpp @@ -27,7 +27,7 @@ #include "extensions/Particle3D/PU/CCPUOnCountObserver.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN // Constants const unsigned int PUOnCountObserver::DEFAULT_THRESHOLD = 0; @@ -112,4 +112,4 @@ void PUOnCountObserver::copyAttributesTo(PUObserver* observer) onCountObserver->_compare = _compare; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUOnCountObserver.h b/extensions/Particle3D/PU/CCPUOnCountObserver.h index 696cca85ec..51f090c08a 100644 --- a/extensions/Particle3D/PU/CCPUOnCountObserver.h +++ b/extensions/Particle3D/PU/CCPUOnCountObserver.h @@ -33,7 +33,7 @@ #include #include -NS_CC_BEGIN +NS_AX_BEGIN struct PUParticle3D; class PUParticleSystem3D; @@ -75,6 +75,6 @@ public: virtual ~PUOnCountObserver(){}; }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUOnCountObserverTranslator.cpp b/extensions/Particle3D/PU/CCPUOnCountObserverTranslator.cpp index 09d407664a..e039611f3b 100644 --- a/extensions/Particle3D/PU/CCPUOnCountObserverTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUOnCountObserverTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUOnCountObserverTranslator::PUOnCountObserverTranslator() {} //------------------------------------------------------------------------- @@ -80,4 +80,4 @@ bool PUOnCountObserverTranslator::translateChildObject(PUScriptCompiler* /*compi return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUOnCountObserverTranslator.h b/extensions/Particle3D/PU/CCPUOnCountObserverTranslator.h index 3d165b5de5..e7101752ee 100644 --- a/extensions/Particle3D/PU/CCPUOnCountObserverTranslator.h +++ b/extensions/Particle3D/PU/CCPUOnCountObserverTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUOnCountObserver.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUOnCountObserverTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUOnEmissionObserver.cpp b/extensions/Particle3D/PU/CCPUOnEmissionObserver.cpp index 9232f11ac6..467fe11a94 100644 --- a/extensions/Particle3D/PU/CCPUOnEmissionObserver.cpp +++ b/extensions/Particle3D/PU/CCPUOnEmissionObserver.cpp @@ -27,7 +27,7 @@ #include "extensions/Particle3D/PU/CCPUOnEmissionObserver.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN //----------------------------------------------------------------------- bool PUOnEmissionObserver::observe(PUParticle3D* particle, float /*timeElapsed*/) { @@ -44,4 +44,4 @@ PUOnEmissionObserver* PUOnEmissionObserver::create() return peo; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUOnEmissionObserver.h b/extensions/Particle3D/PU/CCPUOnEmissionObserver.h index 59345060a5..7988ab4d35 100644 --- a/extensions/Particle3D/PU/CCPUOnEmissionObserver.h +++ b/extensions/Particle3D/PU/CCPUOnEmissionObserver.h @@ -33,7 +33,7 @@ #include #include -NS_CC_BEGIN +NS_AX_BEGIN struct PUParticle3D; class PUParticleSystem3D; @@ -49,6 +49,6 @@ public: virtual ~PUOnEmissionObserver(){}; }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUOnEmissionObserverTranslator.cpp b/extensions/Particle3D/PU/CCPUOnEmissionObserverTranslator.cpp index 115bfeebfe..c4bae059e2 100644 --- a/extensions/Particle3D/PU/CCPUOnEmissionObserverTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUOnEmissionObserverTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUOnEmissionObserverTranslator::PUOnEmissionObserverTranslator() {} //------------------------------------------------------------------------- @@ -44,4 +44,4 @@ bool PUOnEmissionObserverTranslator::translateChildObject(PUScriptCompiler* /*co return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUOnEmissionObserverTranslator.h b/extensions/Particle3D/PU/CCPUOnEmissionObserverTranslator.h index ba1dd12ede..0f2deea70c 100644 --- a/extensions/Particle3D/PU/CCPUOnEmissionObserverTranslator.h +++ b/extensions/Particle3D/PU/CCPUOnEmissionObserverTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUOnEmissionObserver.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUOnEmissionObserverTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUOnEventFlagObserver.cpp b/extensions/Particle3D/PU/CCPUOnEventFlagObserver.cpp index 3bbaf57b24..ced6ef08ab 100644 --- a/extensions/Particle3D/PU/CCPUOnEventFlagObserver.cpp +++ b/extensions/Particle3D/PU/CCPUOnEventFlagObserver.cpp @@ -27,7 +27,7 @@ #include "extensions/Particle3D/PU/CCPUOnEventFlagObserver.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN // Constants const unsigned int PUOnEventFlagObserver::DEFAULT_EVENT_FLAG = 0; @@ -58,4 +58,4 @@ void PUOnEventFlagObserver::copyAttributesTo(PUObserver* observer) onEventFlagObserver->_eventFlag = _eventFlag; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUOnEventFlagObserver.h b/extensions/Particle3D/PU/CCPUOnEventFlagObserver.h index 87bee916d5..acdf443a54 100644 --- a/extensions/Particle3D/PU/CCPUOnEventFlagObserver.h +++ b/extensions/Particle3D/PU/CCPUOnEventFlagObserver.h @@ -33,7 +33,7 @@ #include #include -NS_CC_BEGIN +NS_AX_BEGIN struct PUParticle3D; class PUParticleSystem3D; @@ -63,6 +63,6 @@ public: virtual ~PUOnEventFlagObserver(){}; }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUOnEventFlagObserverTranslator.cpp b/extensions/Particle3D/PU/CCPUOnEventFlagObserverTranslator.cpp index 1254b05611..dcd6144fef 100644 --- a/extensions/Particle3D/PU/CCPUOnEventFlagObserverTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUOnEventFlagObserverTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUOnEventFlagObserverTranslator::PUOnEventFlagObserverTranslator() {} //------------------------------------------------------------------------- @@ -62,4 +62,4 @@ bool PUOnEventFlagObserverTranslator::translateChildObject(PUScriptCompiler* /*c return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUOnEventFlagObserverTranslator.h b/extensions/Particle3D/PU/CCPUOnEventFlagObserverTranslator.h index 64ff8caef2..3cd35ba067 100644 --- a/extensions/Particle3D/PU/CCPUOnEventFlagObserverTranslator.h +++ b/extensions/Particle3D/PU/CCPUOnEventFlagObserverTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUOnEventFlagObserver.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUOnEventFlagObserverTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUOnExpireObserver.cpp b/extensions/Particle3D/PU/CCPUOnExpireObserver.cpp index 49476c0ab2..7d83c82a1e 100644 --- a/extensions/Particle3D/PU/CCPUOnExpireObserver.cpp +++ b/extensions/Particle3D/PU/CCPUOnExpireObserver.cpp @@ -27,7 +27,7 @@ #include "extensions/Particle3D/PU/CCPUOnExpireObserver.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN //----------------------------------------------------------------------- bool PUOnExpireObserver::observe(PUParticle3D* particle, float /*timeElapsed*/) @@ -45,4 +45,4 @@ PUOnExpireObserver* PUOnExpireObserver::create() return peo; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUOnExpireObserver.h b/extensions/Particle3D/PU/CCPUOnExpireObserver.h index b523725b0f..04f917a2a6 100644 --- a/extensions/Particle3D/PU/CCPUOnExpireObserver.h +++ b/extensions/Particle3D/PU/CCPUOnExpireObserver.h @@ -33,7 +33,7 @@ #include #include -NS_CC_BEGIN +NS_AX_BEGIN struct PUParticle3D; class PUParticleSystem3D; @@ -51,6 +51,6 @@ public: virtual ~PUOnExpireObserver(){}; }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUOnExpireObserverTranslator.cpp b/extensions/Particle3D/PU/CCPUOnExpireObserverTranslator.cpp index 7e25150e5a..b0df949a9d 100644 --- a/extensions/Particle3D/PU/CCPUOnExpireObserverTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUOnExpireObserverTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUOnExpireObserverTranslator::PUOnExpireObserverTranslator() {} //------------------------------------------------------------------------- @@ -44,4 +44,4 @@ bool PUOnExpireObserverTranslator::translateChildObject(PUScriptCompiler* /*comp return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUOnExpireObserverTranslator.h b/extensions/Particle3D/PU/CCPUOnExpireObserverTranslator.h index 4636ed2a0b..9b61294092 100644 --- a/extensions/Particle3D/PU/CCPUOnExpireObserverTranslator.h +++ b/extensions/Particle3D/PU/CCPUOnExpireObserverTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUOnExpireObserver.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUOnExpireObserverTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUOnPositionObserver.cpp b/extensions/Particle3D/PU/CCPUOnPositionObserver.cpp index 3e0c7fb670..66c5805dbe 100644 --- a/extensions/Particle3D/PU/CCPUOnPositionObserver.cpp +++ b/extensions/Particle3D/PU/CCPUOnPositionObserver.cpp @@ -27,7 +27,7 @@ #include "extensions/Particle3D/PU/CCPUOnPositionObserver.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN // Constants const Vec3 PUOnPositionObserver::DEFAULT_POSITION_THRESHOLD(0, 0, 0); @@ -108,4 +108,4 @@ void PUOnPositionObserver::copyAttributesTo(PUObserver* observer) onPositionObserver->_positionZThresholdSet = _positionZThresholdSet; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUOnPositionObserver.h b/extensions/Particle3D/PU/CCPUOnPositionObserver.h index 1753ff3b9c..55192e099f 100644 --- a/extensions/Particle3D/PU/CCPUOnPositionObserver.h +++ b/extensions/Particle3D/PU/CCPUOnPositionObserver.h @@ -33,7 +33,7 @@ #include #include -NS_CC_BEGIN +NS_AX_BEGIN struct PUParticle3D; class PUParticleSystem3D; @@ -114,6 +114,6 @@ protected: PUComparisionOperator _comparePositionZ; }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUOnPositionObserverTranslator.cpp b/extensions/Particle3D/PU/CCPUOnPositionObserverTranslator.cpp index d23c3ca07e..a6581d58ca 100644 --- a/extensions/Particle3D/PU/CCPUOnPositionObserverTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUOnPositionObserverTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUOnPositionObserverTranslator::PUOnPositionObserverTranslator() {} //------------------------------------------------------------------------- @@ -142,4 +142,4 @@ bool PUOnPositionObserverTranslator::translateChildObject(PUScriptCompiler* /*co return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUOnPositionObserverTranslator.h b/extensions/Particle3D/PU/CCPUOnPositionObserverTranslator.h index 4c05db285e..caae34f7b0 100644 --- a/extensions/Particle3D/PU/CCPUOnPositionObserverTranslator.h +++ b/extensions/Particle3D/PU/CCPUOnPositionObserverTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUOnPositionObserver.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUOnPositionObserverTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUOnQuotaObserver.cpp b/extensions/Particle3D/PU/CCPUOnQuotaObserver.cpp index fccb549dd6..90c354b09f 100644 --- a/extensions/Particle3D/PU/CCPUOnQuotaObserver.cpp +++ b/extensions/Particle3D/PU/CCPUOnQuotaObserver.cpp @@ -27,7 +27,7 @@ #include "extensions/Particle3D/PU/CCPUOnQuotaObserver.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN //----------------------------------------------------------------------- bool PUOnQuotaObserver::observe(PUParticle3D* /*particle*/, float /*timeElapsed*/) @@ -89,4 +89,4 @@ PUOnQuotaObserver* PUOnQuotaObserver::create() return pqo; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUOnQuotaObserver.h b/extensions/Particle3D/PU/CCPUOnQuotaObserver.h index 716283f778..ffdbcc84bf 100644 --- a/extensions/Particle3D/PU/CCPUOnQuotaObserver.h +++ b/extensions/Particle3D/PU/CCPUOnQuotaObserver.h @@ -33,7 +33,7 @@ #include #include -NS_CC_BEGIN +NS_AX_BEGIN struct PUParticle3D; class PUParticleSystem3D; @@ -55,6 +55,6 @@ protected: bool _result; }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUOnQuotaObserverTranslator.cpp b/extensions/Particle3D/PU/CCPUOnQuotaObserverTranslator.cpp index 5f406d168f..2189dfbf91 100644 --- a/extensions/Particle3D/PU/CCPUOnQuotaObserverTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUOnQuotaObserverTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUOnQuotaObserverTranslator::PUOnQuotaObserverTranslator() {} //------------------------------------------------------------------------- @@ -44,4 +44,4 @@ bool PUOnQuotaObserverTranslator::translateChildObject(PUScriptCompiler* /*compi return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUOnQuotaObserverTranslator.h b/extensions/Particle3D/PU/CCPUOnQuotaObserverTranslator.h index 4d2769d130..5c266c9854 100644 --- a/extensions/Particle3D/PU/CCPUOnQuotaObserverTranslator.h +++ b/extensions/Particle3D/PU/CCPUOnQuotaObserverTranslator.h @@ -30,7 +30,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUOnQuotaObserver.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUOnQuotaObserverTranslator : public PUScriptTranslator { @@ -42,6 +42,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUOnRandomObserver.cpp b/extensions/Particle3D/PU/CCPUOnRandomObserver.cpp index 985d58a12f..2ad04d1208 100644 --- a/extensions/Particle3D/PU/CCPUOnRandomObserver.cpp +++ b/extensions/Particle3D/PU/CCPUOnRandomObserver.cpp @@ -27,7 +27,7 @@ #include "extensions/Particle3D/PU/CCPUOnRandomObserver.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN // Constants const float PUOnRandomObserver::DEFAULT_THRESHOLD = 0.5f; @@ -68,4 +68,4 @@ void PUOnRandomObserver::copyAttributesTo(PUObserver* observer) onRandomObserver->_threshold = _threshold; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUOnRandomObserver.h b/extensions/Particle3D/PU/CCPUOnRandomObserver.h index 7188d3a60f..43130e6c4b 100644 --- a/extensions/Particle3D/PU/CCPUOnRandomObserver.h +++ b/extensions/Particle3D/PU/CCPUOnRandomObserver.h @@ -33,7 +33,7 @@ #include #include -NS_CC_BEGIN +NS_AX_BEGIN struct PUParticle3D; class PUParticleSystem3D; @@ -71,6 +71,6 @@ protected: float _threshold; // Value between 0..1 }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUOnRandomObserverTranslator.cpp b/extensions/Particle3D/PU/CCPUOnRandomObserverTranslator.cpp index 76ac33620d..16bca46ec4 100644 --- a/extensions/Particle3D/PU/CCPUOnRandomObserverTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUOnRandomObserverTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUOnRandomObserverTranslator::PUOnRandomObserverTranslator() {} //------------------------------------------------------------------------- @@ -62,4 +62,4 @@ bool PUOnRandomObserverTranslator::translateChildObject(PUScriptCompiler* /*comp return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUOnRandomObserverTranslator.h b/extensions/Particle3D/PU/CCPUOnRandomObserverTranslator.h index c5f5c22890..c2897972bb 100644 --- a/extensions/Particle3D/PU/CCPUOnRandomObserverTranslator.h +++ b/extensions/Particle3D/PU/CCPUOnRandomObserverTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUOnRandomObserver.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUOnRandomObserverTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUOnTimeObserver.cpp b/extensions/Particle3D/PU/CCPUOnTimeObserver.cpp index 44bbcfaa13..a6337b902b 100644 --- a/extensions/Particle3D/PU/CCPUOnTimeObserver.cpp +++ b/extensions/Particle3D/PU/CCPUOnTimeObserver.cpp @@ -27,7 +27,7 @@ #include "extensions/Particle3D/PU/CCPUOnTimeObserver.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN // Constants const float PUOnTimeObserver::DEFAULT_THRESHOLD = 0.0f; @@ -121,4 +121,4 @@ void PUOnTimeObserver::copyAttributesTo(PUObserver* observer) onTimeObserver->_sinceStartSystem = _sinceStartSystem; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUOnTimeObserver.h b/extensions/Particle3D/PU/CCPUOnTimeObserver.h index 602f176e27..704d9ca12b 100644 --- a/extensions/Particle3D/PU/CCPUOnTimeObserver.h +++ b/extensions/Particle3D/PU/CCPUOnTimeObserver.h @@ -33,7 +33,7 @@ #include #include -NS_CC_BEGIN +NS_AX_BEGIN struct PUParticle3D; class PUParticleSystem3D; @@ -81,6 +81,6 @@ protected: bool _sinceStartSystem; }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUOnTimeObserverTranslator.cpp b/extensions/Particle3D/PU/CCPUOnTimeObserverTranslator.cpp index adecbb547a..7be2aabc60 100644 --- a/extensions/Particle3D/PU/CCPUOnTimeObserverTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUOnTimeObserverTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUOnTimeObserverTranslator::PUOnTimeObserverTranslator() {} //------------------------------------------------------------------------- @@ -93,4 +93,4 @@ bool PUOnTimeObserverTranslator::translateChildObject(PUScriptCompiler* /*compil return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUOnTimeObserverTranslator.h b/extensions/Particle3D/PU/CCPUOnTimeObserverTranslator.h index 9b698ebdc9..cf8b5b9f16 100644 --- a/extensions/Particle3D/PU/CCPUOnTimeObserverTranslator.h +++ b/extensions/Particle3D/PU/CCPUOnTimeObserverTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUOnTimeObserver.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUOnTimeObserverTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUOnVelocityObserver.cpp b/extensions/Particle3D/PU/CCPUOnVelocityObserver.cpp index 4725b01d22..aaacb8f491 100644 --- a/extensions/Particle3D/PU/CCPUOnVelocityObserver.cpp +++ b/extensions/Particle3D/PU/CCPUOnVelocityObserver.cpp @@ -27,7 +27,7 @@ #include "extensions/Particle3D/PU/CCPUOnVelocityObserver.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN static bool almostEquals(float a, float b, float epsilon = std::numeric_limits::epsilon()) { @@ -82,4 +82,4 @@ void PUOnVelocityObserver::copyAttributesTo(PUObserver* observer) onVelocityObserver->_compare = _compare; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUOnVelocityObserver.h b/extensions/Particle3D/PU/CCPUOnVelocityObserver.h index 819420e5c1..510e1799ba 100644 --- a/extensions/Particle3D/PU/CCPUOnVelocityObserver.h +++ b/extensions/Particle3D/PU/CCPUOnVelocityObserver.h @@ -33,7 +33,7 @@ #include #include -NS_CC_BEGIN +NS_AX_BEGIN struct PUParticle3D; class PUParticleSystem3D; @@ -69,6 +69,6 @@ protected: PUComparisionOperator _compare; }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUOnVelocityObserverTranslator.cpp b/extensions/Particle3D/PU/CCPUOnVelocityObserverTranslator.cpp index 2b6262faee..8fc4002afc 100644 --- a/extensions/Particle3D/PU/CCPUOnVelocityObserverTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUOnVelocityObserverTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUOnVelocityObserverTranslator::PUOnVelocityObserverTranslator() {} //------------------------------------------------------------------------- @@ -80,4 +80,4 @@ bool PUOnVelocityObserverTranslator::translateChildObject(PUScriptCompiler* /*co return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUOnVelocityObserverTranslator.h b/extensions/Particle3D/PU/CCPUOnVelocityObserverTranslator.h index 803dc97038..5c85830641 100644 --- a/extensions/Particle3D/PU/CCPUOnVelocityObserverTranslator.h +++ b/extensions/Particle3D/PU/CCPUOnVelocityObserverTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUOnVelocityObserver.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUOnVelocityObserverTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUParticleFollower.cpp b/extensions/Particle3D/PU/CCPUParticleFollower.cpp index e94a426e3c..342d58133f 100644 --- a/extensions/Particle3D/PU/CCPUParticleFollower.cpp +++ b/extensions/Particle3D/PU/CCPUParticleFollower.cpp @@ -27,7 +27,7 @@ #include "CCPUParticleFollower.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN // Constants const float PUParticleFollower::DEFAULT_MAX_DISTANCE = 3.40282e+038f; @@ -106,4 +106,4 @@ void PUParticleFollower::copyAttributesTo(PUAffector* affector) particleFollower->_minDistance = _minDistance; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUParticleFollower.h b/extensions/Particle3D/PU/CCPUParticleFollower.h index 16ba4cd855..e28af1da2d 100644 --- a/extensions/Particle3D/PU/CCPUParticleFollower.h +++ b/extensions/Particle3D/PU/CCPUParticleFollower.h @@ -30,7 +30,7 @@ #include "extensions/Particle3D/PU/CCPUAffector.h" #include "base/ccTypes.h" -NS_CC_BEGIN +NS_AX_BEGIN class CC_EX_DLL PUParticleFollower : public PUAffector { @@ -65,6 +65,6 @@ protected: Vec3 _positionPreviousParticle; bool _first; }; -NS_CC_END +NS_AX_END #endif \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUParticleFollowerTranslator.cpp b/extensions/Particle3D/PU/CCPUParticleFollowerTranslator.cpp index cc185c3785..1c8dd1eb6c 100644 --- a/extensions/Particle3D/PU/CCPUParticleFollowerTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUParticleFollowerTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUParticleFollowerTranslator::PUParticleFollowerTranslator() {} //------------------------------------------------------------------------- @@ -101,4 +101,4 @@ bool PUParticleFollowerTranslator::translateChildObject(PUScriptCompiler* /*comp return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUParticleFollowerTranslator.h b/extensions/Particle3D/PU/CCPUParticleFollowerTranslator.h index 9d230feab7..6488c34188 100644 --- a/extensions/Particle3D/PU/CCPUParticleFollowerTranslator.h +++ b/extensions/Particle3D/PU/CCPUParticleFollowerTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUParticleFollower.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUParticleFollowerTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUParticleSystem3D.cpp b/extensions/Particle3D/PU/CCPUParticleSystem3D.cpp index 209d21ff67..0edbf91be8 100644 --- a/extensions/Particle3D/PU/CCPUParticleSystem3D.cpp +++ b/extensions/Particle3D/PU/CCPUParticleSystem3D.cpp @@ -39,7 +39,7 @@ #include "extensions/Particle3D/PU/CCPUBehaviour.h" #include "platform/CCFileUtils.h" -NS_CC_BEGIN +NS_AX_BEGIN float PUParticle3D::DEFAULT_TTL = 10.0f; float PUParticle3D::DEFAULT_MASS = 1.0f; @@ -841,7 +841,7 @@ bool PUParticleSystem3D::isExpired(PUParticle3D* particle, float timeElapsed) return expired; } -cocos2d::Vec3 PUParticleSystem3D::getDerivedPosition() +axis::Vec3 PUParticleSystem3D::getDerivedPosition() { // if (_parentParticleSystem && _parentParticleSystem->isKeepLocal()) return Vec3::ZERO; // if (_keepLocal) return Vec3::ZERO; @@ -856,7 +856,7 @@ cocos2d::Vec3 PUParticleSystem3D::getDerivedPosition() } } -cocos2d::Quaternion PUParticleSystem3D::getDerivedOrientation() +axis::Quaternion PUParticleSystem3D::getDerivedOrientation() { // if (_parentParticleSystem && _parentParticleSystem->isKeepLocal()) return Quaternion(); // if (_keepLocal) return Quaternion(); @@ -873,7 +873,7 @@ cocos2d::Quaternion PUParticleSystem3D::getDerivedOrientation() } } -cocos2d::Vec3 PUParticleSystem3D::getDerivedScale() +axis::Vec3 PUParticleSystem3D::getDerivedScale() { // if (_parentParticleSystem && _parentParticleSystem->isKeepLocal()) return Vec3::ONE; // if (_keepLocal) return Vec3::ONE; @@ -1577,4 +1577,4 @@ void PUParticleSystem3D::forceStopParticleSystem() unPrepared(); } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUParticleSystem3D.h b/extensions/Particle3D/PU/CCPUParticleSystem3D.h index ba2ea1a3f7..0686fd6177 100644 --- a/extensions/Particle3D/PU/CCPUParticleSystem3D.h +++ b/extensions/Particle3D/PU/CCPUParticleSystem3D.h @@ -34,7 +34,7 @@ #include #include -NS_CC_BEGIN +NS_AX_BEGIN /** * 3d particle system @@ -419,6 +419,6 @@ protected: PUParticleSystem3D* _parentParticleSystem; }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUParticleSystem3DTranslator.cpp b/extensions/Particle3D/PU/CCPUParticleSystem3DTranslator.cpp index 19f15bb1f0..7f8c0f3e49 100644 --- a/extensions/Particle3D/PU/CCPUParticleSystem3DTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUParticleSystem3DTranslator.cpp @@ -26,7 +26,7 @@ #include "CCPUParticleSystem3DTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUParticleSystem3DTranslator::PUParticleSystem3DTranslator() {} PUParticleSystem3DTranslator::~PUParticleSystem3DTranslator() {} @@ -260,4 +260,4 @@ void PUParticleSystem3DTranslator::translate(PUScriptCompiler* compiler, PUAbstr } } -NS_CC_END \ No newline at end of file +NS_AX_END \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUParticleSystem3DTranslator.h b/extensions/Particle3D/PU/CCPUParticleSystem3DTranslator.h index b448262cef..dfec22739e 100644 --- a/extensions/Particle3D/PU/CCPUParticleSystem3DTranslator.h +++ b/extensions/Particle3D/PU/CCPUParticleSystem3DTranslator.h @@ -32,7 +32,7 @@ #include "extensions/Particle3D/PU/CCPUScriptTranslator.h" #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUParticleSystem3DTranslator : public PUScriptTranslator { @@ -51,6 +51,6 @@ protected: PUParticleSystem3D* _system; }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUPathFollower.cpp b/extensions/Particle3D/PU/CCPUPathFollower.cpp index 3d79ff5822..1b6e8a014a 100644 --- a/extensions/Particle3D/PU/CCPUPathFollower.cpp +++ b/extensions/Particle3D/PU/CCPUPathFollower.cpp @@ -27,7 +27,7 @@ #include "CCPUPathFollower.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN PUPathFollower::PUPathFollower(void) {} @@ -82,4 +82,4 @@ void PUPathFollower::copyAttributesTo(PUAffector* affector) } } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUPathFollower.h b/extensions/Particle3D/PU/CCPUPathFollower.h index 4faca0a78a..e7820d0872 100644 --- a/extensions/Particle3D/PU/CCPUPathFollower.h +++ b/extensions/Particle3D/PU/CCPUPathFollower.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUSimpleSpline.h" #include "base/ccTypes.h" -NS_CC_BEGIN +NS_AX_BEGIN class CC_EX_DLL PUPathFollower : public PUAffector { @@ -63,6 +63,6 @@ public: protected: PUSimpleSpline _spline; }; -NS_CC_END +NS_AX_END #endif \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUPathFollowerTranslator.cpp b/extensions/Particle3D/PU/CCPUPathFollowerTranslator.cpp index 875fba56bd..a9d244dbb6 100644 --- a/extensions/Particle3D/PU/CCPUPathFollowerTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUPathFollowerTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUPathFollowerTranslator::PUPathFollowerTranslator() {} //------------------------------------------------------------------------- @@ -62,4 +62,4 @@ bool PUPathFollowerTranslator::translateChildObject(PUScriptCompiler* /*compiler return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUPathFollowerTranslator.h b/extensions/Particle3D/PU/CCPUPathFollowerTranslator.h index d93ac179ac..075d3db8e8 100644 --- a/extensions/Particle3D/PU/CCPUPathFollowerTranslator.h +++ b/extensions/Particle3D/PU/CCPUPathFollowerTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUPathFollower.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUPathFollowerTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUPlane.cpp b/extensions/Particle3D/PU/CCPUPlane.cpp index c168dbe0ef..77adb8a55e 100644 --- a/extensions/Particle3D/PU/CCPUPlane.cpp +++ b/extensions/Particle3D/PU/CCPUPlane.cpp @@ -27,7 +27,7 @@ #include "CCPUPlane.h" -NS_CC_BEGIN +NS_AX_BEGIN //----------------------------------------------------------------------- PUPlane::PUPlane() { @@ -158,4 +158,4 @@ float PUPlane::normalize() return fLength; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUPlane.h b/extensions/Particle3D/PU/CCPUPlane.h index 1439da8c1f..5fe6f943e5 100644 --- a/extensions/Particle3D/PU/CCPUPlane.h +++ b/extensions/Particle3D/PU/CCPUPlane.h @@ -32,7 +32,7 @@ #include "3d/CCAABB.h" #include -NS_CC_BEGIN +NS_AX_BEGIN /** Defines a plane in 3D space. @remarks A plane is defined in 3D space by the equation @@ -133,6 +133,6 @@ public: }; typedef std::vector PlaneList; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUPlaneCollider.cpp b/extensions/Particle3D/PU/CCPUPlaneCollider.cpp index be45f784e5..91afc83c71 100644 --- a/extensions/Particle3D/PU/CCPUPlaneCollider.cpp +++ b/extensions/Particle3D/PU/CCPUPlaneCollider.cpp @@ -27,7 +27,7 @@ #include "CCPUPlaneCollider.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN // Constants const Vec3 PUPlaneCollider::DEFAULT_NORMAL(0, 0, 0); @@ -169,4 +169,4 @@ void PUPlaneCollider::copyAttributesTo(PUAffector* affector) planeCollider->setNormal(_normal); } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUPlaneCollider.h b/extensions/Particle3D/PU/CCPUPlaneCollider.h index 44eae5f0ad..4b64ab86ee 100644 --- a/extensions/Particle3D/PU/CCPUPlaneCollider.h +++ b/extensions/Particle3D/PU/CCPUPlaneCollider.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUPlane.h" #include "base/ccTypes.h" -NS_CC_BEGIN +NS_AX_BEGIN class CC_EX_DLL PUPlaneCollider : public PUBaseCollider { @@ -66,6 +66,6 @@ protected: Vec3 _predictedPosition; PUPlane _plane; }; -NS_CC_END +NS_AX_END #endif \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUPlaneColliderTranslator.cpp b/extensions/Particle3D/PU/CCPUPlaneColliderTranslator.cpp index 482e8fa76a..d67f46e83a 100644 --- a/extensions/Particle3D/PU/CCPUPlaneColliderTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUPlaneColliderTranslator.cpp @@ -30,7 +30,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" #include "extensions/Particle3D/PU/CCPUBaseColliderTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUPlaneColliderTranslator::PUPlaneColliderTranslator() {} //------------------------------------------------------------------------- @@ -82,4 +82,4 @@ bool PUPlaneColliderTranslator::translateChildObject(PUScriptCompiler* /*compile return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUPlaneColliderTranslator.h b/extensions/Particle3D/PU/CCPUPlaneColliderTranslator.h index 348e3aa0b6..8caa7c66db 100644 --- a/extensions/Particle3D/PU/CCPUPlaneColliderTranslator.h +++ b/extensions/Particle3D/PU/CCPUPlaneColliderTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUPlaneCollider.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUPlaneColliderTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUPointEmitter.cpp b/extensions/Particle3D/PU/CCPUPointEmitter.cpp index 0852e953a2..1ea06fbaa4 100644 --- a/extensions/Particle3D/PU/CCPUPointEmitter.cpp +++ b/extensions/Particle3D/PU/CCPUPointEmitter.cpp @@ -27,7 +27,7 @@ #include "CCPUPointEmitter.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN PUPointEmitter::PUPointEmitter(void) {} @@ -52,4 +52,4 @@ PUPointEmitter* PUPointEmitter::clone() return be; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUPointEmitter.h b/extensions/Particle3D/PU/CCPUPointEmitter.h index f2d8dc8762..aa18f6a740 100644 --- a/extensions/Particle3D/PU/CCPUPointEmitter.h +++ b/extensions/Particle3D/PU/CCPUPointEmitter.h @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUEmitter.h" -NS_CC_BEGIN +NS_AX_BEGIN class CC_EX_DLL PUPointEmitter : public PUEmitter { @@ -42,6 +42,6 @@ public: PUPointEmitter(); virtual ~PUPointEmitter(); }; -NS_CC_END +NS_AX_END #endif \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUPointEmitterTranslator.cpp b/extensions/Particle3D/PU/CCPUPointEmitterTranslator.cpp index e78f2ae809..fb0acc6f75 100644 --- a/extensions/Particle3D/PU/CCPUPointEmitterTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUPointEmitterTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUPointEmitterTranslator::PUPointEmitterTranslator() {} //------------------------------------------------------------------------- @@ -45,4 +45,4 @@ bool PUPointEmitterTranslator::translateChildObject(PUScriptCompiler* /*compiler return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUPointEmitterTranslator.h b/extensions/Particle3D/PU/CCPUPointEmitterTranslator.h index 16c516d155..79b0b44e0f 100644 --- a/extensions/Particle3D/PU/CCPUPointEmitterTranslator.h +++ b/extensions/Particle3D/PU/CCPUPointEmitterTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUPointEmitter.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUPointEmitterTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif /* defined(__cocos2d_libs__CCParticle3DAffectorTranslator__) */ diff --git a/extensions/Particle3D/PU/CCPUPositionEmitter.cpp b/extensions/Particle3D/PU/CCPUPositionEmitter.cpp index 8d55e035c7..fb59e715fd 100644 --- a/extensions/Particle3D/PU/CCPUPositionEmitter.cpp +++ b/extensions/Particle3D/PU/CCPUPositionEmitter.cpp @@ -27,7 +27,7 @@ #include "CCPUPositionEmitter.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN // Constants const bool PUPositionEmitter::DEFAULT_RANDOMIZE = true; @@ -142,4 +142,4 @@ PUPositionEmitter* PUPositionEmitter::clone() return be; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUPositionEmitter.h b/extensions/Particle3D/PU/CCPUPositionEmitter.h index 6616d1f721..e71103d1a4 100644 --- a/extensions/Particle3D/PU/CCPUPositionEmitter.h +++ b/extensions/Particle3D/PU/CCPUPositionEmitter.h @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUEmitter.h" -NS_CC_BEGIN +NS_AX_BEGIN class CC_EX_DLL PUPositionEmitter : public PUEmitter { @@ -81,6 +81,6 @@ protected: bool _randomized; size_t _index; }; -NS_CC_END +NS_AX_END #endif \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUPositionEmitterTranslator.cpp b/extensions/Particle3D/PU/CCPUPositionEmitterTranslator.cpp index 52b60a4f26..3d1ca6b9ce 100644 --- a/extensions/Particle3D/PU/CCPUPositionEmitterTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUPositionEmitterTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUPositionEmitterTranslator::PUPositionEmitterTranslator() {} //------------------------------------------------------------------------- @@ -75,4 +75,4 @@ bool PUPositionEmitterTranslator::translateChildObject(PUScriptCompiler* /*compi return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUPositionEmitterTranslator.h b/extensions/Particle3D/PU/CCPUPositionEmitterTranslator.h index 158cfa7170..6e9160448b 100644 --- a/extensions/Particle3D/PU/CCPUPositionEmitterTranslator.h +++ b/extensions/Particle3D/PU/CCPUPositionEmitterTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUPositionEmitter.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUPositionEmitterTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif /* defined(__cocos2d_libs__CCParticle3DAffectorTranslator__) */ diff --git a/extensions/Particle3D/PU/CCPURandomiser.cpp b/extensions/Particle3D/PU/CCPURandomiser.cpp index 278f9617a6..9e4f38d991 100644 --- a/extensions/Particle3D/PU/CCPURandomiser.cpp +++ b/extensions/Particle3D/PU/CCPURandomiser.cpp @@ -27,7 +27,7 @@ #include "CCPURandomiser.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN // Constants const Vec3 PURandomiser::DEFAULT_MAX_DEVIATION(0, 0, 0); @@ -165,4 +165,4 @@ void PURandomiser::copyAttributesTo(PUAffector* affector) randomiser->_randomDirection = _randomDirection; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPURandomiser.h b/extensions/Particle3D/PU/CCPURandomiser.h index 353040b2e7..1f7f0f42bc 100644 --- a/extensions/Particle3D/PU/CCPURandomiser.h +++ b/extensions/Particle3D/PU/CCPURandomiser.h @@ -30,7 +30,7 @@ #include "extensions/Particle3D/PU/CCPUAffector.h" #include "base/ccTypes.h" -NS_CC_BEGIN +NS_AX_BEGIN class CC_EX_DLL PURandomiser : public PUAffector { @@ -84,6 +84,6 @@ protected: bool _randomDirection; bool _update; }; -NS_CC_END +NS_AX_END #endif \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPURandomiserTranslator.cpp b/extensions/Particle3D/PU/CCPURandomiserTranslator.cpp index ccac003f7d..4759317f2c 100644 --- a/extensions/Particle3D/PU/CCPURandomiserTranslator.cpp +++ b/extensions/Particle3D/PU/CCPURandomiserTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PURandomiserTranslator::PURandomiserTranslator() {} //------------------------------------------------------------------------- @@ -179,4 +179,4 @@ bool PURandomiserTranslator::translateChildObject(PUScriptCompiler* /*compiler*/ return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPURandomiserTranslator.h b/extensions/Particle3D/PU/CCPURandomiserTranslator.h index c1e51c79a9..1eb34a9068 100644 --- a/extensions/Particle3D/PU/CCPURandomiserTranslator.h +++ b/extensions/Particle3D/PU/CCPURandomiserTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPURandomiser.h" -NS_CC_BEGIN +NS_AX_BEGIN class PURandomiserTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPURender.cpp b/extensions/Particle3D/PU/CCPURender.cpp index 41b03b58f7..87f3c00236 100644 --- a/extensions/Particle3D/PU/CCPURender.cpp +++ b/extensions/Particle3D/PU/CCPURender.cpp @@ -40,7 +40,7 @@ #include "3d/CCMesh.h" #include "2d/CCCamera.h" -NS_CC_BEGIN +NS_AX_BEGIN void PURender::updateRender(PUParticle3D* /*particle*/, float /*deltaTime*/, bool /*firstParticle*/) {} @@ -1062,4 +1062,4 @@ PUSphereRender* PUSphereRender::clone() return render; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPURender.h b/extensions/Particle3D/PU/CCPURender.h index 3433edef31..082833cc13 100644 --- a/extensions/Particle3D/PU/CCPURender.h +++ b/extensions/Particle3D/PU/CCPURender.h @@ -35,7 +35,7 @@ #include "renderer/backend/Types.h" #include "renderer/backend/Buffer.h" -NS_CC_BEGIN +NS_AX_BEGIN // particle render for quad struct PUParticle3D; @@ -247,4 +247,4 @@ protected: std::vector _vertexTemplate; }; -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPURendererTranslator.cpp b/extensions/Particle3D/PU/CCPURendererTranslator.cpp index 54b2814ec0..788c89a57b 100644 --- a/extensions/Particle3D/PU/CCPURendererTranslator.cpp +++ b/extensions/Particle3D/PU/CCPURendererTranslator.cpp @@ -28,7 +28,7 @@ #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" #include "extensions/Particle3D/PU/CCPUMaterialManager.h" -NS_CC_BEGIN +NS_AX_BEGIN PURendererTranslator::PURendererTranslator() {} PURendererTranslator::~PURendererTranslator() {} @@ -782,4 +782,4 @@ void PURendererTranslator::translate(PUScriptCompiler* compiler, PUAbstractNode* // } } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPURendererTranslator.h b/extensions/Particle3D/PU/CCPURendererTranslator.h index 035c71de0a..54d8afe466 100644 --- a/extensions/Particle3D/PU/CCPURendererTranslator.h +++ b/extensions/Particle3D/PU/CCPURendererTranslator.h @@ -33,7 +33,7 @@ #include "extensions/Particle3D/PU/CCPUScriptTranslator.h" #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" -NS_CC_BEGIN +NS_AX_BEGIN class PURendererTranslator : public PUScriptTranslator { @@ -46,5 +46,5 @@ public: virtual void translate(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif /* defined(__cocos2d_libs__CCParticle3DRendererTranslator__) */ diff --git a/extensions/Particle3D/PU/CCPURibbonTrail.cpp b/extensions/Particle3D/PU/CCPURibbonTrail.cpp index f79b7b7818..4d75674e39 100644 --- a/extensions/Particle3D/PU/CCPURibbonTrail.cpp +++ b/extensions/Particle3D/PU/CCPURibbonTrail.cpp @@ -34,7 +34,7 @@ #include "2d/CCCamera.h" #include "3d/CCMeshRenderer.h" -NS_CC_BEGIN +NS_AX_BEGIN PURibbonTrail::PURibbonTrail(std::string_view name, std::string_view texFile, @@ -419,4 +419,4 @@ void PURibbonTrail::update(float deltaTime) } } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPURibbonTrail.h b/extensions/Particle3D/PU/CCPURibbonTrail.h index fc91e301ec..2a3a6a5df8 100644 --- a/extensions/Particle3D/PU/CCPURibbonTrail.h +++ b/extensions/Particle3D/PU/CCPURibbonTrail.h @@ -33,7 +33,7 @@ #include #include -NS_CC_BEGIN +NS_AX_BEGIN class PURibbonTrail : public PUBillboardChain { @@ -191,5 +191,5 @@ protected: bool _needTimeUpdate; }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPURibbonTrailRender.cpp b/extensions/Particle3D/PU/CCPURibbonTrailRender.cpp index c697cf3039..c0f77101df 100644 --- a/extensions/Particle3D/PU/CCPURibbonTrailRender.cpp +++ b/extensions/Particle3D/PU/CCPURibbonTrailRender.cpp @@ -37,7 +37,7 @@ #include "2d/CCCamera.h" #include -NS_CC_BEGIN +NS_AX_BEGIN // Constants const bool PURibbonTrailRender::DEFAULT_USE_VERTEX_COLOURS = true; @@ -420,4 +420,4 @@ void PURibbonTrailRender::updateParticles(const ParticlePool& pool) } } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPURibbonTrailRender.h b/extensions/Particle3D/PU/CCPURibbonTrailRender.h index 16a75dbe8d..cc3a17b78d 100644 --- a/extensions/Particle3D/PU/CCPURibbonTrailRender.h +++ b/extensions/Particle3D/PU/CCPURibbonTrailRender.h @@ -36,7 +36,7 @@ #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" #include -NS_CC_BEGIN +NS_AX_BEGIN class PURibbonTrailVisualData : public Ref { @@ -148,5 +148,5 @@ protected: std::string _texFile; }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUScaleAffector.cpp b/extensions/Particle3D/PU/CCPUScaleAffector.cpp index d95f51194c..4129908837 100644 --- a/extensions/Particle3D/PU/CCPUScaleAffector.cpp +++ b/extensions/Particle3D/PU/CCPUScaleAffector.cpp @@ -27,7 +27,7 @@ #include "CCPUScaleAffector.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN // Constants const float PUScaleAffector::DEFAULT_X_SCALE = 1.0f; @@ -284,4 +284,4 @@ void PUScaleAffector::copyAttributesTo(PUAffector* affector) scaleAffector->_sinceStartSystem = _sinceStartSystem; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUScaleAffector.h b/extensions/Particle3D/PU/CCPUScaleAffector.h index a2b165b237..45ef1929fb 100644 --- a/extensions/Particle3D/PU/CCPUScaleAffector.h +++ b/extensions/Particle3D/PU/CCPUScaleAffector.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "base/ccTypes.h" -NS_CC_BEGIN +NS_AX_BEGIN class CC_EX_DLL PUScaleAffector : public PUAffector { @@ -99,6 +99,6 @@ protected: float _latestTimeElapsed; }; -NS_CC_END +NS_AX_END #endif \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUScaleAffectorTranslator.cpp b/extensions/Particle3D/PU/CCPUScaleAffectorTranslator.cpp index 4a5da88bdc..f2c90aabff 100644 --- a/extensions/Particle3D/PU/CCPUScaleAffectorTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUScaleAffectorTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUScaleAffectorTranslator::PUScaleAffectorTranslator() {} //------------------------------------------------------------------------- @@ -159,4 +159,4 @@ bool PUScaleAffectorTranslator::translateChildObject(PUScriptCompiler* compiler, return false; } -NS_CC_END \ No newline at end of file +NS_AX_END \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUScaleAffectorTranslator.h b/extensions/Particle3D/PU/CCPUScaleAffectorTranslator.h index 01c56bf452..198ed845ee 100644 --- a/extensions/Particle3D/PU/CCPUScaleAffectorTranslator.h +++ b/extensions/Particle3D/PU/CCPUScaleAffectorTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUScaleAffector.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUScaleAffectorTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUScaleVelocityAffector.cpp b/extensions/Particle3D/PU/CCPUScaleVelocityAffector.cpp index 26857cbe20..9e4172cc24 100644 --- a/extensions/Particle3D/PU/CCPUScaleVelocityAffector.cpp +++ b/extensions/Particle3D/PU/CCPUScaleVelocityAffector.cpp @@ -27,7 +27,7 @@ #include "CCPUScaleVelocityAffector.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN // Constants const float PUScaleVelocityAffector::DEFAULT_VELOCITY_SCALE = 1.0f; @@ -123,4 +123,4 @@ void PUScaleVelocityAffector::copyAttributesTo(PUAffector* affector) scaleVelocityAffector->_stopAtFlip = _stopAtFlip; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUScaleVelocityAffector.h b/extensions/Particle3D/PU/CCPUScaleVelocityAffector.h index 21504f6280..011f7b15e8 100644 --- a/extensions/Particle3D/PU/CCPUScaleVelocityAffector.h +++ b/extensions/Particle3D/PU/CCPUScaleVelocityAffector.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "base/ccTypes.h" -NS_CC_BEGIN +NS_AX_BEGIN class CC_EX_DLL PUScaleVelocityAffector : public PUAffector { @@ -70,6 +70,6 @@ protected: bool _sinceStartSystem; bool _stopAtFlip; }; -NS_CC_END +NS_AX_END #endif \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUScaleVelocityAffectorTranslator.cpp b/extensions/Particle3D/PU/CCPUScaleVelocityAffectorTranslator.cpp index 70556606b7..de6fedfa4b 100644 --- a/extensions/Particle3D/PU/CCPUScaleVelocityAffectorTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUScaleVelocityAffectorTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUScaleVelocityAffectorTranslator::PUScaleVelocityAffectorTranslator() {} //------------------------------------------------------------------------- @@ -103,4 +103,4 @@ bool PUScaleVelocityAffectorTranslator::translateChildObject(PUScriptCompiler* c return false; } -NS_CC_END \ No newline at end of file +NS_AX_END \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUScaleVelocityAffectorTranslator.h b/extensions/Particle3D/PU/CCPUScaleVelocityAffectorTranslator.h index 1243c06755..378ec45405 100644 --- a/extensions/Particle3D/PU/CCPUScaleVelocityAffectorTranslator.h +++ b/extensions/Particle3D/PU/CCPUScaleVelocityAffectorTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUScaleVelocityAffector.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUScaleVelocityAffectorTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUScriptCompiler.cpp b/extensions/Particle3D/PU/CCPUScriptCompiler.cpp index 7cf38e5fa0..84a33fc647 100644 --- a/extensions/Particle3D/PU/CCPUScriptCompiler.cpp +++ b/extensions/Particle3D/PU/CCPUScriptCompiler.cpp @@ -27,7 +27,7 @@ #include "CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUTranslateManager.h" #include "platform/CCFileUtils.h" -NS_CC_BEGIN +NS_AX_BEGIN // ObjectAbstractNode PUObjectAbstractNode::PUObjectAbstractNode(PUAbstractNode* ptr) : PUAbstractNode(ptr), id(0), abstract(false) @@ -407,4 +407,4 @@ PUScriptCompiler* PUScriptCompiler::Instance() return &psc; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUScriptCompiler.h b/extensions/Particle3D/PU/CCPUScriptCompiler.h index 0b991da96a..86f381ca41 100644 --- a/extensions/Particle3D/PU/CCPUScriptCompiler.h +++ b/extensions/Particle3D/PU/CCPUScriptCompiler.h @@ -32,7 +32,7 @@ #include #include -NS_CC_BEGIN +NS_AX_BEGIN /** This enum holds the types of the possible abstract nodes */ enum PUAbstractNodeType @@ -161,6 +161,6 @@ private: PUParticleSystem3D* _PUParticleSystem3D; }; -NS_CC_END +NS_AX_END #endif /* defined(__ssaafsdf__CCScriptCompile__) */ diff --git a/extensions/Particle3D/PU/CCPUScriptLexer.cpp b/extensions/Particle3D/PU/CCPUScriptLexer.cpp index 4b6105b9be..0ac48475ac 100644 --- a/extensions/Particle3D/PU/CCPUScriptLexer.cpp +++ b/extensions/Particle3D/PU/CCPUScriptLexer.cpp @@ -26,7 +26,7 @@ #include "CCPUScriptLexer.h" -NS_CC_BEGIN +NS_AX_BEGIN PUScriptLexer::PUScriptLexer() {} PUScriptLexer::~PUScriptLexer() {} @@ -291,4 +291,4 @@ bool PUScriptLexer::isNewline(char c) const return c == '\n' || c == '\r'; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUScriptLexer.h b/extensions/Particle3D/PU/CCPUScriptLexer.h index 5998425e33..65845d09b4 100644 --- a/extensions/Particle3D/PU/CCPUScriptLexer.h +++ b/extensions/Particle3D/PU/CCPUScriptLexer.h @@ -32,7 +32,7 @@ #include #include "ExtensionExport.h" -NS_CC_BEGIN +NS_AX_BEGIN enum { TID_LBRACKET = 0, // { @@ -77,6 +77,6 @@ private: // Private utility operations bool isNewline(char c) const; }; -NS_CC_END +NS_AX_END #endif \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUScriptParser.cpp b/extensions/Particle3D/PU/CCPUScriptParser.cpp index 252e83bb39..f6c962e991 100644 --- a/extensions/Particle3D/PU/CCPUScriptParser.cpp +++ b/extensions/Particle3D/PU/CCPUScriptParser.cpp @@ -26,7 +26,7 @@ #include "CCPUScriptParser.h" -NS_CC_BEGIN +NS_AX_BEGIN PUScriptParser::PUScriptParser() {} @@ -529,4 +529,4 @@ PUConcreteNode::~PUConcreteNode() } } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUScriptParser.h b/extensions/Particle3D/PU/CCPUScriptParser.h index ded931337b..2f76123dc9 100644 --- a/extensions/Particle3D/PU/CCPUScriptParser.h +++ b/extensions/Particle3D/PU/CCPUScriptParser.h @@ -35,7 +35,7 @@ #include "base/CCRef.h" #include "extensions/Particle3D/PU/CCPUScriptLexer.h" -NS_CC_BEGIN +NS_AX_BEGIN struct PUConcreteNode; @@ -82,6 +82,6 @@ private: PUScriptTokenList::const_iterator end); }; -NS_CC_END +NS_AX_END #endif /* defined(__cocos2d_libs__CCScriptParser__) */ diff --git a/extensions/Particle3D/PU/CCPUScriptTranslator.cpp b/extensions/Particle3D/PU/CCPUScriptTranslator.cpp index 0a7b4d3103..dca1ceb6b0 100644 --- a/extensions/Particle3D/PU/CCPUScriptTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUScriptTranslator.cpp @@ -27,7 +27,7 @@ #include "CCPUScriptTranslator.h" #include "extensions/Particle3D/PU/CCPUTranslateManager.h" -NS_CC_BEGIN +NS_AX_BEGIN const std::string token[1000] = { // Generic @@ -770,4 +770,4 @@ void PUScriptTranslator::processNode(PUScriptCompiler* compiler, PUAbstractNode* //------------------------------------------------------------------------- //------------------------------------------------------------------------- -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUScriptTranslator.h b/extensions/Particle3D/PU/CCPUScriptTranslator.h index c6b01e20a3..74fbe3ded4 100644 --- a/extensions/Particle3D/PU/CCPUScriptTranslator.h +++ b/extensions/Particle3D/PU/CCPUScriptTranslator.h @@ -33,7 +33,7 @@ #include "math/CCMath.h" #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" -NS_CC_BEGIN +NS_AX_BEGIN // Define static tokens enum eDefineStaticToken @@ -745,6 +745,6 @@ public: virtual bool isParticleSystemTranslator() const { return false; } }; -NS_CC_END +NS_AX_END #endif /* defined(__ssaafsdf__CCScriptTranslator__) */ diff --git a/extensions/Particle3D/PU/CCPUSimpleSpline.cpp b/extensions/Particle3D/PU/CCPUSimpleSpline.cpp index 9fea60b634..66f86bb097 100644 --- a/extensions/Particle3D/PU/CCPUSimpleSpline.cpp +++ b/extensions/Particle3D/PU/CCPUSimpleSpline.cpp @@ -27,7 +27,7 @@ #include "CCPUSimpleSpline.h" #include "base/ccMacros.h" -NS_CC_BEGIN +NS_AX_BEGIN //--------------------------------------------------------------------- PUSimpleSpline::PUSimpleSpline() { @@ -235,4 +235,4 @@ void PUSimpleSpline::setAutoCalculate(bool autoCalc) { _autoCalc = autoCalc; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUSimpleSpline.h b/extensions/Particle3D/PU/CCPUSimpleSpline.h index 0eef95af70..e029a6f2f5 100644 --- a/extensions/Particle3D/PU/CCPUSimpleSpline.h +++ b/extensions/Particle3D/PU/CCPUSimpleSpline.h @@ -32,7 +32,7 @@ #include #include "ExtensionExport.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUSimpleSpline { public: @@ -101,6 +101,6 @@ protected: /// Matrix of coefficients Mat4 _coeffs; }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUSineForceAffector.cpp b/extensions/Particle3D/PU/CCPUSineForceAffector.cpp index 03bdbd4732..e492c23a30 100644 --- a/extensions/Particle3D/PU/CCPUSineForceAffector.cpp +++ b/extensions/Particle3D/PU/CCPUSineForceAffector.cpp @@ -27,7 +27,7 @@ #include "CCPUSineForceAffector.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN // Constants const float PUSineForceAffector::DEFAULT_FREQ_MIN = 1.0f; const float PUSineForceAffector::DEFAULT_FREQ_MAX = 1.0f; @@ -55,7 +55,7 @@ void PUSineForceAffector::preUpdateAffector(float deltaTime) if (_frequencyMin != _frequencyMax) { - _frequency = cocos2d::random(_frequencyMin, _frequencyMax); + _frequency = axis::random(_frequencyMin, _frequencyMax); } } } @@ -121,4 +121,4 @@ void PUSineForceAffector::copyAttributesTo(PUAffector* affector) sineForceAffector->_angle = _angle; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUSineForceAffector.h b/extensions/Particle3D/PU/CCPUSineForceAffector.h index 35f6e3d127..818fd5e94b 100644 --- a/extensions/Particle3D/PU/CCPUSineForceAffector.h +++ b/extensions/Particle3D/PU/CCPUSineForceAffector.h @@ -30,7 +30,7 @@ #include "CCPUBaseForceAffector.h" #include "base/ccTypes.h" -NS_CC_BEGIN +NS_AX_BEGIN class CC_EX_DLL PUSineForceAffector : public PUBaseForceAffector { @@ -65,6 +65,6 @@ protected: float _frequencyMax; float _frequency; }; -NS_CC_END +NS_AX_END #endif \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUSineForceAffectorTranslator.cpp b/extensions/Particle3D/PU/CCPUSineForceAffectorTranslator.cpp index fcefc1a208..907fad96d3 100644 --- a/extensions/Particle3D/PU/CCPUSineForceAffectorTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUSineForceAffectorTranslator.cpp @@ -30,7 +30,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" #include "extensions/Particle3D/PU/CCPUBaseForceAffectorTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUSineForceAffectorTranslator::PUSineForceAffectorTranslator() {} //------------------------------------------------------------------------- @@ -108,4 +108,4 @@ bool PUSineForceAffectorTranslator::translateChildObject(PUScriptCompiler* /*com return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUSineForceAffectorTranslator.h b/extensions/Particle3D/PU/CCPUSineForceAffectorTranslator.h index 4cfe478bac..66ccf66868 100644 --- a/extensions/Particle3D/PU/CCPUSineForceAffectorTranslator.h +++ b/extensions/Particle3D/PU/CCPUSineForceAffectorTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUSineForceAffector.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUSineForceAffectorTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUSlaveBehaviour.cpp b/extensions/Particle3D/PU/CCPUSlaveBehaviour.cpp index b3c4bf976f..2b3a253585 100644 --- a/extensions/Particle3D/PU/CCPUSlaveBehaviour.cpp +++ b/extensions/Particle3D/PU/CCPUSlaveBehaviour.cpp @@ -27,7 +27,7 @@ #include "extensions/Particle3D/PU/CCPUSlaveBehaviour.h" #include "base/ccMacros.h" -NS_CC_BEGIN +NS_AX_BEGIN PUSlaveBehaviour::PUSlaveBehaviour() : masterParticle(nullptr) {} @@ -61,4 +61,4 @@ void PUSlaveBehaviour::copyAttributesTo(PUBehaviour* behaviour) PUBehaviour::copyAttributesTo(behaviour); } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUSlaveBehaviour.h b/extensions/Particle3D/PU/CCPUSlaveBehaviour.h index b3a95e9b8a..dcbe042ded 100644 --- a/extensions/Particle3D/PU/CCPUSlaveBehaviour.h +++ b/extensions/Particle3D/PU/CCPUSlaveBehaviour.h @@ -34,7 +34,7 @@ #include #include -NS_CC_BEGIN +NS_AX_BEGIN struct PUParticle3D; class PUParticleSystem3D; @@ -57,6 +57,6 @@ public: virtual ~PUSlaveBehaviour(); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUSlaveBehaviourTranslator.cpp b/extensions/Particle3D/PU/CCPUSlaveBehaviourTranslator.cpp index 19ae0ea65f..696d63dadb 100644 --- a/extensions/Particle3D/PU/CCPUSlaveBehaviourTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUSlaveBehaviourTranslator.cpp @@ -28,7 +28,7 @@ #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" #include "extensions/Particle3D/PU/CCPUBehaviourManager.h" -NS_CC_BEGIN +NS_AX_BEGIN PUSlaveBehaviourTranslator::PUSlaveBehaviourTranslator() {} bool PUSlaveBehaviourTranslator::translateChildProperty(PUScriptCompiler* /*compiler*/, PUAbstractNode* /*node*/) @@ -41,4 +41,4 @@ bool PUSlaveBehaviourTranslator::translateChildObject(PUScriptCompiler* /*compil return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUSlaveBehaviourTranslator.h b/extensions/Particle3D/PU/CCPUSlaveBehaviourTranslator.h index d608f348b3..491c18b6c3 100644 --- a/extensions/Particle3D/PU/CCPUSlaveBehaviourTranslator.h +++ b/extensions/Particle3D/PU/CCPUSlaveBehaviourTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUSlaveBehaviour.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUSlaveBehaviourTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif /* defined(__cocos2d_libs__CCParticle3DAffectorTranslator__) */ diff --git a/extensions/Particle3D/PU/CCPUSlaveEmitter.cpp b/extensions/Particle3D/PU/CCPUSlaveEmitter.cpp index 7fd8cc1417..f251ce2b5a 100644 --- a/extensions/Particle3D/PU/CCPUSlaveEmitter.cpp +++ b/extensions/Particle3D/PU/CCPUSlaveEmitter.cpp @@ -28,7 +28,7 @@ #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" #include "extensions/Particle3D/PU/CCPUSlaveBehaviour.h" -NS_CC_BEGIN +NS_AX_BEGIN //----------------------------------------------------------------------- PUSlaveEmitter::PUSlaveEmitter() : PUEmitter() @@ -179,4 +179,4 @@ PUSlaveEmitter* PUSlaveEmitter::clone() return be; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUSlaveEmitter.h b/extensions/Particle3D/PU/CCPUSlaveEmitter.h index 7a1a368b06..290d07ad67 100644 --- a/extensions/Particle3D/PU/CCPUSlaveEmitter.h +++ b/extensions/Particle3D/PU/CCPUSlaveEmitter.h @@ -30,7 +30,7 @@ #include "extensions/Particle3D/PU/CCPUEmitter.h" #include "extensions/Particle3D/PU/CCPUListener.h" -NS_CC_BEGIN +NS_AX_BEGIN // FIXME class CC_EX_DLL PUSlaveEmitter : public PUEmitter, public PUListener { @@ -95,6 +95,6 @@ protected: Vec3 _masterDirection; bool _masterEmitterNameSet; }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUSlaveEmitterTranslator.cpp b/extensions/Particle3D/PU/CCPUSlaveEmitterTranslator.cpp index 4b40ebbeb5..101306b345 100644 --- a/extensions/Particle3D/PU/CCPUSlaveEmitterTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUSlaveEmitterTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUSlaveEmitterTranslator::PUSlaveEmitterTranslator() {} //------------------------------------------------------------------------- @@ -75,4 +75,4 @@ bool PUSlaveEmitterTranslator::translateChildObject(PUScriptCompiler* /*compiler return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUSlaveEmitterTranslator.h b/extensions/Particle3D/PU/CCPUSlaveEmitterTranslator.h index b6d7c28679..35ec9dc36c 100644 --- a/extensions/Particle3D/PU/CCPUSlaveEmitterTranslator.h +++ b/extensions/Particle3D/PU/CCPUSlaveEmitterTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUSlaveEmitter.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUSlaveEmitterTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif /* defined(__cocos2d_libs__CCParticle3DAffectorTranslator__) */ diff --git a/extensions/Particle3D/PU/CCPUSphere.cpp b/extensions/Particle3D/PU/CCPUSphere.cpp index 2ff20e7e3d..c567574f0d 100644 --- a/extensions/Particle3D/PU/CCPUSphere.cpp +++ b/extensions/Particle3D/PU/CCPUSphere.cpp @@ -26,7 +26,7 @@ #include "CCPUSphere.h" -NS_CC_BEGIN +NS_AX_BEGIN PUSphere::PUSphere() : _radius(1.0) {} @@ -69,4 +69,4 @@ void PUSphere::merge(const PUSphere& oth) _radius = newRadius; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUSphere.h b/extensions/Particle3D/PU/CCPUSphere.h index eb27bfc1eb..1650682c17 100644 --- a/extensions/Particle3D/PU/CCPUSphere.h +++ b/extensions/Particle3D/PU/CCPUSphere.h @@ -32,7 +32,7 @@ #include "3d/CCAABB.h" #include -NS_CC_BEGIN +NS_AX_BEGIN /** A sphere primitive, mostly used for bounds checking. @remarks A sphere in math texts is normally represented by the function @@ -86,6 +86,6 @@ public: /** Merges another Sphere into the current sphere */ void merge(const PUSphere& oth); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUSphereCollider.cpp b/extensions/Particle3D/PU/CCPUSphereCollider.cpp index 6bd87edc40..d47272719e 100644 --- a/extensions/Particle3D/PU/CCPUSphereCollider.cpp +++ b/extensions/Particle3D/PU/CCPUSphereCollider.cpp @@ -27,7 +27,7 @@ #include "CCPUSphereCollider.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN // Constants const float PUSphereCollider::DEFAULT_RADIUS = 100.0f; @@ -198,4 +198,4 @@ void PUSphereCollider::copyAttributesTo(PUAffector* affector) sphereCollider->_innerCollision = _innerCollision; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUSphereCollider.h b/extensions/Particle3D/PU/CCPUSphereCollider.h index 38473e8da4..7d080b7fde 100644 --- a/extensions/Particle3D/PU/CCPUSphereCollider.h +++ b/extensions/Particle3D/PU/CCPUSphereCollider.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUSphere.h" #include "base/ccTypes.h" -NS_CC_BEGIN +NS_AX_BEGIN class CC_EX_DLL PUSphereCollider : public PUBaseCollider { @@ -79,6 +79,6 @@ protected: Vec3 _predictedPosition; bool _innerCollision; }; -NS_CC_END +NS_AX_END #endif \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUSphereColliderTranslator.cpp b/extensions/Particle3D/PU/CCPUSphereColliderTranslator.cpp index 1cecb05cdb..ca8a322045 100644 --- a/extensions/Particle3D/PU/CCPUSphereColliderTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUSphereColliderTranslator.cpp @@ -30,7 +30,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" #include "extensions/Particle3D/PU/CCPUBaseColliderTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUSphereColliderTranslator::PUSphereColliderTranslator() {} //------------------------------------------------------------------------- @@ -95,4 +95,4 @@ bool PUSphereColliderTranslator::translateChildObject(PUScriptCompiler* /*compil return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUSphereColliderTranslator.h b/extensions/Particle3D/PU/CCPUSphereColliderTranslator.h index 209fd5449a..e12edc90a9 100644 --- a/extensions/Particle3D/PU/CCPUSphereColliderTranslator.h +++ b/extensions/Particle3D/PU/CCPUSphereColliderTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUSphereCollider.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUSphereColliderTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUSphereSurfaceEmitter.cpp b/extensions/Particle3D/PU/CCPUSphereSurfaceEmitter.cpp index 97ba309954..87df8cf1da 100644 --- a/extensions/Particle3D/PU/CCPUSphereSurfaceEmitter.cpp +++ b/extensions/Particle3D/PU/CCPUSphereSurfaceEmitter.cpp @@ -28,7 +28,7 @@ #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" #include "extensions/Particle3D/PU/CCPUUtil.h" -NS_CC_BEGIN +NS_AX_BEGIN // Constants const float PUSphereSurfaceEmitter::DEFAULT_RADIUS = 10.0f; @@ -117,4 +117,4 @@ PUSphereSurfaceEmitter* PUSphereSurfaceEmitter::clone() return be; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUSphereSurfaceEmitter.h b/extensions/Particle3D/PU/CCPUSphereSurfaceEmitter.h index 8883456ef1..44fa5f690c 100644 --- a/extensions/Particle3D/PU/CCPUSphereSurfaceEmitter.h +++ b/extensions/Particle3D/PU/CCPUSphereSurfaceEmitter.h @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUEmitter.h" -NS_CC_BEGIN +NS_AX_BEGIN class CC_EX_DLL PUSphereSurfaceEmitter : public PUEmitter { @@ -61,6 +61,6 @@ protected: float _radius; Vec3 _randomVector; }; -NS_CC_END +NS_AX_END #endif \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUSphereSurfaceEmitterTranslator.cpp b/extensions/Particle3D/PU/CCPUSphereSurfaceEmitterTranslator.cpp index 2eb38a10a0..95987f6502 100644 --- a/extensions/Particle3D/PU/CCPUSphereSurfaceEmitterTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUSphereSurfaceEmitterTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUSphereSurfaceEmitterTranslator::PUSphereSurfaceEmitterTranslator() {} //------------------------------------------------------------------------- @@ -75,4 +75,4 @@ bool PUSphereSurfaceEmitterTranslator::translateChildObject(PUScriptCompiler* /* return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUSphereSurfaceEmitterTranslator.h b/extensions/Particle3D/PU/CCPUSphereSurfaceEmitterTranslator.h index db2861cf53..3fc10b4e5e 100644 --- a/extensions/Particle3D/PU/CCPUSphereSurfaceEmitterTranslator.h +++ b/extensions/Particle3D/PU/CCPUSphereSurfaceEmitterTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUSphereSurfaceEmitter.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUSphereSurfaceEmitterTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif /* defined(__cocos2d_libs__CCParticle3DAffectorTranslator__) */ diff --git a/extensions/Particle3D/PU/CCPUTechniqueTranslator.cpp b/extensions/Particle3D/PU/CCPUTechniqueTranslator.cpp index 4a0d50e060..b3e842876b 100644 --- a/extensions/Particle3D/PU/CCPUTechniqueTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUTechniqueTranslator.cpp @@ -27,7 +27,7 @@ #include "CCPUTechniqueTranslator.h" #include "extensions/Particle3D/PU/CCPUMaterialManager.h" -NS_CC_BEGIN +NS_AX_BEGIN PUTechniqueTranslator::PUTechniqueTranslator() //: mTechnique(0) {} @@ -405,4 +405,4 @@ void PUTechniqueTranslator::translate(PUScriptCompiler* compiler, PUAbstractNode } } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUTechniqueTranslator.h b/extensions/Particle3D/PU/CCPUTechniqueTranslator.h index dbb77d3eeb..2fcecf412f 100644 --- a/extensions/Particle3D/PU/CCPUTechniqueTranslator.h +++ b/extensions/Particle3D/PU/CCPUTechniqueTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptTranslator.h" #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUTechniqueTranslator : public PUScriptTranslator { protected: @@ -44,6 +44,6 @@ public: virtual void translate(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif /* defined(__cocos2d_libs__CCParticle3DTechniqueTranslator__) */ diff --git a/extensions/Particle3D/PU/CCPUTextureAnimator.cpp b/extensions/Particle3D/PU/CCPUTextureAnimator.cpp index 8e90e36a91..70a9ef4adc 100644 --- a/extensions/Particle3D/PU/CCPUTextureAnimator.cpp +++ b/extensions/Particle3D/PU/CCPUTextureAnimator.cpp @@ -27,7 +27,7 @@ #include "CCPUTextureAnimator.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN // Constants const float PUTextureAnimator::DEFAULT_TIME_STEP = 0.0f; const unsigned short PUTextureAnimator::DEFAULT_TEXCOORDS_START = 0; @@ -111,7 +111,7 @@ void PUTextureAnimator::initParticleForEmission(PUParticle3D* particle) if (_startRandom) { particle->textureCoordsCurrent = - (unsigned short)cocos2d::random((float)_textureCoordsStart, (float)_textureCoordsEnd + 0.999f); + (unsigned short)axis::random((float)_textureCoordsStart, (float)_textureCoordsEnd + 0.999f); } else { @@ -213,7 +213,7 @@ void PUTextureAnimator::determineNextTextureCoords(PUParticle3D* visualParticle) { // Generate a random texcoord index visualParticle->textureCoordsCurrent = - (unsigned short)cocos2d::random((float)_textureCoordsStart, (float)_textureCoordsEnd + 0.999f); + (unsigned short)axis::random((float)_textureCoordsStart, (float)_textureCoordsEnd + 0.999f); } break; } @@ -268,4 +268,4 @@ void PUTextureAnimator::copyAttributesTo(PUAffector* affector) textureAnimator->_startRandom = _startRandom; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUTextureAnimator.h b/extensions/Particle3D/PU/CCPUTextureAnimator.h index 92d0842bd0..a602caf9a3 100644 --- a/extensions/Particle3D/PU/CCPUTextureAnimator.h +++ b/extensions/Particle3D/PU/CCPUTextureAnimator.h @@ -30,7 +30,7 @@ #include "extensions/Particle3D/PU/CCPUAffector.h" #include "base/ccTypes.h" -NS_CC_BEGIN +NS_AX_BEGIN class CC_EX_DLL PUTextureAnimator : public PUAffector { @@ -105,6 +105,6 @@ protected: unsigned short _textureCoordsStart; unsigned short _textureCoordsEnd; }; -NS_CC_END +NS_AX_END #endif \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUTextureAnimatorTranslator.cpp b/extensions/Particle3D/PU/CCPUTextureAnimatorTranslator.cpp index 8d21df0191..e5cf70fbf3 100644 --- a/extensions/Particle3D/PU/CCPUTextureAnimatorTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUTextureAnimatorTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUTextureAnimatorTranslator::PUTextureAnimatorTranslator() {} //------------------------------------------------------------------------- @@ -166,4 +166,4 @@ bool PUTextureAnimatorTranslator::translateChildObject(PUScriptCompiler* /*compi return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUTextureAnimatorTranslator.h b/extensions/Particle3D/PU/CCPUTextureAnimatorTranslator.h index ccdb78bfe7..d00edc86f3 100644 --- a/extensions/Particle3D/PU/CCPUTextureAnimatorTranslator.h +++ b/extensions/Particle3D/PU/CCPUTextureAnimatorTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUTextureAnimator.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUTextureAnimatorTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUTextureRotator.cpp b/extensions/Particle3D/PU/CCPUTextureRotator.cpp index e71d9af6b8..b76464c702 100644 --- a/extensions/Particle3D/PU/CCPUTextureRotator.cpp +++ b/extensions/Particle3D/PU/CCPUTextureRotator.cpp @@ -27,7 +27,7 @@ #include "CCPUTextureRotator.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN // Constants const bool PUTextureRotator::DEFAULT_USE_OWN_SPEED = false; const float PUTextureRotator::DEFAULT_ROTATION_SPEED = 10.0f; @@ -174,4 +174,4 @@ void PUTextureRotator::copyAttributesTo(PUAffector* affector) textureRotator->_useOwnRotationSpeed = _useOwnRotationSpeed; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUTextureRotator.h b/extensions/Particle3D/PU/CCPUTextureRotator.h index ef34d7f53a..92efa9c34e 100644 --- a/extensions/Particle3D/PU/CCPUTextureRotator.h +++ b/extensions/Particle3D/PU/CCPUTextureRotator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "base/ccTypes.h" -NS_CC_BEGIN +NS_AX_BEGIN class CC_EX_DLL PUTextureRotator : public PUAffector { @@ -97,6 +97,6 @@ protected: */ PUDynamicAttributeHelper _dynamicAttributeHelper; }; -NS_CC_END +NS_AX_END #endif \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUTextureRotatorTranslator.cpp b/extensions/Particle3D/PU/CCPUTextureRotatorTranslator.cpp index 8b88a28b5e..9c3ea00b01 100644 --- a/extensions/Particle3D/PU/CCPUTextureRotatorTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUTextureRotatorTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUTextureRotatorTranslator::PUTextureRotatorTranslator() {} //------------------------------------------------------------------------- @@ -172,4 +172,4 @@ bool PUTextureRotatorTranslator::translateChildObject(PUScriptCompiler* compiler return false; } -NS_CC_END \ No newline at end of file +NS_AX_END \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUTextureRotatorTranslator.h b/extensions/Particle3D/PU/CCPUTextureRotatorTranslator.h index c2631c3f4f..2ec37ecc8d 100644 --- a/extensions/Particle3D/PU/CCPUTextureRotatorTranslator.h +++ b/extensions/Particle3D/PU/CCPUTextureRotatorTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUTextureRotator.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUTextureRotatorTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUTranslateManager.cpp b/extensions/Particle3D/PU/CCPUTranslateManager.cpp index 12a3c51bc0..bb86ad24f2 100644 --- a/extensions/Particle3D/PU/CCPUTranslateManager.cpp +++ b/extensions/Particle3D/PU/CCPUTranslateManager.cpp @@ -27,7 +27,7 @@ #include "CCPUTranslateManager.h" #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" -NS_CC_BEGIN +NS_AX_BEGIN PUTranslateManager::PUTranslateManager() {} PUTranslateManager::~PUTranslateManager() {} @@ -134,4 +134,4 @@ void PUTranslateManager::translateMaterialSystem(PUMaterialCache* ms, const PUAb } } -NS_CC_END \ No newline at end of file +NS_AX_END \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUTranslateManager.h b/extensions/Particle3D/PU/CCPUTranslateManager.h index 502eab2531..e96f8c1fd2 100644 --- a/extensions/Particle3D/PU/CCPUTranslateManager.h +++ b/extensions/Particle3D/PU/CCPUTranslateManager.h @@ -38,7 +38,7 @@ #include "extensions/Particle3D/PU/CCPUObserverTranslator.h" #include "extensions/Particle3D/PU/CCPUBehaviourTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUMaterialCache; class PUTranslateManager { @@ -77,6 +77,6 @@ public: virtual ~PUTranslateManager(); }; -NS_CC_END +NS_AX_END #endif /* defined(__cocos2d_libs__CCParticle3DTranslateManager__) */ diff --git a/extensions/Particle3D/PU/CCPUUtil.cpp b/extensions/Particle3D/PU/CCPUUtil.cpp index 627cb1e599..e36edd17b6 100644 --- a/extensions/Particle3D/PU/CCPUUtil.cpp +++ b/extensions/Particle3D/PU/CCPUUtil.cpp @@ -27,9 +27,9 @@ #include "CCPUUtil.h" #include "base/ccMacros.h" -NS_CC_BEGIN +NS_AX_BEGIN -cocos2d::Vec3 PUUtil::randomDeviant(const Vec3& src, float angle, const Vec3& up /*= Vec3::ZERO*/) +axis::Vec3 PUUtil::randomDeviant(const Vec3& src, float angle, const Vec3& up /*= Vec3::ZERO*/) { Vec3 newUp; @@ -83,7 +83,7 @@ cocos2d::Vec3 PUUtil::randomDeviant(const Vec3& src, float angle, const Vec3& up //} } -cocos2d::Vec3 PUUtil::perpendicular(const Vec3& src) +axis::Vec3 PUUtil::perpendicular(const Vec3& src) { // static const float fSquareZero = (float)(1e-06 * 1e-06); @@ -116,4 +116,4 @@ cocos2d::Vec3 PUUtil::perpendicular(const Vec3& src) return perp; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUUtil.h b/extensions/Particle3D/PU/CCPUUtil.h index 5721028d34..75aae20fd3 100644 --- a/extensions/Particle3D/PU/CCPUUtil.h +++ b/extensions/Particle3D/PU/CCPUUtil.h @@ -31,7 +31,7 @@ #include "math/CCMath.h" #include -NS_CC_BEGIN +NS_AX_BEGIN class PUUtil { @@ -39,6 +39,6 @@ public: static Vec3 perpendicular(const Vec3& src); static Vec3 randomDeviant(const Vec3& src, float angle, const Vec3& up = Vec3::ZERO); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUVelocityMatchingAffector.cpp b/extensions/Particle3D/PU/CCPUVelocityMatchingAffector.cpp index 5ac3209e1a..23fb98c733 100644 --- a/extensions/Particle3D/PU/CCPUVelocityMatchingAffector.cpp +++ b/extensions/Particle3D/PU/CCPUVelocityMatchingAffector.cpp @@ -27,7 +27,7 @@ #include "CCPUVelocityMatchingAffector.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN // Constants const float PUVelocityMatchingAffector::DEFAULT_RADIUS = 100.0f; @@ -118,4 +118,4 @@ void PUVelocityMatchingAffector::copyAttributesTo(PUAffector* affector) velocityMatchingAffector->_radius = _radius; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUVelocityMatchingAffector.h b/extensions/Particle3D/PU/CCPUVelocityMatchingAffector.h index d9fd1c4409..d6a25085cc 100644 --- a/extensions/Particle3D/PU/CCPUVelocityMatchingAffector.h +++ b/extensions/Particle3D/PU/CCPUVelocityMatchingAffector.h @@ -30,7 +30,7 @@ #include "extensions/Particle3D/PU/CCPUAffector.h" #include "base/ccTypes.h" -NS_CC_BEGIN +NS_AX_BEGIN class CC_EX_DLL PUVelocityMatchingAffector : public PUAffector { @@ -63,6 +63,6 @@ public: protected: float _radius; }; -NS_CC_END +NS_AX_END #endif \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUVelocityMatchingAffectorTranslator.cpp b/extensions/Particle3D/PU/CCPUVelocityMatchingAffectorTranslator.cpp index 75ce3f26d8..ee87f2cd5b 100644 --- a/extensions/Particle3D/PU/CCPUVelocityMatchingAffectorTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUVelocityMatchingAffectorTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUVelocityMatchingAffectorTranslator::PUVelocityMatchingAffectorTranslator() {} //------------------------------------------------------------------------- @@ -76,4 +76,4 @@ bool PUVelocityMatchingAffectorTranslator::translateChildObject(PUScriptCompiler return false; } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUVelocityMatchingAffectorTranslator.h b/extensions/Particle3D/PU/CCPUVelocityMatchingAffectorTranslator.h index dccb1e4045..654ce49713 100644 --- a/extensions/Particle3D/PU/CCPUVelocityMatchingAffectorTranslator.h +++ b/extensions/Particle3D/PU/CCPUVelocityMatchingAffectorTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUVelocityMatchingAffector.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUVelocityMatchingAffectorTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/Particle3D/PU/CCPUVertexEmitter.cpp b/extensions/Particle3D/PU/CCPUVertexEmitter.cpp index 9cc834e794..bf9af83be0 100644 --- a/extensions/Particle3D/PU/CCPUVertexEmitter.cpp +++ b/extensions/Particle3D/PU/CCPUVertexEmitter.cpp @@ -27,7 +27,7 @@ #include "CCPUVertexEmitter.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN //// Constants // const unsigned short Particle3DVertexEmitter::DEFAULT_STEP = 1; // const unsigned short Particle3DVertexEmitter::DEFAULT_SEGMENTS = 1; @@ -340,4 +340,4 @@ NS_CC_BEGIN // iterator--; // } // } -NS_CC_END \ No newline at end of file +NS_AX_END \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUVertexEmitter.h b/extensions/Particle3D/PU/CCPUVertexEmitter.h index a38270c6df..c7e0a3a731 100644 --- a/extensions/Particle3D/PU/CCPUVertexEmitter.h +++ b/extensions/Particle3D/PU/CCPUVertexEmitter.h @@ -31,7 +31,7 @@ #include // Particle3DVertexEmitter NOT SUPPORT YET -NS_CC_BEGIN +NS_AX_BEGIN // // class Particle3DVertexEmitter : public PUEmitter //{ @@ -166,6 +166,6 @@ NS_CC_BEGIN // */ // unsigned short _calculateRequestedParticles(float timeElapsed); //}; -NS_CC_END +NS_AX_END #endif \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUVortexAffector.cpp b/extensions/Particle3D/PU/CCPUVortexAffector.cpp index 1e9fcd5a02..5c338692dc 100644 --- a/extensions/Particle3D/PU/CCPUVortexAffector.cpp +++ b/extensions/Particle3D/PU/CCPUVortexAffector.cpp @@ -27,7 +27,7 @@ #include "CCPUVortexAffector.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -NS_CC_BEGIN +NS_AX_BEGIN // Constants const Vec3 PUVortexAffector::DEFAULT_ROTATION_VECTOR(0, 0, 0); @@ -133,4 +133,4 @@ void PUVortexAffector::copyAttributesTo(PUAffector* affector) vortexAffector->setRotationSpeed(getRotationSpeed()->clone()); } -NS_CC_END +NS_AX_END diff --git a/extensions/Particle3D/PU/CCPUVortexAffector.h b/extensions/Particle3D/PU/CCPUVortexAffector.h index dc542ce8e0..7af688df65 100644 --- a/extensions/Particle3D/PU/CCPUVortexAffector.h +++ b/extensions/Particle3D/PU/CCPUVortexAffector.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "base/ccTypes.h" -NS_CC_BEGIN +NS_AX_BEGIN class CC_EX_DLL PUVortexAffector : public PUAffector { @@ -76,6 +76,6 @@ protected: PUDynamicAttribute* _dynRotationSpeed; PUDynamicAttributeHelper _dynamicAttributeHelper; }; -NS_CC_END +NS_AX_END #endif \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUVortexAffectorTranslator.cpp b/extensions/Particle3D/PU/CCPUVortexAffectorTranslator.cpp index e42cd5851b..293e93acff 100644 --- a/extensions/Particle3D/PU/CCPUVortexAffectorTranslator.cpp +++ b/extensions/Particle3D/PU/CCPUVortexAffectorTranslator.cpp @@ -29,7 +29,7 @@ #include "extensions/Particle3D/PU/CCPUDynamicAttribute.h" #include "extensions/Particle3D/PU/CCPUDynamicAttributeTranslator.h" -NS_CC_BEGIN +NS_AX_BEGIN PUVortexAffectorTranslator::PUVortexAffectorTranslator() {} //------------------------------------------------------------------------- @@ -126,4 +126,4 @@ bool PUVortexAffectorTranslator::translateChildObject(PUScriptCompiler* compiler return false; } -NS_CC_END \ No newline at end of file +NS_AX_END \ No newline at end of file diff --git a/extensions/Particle3D/PU/CCPUVortexAffectorTranslator.h b/extensions/Particle3D/PU/CCPUVortexAffectorTranslator.h index 61cb645895..3f1675a3a8 100644 --- a/extensions/Particle3D/PU/CCPUVortexAffectorTranslator.h +++ b/extensions/Particle3D/PU/CCPUVortexAffectorTranslator.h @@ -31,7 +31,7 @@ #include "extensions/Particle3D/PU/CCPUScriptCompiler.h" #include "extensions/Particle3D/PU/CCPUVortexAffector.h" -NS_CC_BEGIN +NS_AX_BEGIN class PUVortexAffectorTranslator : public PUScriptTranslator { @@ -43,6 +43,6 @@ public: virtual bool translateChildObject(PUScriptCompiler* compiler, PUAbstractNode* node); }; -NS_CC_END +NS_AX_END #endif diff --git a/extensions/assets-manager/AssetsManager.cpp b/extensions/assets-manager/AssetsManager.cpp index a745d697c8..78e28c2f88 100644 --- a/extensions/assets-manager/AssetsManager.cpp +++ b/extensions/assets-manager/AssetsManager.cpp @@ -39,11 +39,11 @@ #endif #include -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN using namespace std; -using namespace cocos2d; -using namespace cocos2d::network; +USING_NS_AX; +using namespace axis::network; #define KEY_OF_VERSION "current-version-code" #define KEY_OF_DOWNLOADED_VERSION "downloaded-version-code" @@ -637,4 +637,4 @@ void AssetsManager::fillZipFunctionOverrides(zlib_filefunc_def_s& zipFunctionOve zipFunctionOverrides.opaque = nullptr; } -NS_CC_EXT_END +NS_AX_EXT_END diff --git a/extensions/assets-manager/AssetsManager.h b/extensions/assets-manager/AssetsManager.h index 036e68340d..0fe26d6926 100644 --- a/extensions/assets-manager/AssetsManager.h +++ b/extensions/assets-manager/AssetsManager.h @@ -36,15 +36,16 @@ struct zlib_filefunc_def_s; -namespace cocos2d -{ +NS_AX_BEGIN + namespace network { class Downloader; } -} // namespace cocos2d -NS_CC_EXT_BEGIN +NS_AX_END // namespace axis + +NS_AX_EXT_BEGIN class AssetsManagerDelegateProtocol; @@ -193,7 +194,7 @@ private: std::string _downloadedVersion; - cocos2d::network::Downloader* _downloader; + axis::network::Downloader* _downloader; unsigned int _connectionTimeout; @@ -234,6 +235,6 @@ public: virtual void onSuccess() {} }; -NS_CC_EXT_END +NS_AX_EXT_END #endif /* defined(__AssetsManager__) */ diff --git a/extensions/assets-manager/AssetsManagerEx.cpp b/extensions/assets-manager/AssetsManagerEx.cpp index 9a245cd8a0..5b54625462 100644 --- a/extensions/assets-manager/AssetsManagerEx.cpp +++ b/extensions/assets-manager/AssetsManagerEx.cpp @@ -37,7 +37,7 @@ #include #include "base/CCAsyncTaskPool.h" -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN #define TEMP_FOLDERNAME "_temp" #define VERSION_FILENAME "version.manifest" @@ -1300,4 +1300,4 @@ void AssetsManagerEx::fillZipFunctionOverrides(zlib_filefunc_def_s& zipFunctionO zipFunctionOverrides.opaque = nullptr; } -NS_CC_EXT_END +NS_AX_EXT_END diff --git a/extensions/assets-manager/AssetsManagerEx.h b/extensions/assets-manager/AssetsManagerEx.h index 3ed0f110f3..3270c3442e 100644 --- a/extensions/assets-manager/AssetsManagerEx.h +++ b/extensions/assets-manager/AssetsManagerEx.h @@ -43,7 +43,7 @@ struct zlib_filefunc_def_s; -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN /** * @brief This class is used to auto update resources, such as pictures or scripts. @@ -336,6 +336,6 @@ private: bool _inited = false; }; -NS_CC_EXT_END +NS_AX_EXT_END #endif /* defined(__AssetsManagerEx__) */ diff --git a/extensions/assets-manager/CCEventAssetsManagerEx.cpp b/extensions/assets-manager/CCEventAssetsManagerEx.cpp index 96ed980c54..1b3f0b32ee 100644 --- a/extensions/assets-manager/CCEventAssetsManagerEx.cpp +++ b/extensions/assets-manager/CCEventAssetsManagerEx.cpp @@ -28,10 +28,10 @@ #include #include "AssetsManagerEx.h" -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN EventAssetsManagerEx::EventAssetsManagerEx(std::string_view eventName, - cocos2d::extension::AssetsManagerEx* manager, + axis::extension::AssetsManagerEx* manager, const EventCode& code, float percent /* = 0 */, float percentByFile /* = 0*/, @@ -50,4 +50,4 @@ EventAssetsManagerEx::EventAssetsManagerEx(std::string_view eventName, , _percentByFile(percentByFile) {} -NS_CC_EXT_END +NS_AX_EXT_END diff --git a/extensions/assets-manager/CCEventAssetsManagerEx.h b/extensions/assets-manager/CCEventAssetsManagerEx.h index 41596bd930..c966449633 100644 --- a/extensions/assets-manager/CCEventAssetsManagerEx.h +++ b/extensions/assets-manager/CCEventAssetsManagerEx.h @@ -31,11 +31,11 @@ #include "extensions/ExtensionMacros.h" #include "extensions/ExtensionExport.h" -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN class AssetsManagerEx; -class CC_EX_DLL EventAssetsManagerEx : public cocos2d::EventCustom +class CC_EX_DLL EventAssetsManagerEx : public axis::EventCustom { public: friend class AssetsManagerEx; @@ -66,7 +66,7 @@ public: std::string getAssetId() const { return _assetId; } - cocos2d::extension::AssetsManagerEx* getAssetsManagerEx() const { return _manager; } + axis::extension::AssetsManagerEx* getAssetsManagerEx() const { return _manager; } float getPercent() const { return _percent; } @@ -74,7 +74,7 @@ public: /** Constructor */ EventAssetsManagerEx(std::string_view eventName, - cocos2d::extension::AssetsManagerEx* manager, + axis::extension::AssetsManagerEx* manager, const EventCode& code, float percent = 0, float percentByFile = 0, @@ -86,7 +86,7 @@ public: private: EventCode _code; - cocos2d::extension::AssetsManagerEx* _manager; + axis::extension::AssetsManagerEx* _manager; std::string _message; @@ -101,6 +101,6 @@ private: float _percentByFile; }; -NS_CC_EXT_END +NS_AX_EXT_END #endif /* defined(__cocos2d_libs__CCEventAssetsManagerEx__) */ diff --git a/extensions/assets-manager/CCEventListenerAssetsManagerEx.cpp b/extensions/assets-manager/CCEventListenerAssetsManagerEx.cpp index 394eb6d0d3..8efa185729 100644 --- a/extensions/assets-manager/CCEventListenerAssetsManagerEx.cpp +++ b/extensions/assets-manager/CCEventListenerAssetsManagerEx.cpp @@ -28,7 +28,7 @@ #include "AssetsManagerEx.h" #include "base/ccUTF8.h" -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN const std::string EventListenerAssetsManagerEx::LISTENER_ID = "__cc_assets_manager_"; @@ -37,7 +37,7 @@ EventListenerAssetsManagerEx::EventListenerAssetsManagerEx() {} EventListenerAssetsManagerEx* EventListenerAssetsManagerEx::create( - cocos2d::extension::AssetsManagerEx* AssetsManagerEx, + axis::extension::AssetsManagerEx* AssetsManagerEx, const std::function& callback) { EventListenerAssetsManagerEx* ret = new EventListenerAssetsManagerEx(); @@ -96,4 +96,4 @@ bool EventListenerAssetsManagerEx::checkAvailable() return ret; } -NS_CC_EXT_END +NS_AX_EXT_END diff --git a/extensions/assets-manager/CCEventListenerAssetsManagerEx.h b/extensions/assets-manager/CCEventListenerAssetsManagerEx.h index 53d153cb05..55b2068877 100644 --- a/extensions/assets-manager/CCEventListenerAssetsManagerEx.h +++ b/extensions/assets-manager/CCEventListenerAssetsManagerEx.h @@ -31,7 +31,7 @@ #include "extensions/ExtensionMacros.h" #include "extensions/ExtensionExport.h" -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN class EventAssetsManagerEx; class AssetsManagerEx; @@ -50,7 +50,7 @@ class AssetsManagerEx; * * dispatcher->removeEventListener(listener); */ -class CC_EX_DLL EventListenerAssetsManagerEx : public cocos2d::EventListenerCustom +class CC_EX_DLL EventListenerAssetsManagerEx : public axis::EventListenerCustom { public: friend class AssetsManagerEx; @@ -82,6 +82,6 @@ protected: // friend class luaEventListenerAssetsManagerEx; }; -NS_CC_EXT_END +NS_AX_EXT_END #endif /* defined(__cocos2d_libs__CCEventListenerAssetsManagerEx__) */ diff --git a/extensions/assets-manager/Manifest.cpp b/extensions/assets-manager/Manifest.cpp index 2c1a184d34..e2476caa57 100644 --- a/extensions/assets-manager/Manifest.cpp +++ b/extensions/assets-manager/Manifest.cpp @@ -48,7 +48,7 @@ #define KEY_COMPRESSED_FILE "compressedFile" #define KEY_DOWNLOAD_STATE "downloadState" -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN static int cmpVersion(std::string_view v1, std::string_view v2) { @@ -562,4 +562,4 @@ void Manifest::saveToFile(std::string_view filepath) FileUtils::getInstance()->writeStringToFile(buffer.GetString(), filepath); } -NS_CC_EXT_END +NS_AX_EXT_END diff --git a/extensions/assets-manager/Manifest.h b/extensions/assets-manager/Manifest.h index 2e248bbdb8..0297b4e5c2 100644 --- a/extensions/assets-manager/Manifest.h +++ b/extensions/assets-manager/Manifest.h @@ -37,7 +37,7 @@ #include "rapidjson/document-wrapper.h" -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN struct DownloadUnit { @@ -246,5 +246,5 @@ private: rapidjson::Document _json; }; -NS_CC_EXT_END +NS_AX_EXT_END #endif /* defined(__Manifest__) */ diff --git a/extensions/cocostudio/ActionTimeline/CCActionTimeline.cpp b/extensions/cocostudio/ActionTimeline/CCActionTimeline.cpp index 73d959bb80..02aa848038 100644 --- a/extensions/cocostudio/ActionTimeline/CCActionTimeline.cpp +++ b/extensions/cocostudio/ActionTimeline/CCActionTimeline.cpp @@ -26,7 +26,7 @@ THE SOFTWARE. #include "CCComExtensionData.h" -USING_NS_CC; +USING_NS_AX; NS_TIMELINE_BEGIN diff --git a/extensions/cocostudio/ActionTimeline/CCActionTimeline.h b/extensions/cocostudio/ActionTimeline/CCActionTimeline.h index 38b636aa73..a3e9a447bb 100644 --- a/extensions/cocostudio/ActionTimeline/CCActionTimeline.h +++ b/extensions/cocostudio/ActionTimeline/CCActionTimeline.h @@ -51,7 +51,7 @@ typedef struct AnimationInfo } AnimationClip; #if 0 -class CCS_DLL ActionTimelineData : public cocos2d::Ref +class CCS_DLL ActionTimelineData : public axis::Ref { public: static ActionTimelineData* create(int actionTag); @@ -66,7 +66,7 @@ protected: }; #endif -class CCS_DLL ActionTimeline : public cocos2d::Action, public cocos2d::PlayableProtocol +class CCS_DLL ActionTimeline : public axis::Action, public axis::PlayableProtocol { public: friend class Frame; @@ -145,7 +145,7 @@ public: virtual void addTimeline(Timeline* timeline); virtual void removeTimeline(Timeline* timeline); - virtual const cocos2d::Vector& getTimelines() const { return _timelineList; } + virtual const axis::Vector& getTimelines() const { return _timelineList; } /** AnimationInfo*/ virtual void addAnimationInfo(const AnimationInfo& animationInfo); @@ -190,7 +190,7 @@ public: virtual ActionTimeline* reverse() const override { return nullptr; } virtual void step(float delta) override; - virtual void startWithTarget(cocos2d::Node* target) override; + virtual void startWithTarget(axis::Node* target) override; virtual bool isDone() const override { return false; } /// @{ @@ -209,8 +209,8 @@ protected: /** emit frame event, call it when enter a frame*/ virtual void emitFrameEvent(Frame* frame); - std::map> _timelineMap; - cocos2d::Vector _timelineList; + std::map> _timelineMap; + axis::Vector _timelineList; int _duration; double _time; diff --git a/extensions/cocostudio/ActionTimeline/CCActionTimelineCache.cpp b/extensions/cocostudio/ActionTimeline/CCActionTimelineCache.cpp index 248f42e6e5..6b505560e2 100644 --- a/extensions/cocostudio/ActionTimeline/CCActionTimelineCache.cpp +++ b/extensions/cocostudio/ActionTimeline/CCActionTimelineCache.cpp @@ -43,7 +43,7 @@ THE SOFTWARE. #include -using namespace cocos2d; +USING_NS_AX; using namespace flatbuffers; namespace cocostudio @@ -452,7 +452,7 @@ ActionTimeline* ActionTimelineCache::loadAnimationActionWithFlatBuffersFile(std: return action; } -ActionTimeline* ActionTimelineCache::loadAnimationWithDataBuffer(const cocos2d::Data& data, std::string_view fileName) +ActionTimeline* ActionTimelineCache::loadAnimationWithDataBuffer(const axis::Data& data, std::string_view fileName) { // if already exists an action with filename, then return this action ActionTimeline* action = _animationActions.at(fileName); @@ -469,7 +469,7 @@ ActionTimeline* ActionTimelineCache::loadAnimationWithDataBuffer(const cocos2d:: return action; } -ActionTimeline* ActionTimelineCache::createActionWithDataBuffer(const cocos2d::Data& data) +ActionTimeline* ActionTimelineCache::createActionWithDataBuffer(const axis::Data& data) { auto csparsebinary = GetCSParseBinary(data.getBytes()); @@ -904,7 +904,7 @@ Frame* ActionTimelineCache::loadInnerActionFrameWithFlatBuffers(const flatbuffer Frame* ActionTimelineCache::loadBlendFrameWithFlatBuffers(const flatbuffers::BlendFrame* flatbuffers) { BlendFuncFrame* frame = BlendFuncFrame::create(); - cocos2d::BlendFunc blend; + axis::BlendFunc blend; blend.src = backend::BlendFactor::ONE; blend.dst = backend::BlendFactor::ONE_MINUS_SRC_ALPHA; if (nullptr != flatbuffers->blendFunc()) @@ -934,7 +934,7 @@ void ActionTimelineCache::loadEasingDataWithFlatBuffers(cocostudio::timeline::Fr const flatbuffers::EasingData* flatbuffers) { int type = flatbuffers->type(); - frame->setTweenType((cocos2d::tweenfunc::TweenType)type); + frame->setTweenType((axis::tweenfunc::TweenType)type); auto points = flatbuffers->points(); if (points) { diff --git a/extensions/cocostudio/ActionTimeline/CCActionTimelineCache.h b/extensions/cocostudio/ActionTimeline/CCActionTimelineCache.h index 6ca376822f..df33c7c5b2 100644 --- a/extensions/cocostudio/ActionTimeline/CCActionTimelineCache.h +++ b/extensions/cocostudio/ActionTimeline/CCActionTimelineCache.h @@ -83,10 +83,10 @@ public: ActionTimeline* loadAnimationActionWithContent(std::string_view fileName, std::string_view content); ActionTimeline* createActionWithFlatBuffersFile(std::string_view fileName); - ActionTimeline* createActionWithDataBuffer(cocos2d::Data data, std::string_view fileName); + ActionTimeline* createActionWithDataBuffer(axis::Data data, std::string_view fileName); ActionTimeline* loadAnimationActionWithFlatBuffersFile(std::string_view fileName); - ActionTimeline* loadAnimationWithDataBuffer(const cocos2d::Data& data, std::string_view fileName); + ActionTimeline* loadAnimationWithDataBuffer(const axis::Data& data, std::string_view fileName); ActionTimeline* createActionWithFlatBuffersForSimulator(std::string_view fileName); @@ -122,14 +122,14 @@ protected: Frame* loadBlendFrameWithFlatBuffers(const flatbuffers::BlendFrame* flatbuffers); void loadEasingDataWithFlatBuffers(Frame* frame, const flatbuffers::EasingData* flatbuffers); - inline ActionTimeline* createActionWithDataBuffer(const cocos2d::Data& data); + inline ActionTimeline* createActionWithDataBuffer(const axis::Data& data); protected: typedef std::function FrameCreateFunc; typedef std::pair Pair; hlookup::string_map _funcs; - cocos2d::StringMap _animationActions; + axis::StringMap _animationActions; }; NS_TIMELINE_END diff --git a/extensions/cocostudio/ActionTimeline/CCActionTimelineData.h b/extensions/cocostudio/ActionTimeline/CCActionTimelineData.h index c589080fda..dc64dd7aa3 100644 --- a/extensions/cocostudio/ActionTimeline/CCActionTimelineData.h +++ b/extensions/cocostudio/ActionTimeline/CCActionTimelineData.h @@ -7,7 +7,7 @@ NS_TIMELINE_BEGIN -class CCS_DLL ActionTimelineData : public cocos2d::Ref +class CCS_DLL ActionTimelineData : public axis::Ref { public: static ActionTimelineData* create(int actionTag); diff --git a/extensions/cocostudio/ActionTimeline/CCActionTimelineNode.cpp b/extensions/cocostudio/ActionTimeline/CCActionTimelineNode.cpp index cc9e4f2e1d..1d378fc376 100644 --- a/extensions/cocostudio/ActionTimeline/CCActionTimelineNode.cpp +++ b/extensions/cocostudio/ActionTimeline/CCActionTimelineNode.cpp @@ -24,7 +24,7 @@ #include "ActionTimeline/CCActionTimelineNode.h" -USING_NS_CC; +USING_NS_AX; NS_TIMELINE_BEGIN @@ -63,11 +63,11 @@ bool ActionTimelineNode::init(Node* root, ActionTimeline* action) return true; } -void ActionTimelineNode::setRoot(cocos2d::Node* root) +void ActionTimelineNode::setRoot(axis::Node* root) { _root = root; } -cocos2d::Node* ActionTimelineNode::getRoot() +axis::Node* ActionTimelineNode::getRoot() { return _root; } diff --git a/extensions/cocostudio/ActionTimeline/CCActionTimelineNode.h b/extensions/cocostudio/ActionTimeline/CCActionTimelineNode.h index ccb8eb89e7..16c1fca5c4 100644 --- a/extensions/cocostudio/ActionTimeline/CCActionTimelineNode.h +++ b/extensions/cocostudio/ActionTimeline/CCActionTimelineNode.h @@ -33,25 +33,25 @@ NS_TIMELINE_BEGIN class ActionTimeline; -class CCS_DLL ActionTimelineNode : public cocos2d::Node +class CCS_DLL ActionTimelineNode : public axis::Node { public: - static ActionTimelineNode* create(cocos2d::Node* root, ActionTimeline* action); + static ActionTimelineNode* create(axis::Node* root, ActionTimeline* action); ActionTimelineNode(); ~ActionTimelineNode(); bool init() override; - bool init(cocos2d::Node* root, ActionTimeline* action); + bool init(axis::Node* root, ActionTimeline* action); - virtual void setRoot(cocos2d::Node* root); - virtual cocos2d::Node* getRoot(); + virtual void setRoot(axis::Node* root); + virtual axis::Node* getRoot(); virtual void setActionTimeline(ActionTimeline* action); virtual ActionTimeline* getActionTimeline(); protected: - cocos2d::Node* _root; + axis::Node* _root; ActionTimeline* _action; }; diff --git a/extensions/cocostudio/ActionTimeline/CCBoneNode.cpp b/extensions/cocostudio/ActionTimeline/CCBoneNode.cpp index f2399984b9..4520e9da06 100644 --- a/extensions/cocostudio/ActionTimeline/CCBoneNode.cpp +++ b/extensions/cocostudio/ActionTimeline/CCBoneNode.cpp @@ -71,8 +71,8 @@ bool BoneNode::init() auto& pipelineDescriptor = _customCommand.getPipelineDescriptor(); auto* program = - cocos2d::backend::Program::getBuiltinProgram(cocos2d::backend::ProgramType::POSITION_COLOR); // TODO: noMVP? - setProgramState(new cocos2d::backend::ProgramState(program), false); + axis::backend::Program::getBuiltinProgram(axis::backend::ProgramType::POSITION_COLOR); // TODO: noMVP? + setProgramState(new axis::backend::ProgramState(program), false); pipelineDescriptor.programState = _programState; _mvpLocation = _programState->getUniformLocation("u_MVPMatrix"sv); @@ -82,27 +82,27 @@ bool BoneNode::init() auto iter = attributeInfo.find("a_position"sv); if (iter != attributeInfo.end()) { - vertexLayout->setAttribute("a_position"sv, iter->second.location, cocos2d::backend::VertexFormat::FLOAT3, 0, + vertexLayout->setAttribute("a_position"sv, iter->second.location, axis::backend::VertexFormat::FLOAT3, 0, false); } iter = attributeInfo.find("a_color"sv); if (iter != attributeInfo.end()) { - vertexLayout->setAttribute("a_color"sv, iter->second.location, cocos2d::backend::VertexFormat::FLOAT4, + vertexLayout->setAttribute("a_color"sv, iter->second.location, axis::backend::VertexFormat::FLOAT4, 3 * sizeof(float), false); } vertexLayout->setLayout(7 * sizeof(float)); - _customCommand.createVertexBuffer(sizeof(_vertexData[0]), 4, cocos2d::CustomCommand::BufferUsage::DYNAMIC); - _customCommand.createIndexBuffer(cocos2d::CustomCommand::IndexFormat::U_SHORT, 6, - cocos2d::CustomCommand::BufferUsage::STATIC); + _customCommand.createVertexBuffer(sizeof(_vertexData[0]), 4, axis::CustomCommand::BufferUsage::DYNAMIC); + _customCommand.createIndexBuffer(axis::CustomCommand::IndexFormat::U_SHORT, 6, + axis::CustomCommand::BufferUsage::STATIC); unsigned short indices[6] = {0, 1, 2, 0, 2, 3}; _customCommand.updateIndexBuffer(indices, sizeof(indices)); return true; } -void BoneNode::addChild(cocos2d::Node* child, int localZOrder, int tag) +void BoneNode::addChild(axis::Node* child, int localZOrder, int tag) { addToChildrenListHelper(child); Node::addChild(child, localZOrder, tag); @@ -136,7 +136,7 @@ void BoneNode::addSkin(SkinNode* skin, bool display) void BoneNode::removeChild(Node* child, bool cleanup /* = true */) { ssize_t index = _children.getIndex(child); - if (index != cocos2d::CC_INVALID_INDEX) + if (index != axis::CC_INVALID_INDEX) { removeFromChildrenListHelper(child); Node::removeChild(child, cleanup); @@ -255,9 +255,9 @@ void BoneNode::displaySkin(std::string_view skinName, bool hideOthers) } } -cocos2d::Vector BoneNode::getVisibleSkins() const +axis::Vector BoneNode::getVisibleSkins() const { - cocos2d::Vector displayingSkins; + axis::Vector displayingSkins; for (const auto& boneskin : _boneSkins) { if (boneskin->isVisible()) @@ -268,19 +268,19 @@ cocos2d::Vector BoneNode::getVisibleSkins() const return displayingSkins; } -cocos2d::Rect BoneNode::getBoundingBox() const +axis::Rect BoneNode::getBoundingBox() const { - cocos2d::Rect boundingBox = getVisibleSkinsRect(); + axis::Rect boundingBox = getVisibleSkinsRect(); return RectApplyAffineTransform(boundingBox, this->getNodeToParentAffineTransform()); } -cocos2d::Rect BoneNode::getVisibleSkinsRect() const +axis::Rect BoneNode::getVisibleSkinsRect() const { float minx, miny, maxx, maxy = 0; minx = miny = maxx = maxy; bool first = true; - cocos2d::Rect displayRect = cocos2d::Rect(0, 0, 0, 0); + axis::Rect displayRect = axis::Rect(0, 0, 0, 0); if (_isRackShow && _rootSkeleton != nullptr && _rootSkeleton->_isRackShow) { maxx = _rackLength; @@ -290,8 +290,8 @@ cocos2d::Rect BoneNode::getVisibleSkinsRect() const for (const auto& skin : _boneSkins) { - cocos2d::Rect r = skin->getBoundingBox(); - if (!skin->isVisible() || r.equals(cocos2d::Rect::ZERO)) + axis::Rect r = skin->getBoundingBox(); + if (!skin->isVisible() || r.equals(axis::Rect::ZERO)) continue; if (first) @@ -315,7 +315,7 @@ cocos2d::Rect BoneNode::getVisibleSkinsRect() const return displayRect; } -void BoneNode::setBlendFunc(const cocos2d::BlendFunc& blendFunc) +void BoneNode::setBlendFunc(const axis::BlendFunc& blendFunc) { if (_blendFunc != blendFunc) { @@ -350,13 +350,13 @@ void BoneNode::setDebugDrawEnabled(bool isDebugDraw) _isRackShow = isDebugDraw; } -void BoneNode::setDebugDrawColor(const cocos2d::Color4F& color) +void BoneNode::setDebugDrawColor(const axis::Color4F& color) { _rackColor = color; updateColor(); } -void BoneNode::visit(cocos2d::Renderer* renderer, const cocos2d::Mat4& parentTransform, uint32_t parentFlags) +void BoneNode::visit(axis::Renderer* renderer, const axis::Mat4& parentTransform, uint32_t parentFlags) { // quick return if not visible. children won't be drawn. if (!_visible) @@ -369,8 +369,8 @@ void BoneNode::visit(cocos2d::Renderer* renderer, const cocos2d::Mat4& parentTra // IMPORTANT: // To ease the migration to v3.0, we still support the Mat4 stack, // but it is deprecated and your code should not rely on it - _director->pushMatrix(cocos2d::MATRIX_STACK_TYPE::MATRIX_STACK_MODELVIEW); - _director->loadMatrix(cocos2d::MATRIX_STACK_TYPE::MATRIX_STACK_MODELVIEW, _modelViewTransform); + _director->pushMatrix(axis::MATRIX_STACK_TYPE::MATRIX_STACK_MODELVIEW); + _director->loadMatrix(axis::MATRIX_STACK_TYPE::MATRIX_STACK_MODELVIEW, _modelViewTransform); bool visibleByCamera = isVisitableByVisitingCamera(); bool isdebugdraw = visibleByCamera && _isRackShow && nullptr == _rootSkeleton; @@ -407,7 +407,7 @@ void BoneNode::visit(cocos2d::Renderer* renderer, const cocos2d::Mat4& parentTra this->draw(renderer, _modelViewTransform, flags); } - _director->popMatrix(cocos2d::MATRIX_STACK_TYPE::MATRIX_STACK_MODELVIEW); + _director->popMatrix(axis::MATRIX_STACK_TYPE::MATRIX_STACK_MODELVIEW); // FIX ME: Why need to set _orderOfArrival to 0?? // Please refer to https://github.com/cocos2d/cocos2d-x/pull/6920 @@ -415,15 +415,15 @@ void BoneNode::visit(cocos2d::Renderer* renderer, const cocos2d::Mat4& parentTra // _orderOfArrival = 0; } -void BoneNode::draw(cocos2d::Renderer* renderer, const cocos2d::Mat4& transform, uint32_t flags) +void BoneNode::draw(axis::Renderer* renderer, const axis::Mat4& transform, uint32_t flags) { _customCommand.init(_globalZOrder, _blendFunc); renderer->addCommand(&_customCommand); #ifdef CC_STUDIO_ENABLED_VIEW // TODO -// glVertexAttribPointer(cocos2d::GLProgram::VERTEX_ATTRIB_POSITION, 3, GL_FLOAT, GL_FALSE, 0, _noMVPVertices); -// glVertexAttribPointer(cocos2d::GLProgram::VERTEX_ATTRIB_COLOR, 4, GL_FLOAT, GL_FALSE, 0, _squareColors); +// glVertexAttribPointer(axis::GLProgram::VERTEX_ATTRIB_POSITION, 3, GL_FLOAT, GL_FALSE, 0, _noMVPVertices); +// glVertexAttribPointer(axis::GLProgram::VERTEX_ATTRIB_COLOR, 4, GL_FLOAT, GL_FALSE, 0, _squareColors); // // glEnable(GL_LINE_SMOOTH); // glHint(GL_LINE_SMOOTH_HINT, GL_DONT_CARE); @@ -433,13 +433,13 @@ void BoneNode::draw(cocos2d::Renderer* renderer, const cocos2d::Mat4& transform, for (int i = 0; i < 4; ++i) { - cocos2d::Vec4 pos; + axis::Vec4 pos; pos.x = _squareVertices[i].x; pos.y = _squareVertices[i].y; pos.z = _positionZ; pos.w = 1; _modelViewTransform.transformVector(&pos); - _vertexData[i].noMVPVertices = cocos2d::Vec3(pos.x, pos.y, pos.z) / pos.w; + _vertexData[i].noMVPVertices = axis::Vec3(pos.x, pos.y, pos.z) / pos.w; } _customCommand.updateVertexBuffer(_vertexData, sizeof(_vertexData)); @@ -474,7 +474,7 @@ void BoneNode::updateColor() _transformUpdated = _transformDirty = _inverseDirty = _contentSizeDirty = true; } -void BoneNode::updateDisplayedColor(const cocos2d::Color3B& /*parentColor*/) +void BoneNode::updateDisplayedColor(const axis::Color3B& /*parentColor*/) { if (_cascadeColorEnabled) { @@ -508,13 +508,13 @@ void BoneNode::disableCascadeColor() { for (const auto& child : _boneSkins) { - child->updateDisplayedColor(cocos2d::Color3B::WHITE); + child->updateDisplayedColor(axis::Color3B::WHITE); } } -cocos2d::Vector BoneNode::getAllSubBones() const +axis::Vector BoneNode::getAllSubBones() const { - cocos2d::Vector allBones; + axis::Vector allBones; std::stack boneStack; // for avoid recursive for (const auto& bone : _childBones) { @@ -535,10 +535,10 @@ cocos2d::Vector BoneNode::getAllSubBones() const return allBones; } -cocos2d::Vector BoneNode::getAllSubSkins() const +axis::Vector BoneNode::getAllSubSkins() const { auto allbones = getAllSubBones(); - cocos2d::Vector allskins; + axis::Vector allskins; for (const auto& bone : allbones) { for (const auto& skin : bone->getSkins()) @@ -565,7 +565,7 @@ SkeletonNode* BoneNode::getRootSkeletonNode() const } #ifdef CC_STUDIO_ENABLED_VIEW -bool BoneNode::isPointOnRack(const cocos2d::Vec2& bonePoint) +bool BoneNode::isPointOnRack(const axis::Vec2& bonePoint) { if (bonePoint.x >= 0.0f && bonePoint.y >= _squareVertices[0].y && bonePoint.x <= _rackLength && @@ -594,16 +594,16 @@ void BoneNode::batchBoneDrawToSkeleton(BoneNode* bone) const return; } - cocos2d::Vec3 vpos[4]; + axis::Vec3 vpos[4]; for (int i = 0; i < 4; i++) { - cocos2d::Vec4 pos; + axis::Vec4 pos; pos.x = bone->_squareVertices[i].x; pos.y = bone->_squareVertices[i].y; pos.z = bone->_positionZ; pos.w = 1; bone->_modelViewTransform.transformVector(&pos); // call after visit - vpos[i] = cocos2d::Vec3(pos.x, pos.y, pos.z) / pos.w; + vpos[i] = axis::Vec3(pos.x, pos.y, pos.z) / pos.w; } int count = bone->_rootSkeleton->_batchedVeticesCount; @@ -620,7 +620,7 @@ void BoneNode::batchBoneDrawToSkeleton(BoneNode* bone) const } // call after self visit -void BoneNode::visitSkins(cocos2d::Renderer* renderer, BoneNode* bone) const +void BoneNode::visitSkins(axis::Renderer* renderer, BoneNode* bone) const { // quick return if not visible. children won't be drawn. if (!bone->_visible) @@ -631,8 +631,8 @@ void BoneNode::visitSkins(cocos2d::Renderer* renderer, BoneNode* bone) const // IMPORTANT: // To ease the migration to v3.0, we still support the Mat4 stack, // but it is deprecated and your code should not rely on it - _director->pushMatrix(cocos2d::MATRIX_STACK_TYPE::MATRIX_STACK_MODELVIEW); - _director->loadMatrix(cocos2d::MATRIX_STACK_TYPE::MATRIX_STACK_MODELVIEW, bone->_modelViewTransform); + _director->pushMatrix(axis::MATRIX_STACK_TYPE::MATRIX_STACK_MODELVIEW); + _director->loadMatrix(axis::MATRIX_STACK_TYPE::MATRIX_STACK_MODELVIEW, bone->_modelViewTransform); if (!bone->_boneSkins.empty()) { @@ -641,7 +641,7 @@ void BoneNode::visitSkins(cocos2d::Renderer* renderer, BoneNode* bone) const (*it)->visit(renderer, bone->_modelViewTransform, true); } - _director->popMatrix(cocos2d::MATRIX_STACK_TYPE::MATRIX_STACK_MODELVIEW); + _director->popMatrix(axis::MATRIX_STACK_TYPE::MATRIX_STACK_MODELVIEW); // FIX ME: Why need to set _orderOfArrival to 0?? // Please refer to https://github.com/cocos2d/cocos2d-x/pull/6920 @@ -725,13 +725,13 @@ void BoneNode::setVisible(bool visible) } } -void BoneNode::setContentSize(const cocos2d::Size& contentSize) +void BoneNode::setContentSize(const axis::Size& contentSize) { Node::setContentSize(contentSize); updateVertices(); } -void BoneNode::setAnchorPoint(const cocos2d::Vec2& anchorPoint) +void BoneNode::setAnchorPoint(const axis::Vec2& anchorPoint) { Node::setAnchorPoint(anchorPoint); updateVertices(); diff --git a/extensions/cocostudio/ActionTimeline/CCBoneNode.h b/extensions/cocostudio/ActionTimeline/CCBoneNode.h index 27369a6d62..7b02ad1998 100644 --- a/extensions/cocostudio/ActionTimeline/CCBoneNode.h +++ b/extensions/cocostudio/ActionTimeline/CCBoneNode.h @@ -32,19 +32,18 @@ THE SOFTWARE. #include "CocosStudioExport.h" #include "ActionTimeline/CCSkinNode.h" -namespace cocos2d -{ +NS_AX_BEGIN namespace backend { class ProgramState; } -} // namespace cocos2d +NS_AX_END // namespace axis NS_TIMELINE_BEGIN class SkeletonNode; -class CCS_DLL BoneNode : public cocos2d::Node, public cocos2d::BlendProtocol +class CCS_DLL BoneNode : public axis::Node, public axis::BlendProtocol { public: static BoneNode* create(); @@ -52,15 +51,15 @@ public: using Node::addChild; // add child, and add child to bone list and skeleton's sub bone map or add it to skin list - virtual void addChild(cocos2d::Node* child, int localZOrder, std::string_view name) override; - virtual void addChild(cocos2d::Node* child, int localZOrder, int tag) override; + virtual void addChild(axis::Node* child, int localZOrder, std::string_view name) override; + virtual void addChild(axis::Node* child, int localZOrder, int tag) override; // remove child, and remove child from bone list and skeleton's sub bone map or remove it from skin list virtual void removeChild(Node* child, bool cleanup) override; // get child bone list - virtual const cocos2d::Vector& getChildBones() const { return _childBones; } - virtual cocos2d::Vector& getChildBones() { return _childBones; } + virtual const axis::Vector& getChildBones() const { return _childBones; } + virtual axis::Vector& getChildBones() { return _childBones; } // get this bone's root skeleton, return null while bone is not in a skeleton virtual SkeletonNode* getRootSkeletonNode() const; @@ -68,7 +67,7 @@ public: /** * @brief: get all bones in this bone tree */ - cocos2d::Vector getAllSubBones() const; + axis::Vector getAllSubBones() const; /** *@brief: add a skin @@ -97,22 +96,22 @@ public: virtual void displaySkin(std::string_view skinName, bool hideOthers); // get the skins which is visible (displaying skins) - virtual cocos2d::Vector getVisibleSkins() const; + virtual axis::Vector getVisibleSkins() const; /** * get skins in this bone's children */ - virtual const cocos2d::Vector& getSkins() const { return _boneSkins; } - virtual cocos2d::Vector& getSkins() { return _boneSkins; } + virtual const axis::Vector& getSkins() const { return _boneSkins; } + virtual axis::Vector& getSkins() { return _boneSkins; } /** * @brief: get all skins in this bone tree */ - cocos2d::Vector getAllSubSkins() const; + axis::Vector getAllSubSkins() const; // blendFunc - virtual void setBlendFunc(const cocos2d::BlendFunc& blendFunc) override; - virtual const cocos2d::BlendFunc& getBlendFunc() const override { return _blendFunc; } + virtual void setBlendFunc(const axis::BlendFunc& blendFunc) override; + virtual const axis::BlendFunc& getBlendFunc() const override { return _blendFunc; } // debug draw show, bone's debugdraw can be draw when bone is visible // when bone's added to skeleton, DebugDrawEnabled controlled by skeleton's DebugDrawEnabled @@ -128,19 +127,19 @@ public: virtual float getDebugDrawWidth() const { return _rackWidth; } // bone's debug draw's width - virtual void setDebugDrawColor(const cocos2d::Color4F& color); - virtual cocos2d::Color4F getDebugDrawColor() const { return _rackColor; } + virtual void setDebugDrawColor(const axis::Color4F& color); + virtual axis::Color4F getDebugDrawColor() const { return _rackColor; } // get bone's bounding box, depends on getVisibleSkinsRect, apply on node to parent's transform - cocos2d::Rect getBoundingBox() const override; + axis::Rect getBoundingBox() const override; /** *get displayings rect in self transform */ - virtual cocos2d::Rect getVisibleSkinsRect() const; + virtual axis::Rect getVisibleSkinsRect() const; // transform & draw - virtual void draw(cocos2d::Renderer* renderer, const cocos2d::Mat4& transform, uint32_t flags) override; + virtual void draw(axis::Renderer* renderer, const axis::Mat4& transform, uint32_t flags) override; // set local zorder, and dirty the debugdraw to make debugdraw's render layer right virtual void setLocalZOrder(int localZOrder) override; @@ -152,14 +151,14 @@ public: virtual void setVisible(bool visible) override; // set contentsize, and recalculate debugdraw - virtual void setContentSize(const cocos2d::Size& contentSize) override; + virtual void setContentSize(const axis::Size& contentSize) override; // set localzorder, and recalculate debugdraw - virtual void setAnchorPoint(const cocos2d::Vec2& anchorPoint) override; + virtual void setAnchorPoint(const axis::Vec2& anchorPoint) override; #ifdef CC_STUDIO_ENABLED_VIEW // hit test , bonePoint is in self coordinate - virtual bool isPointOnRack(const cocos2d::Vec2& bonePoint); + virtual bool isPointOnRack(const axis::Vec2& bonePoint); #endif BoneNode() = default; @@ -189,14 +188,14 @@ protected: virtual void updateColor() override; // bone's color and opacity cannot cascade to bone - virtual void updateDisplayedColor(const cocos2d::Color3B& parentColor) override; + virtual void updateDisplayedColor(const axis::Color3B& parentColor) override; virtual void updateDisplayedOpacity(uint8_t parentOpacity) override; virtual void disableCascadeOpacity() override; virtual void disableCascadeColor() override; // override Node::visit, just visit bones in children - virtual void visit(cocos2d::Renderer* renderer, - const cocos2d::Mat4& parentTransform, + virtual void visit(axis::Renderer* renderer, + const axis::Mat4& parentTransform, uint32_t parentFlags) override; // a help function for SkeletonNode @@ -205,35 +204,35 @@ protected: // a help function for SkeletonNode // @param bone, visit bone's skins - virtual void visitSkins(cocos2d::Renderer* renderer, BoneNode* bone) const; + virtual void visitSkins(axis::Renderer* renderer, BoneNode* bone) const; // a help function for SkeletonNode // set bone's rootSkeleton = skeleton void setRootSkeleton(BoneNode* bone, SkeletonNode* skeleton) const; protected: - cocos2d::CustomCommand _customCommand; - cocos2d::backend::UniformLocation _mvpLocation; + axis::CustomCommand _customCommand; + axis::backend::UniformLocation _mvpLocation; - cocos2d::BlendFunc _blendFunc = cocos2d::BlendFunc::ALPHA_NON_PREMULTIPLIED; + axis::BlendFunc _blendFunc = axis::BlendFunc::ALPHA_NON_PREMULTIPLIED; bool _isRackShow = false; - cocos2d::Color4F _rackColor = cocos2d::Color4F::WHITE; + axis::Color4F _rackColor = axis::Color4F::WHITE; float _rackLength = 50.0f; float _rackWidth = 20.0f; - cocos2d::Vector _childBones; - cocos2d::Vector _boneSkins; + axis::Vector _childBones; + axis::Vector _boneSkins; SkeletonNode* _rootSkeleton = nullptr; private: struct VertexData { - cocos2d::Color4F squareColor; - cocos2d::Vec3 noMVPVertices; + axis::Color4F squareColor; + axis::Vec3 noMVPVertices; }; - cocos2d::Vec2 _squareVertices[4]; + axis::Vec2 _squareVertices[4]; VertexData _vertexData[4]; CC_DISALLOW_COPY_AND_ASSIGN(BoneNode); diff --git a/extensions/cocostudio/ActionTimeline/CCFrame.cpp b/extensions/cocostudio/ActionTimeline/CCFrame.cpp index 74cc27f68e..4c6ed38050 100644 --- a/extensions/cocostudio/ActionTimeline/CCFrame.cpp +++ b/extensions/cocostudio/ActionTimeline/CCFrame.cpp @@ -30,7 +30,7 @@ THE SOFTWARE. #include #include -USING_NS_CC; +USING_NS_AX; NS_TIMELINE_BEGIN @@ -688,7 +688,7 @@ void EventFrame::init() EventFrame::EventFrame() : _event(""), _action(nullptr) {} -void EventFrame::setNode(cocos2d::Node* node) +void EventFrame::setNode(axis::Node* node) { Frame::setNode(node); _action = _timeline->getActionTimeline(); diff --git a/extensions/cocostudio/ActionTimeline/CCFrame.h b/extensions/cocostudio/ActionTimeline/CCFrame.h index dcd0610dc6..0a360112d0 100644 --- a/extensions/cocostudio/ActionTimeline/CCFrame.h +++ b/extensions/cocostudio/ActionTimeline/CCFrame.h @@ -39,7 +39,7 @@ NS_TIMELINE_BEGIN class Timeline; class ActionTimeline; -class CCS_DLL Frame : public cocos2d::Ref +class CCS_DLL Frame : public axis::Ref { public: virtual void setFrameIndex(unsigned int frameIndex) { _frameIndex = frameIndex; } @@ -48,14 +48,14 @@ public: virtual void setTimeline(Timeline* timeline) { _timeline = timeline; } virtual Timeline* getTimeline() const { return _timeline; } - virtual void setNode(cocos2d::Node* node) { _node = node; } - virtual cocos2d::Node* getNode() const { return _node; } + virtual void setNode(axis::Node* node) { _node = node; } + virtual axis::Node* getNode() const { return _node; } virtual void setTween(bool tween) { _tween = tween; } virtual bool isTween() const { return _tween; } - virtual void setTweenType(const cocos2d::tweenfunc::TweenType& tweenType) { _tweenType = tweenType; } - virtual cocos2d::tweenfunc::TweenType getTweenType() const { return _tweenType; } + virtual void setTweenType(const axis::tweenfunc::TweenType& tweenType) { _tweenType = tweenType; } + virtual axis::tweenfunc::TweenType getTweenType() const { return _tweenType; } // !to make easing with params, need setTweenType(TweenType::CUSTOM_EASING) virtual void setEasingParams(const std::vector& easingParams); @@ -84,10 +84,10 @@ protected: bool _tween; bool _enterWhenPassed; - cocos2d::tweenfunc::TweenType _tweenType; + axis::tweenfunc::TweenType _tweenType; std::vector _easingParam; Timeline* _timeline; - cocos2d::Node* _node; + axis::Node* _node; }; class CCS_DLL VisibleFrame : public Frame @@ -114,7 +114,7 @@ public: TextureFrame(); - virtual void setNode(cocos2d::Node* node) override; + virtual void setNode(axis::Node* node) override; virtual void onEnter(Frame* nextFrame, int currentFrameIndex) override; virtual Frame* clone() override; @@ -123,7 +123,7 @@ public: inline std::string_view getTextureName() const { return _textureName; } protected: - cocos2d::Sprite* _sprite; + axis::Sprite* _sprite; std::string _textureName; }; @@ -196,8 +196,8 @@ public: virtual void onEnter(Frame* nextFrame, int currentFrameIndex) override; virtual Frame* clone() override; - inline void setPosition(const cocos2d::Point& position) { _position = position; } - inline cocos2d::Point getPosition() const { return _position; } + inline void setPosition(const axis::Point& position) { _position = position; } + inline axis::Point getPosition() const { return _position; } inline void setX(float x) { _position.x = x; } inline void setY(float y) { _position.y = y; } @@ -208,7 +208,7 @@ public: protected: virtual void onApply(float percent) override; - cocos2d::Point _position; + axis::Point _position; float _betweenX; float _betweenY; }; @@ -254,14 +254,14 @@ public: virtual void onEnter(Frame* nextFrame, int currentFrameIndex) override; virtual Frame* clone() override; - inline void setAnchorPoint(const cocos2d::Point& point) { _anchorPoint = point; } - inline cocos2d::Point getAnchorPoint() const { return _anchorPoint; } + inline void setAnchorPoint(const axis::Point& point) { _anchorPoint = point; } + inline axis::Point getAnchorPoint() const { return _anchorPoint; } protected: virtual void onApply(float percent) override; - cocos2d::Vec2 _betweenAnchorPoint; - cocos2d::Vec2 _anchorPoint; + axis::Vec2 _betweenAnchorPoint; + axis::Vec2 _anchorPoint; }; enum InnerActionType @@ -320,14 +320,14 @@ public: CC_DEPRECATED_ATTRIBUTE inline void setAlpha(uint8_t alpha) { _alpha = alpha; } CC_DEPRECATED_ATTRIBUTE inline uint8_t getAlpha() const { return _alpha; } - inline void setColor(const cocos2d::Color3B& color) { _color = color; } - inline cocos2d::Color3B getColor() const { return _color; } + inline void setColor(const axis::Color3B& color) { _color = color; } + inline axis::Color3B getColor() const { return _color; } protected: virtual void onApply(float percent) override; uint8_t _alpha; - cocos2d::Color3B _color; + axis::Color3B _color; int _betweenRed; int _betweenGreen; @@ -361,7 +361,7 @@ public: EventFrame(); - virtual void setNode(cocos2d::Node* node) override; + virtual void setNode(axis::Node* node) override; virtual void onEnter(Frame* nextFrame, int currentFrameIndex) override; virtual Frame* clone() override; @@ -401,11 +401,11 @@ public: virtual void onEnter(Frame* nextFrame, int currentFrameIndex) override; virtual Frame* clone() override; - inline cocos2d::BlendFunc getBlendFunc() const { return _blendFunc; } - inline void setBlendFunc(cocos2d::BlendFunc blendFunc) { _blendFunc = blendFunc; } + inline axis::BlendFunc getBlendFunc() const { return _blendFunc; } + inline void setBlendFunc(axis::BlendFunc blendFunc) { _blendFunc = blendFunc; } protected: - cocos2d::BlendFunc _blendFunc; + axis::BlendFunc _blendFunc; }; class CCS_DLL PlayableFrame : public Frame diff --git a/extensions/cocostudio/ActionTimeline/CCSkeletonNode.cpp b/extensions/cocostudio/ActionTimeline/CCSkeletonNode.cpp index c1ad3001d3..74847baef2 100644 --- a/extensions/cocostudio/ActionTimeline/CCSkeletonNode.cpp +++ b/extensions/cocostudio/ActionTimeline/CCSkeletonNode.cpp @@ -52,8 +52,8 @@ bool SkeletonNode::init() // init _customCommand auto& pipelineDescriptor = _customCommand.getPipelineDescriptor(); auto* program = - cocos2d::backend::Program::getBuiltinProgram(cocos2d::backend::ProgramType::POSITION_COLOR); // TODO: noMVP? - setProgramState(new cocos2d::backend::ProgramState(program), false); + axis::backend::Program::getBuiltinProgram(axis::backend::ProgramType::POSITION_COLOR); // TODO: noMVP? + setProgramState(new axis::backend::ProgramState(program), false); pipelineDescriptor.programState = _programState; _mvpLocation = _programState->getUniformLocation("u_MVPMatrix"); @@ -63,20 +63,20 @@ bool SkeletonNode::init() auto iter = attributeInfo.find("a_position"); if (iter != attributeInfo.end()) { - vertexLayout->setAttribute("a_position", iter->second.location, cocos2d::backend::VertexFormat::FLOAT3, 0, + vertexLayout->setAttribute("a_position", iter->second.location, axis::backend::VertexFormat::FLOAT3, 0, false); } iter = attributeInfo.find("a_color"); if (iter != attributeInfo.end()) { - vertexLayout->setAttribute("a_color", iter->second.location, cocos2d::backend::VertexFormat::FLOAT4, + vertexLayout->setAttribute("a_color", iter->second.location, axis::backend::VertexFormat::FLOAT4, 3 * sizeof(float), false); } vertexLayout->setLayout(7 * sizeof(float)); - _customCommand.createVertexBuffer(sizeof(_vertexData[0]), 8, cocos2d::CustomCommand::BufferUsage::DYNAMIC); - _customCommand.createIndexBuffer(cocos2d::CustomCommand::IndexFormat::U_SHORT, 12, - cocos2d::CustomCommand::BufferUsage::STATIC); + _customCommand.createVertexBuffer(sizeof(_vertexData[0]), 8, axis::CustomCommand::BufferUsage::DYNAMIC); + _customCommand.createIndexBuffer(axis::CustomCommand::IndexFormat::U_SHORT, 12, + axis::CustomCommand::BufferUsage::STATIC); unsigned short indices[12] = {0, 1, 2, 1, 3, 2, 4, 5, 6, 5, 7, 6}; _customCommand.updateIndexBuffer(indices, sizeof(indices)); @@ -87,13 +87,13 @@ bool SkeletonNode::init() return true; } -cocos2d::Rect SkeletonNode::getBoundingBox() const +axis::Rect SkeletonNode::getBoundingBox() const { float minx, miny, maxx, maxy = 0; minx = miny = maxx = maxy; - cocos2d::Rect boundingBox = getVisibleSkinsRect(); + axis::Rect boundingBox = getVisibleSkinsRect(); bool first = true; - if (!boundingBox.equals(cocos2d::Rect::ZERO)) + if (!boundingBox.equals(axis::Rect::ZERO)) { minx = boundingBox.getMinX(); miny = boundingBox.getMinY(); @@ -104,9 +104,9 @@ cocos2d::Rect SkeletonNode::getBoundingBox() const auto allbones = getAllSubBones(); for (const auto& bone : allbones) { - cocos2d::Rect r = RectApplyAffineTransform(bone->getVisibleSkinsRect(), + axis::Rect r = RectApplyAffineTransform(bone->getVisibleSkinsRect(), bone->getNodeToParentAffineTransform(bone->getRootSkeletonNode())); - if (r.equals(cocos2d::Rect::ZERO)) + if (r.equals(axis::Rect::ZERO)) continue; if (first) @@ -178,7 +178,7 @@ void SkeletonNode::updateColor() _transformUpdated = _transformDirty = _inverseDirty = _contentSizeDirty = true; } -void SkeletonNode::visit(cocos2d::Renderer* renderer, const cocos2d::Mat4& parentTransform, uint32_t parentFlags) +void SkeletonNode::visit(axis::Renderer* renderer, const axis::Mat4& parentTransform, uint32_t parentFlags) { // quick return if not visible. children won't be drawn. if (!_visible) @@ -191,8 +191,8 @@ void SkeletonNode::visit(cocos2d::Renderer* renderer, const cocos2d::Mat4& paren // IMPORTANT: // To ease the migration to v3.0, we still support the Mat4 stack, // but it is deprecated and your code should not rely on it - _director->pushMatrix(cocos2d::MATRIX_STACK_TYPE::MATRIX_STACK_MODELVIEW); - _director->loadMatrix(cocos2d::MATRIX_STACK_TYPE::MATRIX_STACK_MODELVIEW, _modelViewTransform); + _director->pushMatrix(axis::MATRIX_STACK_TYPE::MATRIX_STACK_MODELVIEW); + _director->loadMatrix(axis::MATRIX_STACK_TYPE::MATRIX_STACK_MODELVIEW, _modelViewTransform); int i = 0; if (!_children.empty()) @@ -227,26 +227,26 @@ void SkeletonNode::visit(cocos2d::Renderer* renderer, const cocos2d::Mat4& paren renderer->addCommand(&_batchBoneCommand); batchDrawAllSubBones(); } - _director->popMatrix(cocos2d::MATRIX_STACK_TYPE::MATRIX_STACK_MODELVIEW); + _director->popMatrix(axis::MATRIX_STACK_TYPE::MATRIX_STACK_MODELVIEW); // FIX ME: Why need to set _orderOfArrival to 0?? // Please refer to https://github.com/cocos2d/cocos2d-x/pull/6920 // reset for next frame // _orderOfArrival = 0; } -void SkeletonNode::draw(cocos2d::Renderer* renderer, const cocos2d::Mat4& transform, uint32_t flags) +void SkeletonNode::draw(axis::Renderer* renderer, const axis::Mat4& transform, uint32_t flags) { _customCommand.init(_globalZOrder, _blendFunc); renderer->addCommand(&_customCommand); for (int i = 0; i < 8; ++i) { - cocos2d::Vec4 pos; + axis::Vec4 pos; pos.x = _squareVertices[i].x; pos.y = _squareVertices[i].y; pos.z = _positionZ; pos.w = 1; _modelViewTransform.transformVector(&pos); - _vertexData[i].vertex = cocos2d::Vec3(pos.x, pos.y, pos.z) / pos.w; + _vertexData[i].vertex = axis::Vec3(pos.x, pos.y, pos.z) / pos.w; } _customCommand.updateVertexBuffer(_vertexData, sizeof(_vertexData)); @@ -265,7 +265,7 @@ void SkeletonNode::batchDrawAllSubBones() } _batchBoneCommand.createVertexBuffer(sizeof(VertexData), _batchedVeticesCount, - cocos2d::CustomCommand::BufferUsage::DYNAMIC); + axis::CustomCommand::BufferUsage::DYNAMIC); _batchBoneCommand.updateVertexBuffer(_batchedBoneVertexData.data(), sizeof(VertexData) * _batchedVeticesCount); #ifdef CC_STUDIO_ENABLED_VIEW @@ -291,8 +291,8 @@ void SkeletonNode::batchDrawAllSubBones() *indices++ = i + 2; *indices++ = i + 3; } - _batchBoneCommand.createIndexBuffer(cocos2d::CustomCommand::IndexFormat::U_SHORT, _batchedVeticesCount, - cocos2d::CustomCommand::BufferUsage::DYNAMIC); + _batchBoneCommand.createIndexBuffer(axis::CustomCommand::IndexFormat::U_SHORT, _batchedVeticesCount, + axis::CustomCommand::BufferUsage::DYNAMIC); _batchBoneCommand.updateIndexBuffer(indices, sizeof(unsigned short) * _batchedVeticesCount); free(indices); #endif // CC_STUDIO_ENABLED_VIEW @@ -327,7 +327,7 @@ BoneNode* SkeletonNode::getBoneNode(std::string_view boneName) return nullptr; } -const cocos2d::StringMap& SkeletonNode::getAllSubBonesMap() const +const axis::StringMap& SkeletonNode::getAllSubBonesMap() const { return _subBonesMap; } diff --git a/extensions/cocostudio/ActionTimeline/CCSkeletonNode.h b/extensions/cocostudio/ActionTimeline/CCSkeletonNode.h index 67503cb1f3..cf66fda305 100644 --- a/extensions/cocostudio/ActionTimeline/CCSkeletonNode.h +++ b/extensions/cocostudio/ActionTimeline/CCSkeletonNode.h @@ -49,7 +49,7 @@ public: /** *get All bones in this skeleton, */ - const cocos2d::StringMap& getAllSubBonesMap() const; + const axis::StringMap& getAllSubBonesMap() const; /** *@brief: change displays @@ -70,7 +70,7 @@ public: */ void addSkinGroup(std::string groupName, hlookup::string_map boneSkinNameMap); - cocos2d::Rect getBoundingBox() const override; + axis::Rect getBoundingBox() const override; SkeletonNode(); virtual ~SkeletonNode(); @@ -80,22 +80,22 @@ protected: virtual void updateVertices() override; virtual void updateColor() override; - virtual void visit(cocos2d::Renderer* renderer, - const cocos2d::Mat4& parentTransform, + virtual void visit(axis::Renderer* renderer, + const axis::Mat4& parentTransform, uint32_t parentFlags) override; - virtual void draw(cocos2d::Renderer* renderer, const cocos2d::Mat4& transform, uint32_t flags) override; + virtual void draw(axis::Renderer* renderer, const axis::Mat4& transform, uint32_t flags) override; protected: - cocos2d::StringMap _subBonesMap; + axis::StringMap _subBonesMap; private: struct VertexData { - cocos2d::Vec3 vertex; - cocos2d::Color4F color; + axis::Vec3 vertex; + axis::Color4F color; }; - cocos2d::Vec2 _squareVertices[8]; + axis::Vec2 _squareVertices[8]; VertexData _vertexData[8]; hlookup::string_map> @@ -104,7 +104,7 @@ private: void checkSubBonesDirty(); // for draw skins as ordered bones' local z - cocos2d::Vector _subOrderedAllBones; + axis::Vector _subOrderedAllBones; void updateOrderedAllbones(); void sortOrderedAllBones(); // for batch draw sub bones @@ -112,7 +112,7 @@ private: bool _subBonesOrderDirty; std::vector _batchedBoneVertexData; int _batchedVeticesCount; - cocos2d::CustomCommand _batchBoneCommand; + axis::CustomCommand _batchBoneCommand; void batchDrawAllSubBones(); }; diff --git a/extensions/cocostudio/ActionTimeline/CCSkinNode.cpp b/extensions/cocostudio/ActionTimeline/CCSkinNode.cpp index 26dcf66db8..cced116363 100644 --- a/extensions/cocostudio/ActionTimeline/CCSkinNode.cpp +++ b/extensions/cocostudio/ActionTimeline/CCSkinNode.cpp @@ -23,7 +23,7 @@ THE SOFTWARE. ****************************************************************************/ #include "ActionTimeline/CCSkinNode.h" -using namespace cocos2d; +USING_NS_AX; NS_TIMELINE_BEGIN diff --git a/extensions/cocostudio/ActionTimeline/CCSkinNode.h b/extensions/cocostudio/ActionTimeline/CCSkinNode.h index 1b9c8d5bb6..163e3f6608 100644 --- a/extensions/cocostudio/ActionTimeline/CCSkinNode.h +++ b/extensions/cocostudio/ActionTimeline/CCSkinNode.h @@ -30,7 +30,7 @@ THE SOFTWARE. NS_TIMELINE_BEGIN -typedef cocos2d::Node SkinNode; +typedef axis::Node SkinNode; NS_TIMELINE_END diff --git a/extensions/cocostudio/ActionTimeline/CCTimeLine.cpp b/extensions/cocostudio/ActionTimeline/CCTimeLine.cpp index 47dfb507f4..8fc5e586e8 100644 --- a/extensions/cocostudio/ActionTimeline/CCTimeLine.cpp +++ b/extensions/cocostudio/ActionTimeline/CCTimeLine.cpp @@ -25,7 +25,7 @@ THE SOFTWARE. #include "ActionTimeline/CCTimeLine.h" #include "ActionTimeline/CCActionTimeline.h" -USING_NS_CC; +USING_NS_AX; NS_TIMELINE_BEGIN diff --git a/extensions/cocostudio/ActionTimeline/CCTimeLine.h b/extensions/cocostudio/ActionTimeline/CCTimeLine.h index 1b23658f0c..ed4060244d 100644 --- a/extensions/cocostudio/ActionTimeline/CCTimeLine.h +++ b/extensions/cocostudio/ActionTimeline/CCTimeLine.h @@ -33,7 +33,7 @@ NS_TIMELINE_BEGIN class ActionTimeline; -class CCS_DLL Timeline : public cocos2d::Ref +class CCS_DLL Timeline : public axis::Ref { public: static Timeline* create(); @@ -44,7 +44,7 @@ public: virtual void gotoFrame(int frameIndex); virtual void stepToFrame(int frameIndex); - virtual const cocos2d::Vector& getFrames() const { return _frames; } + virtual const axis::Vector& getFrames() const { return _frames; } virtual void addFrame(Frame* frame); virtual void insertFrame(Frame* frame, int index); @@ -53,8 +53,8 @@ public: virtual void setActionTag(int tag) { _actionTag = tag; } virtual int getActionTag() const { return _actionTag; } - virtual void setNode(cocos2d::Node* node); - virtual cocos2d::Node* getNode() const; + virtual void setNode(axis::Node* node); + virtual axis::Node* getNode() const; virtual void setActionTimeline(ActionTimeline* action) { _ActionTimeline = action; } virtual ActionTimeline* getActionTimeline() const { return _ActionTimeline; } @@ -67,7 +67,7 @@ protected: virtual void binarySearchKeyFrame(unsigned int frameIndex); virtual void updateCurrentKeyFrame(unsigned int frameIndex); - cocos2d::Vector _frames; + axis::Vector _frames; Frame* _currentKeyFrame; unsigned int _currentKeyFrameIndex; @@ -77,7 +77,7 @@ protected: unsigned int _actionTag; ActionTimeline* _ActionTimeline; - cocos2d::Node* _node; + axis::Node* _node; }; NS_TIMELINE_END diff --git a/extensions/cocostudio/ActionTimeline/CSLoader.cpp b/extensions/cocostudio/ActionTimeline/CSLoader.cpp index 108ea3967b..cd8ca5c348 100644 --- a/extensions/cocostudio/ActionTimeline/CSLoader.cpp +++ b/extensions/cocostudio/ActionTimeline/CSLoader.cpp @@ -96,14 +96,14 @@ #include -using namespace cocos2d::ui; +using namespace axis::ui; using namespace cocostudio; using namespace cocostudio::timeline; /* peterson */ using namespace flatbuffers; /**/ -NS_CC_BEGIN +NS_AX_BEGIN static const char* ClassName_Node = "Node"; static const char* ClassName_SubGraph = "SubGraph"; @@ -866,7 +866,7 @@ Component* CSLoader::loadComAudio(const rapidjson::Value& json) return audio; } -cocos2d::Node* CSLoader::createNode(const Data& data) +axis::Node* CSLoader::createNode(const Data& data) { return createNode(data, nullptr); } @@ -975,7 +975,7 @@ Node* CSLoader::createNodeWithFlatBuffersFile(std::string_view filename, const c return node; } -inline void CSLoader::reconstructNestNode(cocos2d::Node* node) +inline void CSLoader::reconstructNestNode(axis::Node* node) { /* To reconstruct nest node as WidgetCallBackHandlerProtocol. */ auto callbackHandler = dynamic_cast(node); @@ -1250,8 +1250,8 @@ Node* CSLoader::nodeWithFlatBuffers(const flatbuffers::NodeTree* nodetree, const bool CSLoader::bindCallback(std::string_view callbackName, std::string_view callbackType, - cocos2d::ui::Widget* sender, - cocos2d::Node* handler) + axis::ui::Widget* sender, + axis::Node* handler) { if (callbackName.empty()) return false; @@ -1569,4 +1569,4 @@ Node* CSLoader::nodeWithFlatBuffersForSimulator(const flatbuffers::NodeTree* nod return node; } -NS_CC_END +NS_AX_END diff --git a/extensions/cocostudio/ActionTimeline/CSLoader.h b/extensions/cocostudio/ActionTimeline/CSLoader.h index 9d8fe6b0ec..2c4e19f2bc 100644 --- a/extensions/cocostudio/ActionTimeline/CSLoader.h +++ b/extensions/cocostudio/ActionTimeline/CSLoader.h @@ -63,7 +63,7 @@ class ActionTimelineNode; } // namespace timeline } // namespace cocostudio -NS_CC_BEGIN +NS_AX_BEGIN typedef std::function ccNodeLoadCallback; @@ -79,12 +79,12 @@ public: void init(); - static cocos2d::Node* createNode(std::string_view filename); - static cocos2d::Node* createNode(std::string_view filename, const ccNodeLoadCallback& callback); - static cocos2d::Node* createNode(const Data& data); - static cocos2d::Node* createNode(const Data& data, const ccNodeLoadCallback& callback); - static cocos2d::Node* createNodeWithVisibleSize(std::string_view filename); - static cocos2d::Node* createNodeWithVisibleSize(std::string_view filename, const ccNodeLoadCallback& callback); + static axis::Node* createNode(std::string_view filename); + static axis::Node* createNode(std::string_view filename, const ccNodeLoadCallback& callback); + static axis::Node* createNode(const Data& data); + static axis::Node* createNode(const Data& data, const ccNodeLoadCallback& callback); + static axis::Node* createNodeWithVisibleSize(std::string_view filename); + static axis::Node* createNodeWithVisibleSize(std::string_view filename, const ccNodeLoadCallback& callback); static cocostudio::timeline::ActionTimeline* createTimeline(std::string_view filename); static cocostudio::timeline::ActionTimeline* createTimeline(const Data& data, std::string_view filename); @@ -95,9 +95,9 @@ public: startIndex, int endIndex, bool loop); */ - cocos2d::Node* createNodeFromJson(std::string_view filename); - cocos2d::Node* loadNodeWithFile(std::string_view fileName); - cocos2d::Node* loadNodeWithContent(std::string_view content); + axis::Node* createNodeFromJson(std::string_view filename); + axis::Node* loadNodeWithFile(std::string_view fileName); + axis::Node* loadNodeWithContent(std::string_view content); void setRecordJsonPath(bool record) { _recordJsonPath = record; } bool isRecordJsonPath() const { return _recordJsonPath; } @@ -105,60 +105,60 @@ public: void setJsonPath(std::string jsonPath) { _jsonPath = jsonPath; } std::string getJsonPath() const { return _jsonPath; } - cocos2d::Node* createNodeWithFlatBuffersFile(std::string_view filename); - cocos2d::Node* nodeWithFlatBuffersFile(std::string_view fileName); - cocos2d::Node* nodeWithFlatBuffers(const flatbuffers::NodeTree* nodetree); + axis::Node* createNodeWithFlatBuffersFile(std::string_view filename); + axis::Node* nodeWithFlatBuffersFile(std::string_view fileName); + axis::Node* nodeWithFlatBuffers(const flatbuffers::NodeTree* nodetree); bool bindCallback(std::string_view callbackName, std::string_view callbackType, - cocos2d::ui::Widget* sender, - cocos2d::Node* handler); + axis::ui::Widget* sender, + axis::Node* handler); void registReaderObject(std::string_view className, ObjectFactory::Instance ins); - cocos2d::Node* createNodeWithFlatBuffersForSimulator(std::string_view filename); - cocos2d::Node* nodeWithFlatBuffersForSimulator(const flatbuffers::NodeTree* nodetree); + axis::Node* createNodeWithFlatBuffersForSimulator(std::string_view filename); + axis::Node* nodeWithFlatBuffersForSimulator(const flatbuffers::NodeTree* nodetree); protected: - cocos2d::Node* createNodeWithFlatBuffersFile(std::string_view filename, const ccNodeLoadCallback& callback); - cocos2d::Node* nodeWithFlatBuffersFile(std::string_view fileName, const ccNodeLoadCallback& callback); - cocos2d::Node* nodeWithFlatBuffers(const flatbuffers::NodeTree* nodetree, const ccNodeLoadCallback& callback); + axis::Node* createNodeWithFlatBuffersFile(std::string_view filename, const ccNodeLoadCallback& callback); + axis::Node* nodeWithFlatBuffersFile(std::string_view fileName, const ccNodeLoadCallback& callback); + axis::Node* nodeWithFlatBuffers(const flatbuffers::NodeTree* nodetree, const ccNodeLoadCallback& callback); - cocos2d::Node* loadNode(const rapidjson::Value& json); + axis::Node* loadNode(const rapidjson::Value& json); - void locateNodeWithMulresPosition(cocos2d::Node* node, const rapidjson::Value& json); + void locateNodeWithMulresPosition(axis::Node* node, const rapidjson::Value& json); - void initNode(cocos2d::Node* node, const rapidjson::Value& json); + void initNode(axis::Node* node, const rapidjson::Value& json); // load nodes - cocos2d::Node* loadSimpleNode(const rapidjson::Value& json); - cocos2d::Node* loadSubGraph(const rapidjson::Value& json); - cocos2d::Node* loadSprite(const rapidjson::Value& json); - cocos2d::Node* loadParticle(const rapidjson::Value& json); - cocos2d::Node* loadTMXTiledMap(const rapidjson::Value& json); + axis::Node* loadSimpleNode(const rapidjson::Value& json); + axis::Node* loadSubGraph(const rapidjson::Value& json); + axis::Node* loadSprite(const rapidjson::Value& json); + axis::Node* loadParticle(const rapidjson::Value& json); + axis::Node* loadTMXTiledMap(const rapidjson::Value& json); // load gui - cocos2d::Node* loadWidget(const rapidjson::Value& json); + axis::Node* loadWidget(const rapidjson::Value& json); // load component - cocos2d::Component* loadComponent(const rapidjson::Value& json); - cocos2d::Component* loadComAudio(const rapidjson::Value& json); + axis::Component* loadComponent(const rapidjson::Value& json); + axis::Component* loadComAudio(const rapidjson::Value& json); bool isWidget(std::string_view type); bool isCustomWidget(std::string_view type); std::string_view getGUIClassName(std::string_view name); - std::string_view getWidgetReaderClassName(cocos2d::ui::Widget* widget); + std::string_view getWidgetReaderClassName(axis::ui::Widget* widget); - inline void reconstructNestNode(cocos2d::Node* node); + inline void reconstructNestNode(axis::Node* node); static inline std::string_view getExtentionName(std::string_view name); - typedef std::function NodeCreateFunc; + typedef std::function NodeCreateFunc; typedef std::pair Pair; std::unordered_map _funcs; - typedef std::function ComponentCreateFunc; + typedef std::function ComponentCreateFunc; typedef std::pair ComponentPair; std::unordered_map _componentFuncs; @@ -170,11 +170,11 @@ protected: std::string _monoCocos2dxVersion; Node* _rootNode; - cocos2d::Vector _callbackHandlers; + axis::Vector _callbackHandlers; std::string _csBuildID; }; -NS_CC_END +NS_AX_END #endif /* defined(__cocos2d_libs__CSLoader__) */ diff --git a/extensions/cocostudio/CCActionFrame.cpp b/extensions/cocostudio/CCActionFrame.cpp index c9d64ee1b0..ab47468a7b 100644 --- a/extensions/cocostudio/CCActionFrame.cpp +++ b/extensions/cocostudio/CCActionFrame.cpp @@ -25,7 +25,7 @@ THE SOFTWARE. #include "CCActionFrame.h" #include "2d/CCActionEase.h" -using namespace cocos2d; +USING_NS_AX; namespace cocostudio { diff --git a/extensions/cocostudio/CCActionFrame.h b/extensions/cocostudio/CCActionFrame.h index 62ad21e86a..9267e54d42 100644 --- a/extensions/cocostudio/CCActionFrame.h +++ b/extensions/cocostudio/CCActionFrame.h @@ -94,7 +94,7 @@ enum class FrameEaseType * @js NA * @lua NA */ -class CCS_DLL ActionFrame : public cocos2d::Ref +class CCS_DLL ActionFrame : public axis::Ref { public: @@ -171,7 +171,7 @@ public: * * @return ActionInterval */ - virtual cocos2d::ActionInterval* getAction(float duration); + virtual axis::ActionInterval* getAction(float duration); /** * Gets the ActionInterval of ActionFrame. * @@ -181,7 +181,7 @@ public: * * @return ActionInterval */ - virtual cocos2d::ActionInterval* getAction(float duration, ActionFrame* srcFrame); + virtual axis::ActionInterval* getAction(float duration, ActionFrame* srcFrame); /** *Set the ActionInterval easing parameter. @@ -199,7 +199,7 @@ protected: * * @return ActionInterval */ - virtual cocos2d::ActionInterval* getEasingAction(cocos2d::ActionInterval* action); + virtual axis::ActionInterval* getEasingAction(axis::ActionInterval* action); protected: int _frameType; @@ -231,14 +231,14 @@ public: * * @param the move action position. */ - void setPosition(cocos2d::Vec2 pos); + void setPosition(axis::Vec2 pos); /** * Gets the move action position. * * @return the move action position. */ - cocos2d::Vec2 getPosition(); + axis::Vec2 getPosition(); /** * Gets the ActionInterval of ActionFrame. @@ -247,10 +247,10 @@ public: * * @return ActionInterval */ - virtual cocos2d::ActionInterval* getAction(float duration); + virtual axis::ActionInterval* getAction(float duration); protected: - cocos2d::Vec2 _position; + axis::Vec2 _position; }; /** @@ -305,7 +305,7 @@ public: * * @return ActionInterval */ - virtual cocos2d::ActionInterval* getAction(float duration); + virtual axis::ActionInterval* getAction(float duration); protected: float _scaleX; @@ -349,7 +349,7 @@ public: * * @return ActionInterval */ - virtual cocos2d::ActionInterval* getAction(float duration); + virtual axis::ActionInterval* getAction(float duration); /** * Gets the ActionInterval of ActionFrame. * @@ -359,7 +359,7 @@ public: * * @return ActionInterval */ - virtual cocos2d::ActionInterval* getAction(float duration, ActionFrame* srcFrame); + virtual axis::ActionInterval* getAction(float duration, ActionFrame* srcFrame); public: float _rotation; @@ -402,7 +402,7 @@ public: * * @return ActionInterval */ - virtual cocos2d::ActionInterval* getAction(float duration); + virtual axis::ActionInterval* getAction(float duration); protected: float _opacity; @@ -430,14 +430,14 @@ public: * * @param ccolor the tint action color */ - void setColor(cocos2d::Color3B ccolor); + void setColor(axis::Color3B ccolor); /** * Gets the tint action color. * * @return the tint action color. */ - cocos2d::Color3B getColor(); + axis::Color3B getColor(); /** * Gets the ActionInterval of ActionFrame. @@ -446,10 +446,10 @@ public: * * @return ActionInterval */ - virtual cocos2d::ActionInterval* getAction(float duration); + virtual axis::ActionInterval* getAction(float duration); protected: - cocos2d::Color3B _color; + axis::Color3B _color; }; } // namespace cocostudio diff --git a/extensions/cocostudio/CCActionFrameEasing.h b/extensions/cocostudio/CCActionFrameEasing.h index 4c718684bb..15a6ae5c76 100644 --- a/extensions/cocostudio/CCActionFrameEasing.h +++ b/extensions/cocostudio/CCActionFrameEasing.h @@ -58,7 +58,7 @@ enum FrameEasingType * @js NA * @lua NA */ -class CCS_DLL ActionFrameEasing : public cocos2d::Ref +class CCS_DLL ActionFrameEasing : public axis::Ref { protected: FrameEasingType _type; diff --git a/extensions/cocostudio/CCActionManagerEx.cpp b/extensions/cocostudio/CCActionManagerEx.cpp index 8c372aa1af..0868543dd5 100644 --- a/extensions/cocostudio/CCActionManagerEx.cpp +++ b/extensions/cocostudio/CCActionManagerEx.cpp @@ -25,7 +25,7 @@ THE SOFTWARE. #include "CCActionManagerEx.h" #include "CocoLoader.h" -using namespace cocos2d; +USING_NS_AX; namespace cocostudio { @@ -63,7 +63,7 @@ void ActionManagerEx::initWithDictionary(const char* jsonName, const rapidjson:: this->_studioVersionNumber = version; ssize_t pos = path.find_last_of("/"); std::string fileName = path.substr(pos + 1, path.length()); - cocos2d::Vector actionList; + axis::Vector actionList; int actionCount = DICTOOL->getArrayCount_json(dic, "actionlist"); for (int i = 0; i < actionCount; i++) { @@ -77,14 +77,14 @@ void ActionManagerEx::initWithDictionary(const char* jsonName, const rapidjson:: } void ActionManagerEx::initWithBinary(const char* file, - cocos2d::Ref* root, + axis::Ref* root, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode) { std::string path = file; ssize_t pos = path.find_last_of("/"); std::string fileName = path.substr(pos + 1, path.length()); - cocos2d::Vector actionList; + axis::Vector actionList; stExpCocoNode* stChildArray = pCocoNode->GetChildArray(cocoLoader); stExpCocoNode* actionNode = nullptr; @@ -169,7 +169,7 @@ void ActionManagerEx::releaseActions() { for (auto& iter : _actionDic) { - cocos2d::Vector objList = iter.second; + axis::Vector objList = iter.second; ssize_t listCount = objList.size(); for (ssize_t i = 0; i < listCount; i++) { diff --git a/extensions/cocostudio/CCActionManagerEx.h b/extensions/cocostudio/CCActionManagerEx.h index 1dc3ed42a6..7660aea2bb 100644 --- a/extensions/cocostudio/CCActionManagerEx.h +++ b/extensions/cocostudio/CCActionManagerEx.h @@ -35,7 +35,7 @@ namespace cocostudio class CocoLoader; struct stExpCocoNode; -class CCS_DLL ActionManagerEx : public cocos2d::Ref +class CCS_DLL ActionManagerEx : public axis::Ref { public: /** @@ -96,7 +96,7 @@ public: * * @param func ui action call back */ - ActionObject* playActionByName(const char* jsonName, const char* actionName, cocos2d::CallFunc* func); + ActionObject* playActionByName(const char* jsonName, const char* actionName, axis::CallFunc* func); /** * Stop an Action with a name. @@ -122,7 +122,7 @@ public: int getStudioVersionNumber() const; protected: - std::unordered_map> _actionDic; + std::unordered_map> _actionDic; int _studioVersionNumber; }; diff --git a/extensions/cocostudio/CCActionNode.cpp b/extensions/cocostudio/CCActionNode.cpp index ae81cb6293..e92fafe34b 100644 --- a/extensions/cocostudio/CCActionNode.cpp +++ b/extensions/cocostudio/CCActionNode.cpp @@ -31,7 +31,7 @@ THE SOFTWARE. #include "base/ccUtils.h" #include "CCActionManagerEx.h" -using namespace cocos2d; +USING_NS_AX; using namespace ui; namespace cocostudio @@ -50,7 +50,7 @@ ActionNode::ActionNode() _frameArrayNum = (int)kKeyframeMax; for (int i = 0; i < _frameArrayNum; i++) { - _frameArray.push_back(new cocos2d::Vector()); + _frameArray.push_back(new axis::Vector()); } } @@ -209,7 +209,7 @@ float ActionNode::valueToFloat(std::string_view value) return utils::atof(value.data()); } -void ActionNode::initWithBinary(CocoLoader* cocoLoader, stExpCocoNode* cocoNode, cocos2d::Ref* root) +void ActionNode::initWithBinary(CocoLoader* cocoLoader, stExpCocoNode* cocoNode, axis::Ref* root) { stExpCocoNode* stChildNode = cocoNode; diff --git a/extensions/cocostudio/CCActionNode.h b/extensions/cocostudio/CCActionNode.h index 0e52c4d10f..f259b971b7 100644 --- a/extensions/cocostudio/CCActionNode.h +++ b/extensions/cocostudio/CCActionNode.h @@ -38,7 +38,7 @@ struct stExpCocoNode; * @js NA * @lua NA */ -class CCS_DLL ActionNode : public cocos2d::Ref +class CCS_DLL ActionNode : public axis::Ref { public: /** @@ -82,14 +82,14 @@ public: * * @param node which will run a action */ - void setObject(cocos2d::Ref* node); + void setObject(axis::Ref* node); /** * Gets node which will run a action. * * @return node which will run a action */ - cocos2d::Ref* getObject(); + axis::Ref* getObject(); /** * Insets a ActionFrame to ActionNode. @@ -151,7 +151,7 @@ public: virtual void stopAction(); /*init properties with a json dictionary*/ - virtual void initWithDictionary(const rapidjson::Value& dic, cocos2d::Ref* root); + virtual void initWithDictionary(const rapidjson::Value& dic, axis::Ref* root); virtual void initWithBinary(CocoLoader* cocoLoader, stExpCocoNode* pCocoNode, Ref* root); /** @@ -172,18 +172,18 @@ protected: float _fUnitTime; int _actionTag; - cocos2d::Spawn* _actionSpawn; - cocos2d::Action* _action; - cocos2d::Ref* _object; + axis::Spawn* _actionSpawn; + axis::Action* _action; + axis::Ref* _object; - std::vector*> _frameArray; + std::vector*> _frameArray; int _frameArrayNum; protected: - virtual cocos2d::Node* getActionNode(); - virtual cocos2d::Spawn* refreshActionProperty(); + virtual axis::Node* getActionNode(); + virtual axis::Spawn* refreshActionProperty(); virtual void runAction(); - virtual void initActionNodeFromRoot(cocos2d::Ref* root); + virtual void initActionNodeFromRoot(axis::Ref* root); virtual void easingToFrame(float duration, float delayTime, ActionFrame* srcFrame, ActionFrame* destFrame); }; diff --git a/extensions/cocostudio/CCActionObject.cpp b/extensions/cocostudio/CCActionObject.cpp index 2da0c70975..459fdcc355 100644 --- a/extensions/cocostudio/CCActionObject.cpp +++ b/extensions/cocostudio/CCActionObject.cpp @@ -30,7 +30,7 @@ THE SOFTWARE. #include "2d/CCActionInstant.h" #include "base/ccUtils.h" -using namespace cocos2d; +USING_NS_AX; namespace cocostudio { @@ -132,7 +132,7 @@ void ActionObject::initWithDictionary(const rapidjson::Value& dic, Ref* root) _fTotalTime = maxLength * _fUnitTime; } -void ActionObject::initWithBinary(CocoLoader* cocoLoader, stExpCocoNode* cocoNode, cocos2d::Ref* root) +void ActionObject::initWithBinary(CocoLoader* cocoLoader, stExpCocoNode* cocoNode, axis::Ref* root) { stExpCocoNode* stChildNode = cocoNode->GetChildArray(cocoLoader); stExpCocoNode* actionNodeList = nullptr; diff --git a/extensions/cocostudio/CCActionObject.h b/extensions/cocostudio/CCActionObject.h index ca130a2e55..8f2ec090e6 100644 --- a/extensions/cocostudio/CCActionObject.h +++ b/extensions/cocostudio/CCActionObject.h @@ -40,7 +40,7 @@ struct stExpCocoNode; * @js NA * @lua NA */ -class CCS_DLL ActionObject : public cocos2d::Ref +class CCS_DLL ActionObject : public axis::Ref { public: /** @@ -133,7 +133,7 @@ public: * * @param func Action Call Back */ - void play(cocos2d::CallFunc* func); + void play(axis::CallFunc* func); /** * Pause the action. @@ -163,9 +163,9 @@ public: void updateToFrameByTime(float fTime); /*init properties with a json dictionary*/ - void initWithDictionary(const rapidjson::Value& dic, cocos2d::Ref* root); + void initWithDictionary(const rapidjson::Value& dic, axis::Ref* root); - void initWithBinary(CocoLoader* cocoLoader, stExpCocoNode* pCocoNode, cocos2d::Ref* root); + void initWithBinary(CocoLoader* cocoLoader, stExpCocoNode* pCocoNode, axis::Ref* root); /*scheduler update function*/ void simulationActionUpdate(float dt); @@ -175,15 +175,15 @@ protected: bool valueToBool(std::string_view value); float valueToFloat(std::string_view value); - cocos2d::Vector _actionNodeList; + axis::Vector _actionNodeList; std::string _name; bool _loop; bool _bPause; bool _bPlaying; float _fUnitTime; float _currentTime; - cocos2d::Scheduler* _pScheduler; - cocos2d::CallFunc* _CallBack; + axis::Scheduler* _pScheduler; + axis::CallFunc* _CallBack; float _fTotalTime; }; diff --git a/extensions/cocostudio/CCArmature.cpp b/extensions/cocostudio/CCArmature.cpp index c3df94e267..eab47c2e9b 100644 --- a/extensions/cocostudio/CCArmature.cpp +++ b/extensions/cocostudio/CCArmature.cpp @@ -40,7 +40,7 @@ THE SOFTWARE. # include "chipmunk/chipmunk.h" #endif -using namespace cocos2d; +USING_NS_AX; namespace cocostudio { @@ -294,7 +294,7 @@ void Armature::changeBoneParent(Bone* bone, std::string_view parentName) } } -const cocos2d::StringMap& Armature::getBoneDic() const +const axis::StringMap& Armature::getBoneDic() const { return _boneDic; } @@ -368,7 +368,7 @@ void Armature::update(float dt) _armatureTransformDirty = false; } -void Armature::draw(cocos2d::Renderer* renderer, const Mat4& transform, uint32_t flags) +void Armature::draw(axis::Renderer* renderer, const Mat4& transform, uint32_t flags) { if (_parentBone == nullptr && _batchNode == nullptr) { @@ -444,7 +444,7 @@ void Armature::onExit() unscheduleUpdate(); } -void Armature::visit(cocos2d::Renderer* renderer, const Mat4& parentTransform, uint32_t parentFlags) +void Armature::visit(axis::Renderer* renderer, const Mat4& parentTransform, uint32_t parentFlags) { // quick return if not visible. children won't be drawn. if (!_visible) @@ -565,7 +565,7 @@ void Armature::drawContour() if (!detector) continue; - const cocos2d::Vector& bodyList = detector->getColliderBodyList(); + const axis::Vector& bodyList = detector->getColliderBodyList(); for (auto& object : bodyList) { @@ -587,7 +587,7 @@ void Armature::drawContour() # pragma warning(push) # pragma warning(disable : 4996) # endif - cocos2d::log("TODO in %s %s %d", __FILE__, __FUNCTION__, __LINE__); + axis::log("TODO in %s %s %d", __FILE__, __FUNCTION__, __LINE__); # if defined(__GNUC__) && ((__GNUC__ >= 4) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 1))) # pragma GCC diagnostic warning "-Wdeprecated-declarations" diff --git a/extensions/cocostudio/CCArmature.h b/extensions/cocostudio/CCArmature.h index 42cea36bb6..a472bc8405 100644 --- a/extensions/cocostudio/CCArmature.h +++ b/extensions/cocostudio/CCArmature.h @@ -67,9 +67,9 @@ CC_DEPRECATED_ATTRIBUTE typedef Bone CCBone; CC_DEPRECATED_ATTRIBUTE typedef ArmatureAnimation CCArmatureAnimation; CC_DEPRECATED_ATTRIBUTE typedef Armature CCArmature; CC_DEPRECATED_ATTRIBUTE typedef ArmatureDataManager CCArmatureDataManager; -CC_DEPRECATED_ATTRIBUTE typedef cocos2d::tweenfunc::TweenType CCTweenType; +CC_DEPRECATED_ATTRIBUTE typedef axis::tweenfunc::TweenType CCTweenType; -class CCS_DLL Armature : public cocos2d::Node, public cocos2d::BlendProtocol +class CCS_DLL Armature : public axis::Node, public axis::BlendProtocol { public: @@ -144,12 +144,12 @@ public: * Get Armature's bone dictionary * @return Armature's bone dictionary */ - const cocos2d::StringMap& getBoneDic() const; + const axis::StringMap& getBoneDic() const; /** * This boundingBox will calculate all bones' boundingBox every time */ - virtual cocos2d::Rect getBoundingBox() const override; + virtual axis::Rect getBoundingBox() const override; Bone* getBoneAtPoint(float x, float y) const; @@ -158,34 +158,34 @@ public: * @js NA * @lua NA */ - virtual void visit(cocos2d::Renderer* renderer, - const cocos2d::Mat4& parentTransform, + virtual void visit(axis::Renderer* renderer, + const axis::Mat4& parentTransform, uint32_t parentFlags) override; - virtual void draw(cocos2d::Renderer* renderer, const cocos2d::Mat4& transform, uint32_t flags) override; + virtual void draw(axis::Renderer* renderer, const axis::Mat4& transform, uint32_t flags) override; virtual void update(float dt) override; virtual void onEnter() override; virtual void onExit() override; - virtual const cocos2d::Mat4& getNodeToParentTransform() const override; + virtual const axis::Mat4& getNodeToParentTransform() const override; /** * @js NA * @lua NA */ - inline void setBlendFunc(const cocos2d::BlendFunc& blendFunc) override { _blendFunc = blendFunc; } + inline void setBlendFunc(const axis::BlendFunc& blendFunc) override { _blendFunc = blendFunc; } /** * @js NA * @lua NA */ - inline const cocos2d::BlendFunc& getBlendFunc() const override { return _blendFunc; } + inline const axis::BlendFunc& getBlendFunc() const override { return _blendFunc; } /** * Set contentsize and Calculate anchor point. */ virtual void updateOffsetPoint(); - virtual void setAnchorPoint(const cocos2d::Vec2& point) override; - virtual const cocos2d::Vec2& getAnchorPointInPoints() const override; - virtual const cocos2d::Vec2& getOffsetPoints() const; + virtual void setAnchorPoint(const axis::Vec2& point) override; + virtual const axis::Vec2& getAnchorPointInPoints() const override; + virtual const axis::Vec2& getOffsetPoints() const; virtual void setAnimation(ArmatureAnimation* animation); virtual ArmatureAnimation* getAnimation() const; @@ -258,16 +258,16 @@ protected: mutable bool _armatureTransformDirty; - cocos2d::StringMap + axis::StringMap _boneDic; //! The dictionary of the bones, include all bones in the armature, no matter it is the direct bone //! or the indirect bone. It is different from m_pChindren. - cocos2d::Vector _topBoneList; + axis::Vector _topBoneList; - cocos2d::BlendFunc _blendFunc; //! It's required for CCTextureProtocol inheritance + axis::BlendFunc _blendFunc; //! It's required for CCTextureProtocol inheritance - cocos2d::Vec2 _offsetPoint; - cocos2d::Vec2 _realAnchorPointInPoints; + axis::Vec2 _offsetPoint; + axis::Vec2 _realAnchorPointInPoints; ArmatureAnimation* _animation; diff --git a/extensions/cocostudio/CCArmatureAnimation.cpp b/extensions/cocostudio/CCArmatureAnimation.cpp index 785ac0c4c4..a1ad553f2c 100644 --- a/extensions/cocostudio/CCArmatureAnimation.cpp +++ b/extensions/cocostudio/CCArmatureAnimation.cpp @@ -28,7 +28,7 @@ THE SOFTWARE. #include "CCArmatureDefine.h" #include "CCDatas.h" -using namespace cocos2d; +USING_NS_AX; namespace cocostudio { @@ -185,7 +185,7 @@ void ArmatureAnimation::play(std::string_view animationName, int durationTo, int int durationTween = _movementData->durationTween == 0 ? _rawDuration : _movementData->durationTween; - cocos2d::tweenfunc::TweenType tweenEasing = _movementData->tweenEasing; + axis::tweenfunc::TweenType tweenEasing = _movementData->tweenEasing; loop = (loop < 0) ? _movementData->loop : loop; _onMovementList = false; diff --git a/extensions/cocostudio/CCArmatureAnimation.h b/extensions/cocostudio/CCArmatureAnimation.h index 40c5f2d9f3..6b61f316ce 100644 --- a/extensions/cocostudio/CCArmatureAnimation.h +++ b/extensions/cocostudio/CCArmatureAnimation.h @@ -43,8 +43,8 @@ enum MovementEventType class Armature; class Bone; -typedef void (cocos2d::Ref::*SEL_MovementEventCallFunc)(Armature*, MovementEventType, std::string_view); -typedef void (cocos2d::Ref::*SEL_FrameEventCallFunc)(Bone*, std::string_view, int, int); +typedef void (axis::Ref::*SEL_MovementEventCallFunc)(Armature*, MovementEventType, std::string_view); +typedef void (axis::Ref::*SEL_FrameEventCallFunc)(Bone*, std::string_view, int, int); #define movementEvent_selector(_SELECTOR) (cocostudio::SEL_MovementEventCallFunc)(&_SELECTOR) #define frameEvent_selector(_SELECTOR) (cocostudio::SEL_FrameEventCallFunc)(&_SELECTOR) @@ -183,13 +183,13 @@ public: * Set armature's movement event callback function * To disconnect this event, just setMovementEventCallFunc(nullptr, nullptr); */ - CC_DEPRECATED_ATTRIBUTE void setMovementEventCallFunc(cocos2d::Ref* target, SEL_MovementEventCallFunc callFunc); + CC_DEPRECATED_ATTRIBUTE void setMovementEventCallFunc(axis::Ref* target, SEL_MovementEventCallFunc callFunc); /** * Set armature's frame event callback function * To disconnect this event, just setFrameEventCallFunc(nullptr, nullptr); */ - CC_DEPRECATED_ATTRIBUTE void setFrameEventCallFunc(cocos2d::Ref* target, SEL_FrameEventCallFunc callFunc); + CC_DEPRECATED_ATTRIBUTE void setFrameEventCallFunc(axis::Ref* target, SEL_FrameEventCallFunc callFunc); void setMovementEventCallFunc( std::function listener); @@ -298,7 +298,7 @@ protected: unsigned int _movementIndex; int _movementListDurationTo; - cocos2d::Ref* _userObject; + axis::Ref* _userObject; protected: /** @@ -318,8 +318,8 @@ protected: */ SEL_FrameEventCallFunc _frameEventCallFunc; - cocos2d::Ref* _movementEventTarget; - cocos2d::Ref* _frameEventTarget; + axis::Ref* _movementEventTarget; + axis::Ref* _frameEventTarget; std::function _movementEventListener; diff --git a/extensions/cocostudio/CCArmatureDataManager.cpp b/extensions/cocostudio/CCArmatureDataManager.cpp index 9ea9856304..4ddff62d8f 100644 --- a/extensions/cocostudio/CCArmatureDataManager.cpp +++ b/extensions/cocostudio/CCArmatureDataManager.cpp @@ -29,7 +29,7 @@ THE SOFTWARE. #include "CCDataReaderHelper.h" #include "CCSpriteFrameCacheHelper.h" -using namespace cocos2d; +USING_NS_AX; namespace cocostudio { @@ -236,15 +236,15 @@ bool ArmatureDataManager::isAutoLoadSpriteFile() return _autoLoadSpriteFile; } -const cocos2d::StringMap& ArmatureDataManager::getArmatureDatas() const +const axis::StringMap& ArmatureDataManager::getArmatureDatas() const { return _armarureDatas; } -const cocos2d::StringMap& ArmatureDataManager::getAnimationDatas() const +const axis::StringMap& ArmatureDataManager::getAnimationDatas() const { return _animationDatas; } -const cocos2d::StringMap& ArmatureDataManager::getTextureDatas() const +const axis::StringMap& ArmatureDataManager::getTextureDatas() const { return _textureDatas; } diff --git a/extensions/cocostudio/CCArmatureDataManager.h b/extensions/cocostudio/CCArmatureDataManager.h index d77a285d2f..8409791162 100644 --- a/extensions/cocostudio/CCArmatureDataManager.h +++ b/extensions/cocostudio/CCArmatureDataManager.h @@ -43,7 +43,7 @@ struct RelativeData /** * @brief format and manage armature configuration and armature animation */ -class CCS_DLL ArmatureDataManager : public cocos2d::Ref +class CCS_DLL ArmatureDataManager : public axis::Ref { public: /** @deprecated Use getInstance() instead */ @@ -145,8 +145,8 @@ public: * It will load data in a new thread */ void addArmatureFileInfoAsync(std::string_view configFilePath, - cocos2d::Ref* target, - cocos2d::SEL_SCHEDULE selector); + axis::Ref* target, + axis::SEL_SCHEDULE selector); /** * @brief Add ArmatureFileInfo, it is managed by ArmatureDataManager. @@ -160,8 +160,8 @@ public: void addArmatureFileInfoAsync(std::string_view imagePath, std::string_view plistPath, std::string_view configFilePath, - cocos2d::Ref* target, - cocos2d::SEL_SCHEDULE selector); + axis::Ref* target, + axis::SEL_SCHEDULE selector); /** * @brief Add sprite frame to CCSpriteFrameCache, it will save display name and it's relative image name @@ -177,9 +177,9 @@ public: */ bool isAutoLoadSpriteFile(); - const cocos2d::StringMap& getArmatureDatas() const; - const cocos2d::StringMap& getAnimationDatas() const; - const cocos2d::StringMap& getTextureDatas() const; + const axis::StringMap& getArmatureDatas() const; + const axis::StringMap& getAnimationDatas() const; + const axis::StringMap& getTextureDatas() const; public: void addRelativeData(std::string_view configFilePath); @@ -191,21 +191,21 @@ private: * @key std::string * @value ArmatureData * */ - cocos2d::StringMap _armarureDatas; + axis::StringMap _armarureDatas; /** * @brief save animation datas * @key std::string * @value AnimationData * */ - cocos2d::StringMap _animationDatas; + axis::StringMap _animationDatas; /** * @brief save texture datas * @key std::string * @value TextureData * */ - cocos2d::StringMap _textureDatas; + axis::StringMap _textureDatas; bool _autoLoadSpriteFile; diff --git a/extensions/cocostudio/CCBatchNode.cpp b/extensions/cocostudio/CCBatchNode.cpp index 5e333fa322..2817166847 100644 --- a/extensions/cocostudio/CCBatchNode.cpp +++ b/extensions/cocostudio/CCBatchNode.cpp @@ -29,7 +29,7 @@ THE SOFTWARE. #include "renderer/CCGroupCommand.h" #include "base/CCDirector.h" -using namespace cocos2d; +USING_NS_AX; namespace cocostudio { BatchNode* BatchNode::create() @@ -69,7 +69,7 @@ void BatchNode::addChild(Node* child, int zOrder, int tag) } } -void BatchNode::addChild(cocos2d::Node* child, int zOrder, std::string_view name) +void BatchNode::addChild(axis::Node* child, int zOrder, std::string_view name) { Node::addChild(child, zOrder, name); Armature* armature = dynamic_cast(child); diff --git a/extensions/cocostudio/CCBatchNode.h b/extensions/cocostudio/CCBatchNode.h index 6962ed62c0..fa292c87c4 100644 --- a/extensions/cocostudio/CCBatchNode.h +++ b/extensions/cocostudio/CCBatchNode.h @@ -29,15 +29,16 @@ THE SOFTWARE. #include "CCArmatureDefine.h" #include "CocosStudioExport.h" -namespace cocos2d -{ +NS_AX_BEGIN + class GroupCommand; -} + +NS_AX_END namespace cocostudio { -class CCS_DLL BatchNode : public cocos2d::Node +class CCS_DLL BatchNode : public axis::Node { public: static BatchNode* create(); @@ -57,18 +58,18 @@ public: */ virtual bool init() override; using Node::addChild; - virtual void addChild(cocos2d::Node* pChild, int zOrder, int tag) override; - virtual void addChild(cocos2d::Node* pChild, int zOrder, std::string_view name) override; - virtual void removeChild(cocos2d::Node* child, bool cleanup) override; - virtual void visit(cocos2d::Renderer* renderer, - const cocos2d::Mat4& parentTransform, + virtual void addChild(axis::Node* pChild, int zOrder, int tag) override; + virtual void addChild(axis::Node* pChild, int zOrder, std::string_view name) override; + virtual void removeChild(axis::Node* child, bool cleanup) override; + virtual void visit(axis::Renderer* renderer, + const axis::Mat4& parentTransform, uint32_t parentFlags) override; - virtual void draw(cocos2d::Renderer* renderer, const cocos2d::Mat4& transform, uint32_t flags) override; + virtual void draw(axis::Renderer* renderer, const axis::Mat4& transform, uint32_t flags) override; protected: void generateGroupCommand(); - cocos2d::GroupCommand* _groupCommand; + axis::GroupCommand* _groupCommand; }; } // namespace cocostudio diff --git a/extensions/cocostudio/CCBone.cpp b/extensions/cocostudio/CCBone.cpp index b59ce1d59d..b43e6b88dd 100644 --- a/extensions/cocostudio/CCBone.cpp +++ b/extensions/cocostudio/CCBone.cpp @@ -29,7 +29,7 @@ THE SOFTWARE. #include "CCTransformHelp.h" #include "CCDisplayManager.h" -using namespace cocos2d; +USING_NS_AX; namespace cocostudio { diff --git a/extensions/cocostudio/CCBone.h b/extensions/cocostudio/CCBone.h index e0f86391ff..1ab62afcf9 100644 --- a/extensions/cocostudio/CCBone.h +++ b/extensions/cocostudio/CCBone.h @@ -39,7 +39,7 @@ namespace cocostudio class Armature; -class CCS_DLL Bone : public cocos2d::Node +class CCS_DLL Bone : public axis::Node { public: /** @@ -90,7 +90,7 @@ public: */ void addDisplay(DisplayData* displayData, int index); - void addDisplay(cocos2d::Node* display, int index); + void addDisplay(axis::Node* display, int index); void removeDisplay(int index); @@ -139,7 +139,7 @@ public: void update(float delta) override; - void updateDisplayedColor(const cocos2d::Color3B& parentColor) override; + void updateDisplayedColor(const axis::Color3B& parentColor) override; void updateDisplayedOpacity(uint8_t parentOpacity) override; //! Update color to render display @@ -158,10 +158,10 @@ public: virtual void setTransformDirty(bool dirty) { _boneTransformDirty = dirty; } virtual bool isTransformDirty() { return _boneTransformDirty; } - virtual cocos2d::Mat4 getNodeToArmatureTransform() const; - virtual cocos2d::Mat4 getNodeToWorldTransform() const override; + virtual axis::Mat4 getNodeToArmatureTransform() const; + virtual axis::Mat4 getNodeToWorldTransform() const override; - cocos2d::Node* getDisplayRenderNode(); + axis::Node* getDisplayRenderNode(); DisplayType getDisplayRenderNodeType(); /* @@ -199,8 +199,8 @@ public: /* * Set blend function */ - virtual void setBlendFunc(const cocos2d::BlendFunc& blendFunc); - virtual cocos2d::BlendFunc getBlendFunc(void) { return _blendFunc; } + virtual void setBlendFunc(const axis::BlendFunc& blendFunc); + virtual axis::BlendFunc getBlendFunc(void) { return _blendFunc; } /* * Set if blend function is dirty @@ -235,7 +235,7 @@ protected: */ bool _ignoreMovementBoneData; - cocos2d::BlendFunc _blendFunc; + axis::BlendFunc _blendFunc; bool _blendDirty; Tween* _tween; //! Calculate tween effect @@ -247,7 +247,7 @@ protected: bool _boneTransformDirty; //! Whether or not transform dirty //! self Transform, use this to change display's state - cocos2d::Mat4 _worldTransform; + axis::Mat4 _worldTransform; BaseData* _worldInfo; diff --git a/extensions/cocostudio/CCColliderDetector.cpp b/extensions/cocostudio/CCColliderDetector.cpp index 3455dfb6a0..e6d0b8cf8a 100644 --- a/extensions/cocostudio/CCColliderDetector.cpp +++ b/extensions/cocostudio/CCColliderDetector.cpp @@ -26,7 +26,7 @@ THE SOFTWARE. #include "CCBone.h" #include "CCTransformHelp.h" -using namespace cocos2d; +USING_NS_AX; namespace cocostudio { @@ -184,7 +184,7 @@ void ColliderDetector::addContourData(ContourData* contourData) #endif } -void ColliderDetector::addContourDataList(cocos2d::Vector& contourDataList) +void ColliderDetector::addContourDataList(axis::Vector& contourDataList) { for (const auto& contourData : contourDataList) { @@ -279,7 +279,7 @@ bool ColliderDetector::getActive() return _active; } -const cocos2d::Vector& ColliderDetector::getColliderBodyList() +const axis::Vector& ColliderDetector::getColliderBodyList() { return _colliderBodyList; } @@ -342,10 +342,10 @@ void ColliderDetector::updateTransform(Mat4& t) #endif unsigned long num = contourData->vertexList.size(); - std::vector& vs = contourData->vertexList; + std::vector& vs = contourData->vertexList; #if ENABLE_PHYSICS_SAVE_CALCULATED_VERTEX - std::vector& cvs = colliderBody->_calculatedVertexList; + std::vector& cvs = colliderBody->_calculatedVertexList; #endif for (unsigned long i = 0; i < num; i++) diff --git a/extensions/cocostudio/CCColliderDetector.h b/extensions/cocostudio/CCColliderDetector.h index d53e31f06f..ecff346e92 100644 --- a/extensions/cocostudio/CCColliderDetector.h +++ b/extensions/cocostudio/CCColliderDetector.h @@ -87,7 +87,7 @@ protected: #endif }; -class CCS_DLL ColliderBody : public cocos2d::Ref +class CCS_DLL ColliderBody : public axis::Ref { public: ColliderBody(ContourData* contourData); @@ -107,7 +107,7 @@ public: virtual void setShape(cpShape* shape) { _shape = shape; } virtual cpShape* getShape() const { return _shape; } #elif ENABLE_PHYSICS_SAVE_CALCULATED_VERTEX - virtual const std::vector& getCalculatedVertexList() const { return _calculatedVertexList; } + virtual const std::vector& getCalculatedVertexList() const { return _calculatedVertexList; } #endif private: @@ -118,7 +118,7 @@ private: cpShape* _shape; ColliderFilter* _filter; #elif ENABLE_PHYSICS_SAVE_CALCULATED_VERTEX - std::vector _calculatedVertexList; + std::vector _calculatedVertexList; #endif ContourData* _contourData; @@ -131,7 +131,7 @@ private: * @js NA * @lua NA */ -class CCS_DLL ColliderDetector : public cocos2d::Ref +class CCS_DLL ColliderDetector : public axis::Ref { public: static ColliderDetector* create(); @@ -152,17 +152,17 @@ public: virtual bool init(Bone* bone); void addContourData(ContourData* contourData); - void addContourDataList(cocos2d::Vector& contourDataList); + void addContourDataList(axis::Vector& contourDataList); void removeContourData(ContourData* contourData); void removeAll(); - void updateTransform(cocos2d::Mat4& t); + void updateTransform(axis::Mat4& t); void setActive(bool active); bool getActive(); - const cocos2d::Vector& getColliderBodyList(); + const axis::Vector& getColliderBodyList(); #if ENABLE_PHYSICS_BOX2D_DETECT || ENABLE_PHYSICS_CHIPMUNK_DETECT virtual void setColliderFilter(ColliderFilter* filter); @@ -180,7 +180,7 @@ public: virtual cpBody* getBody() const; #endif protected: - cocos2d::Vector _colliderBodyList; + axis::Vector _colliderBodyList; Bone* _bone; diff --git a/extensions/cocostudio/CCComAttribute.cpp b/extensions/cocostudio/CCComAttribute.cpp index 4e3c1805d6..e1c3334c09 100644 --- a/extensions/cocostudio/CCComAttribute.cpp +++ b/extensions/cocostudio/CCComAttribute.cpp @@ -25,7 +25,7 @@ THE SOFTWARE. #include "CCComAttribute.h" #include "platform/CCFileUtils.h" -using namespace cocos2d; +USING_NS_AX; namespace cocostudio { @@ -51,29 +51,29 @@ bool ComAttribute::init() void ComAttribute::setInt(std::string_view key, int value) { - _dict[key] = cocos2d::Value(value); + _dict[key] = axis::Value(value); } void ComAttribute::setFloat(std::string_view key, float value) { - _dict[key] = cocos2d::Value(value); + _dict[key] = axis::Value(value); } void ComAttribute::setBool(std::string_view key, bool value) { - _dict[key] = cocos2d::Value(value); + _dict[key] = axis::Value(value); } void ComAttribute::setString(std::string_view key, std::string_view value) { - _dict[key] = cocos2d::Value(value); + _dict[key] = axis::Value(value); } int ComAttribute::getInt(std::string_view key, int def) const { if (_dict.find(key) != _dict.end()) { - const cocos2d::Value& v = _dict.at(key); + const axis::Value& v = _dict.at(key); return v.asInt(); } @@ -89,7 +89,7 @@ float ComAttribute::getFloat(std::string_view key, float def) const { if (_dict.find(key) != _dict.end()) { - const cocos2d::Value& v = _dict.at(key); + const axis::Value& v = _dict.at(key); return v.asFloat(); } @@ -104,7 +104,7 @@ bool ComAttribute::getBool(std::string_view key, bool def) const { if (_dict.find(key) != _dict.end()) { - const cocos2d::Value& v = _dict.at(key); + const axis::Value& v = _dict.at(key); return v.asBool(); } @@ -120,7 +120,7 @@ std::string ComAttribute::getString(std::string_view key, std::string_view def) { if (_dict.find(key) != _dict.end()) { - const cocos2d::Value& v = _dict.at(key); + const axis::Value& v = _dict.at(key); return v.asString(); } @@ -195,7 +195,7 @@ bool ComAttribute::serialize(void* r) } if (file != nullptr) { - filePath.assign(cocos2d::FileUtils::getInstance()->fullPathForFilename(file)); + filePath.assign(axis::FileUtils::getInstance()->fullPathForFilename(file)); } if (parse(filePath)) { diff --git a/extensions/cocostudio/CCComAttribute.h b/extensions/cocostudio/CCComAttribute.h index 06d4cc30b0..453ac8327f 100644 --- a/extensions/cocostudio/CCComAttribute.h +++ b/extensions/cocostudio/CCComAttribute.h @@ -33,7 +33,7 @@ THE SOFTWARE. namespace cocostudio { -class CCS_DLL ComAttribute : public cocos2d::Component +class CCS_DLL ComAttribute : public axis::Component { DECLARE_CLASS_COMPONENT_INFO public: @@ -65,7 +65,7 @@ public: bool parse(std::string_view jsonFile); private: - cocos2d::ValueMap _dict; + axis::ValueMap _dict; rapidjson::Document _doc; }; diff --git a/extensions/cocostudio/CCComAudio.cpp b/extensions/cocostudio/CCComAudio.cpp index ead6b45615..4da00aa3ff 100644 --- a/extensions/cocostudio/CCComAudio.cpp +++ b/extensions/cocostudio/CCComAudio.cpp @@ -117,7 +117,7 @@ bool ComAudio::serialize(void* r) { continue; } - filePath.assign(cocos2d::FileUtils::getInstance()->fullPathForFilename(file)); + filePath.assign(axis::FileUtils::getInstance()->fullPathForFilename(file)); } if (strcmp(className, "CCBackgroundAudio") == 0) { diff --git a/extensions/cocostudio/CCComAudio.h b/extensions/cocostudio/CCComAudio.h index 22a0f5860c..e4268bb9e8 100644 --- a/extensions/cocostudio/CCComAudio.h +++ b/extensions/cocostudio/CCComAudio.h @@ -33,7 +33,7 @@ THE SOFTWARE. namespace cocostudio { -class CCS_DLL ComAudio : public cocos2d::Component, public cocos2d::PlayableProtocol +class CCS_DLL ComAudio : public axis::Component, public axis::PlayableProtocol { DECLARE_CLASS_COMPONENT_INFO public: diff --git a/extensions/cocostudio/CCComBase.h b/extensions/cocostudio/CCComBase.h index 6289657f69..46aa627cd0 100644 --- a/extensions/cocostudio/CCComBase.h +++ b/extensions/cocostudio/CCComBase.h @@ -33,14 +33,14 @@ THE SOFTWARE. #define DECLARE_CLASS_COMPONENT_INFO \ public: \ - static cocos2d::ObjectFactory::TInfo Type; \ - static cocos2d::Ref* createInstance(void); + static axis::ObjectFactory::TInfo Type; \ + static axis::Ref* createInstance(void); #define IMPLEMENT_CLASS_COMPONENT_INFO(className) \ - cocos2d::Ref* className::createInstance(void) { return className::create(); } \ - cocos2d::ObjectFactory::TInfo className::Type(#className, &className::createInstance); + axis::Ref* className::createInstance(void) { return className::create(); } \ + axis::ObjectFactory::TInfo className::Type(#className, &className::createInstance); -#define CREATE_CLASS_COMPONENT_INFO(className) cocos2d::ObjectFactory::TInfo(#className, &className::createInstance) +#define CREATE_CLASS_COMPONENT_INFO(className) axis::ObjectFactory::TInfo(#className, &className::createInstance) struct CCS_DLL SerData { diff --git a/extensions/cocostudio/CCComController.h b/extensions/cocostudio/CCComController.h index 9318a68c5d..c6dcff7589 100644 --- a/extensions/cocostudio/CCComController.h +++ b/extensions/cocostudio/CCComController.h @@ -33,7 +33,7 @@ THE SOFTWARE. namespace cocostudio { -class CCS_DLL ComController : public cocos2d::Component, public InputDelegate +class CCS_DLL ComController : public axis::Component, public InputDelegate { DECLARE_CLASS_COMPONENT_INFO public: diff --git a/extensions/cocostudio/CCComExtensionData.h b/extensions/cocostudio/CCComExtensionData.h index 49d9cf198f..cfc4f7e5a1 100644 --- a/extensions/cocostudio/CCComExtensionData.h +++ b/extensions/cocostudio/CCComExtensionData.h @@ -40,7 +40,7 @@ class ActionTimelineData; namespace cocostudio { -class CCS_DLL ComExtensionData : public cocos2d::Component +class CCS_DLL ComExtensionData : public axis::Component { DECLARE_CLASS_COMPONENT_INFO public: diff --git a/extensions/cocostudio/CCComRender.cpp b/extensions/cocostudio/CCComRender.cpp index 5fc2b45307..28876357a8 100644 --- a/extensions/cocostudio/CCComRender.cpp +++ b/extensions/cocostudio/CCComRender.cpp @@ -30,7 +30,7 @@ THE SOFTWARE. #include "2d/CCParticleSystemQuad.h" #include "2d/CCSpriteFrameCache.h" -using namespace cocos2d; +USING_NS_AX; namespace cocostudio { @@ -44,7 +44,7 @@ ComRender::ComRender() : _render(nullptr) _name = COMPONENT_NAME; } -ComRender::ComRender(cocos2d::Node* node, const char* comName) +ComRender::ComRender(axis::Node* node, const char* comName) { if (node != nullptr) { @@ -91,12 +91,12 @@ void ComRender::onRemove() } } -cocos2d::Node* ComRender::getNode() +axis::Node* ComRender::getNode() { return _render; } -void ComRender::setNode(cocos2d::Node* node) +void ComRender::setNode(axis::Node* node) { if (_render != nullptr) { @@ -163,11 +163,11 @@ bool ComRender::serialize(void* r) if (file != nullptr) { - filePath.assign(cocos2d::FileUtils::getInstance()->fullPathForFilename(file)); + filePath.assign(axis::FileUtils::getInstance()->fullPathForFilename(file)); } if (plist != nullptr) { - plistPath.assign(cocos2d::FileUtils::getInstance()->fullPathForFilename(plist)); + plistPath.assign(axis::FileUtils::getInstance()->fullPathForFilename(plist)); } if (resType == 0) { @@ -304,7 +304,7 @@ bool ComRender::serialize(void* r) std::string fileExtension = FileUtils::getInstance()->getFileExtension(filePath); if (fileExtension == ".json" || fileExtension == ".exportjson") { - cocos2d::ui::Widget* widget = GUIReader::getInstance()->widgetFromJsonFile(filePath.c_str()); + axis::ui::Widget* widget = GUIReader::getInstance()->widgetFromJsonFile(filePath.c_str()); _render = widget; _render->retain(); @@ -312,7 +312,7 @@ bool ComRender::serialize(void* r) } else if (fileExtension == ".csb") { - cocos2d::ui::Widget* widget = GUIReader::getInstance()->widgetFromBinaryFile(filePath.c_str()); + axis::ui::Widget* widget = GUIReader::getInstance()->widgetFromBinaryFile(filePath.c_str()); _render = widget; _render->retain(); @@ -369,7 +369,7 @@ ComRender* ComRender::create() return ret; } -ComRender* ComRender::create(cocos2d::Node* node, const char* comName) +ComRender* ComRender::create(axis::Node* node, const char* comName) { ComRender* ret = new ComRender(node, comName); if (ret->init()) diff --git a/extensions/cocostudio/CCComRender.h b/extensions/cocostudio/CCComRender.h index c8ffa7b06f..226bb2cec1 100644 --- a/extensions/cocostudio/CCComRender.h +++ b/extensions/cocostudio/CCComRender.h @@ -32,7 +32,7 @@ THE SOFTWARE. namespace cocostudio { -class CCS_DLL ComRender : public cocos2d::Component +class CCS_DLL ComRender : public axis::Component { DECLARE_CLASS_COMPONENT_INFO @@ -40,7 +40,7 @@ public: const static std::string COMPONENT_NAME; static ComRender* create(); - static ComRender* create(cocos2d::Node* node, const char* comName); + static ComRender* create(axis::Node* node, const char* comName); /** * @js NA @@ -63,13 +63,13 @@ public: */ virtual void onRemove() override; virtual bool serialize(void* r) override; - virtual cocos2d::Node* getNode(); - virtual void setNode(cocos2d::Node* node); + virtual axis::Node* getNode(); + virtual void setNode(axis::Node* node); /** * @js ctor */ ComRender(); - ComRender(cocos2d::Node* node, const char* comName); + ComRender(axis::Node* node, const char* comName); /** * @js NA * @lua NA @@ -79,7 +79,7 @@ public: private: bool readJson(std::string_view fileName, rapidjson::Document& doc); - cocos2d::Node* _render; + axis::Node* _render; }; } // namespace cocostudio diff --git a/extensions/cocostudio/CCDataReaderHelper.cpp b/extensions/cocostudio/CCDataReaderHelper.cpp index 879a357813..606d08cc8d 100644 --- a/extensions/cocostudio/CCDataReaderHelper.cpp +++ b/extensions/cocostudio/CCDataReaderHelper.cpp @@ -37,7 +37,7 @@ THE SOFTWARE. #include "CocoLoader.h" -using namespace cocos2d; +USING_NS_AX; static const char* VERSION = "version"; static const float VERSION_2_0 = 2.0f; @@ -287,7 +287,7 @@ void DataReaderHelper::addDataFromFile(std::string_view filePath) basefilePath = filePath.substr(0, pos + 1); } - std::string fileExtension = cocos2d::FileUtils::getInstance()->getFileExtension(filePath); + std::string fileExtension = axis::FileUtils::getInstance()->getFileExtension(filePath); // Read content from file std::string fullPath = FileUtils::getInstance()->fullPathForFilename(filePath); @@ -390,7 +390,7 @@ void DataReaderHelper::addDataFromFileAsync(std::string_view imagePath, data->imagePath = imagePath; data->plistPath = plistPath; - std::string fileExtension = cocos2d::FileUtils::getInstance()->getFileExtension(filePath); + std::string fileExtension = axis::FileUtils::getInstance()->getFileExtension(filePath); std::string fullPath = FileUtils::getInstance()->fullPathForFilename(filePath); bool isbinaryfilesrc = fileExtension == ".csb"; @@ -727,11 +727,11 @@ MovementData* DataReaderHelper::decodeMovement(pugi::xml_node& movementXML, if (_easing != FL_NAN) { int tweenEasing = atoi(_easing.data()); - movementData->tweenEasing = tweenEasing == 2 ? cocos2d::tweenfunc::Sine_EaseInOut : (TweenType)tweenEasing; + movementData->tweenEasing = tweenEasing == 2 ? axis::tweenfunc::Sine_EaseInOut : (TweenType)tweenEasing; } else { - movementData->tweenEasing = cocos2d::tweenfunc::Linear; + movementData->tweenEasing = axis::tweenfunc::Linear; } } @@ -1006,11 +1006,11 @@ FrameData* DataReaderHelper::decodeFrame(pugi::xml_node& frameXML, { tweenEasing = atoi(_easing); frameData->tweenEasing = - tweenEasing == 2 ? cocos2d::tweenfunc::Sine_EaseInOut : (cocos2d::tweenfunc::TweenType)tweenEasing; + tweenEasing == 2 ? axis::tweenfunc::Sine_EaseInOut : (axis::tweenfunc::TweenType)tweenEasing; } else { - frameData->tweenEasing = cocos2d::tweenfunc::Linear; + frameData->tweenEasing = axis::tweenfunc::Linear; } } @@ -1418,7 +1418,7 @@ MovementData* DataReaderHelper::decodeMovement(const rapidjson::Value& json, Dat movementData->scale = DICTOOL->getFloatValue_json(json, A_MOVEMENT_SCALE, 1.0f); } movementData->tweenEasing = - (TweenType)(DICTOOL->getIntValue_json(json, A_TWEEN_EASING, cocos2d::tweenfunc::Linear)); + (TweenType)(DICTOOL->getIntValue_json(json, A_TWEEN_EASING, axis::tweenfunc::Linear)); const char* name = DICTOOL->getStringValue_json(json, A_NAME); if (name != nullptr) @@ -1515,7 +1515,7 @@ FrameData* DataReaderHelper::decodeFrame(const rapidjson::Value& json, DataInfo* decodeNode(frameData, json, dataInfo); - frameData->tweenEasing = (TweenType)(DICTOOL->getIntValue_json(json, A_TWEEN_EASING, cocos2d::tweenfunc::Linear)); + frameData->tweenEasing = (TweenType)(DICTOOL->getIntValue_json(json, A_TWEEN_EASING, axis::tweenfunc::Linear)); frameData->displayIndex = DICTOOL->getIntValue_json(json, A_DISPLAY_INDEX); frameData->blendFunc.src = utils::toBackendBlendFactor( DICTOOL->getIntValue_json(json, A_BLEND_SRC, utils::toGLBlendFactor(BlendFunc::ALPHA_PREMULTIPLIED.src))); @@ -2086,7 +2086,7 @@ MovementData* DataReaderHelper::decodeMovement(CocoLoader* cocoLoader, stExpCoco } else if (key.compare(A_TWEEN_EASING) == 0) { - movementData->tweenEasing = cocos2d::tweenfunc::Linear; + movementData->tweenEasing = axis::tweenfunc::Linear; if (str != nullptr) { movementData->tweenEasing = (TweenType)(atoi(str)); @@ -2161,7 +2161,7 @@ MovementBoneData* DataReaderHelper::decodeMovementBone(CocoLoader* cocoLoader, if (dataInfo->cocoStudioVersion < VERSION_CHANGE_ROTATION_RANGE) { //! Change rotation range from (-180 -- 180) to (-infinity -- infinity) - cocos2d::Vector frames = movementBoneData->frameList; + axis::Vector frames = movementBoneData->frameList; ssize_t imusone = 0; ssize_t i = 0; @@ -2217,7 +2217,7 @@ FrameData* DataReaderHelper::decodeFrame(CocoLoader* cocoLoader, stExpCocoNode* str = pFrameDataArray[i].GetValue(cocoLoader); if (key.compare(A_TWEEN_EASING) == 0) { - frameData->tweenEasing = cocos2d::tweenfunc::Linear; + frameData->tweenEasing = axis::tweenfunc::Linear; if (str != nullptr) { frameData->tweenEasing = (TweenType)(atoi(str)); diff --git a/extensions/cocostudio/CCDataReaderHelper.h b/extensions/cocostudio/CCDataReaderHelper.h index 08ed808754..f362b87841 100644 --- a/extensions/cocostudio/CCDataReaderHelper.h +++ b/extensions/cocostudio/CCDataReaderHelper.h @@ -50,7 +50,7 @@ struct stExpCocoNode; * @js NA * @lua NA */ -class CCS_DLL DataReaderHelper : cocos2d::Ref +class CCS_DLL DataReaderHelper : axis::Ref { protected: enum ConfigType @@ -66,8 +66,8 @@ protected: std::string fileContent; ConfigType configType; std::string baseFilePath; - cocos2d::Ref* target; - cocos2d::SEL_SCHEDULE selector; + axis::Ref* target; + axis::SEL_SCHEDULE selector; bool autoLoadSpriteFile; std::string imagePath; @@ -118,8 +118,8 @@ public: void addDataFromFileAsync(std::string_view imagePath, std::string_view plistPath, std::string_view filePath, - cocos2d::Ref* target, - cocos2d::SEL_SCHEDULE selector); + axis::Ref* target, + axis::SEL_SCHEDULE selector); void addDataAsyncCallBack(float dt); diff --git a/extensions/cocostudio/CCDatas.cpp b/extensions/cocostudio/CCDatas.cpp index d7ffdfdebc..bd57787988 100644 --- a/extensions/cocostudio/CCDatas.cpp +++ b/extensions/cocostudio/CCDatas.cpp @@ -25,7 +25,7 @@ THE SOFTWARE. #include "CCDatas.h" #include "CCTransformHelp.h" -using namespace cocos2d; +USING_NS_AX; namespace cocostudio { @@ -226,7 +226,7 @@ BoneData* ArmatureData::getBoneData(std::string_view boneName) FrameData::FrameData(void) : frameID(0) , duration(1) - , tweenEasing(cocos2d::tweenfunc::Linear) + , tweenEasing(axis::tweenfunc::Linear) , easingParamNumber(0) , easingParams(nullptr) , isTween(true) @@ -297,7 +297,7 @@ MovementData::MovementData(void) , durationTo(0) , durationTween(0) , loop(true) - , tweenEasing(cocos2d::tweenfunc::Linear) + , tweenEasing(axis::tweenfunc::Linear) {} MovementData::~MovementData(void) {} diff --git a/extensions/cocostudio/CCDatas.h b/extensions/cocostudio/CCDatas.h index 52ce1415bd..a43fa0dc8b 100644 --- a/extensions/cocostudio/CCDatas.h +++ b/extensions/cocostudio/CCDatas.h @@ -66,7 +66,7 @@ namespace cocostudio * @js NA * @lua NA */ -class CCS_DLL BaseData : public cocos2d::Ref +class CCS_DLL BaseData : public axis::Ref { public: CC_CREATE_NO_PARAM_NO_INIT(BaseData) @@ -95,8 +95,8 @@ public: */ virtual void subtract(BaseData* from, BaseData* to, bool limit); - virtual void setColor(const cocos2d::Color4B& color); - virtual cocos2d::Color4B getColor(); + virtual void setColor(const axis::Color4B& color); + virtual axis::Color4B getColor(); public: float x; //! position x attribute @@ -135,7 +135,7 @@ enum DisplayType * @js NA * @lua NA */ -class CCS_DLL DisplayData : public cocos2d::Ref +class CCS_DLL DisplayData : public axis::Ref { public: CC_CREATE_NO_PARAM_NO_INIT(DisplayData) @@ -254,8 +254,8 @@ public: public: std::string name; //! the bone's name std::string parentName; //! the bone parent's name - cocos2d::Vector displayDataList; //! save DisplayData informations for the Bone - cocos2d::AffineTransform boneDataTransform; + axis::Vector displayDataList; //! save DisplayData informations for the Bone + axis::AffineTransform boneDataTransform; }; /** @@ -265,7 +265,7 @@ public: * @js NA * @lua NA */ -class CCS_DLL ArmatureData : public cocos2d::Ref +class CCS_DLL ArmatureData : public axis::Ref { public: CC_CREATE_NO_PARAM(ArmatureData) @@ -286,7 +286,7 @@ public: public: std::string name; - cocos2d::StringMap boneDataDic; + axis::StringMap boneDataDic; float dataVersion; }; @@ -333,7 +333,7 @@ public: int frameID; int duration; //! The frame will last duration frames - cocos2d::tweenfunc::TweenType tweenEasing; //! Every frame's tween easing effect + axis::tweenfunc::TweenType tweenEasing; //! Every frame's tween easing effect int easingParamNumber; float* easingParams; @@ -345,7 +345,7 @@ public: */ int displayIndex; - cocos2d::BlendFunc blendFunc; + axis::BlendFunc blendFunc; std::string strEvent; /** @@ -360,7 +360,7 @@ public: * @js NA * @lua NA */ -class CCS_DLL MovementBoneData : public cocos2d::Ref +class CCS_DLL MovementBoneData : public axis::Ref { public: CC_CREATE_NO_PARAM(MovementBoneData) @@ -386,14 +386,14 @@ public: float duration; //! this Bone in this movement will last m_iDuration frames std::string name; //! bone name - cocos2d::Vector frameList; + axis::Vector frameList; }; /** * @js NA * @lua NA */ -class CCS_DLL MovementData : public cocos2d::Ref +class CCS_DLL MovementData : public axis::Ref { public: CC_CREATE_NO_PARAM_NO_INIT(MovementData) @@ -439,14 +439,14 @@ public: * Which tween easing effect the movement use * TWEEN_EASING_MAX : use the value from MovementData get from flash design panel */ - cocos2d::tweenfunc::TweenType tweenEasing; + axis::tweenfunc::TweenType tweenEasing; /** * @brief save movement bone data * @key std::string_view * @value MovementBoneData * */ - cocos2d::StringMap movBoneDataDic; + axis::StringMap movBoneDataDic; }; /** @@ -456,7 +456,7 @@ public: * @js NA * @lua NA */ -class CCS_DLL AnimationData : public cocos2d::Ref +class CCS_DLL AnimationData : public axis::Ref { public: CC_CREATE_NO_PARAM_NO_INIT(AnimationData) @@ -477,7 +477,7 @@ public: public: std::string name; - cocos2d::StringMap movementDataDic; + axis::StringMap movementDataDic; std::vector movementNames; }; @@ -486,7 +486,7 @@ public: * @js NA * @lua NA */ -class CCS_DLL ContourData : public cocos2d::Ref +class CCS_DLL ContourData : public axis::Ref { public: CC_CREATE_NO_PARAM(ContourData) @@ -502,10 +502,10 @@ public: ~ContourData(void); virtual bool init(); - virtual void addVertex(cocos2d::Vec2& vertex); + virtual void addVertex(axis::Vec2& vertex); public: - std::vector vertexList; //! Save contour vertex info, vertex saved in a Vec2 + std::vector vertexList; //! Save contour vertex info, vertex saved in a Vec2 }; /* @@ -513,7 +513,7 @@ public: * @js NA * @lua NA */ -class CCS_DLL TextureData : public cocos2d::Ref +class CCS_DLL TextureData : public axis::Ref { public: CC_CREATE_NO_PARAM(TextureData) @@ -542,7 +542,7 @@ public: std::string name; //! The texture's name - cocos2d::Vector contourDataList; + axis::Vector contourDataList; }; } // namespace cocostudio diff --git a/extensions/cocostudio/CCDecorativeDisplay.cpp b/extensions/cocostudio/CCDecorativeDisplay.cpp index b27cb2c025..7b4d3599c4 100644 --- a/extensions/cocostudio/CCDecorativeDisplay.cpp +++ b/extensions/cocostudio/CCDecorativeDisplay.cpp @@ -25,7 +25,7 @@ THE SOFTWARE. #include "CCDecorativeDisplay.h" #include "2d/CCNode.h" -using namespace cocos2d; +USING_NS_AX; namespace cocostudio { @@ -65,7 +65,7 @@ bool DecorativeDisplay::init() return true; } -void DecorativeDisplay::setDisplay(cocos2d::Node* display) +void DecorativeDisplay::setDisplay(axis::Node* display) { if (_display != display) { diff --git a/extensions/cocostudio/CCDecorativeDisplay.h b/extensions/cocostudio/CCDecorativeDisplay.h index 2a94ec9e69..076201788f 100644 --- a/extensions/cocostudio/CCDecorativeDisplay.h +++ b/extensions/cocostudio/CCDecorativeDisplay.h @@ -34,10 +34,9 @@ THE SOFTWARE. # include "CCColliderDetector.h" #endif -namespace cocos2d -{ +NS_AX_BEGIN class Node; -} +NS_AX_END namespace cocostudio { @@ -45,7 +44,7 @@ namespace cocostudio * @js NA * @lua NA */ -class CCS_DLL DecorativeDisplay : public cocos2d::Ref +class CCS_DLL DecorativeDisplay : public axis::Ref { public: static DecorativeDisplay* create(); @@ -56,8 +55,8 @@ public: virtual bool init(); - virtual void setDisplay(cocos2d::Node* display); - virtual cocos2d::Node* getDisplay() const { return _display; } + virtual void setDisplay(axis::Node* display); + virtual axis::Node* getDisplay() const { return _display; } virtual void setDisplayData(DisplayData* data) { @@ -83,7 +82,7 @@ public: virtual ColliderDetector* getColliderDetector() const { return _colliderDetector; } #endif protected: - cocos2d::Node* _display; + axis::Node* _display; DisplayData* _displayData; #if ENABLE_PHYSICS_BOX2D_DETECT || ENABLE_PHYSICS_CHIPMUNK_DETECT || ENABLE_PHYSICS_SAVE_CALCULATED_VERTEX diff --git a/extensions/cocostudio/CCDisplayFactory.cpp b/extensions/cocostudio/CCDisplayFactory.cpp index 69d0c84144..5a3f884091 100644 --- a/extensions/cocostudio/CCDisplayFactory.cpp +++ b/extensions/cocostudio/CCDisplayFactory.cpp @@ -31,7 +31,7 @@ THE SOFTWARE. #include "2d/CCParticleSystemQuad.h" -using namespace cocos2d; +USING_NS_AX; namespace cocostudio { diff --git a/extensions/cocostudio/CCDisplayFactory.h b/extensions/cocostudio/CCDisplayFactory.h index 509622fc0b..d868df4643 100644 --- a/extensions/cocostudio/CCDisplayFactory.h +++ b/extensions/cocostudio/CCDisplayFactory.h @@ -53,11 +53,11 @@ public: static void addArmatureDisplay(Bone* bone, DecorativeDisplay* decoDisplay, DisplayData* displayData); static void createArmatureDisplay(Bone* bone, DecorativeDisplay* decoDisplay); - static void updateArmatureDisplay(Bone* bone, cocos2d::Node* display, float dt); + static void updateArmatureDisplay(Bone* bone, axis::Node* display, float dt); static void addParticleDisplay(Bone* bone, DecorativeDisplay* decoDisplay, DisplayData* displayData); static void createParticleDisplay(Bone* bone, DecorativeDisplay* decoDisplay); - static void updateParticleDisplay(Bone* bone, cocos2d::Node* display, float dt); + static void updateParticleDisplay(Bone* bone, axis::Node* display, float dt); }; } // namespace cocostudio diff --git a/extensions/cocostudio/CCDisplayManager.cpp b/extensions/cocostudio/CCDisplayManager.cpp index 5ffafdfbb9..1210d7e881 100644 --- a/extensions/cocostudio/CCDisplayManager.cpp +++ b/extensions/cocostudio/CCDisplayManager.cpp @@ -29,7 +29,7 @@ THE SOFTWARE. #include "2d/CCParticleSystemQuad.h" -using namespace cocos2d; +USING_NS_AX; namespace cocostudio { @@ -206,7 +206,7 @@ void DisplayManager::removeDisplay(int index) _decoDisplayList.erase(index); } -const cocos2d::Vector& DisplayManager::getDecorativeDisplayList() const +const axis::Vector& DisplayManager::getDecorativeDisplayList() const { return _decoDisplayList; } diff --git a/extensions/cocostudio/CCDisplayManager.h b/extensions/cocostudio/CCDisplayManager.h index 95b74d3efa..460e8673f2 100644 --- a/extensions/cocostudio/CCDisplayManager.h +++ b/extensions/cocostudio/CCDisplayManager.h @@ -39,7 +39,7 @@ class Bone; * @js NA * @lua NA */ -class CCS_DLL DisplayManager : public cocos2d::Ref +class CCS_DLL DisplayManager : public axis::Ref { public: static DisplayManager* create(Bone* bone); @@ -70,11 +70,11 @@ public: */ void addDisplay(DisplayData* displayData, int index); - void addDisplay(cocos2d::Node* display, int index); + void addDisplay(axis::Node* display, int index); void removeDisplay(int index); - const cocos2d::Vector& getDecorativeDisplayList() const; + const axis::Vector& getDecorativeDisplayList() const; /* * @deprecated, please use changeDisplayWithIndex and changeDisplayWithName @@ -95,7 +95,7 @@ public: void changeDisplayWithIndex(int index, bool force); void changeDisplayWithName(std::string_view name, bool force); - cocos2d::Node* getDisplayRenderNode() const; + axis::Node* getDisplayRenderNode() const; DisplayType getDisplayRenderNodeType() const; int getCurrentDisplayIndex() const; @@ -119,16 +119,16 @@ public: */ virtual bool isVisible() const; - cocos2d::Size getContentSize() const; - cocos2d::Rect getBoundingBox() const; + axis::Size getContentSize() const; + axis::Rect getBoundingBox() const; - cocos2d::Vec2 getAnchorPoint() const; - cocos2d::Vec2 getAnchorPointInPoints() const; + axis::Vec2 getAnchorPoint() const; + axis::Vec2 getAnchorPointInPoints() const; /** * Check if the position is inside the bone. */ - virtual bool containPoint(cocos2d::Vec2& _point); + virtual bool containPoint(axis::Vec2& _point); /** * Check if the position is inside the bone. @@ -139,9 +139,9 @@ public: virtual bool isForceChangeDisplay() const { return _forceChangeDisplay; } protected: - cocos2d::Vector _decoDisplayList; + axis::Vector _decoDisplayList; //! Display render node. - cocos2d::Node* _displayRenderNode; + axis::Node* _displayRenderNode; //! Display render node type DisplayType _displayType; //! Include current display information, like contour sprite, etc. diff --git a/extensions/cocostudio/CCInputDelegate.cpp b/extensions/cocostudio/CCInputDelegate.cpp index 3965f67c72..a44c1695bd 100644 --- a/extensions/cocostudio/CCInputDelegate.cpp +++ b/extensions/cocostudio/CCInputDelegate.cpp @@ -30,7 +30,7 @@ THE SOFTWARE. #include "base/CCEventListenerKeyboard.h" #include "base/CCEventDispatcher.h" -using namespace cocos2d; +USING_NS_AX; namespace cocostudio { @@ -55,32 +55,32 @@ InputDelegate::~InputDelegate(void) Device::setAccelerometerEnabled(false); } -void InputDelegate::didAccelerate(cocos2d::Acceleration* /*accelerationValue*/) {} +void InputDelegate::didAccelerate(axis::Acceleration* /*accelerationValue*/) {} -bool InputDelegate::ccTouchBegan(cocos2d::Touch* /*touch*/, cocos2d::Event* /*event*/) +bool InputDelegate::ccTouchBegan(axis::Touch* /*touch*/, axis::Event* /*event*/) { return false; } -void InputDelegate::ccTouchMoved(cocos2d::Touch* /*touch*/, cocos2d::Event* /*event*/) {} +void InputDelegate::ccTouchMoved(axis::Touch* /*touch*/, axis::Event* /*event*/) {} -void InputDelegate::ccTouchEnded(cocos2d::Touch* /*touch*/, cocos2d::Event* /*event*/) {} +void InputDelegate::ccTouchEnded(axis::Touch* /*touch*/, axis::Event* /*event*/) {} -void InputDelegate::ccTouchCancelled(cocos2d::Touch* /*touch*/, cocos2d::Event* /*event*/) {} +void InputDelegate::ccTouchCancelled(axis::Touch* /*touch*/, axis::Event* /*event*/) {} -void InputDelegate::ccTouchesBegan(cocos2d::__Set* /*touches*/, cocos2d::Event* /*event*/) {} +void InputDelegate::ccTouchesBegan(axis::__Set* /*touches*/, axis::Event* /*event*/) {} -void InputDelegate::ccTouchesMoved(cocos2d::__Set* /*touches*/, cocos2d::Event* /*event*/) {} +void InputDelegate::ccTouchesMoved(axis::__Set* /*touches*/, axis::Event* /*event*/) {} -void InputDelegate::ccTouchesEnded(cocos2d::__Set* /*touches*/, cocos2d::Event* /*event*/) {} +void InputDelegate::ccTouchesEnded(axis::__Set* /*touches*/, axis::Event* /*event*/) {} -void InputDelegate::ccTouchesCancelled(cocos2d::__Set* /*touches*/, cocos2d::Event* /*event*/) {} +void InputDelegate::ccTouchesCancelled(axis::__Set* /*touches*/, axis::Event* /*event*/) {} -void InputDelegate::onAcceleration(cocos2d::Acceleration* /*acc*/, cocos2d::Event* /*event*/) {} +void InputDelegate::onAcceleration(axis::Acceleration* /*acc*/, axis::Event* /*event*/) {} -void InputDelegate::onKeyPressed(cocos2d::EventKeyboard::KeyCode /*keyCode*/, cocos2d::Event* /*event*/) {} +void InputDelegate::onKeyPressed(axis::EventKeyboard::KeyCode /*keyCode*/, axis::Event* /*event*/) {} -void InputDelegate::onKeyReleased(cocos2d::EventKeyboard::KeyCode /*keyCode*/, cocos2d::Event* /*event*/) {} +void InputDelegate::onKeyReleased(axis::EventKeyboard::KeyCode /*keyCode*/, axis::Event* /*event*/) {} bool InputDelegate::onTouchBegan(Touch* /*pTouch*/, Event* /*pEvent*/) { diff --git a/extensions/cocostudio/CCInputDelegate.h b/extensions/cocostudio/CCInputDelegate.h index b9ecba6960..47791301b3 100644 --- a/extensions/cocostudio/CCInputDelegate.h +++ b/extensions/cocostudio/CCInputDelegate.h @@ -33,10 +33,9 @@ THE SOFTWARE. #include "base/CCEventListener.h" #include "CocosStudioExport.h" -namespace cocos2d -{ +NS_AX_BEGIN class __Set; -} +NS_AX_END namespace cocostudio { @@ -61,104 +60,104 @@ public: virtual void setAccelerometerEnabled(bool value); virtual bool isKeypadEnabled() const; virtual void setKeypadEnabled(bool value); - virtual void setTouchMode(cocos2d::Touch::DispatchMode mode); - virtual cocos2d::Touch::DispatchMode getTouchMode() const; + virtual void setTouchMode(axis::Touch::DispatchMode mode); + virtual axis::Touch::DispatchMode getTouchMode() const; virtual void setTouchPriority(int priority); virtual int getTouchPriority() const; /** @deprecated Please override onAcceleration */ /** * @js NA */ - CC_DEPRECATED_ATTRIBUTE virtual void didAccelerate(cocos2d::Acceleration* accelerationValue) final; + CC_DEPRECATED_ATTRIBUTE virtual void didAccelerate(axis::Acceleration* accelerationValue) final; // Deprecated touch callbacks. /** * @js NA */ - CC_DEPRECATED_ATTRIBUTE virtual bool ccTouchBegan(cocos2d::Touch* touch, cocos2d::Event* event) final; + CC_DEPRECATED_ATTRIBUTE virtual bool ccTouchBegan(axis::Touch* touch, axis::Event* event) final; /** * @js NA */ - CC_DEPRECATED_ATTRIBUTE virtual void ccTouchMoved(cocos2d::Touch* touch, cocos2d::Event* event) final; + CC_DEPRECATED_ATTRIBUTE virtual void ccTouchMoved(axis::Touch* touch, axis::Event* event) final; /** * @js NA */ - CC_DEPRECATED_ATTRIBUTE virtual void ccTouchEnded(cocos2d::Touch* touch, cocos2d::Event* event) final; + CC_DEPRECATED_ATTRIBUTE virtual void ccTouchEnded(axis::Touch* touch, axis::Event* event) final; /** * @js NA */ - CC_DEPRECATED_ATTRIBUTE virtual void ccTouchCancelled(cocos2d::Touch* touch, cocos2d::Event* event) final; + CC_DEPRECATED_ATTRIBUTE virtual void ccTouchCancelled(axis::Touch* touch, axis::Event* event) final; /** * @js NA */ - CC_DEPRECATED_ATTRIBUTE virtual void ccTouchesBegan(cocos2d::__Set* touches, cocos2d::Event* event) final; + CC_DEPRECATED_ATTRIBUTE virtual void ccTouchesBegan(axis::__Set* touches, axis::Event* event) final; /** * @js NA */ - CC_DEPRECATED_ATTRIBUTE virtual void ccTouchesMoved(cocos2d::__Set* touches, cocos2d::Event* event) final; + CC_DEPRECATED_ATTRIBUTE virtual void ccTouchesMoved(axis::__Set* touches, axis::Event* event) final; /** * @js NA */ - CC_DEPRECATED_ATTRIBUTE virtual void ccTouchesEnded(cocos2d::__Set* touches, cocos2d::Event* event) final; + CC_DEPRECATED_ATTRIBUTE virtual void ccTouchesEnded(axis::__Set* touches, axis::Event* event) final; /** * @js NA */ - CC_DEPRECATED_ATTRIBUTE virtual void ccTouchesCancelled(cocos2d::__Set* touches, cocos2d::Event* event) final; + CC_DEPRECATED_ATTRIBUTE virtual void ccTouchesCancelled(axis::__Set* touches, axis::Event* event) final; /** * @js NA */ - virtual void onAcceleration(cocos2d::Acceleration* acc, cocos2d::Event* event); + virtual void onAcceleration(axis::Acceleration* acc, axis::Event* event); /** * @js NA */ - virtual void onKeyPressed(cocos2d::EventKeyboard::KeyCode keyCode, cocos2d::Event* event); + virtual void onKeyPressed(axis::EventKeyboard::KeyCode keyCode, axis::Event* event); /** * @js NA */ - virtual void onKeyReleased(cocos2d::EventKeyboard::KeyCode keyCode, cocos2d::Event* event); + virtual void onKeyReleased(axis::EventKeyboard::KeyCode keyCode, axis::Event* event); /** * @js NA */ - virtual bool onTouchBegan(cocos2d::Touch* touch, cocos2d::Event* event); + virtual bool onTouchBegan(axis::Touch* touch, axis::Event* event); /** * @js NA */ - virtual void onTouchMoved(cocos2d::Touch* touch, cocos2d::Event* event); + virtual void onTouchMoved(axis::Touch* touch, axis::Event* event); /** * @js NA */ - virtual void onTouchEnded(cocos2d::Touch* touch, cocos2d::Event* event); + virtual void onTouchEnded(axis::Touch* touch, axis::Event* event); /** * @js NA */ - virtual void onTouchCancelled(cocos2d::Touch* touch, cocos2d::Event* event); + virtual void onTouchCancelled(axis::Touch* touch, axis::Event* event); /** * @js NA */ - virtual void onTouchesBegan(const std::vector& touches, cocos2d::Event* event); + virtual void onTouchesBegan(const std::vector& touches, axis::Event* event); /** * @js NA */ - virtual void onTouchesMoved(const std::vector& touches, cocos2d::Event* event); + virtual void onTouchesMoved(const std::vector& touches, axis::Event* event); /** * @js NA */ - virtual void onTouchesEnded(const std::vector& touches, cocos2d::Event* event); + virtual void onTouchesEnded(const std::vector& touches, axis::Event* event); /** * @js NA */ - virtual void onTouchesCancelled(const std::vector& touches, cocos2d::Event* event); + virtual void onTouchesCancelled(const std::vector& touches, axis::Event* event); protected: bool _touchEnabled; - cocos2d::EventListener* _touchListener; + axis::EventListener* _touchListener; bool _accelerometerEnabled; - cocos2d::EventListener* _accelerometerListener; + axis::EventListener* _accelerometerListener; bool _keypadEnabled; - cocos2d::EventListener* _keyboardListener; + axis::EventListener* _keyboardListener; private: int _touchPriority; - cocos2d::Touch::DispatchMode _touchMode; + axis::Touch::DispatchMode _touchMode; }; } // namespace cocostudio diff --git a/extensions/cocostudio/CCProcessBase.cpp b/extensions/cocostudio/CCProcessBase.cpp index 0e807e59e3..0214285da8 100644 --- a/extensions/cocostudio/CCProcessBase.cpp +++ b/extensions/cocostudio/CCProcessBase.cpp @@ -24,7 +24,7 @@ THE SOFTWARE. #include "CCProcessBase.h" -using namespace cocos2d; +USING_NS_AX; namespace cocostudio { @@ -37,7 +37,7 @@ ProcessBase::ProcessBase(void) , _currentPercent(0.0f) , _rawDuration(0) , _loopType(ANIMATION_LOOP_BACK) - , _tweenEasing(cocos2d::tweenfunc::Linear) + , _tweenEasing(axis::tweenfunc::Linear) , _animationInternal(1 / 60.0f) , _durationTween(0) , _currentFrame(0) @@ -77,7 +77,7 @@ void ProcessBase::play(int durationTo, int /*durationTween*/, int /*loop*/, int * When changing end, m_iTotalFrames will be set to _durationTween */ _nextFrameIndex = durationTo; - _tweenEasing = (cocos2d::tweenfunc::TweenType)tweenEasing; + _tweenEasing = (axis::tweenfunc::TweenType)tweenEasing; } void ProcessBase::update(float dt) diff --git a/extensions/cocostudio/CCProcessBase.h b/extensions/cocostudio/CCProcessBase.h index 614ddde5f8..e8acb45d54 100644 --- a/extensions/cocostudio/CCProcessBase.h +++ b/extensions/cocostudio/CCProcessBase.h @@ -51,7 +51,7 @@ enum AnimationType * @js NA * @lua NA */ -class CCS_DLL ProcessBase : public cocos2d::Ref +class CCS_DLL ProcessBase : public axis::Ref { public: ProcessBase(void); @@ -155,7 +155,7 @@ protected: AnimationType _loopType; //! The tween easing effect - cocos2d::tweenfunc::TweenType _tweenEasing; + axis::tweenfunc::TweenType _tweenEasing; //! The animation update speed float _animationInternal; diff --git a/extensions/cocostudio/CCSGUIReader.cpp b/extensions/cocostudio/CCSGUIReader.cpp index cf39d7eb22..08430ae749 100644 --- a/extensions/cocostudio/CCSGUIReader.cpp +++ b/extensions/cocostudio/CCSGUIReader.cpp @@ -48,8 +48,8 @@ THE SOFTWARE. #include "CocoLoader.h" #include "pugixml/pugixml.hpp" -using namespace cocos2d; -using namespace cocos2d::ui; +USING_NS_AX; +using namespace axis::ui; namespace cocostudio { @@ -139,17 +139,17 @@ int GUIReader::getVersionInteger(const char* str) /************************/ } -void GUIReader::storeFileDesignSize(const char* fileName, const cocos2d::Size& size) +void GUIReader::storeFileDesignSize(const char* fileName, const axis::Size& size) { std::string keyWidth = fileName; keyWidth.append("width"); std::string keyHeight = fileName; keyHeight.append("height"); - _fileDesignSizes[keyWidth] = cocos2d::Value(size.width); - _fileDesignSizes[keyHeight] = cocos2d::Value(size.height); + _fileDesignSizes[keyWidth] = axis::Value(size.width); + _fileDesignSizes[keyHeight] = axis::Value(size.height); } -cocos2d::Size GUIReader::getFileDesignSize(const char* fileName) const +axis::Size GUIReader::getFileDesignSize(const char* fileName) const { std::string keyWidth = fileName; keyWidth.append("width"); @@ -342,7 +342,7 @@ std::string WidgetPropertiesReader::getGUIClassName(std::string_view name) return convertedClassName; } -cocos2d::ui::Widget* WidgetPropertiesReader::createGUI(std::string_view classname) +axis::ui::Widget* WidgetPropertiesReader::createGUI(std::string_view classname) { std::string name = this->getGUIClassName(classname); @@ -462,7 +462,7 @@ std::string WidgetPropertiesReader::getWidgetReaderClassName(std::string_view cl return readerName; } -void WidgetPropertiesReader::setAnchorPointForWidget(cocos2d::ui::Widget* widget, const rapidjson::Value& options) +void WidgetPropertiesReader::setAnchorPointForWidget(axis::ui::Widget* widget, const rapidjson::Value& options) { bool isAnchorPointXExists = DICTOOL->checkObjectExist_json(options, "anchorPointX"); float anchorPointXInFile; @@ -547,7 +547,7 @@ Widget* WidgetPropertiesReader0250::widgetFromJsonDictionary(const rapidjson::Va const rapidjson::Value& uiOptions = DICTOOL->getSubDictionary_json(data, "options"); if (classname && strcmp(classname, "Button") == 0) { - widget = cocos2d::ui::Button::create(); + widget = axis::ui::Button::create(); setPropsForButtonFromJsonDictionary(widget, uiOptions); } else if (classname && strcmp(classname, "CheckBox") == 0) @@ -557,42 +557,42 @@ Widget* WidgetPropertiesReader0250::widgetFromJsonDictionary(const rapidjson::Va } else if (classname && strcmp(classname, "Label") == 0) { - widget = cocos2d::ui::Text::create(); + widget = axis::ui::Text::create(); setPropsForLabelFromJsonDictionary(widget, uiOptions); } else if (classname && strcmp(classname, "LabelAtlas") == 0) { - widget = cocos2d::ui::TextAtlas::create(); + widget = axis::ui::TextAtlas::create(); setPropsForLabelAtlasFromJsonDictionary(widget, uiOptions); } else if (classname && strcmp(classname, "LoadingBar") == 0) { - widget = cocos2d::ui::LoadingBar::create(); + widget = axis::ui::LoadingBar::create(); setPropsForLoadingBarFromJsonDictionary(widget, uiOptions); } else if (classname && strcmp(classname, "ScrollView") == 0) { - widget = cocos2d::ui::ScrollView::create(); + widget = axis::ui::ScrollView::create(); setPropsForScrollViewFromJsonDictionary(widget, uiOptions); } else if (classname && strcmp(classname, "TextArea") == 0) { - widget = cocos2d::ui::Text::create(); + widget = axis::ui::Text::create(); setPropsForLabelFromJsonDictionary(widget, uiOptions); } else if (classname && strcmp(classname, "TextButton") == 0) { - widget = cocos2d::ui::Button::create(); + widget = axis::ui::Button::create(); setPropsForButtonFromJsonDictionary(widget, uiOptions); } else if (classname && strcmp(classname, "TextField") == 0) { - widget = cocos2d::ui::TextField::create(); + widget = axis::ui::TextField::create(); setPropsForTextFieldFromJsonDictionary(widget, uiOptions); } else if (classname && strcmp(classname, "ImageView") == 0) { - widget = cocos2d::ui::ImageView::create(); + widget = axis::ui::ImageView::create(); setPropsForImageViewFromJsonDictionary(widget, uiOptions); } else if (classname && strcmp(classname, "Panel") == 0) @@ -602,17 +602,17 @@ Widget* WidgetPropertiesReader0250::widgetFromJsonDictionary(const rapidjson::Va } else if (classname && strcmp(classname, "Slider") == 0) { - widget = cocos2d::ui::Slider::create(); + widget = axis::ui::Slider::create(); setPropsForSliderFromJsonDictionary(widget, uiOptions); } else if (classname && strcmp(classname, "LabelBMFont") == 0) { - widget = cocos2d::ui::TextBMFont::create(); + widget = axis::ui::TextBMFont::create(); setPropsForLabelBMFontFromJsonDictionary(widget, uiOptions); } else if (classname && strcmp(classname, "DragPanel") == 0) { - widget = cocos2d::ui::ScrollView::create(); + widget = axis::ui::ScrollView::create(); setPropsForScrollViewFromJsonDictionary(widget, uiOptions); } @@ -702,7 +702,7 @@ void WidgetPropertiesReader0250::setColorPropsForWidgetFromJsonDictionary(Widget void WidgetPropertiesReader0250::setPropsForButtonFromJsonDictionary(Widget* widget, const rapidjson::Value& options) { setPropsForWidgetFromJsonDictionary(widget, options); - cocos2d::ui::Button* button = static_cast(widget); + axis::ui::Button* button = static_cast(widget); bool scale9Enable = DICTOOL->getBooleanValue_json(options, "scale9Enable"); button->setScale9Enabled(scale9Enable); @@ -843,7 +843,7 @@ void WidgetPropertiesReader0250::setPropsForCheckBoxFromJsonDictionary(Widget* w void WidgetPropertiesReader0250::setPropsForImageViewFromJsonDictionary(Widget* widget, const rapidjson::Value& options) { setPropsForWidgetFromJsonDictionary(widget, options); - cocos2d::ui::ImageView* imageView = static_cast(widget); + axis::ui::ImageView* imageView = static_cast(widget); const char* imageFileName = DICTOOL->getStringValue_json(options, "fileName"); bool scale9EnableExist = DICTOOL->checkObjectExist_json(options, "scale9Enable"); bool scale9Enable = false; @@ -904,7 +904,7 @@ void WidgetPropertiesReader0250::setPropsForImageViewFromJsonDictionary(Widget* void WidgetPropertiesReader0250::setPropsForLabelFromJsonDictionary(Widget* widget, const rapidjson::Value& options) { setPropsForWidgetFromJsonDictionary(widget, options); - cocos2d::ui::Text* label = static_cast(widget); + axis::ui::Text* label = static_cast(widget); bool touchScaleChangeAble = DICTOOL->getBooleanValue_json(options, "touchScaleEnable"); label->setTouchScaleChangeEnabled(touchScaleChangeAble); const char* text = DICTOOL->getStringValue_json(options, "text"); @@ -948,7 +948,7 @@ void WidgetPropertiesReader0250::setPropsForLabelAtlasFromJsonDictionary(Widget* const rapidjson::Value& options) { setPropsForWidgetFromJsonDictionary(widget, options); - cocos2d::ui::TextAtlas* labelAtlas = static_cast(widget); + axis::ui::TextAtlas* labelAtlas = static_cast(widget); bool sv = DICTOOL->checkObjectExist_json(options, "stringValue"); bool cmf = DICTOOL->checkObjectExist_json(options, "charMapFile"); bool iw = DICTOOL->checkObjectExist_json(options, "itemWidth"); @@ -976,8 +976,8 @@ void WidgetPropertiesReader0250::setPropsForLayoutFromJsonDictionary(Widget* wid { setPropsForWidgetFromJsonDictionary(widget, options); Layout* containerWidget = static_cast(widget); - if (!dynamic_cast(containerWidget) && - !dynamic_cast(containerWidget)) + if (!dynamic_cast(containerWidget) && + !dynamic_cast(containerWidget)) { containerWidget->setClippingEnabled(DICTOOL->getBooleanValue_json(options, "clipAble")); } @@ -1048,7 +1048,7 @@ void WidgetPropertiesReader0250::setPropsForScrollViewFromJsonDictionary(Widget* const rapidjson::Value& options) { setPropsForLayoutFromJsonDictionary(widget, options); - cocos2d::ui::ScrollView* scrollView = static_cast(widget); + axis::ui::ScrollView* scrollView = static_cast(widget); float innerWidth = DICTOOL->getFloatValue_json(options, "innerWidth"); float innerHeight = DICTOOL->getFloatValue_json(options, "innerHeight"); scrollView->setInnerContainerSize(Size(innerWidth, innerHeight)); @@ -1061,7 +1061,7 @@ void WidgetPropertiesReader0250::setPropsForScrollViewFromJsonDictionary(Widget* void WidgetPropertiesReader0250::setPropsForSliderFromJsonDictionary(Widget* widget, const rapidjson::Value& options) { setPropsForWidgetFromJsonDictionary(widget, options); - cocos2d::ui::Slider* slider = static_cast(widget); + axis::ui::Slider* slider = static_cast(widget); bool barTextureScale9Enable = DICTOOL->getBooleanValue_json(options, "barTextureScale9Enable"); slider->setScale9Enabled(barTextureScale9Enable); @@ -1144,7 +1144,7 @@ void WidgetPropertiesReader0250::setPropsForSliderFromJsonDictionary(Widget* wid void WidgetPropertiesReader0250::setPropsForTextFieldFromJsonDictionary(Widget* widget, const rapidjson::Value& options) { setPropsForWidgetFromJsonDictionary(widget, options); - cocos2d::ui::TextField* textField = static_cast(widget); + axis::ui::TextField* textField = static_cast(widget); bool ph = DICTOOL->checkObjectExist_json(options, "placeHolder"); if (ph) { @@ -1200,7 +1200,7 @@ void WidgetPropertiesReader0250::setPropsForLoadingBarFromJsonDictionary(Widget* const rapidjson::Value& options) { setPropsForWidgetFromJsonDictionary(widget, options); - cocos2d::ui::LoadingBar* loadingBar = static_cast(widget); + axis::ui::LoadingBar* loadingBar = static_cast(widget); bool useMergedTexture = DICTOOL->getBooleanValue_json(options, "useMergedTexture"); std::string tp_b = m_strFilePath; const char* imageFileName = DICTOOL->getStringValue_json(options, "texture"); @@ -1225,7 +1225,7 @@ void WidgetPropertiesReader0250::setPropsForLabelBMFontFromJsonDictionary(Widget setPropsForWidgetFromJsonDictionary(widget, options); - cocos2d::ui::TextBMFont* labelBMFont = static_cast(widget); + axis::ui::TextBMFont* labelBMFont = static_cast(widget); std::string tp_c = m_strFilePath; const char* cmft = DICTOOL->getStringValue_json(options, "fileName"); @@ -1245,7 +1245,7 @@ void WidgetPropertiesReader0250::setPropsForAllWidgetFromJsonDictionary(WidgetRe {} void WidgetPropertiesReader0250::setPropsForAllCustomWidgetFromJsonDictionary(std::string_view /*classType*/, - cocos2d::ui::Widget* /*widget*/, + axis::ui::Widget* /*widget*/, const rapidjson::Value& /*customOptions*/) {} @@ -1262,7 +1262,7 @@ Widget* WidgetPropertiesReader0250::widgetFromBinary(CocoLoader* /*cocoLoader*/, } void WidgetPropertiesReader0250::setPropsForAllWidgetFromBinary(WidgetReaderProtocol* /*reader*/, - cocos2d::ui::Widget* /*widget*/, + axis::ui::Widget* /*widget*/, CocoLoader* /*cocoLoader*/, stExpCocoNode* /*pCocoNode*/) {} @@ -1317,7 +1317,7 @@ Widget* WidgetPropertiesReader0300::createWidget(const rapidjson::Value& data, return widget; } -cocos2d::ui::Widget* WidgetPropertiesReader0300::createWidgetFromBinary(CocoLoader* cocoLoader, +axis::ui::Widget* WidgetPropertiesReader0300::createWidgetFromBinary(CocoLoader* cocoLoader, stExpCocoNode* cocoNode, const char* fileName) { @@ -1539,7 +1539,7 @@ Widget* WidgetPropertiesReader0300::widgetFromBinary(CocoLoader* cocoLoader, stE } void WidgetPropertiesReader0300::setPropsForAllWidgetFromBinary(WidgetReaderProtocol* reader, - cocos2d::ui::Widget* widget, + axis::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* cocoNode) { @@ -1547,7 +1547,7 @@ void WidgetPropertiesReader0300::setPropsForAllWidgetFromBinary(WidgetReaderProt } void WidgetPropertiesReader0300::setPropsForAllCustomWidgetFromBinary(std::string_view /*classType*/, - cocos2d::ui::Widget* /*widget*/, + axis::ui::Widget* /*widget*/, CocoLoader* /*cocoLoader*/, stExpCocoNode* /*pCocoNode*/) { @@ -1599,7 +1599,7 @@ Widget* WidgetPropertiesReader0300::widgetFromJsonDictionary(const rapidjson::Va for (int i = 0; i < childrenCount; i++) { const rapidjson::Value& subData = DICTOOL->getDictionaryFromArray_json(data, "children", i); - cocos2d::ui::Widget* child = widgetFromJsonDictionary(subData); + axis::ui::Widget* child = widgetFromJsonDictionary(subData); if (child) { PageView* pageView = dynamic_cast(widget); @@ -1642,7 +1642,7 @@ void WidgetPropertiesReader0300::setPropsForAllWidgetFromJsonDictionary(WidgetRe } void WidgetPropertiesReader0300::setPropsForAllCustomWidgetFromJsonDictionary(std::string_view classType, - cocos2d::ui::Widget* widget, + axis::ui::Widget* widget, const rapidjson::Value& customOptions) { GUIReader* guiReader = GUIReader::getInstance(); diff --git a/extensions/cocostudio/CCSGUIReader.h b/extensions/cocostudio/CCSGUIReader.h index ad5ebcc2d4..aa2d9a80e8 100644 --- a/extensions/cocostudio/CCSGUIReader.h +++ b/extensions/cocostudio/CCSGUIReader.h @@ -50,10 +50,10 @@ struct stExpCocoNode; #define kCCSVersion 1.0 -typedef void (cocos2d::Ref::*SEL_ParseEvent)(std::string_view, cocos2d::Ref*, const rapidjson::Value&); +typedef void (axis::Ref::*SEL_ParseEvent)(std::string_view, axis::Ref*, const rapidjson::Value&); #define parseselector(_SELECTOR) (SEL_ParseEvent)(&_SELECTOR) -class CCS_DLL GUIReader : public cocos2d::Ref +class CCS_DLL GUIReader : public axis::Ref { public: CC_DEPRECATED_ATTRIBUTE static GUIReader* shareReader() { return GUIReader::getInstance(); }; @@ -62,30 +62,30 @@ public: static GUIReader* getInstance(); static void destroyInstance(); - cocos2d::ui::Widget* widgetFromJsonFile(const char* fileName); + axis::ui::Widget* widgetFromJsonFile(const char* fileName); - cocos2d::ui::Widget* widgetFromBinaryFile(const char* fileName); + axis::ui::Widget* widgetFromBinaryFile(const char* fileName); int getVersionInteger(const char* str); /** * @js NA */ - void storeFileDesignSize(const char* fileName, const cocos2d::Size& size); + void storeFileDesignSize(const char* fileName, const axis::Size& size); /** * @js NA */ - cocos2d::Size getFileDesignSize(const char* fileName) const; + axis::Size getFileDesignSize(const char* fileName) const; void setFilePath(std::string_view strFilePath) { m_strFilePath = strFilePath; } std::string_view getFilePath() const { return m_strFilePath; } void registerTypeAndCallBack(std::string_view classType, - cocos2d::ObjectFactory::Instance ins, + axis::ObjectFactory::Instance ins, Ref* object, SEL_ParseEvent callBack); void registerTypeAndCallBack(std::string_view classType, - cocos2d::ObjectFactory::InstanceFunc ins, + axis::ObjectFactory::InstanceFunc ins, Ref* object, SEL_ParseEvent callBack); @@ -94,7 +94,7 @@ protected: ~GUIReader(); std::string m_strFilePath; - cocos2d::ValueMap _fileDesignSizes; + axis::ValueMap _fileDesignSizes; typedef hlookup::string_map ParseCallBackMap; ParseCallBackMap _mapParseSelector; @@ -106,39 +106,39 @@ public: ParseObjectMap* getParseObjectMap() { return &_mapObject; }; }; -class CCS_DLL WidgetPropertiesReader : public cocos2d::Ref +class CCS_DLL WidgetPropertiesReader : public axis::Ref { public: - virtual cocos2d::ui::Widget* createWidget(const rapidjson::Value& dic, + virtual axis::ui::Widget* createWidget(const rapidjson::Value& dic, const char* fullPath, const char* fileName) = 0; - virtual cocos2d::ui::Widget* widgetFromJsonDictionary(const rapidjson::Value& data) = 0; + virtual axis::ui::Widget* widgetFromJsonDictionary(const rapidjson::Value& data) = 0; virtual void setPropsForAllWidgetFromJsonDictionary(WidgetReaderProtocol* reader, - cocos2d::ui::Widget* widget, + axis::ui::Widget* widget, const rapidjson::Value& options) = 0; virtual void setPropsForAllCustomWidgetFromJsonDictionary(std::string_view classType, - cocos2d::ui::Widget* widget, + axis::ui::Widget* widget, const rapidjson::Value& customOptions) = 0; // add binary parsing - virtual cocos2d::ui::Widget* createWidgetFromBinary(CocoLoader* cocoLoader, + virtual axis::ui::Widget* createWidgetFromBinary(CocoLoader* cocoLoader, stExpCocoNode* pCocoNode, const char* fileName) = 0; - virtual cocos2d::ui::Widget* widgetFromBinary(CocoLoader* cocoLoader, stExpCocoNode* pCocoNode) = 0; + virtual axis::ui::Widget* widgetFromBinary(CocoLoader* cocoLoader, stExpCocoNode* pCocoNode) = 0; virtual void setPropsForAllWidgetFromBinary(WidgetReaderProtocol* reader, - cocos2d::ui::Widget* widget, + axis::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode) = 0; protected: - void setAnchorPointForWidget(cocos2d::ui::Widget* widget, const rapidjson::Value& options); + void setAnchorPointForWidget(axis::ui::Widget* widget, const rapidjson::Value& options); std::string getWidgetReaderClassName(std::string_view classname); - std::string getWidgetReaderClassName(cocos2d::ui::Widget* widget); + std::string getWidgetReaderClassName(axis::ui::Widget* widget); std::string getGUIClassName(std::string_view name); - cocos2d::ui::Widget* createGUI(std::string_view classname); + axis::ui::Widget* createGUI(std::string_view classname); WidgetReaderProtocol* createWidgetReaderProtocol(std::string_view classname); protected: @@ -152,45 +152,45 @@ public: WidgetPropertiesReader0250(){}; virtual ~WidgetPropertiesReader0250(){}; - virtual cocos2d::ui::Widget* createWidget(const rapidjson::Value& dic, + virtual axis::ui::Widget* createWidget(const rapidjson::Value& dic, const char* fullPath, const char* fileName) override; - virtual cocos2d::ui::Widget* widgetFromJsonDictionary(const rapidjson::Value& dic) override; + virtual axis::ui::Widget* widgetFromJsonDictionary(const rapidjson::Value& dic) override; // added for binary parsing - virtual cocos2d::ui::Widget* createWidgetFromBinary(CocoLoader* cocoLoader, + virtual axis::ui::Widget* createWidgetFromBinary(CocoLoader* cocoLoader, stExpCocoNode* pCocoNode, const char* fileName) override; - virtual cocos2d::ui::Widget* widgetFromBinary(CocoLoader* cocoLoader, stExpCocoNode* pCocoNode) override; + virtual axis::ui::Widget* widgetFromBinary(CocoLoader* cocoLoader, stExpCocoNode* pCocoNode) override; virtual void setPropsForAllWidgetFromBinary(WidgetReaderProtocol* reader, - cocos2d::ui::Widget* widget, + axis::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode) override; - virtual void setPropsForWidgetFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options); + virtual void setPropsForWidgetFromJsonDictionary(axis::ui::Widget* widget, const rapidjson::Value& options); - virtual void setColorPropsForWidgetFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options); - virtual void setPropsForButtonFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options); - virtual void setPropsForCheckBoxFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options); - virtual void setPropsForImageViewFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options); - virtual void setPropsForLabelFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options); - virtual void setPropsForLabelAtlasFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options); - virtual void setPropsForLabelBMFontFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options); - virtual void setPropsForLoadingBarFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options); - virtual void setPropsForSliderFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options); - virtual void setPropsForTextFieldFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options); + virtual void setColorPropsForWidgetFromJsonDictionary(axis::ui::Widget* widget, const rapidjson::Value& options); + virtual void setPropsForButtonFromJsonDictionary(axis::ui::Widget* widget, const rapidjson::Value& options); + virtual void setPropsForCheckBoxFromJsonDictionary(axis::ui::Widget* widget, const rapidjson::Value& options); + virtual void setPropsForImageViewFromJsonDictionary(axis::ui::Widget* widget, const rapidjson::Value& options); + virtual void setPropsForLabelFromJsonDictionary(axis::ui::Widget* widget, const rapidjson::Value& options); + virtual void setPropsForLabelAtlasFromJsonDictionary(axis::ui::Widget* widget, const rapidjson::Value& options); + virtual void setPropsForLabelBMFontFromJsonDictionary(axis::ui::Widget* widget, const rapidjson::Value& options); + virtual void setPropsForLoadingBarFromJsonDictionary(axis::ui::Widget* widget, const rapidjson::Value& options); + virtual void setPropsForSliderFromJsonDictionary(axis::ui::Widget* widget, const rapidjson::Value& options); + virtual void setPropsForTextFieldFromJsonDictionary(axis::ui::Widget* widget, const rapidjson::Value& options); - virtual void setPropsForLayoutFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options); - virtual void setPropsForScrollViewFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options); + virtual void setPropsForLayoutFromJsonDictionary(axis::ui::Widget* widget, const rapidjson::Value& options); + virtual void setPropsForScrollViewFromJsonDictionary(axis::ui::Widget* widget, const rapidjson::Value& options); virtual void setPropsForAllWidgetFromJsonDictionary(WidgetReaderProtocol* reader, - cocos2d::ui::Widget* widget, + axis::ui::Widget* widget, const rapidjson::Value& options) override; virtual void setPropsForAllCustomWidgetFromJsonDictionary(std::string_view classType, - cocos2d::ui::Widget* widget, + axis::ui::Widget* widget, const rapidjson::Value& customOptions) override; }; @@ -201,35 +201,35 @@ public: WidgetPropertiesReader0300(){}; virtual ~WidgetPropertiesReader0300(){}; - virtual cocos2d::ui::Widget* createWidget(const rapidjson::Value& dic, + virtual axis::ui::Widget* createWidget(const rapidjson::Value& dic, const char* fullPath, const char* fileName) override; // add bin parse support - virtual cocos2d::ui::Widget* createWidgetFromBinary(CocoLoader* cocoLoader, + virtual axis::ui::Widget* createWidgetFromBinary(CocoLoader* cocoLoader, stExpCocoNode* pCocoNode, const char* fileName) override; - virtual cocos2d::ui::Widget* widgetFromBinary(CocoLoader* cocoLoader, stExpCocoNode* pCocoNode) override; + virtual axis::ui::Widget* widgetFromBinary(CocoLoader* cocoLoader, stExpCocoNode* pCocoNode) override; virtual void setPropsForAllWidgetFromBinary(WidgetReaderProtocol* reader, - cocos2d::ui::Widget* widget, + axis::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode) override; virtual void setPropsForAllCustomWidgetFromBinary(std::string_view classType, - cocos2d::ui::Widget* widget, + axis::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode); - virtual cocos2d::ui::Widget* widgetFromJsonDictionary(const rapidjson::Value& dic) override; + virtual axis::ui::Widget* widgetFromJsonDictionary(const rapidjson::Value& dic) override; virtual void setPropsForAllWidgetFromJsonDictionary(WidgetReaderProtocol* reader, - cocos2d::ui::Widget* widget, + axis::ui::Widget* widget, const rapidjson::Value& options) override; virtual void setPropsForAllCustomWidgetFromJsonDictionary(std::string_view classType, - cocos2d::ui::Widget* widget, + axis::ui::Widget* widget, const rapidjson::Value& customOptions) override; }; diff --git a/extensions/cocostudio/CCSSceneReader.cpp b/extensions/cocostudio/CCSSceneReader.cpp index e6cead3db2..2b9dbf559b 100644 --- a/extensions/cocostudio/CCSSceneReader.cpp +++ b/extensions/cocostudio/CCSSceneReader.cpp @@ -29,7 +29,7 @@ THE SOFTWARE. #include "base/ccUtils.h" #include "platform/CCFileUtils.h" -using namespace cocos2d; +USING_NS_AX; using namespace ui; namespace cocostudio @@ -52,11 +52,11 @@ const char* SceneReader::sceneReaderVersion() return "1.0.0.0"; } -cocos2d::Node* SceneReader::createNodeWithSceneFile( +axis::Node* SceneReader::createNodeWithSceneFile( std::string_view fileName, AttachComponentType attachComponent /*= AttachComponentType::EMPTY_NODE*/) { - std::string fileExtension = cocos2d::FileUtils::getInstance()->getFileExtension(fileName); + std::string fileExtension = axis::FileUtils::getInstance()->getFileExtension(fileName); if (fileExtension == ".json") { _node = nullptr; @@ -209,7 +209,7 @@ Node* SceneReader::nodeByTag(Node* parent, int tag) return _retNode; } -cocos2d::Component* SceneReader::createComponent(std::string_view classname) +axis::Component* SceneReader::createComponent(std::string_view classname) { std::string name = this->getComponentClassName(classname); Ref* object = ObjectFactory::getInstance()->createObject(name); @@ -249,7 +249,7 @@ std::string SceneReader::getComponentClassName(std::string_view name) } Node* SceneReader::createObject(const rapidjson::Value& dict, - cocos2d::Node* parent, + axis::Node* parent, AttachComponentType attachComponent) { const char* className = DICTOOL->getStringValue_json(dict, "classname"); @@ -352,9 +352,9 @@ Node* SceneReader::createObject(const rapidjson::Value& dict, return nullptr; } -cocos2d::Node* SceneReader::createObject(CocoLoader* cocoLoader, +axis::Node* SceneReader::createObject(CocoLoader* cocoLoader, stExpCocoNode* cocoNode, - cocos2d::Node* parent, + axis::Node* parent, AttachComponentType attachComponent) { stExpCocoNode* pNodeArray = cocoNode->GetChildArray(cocoLoader); @@ -455,7 +455,7 @@ cocos2d::Node* SceneReader::createObject(CocoLoader* cocoLoader, return nullptr; } -void SceneReader::setTarget(const std::function& selector) +void SceneReader::setTarget(const std::function& selector) { _fnSelector = selector; } @@ -473,7 +473,7 @@ Node* SceneReader::getNodeByTag(int nTag) return nodeByTag(_node, nTag); } -void SceneReader::setPropertyFromJsonDict(const rapidjson::Value& root, cocos2d::Node* node) +void SceneReader::setPropertyFromJsonDict(const rapidjson::Value& root, axis::Node* node) { float x = DICTOOL->getFloatValue_json(root, "x"); float y = DICTOOL->getFloatValue_json(root, "y"); @@ -500,7 +500,7 @@ void SceneReader::setPropertyFromJsonDict(const rapidjson::Value& root, cocos2d: node->setName(sName); } -void SceneReader::setPropertyFromJsonDict(CocoLoader* cocoLoader, stExpCocoNode* cocoNode, cocos2d::Node* node) +void SceneReader::setPropertyFromJsonDict(CocoLoader* cocoLoader, stExpCocoNode* cocoNode, axis::Node* node) { stExpCocoNode* stChildArray = cocoNode->GetChildArray(cocoLoader); diff --git a/extensions/cocostudio/CCSSceneReader.h b/extensions/cocostudio/CCSSceneReader.h index ad25e7dddf..ac2da39a46 100644 --- a/extensions/cocostudio/CCSSceneReader.h +++ b/extensions/cocostudio/CCSSceneReader.h @@ -61,10 +61,10 @@ public: */ static void destroyInstance(); static const char* sceneReaderVersion(); - cocos2d::Node* createNodeWithSceneFile(std::string_view fileName, + axis::Node* createNodeWithSceneFile(std::string_view fileName, AttachComponentType attachComponent = AttachComponentType::EMPTY_NODE); - void setTarget(const std::function& selector); - cocos2d::Node* getNodeByTag(int nTag); + void setTarget(const std::function& selector); + axis::Node* getNodeByTag(int nTag); inline AttachComponentType getAttachComponentType() { return _attachComponent; } SceneReader(); virtual ~SceneReader(); @@ -72,26 +72,26 @@ public: private: std::string getComponentClassName(std::string_view name); - cocos2d::Component* createComponent(std::string_view classname); + axis::Component* createComponent(std::string_view classname); - cocos2d::Node* createObject(const rapidjson::Value& dict, - cocos2d::Node* parent, + axis::Node* createObject(const rapidjson::Value& dict, + axis::Node* parent, AttachComponentType attachComponent); - void setPropertyFromJsonDict(const rapidjson::Value& dict, cocos2d::Node* node); + void setPropertyFromJsonDict(const rapidjson::Value& dict, axis::Node* node); bool readJson(std::string_view fileName, rapidjson::Document& doc); - cocos2d::Node* createObject(CocoLoader* cocoLoader, + axis::Node* createObject(CocoLoader* cocoLoader, stExpCocoNode* cocoNode, - cocos2d::Node* parent, + axis::Node* parent, AttachComponentType attachComponent); - void setPropertyFromJsonDict(CocoLoader* cocoLoader, stExpCocoNode* cocoNode, cocos2d::Node* node); + void setPropertyFromJsonDict(CocoLoader* cocoLoader, stExpCocoNode* cocoNode, axis::Node* node); - cocos2d::Node* nodeByTag(cocos2d::Node* parent, int tag); + axis::Node* nodeByTag(axis::Node* parent, int tag); private: static SceneReader* s_sharedReader; - std::function _fnSelector; - cocos2d::Node* _node; + std::function _fnSelector; + axis::Node* _node; AttachComponentType _attachComponent; }; diff --git a/extensions/cocostudio/CCSkin.cpp b/extensions/cocostudio/CCSkin.cpp index f5b18996d4..0684ee742b 100644 --- a/extensions/cocostudio/CCSkin.cpp +++ b/extensions/cocostudio/CCSkin.cpp @@ -32,7 +32,7 @@ THE SOFTWARE. #include "CCTransformHelp.h" #include "CCArmature.h" -using namespace cocos2d; +USING_NS_AX; namespace cocostudio { diff --git a/extensions/cocostudio/CCSkin.h b/extensions/cocostudio/CCSkin.h index 7defe27235..372363c7a0 100644 --- a/extensions/cocostudio/CCSkin.h +++ b/extensions/cocostudio/CCSkin.h @@ -35,7 +35,7 @@ THE SOFTWARE. namespace cocostudio { -class CCS_DLL Skin : public cocos2d::Sprite +class CCS_DLL Skin : public axis::Sprite { public: static Skin* create(); @@ -54,10 +54,10 @@ public: void updateArmatureTransform(); void updateTransform() override; - cocos2d::Mat4 getNodeToWorldTransform() const override; - cocos2d::Mat4 getNodeToWorldTransformAR() const; + axis::Mat4 getNodeToWorldTransform() const override; + axis::Mat4 getNodeToWorldTransformAR() const; - virtual void draw(cocos2d::Renderer* renderer, const cocos2d::Mat4& transform, uint32_t flags) override; + virtual void draw(axis::Renderer* renderer, const axis::Mat4& transform, uint32_t flags) override; /** * @js NA @@ -79,9 +79,9 @@ protected: BaseData _skinData; Bone* _bone; Armature* _armature; - cocos2d::Mat4 _skinTransform; + axis::Mat4 _skinTransform; std::string _displayName; - cocos2d::QuadCommand _quadCommand; // quad command + axis::QuadCommand _quadCommand; // quad command }; } // namespace cocostudio diff --git a/extensions/cocostudio/CCSpriteFrameCacheHelper.cpp b/extensions/cocostudio/CCSpriteFrameCacheHelper.cpp index d80de7129e..b6d58592a5 100644 --- a/extensions/cocostudio/CCSpriteFrameCacheHelper.cpp +++ b/extensions/cocostudio/CCSpriteFrameCacheHelper.cpp @@ -27,7 +27,7 @@ THE SOFTWARE. #include "2d/CCSpriteFrame.h" #include "2d/CCSpriteFrameCache.h" -using namespace cocos2d; +USING_NS_AX; namespace cocostudio { diff --git a/extensions/cocostudio/CCSpriteFrameCacheHelper.h b/extensions/cocostudio/CCSpriteFrameCacheHelper.h index 3a8068eb45..889bb43508 100644 --- a/extensions/cocostudio/CCSpriteFrameCacheHelper.h +++ b/extensions/cocostudio/CCSpriteFrameCacheHelper.h @@ -31,10 +31,9 @@ THE SOFTWARE. #include #include -namespace cocos2d -{ +NS_AX_BEGIN class SpriteFrame; -} +NS_AX_END namespace cocostudio { @@ -70,7 +69,7 @@ private: SpriteFrameCacheHelper(); ~SpriteFrameCacheHelper(); - hlookup::string_map> _usingSpriteFrames; + hlookup::string_map> _usingSpriteFrames; static SpriteFrameCacheHelper* _spriteFrameCacheHelper; }; diff --git a/extensions/cocostudio/CCTransformHelp.cpp b/extensions/cocostudio/CCTransformHelp.cpp index c01b6dc3e7..a58d4b91b5 100644 --- a/extensions/cocostudio/CCTransformHelp.cpp +++ b/extensions/cocostudio/CCTransformHelp.cpp @@ -24,7 +24,7 @@ THE SOFTWARE. #include "CCTransformHelp.h" -using namespace cocos2d; +USING_NS_AX; namespace cocostudio { diff --git a/extensions/cocostudio/CCTransformHelp.h b/extensions/cocostudio/CCTransformHelp.h index 6d5a19da7c..126af9174d 100644 --- a/extensions/cocostudio/CCTransformHelp.h +++ b/extensions/cocostudio/CCTransformHelp.h @@ -48,20 +48,20 @@ public: static void transformFromParentWithoutScale(BaseData& node, const BaseData& parentNode); static void transformToParentWithoutScale(BaseData& node, const BaseData& parentNode); - static void nodeToMatrix(const BaseData& _node, cocos2d::AffineTransform& _matrix); - static void nodeToMatrix(const BaseData& node, cocos2d::Mat4& matrix); - static void matrixToNode(const cocos2d::AffineTransform& _matrix, BaseData& _node); - static void matrixToNode(const cocos2d::Mat4& _matrix, BaseData& _node); + static void nodeToMatrix(const BaseData& _node, axis::AffineTransform& _matrix); + static void nodeToMatrix(const BaseData& node, axis::Mat4& matrix); + static void matrixToNode(const axis::AffineTransform& _matrix, BaseData& _node); + static void matrixToNode(const axis::Mat4& _matrix, BaseData& _node); static void nodeConcat(BaseData& target, BaseData& source); static void nodeSub(BaseData& target, BaseData& source); public: - static cocos2d::AffineTransform helpMatrix1; - static cocos2d::AffineTransform helpMatrix2; + static axis::AffineTransform helpMatrix1; + static axis::AffineTransform helpMatrix2; - static cocos2d::Vec2 helpPoint1; - static cocos2d::Vec2 helpPoint2; + static axis::Vec2 helpPoint1; + static axis::Vec2 helpPoint2; }; } // namespace cocostudio diff --git a/extensions/cocostudio/CCTween.cpp b/extensions/cocostudio/CCTween.cpp index 7a8bc4bc04..bb363df941 100644 --- a/extensions/cocostudio/CCTween.cpp +++ b/extensions/cocostudio/CCTween.cpp @@ -31,7 +31,7 @@ THE SOFTWARE. namespace cocostudio { -using cocos2d::tweenfunc::Linear; +using axis::tweenfunc::Linear; Tween* Tween::create(Bone* bone) { @@ -270,7 +270,7 @@ void Tween::updateHandler() percent = updateFrameData(percent); } - if (_frameTweenEasing != ::cocos2d::tweenfunc::TWEEN_EASING_MAX) + if (_frameTweenEasing != ::axis::tweenfunc::TWEEN_EASING_MAX) { tweenNodeTo(percent); } @@ -391,7 +391,7 @@ float Tween::updateFrameData(float currentPercent) * _toIndex is next index will play */ long length = _movementBoneData->frameList.size(); - cocos2d::Vector& frames = _movementBoneData->frameList; + axis::Vector& frames = _movementBoneData->frameList; FrameData* from = nullptr; FrameData* to = nullptr; @@ -457,9 +457,9 @@ float Tween::updateFrameData(float currentPercent) * If frame tween easing equal to TWEEN_EASING_MAX, then it will not do tween. */ TweenType tweenType = (_frameTweenEasing != Linear) ? _frameTweenEasing : _tweenEasing; - if (tweenType != cocos2d::tweenfunc::TWEEN_EASING_MAX && tweenType != Linear && !_passLastFrame) + if (tweenType != axis::tweenfunc::TWEEN_EASING_MAX && tweenType != Linear && !_passLastFrame) { - currentPercent = cocos2d::tweenfunc::tweenTo(currentPercent, tweenType, _from->easingParams); + currentPercent = axis::tweenfunc::tweenTo(currentPercent, tweenType, _from->easingParams); } return currentPercent; diff --git a/extensions/cocostudio/CCTween.h b/extensions/cocostudio/CCTween.h index 48ce74a696..a9e8e4bf8e 100644 --- a/extensions/cocostudio/CCTween.h +++ b/extensions/cocostudio/CCTween.h @@ -34,7 +34,7 @@ namespace cocostudio class Bone; class ArmatureAnimation; -using cocos2d::tweenfunc::TweenType; +using axis::tweenfunc::TweenType; /** * @js NA diff --git a/extensions/cocostudio/CocoStudio.cpp b/extensions/cocostudio/CocoStudio.cpp index f893f5cee6..5e75d14a5f 100644 --- a/extensions/cocostudio/CocoStudio.cpp +++ b/extensions/cocostudio/CocoStudio.cpp @@ -61,7 +61,7 @@ void destroyCocosStudio() UserCameraReader::destroyInstance(); Particle3DReader::destroyInstance(); - cocos2d::CSLoader::destroyInstance(); + axis::CSLoader::destroyInstance(); ArmatureDataManager::destroyInstance(); SceneReader::destroyInstance(); diff --git a/extensions/cocostudio/CocosStudioExport.h b/extensions/cocostudio/CocosStudioExport.h index dcc448bf40..c5612b730e 100644 --- a/extensions/cocostudio/CocosStudioExport.h +++ b/extensions/cocostudio/CocosStudioExport.h @@ -32,5 +32,6 @@ #endif #include "base/hlookup.h" +#include "platform/CCPlatformMacros.h" #endif /* __CCEXTENSIONEXPORT_H__*/ \ No newline at end of file diff --git a/extensions/cocostudio/CocosStudioExtension.cpp b/extensions/cocostudio/CocosStudioExtension.cpp index f79b1b17ab..a2745229e5 100644 --- a/extensions/cocostudio/CocosStudioExtension.cpp +++ b/extensions/cocostudio/CocosStudioExtension.cpp @@ -1,9 +1,9 @@ #include "CocosStudioExtension.h" -NS_CC_BEGIN +NS_AX_BEGIN NodeExtension::NodeExtension() {} NodeExtension::~NodeExtension() {} -NS_CC_END \ No newline at end of file +NS_AX_END \ No newline at end of file diff --git a/extensions/cocostudio/CocosStudioExtension.h b/extensions/cocostudio/CocosStudioExtension.h index e95562b190..6208b3bd8c 100644 --- a/extensions/cocostudio/CocosStudioExtension.h +++ b/extensions/cocostudio/CocosStudioExtension.h @@ -5,7 +5,7 @@ #include "math/CCAffineTransform.h" #include "CocosStudioExport.h" -NS_CC_BEGIN +NS_AX_BEGIN class CCS_DLL NodeExtension { @@ -16,6 +16,6 @@ public: private: }; -NS_CC_END +NS_AX_END #endif \ No newline at end of file diff --git a/extensions/cocostudio/FlatBuffersSerialize.cpp b/extensions/cocostudio/FlatBuffersSerialize.cpp index d3862e3d8f..0e16ceacda 100644 --- a/extensions/cocostudio/FlatBuffersSerialize.cpp +++ b/extensions/cocostudio/FlatBuffersSerialize.cpp @@ -62,8 +62,8 @@ #include "flatbuffers/flatbuffers.h" -USING_NS_CC; -using namespace cocos2d::ui; +USING_NS_AX; +using namespace axis::ui; using namespace cocostudio; using namespace cocostudio::timeline; using namespace flatbuffers; diff --git a/extensions/cocostudio/FlatBuffersSerialize.h b/extensions/cocostudio/FlatBuffersSerialize.h index d41c3d5b50..fca7ced434 100644 --- a/extensions/cocostudio/FlatBuffersSerialize.h +++ b/extensions/cocostudio/FlatBuffersSerialize.h @@ -138,7 +138,7 @@ public: int getResourceType(std::string_view key); std::string getGUIClassName(std::string_view name); - std::string getWidgetReaderClassName(cocos2d::ui::Widget* widget); + std::string getWidgetReaderClassName(axis::ui::Widget* widget); /* create flat buffers with XML */ flatbuffers::FlatBufferBuilder* createFlatBuffersWithXMLFileForSimulator(std::string_view xmlFileName); diff --git a/extensions/cocostudio/LocalizationManager.cpp b/extensions/cocostudio/LocalizationManager.cpp index 85b8d5889a..7352bf60ce 100644 --- a/extensions/cocostudio/LocalizationManager.cpp +++ b/extensions/cocostudio/LocalizationManager.cpp @@ -4,7 +4,7 @@ #include "CSLanguageDataBinary_generated.h" using namespace cocostudio; -using namespace cocos2d; +USING_NS_AX; static JsonLocalizationManager* _sharedJsonLocalizationManager = nullptr; diff --git a/extensions/cocostudio/SpineSkeletonDataCache.cpp b/extensions/cocostudio/SpineSkeletonDataCache.cpp index 671b7f0f0c..029c1f0718 100644 --- a/extensions/cocostudio/SpineSkeletonDataCache.cpp +++ b/extensions/cocostudio/SpineSkeletonDataCache.cpp @@ -9,7 +9,7 @@ SpineSkeletonDataCache* SpineSkeletonDataCache::getInstance() SpineSkeletonDataCache::SpineSkeletonDataCache() { - _reportError = &cocos2d::log; + _reportError = &axis::log; } void SpineSkeletonDataCache::setErrorReportFunc(void (*errorfunc)(const char* pszFormat, ...)) @@ -41,7 +41,7 @@ SpineSkeletonDataCache::SkeletonData* SpineSkeletonDataCache::addData(const char spine::AttachmentLoader* loader = nullptr; bool ok = false; - auto fileExtension = cocos2d::FileUtils::getInstance()->getFileExtension(dataFile); + auto fileExtension = axis::FileUtils::getInstance()->getFileExtension(dataFile); static spine::Cocos2dTextureLoader s_textureLoader; @@ -142,7 +142,7 @@ SpineSkeletonDataCache* SpineSkeletonDataCache::getInstance() SpineSkeletonDataCache::SpineSkeletonDataCache() { - _reportError = &cocos2d::log; + _reportError = &axis::log; } void SpineSkeletonDataCache::setErrorReportFunc(void (*errorfunc)(const char* pszFormat, ...)) @@ -174,7 +174,7 @@ SpineSkeletonDataCache::SkeletonData* SpineSkeletonDataCache::addData(const char spAttachmentLoader* loader = nullptr; bool ok = false; - auto fileExtension = cocos2d::FileUtils::getInstance()->getFileExtension(dataFile); + auto fileExtension = axis::FileUtils::getInstance()->getFileExtension(dataFile); do { diff --git a/extensions/cocostudio/SpineSkeletonDataCache.h b/extensions/cocostudio/SpineSkeletonDataCache.h index 51a3e1de4a..6557a4fca4 100644 --- a/extensions/cocostudio/SpineSkeletonDataCache.h +++ b/extensions/cocostudio/SpineSkeletonDataCache.h @@ -10,7 +10,7 @@ class CCS_DLL SpineSkeletonDataCache { public: - class SkeletonData : public cocos2d::Ref + class SkeletonData : public axis::Ref { public: SkeletonData(spine::SkeletonData* d, spine::AttachmentLoader* loader) : data(d), attachmentLoader(loader) {} @@ -47,7 +47,7 @@ public: class SpineSkeletonDataCache { public: - class SkeletonData : public cocos2d::Ref + class SkeletonData : public axis::Ref { public: SkeletonData(spSkeletonData* d, spAttachmentLoader* loader) : data(d), attachmentLoader(loader) {} diff --git a/extensions/cocostudio/TriggerBase.cpp b/extensions/cocostudio/TriggerBase.cpp index d6b141533a..9af9aeb6e9 100644 --- a/extensions/cocostudio/TriggerBase.cpp +++ b/extensions/cocostudio/TriggerBase.cpp @@ -26,7 +26,7 @@ THE SOFTWARE. #include "TriggerBase.h" #include "base/CCEventCustom.h" -using namespace cocos2d; +USING_NS_AX; using namespace cocostudio; void sendEvent(unsigned int event) diff --git a/extensions/cocostudio/TriggerBase.h b/extensions/cocostudio/TriggerBase.h index daa3d5cc18..a9a5dfc7cf 100644 --- a/extensions/cocostudio/TriggerBase.h +++ b/extensions/cocostudio/TriggerBase.h @@ -33,17 +33,17 @@ THE SOFTWARE. #define DECLARE_CLASS_INFO \ public: \ - static cocos2d::ObjectFactory::TInfo Type; \ - static cocos2d::Ref* createInstance(void); + static axis::ObjectFactory::TInfo Type; \ + static axis::Ref* createInstance(void); #define IMPLEMENT_CLASS_INFO(className) \ - cocos2d::Ref* className::createInstance(void) \ + axis::Ref* className::createInstance(void) \ { \ auto ret = new className; \ ret->autorelease(); \ return ret; \ } \ - cocos2d::ObjectFactory::TInfo className::Type(#className, &className::createInstance); + axis::ObjectFactory::TInfo className::Type(#className, &className::createInstance); void CCS_DLL sendEvent(unsigned int event); diff --git a/extensions/cocostudio/TriggerMng.cpp b/extensions/cocostudio/TriggerMng.cpp index 8a50c7fc09..99a4cf0d84 100644 --- a/extensions/cocostudio/TriggerMng.cpp +++ b/extensions/cocostudio/TriggerMng.cpp @@ -30,7 +30,7 @@ THE SOFTWARE. #include "base/ccUtils.h" #include "base/CCEventCustom.h" -using namespace cocos2d; +USING_NS_AX; namespace cocostudio { @@ -477,17 +477,17 @@ void TriggerMng::removeAllArmatureMovementCallBack() _movementDispatches->clear(); } -void TriggerMng::dispatchEvent(cocos2d::EventCustom* tEvent) +void TriggerMng::dispatchEvent(axis::EventCustom* tEvent) { _eventDispatcher->dispatchEvent(tEvent); } -void TriggerMng::removeEventListener(cocos2d::EventListener* listener) +void TriggerMng::removeEventListener(axis::EventListener* listener) { _eventDispatcher->removeEventListener(listener); } -void TriggerMng::addEventListenerWithFixedPriority(cocos2d::EventListener* listener, int fixedPriority) +void TriggerMng::addEventListenerWithFixedPriority(axis::EventListener* listener, int fixedPriority) { _eventDispatcher->addEventListenerWithFixedPriority(listener, fixedPriority); } diff --git a/extensions/cocostudio/TriggerMng.h b/extensions/cocostudio/TriggerMng.h index 4021bf2dc8..4f960856b6 100644 --- a/extensions/cocostudio/TriggerMng.h +++ b/extensions/cocostudio/TriggerMng.h @@ -26,30 +26,29 @@ THE SOFTWARE. #include "CocoStudio.h" -namespace cocos2d -{ +NS_AX_BEGIN class EventDispatcher; class EventListener; -} // namespace cocos2d +NS_AX_END // namespace axis namespace cocostudio { class TriggerObj; -class CCS_DLL ArmatureMovementDispatcher : public cocos2d::Ref +class CCS_DLL ArmatureMovementDispatcher : public axis::Ref { public: ArmatureMovementDispatcher(void); ~ArmatureMovementDispatcher(void); public: - void addAnimationEventCallBack(cocos2d::Ref* pTarget, SEL_MovementEventCallFunc mecf); - void removeAnnimationEventCallBack(cocos2d::Ref* pTarget, SEL_MovementEventCallFunc mecf); + void addAnimationEventCallBack(axis::Ref* pTarget, SEL_MovementEventCallFunc mecf); + void removeAnnimationEventCallBack(axis::Ref* pTarget, SEL_MovementEventCallFunc mecf); void animationEvent(Armature* armature, MovementEventType movementType, std::string_view movementID); private: - std::unordered_map* _mapEventAnimation; + std::unordered_map* _mapEventAnimation; }; class CCS_DLL TriggerMng @@ -67,19 +66,19 @@ public: void parse(const rapidjson::Value& root); void parse(cocostudio::CocoLoader* pCocoLoader, cocostudio::stExpCocoNode* pCocoNode); void removeAll(void); - cocos2d::Vector* get(unsigned int event) const; + axis::Vector* get(unsigned int event) const; TriggerObj* getTriggerObj(unsigned int id) const; bool removeTriggerObj(TriggerObj* Obj); bool removeTriggerObj(unsigned int id); bool isEmpty(void) const; - void addArmatureMovementCallBack(Armature* pAr, cocos2d::Ref* pTarget, SEL_MovementEventCallFunc mecf); - void removeArmatureMovementCallBack(Armature* pAr, cocos2d::Ref* pTarget, SEL_MovementEventCallFunc mecf); + void addArmatureMovementCallBack(Armature* pAr, axis::Ref* pTarget, SEL_MovementEventCallFunc mecf); + void removeArmatureMovementCallBack(Armature* pAr, axis::Ref* pTarget, SEL_MovementEventCallFunc mecf); void removeArmatureAllMovementCallBack(Armature* pAr); void removeAllArmatureMovementCallBack(); - void dispatchEvent(cocos2d::EventCustom* tEvent); - void removeEventListener(cocos2d::EventListener* listener); - void addEventListenerWithFixedPriority(cocos2d::EventListener* listener, int fixedPriority); + void dispatchEvent(axis::EventCustom* tEvent); + void removeEventListener(axis::EventListener* listener); + void addEventListenerWithFixedPriority(axis::EventListener* listener, int fixedPriority); private: void buildJson(rapidjson::Document& document, @@ -90,7 +89,7 @@ private: static TriggerMng* _sharedTriggerMng; std::unordered_map _triggerObjs; std::unordered_map* _movementDispatches; - cocos2d::EventDispatcher* _eventDispatcher; ///< event dispatcher used to dispatch all kinds of events + axis::EventDispatcher* _eventDispatcher; ///< event dispatcher used to dispatch all kinds of events }; } // namespace cocostudio diff --git a/extensions/cocostudio/TriggerObj.cpp b/extensions/cocostudio/TriggerObj.cpp index 726f84bad0..f67c5d9ca8 100644 --- a/extensions/cocostudio/TriggerObj.cpp +++ b/extensions/cocostudio/TriggerObj.cpp @@ -24,7 +24,7 @@ THE SOFTWARE. #include "TriggerObj.h" #include "base/CCEventListenerCustom.h" -using namespace cocos2d; +USING_NS_AX; namespace cocostudio { diff --git a/extensions/cocostudio/TriggerObj.h b/extensions/cocostudio/TriggerObj.h index 4431bd2fe0..e290a1154c 100644 --- a/extensions/cocostudio/TriggerObj.h +++ b/extensions/cocostudio/TriggerObj.h @@ -32,7 +32,7 @@ THE SOFTWARE. namespace cocostudio { -class CCS_DLL BaseTriggerCondition : public cocos2d::Ref +class CCS_DLL BaseTriggerCondition : public axis::Ref { protected: BaseTriggerCondition(void); @@ -46,7 +46,7 @@ public: virtual void removeAll(); }; -class CCS_DLL BaseTriggerAction : public cocos2d::Ref +class CCS_DLL BaseTriggerAction : public axis::Ref { protected: BaseTriggerAction(void); @@ -60,7 +60,7 @@ public: virtual void removeAll(); }; -class CCS_DLL TriggerObj : public cocos2d::Ref +class CCS_DLL TriggerObj : public axis::Ref { public: TriggerObj(void); @@ -77,11 +77,11 @@ public: void setEnabled(bool enabled); private: - cocos2d::Vector _cons; - cocos2d::Vector _acts; + axis::Vector _cons; + axis::Vector _acts; unsigned int _id; bool _enabled; - cocos2d::Vector _listeners; + axis::Vector _listeners; }; } // namespace cocostudio diff --git a/extensions/cocostudio/WidgetCallBackHandlerProtocol.cpp b/extensions/cocostudio/WidgetCallBackHandlerProtocol.cpp index d51149ba9d..8e1af10ab7 100644 --- a/extensions/cocostudio/WidgetCallBackHandlerProtocol.cpp +++ b/extensions/cocostudio/WidgetCallBackHandlerProtocol.cpp @@ -4,15 +4,15 @@ namespace cocostudio { WidgetCallBackHandlerProtocol::~WidgetCallBackHandlerProtocol() {} -cocos2d::ui::Widget::ccWidgetTouchCallback WidgetCallBackHandlerProtocol::onLocateTouchCallback(std::string_view) +axis::ui::Widget::ccWidgetTouchCallback WidgetCallBackHandlerProtocol::onLocateTouchCallback(std::string_view) { return nullptr; } -cocos2d::ui::Widget::ccWidgetClickCallback WidgetCallBackHandlerProtocol::onLocateClickCallback(std::string_view) +axis::ui::Widget::ccWidgetClickCallback WidgetCallBackHandlerProtocol::onLocateClickCallback(std::string_view) { return nullptr; } -cocos2d::ui::Widget::ccWidgetEventCallback WidgetCallBackHandlerProtocol::onLocateEventCallback(std::string_view) +axis::ui::Widget::ccWidgetEventCallback WidgetCallBackHandlerProtocol::onLocateEventCallback(std::string_view) { return nullptr; } diff --git a/extensions/cocostudio/WidgetCallBackHandlerProtocol.h b/extensions/cocostudio/WidgetCallBackHandlerProtocol.h index 197bedf34d..7808ea7b7d 100644 --- a/extensions/cocostudio/WidgetCallBackHandlerProtocol.h +++ b/extensions/cocostudio/WidgetCallBackHandlerProtocol.h @@ -36,9 +36,9 @@ class CCS_DLL WidgetCallBackHandlerProtocol public: virtual ~WidgetCallBackHandlerProtocol(); - virtual cocos2d::ui::Widget::ccWidgetTouchCallback onLocateTouchCallback(std::string_view callBackName); - virtual cocos2d::ui::Widget::ccWidgetClickCallback onLocateClickCallback(std::string_view callBackName); - virtual cocos2d::ui::Widget::ccWidgetEventCallback onLocateEventCallback(std::string_view callBackName); + virtual axis::ui::Widget::ccWidgetTouchCallback onLocateTouchCallback(std::string_view callBackName); + virtual axis::ui::Widget::ccWidgetClickCallback onLocateClickCallback(std::string_view callBackName); + virtual axis::ui::Widget::ccWidgetEventCallback onLocateEventCallback(std::string_view callBackName); }; } // namespace cocostudio diff --git a/extensions/cocostudio/WidgetReader/ArmatureNodeReader/ArmatureNodeReader.cpp b/extensions/cocostudio/WidgetReader/ArmatureNodeReader/ArmatureNodeReader.cpp index 42e6b92cbe..88d545de54 100644 --- a/extensions/cocostudio/WidgetReader/ArmatureNodeReader/ArmatureNodeReader.cpp +++ b/extensions/cocostudio/WidgetReader/ArmatureNodeReader/ArmatureNodeReader.cpp @@ -11,7 +11,7 @@ # include "DragonBones/CCDragonBonesHeaders.h" #endif -USING_NS_CC; +USING_NS_AX; using namespace cocostudio; using namespace flatbuffers; @@ -129,7 +129,7 @@ Offset ArmatureNodeReader::createOptionsWithFlatBuffers(pugi::xml_node ob return *(Offset
*)(&options); } -void ArmatureNodeReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* nodeOptions) +void ArmatureNodeReader::setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* nodeOptions) { Node** ppResult = (Node**)(node); auto options = (flatbuffers::CSArmatureNodeOption*)nodeOptions; @@ -215,7 +215,7 @@ void ArmatureNodeReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flat } } -cocos2d::Node* ArmatureNodeReader::createNodeWithFlatBuffers(const flatbuffers::Table* nodeOptions) +axis::Node* ArmatureNodeReader::createNodeWithFlatBuffers(const flatbuffers::Table* nodeOptions) { Node* node = nullptr; // auto node = Armature::create(); diff --git a/extensions/cocostudio/WidgetReader/ArmatureNodeReader/ArmatureNodeReader.h b/extensions/cocostudio/WidgetReader/ArmatureNodeReader/ArmatureNodeReader.h index 9297720249..4e767494a8 100644 --- a/extensions/cocostudio/WidgetReader/ArmatureNodeReader/ArmatureNodeReader.h +++ b/extensions/cocostudio/WidgetReader/ArmatureNodeReader/ArmatureNodeReader.h @@ -37,7 +37,7 @@ instance->registReaderObject("ArmatureNodeReader", (ObjectFactory::Instance)Cust * * *****************************************/ -class ArmatureNodeReader : public cocos2d::Ref, public cocostudio::NodeReaderProtocol +class ArmatureNodeReader : public axis::Ref, public cocostudio::NodeReaderProtocol { DECLARE_CLASS_NODE_READER_INFO @@ -53,10 +53,10 @@ public: flatbuffers::Offset createOptionsWithFlatBuffers( pugi::xml_node objectData, flatbuffers::FlatBufferBuilder* builder) override; - void setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* textBMFontOptions) override; + void setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* textBMFontOptions) override; // CSArmatureNode - cocos2d::Node* createNodeWithFlatBuffers(const flatbuffers::Table* nodeOptions) override; + axis::Node* createNodeWithFlatBuffers(const flatbuffers::Table* nodeOptions) override; private: std::string getArmatureName(std::string_view exporJsonPath); diff --git a/extensions/cocostudio/WidgetReader/ButtonReader/ButtonReader.cpp b/extensions/cocostudio/WidgetReader/ButtonReader/ButtonReader.cpp index 1f1362e82b..2a0511eeb8 100644 --- a/extensions/cocostudio/WidgetReader/ButtonReader/ButtonReader.cpp +++ b/extensions/cocostudio/WidgetReader/ButtonReader/ButtonReader.cpp @@ -13,7 +13,7 @@ #include "flatbuffers/flatbuffers.h" -USING_NS_CC; +USING_NS_AX; using namespace ui; using namespace flatbuffers; @@ -64,7 +64,7 @@ void ButtonReader::destroyInstance() CC_SAFE_DELETE(instanceButtonReader); } -void ButtonReader::setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* cocoNode) +void ButtonReader::setPropsFromBinary(axis::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* cocoNode) { WidgetReader::setPropsFromBinary(widget, cocoLoader, cocoNode); @@ -241,7 +241,7 @@ Offset
ButtonReader::createOptionsWithFlatBuffers(pugi::xml_node objectDa bool isLocalized = false; int fontSize = 14; std::string fontName; - cocos2d::Size scale9Size; + axis::Size scale9Size; Color4B textColor(255, 255, 255, 255); std::string normalPath; @@ -668,7 +668,7 @@ Offset
ButtonReader::createOptionsWithFlatBuffers(pugi::xml_node objectDa return *(Offset
*)(&options); } -void ButtonReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* buttonOptions) +void ButtonReader::setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* buttonOptions) { Button* button = static_cast(node); @@ -950,7 +950,7 @@ void ButtonReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffer button->setBright(displaystate); - auto labelRenderer = dynamic_cast(button->getTitleRenderer()); + auto labelRenderer = dynamic_cast(button->getTitleRenderer()); if (labelRenderer != nullptr) { if (options->boldEnabled()) diff --git a/extensions/cocostudio/WidgetReader/ButtonReader/ButtonReader.h b/extensions/cocostudio/WidgetReader/ButtonReader/ButtonReader.h index 241c4f55dc..c2a0c837b3 100644 --- a/extensions/cocostudio/WidgetReader/ButtonReader/ButtonReader.h +++ b/extensions/cocostudio/WidgetReader/ButtonReader/ButtonReader.h @@ -43,13 +43,13 @@ public: CC_DEPRECATED_ATTRIBUTE static void purge(); static void destroyInstance(); - virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options); - virtual void setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode); + virtual void setPropsFromJsonDictionary(axis::ui::Widget* widget, const rapidjson::Value& options); + virtual void setPropsFromBinary(axis::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode); flatbuffers::Offset createOptionsWithFlatBuffers(pugi::xml_node objectData, flatbuffers::FlatBufferBuilder* builder); - void setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* buttonOptions); - cocos2d::Node* createNodeWithFlatBuffers(const flatbuffers::Table* buttonOptions); + void setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* buttonOptions); + axis::Node* createNodeWithFlatBuffers(const flatbuffers::Table* buttonOptions); int getResourceType(std::string_view key); }; diff --git a/extensions/cocostudio/WidgetReader/CheckBoxReader/CheckBoxReader.cpp b/extensions/cocostudio/WidgetReader/CheckBoxReader/CheckBoxReader.cpp index c0fc3486f8..64848dbe90 100644 --- a/extensions/cocostudio/WidgetReader/CheckBoxReader/CheckBoxReader.cpp +++ b/extensions/cocostudio/WidgetReader/CheckBoxReader/CheckBoxReader.cpp @@ -11,7 +11,7 @@ #include "flatbuffers/flatbuffers.h" -USING_NS_CC; +USING_NS_AX; using namespace ui; using namespace flatbuffers; @@ -45,7 +45,7 @@ void CheckBoxReader::destroyInstance() CC_SAFE_DELETE(instanceCheckBoxReader); } -void CheckBoxReader::setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* cocoNode) +void CheckBoxReader::setPropsFromBinary(axis::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* cocoNode) { CheckBox* checkBox = static_cast(widget); @@ -425,7 +425,7 @@ Offset
CheckBoxReader::createOptionsWithFlatBuffers(pugi::xml_node object return *(Offset
*)&options; } -void CheckBoxReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* checkBoxOptions) +void CheckBoxReader::setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* checkBoxOptions) { auto options = (CheckBoxOptions*)checkBoxOptions; diff --git a/extensions/cocostudio/WidgetReader/CheckBoxReader/CheckBoxReader.h b/extensions/cocostudio/WidgetReader/CheckBoxReader/CheckBoxReader.h index 1bb9f214b0..a6a26c3f97 100644 --- a/extensions/cocostudio/WidgetReader/CheckBoxReader/CheckBoxReader.h +++ b/extensions/cocostudio/WidgetReader/CheckBoxReader/CheckBoxReader.h @@ -43,12 +43,12 @@ public: CC_DEPRECATED_ATTRIBUTE static void purge(); static void destroyInstance(); - virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options); - virtual void setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode); + virtual void setPropsFromJsonDictionary(axis::ui::Widget* widget, const rapidjson::Value& options); + virtual void setPropsFromBinary(axis::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode); flatbuffers::Offset createOptionsWithFlatBuffers(pugi::xml_node objectData, flatbuffers::FlatBufferBuilder* builder); - void setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* checkBoxOptions); - cocos2d::Node* createNodeWithFlatBuffers(const flatbuffers::Table* checkBoxOptions); + void setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* checkBoxOptions); + axis::Node* createNodeWithFlatBuffers(const flatbuffers::Table* checkBoxOptions); virtual int getResourceType(std::string_view key); }; } // namespace cocostudio diff --git a/extensions/cocostudio/WidgetReader/ComAudioReader/ComAudioReader.cpp b/extensions/cocostudio/WidgetReader/ComAudioReader/ComAudioReader.cpp index fe22cab910..99e15f2447 100644 --- a/extensions/cocostudio/WidgetReader/ComAudioReader/ComAudioReader.cpp +++ b/extensions/cocostudio/WidgetReader/ComAudioReader/ComAudioReader.cpp @@ -30,7 +30,7 @@ #include "flatbuffers/flatbuffers.h" -USING_NS_CC; +USING_NS_AX; using namespace flatbuffers; namespace cocostudio @@ -140,7 +140,7 @@ Offset
ComAudioReader::createOptionsWithFlatBuffers(pugi::xml_node object return *(Offset
*)(&options); } -void ComAudioReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* comAudioOptions) +void ComAudioReader::setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* comAudioOptions) { auto options = (ComAudioOptions*)comAudioOptions; diff --git a/extensions/cocostudio/WidgetReader/ComAudioReader/ComAudioReader.h b/extensions/cocostudio/WidgetReader/ComAudioReader/ComAudioReader.h index b3b5128b95..c480a42c12 100644 --- a/extensions/cocostudio/WidgetReader/ComAudioReader/ComAudioReader.h +++ b/extensions/cocostudio/WidgetReader/ComAudioReader/ComAudioReader.h @@ -33,7 +33,7 @@ namespace cocostudio { -class CCS_DLL ComAudioReader : public cocos2d::Ref, public NodeReaderProtocol +class CCS_DLL ComAudioReader : public axis::Ref, public NodeReaderProtocol { public: @@ -47,9 +47,9 @@ public: flatbuffers::Offset createOptionsWithFlatBuffers(pugi::xml_node objectData, flatbuffers::FlatBufferBuilder* builder); - void setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* comAudioOptions); - cocos2d::Component* createComAudioWithFlatBuffers(const flatbuffers::Table* comAudioOptions); - cocos2d::Node* createNodeWithFlatBuffers(const flatbuffers::Table* nodeOptions); + void setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* comAudioOptions); + axis::Component* createComAudioWithFlatBuffers(const flatbuffers::Table* comAudioOptions); + axis::Node* createNodeWithFlatBuffers(const flatbuffers::Table* nodeOptions); }; } // namespace cocostudio diff --git a/extensions/cocostudio/WidgetReader/GameMapReader/GameMapReader.cpp b/extensions/cocostudio/WidgetReader/GameMapReader/GameMapReader.cpp index 7d852bd77d..00ee259ead 100644 --- a/extensions/cocostudio/WidgetReader/GameMapReader/GameMapReader.cpp +++ b/extensions/cocostudio/WidgetReader/GameMapReader/GameMapReader.cpp @@ -35,7 +35,7 @@ #include "flatbuffers/flatbuffers.h" -USING_NS_CC; +USING_NS_AX; using namespace flatbuffers; namespace cocostudio @@ -115,7 +115,7 @@ Offset
GameMapReader::createOptionsWithFlatBuffers(pugi::xml_node objectD return *(Offset
*)(&options); } -void GameMapReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* gameMapOptions) +void GameMapReader::setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* gameMapOptions) { auto options = (GameMapOptions*)gameMapOptions; auto nodeReader = NodeReader::getInstance(); diff --git a/extensions/cocostudio/WidgetReader/GameMapReader/GameMapReader.h b/extensions/cocostudio/WidgetReader/GameMapReader/GameMapReader.h index 1b86c22b5f..ac6fd6b602 100644 --- a/extensions/cocostudio/WidgetReader/GameMapReader/GameMapReader.h +++ b/extensions/cocostudio/WidgetReader/GameMapReader/GameMapReader.h @@ -31,7 +31,7 @@ namespace cocostudio { -class CCS_DLL GameMapReader : public cocos2d::Ref, public NodeReaderProtocol +class CCS_DLL GameMapReader : public axis::Ref, public NodeReaderProtocol { DECLARE_CLASS_NODE_READER_INFO @@ -46,8 +46,8 @@ public: flatbuffers::Offset createOptionsWithFlatBuffers(pugi::xml_node objectData, flatbuffers::FlatBufferBuilder* builder); - void setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* gameMapOptions); - cocos2d::Node* createNodeWithFlatBuffers(const flatbuffers::Table* gameMapOptions); + void setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* gameMapOptions); + axis::Node* createNodeWithFlatBuffers(const flatbuffers::Table* gameMapOptions); }; } // namespace cocostudio diff --git a/extensions/cocostudio/WidgetReader/GameNode3DReader/GameNode3DReader.cpp b/extensions/cocostudio/WidgetReader/GameNode3DReader/GameNode3DReader.cpp index a72ee58519..64ab0199e4 100644 --- a/extensions/cocostudio/WidgetReader/GameNode3DReader/GameNode3DReader.cpp +++ b/extensions/cocostudio/WidgetReader/GameNode3DReader/GameNode3DReader.cpp @@ -35,7 +35,7 @@ #include "flatbuffers/flatbuffers.h" -USING_NS_CC; +USING_NS_AX; using namespace flatbuffers; namespace cocostudio @@ -364,7 +364,7 @@ Offset
GameNode3DReader::createOptionsWithFlatBuffers(pugi::xml_node obje return *(Offset
*)(&options); } -void GameNode3DReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* node3DOptions) +void GameNode3DReader::setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* node3DOptions) { auto options = (GameNode3DOption*)node3DOptions; diff --git a/extensions/cocostudio/WidgetReader/GameNode3DReader/GameNode3DReader.h b/extensions/cocostudio/WidgetReader/GameNode3DReader/GameNode3DReader.h index 06d97dccc4..1d5af11bc9 100644 --- a/extensions/cocostudio/WidgetReader/GameNode3DReader/GameNode3DReader.h +++ b/extensions/cocostudio/WidgetReader/GameNode3DReader/GameNode3DReader.h @@ -32,7 +32,7 @@ namespace cocostudio { -class CCS_DLL GameNode3DReader : public cocos2d::Ref, public NodeReaderProtocol +class CCS_DLL GameNode3DReader : public axis::Ref, public NodeReaderProtocol { DECLARE_CLASS_NODE_READER_INFO @@ -41,15 +41,15 @@ public: ~GameNode3DReader(); static GameNode3DReader* getInstance(); - static cocos2d::CameraBackgroundBrush* getSceneBrushInstance(); + static axis::CameraBackgroundBrush* getSceneBrushInstance(); /** @deprecated Use method destroyInstance() instead */ CC_DEPRECATED_ATTRIBUTE static void purge(); static void destroyInstance(); flatbuffers::Offset createOptionsWithFlatBuffers(pugi::xml_node objectData, flatbuffers::FlatBufferBuilder* builder); - void setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* node3DOptions); - cocos2d::Node* createNodeWithFlatBuffers(const flatbuffers::Table* node3DOptions); + void setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* node3DOptions); + axis::Node* createNodeWithFlatBuffers(const flatbuffers::Table* node3DOptions); protected: int getResourceType(std::string_view key); diff --git a/extensions/cocostudio/WidgetReader/ImageViewReader/ImageViewReader.cpp b/extensions/cocostudio/WidgetReader/ImageViewReader/ImageViewReader.cpp index d5b290b4d4..8117f9e1d0 100644 --- a/extensions/cocostudio/WidgetReader/ImageViewReader/ImageViewReader.cpp +++ b/extensions/cocostudio/WidgetReader/ImageViewReader/ImageViewReader.cpp @@ -12,7 +12,7 @@ #include "flatbuffers/flatbuffers.h" -USING_NS_CC; +USING_NS_AX; using namespace ui; using namespace flatbuffers; @@ -49,7 +49,7 @@ void ImageViewReader::destroyInstance() CC_SAFE_DELETE(instanceImageViewReader); } -void ImageViewReader::setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* cocoNode) +void ImageViewReader::setPropsFromBinary(axis::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* cocoNode) { WidgetReader::setPropsFromBinary(widget, cocoLoader, cocoNode); @@ -154,7 +154,7 @@ Offset
ImageViewReader::createOptionsWithFlatBuffers(pugi::xml_node objec bool scale9Enabled = false; Rect capInsets; - cocos2d::Size scale9Size; + axis::Size scale9Size; std::string path; std::string plistFile; @@ -271,7 +271,7 @@ Offset
ImageViewReader::createOptionsWithFlatBuffers(pugi::xml_node objec return *(Offset
*)(&options); } -void ImageViewReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* imageViewOptions) +void ImageViewReader::setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* imageViewOptions) { ImageView* imageView = static_cast(node); auto options = (ImageViewOptions*)imageViewOptions; diff --git a/extensions/cocostudio/WidgetReader/ImageViewReader/ImageViewReader.h b/extensions/cocostudio/WidgetReader/ImageViewReader/ImageViewReader.h index ab465ef325..9b3be9fb5e 100644 --- a/extensions/cocostudio/WidgetReader/ImageViewReader/ImageViewReader.h +++ b/extensions/cocostudio/WidgetReader/ImageViewReader/ImageViewReader.h @@ -43,12 +43,12 @@ public: CC_DEPRECATED_ATTRIBUTE static void purge(); static void destroyInstance(); - virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options); - virtual void setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode); + virtual void setPropsFromJsonDictionary(axis::ui::Widget* widget, const rapidjson::Value& options); + virtual void setPropsFromBinary(axis::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode); flatbuffers::Offset createOptionsWithFlatBuffers(pugi::xml_node objectData, flatbuffers::FlatBufferBuilder* builder); - void setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* imageViewOptions); - cocos2d::Node* createNodeWithFlatBuffers(const flatbuffers::Table* imageViewOptions); + void setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* imageViewOptions); + axis::Node* createNodeWithFlatBuffers(const flatbuffers::Table* imageViewOptions); int getResourceType(std::string_view key); }; diff --git a/extensions/cocostudio/WidgetReader/LayoutReader/LayoutReader.cpp b/extensions/cocostudio/WidgetReader/LayoutReader/LayoutReader.cpp index ab2613a2e7..6ec925e3ab 100644 --- a/extensions/cocostudio/WidgetReader/LayoutReader/LayoutReader.cpp +++ b/extensions/cocostudio/WidgetReader/LayoutReader/LayoutReader.cpp @@ -15,7 +15,7 @@ #include "flatbuffers/flatbuffers.h" -USING_NS_CC; +USING_NS_AX; using namespace ui; using namespace flatbuffers; @@ -65,7 +65,7 @@ void LayoutReader::destroyInstance() CC_SAFE_DELETE(instanceLayoutReader); } -void LayoutReader::setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* cocoNode) +void LayoutReader::setPropsFromBinary(axis::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* cocoNode) { WidgetReader::setPropsFromBinary(widget, cocoLoader, cocoNode); @@ -541,7 +541,7 @@ Offset
LayoutReader::createOptionsWithFlatBuffers(pugi::xml_node objectDa return *(Offset
*)(&options); } -void LayoutReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* layoutOptions) +void LayoutReader::setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* layoutOptions) { Layout* panel = static_cast(node); auto options = (PanelOptions*)layoutOptions; diff --git a/extensions/cocostudio/WidgetReader/LayoutReader/LayoutReader.h b/extensions/cocostudio/WidgetReader/LayoutReader/LayoutReader.h index 6c1b0d7d6b..1e21e9ce59 100644 --- a/extensions/cocostudio/WidgetReader/LayoutReader/LayoutReader.h +++ b/extensions/cocostudio/WidgetReader/LayoutReader/LayoutReader.h @@ -44,12 +44,12 @@ public: CC_DEPRECATED_ATTRIBUTE static void purge(); static void destroyInstance(); - virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options); - virtual void setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode); + virtual void setPropsFromJsonDictionary(axis::ui::Widget* widget, const rapidjson::Value& options); + virtual void setPropsFromBinary(axis::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode); flatbuffers::Offset createOptionsWithFlatBuffers(pugi::xml_node objectData, flatbuffers::FlatBufferBuilder* builder); - void setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* layoutOptions); - cocos2d::Node* createNodeWithFlatBuffers(const flatbuffers::Table* layoutOptions); + void setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* layoutOptions); + axis::Node* createNodeWithFlatBuffers(const flatbuffers::Table* layoutOptions); int getResourceType(std::string_view key); }; diff --git a/extensions/cocostudio/WidgetReader/Light3DReader/Light3DReader.cpp b/extensions/cocostudio/WidgetReader/Light3DReader/Light3DReader.cpp index ab56fc6de5..3bdabc16a0 100644 --- a/extensions/cocostudio/WidgetReader/Light3DReader/Light3DReader.cpp +++ b/extensions/cocostudio/WidgetReader/Light3DReader/Light3DReader.cpp @@ -33,7 +33,7 @@ #include "flatbuffers/flatbuffers.h" -USING_NS_CC; +USING_NS_AX; using namespace flatbuffers; namespace cocostudio @@ -151,7 +151,7 @@ Offset
Light3DReader::createOptionsWithFlatBuffers(pugi::xml_node objectD return *(Offset
*)(&options); } -void Light3DReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* light3DOptions) +void Light3DReader::setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* light3DOptions) { auto options = (Sprite3DOptions*)light3DOptions; auto node3DReader = Node3DReader::getInstance(); @@ -173,17 +173,17 @@ Node* Light3DReader::createNodeWithFlatBuffers(const flatbuffers::Table* light3D bool enabled = (options->enabled() != 0); switch (type) { - case cocos2d::LightType::DIRECTIONAL: + case axis::LightType::DIRECTIONAL: light = DirectionLight::create(Vec3::UNIT_Z, Color3B::WHITE); break; - case cocos2d::LightType::POINT: + case axis::LightType::POINT: light = PointLight::create(Vec3::ZERO, Color3B::WHITE, range); break; - case cocos2d::LightType::SPOT: + case axis::LightType::SPOT: light = SpotLight::create(Vec3::UNIT_Z, Vec3::ZERO, Color3B::WHITE, 0, CC_DEGREES_TO_RADIANS(outerAngle), range); break; - case cocos2d::LightType::AMBIENT: + case axis::LightType::AMBIENT: light = AmbientLight::create(Color3B::WHITE); break; default: diff --git a/extensions/cocostudio/WidgetReader/Light3DReader/Light3DReader.h b/extensions/cocostudio/WidgetReader/Light3DReader/Light3DReader.h index 28fde7c54e..353edfcb9b 100644 --- a/extensions/cocostudio/WidgetReader/Light3DReader/Light3DReader.h +++ b/extensions/cocostudio/WidgetReader/Light3DReader/Light3DReader.h @@ -31,7 +31,7 @@ namespace cocostudio { -class CCS_DLL Light3DReader : public cocos2d::Ref, public NodeReaderProtocol +class CCS_DLL Light3DReader : public axis::Ref, public NodeReaderProtocol { DECLARE_CLASS_NODE_READER_INFO @@ -46,8 +46,8 @@ public: flatbuffers::Offset createOptionsWithFlatBuffers(pugi::xml_node objectData, flatbuffers::FlatBufferBuilder* builder); - void setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* light3DOptions); - cocos2d::Node* createNodeWithFlatBuffers(const flatbuffers::Table* light3DOptions); + void setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* light3DOptions); + axis::Node* createNodeWithFlatBuffers(const flatbuffers::Table* light3DOptions); }; } // namespace cocostudio diff --git a/extensions/cocostudio/WidgetReader/ListViewReader/ListViewReader.cpp b/extensions/cocostudio/WidgetReader/ListViewReader/ListViewReader.cpp index ea24be8eee..aca256f011 100644 --- a/extensions/cocostudio/WidgetReader/ListViewReader/ListViewReader.cpp +++ b/extensions/cocostudio/WidgetReader/ListViewReader/ListViewReader.cpp @@ -11,7 +11,7 @@ #include "flatbuffers/flatbuffers.h" -USING_NS_CC; +USING_NS_AX; using namespace ui; using namespace flatbuffers; @@ -42,7 +42,7 @@ void ListViewReader::destroyInstance() CC_SAFE_DELETE(instanceListViewReader); } -void ListViewReader::setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* cocoNode) +void ListViewReader::setPropsFromBinary(axis::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* cocoNode) { ScrollViewReader::setPropsFromBinary(widget, cocoLoader, cocoNode); @@ -381,7 +381,7 @@ Offset
ListViewReader::createOptionsWithFlatBuffers(pugi::xml_node object return *(Offset
*)(&options); } -void ListViewReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* listViewOptions) +void ListViewReader::setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* listViewOptions) { ListView* listView = static_cast(node); auto options = (ListViewOptions*)listViewOptions; diff --git a/extensions/cocostudio/WidgetReader/ListViewReader/ListViewReader.h b/extensions/cocostudio/WidgetReader/ListViewReader/ListViewReader.h index 8bc7c92ffa..f0f795aeda 100644 --- a/extensions/cocostudio/WidgetReader/ListViewReader/ListViewReader.h +++ b/extensions/cocostudio/WidgetReader/ListViewReader/ListViewReader.h @@ -43,12 +43,12 @@ public: CC_DEPRECATED_ATTRIBUTE static void purge(); static void destroyInstance(); - virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options); - virtual void setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode); + virtual void setPropsFromJsonDictionary(axis::ui::Widget* widget, const rapidjson::Value& options); + virtual void setPropsFromBinary(axis::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode); flatbuffers::Offset createOptionsWithFlatBuffers(pugi::xml_node objectData, flatbuffers::FlatBufferBuilder* builder); - void setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* listViewOptions); - cocos2d::Node* createNodeWithFlatBuffers(const flatbuffers::Table* listViewOptions); + void setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* listViewOptions); + axis::Node* createNodeWithFlatBuffers(const flatbuffers::Table* listViewOptions); int getResourceType(std::string_view key); }; diff --git a/extensions/cocostudio/WidgetReader/LoadingBarReader/LoadingBarReader.cpp b/extensions/cocostudio/WidgetReader/LoadingBarReader/LoadingBarReader.cpp index 252828669d..f9fa8c337c 100644 --- a/extensions/cocostudio/WidgetReader/LoadingBarReader/LoadingBarReader.cpp +++ b/extensions/cocostudio/WidgetReader/LoadingBarReader/LoadingBarReader.cpp @@ -12,7 +12,7 @@ #include "flatbuffers/flatbuffers.h" -USING_NS_CC; +USING_NS_AX; using namespace ui; using namespace flatbuffers; @@ -49,7 +49,7 @@ void LoadingBarReader::destroyInstance() CC_SAFE_DELETE(instanceLoadingBar); } -void LoadingBarReader::setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* cocoNode) +void LoadingBarReader::setPropsFromBinary(axis::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* cocoNode) { WidgetReader::setPropsFromBinary(widget, cocoLoader, cocoNode); @@ -223,7 +223,7 @@ Offset
LoadingBarReader::createOptionsWithFlatBuffers(pugi::xml_node obje return *(Offset
*)(&options); } -void LoadingBarReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* loadingBarOptions) +void LoadingBarReader::setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* loadingBarOptions) { LoadingBar* loadingBar = static_cast(node); diff --git a/extensions/cocostudio/WidgetReader/LoadingBarReader/LoadingBarReader.h b/extensions/cocostudio/WidgetReader/LoadingBarReader/LoadingBarReader.h index 9bd5103896..05dbe0aa87 100644 --- a/extensions/cocostudio/WidgetReader/LoadingBarReader/LoadingBarReader.h +++ b/extensions/cocostudio/WidgetReader/LoadingBarReader/LoadingBarReader.h @@ -43,12 +43,12 @@ public: CC_DEPRECATED_ATTRIBUTE static void purge(); static void destroyInstance(); - virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options); - virtual void setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode); + virtual void setPropsFromJsonDictionary(axis::ui::Widget* widget, const rapidjson::Value& options); + virtual void setPropsFromBinary(axis::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode); flatbuffers::Offset createOptionsWithFlatBuffers(pugi::xml_node objectData, flatbuffers::FlatBufferBuilder* builder); - void setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* loadingBarOptions); - cocos2d::Node* createNodeWithFlatBuffers(const flatbuffers::Table* loadingBarOptions); + void setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* loadingBarOptions); + axis::Node* createNodeWithFlatBuffers(const flatbuffers::Table* loadingBarOptions); int getResourceType(std::string_view key); }; diff --git a/extensions/cocostudio/WidgetReader/MeshReader/MeshReader.cpp b/extensions/cocostudio/WidgetReader/MeshReader/MeshReader.cpp index e18e8c272b..83573dae9d 100644 --- a/extensions/cocostudio/WidgetReader/MeshReader/MeshReader.cpp +++ b/extensions/cocostudio/WidgetReader/MeshReader/MeshReader.cpp @@ -38,7 +38,7 @@ #include "flatbuffers/flatbuffers.h" -USING_NS_CC; +USING_NS_AX; using namespace flatbuffers; namespace cocostudio @@ -205,7 +205,7 @@ Offset
MeshReader::createOptionsWithFlatBuffers(pugi::xml_node objectData return *(Offset
*)(&options); } -void MeshReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* sprite3DOptions) +void MeshReader::setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* sprite3DOptions) { MeshRenderer* mesh = static_cast(node); diff --git a/extensions/cocostudio/WidgetReader/MeshReader/MeshReader.h b/extensions/cocostudio/WidgetReader/MeshReader/MeshReader.h index c30f46be3c..4d82d3f914 100644 --- a/extensions/cocostudio/WidgetReader/MeshReader/MeshReader.h +++ b/extensions/cocostudio/WidgetReader/MeshReader/MeshReader.h @@ -32,7 +32,7 @@ namespace cocostudio { -class CCS_DLL MeshReader : public cocos2d::Ref, public NodeReaderProtocol +class CCS_DLL MeshReader : public axis::Ref, public NodeReaderProtocol { DECLARE_CLASS_NODE_READER_INFO @@ -47,11 +47,11 @@ public: flatbuffers::Offset createOptionsWithFlatBuffers(pugi::xml_node objectData, flatbuffers::FlatBufferBuilder* builder); - void setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* sprite3DOptions); - cocos2d::Node* createNodeWithFlatBuffers(const flatbuffers::Table* sprite3DOptions); + void setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* sprite3DOptions); + axis::Node* createNodeWithFlatBuffers(const flatbuffers::Table* sprite3DOptions); protected: - cocos2d::Vec2 getVec2Attribute(pugi::xml_attribute attribute) const; + axis::Vec2 getVec2Attribute(pugi::xml_attribute attribute) const; }; } // namespace cocostudio diff --git a/extensions/cocostudio/WidgetReader/Node3DReader/Node3DReader.cpp b/extensions/cocostudio/WidgetReader/Node3DReader/Node3DReader.cpp index af0efcd47c..418371a655 100644 --- a/extensions/cocostudio/WidgetReader/Node3DReader/Node3DReader.cpp +++ b/extensions/cocostudio/WidgetReader/Node3DReader/Node3DReader.cpp @@ -32,7 +32,7 @@ #include "flatbuffers/flatbuffers.h" -USING_NS_CC; +USING_NS_AX; using namespace flatbuffers; namespace cocostudio @@ -334,7 +334,7 @@ Offset
Node3DReader::createOptionsWithFlatBuffers(pugi::xml_node objectDa return *(Offset
*)(&options); } -void Node3DReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* node3DOptions) +void Node3DReader::setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* node3DOptions) { auto options = (Node3DOption*)node3DOptions; diff --git a/extensions/cocostudio/WidgetReader/Node3DReader/Node3DReader.h b/extensions/cocostudio/WidgetReader/Node3DReader/Node3DReader.h index 75ec0970d1..1f6d3a34ae 100644 --- a/extensions/cocostudio/WidgetReader/Node3DReader/Node3DReader.h +++ b/extensions/cocostudio/WidgetReader/Node3DReader/Node3DReader.h @@ -32,7 +32,7 @@ namespace cocostudio { -class CCS_DLL Node3DReader : public cocos2d::Ref, public NodeReaderProtocol +class CCS_DLL Node3DReader : public axis::Ref, public NodeReaderProtocol { DECLARE_CLASS_NODE_READER_INFO @@ -47,14 +47,14 @@ public: flatbuffers::Offset createOptionsWithFlatBuffers(pugi::xml_node objectData, flatbuffers::FlatBufferBuilder* builder); - void setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* node3DOptions); - cocos2d::Node* createNodeWithFlatBuffers(const flatbuffers::Table* node3DOptions); + void setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* node3DOptions); + axis::Node* createNodeWithFlatBuffers(const flatbuffers::Table* node3DOptions); protected: flatbuffers::Offset createOptionsWithFlatBuffersForNode( pugi::xml_node objectData, flatbuffers::FlatBufferBuilder* builder); - cocos2d::Vec3 getVec3Attribute(pugi::xml_attribute attribute) const; + axis::Vec3 getVec3Attribute(pugi::xml_attribute attribute) const; }; } // namespace cocostudio diff --git a/extensions/cocostudio/WidgetReader/NodeReader/NodeReader.cpp b/extensions/cocostudio/WidgetReader/NodeReader/NodeReader.cpp index 24fa52f2b0..74a15ee41e 100644 --- a/extensions/cocostudio/WidgetReader/NodeReader/NodeReader.cpp +++ b/extensions/cocostudio/WidgetReader/NodeReader/NodeReader.cpp @@ -31,7 +31,7 @@ #include "flatbuffers/flatbuffers.h" #include "ui/UILayoutComponent.h" -USING_NS_CC; +USING_NS_AX; using namespace flatbuffers; namespace cocostudio @@ -431,7 +431,7 @@ Offset
NodeReader::createOptionsWithFlatBuffers(pugi::xml_node objectData return *(Offset
*)(&options); } -void NodeReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* nodeOptions) +void NodeReader::setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* nodeOptions) { auto options = (WidgetOptions*)(nodeOptions); @@ -501,7 +501,7 @@ void NodeReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers: setLayoutComponentPropsWithFlatBuffers(node, nodeOptions); } -void NodeReader::setLayoutComponentPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* nodeOptions) +void NodeReader::setLayoutComponentPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* nodeOptions) { auto layoutComponentTable = ((WidgetOptions*)nodeOptions)->layoutComponent(); if (!layoutComponentTable) diff --git a/extensions/cocostudio/WidgetReader/NodeReader/NodeReader.h b/extensions/cocostudio/WidgetReader/NodeReader/NodeReader.h index 583b163f4c..84dde876ac 100644 --- a/extensions/cocostudio/WidgetReader/NodeReader/NodeReader.h +++ b/extensions/cocostudio/WidgetReader/NodeReader/NodeReader.h @@ -31,7 +31,7 @@ namespace cocostudio { -class CCS_DLL NodeReader : public cocos2d::Ref, public NodeReaderProtocol +class CCS_DLL NodeReader : public axis::Ref, public NodeReaderProtocol { DECLARE_CLASS_NODE_READER_INFO @@ -46,9 +46,9 @@ public: flatbuffers::Offset createOptionsWithFlatBuffers(pugi::xml_node objectData, flatbuffers::FlatBufferBuilder* builder); - void setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* nodeOptions); - void setLayoutComponentPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* nodeOptions); - cocos2d::Node* createNodeWithFlatBuffers(const flatbuffers::Table* nodeOptions); + void setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* nodeOptions); + void setLayoutComponentPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* nodeOptions); + axis::Node* createNodeWithFlatBuffers(const flatbuffers::Table* nodeOptions); }; } // namespace cocostudio diff --git a/extensions/cocostudio/WidgetReader/NodeReaderDefine.h b/extensions/cocostudio/WidgetReader/NodeReaderDefine.h index 5447442039..c104ed801b 100644 --- a/extensions/cocostudio/WidgetReader/NodeReaderDefine.h +++ b/extensions/cocostudio/WidgetReader/NodeReaderDefine.h @@ -34,14 +34,14 @@ #define DECLARE_CLASS_NODE_READER_INFO \ public: \ - static cocos2d::ObjectFactory::TInfo __Type; \ - static cocos2d::Ref* createInstance(void); + static axis::ObjectFactory::TInfo __Type; \ + static axis::Ref* createInstance(void); #define IMPLEMENT_CLASS_NODE_READER_INFO(className) \ - cocos2d::Ref* className::createInstance(void) { return className::getInstance(); } \ - cocos2d::ObjectFactory::TInfo className::__Type(#className, &className::createInstance); + axis::Ref* className::createInstance(void) { return className::getInstance(); } \ + axis::ObjectFactory::TInfo className::__Type(#className, &className::createInstance); -#define CREATE_CLASS_NODE_READER_INFO(className) cocos2d::ObjectFactory::TInfo(#className, &className::createInstance) +#define CREATE_CLASS_NODE_READER_INFO(className) axis::ObjectFactory::TInfo(#className, &className::createInstance) #define FLATSTR_TO_BOOL(str) (str.compare("True") == 0) ? true : false diff --git a/extensions/cocostudio/WidgetReader/NodeReaderProtocol.cpp b/extensions/cocostudio/WidgetReader/NodeReaderProtocol.cpp index 7b5fa495c5..22e0d376d4 100644 --- a/extensions/cocostudio/WidgetReader/NodeReaderProtocol.cpp +++ b/extensions/cocostudio/WidgetReader/NodeReaderProtocol.cpp @@ -14,7 +14,7 @@ #include "ActionTimeline/CCSkeletonNode.h" // x-studio spec, csb batch load support, assets hook functions. -static bool onLoadObjectAssetDummy(cocos2d::Node*, cocos2d::ResourceData& assets, int index) +static bool onLoadObjectAssetDummy(axis::Node*, axis::ResourceData& assets, int index) { return false; } @@ -25,19 +25,19 @@ static _T* object_create_func() return _T::create(); } -static cocos2d::Node* createArmatureNode() +static axis::Node* createArmatureNode() { return cocostudio::Armature::create(); } -static cocos2d::ParticleSystemQuad* createParticleSystemQuad(std::string_view path) +static axis::ParticleSystemQuad* createParticleSystemQuad(std::string_view path) { - return cocos2d::ParticleSystemQuad::create(path); + return axis::ParticleSystemQuad::create(path); } -static cocos2d::Node* createNestingNode(std::string) +static axis::Node* createNestingNode(std::string) { - return cocos2d::Node::create(); + return axis::Node::create(); } static void onLoadSpriteFramesWithFileDummy(std::string&) {} @@ -50,48 +50,47 @@ NodeReaderProtocol::~NodeReaderProtocol(){}; void NodeReaderProtocol::setCurrentCustomClassName(const char* className){}; } // namespace cocostudio -namespace cocos2d -{ +NS_AX_BEGIN namespace wext { -bool (*onBeforeLoadObjectAsset)(cocos2d::Node*, - cocos2d::ResourceData& assets, +bool (*onBeforeLoadObjectAsset)(axis::Node*, + axis::ResourceData& assets, int index /*= 0*/) = &onLoadObjectAssetDummy; -bool (*onAfterLoadObjectAsset)(cocos2d::Node*, - cocos2d::ResourceData& assets, +bool (*onAfterLoadObjectAsset)(axis::Node*, + axis::ResourceData& assets, int index /*= 0*/) = &onLoadObjectAssetDummy; void (*onLoadSpriteFramesWithFile)(std::string& file) = nullptr; void (*onNestingNodeLoading)(std::string_view filePath) = nullptr; -void (*onNestingNodeLoaded)(cocos2d::Node*, std::string_view filePath) = nullptr; -cocos2d::Node* (*aNode)(); -cocos2d::ui::Widget* (*aWidget)(); -cocos2d::Sprite* (*aSprite)(); -cocos2d::ui::ImageView* (*aImageView)(); -cocos2d::ui::Button* (*aButton)(); -cocos2d::ui::CheckBox* (*aCheckBox)(); -cocos2d::ui::Slider* (*aSlider)(); -cocos2d::ui::LoadingBar* (*aLoadingBar)(); -cocos2d::ui::Text* (*aText)(); -cocos2d::ui::TextField* (*aTextField)(); -cocos2d::ui::TextAtlas* (*aTextAtlas)(); -cocos2d::ui::TextBMFont* (*aTextBMFont)(); -cocos2d::ui::Layout* (*aLayout)(); -cocos2d::ui::ScrollView* (*aScrollView)(); -cocos2d::ui::ListView* (*aListView)(); -cocos2d::ui::PageView* (*aPageView)(); -cocos2d::ParticleSystemQuad* (*aParticleSystemQuad)(std::string_view); -cocos2d::Node* (*aArmatureNode)(); +void (*onNestingNodeLoaded)(axis::Node*, std::string_view filePath) = nullptr; +axis::Node* (*aNode)(); +axis::ui::Widget* (*aWidget)(); +axis::Sprite* (*aSprite)(); +axis::ui::ImageView* (*aImageView)(); +axis::ui::Button* (*aButton)(); +axis::ui::CheckBox* (*aCheckBox)(); +axis::ui::Slider* (*aSlider)(); +axis::ui::LoadingBar* (*aLoadingBar)(); +axis::ui::Text* (*aText)(); +axis::ui::TextField* (*aTextField)(); +axis::ui::TextAtlas* (*aTextAtlas)(); +axis::ui::TextBMFont* (*aTextBMFont)(); +axis::ui::Layout* (*aLayout)(); +axis::ui::ScrollView* (*aScrollView)(); +axis::ui::ListView* (*aListView)(); +axis::ui::PageView* (*aPageView)(); +axis::ParticleSystemQuad* (*aParticleSystemQuad)(std::string_view); +axis::Node* (*aArmatureNode)(); cocostudio::timeline::SkeletonNode* (*aSkeletonNode)(); cocostudio::timeline::BoneNode* (*aBoneNode)(); -cocos2d::Node* (*aNestingNode)(std::string); +axis::Node* (*aNestingNode)(std::string); // 3d stubs -cocos2d::Node* (*aNode3D)(); -cocos2d::Node* (*aGameNode3D)(); -cocos2d::Node* (*aLight3D)(); -cocos2d::Camera* (*aCamera)(); -cocos2d::MeshRenderer* (*aSprite3D)(); -cocos2d::Node* (*aParticleSystem3D)(); +axis::Node* (*aNode3D)(); +axis::Node* (*aGameNode3D)(); +axis::Node* (*aLight3D)(); +axis::Camera* (*aCamera)(); +axis::MeshRenderer* (*aSprite3D)(); +axis::Node* (*aParticleSystem3D)(); void resetReaderAllHooks() { @@ -125,29 +124,30 @@ void resetReaderAllHooks() } static uint8_t _AUTO_INIT_VARS = (resetReaderAllHooks(), 0); -}; // namespace wext -}; // namespace cocos2d +} // namespace wext -cocos2d::ResourceData cocos2d::wext::makeResourceData(const flatbuffers::ResourceData* orig) +NS_AX_END // namespace axis + +axis::ResourceData axis::wext::makeResourceData(const flatbuffers::ResourceData* orig) { - cocos2d::ResourceData fileData; + axis::ResourceData fileData; fileData.file = orig->path()->c_str(); fileData.plist = orig->plistFile()->c_str(); fileData.type = orig->resourceType(); return fileData; } -cocos2d::ResourceData cocos2d::wext::makeResourceData(std::string_view path, int type) +axis::ResourceData axis::wext::makeResourceData(std::string_view path, int type) { - cocos2d::ResourceData fileData; + axis::ResourceData fileData; fileData.file = path; fileData.type = type; return fileData; } -cocos2d::ResourceData cocos2d::wext::makeResourceData(std::string&& path, int type) +axis::ResourceData axis::wext::makeResourceData(std::string&& path, int type) { - cocos2d::ResourceData fileData; + axis::ResourceData fileData; fileData.file = std::move(path); fileData.type = type; return fileData; diff --git a/extensions/cocostudio/WidgetReader/NodeReaderProtocol.h b/extensions/cocostudio/WidgetReader/NodeReaderProtocol.h index 89aeae19e8..beaa5723e4 100644 --- a/extensions/cocostudio/WidgetReader/NodeReaderProtocol.h +++ b/extensions/cocostudio/WidgetReader/NodeReaderProtocol.h @@ -45,10 +45,9 @@ class Table; struct ResourceData; // x-studio spec, csb batch load support, assets hook functions. } // namespace flatbuffers -namespace cocos2d -{ +NS_AX_BEGIN class Node; -} +NS_AX_END #if !defined(GL_ONE) # define GL_ZERO 0 @@ -84,8 +83,8 @@ public: virtual flatbuffers::Offset createOptionsWithFlatBuffers( pugi::xml_node objectData, flatbuffers::FlatBufferBuilder* builder) = 0; - virtual void setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* nodeOptions) = 0; - virtual cocos2d::Node* createNodeWithFlatBuffers(const flatbuffers::Table* nodeOptions) = 0; + virtual void setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* nodeOptions) = 0; + virtual axis::Node* createNodeWithFlatBuffers(const flatbuffers::Table* nodeOptions) = 0; }; } // namespace cocostudio @@ -101,8 +100,7 @@ class BoneNode; } // namespace timeline }; // namespace cocostudio -namespace cocos2d -{ +NS_AX_BEGIN // builtin ui predecl class Sprite; @@ -140,45 +138,46 @@ CC_DLL extern APP_LOGERROR_FUNC getAppErrorLogFunc(); CCS_DLL extern void (*onLoadSpriteFramesWithFile)(std::string& file); -CCS_DLL extern cocos2d::ResourceData makeResourceData(const flatbuffers::ResourceData* data); -CCS_DLL extern cocos2d::ResourceData makeResourceData(std::string_view path, int type = 0); -CCS_DLL extern cocos2d::ResourceData makeResourceData(std::string&& path, int type = 0); +CCS_DLL extern axis::ResourceData makeResourceData(const flatbuffers::ResourceData* data); +CCS_DLL extern axis::ResourceData makeResourceData(std::string_view path, int type = 0); +CCS_DLL extern axis::ResourceData makeResourceData(std::string&& path, int type = 0); CCS_DLL extern void resetReaderAllHooks(); /// Assets Hooks -CCS_DLL extern bool (*onBeforeLoadObjectAsset)(cocos2d::Node*, cocos2d::ResourceData& assets, int index /*= 0*/); +CCS_DLL extern bool (*onBeforeLoadObjectAsset)(axis::Node*, axis::ResourceData& assets, int index /*= 0*/); // Object creator Hooks -CCS_DLL extern cocos2d::Node* (*aNode)(); -CCS_DLL extern cocos2d::ui::Widget* (*aWidget)(); -CCS_DLL extern cocos2d::Sprite* (*aSprite)(); -CCS_DLL extern cocos2d::ui::ImageView* (*aImageView)(); -CCS_DLL extern cocos2d::ui::Button* (*aButton)(); -CCS_DLL extern cocos2d::ui::CheckBox* (*aCheckBox)(); -CCS_DLL extern cocos2d::ui::Slider* (*aSlider)(); -CCS_DLL extern cocos2d::ui::LoadingBar* (*aLoadingBar)(); -CCS_DLL extern cocos2d::ui::Text* (*aText)(); -CCS_DLL extern cocos2d::ui::TextField* (*aTextField)(); -CCS_DLL extern cocos2d::ui::TextAtlas* (*aTextAtlas)(); -CCS_DLL extern cocos2d::ui::TextBMFont* (*aTextBMFont)(); -CCS_DLL extern cocos2d::ui::Layout* (*aLayout)(); -CCS_DLL extern cocos2d::ui::ScrollView* (*aScrollView)(); -CCS_DLL extern cocos2d::ui::ListView* (*aListView)(); -CCS_DLL extern cocos2d::ui::PageView* (*aPageView)(); -CCS_DLL extern cocos2d::Node* (*aArmatureNode)(); +CCS_DLL extern axis::Node* (*aNode)(); +CCS_DLL extern axis::ui::Widget* (*aWidget)(); +CCS_DLL extern axis::Sprite* (*aSprite)(); +CCS_DLL extern axis::ui::ImageView* (*aImageView)(); +CCS_DLL extern axis::ui::Button* (*aButton)(); +CCS_DLL extern axis::ui::CheckBox* (*aCheckBox)(); +CCS_DLL extern axis::ui::Slider* (*aSlider)(); +CCS_DLL extern axis::ui::LoadingBar* (*aLoadingBar)(); +CCS_DLL extern axis::ui::Text* (*aText)(); +CCS_DLL extern axis::ui::TextField* (*aTextField)(); +CCS_DLL extern axis::ui::TextAtlas* (*aTextAtlas)(); +CCS_DLL extern axis::ui::TextBMFont* (*aTextBMFont)(); +CCS_DLL extern axis::ui::Layout* (*aLayout)(); +CCS_DLL extern axis::ui::ScrollView* (*aScrollView)(); +CCS_DLL extern axis::ui::ListView* (*aListView)(); +CCS_DLL extern axis::ui::PageView* (*aPageView)(); +CCS_DLL extern axis::Node* (*aArmatureNode)(); CCS_DLL extern cocostudio::timeline::SkeletonNode* (*aSkeletonNode)(); CCS_DLL extern cocostudio::timeline::BoneNode* (*aBoneNode)(); -CCS_DLL extern cocos2d::ParticleSystemQuad* (*aParticleSystemQuad)(std::string_view); -CCS_DLL extern cocos2d::Node* (*aNestingNode)(std::string); +CCS_DLL extern axis::ParticleSystemQuad* (*aParticleSystemQuad)(std::string_view); +CCS_DLL extern axis::Node* (*aNestingNode)(std::string); ///// 3d objects ///// -CCS_DLL extern cocos2d::Node* (*aNode3D)(); -CCS_DLL extern cocos2d::Node* (*aGameNode3D)(); -CCS_DLL extern cocos2d::Node* (*aLight3D)(); -CCS_DLL extern cocos2d::Camera* (*aCamera)(); -CCS_DLL extern cocos2d::MeshRenderer* (*aSprite3D)(); -CCS_DLL extern cocos2d::Node* (*aParticleSystem3D)(); -}; // namespace wext -}; // namespace cocos2d +CCS_DLL extern axis::Node* (*aNode3D)(); +CCS_DLL extern axis::Node* (*aGameNode3D)(); +CCS_DLL extern axis::Node* (*aLight3D)(); +CCS_DLL extern axis::Camera* (*aCamera)(); +CCS_DLL extern axis::MeshRenderer* (*aSprite3D)(); +CCS_DLL extern axis::Node* (*aParticleSystem3D)(); +} // namespace wext + +NS_AX_END // namespace axis #endif /* defined(__cocos2d_libs__NodeReaderProtocol__) */ diff --git a/extensions/cocostudio/WidgetReader/PageViewReader/PageViewReader.cpp b/extensions/cocostudio/WidgetReader/PageViewReader/PageViewReader.cpp index c7258dd3a6..4599666cb7 100644 --- a/extensions/cocostudio/WidgetReader/PageViewReader/PageViewReader.cpp +++ b/extensions/cocostudio/WidgetReader/PageViewReader/PageViewReader.cpp @@ -12,7 +12,7 @@ #include "flatbuffers/flatbuffers.h" -USING_NS_CC; +USING_NS_AX; using namespace ui; using namespace flatbuffers; @@ -40,7 +40,7 @@ void PageViewReader::destroyInstance() CC_SAFE_DELETE(instancePageViewReader); } -void PageViewReader::setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* cocoNode) +void PageViewReader::setPropsFromBinary(axis::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* cocoNode) { LayoutReader::setPropsFromBinary(widget, cocoLoader, cocoNode); } @@ -294,7 +294,7 @@ Offset
PageViewReader::createOptionsWithFlatBuffers(pugi::xml_node object return *(Offset
*)(&options); } -void PageViewReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* pageViewOptions) +void PageViewReader::setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* pageViewOptions) { PageView* pageView = static_cast(node); auto options = (PageViewOptions*)pageViewOptions; diff --git a/extensions/cocostudio/WidgetReader/PageViewReader/PageViewReader.h b/extensions/cocostudio/WidgetReader/PageViewReader/PageViewReader.h index 65d4763461..c90083508e 100644 --- a/extensions/cocostudio/WidgetReader/PageViewReader/PageViewReader.h +++ b/extensions/cocostudio/WidgetReader/PageViewReader/PageViewReader.h @@ -43,12 +43,12 @@ public: CC_DEPRECATED_ATTRIBUTE static void purge(); static void destroyInstance(); - virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options); - virtual void setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* cocoNode); + virtual void setPropsFromJsonDictionary(axis::ui::Widget* widget, const rapidjson::Value& options); + virtual void setPropsFromBinary(axis::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* cocoNode); flatbuffers::Offset createOptionsWithFlatBuffers(pugi::xml_node objectData, flatbuffers::FlatBufferBuilder* builder); - void setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* pageViewOptions); - cocos2d::Node* createNodeWithFlatBuffers(const flatbuffers::Table* pageViewOptions); + void setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* pageViewOptions); + axis::Node* createNodeWithFlatBuffers(const flatbuffers::Table* pageViewOptions); int getResourceType(std::string_view key); }; diff --git a/extensions/cocostudio/WidgetReader/Particle3DReader/Particle3DReader.cpp b/extensions/cocostudio/WidgetReader/Particle3DReader/Particle3DReader.cpp index 4f0116b72a..c1719f34c7 100644 --- a/extensions/cocostudio/WidgetReader/Particle3DReader/Particle3DReader.cpp +++ b/extensions/cocostudio/WidgetReader/Particle3DReader/Particle3DReader.cpp @@ -34,7 +34,7 @@ #include "Particle3D/PU/CCPUParticleSystem3D.h" -USING_NS_CC; +USING_NS_AX; using namespace flatbuffers; namespace cocostudio @@ -121,7 +121,7 @@ Offset
Particle3DReader::createOptionsWithFlatBuffers(pugi::xml_node obje return *(Offset
*)(&options); } -void Particle3DReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* particle3DOptions) +void Particle3DReader::setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* particle3DOptions) { auto options = (Particle3DOptions*)particle3DOptions; diff --git a/extensions/cocostudio/WidgetReader/Particle3DReader/Particle3DReader.h b/extensions/cocostudio/WidgetReader/Particle3DReader/Particle3DReader.h index f4f87b8b6e..555c1f6e45 100644 --- a/extensions/cocostudio/WidgetReader/Particle3DReader/Particle3DReader.h +++ b/extensions/cocostudio/WidgetReader/Particle3DReader/Particle3DReader.h @@ -31,7 +31,7 @@ namespace cocostudio { -class CCS_DLL Particle3DReader : public cocos2d::Ref, public NodeReaderProtocol +class CCS_DLL Particle3DReader : public axis::Ref, public NodeReaderProtocol { DECLARE_CLASS_NODE_READER_INFO @@ -46,8 +46,8 @@ public: flatbuffers::Offset createOptionsWithFlatBuffers(pugi::xml_node objectData, flatbuffers::FlatBufferBuilder* builder); - void setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* particle3DOptions); - cocos2d::Node* createNodeWithFlatBuffers(const flatbuffers::Table* particle3DOptions); + void setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* particle3DOptions); + axis::Node* createNodeWithFlatBuffers(const flatbuffers::Table* particle3DOptions); }; } // namespace cocostudio diff --git a/extensions/cocostudio/WidgetReader/ParticleReader/ParticleReader.cpp b/extensions/cocostudio/WidgetReader/ParticleReader/ParticleReader.cpp index d3768c6f91..5c31abfa1b 100644 --- a/extensions/cocostudio/WidgetReader/ParticleReader/ParticleReader.cpp +++ b/extensions/cocostudio/WidgetReader/ParticleReader/ParticleReader.cpp @@ -33,7 +33,7 @@ #include "flatbuffers/flatbuffers.h" -USING_NS_CC; +USING_NS_AX; using namespace flatbuffers; namespace cocostudio @@ -76,7 +76,7 @@ Offset
ParticleReader::createOptionsWithFlatBuffers(pugi::xml_node object std::string plistFile; int resourceType = 0; - cocos2d::BlendFunc blendFunc = cocos2d::BlendFunc::ALPHA_PREMULTIPLIED; + axis::BlendFunc blendFunc = axis::BlendFunc::ALPHA_PREMULTIPLIED; // child elements auto child = objectData.first_child(); @@ -144,7 +144,7 @@ Offset
ParticleReader::createOptionsWithFlatBuffers(pugi::xml_node object return *(Offset
*)(&options); } -void ParticleReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* particleOptions) +void ParticleReader::setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* particleOptions) { auto particle = dynamic_cast(node); auto options = (ParticleSystemOptions*)particleOptions; @@ -152,7 +152,7 @@ void ParticleReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuff auto f_blendFunc = options->blendFunc(); if (particle && f_blendFunc) { - cocos2d::BlendFunc blendFunc = cocos2d::BlendFunc::ALPHA_PREMULTIPLIED; + axis::BlendFunc blendFunc = axis::BlendFunc::ALPHA_PREMULTIPLIED; blendFunc.src = utils::toBackendBlendFactor(f_blendFunc->src()); blendFunc.dst = utils::toBackendBlendFactor(f_blendFunc->dst()); particle->setBlendFunc(blendFunc); diff --git a/extensions/cocostudio/WidgetReader/ParticleReader/ParticleReader.h b/extensions/cocostudio/WidgetReader/ParticleReader/ParticleReader.h index ef49af31c7..099bbb1c46 100644 --- a/extensions/cocostudio/WidgetReader/ParticleReader/ParticleReader.h +++ b/extensions/cocostudio/WidgetReader/ParticleReader/ParticleReader.h @@ -31,7 +31,7 @@ namespace cocostudio { -class CCS_DLL ParticleReader : public cocos2d::Ref, public NodeReaderProtocol +class CCS_DLL ParticleReader : public axis::Ref, public NodeReaderProtocol { DECLARE_CLASS_NODE_READER_INFO @@ -46,8 +46,8 @@ public: flatbuffers::Offset createOptionsWithFlatBuffers(pugi::xml_node objectData, flatbuffers::FlatBufferBuilder* builder); - void setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* particleOptions); - cocos2d::Node* createNodeWithFlatBuffers(const flatbuffers::Table* particleOptions); + void setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* particleOptions); + axis::Node* createNodeWithFlatBuffers(const flatbuffers::Table* particleOptions); }; } // namespace cocostudio diff --git a/extensions/cocostudio/WidgetReader/ProjectNodeReader/ProjectNodeReader.cpp b/extensions/cocostudio/WidgetReader/ProjectNodeReader/ProjectNodeReader.cpp index 9a9421b749..c817d6dc82 100644 --- a/extensions/cocostudio/WidgetReader/ProjectNodeReader/ProjectNodeReader.cpp +++ b/extensions/cocostudio/WidgetReader/ProjectNodeReader/ProjectNodeReader.cpp @@ -29,7 +29,7 @@ #include "flatbuffers/flatbuffers.h" -USING_NS_CC; +USING_NS_AX; using namespace flatbuffers; namespace cocostudio @@ -117,7 +117,7 @@ Offset
ProjectNodeReader::createOptionsWithFlatBuffers(pugi::xml_node obj return *(Offset
*)(&options); } -void ProjectNodeReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* projectNodeOptions) +void ProjectNodeReader::setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* projectNodeOptions) { auto options = (ProjectNodeOptions*)projectNodeOptions; diff --git a/extensions/cocostudio/WidgetReader/ProjectNodeReader/ProjectNodeReader.h b/extensions/cocostudio/WidgetReader/ProjectNodeReader/ProjectNodeReader.h index cdf2f28631..560385bb38 100644 --- a/extensions/cocostudio/WidgetReader/ProjectNodeReader/ProjectNodeReader.h +++ b/extensions/cocostudio/WidgetReader/ProjectNodeReader/ProjectNodeReader.h @@ -31,7 +31,7 @@ namespace cocostudio { -class CCS_DLL ProjectNodeReader : public cocos2d::Ref, public NodeReaderProtocol +class CCS_DLL ProjectNodeReader : public axis::Ref, public NodeReaderProtocol { public: @@ -46,8 +46,8 @@ public: flatbuffers::Offset createOptionsWithFlatBuffers(pugi::xml_node objectData, flatbuffers::FlatBufferBuilder* builder); - void setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* projectNodeOptions); - cocos2d::Node* createNodeWithFlatBuffers(const flatbuffers::Table* nodeOptions); + void setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* projectNodeOptions); + axis::Node* createNodeWithFlatBuffers(const flatbuffers::Table* nodeOptions); }; } // namespace cocostudio diff --git a/extensions/cocostudio/WidgetReader/RadioButtonReader/RadioButtonGroupReader.cpp b/extensions/cocostudio/WidgetReader/RadioButtonReader/RadioButtonGroupReader.cpp index d023160f3d..a1cb3abac8 100644 --- a/extensions/cocostudio/WidgetReader/RadioButtonReader/RadioButtonGroupReader.cpp +++ b/extensions/cocostudio/WidgetReader/RadioButtonReader/RadioButtonGroupReader.cpp @@ -12,7 +12,7 @@ #include "flatbuffers/flatbuffers.h" -USING_NS_CC; +USING_NS_AX; using namespace ui; using namespace flatbuffers; @@ -77,7 +77,7 @@ Offset
RadioButtonGroupReader::createOptionsWithFlatBuffers(pugi::xml_nod return *(Offset
*)(&options); } -void RadioButtonGroupReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* params) +void RadioButtonGroupReader::setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* params) { auto radioButtonGroup = static_cast(node); auto options = (RadioButtonGroupOptions*)params; diff --git a/extensions/cocostudio/WidgetReader/RadioButtonReader/RadioButtonGroupReader.h b/extensions/cocostudio/WidgetReader/RadioButtonReader/RadioButtonGroupReader.h index 556c096495..fa232ffff9 100644 --- a/extensions/cocostudio/WidgetReader/RadioButtonReader/RadioButtonGroupReader.h +++ b/extensions/cocostudio/WidgetReader/RadioButtonReader/RadioButtonGroupReader.h @@ -45,8 +45,8 @@ public: flatbuffers::Offset createOptionsWithFlatBuffers(pugi::xml_node objectData, flatbuffers::FlatBufferBuilder* builder); - void setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table*); - cocos2d::Node* createNodeWithFlatBuffers(const flatbuffers::Table*); + void setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table*); + axis::Node* createNodeWithFlatBuffers(const flatbuffers::Table*); // int getResourceType(std::string_view key); }; diff --git a/extensions/cocostudio/WidgetReader/RadioButtonReader/RadioButtonReader.cpp b/extensions/cocostudio/WidgetReader/RadioButtonReader/RadioButtonReader.cpp index 897a096e9e..1181118833 100644 --- a/extensions/cocostudio/WidgetReader/RadioButtonReader/RadioButtonReader.cpp +++ b/extensions/cocostudio/WidgetReader/RadioButtonReader/RadioButtonReader.cpp @@ -11,7 +11,7 @@ #include "flatbuffers/flatbuffers.h" -USING_NS_CC; +USING_NS_AX; using namespace ui; using namespace flatbuffers; @@ -294,7 +294,7 @@ Offset
RadioButtonReader::createOptionsWithFlatBuffers(pugi::xml_node obj return *(Offset
*)&options; } -void RadioButtonReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* radioButtonOptions) +void RadioButtonReader::setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* radioButtonOptions) { auto options = (RadioButtonOptions*)radioButtonOptions; diff --git a/extensions/cocostudio/WidgetReader/RadioButtonReader/RadioButtonReader.h b/extensions/cocostudio/WidgetReader/RadioButtonReader/RadioButtonReader.h index 0dcf261d7d..1ea45967a5 100644 --- a/extensions/cocostudio/WidgetReader/RadioButtonReader/RadioButtonReader.h +++ b/extensions/cocostudio/WidgetReader/RadioButtonReader/RadioButtonReader.h @@ -45,8 +45,8 @@ public: flatbuffers::Offset createOptionsWithFlatBuffers(pugi::xml_node objectData, flatbuffers::FlatBufferBuilder* builder); - void setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* checkBoxOptions); - cocos2d::Node* createNodeWithFlatBuffers(const flatbuffers::Table* checkBoxOptions); + void setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* checkBoxOptions); + axis::Node* createNodeWithFlatBuffers(const flatbuffers::Table* checkBoxOptions); virtual int getResourceType(std::string_view key); }; } // namespace cocostudio diff --git a/extensions/cocostudio/WidgetReader/RichTextReader/RichTextReader.cpp b/extensions/cocostudio/WidgetReader/RichTextReader/RichTextReader.cpp index c3b135d68c..b806536752 100644 --- a/extensions/cocostudio/WidgetReader/RichTextReader/RichTextReader.cpp +++ b/extensions/cocostudio/WidgetReader/RichTextReader/RichTextReader.cpp @@ -11,7 +11,7 @@ #include "flatbuffers/flatbuffers.h" -USING_NS_CC; +USING_NS_AX; using namespace ui; using namespace flatbuffers; @@ -76,7 +76,7 @@ Offset
RichTextReader::createOptionsWithFlatBuffers(pugi::xml_node object return *(Offset
*)(&options); } -void RichTextReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* richTextOptions) +void RichTextReader::setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* richTextOptions) { auto ppnode = (Node**)(node); auto options = (RichTextOptions*)richTextOptions; diff --git a/extensions/cocostudio/WidgetReader/RichTextReader/RichTextReader.h b/extensions/cocostudio/WidgetReader/RichTextReader/RichTextReader.h index f334a89960..ef63953e8f 100644 --- a/extensions/cocostudio/WidgetReader/RichTextReader/RichTextReader.h +++ b/extensions/cocostudio/WidgetReader/RichTextReader/RichTextReader.h @@ -45,8 +45,8 @@ public: flatbuffers::Offset createOptionsWithFlatBuffers(pugi::xml_node objectData, flatbuffers::FlatBufferBuilder* builder); - void setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* textBMFontOptions); - cocos2d::Node* createNodeWithFlatBuffers(const flatbuffers::Table* textBMFontOptions); + void setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* textBMFontOptions); + axis::Node* createNodeWithFlatBuffers(const flatbuffers::Table* textBMFontOptions); }; } // namespace cocostudio diff --git a/extensions/cocostudio/WidgetReader/ScrollViewReader/ScrollViewReader.cpp b/extensions/cocostudio/WidgetReader/ScrollViewReader/ScrollViewReader.cpp index 6772723379..c38e50f149 100644 --- a/extensions/cocostudio/WidgetReader/ScrollViewReader/ScrollViewReader.cpp +++ b/extensions/cocostudio/WidgetReader/ScrollViewReader/ScrollViewReader.cpp @@ -11,7 +11,7 @@ #include "flatbuffers/flatbuffers.h" -USING_NS_CC; +USING_NS_AX; using namespace ui; using namespace flatbuffers; @@ -44,7 +44,7 @@ void ScrollViewReader::destroyInstance() CC_SAFE_DELETE(instanceScrollViewReader); } -void ScrollViewReader::setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* cocoNode) +void ScrollViewReader::setPropsFromBinary(axis::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* cocoNode) { // TODO: need to refactor... LayoutReader::setPropsFromBinary(widget, cocoLoader, cocoNode); @@ -393,7 +393,7 @@ Offset
ScrollViewReader::createOptionsWithFlatBuffers(pugi::xml_node obje return *(Offset
*)(&options); } -void ScrollViewReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* scrollViewOptions) +void ScrollViewReader::setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* scrollViewOptions) { ScrollView* scrollView = static_cast(node); auto options = (ScrollViewOptions*)scrollViewOptions; diff --git a/extensions/cocostudio/WidgetReader/ScrollViewReader/ScrollViewReader.h b/extensions/cocostudio/WidgetReader/ScrollViewReader/ScrollViewReader.h index 0adea3d9cf..0e364bbca2 100644 --- a/extensions/cocostudio/WidgetReader/ScrollViewReader/ScrollViewReader.h +++ b/extensions/cocostudio/WidgetReader/ScrollViewReader/ScrollViewReader.h @@ -43,12 +43,12 @@ public: CC_DEPRECATED_ATTRIBUTE static void purge(); static void destroyInstance(); - virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options); - virtual void setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode); + virtual void setPropsFromJsonDictionary(axis::ui::Widget* widget, const rapidjson::Value& options); + virtual void setPropsFromBinary(axis::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode); flatbuffers::Offset createOptionsWithFlatBuffers(pugi::xml_node objectData, flatbuffers::FlatBufferBuilder* builder); - void setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* scrollViewOptions); - cocos2d::Node* createNodeWithFlatBuffers(const flatbuffers::Table* scrollViewOptions); + void setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* scrollViewOptions); + axis::Node* createNodeWithFlatBuffers(const flatbuffers::Table* scrollViewOptions); int getResourceType(std::string_view key); }; diff --git a/extensions/cocostudio/WidgetReader/SingleNodeReader/SingleNodeReader.cpp b/extensions/cocostudio/WidgetReader/SingleNodeReader/SingleNodeReader.cpp index 9a8ad9bef7..29aad3a48a 100644 --- a/extensions/cocostudio/WidgetReader/SingleNodeReader/SingleNodeReader.cpp +++ b/extensions/cocostudio/WidgetReader/SingleNodeReader/SingleNodeReader.cpp @@ -30,7 +30,7 @@ #include "flatbuffers/flatbuffers.h" -USING_NS_CC; +USING_NS_AX; using namespace flatbuffers; namespace cocostudio @@ -74,7 +74,7 @@ Offset
SingleNodeReader::createOptionsWithFlatBuffers(pugi::xml_node obje return *(Offset
*)(&options); } -void SingleNodeReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* singleNodeOptions) +void SingleNodeReader::setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* singleNodeOptions) { auto options = (SingleNodeOptions*)(singleNodeOptions); diff --git a/extensions/cocostudio/WidgetReader/SingleNodeReader/SingleNodeReader.h b/extensions/cocostudio/WidgetReader/SingleNodeReader/SingleNodeReader.h index 5e9eb0cd67..0c3aaf2764 100644 --- a/extensions/cocostudio/WidgetReader/SingleNodeReader/SingleNodeReader.h +++ b/extensions/cocostudio/WidgetReader/SingleNodeReader/SingleNodeReader.h @@ -31,7 +31,7 @@ namespace cocostudio { -class CCS_DLL SingleNodeReader : public cocos2d::Ref, public NodeReaderProtocol +class CCS_DLL SingleNodeReader : public axis::Ref, public NodeReaderProtocol { DECLARE_CLASS_NODE_READER_INFO @@ -46,8 +46,8 @@ public: flatbuffers::Offset createOptionsWithFlatBuffers(pugi::xml_node objectData, flatbuffers::FlatBufferBuilder* builder); - void setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* singleNodeOptions); - cocos2d::Node* createNodeWithFlatBuffers(const flatbuffers::Table* singleNodeOptions); + void setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* singleNodeOptions); + axis::Node* createNodeWithFlatBuffers(const flatbuffers::Table* singleNodeOptions); }; } // namespace cocostudio diff --git a/extensions/cocostudio/WidgetReader/SkeletonReader/BoneNodeReader.cpp b/extensions/cocostudio/WidgetReader/SkeletonReader/BoneNodeReader.cpp index 0e1cab828a..5a69bf37e8 100644 --- a/extensions/cocostudio/WidgetReader/SkeletonReader/BoneNodeReader.cpp +++ b/extensions/cocostudio/WidgetReader/SkeletonReader/BoneNodeReader.cpp @@ -31,7 +31,7 @@ THE SOFTWARE. #include "ActionTimeline/CCBoneNode.h" #include "base/ccUtils.h" -USING_NS_CC; +USING_NS_AX; USING_NS_TIMELINE; using namespace cocostudio; using namespace flatbuffers; @@ -66,7 +66,7 @@ Offset
BoneNodeReader::createOptionsWithFlatBuffers(pugi::xml_node object auto nodeOptions = *(Offset*)(&temp); float length = 0; - cocos2d::BlendFunc blendFunc = cocos2d::BlendFunc::ALPHA_PREMULTIPLIED; + axis::BlendFunc blendFunc = axis::BlendFunc::ALPHA_PREMULTIPLIED; auto attribute = objectData.first_attribute(); while (attribute) @@ -116,7 +116,7 @@ Offset
BoneNodeReader::createOptionsWithFlatBuffers(pugi::xml_node object return *(Offset
*)(&options); } -void BoneNodeReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* nodeOptions) +void BoneNodeReader::setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* nodeOptions) { auto* bone = static_cast(node); @@ -128,14 +128,14 @@ void BoneNodeReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuff auto f_blendFunc = options->blendFunc(); if (f_blendFunc) { - cocos2d::BlendFunc blendFunc = cocos2d::BlendFunc::ALPHA_PREMULTIPLIED; + axis::BlendFunc blendFunc = axis::BlendFunc::ALPHA_PREMULTIPLIED; blendFunc.src = utils::toBackendBlendFactor(f_blendFunc->src()); blendFunc.dst = utils::toBackendBlendFactor(f_blendFunc->dst()); bone->setBlendFunc(blendFunc); } } -cocos2d::Node* BoneNodeReader::createNodeWithFlatBuffers(const flatbuffers::Table* nodeOptions) +axis::Node* BoneNodeReader::createNodeWithFlatBuffers(const flatbuffers::Table* nodeOptions) { auto bone = BoneNode::create(); diff --git a/extensions/cocostudio/WidgetReader/SkeletonReader/BoneNodeReader.h b/extensions/cocostudio/WidgetReader/SkeletonReader/BoneNodeReader.h index 3b3367e38a..c6aa8e1dd6 100644 --- a/extensions/cocostudio/WidgetReader/SkeletonReader/BoneNodeReader.h +++ b/extensions/cocostudio/WidgetReader/SkeletonReader/BoneNodeReader.h @@ -28,7 +28,7 @@ THE SOFTWARE. #include "WidgetReader/NodeReaderProtocol.h" #include "WidgetReader/NodeReaderDefine.h" -class BoneNodeReader : public cocos2d::Ref, public cocostudio::NodeReaderProtocol +class BoneNodeReader : public axis::Ref, public cocostudio::NodeReaderProtocol { DECLARE_CLASS_NODE_READER_INFO @@ -44,9 +44,9 @@ public: flatbuffers::Offset createOptionsWithFlatBuffers( pugi::xml_node objectData, flatbuffers::FlatBufferBuilder* builder) override; - void setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* boneOptions) override; + void setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* boneOptions) override; - cocos2d::Node* createNodeWithFlatBuffers(const flatbuffers::Table* boneOptions) override; + axis::Node* createNodeWithFlatBuffers(const flatbuffers::Table* boneOptions) override; }; #endif /* defined(__BONENODEREADER_H_) */ diff --git a/extensions/cocostudio/WidgetReader/SkeletonReader/SkeletonNodeReader.cpp b/extensions/cocostudio/WidgetReader/SkeletonReader/SkeletonNodeReader.cpp index 1a879dfc2c..46138fd143 100644 --- a/extensions/cocostudio/WidgetReader/SkeletonReader/SkeletonNodeReader.cpp +++ b/extensions/cocostudio/WidgetReader/SkeletonReader/SkeletonNodeReader.cpp @@ -29,7 +29,7 @@ THE SOFTWARE. #include "WidgetReader/SkeletonReader/SkeletonNodeReader.h" #include "ActionTimeline/CCSkeletonNode.h" -USING_NS_CC; +USING_NS_AX; USING_NS_TIMELINE; using namespace cocostudio; using namespace flatbuffers; @@ -56,7 +56,7 @@ void SkeletonNodeReader::destroyInstance() CC_SAFE_DELETE(_instanceSkeletonNodeReader); } -cocos2d::Node* SkeletonNodeReader::createNodeWithFlatBuffers(const flatbuffers::Table* nodeOptions) +axis::Node* SkeletonNodeReader::createNodeWithFlatBuffers(const flatbuffers::Table* nodeOptions) { auto bone = SkeletonNode::create(); diff --git a/extensions/cocostudio/WidgetReader/SkeletonReader/SkeletonNodeReader.h b/extensions/cocostudio/WidgetReader/SkeletonReader/SkeletonNodeReader.h index 9de418cb76..ced3d5f725 100644 --- a/extensions/cocostudio/WidgetReader/SkeletonReader/SkeletonNodeReader.h +++ b/extensions/cocostudio/WidgetReader/SkeletonReader/SkeletonNodeReader.h @@ -40,6 +40,6 @@ public: CC_DEPRECATED_ATTRIBUTE static void purge(); static void destroyInstance(); - cocos2d::Node* createNodeWithFlatBuffers(const flatbuffers::Table* boneOptions) override; + axis::Node* createNodeWithFlatBuffers(const flatbuffers::Table* boneOptions) override; }; #endif //_SKELETONNODEREADER_H_ \ No newline at end of file diff --git a/extensions/cocostudio/WidgetReader/SliderReader/SliderReader.cpp b/extensions/cocostudio/WidgetReader/SliderReader/SliderReader.cpp index 7c8ab6d25c..d0e3def5d4 100644 --- a/extensions/cocostudio/WidgetReader/SliderReader/SliderReader.cpp +++ b/extensions/cocostudio/WidgetReader/SliderReader/SliderReader.cpp @@ -12,7 +12,7 @@ #include "flatbuffers/flatbuffers.h" -USING_NS_CC; +USING_NS_AX; using namespace ui; using namespace flatbuffers; @@ -49,7 +49,7 @@ void SliderReader::destroyInstance() CC_SAFE_DELETE(instanceSliderReader); } -void SliderReader::setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* cocoNode) +void SliderReader::setPropsFromBinary(axis::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* cocoNode) { this->beginSetBasicProperties(widget); @@ -437,7 +437,7 @@ Offset
SliderReader::createOptionsWithFlatBuffers(pugi::xml_node objectDa return *(Offset
*)(&options); } -void SliderReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* sliderOptions) +void SliderReader::setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* sliderOptions) { Slider* slider = static_cast(node); diff --git a/extensions/cocostudio/WidgetReader/SliderReader/SliderReader.h b/extensions/cocostudio/WidgetReader/SliderReader/SliderReader.h index 060f1204f2..a70ac3fa7e 100644 --- a/extensions/cocostudio/WidgetReader/SliderReader/SliderReader.h +++ b/extensions/cocostudio/WidgetReader/SliderReader/SliderReader.h @@ -43,12 +43,12 @@ public: CC_DEPRECATED_ATTRIBUTE static void purge(); static void destroyInstance(); - virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options); - virtual void setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode); + virtual void setPropsFromJsonDictionary(axis::ui::Widget* widget, const rapidjson::Value& options); + virtual void setPropsFromBinary(axis::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode); flatbuffers::Offset createOptionsWithFlatBuffers(pugi::xml_node objectData, flatbuffers::FlatBufferBuilder* builder); - void setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* sliderOptions); - cocos2d::Node* createNodeWithFlatBuffers(const flatbuffers::Table* sliderOptions); + void setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* sliderOptions); + axis::Node* createNodeWithFlatBuffers(const flatbuffers::Table* sliderOptions); int getResourceType(std::string_view key); }; diff --git a/extensions/cocostudio/WidgetReader/SpineSkeletonReader/SpineSkeletonReader.cpp b/extensions/cocostudio/WidgetReader/SpineSkeletonReader/SpineSkeletonReader.cpp index 64a6de1190..4349aa3ea9 100644 --- a/extensions/cocostudio/WidgetReader/SpineSkeletonReader/SpineSkeletonReader.cpp +++ b/extensions/cocostudio/WidgetReader/SpineSkeletonReader/SpineSkeletonReader.cpp @@ -37,7 +37,7 @@ # include "flatbuffers/flatbuffers.h" -USING_NS_CC; +USING_NS_AX; using namespace flatbuffers; namespace cocostudio @@ -83,7 +83,7 @@ Offset
SpineSkeletonReader::createOptionsWithFlatBuffers(pugi::xml_node o bool loop = false; float timeScale = 1.0f; - cocos2d::BlendFunc blendFunc = cocos2d::BlendFunc::ALPHA_PREMULTIPLIED; + axis::BlendFunc blendFunc = axis::BlendFunc::ALPHA_PREMULTIPLIED; // attributes auto attribute = objectData.first_attribute(); @@ -196,7 +196,7 @@ Offset
SpineSkeletonReader::createOptionsWithFlatBuffers(pugi::xml_node o return *(Offset
*)(&options); } -void SpineSkeletonReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* spriteOptions) +void SpineSkeletonReader::setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* spriteOptions) { Node** ppResult = (Node**)(node); diff --git a/extensions/cocostudio/WidgetReader/SpineSkeletonReader/SpineSkeletonReader.h b/extensions/cocostudio/WidgetReader/SpineSkeletonReader/SpineSkeletonReader.h index 69da0cca47..9eae4303fa 100644 --- a/extensions/cocostudio/WidgetReader/SpineSkeletonReader/SpineSkeletonReader.h +++ b/extensions/cocostudio/WidgetReader/SpineSkeletonReader/SpineSkeletonReader.h @@ -33,7 +33,7 @@ namespace cocostudio { -class CCS_DLL SpineSkeletonReader : public cocos2d::Ref, public NodeReaderProtocol +class CCS_DLL SpineSkeletonReader : public axis::Ref, public NodeReaderProtocol { DECLARE_CLASS_NODE_READER_INFO @@ -48,8 +48,8 @@ public: flatbuffers::Offset createOptionsWithFlatBuffers(pugi::xml_node objectData, flatbuffers::FlatBufferBuilder* builder); - void setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* spriteOptions); - cocos2d::Node* createNodeWithFlatBuffers(const flatbuffers::Table* spriteOptions); + void setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* spriteOptions); + axis::Node* createNodeWithFlatBuffers(const flatbuffers::Table* spriteOptions); int getResourceType(std::string_view key); }; diff --git a/extensions/cocostudio/WidgetReader/SpriteReader/SpriteReader.cpp b/extensions/cocostudio/WidgetReader/SpriteReader/SpriteReader.cpp index f44c3c45bc..263bd65142 100644 --- a/extensions/cocostudio/WidgetReader/SpriteReader/SpriteReader.cpp +++ b/extensions/cocostudio/WidgetReader/SpriteReader/SpriteReader.cpp @@ -38,7 +38,7 @@ #include "flatbuffers/flatbuffers.h" #include "renderer/CCColorizer.h" -USING_NS_CC; +USING_NS_AX; using namespace flatbuffers; namespace cocostudio @@ -81,10 +81,10 @@ Offset
SpriteReader::createOptionsWithFlatBuffers(pugi::xml_node objectDa std::string plistFile; int resourceType = 0; bool intelliShadingEnabled = false; - cocos2d::Vec3 hsv; - cocos2d::Vec3 filter; + axis::Vec3 hsv; + axis::Vec3 filter; - cocos2d::BlendFunc blendFunc = cocos2d::BlendFunc::ALPHA_PREMULTIPLIED; + axis::BlendFunc blendFunc = axis::BlendFunc::ALPHA_PREMULTIPLIED; // attributes auto attribute = objectData.first_attribute(); @@ -225,7 +225,7 @@ Offset
SpriteReader::createOptionsWithFlatBuffers(pugi::xml_node objectDa return *(Offset
*)(&options); } -void SpriteReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* spriteOptions) +void SpriteReader::setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* spriteOptions) { Sprite* sprite = static_cast(node); auto options = (SpriteOptions*)spriteOptions; @@ -290,7 +290,7 @@ void SpriteReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffer auto f_blendFunc = options->blendFunc(); if (f_blendFunc) { - cocos2d::BlendFunc blendFunc = cocos2d::BlendFunc::ALPHA_PREMULTIPLIED; + axis::BlendFunc blendFunc = axis::BlendFunc::ALPHA_PREMULTIPLIED; blendFunc.src = utils::toBackendBlendFactor(f_blendFunc->src()); blendFunc.dst = utils::toBackendBlendFactor(f_blendFunc->dst()); sprite->setBlendFunc(blendFunc); diff --git a/extensions/cocostudio/WidgetReader/SpriteReader/SpriteReader.h b/extensions/cocostudio/WidgetReader/SpriteReader/SpriteReader.h index 3b15cc1ca2..761d284b3b 100644 --- a/extensions/cocostudio/WidgetReader/SpriteReader/SpriteReader.h +++ b/extensions/cocostudio/WidgetReader/SpriteReader/SpriteReader.h @@ -31,7 +31,7 @@ namespace cocostudio { -class CCS_DLL SpriteReader : public cocos2d::Ref, public NodeReaderProtocol +class CCS_DLL SpriteReader : public axis::Ref, public NodeReaderProtocol { DECLARE_CLASS_NODE_READER_INFO @@ -46,8 +46,8 @@ public: flatbuffers::Offset createOptionsWithFlatBuffers(pugi::xml_node objectData, flatbuffers::FlatBufferBuilder* builder); - void setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* spriteOptions); - cocos2d::Node* createNodeWithFlatBuffers(const flatbuffers::Table* spriteOptions); + void setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* spriteOptions); + axis::Node* createNodeWithFlatBuffers(const flatbuffers::Table* spriteOptions); int getResourceType(std::string_view key); }; diff --git a/extensions/cocostudio/WidgetReader/TabControlReader/TabControlReader.cpp b/extensions/cocostudio/WidgetReader/TabControlReader/TabControlReader.cpp index f0da9198de..b5912853d5 100644 --- a/extensions/cocostudio/WidgetReader/TabControlReader/TabControlReader.cpp +++ b/extensions/cocostudio/WidgetReader/TabControlReader/TabControlReader.cpp @@ -32,10 +32,10 @@ #include "platform/CCFileUtils.h" #include "2d/CCSpriteFrameCache.h" -USING_NS_CC; +USING_NS_AX; using namespace cocostudio; using namespace flatbuffers; -using namespace cocos2d::ui; +using namespace axis::ui; IMPLEMENT_CLASS_NODE_READER_INFO(TabControlReader) @@ -164,14 +164,14 @@ flatbuffers::Offset TabControlReader::createOptionsWithFlatB return *(Offset
*)(&options); } -void TabControlReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* nodeOption) +void TabControlReader::setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* nodeOption) { - auto tabControl = static_cast(node); + auto tabControl = static_cast(node); auto options = (flatbuffers::TabControlOption*)nodeOption; int headerPlace = options->headerPlace(); tabControl->ignoreHeadersTextureSize(options->ignoreHeaderTextureSize() != 0); - tabControl->setHeaderDockPlace((cocos2d::ui::TabControl::Dock)headerPlace); + tabControl->setHeaderDockPlace((axis::ui::TabControl::Dock)headerPlace); tabControl->setHeaderWidth(options->headerWidth()); tabControl->setHeaderHeight(options->headerHeight()); tabControl->setHeaderSelectedZoom(options->selectedTabZoom()); @@ -187,9 +187,9 @@ void TabControlReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbu tabControl->setSelectTab(options->selectedTabIndex()); } -cocos2d::Node* TabControlReader::createNodeWithFlatBuffers(const flatbuffers::Table* nodeOptions) +axis::Node* TabControlReader::createNodeWithFlatBuffers(const flatbuffers::Table* nodeOptions) { - auto node = cocos2d::ui::TabControl::create(); + auto node = axis::ui::TabControl::create(); auto taboptions = (flatbuffers::TabControlOption*)nodeOptions; setPropsWithFlatBuffers(node, nodeOptions); @@ -229,7 +229,7 @@ flatbuffers::Offset TabHeaderReader::createOptionsWithFlatBu int fontsize = 12; std::string text; - cocos2d::Color4B textColor(255, 255, 255, 255); + axis::Color4B textColor(255, 255, 255, 255); std::string fontName; int backgroundboxResourceType = 0; @@ -525,9 +525,9 @@ flatbuffers::Offset TabHeaderReader::createOptionsWithFlatBu return *(Offset
*)(&option); } -void TabHeaderReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* nodeOption) +void TabHeaderReader::setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* nodeOption) { - auto header = static_cast(node); + auto header = static_cast(node); auto options = (flatbuffers::TabHeaderOption*)nodeOption; header->setTitleFontSize(options->fontSize()); @@ -672,7 +672,7 @@ void TabHeaderReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuf if (backGroundSelectedfileExist) { header->loadTextureBackGroundSelected(backGroundSelectedTexturePath, - (cocos2d::ui::Widget::TextureResType)backGroundSelectedType); + (axis::ui::Widget::TextureResType)backGroundSelectedType); } // load frontCross image @@ -855,9 +855,9 @@ void TabHeaderReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuf } } -cocos2d::Node* TabHeaderReader::createNodeWithFlatBuffers(const flatbuffers::Table* nodeOptions) +axis::Node* TabHeaderReader::createNodeWithFlatBuffers(const flatbuffers::Table* nodeOptions) { - auto node = cocos2d::ui::TabHeader::create(); + auto node = axis::ui::TabHeader::create(); auto taboptions = (flatbuffers::TabHeaderOption*)nodeOptions; setPropsWithFlatBuffers(node, nodeOptions); @@ -943,12 +943,12 @@ flatbuffers::Offset TabItemReader::createTabItemOpti return *(&options); } -void TabItemReader::setPropsWithFlatBuffers(cocos2d::Node* /*node*/, const flatbuffers::Table* /*nodeOption*/) +void TabItemReader::setPropsWithFlatBuffers(axis::Node* /*node*/, const flatbuffers::Table* /*nodeOption*/) { // do nothing } -cocos2d::Node* TabItemReader::createNodeWithFlatBuffers(const flatbuffers::Table* /*nodeOptions*/) +axis::Node* TabItemReader::createNodeWithFlatBuffers(const flatbuffers::Table* /*nodeOptions*/) { // do nothing return nullptr; diff --git a/extensions/cocostudio/WidgetReader/TabControlReader/TabControlReader.h b/extensions/cocostudio/WidgetReader/TabControlReader/TabControlReader.h index f19d4ae3c3..0ea11cbd16 100644 --- a/extensions/cocostudio/WidgetReader/TabControlReader/TabControlReader.h +++ b/extensions/cocostudio/WidgetReader/TabControlReader/TabControlReader.h @@ -29,7 +29,7 @@ #include "WidgetReader/NodeReaderDefine.h" #include "WidgetReader/TabControlReader/CSTabControl_generated.h" -class TabControlReader : public cocos2d::Ref, public cocostudio::NodeReaderProtocol +class TabControlReader : public axis::Ref, public cocostudio::NodeReaderProtocol { DECLARE_CLASS_NODE_READER_INFO @@ -44,15 +44,15 @@ public: pugi::xml_node objectData, flatbuffers::FlatBufferBuilder* builder) override; - void setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* nodeOption) override; + void setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* nodeOption) override; - cocos2d::Node* createNodeWithFlatBuffers(const flatbuffers::Table* nodeOptions) override; + axis::Node* createNodeWithFlatBuffers(const flatbuffers::Table* nodeOptions) override; private: static TabControlReader* _tabReaderInstance; }; -class TabHeaderReader : public cocos2d::Ref, public cocostudio::NodeReaderProtocol +class TabHeaderReader : public axis::Ref, public cocostudio::NodeReaderProtocol { DECLARE_CLASS_NODE_READER_INFO @@ -67,17 +67,17 @@ public: pugi::xml_node objectData, flatbuffers::FlatBufferBuilder* builder) override; - void setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* nodeOption) override; + void setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* nodeOption) override; // CSArmatureNode - cocos2d::Node* createNodeWithFlatBuffers(const flatbuffers::Table* nodeOptions) override; + axis::Node* createNodeWithFlatBuffers(const flatbuffers::Table* nodeOptions) override; private: static TabHeaderReader* _tabheaderReaderInstance; int getResourceType(std::string_view key); }; -class TabItemReader : public cocos2d::Ref, public cocostudio::NodeReaderProtocol +class TabItemReader : public axis::Ref, public cocostudio::NodeReaderProtocol { DECLARE_CLASS_NODE_READER_INFO @@ -92,9 +92,9 @@ public: pugi::xml_node objectData, flatbuffers::FlatBufferBuilder* builder); - void setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* nodeOption) override; + void setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* nodeOption) override; - cocos2d::Node* createNodeWithFlatBuffers(const flatbuffers::Table* nodeOptions) override; + axis::Node* createNodeWithFlatBuffers(const flatbuffers::Table* nodeOptions) override; virtual flatbuffers::Offset createOptionsWithFlatBuffers( pugi::xml_node objectData, diff --git a/extensions/cocostudio/WidgetReader/TextAtlasReader/TextAtlasReader.cpp b/extensions/cocostudio/WidgetReader/TextAtlasReader/TextAtlasReader.cpp index c35dc4a6fe..f9155c9306 100644 --- a/extensions/cocostudio/WidgetReader/TextAtlasReader/TextAtlasReader.cpp +++ b/extensions/cocostudio/WidgetReader/TextAtlasReader/TextAtlasReader.cpp @@ -11,7 +11,7 @@ #include "flatbuffers/flatbuffers.h" -USING_NS_CC; +USING_NS_AX; using namespace ui; using namespace flatbuffers; @@ -45,7 +45,7 @@ void TextAtlasReader::destroyInstance() CC_SAFE_DELETE(instanceTextAtlasReader); } -void TextAtlasReader::setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* cocoNode) +void TextAtlasReader::setPropsFromBinary(axis::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* cocoNode) { this->beginSetBasicProperties(widget); @@ -220,7 +220,7 @@ Offset
TextAtlasReader::createOptionsWithFlatBuffers(pugi::xml_node objec return *(Offset
*)(&options); } -void TextAtlasReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* textAtlasOptions) +void TextAtlasReader::setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* textAtlasOptions) { TextAtlas* labelAtlas = static_cast(node); auto options = (TextAtlasOptions*)textAtlasOptions; diff --git a/extensions/cocostudio/WidgetReader/TextAtlasReader/TextAtlasReader.h b/extensions/cocostudio/WidgetReader/TextAtlasReader/TextAtlasReader.h index 2c91802983..5e00f8edaa 100644 --- a/extensions/cocostudio/WidgetReader/TextAtlasReader/TextAtlasReader.h +++ b/extensions/cocostudio/WidgetReader/TextAtlasReader/TextAtlasReader.h @@ -43,12 +43,12 @@ public: CC_DEPRECATED_ATTRIBUTE static void purge(); static void destroyInstance(); - virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options); - virtual void setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode); + virtual void setPropsFromJsonDictionary(axis::ui::Widget* widget, const rapidjson::Value& options); + virtual void setPropsFromBinary(axis::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode); flatbuffers::Offset createOptionsWithFlatBuffers(pugi::xml_node objectData, flatbuffers::FlatBufferBuilder* builder); - void setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* textAtlasOptions); - cocos2d::Node* createNodeWithFlatBuffers(const flatbuffers::Table* textAtlasOptions); + void setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* textAtlasOptions); + axis::Node* createNodeWithFlatBuffers(const flatbuffers::Table* textAtlasOptions); }; } // namespace cocostudio diff --git a/extensions/cocostudio/WidgetReader/TextBMFontReader/TextBMFontReader.cpp b/extensions/cocostudio/WidgetReader/TextBMFontReader/TextBMFontReader.cpp index 7fda84cd49..69fdba9c97 100644 --- a/extensions/cocostudio/WidgetReader/TextBMFontReader/TextBMFontReader.cpp +++ b/extensions/cocostudio/WidgetReader/TextBMFontReader/TextBMFontReader.cpp @@ -11,7 +11,7 @@ #include "flatbuffers/flatbuffers.h" -USING_NS_CC; +USING_NS_AX; using namespace ui; using namespace flatbuffers; @@ -42,7 +42,7 @@ void TextBMFontReader::destroyInstance() CC_SAFE_DELETE(instanceTextBMFontReader); } -void TextBMFontReader::setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* cocoNode) +void TextBMFontReader::setPropsFromBinary(axis::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* cocoNode) { this->beginSetBasicProperties(widget); @@ -186,7 +186,7 @@ Offset
TextBMFontReader::createOptionsWithFlatBuffers(pugi::xml_node obje return *(Offset
*)(&options); } -void TextBMFontReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* textBMFontOptions) +void TextBMFontReader::setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* textBMFontOptions) { TextBMFont* labelBMFont = static_cast(node); auto options = (TextBMFontOptions*)textBMFontOptions; diff --git a/extensions/cocostudio/WidgetReader/TextBMFontReader/TextBMFontReader.h b/extensions/cocostudio/WidgetReader/TextBMFontReader/TextBMFontReader.h index 293a9b80db..baf112a1e3 100644 --- a/extensions/cocostudio/WidgetReader/TextBMFontReader/TextBMFontReader.h +++ b/extensions/cocostudio/WidgetReader/TextBMFontReader/TextBMFontReader.h @@ -43,12 +43,12 @@ public: CC_DEPRECATED_ATTRIBUTE static void purge(); static void destroyInstance(); - virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options); - virtual void setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode); + virtual void setPropsFromJsonDictionary(axis::ui::Widget* widget, const rapidjson::Value& options); + virtual void setPropsFromBinary(axis::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode); flatbuffers::Offset createOptionsWithFlatBuffers(pugi::xml_node objectData, flatbuffers::FlatBufferBuilder* builder); - void setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* textBMFontOptions); - cocos2d::Node* createNodeWithFlatBuffers(const flatbuffers::Table* textBMFontOptions); + void setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* textBMFontOptions); + axis::Node* createNodeWithFlatBuffers(const flatbuffers::Table* textBMFontOptions); }; } // namespace cocostudio diff --git a/extensions/cocostudio/WidgetReader/TextFieldReader/TextFieldExReader.cpp b/extensions/cocostudio/WidgetReader/TextFieldReader/TextFieldExReader.cpp index 419b5c7b9d..adb491cf47 100644 --- a/extensions/cocostudio/WidgetReader/TextFieldReader/TextFieldExReader.cpp +++ b/extensions/cocostudio/WidgetReader/TextFieldReader/TextFieldExReader.cpp @@ -12,7 +12,7 @@ #include "flatbuffers/flatbuffers.h" -USING_NS_CC; +USING_NS_AX; using namespace ui; using namespace flatbuffers; @@ -272,7 +272,7 @@ Offset
TextFieldExReader::createOptionsWithFlatBuffers(pugi::xml_node obj return *(Offset
*)(&options); } -void TextFieldExReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* textFieldOptions) +void TextFieldExReader::setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* textFieldOptions) { TextFieldEx** pTextField = (TextFieldEx**)(node); auto options = (TextFieldExOptions*)textFieldOptions; diff --git a/extensions/cocostudio/WidgetReader/TextFieldReader/TextFieldExReader.h b/extensions/cocostudio/WidgetReader/TextFieldReader/TextFieldExReader.h index 7ffe4016bb..897db93379 100644 --- a/extensions/cocostudio/WidgetReader/TextFieldReader/TextFieldExReader.h +++ b/extensions/cocostudio/WidgetReader/TextFieldReader/TextFieldExReader.h @@ -30,7 +30,7 @@ namespace cocostudio { -class CCS_DLL TextFieldExReader : public cocos2d::Ref, public NodeReaderProtocol +class CCS_DLL TextFieldExReader : public axis::Ref, public NodeReaderProtocol { DECLARE_CLASS_NODE_READER_INFO @@ -45,8 +45,8 @@ public: flatbuffers::Offset createOptionsWithFlatBuffers(pugi::xml_node objectData, flatbuffers::FlatBufferBuilder* builder); - void setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* textFieldOptions); - cocos2d::Node* createNodeWithFlatBuffers(const flatbuffers::Table* textFieldOptions); + void setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* textFieldOptions); + axis::Node* createNodeWithFlatBuffers(const flatbuffers::Table* textFieldOptions); }; } // namespace cocostudio diff --git a/extensions/cocostudio/WidgetReader/TextFieldReader/TextFieldReader.cpp b/extensions/cocostudio/WidgetReader/TextFieldReader/TextFieldReader.cpp index 06343ee6d4..e378e7b01a 100644 --- a/extensions/cocostudio/WidgetReader/TextFieldReader/TextFieldReader.cpp +++ b/extensions/cocostudio/WidgetReader/TextFieldReader/TextFieldReader.cpp @@ -10,7 +10,7 @@ #include "flatbuffers/flatbuffers.h" -USING_NS_CC; +USING_NS_AX; using namespace ui; using namespace flatbuffers; @@ -49,7 +49,7 @@ void TextFieldReader::destroyInstance() CC_SAFE_DELETE(instanceTextFieldReader); } -void TextFieldReader::setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* cocoNode) +void TextFieldReader::setPropsFromBinary(axis::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* cocoNode) { this->beginSetBasicProperties(widget); @@ -260,7 +260,7 @@ Offset
TextFieldReader::createOptionsWithFlatBuffers(pugi::xml_node objec return *(Offset
*)(&options); } -void TextFieldReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* textFieldOptions) +void TextFieldReader::setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* textFieldOptions) { TextField* textField = static_cast(node); auto options = (TextFieldOptions*)textFieldOptions; diff --git a/extensions/cocostudio/WidgetReader/TextFieldReader/TextFieldReader.h b/extensions/cocostudio/WidgetReader/TextFieldReader/TextFieldReader.h index 2f5e509def..95d4bfa675 100644 --- a/extensions/cocostudio/WidgetReader/TextFieldReader/TextFieldReader.h +++ b/extensions/cocostudio/WidgetReader/TextFieldReader/TextFieldReader.h @@ -43,12 +43,12 @@ public: CC_DEPRECATED_ATTRIBUTE static void purge(); static void destroyInstance(); - virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options); - virtual void setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode); + virtual void setPropsFromJsonDictionary(axis::ui::Widget* widget, const rapidjson::Value& options); + virtual void setPropsFromBinary(axis::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode); flatbuffers::Offset createOptionsWithFlatBuffers(pugi::xml_node objectData, flatbuffers::FlatBufferBuilder* builder); - void setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* textFieldOptions); - cocos2d::Node* createNodeWithFlatBuffers(const flatbuffers::Table* textFieldOptions); + void setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* textFieldOptions); + axis::Node* createNodeWithFlatBuffers(const flatbuffers::Table* textFieldOptions); }; } // namespace cocostudio diff --git a/extensions/cocostudio/WidgetReader/TextReader/TextReader.cpp b/extensions/cocostudio/WidgetReader/TextReader/TextReader.cpp index 0045232720..cd2f194aad 100644 --- a/extensions/cocostudio/WidgetReader/TextReader/TextReader.cpp +++ b/extensions/cocostudio/WidgetReader/TextReader/TextReader.cpp @@ -12,7 +12,7 @@ #include "flatbuffers/flatbuffers.h" -USING_NS_CC; +USING_NS_AX; using namespace ui; using namespace flatbuffers; @@ -49,7 +49,7 @@ void TextReader::destroyInstance() CC_SAFE_DELETE(instanceTextReader); } -void TextReader::setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* cocoNode) +void TextReader::setPropsFromBinary(axis::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* cocoNode) { this->beginSetBasicProperties(widget); @@ -428,7 +428,7 @@ Offset
TextReader::createOptionsWithFlatBuffers(pugi::xml_node objectData return *(Offset
*)(&options); } -void TextReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* textOptions) +void TextReader::setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* textOptions) { Text* label = static_cast(node); auto options = (TextOptions*)textOptions; @@ -533,7 +533,7 @@ void TextReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers: label->setContentSize(contentSize); } - auto labelRenderer = dynamic_cast(label->getVirtualRenderer()); + auto labelRenderer = dynamic_cast(label->getVirtualRenderer()); if (options->boldEnabled()) labelRenderer->enableBold(); if (options->underlineEnabled()) diff --git a/extensions/cocostudio/WidgetReader/TextReader/TextReader.h b/extensions/cocostudio/WidgetReader/TextReader/TextReader.h index e753012b21..1fbf26280d 100644 --- a/extensions/cocostudio/WidgetReader/TextReader/TextReader.h +++ b/extensions/cocostudio/WidgetReader/TextReader/TextReader.h @@ -43,12 +43,12 @@ public: CC_DEPRECATED_ATTRIBUTE static void purge(); static void destroyInstance(); - virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options); - virtual void setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode); + virtual void setPropsFromJsonDictionary(axis::ui::Widget* widget, const rapidjson::Value& options); + virtual void setPropsFromBinary(axis::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode); flatbuffers::Offset createOptionsWithFlatBuffers(pugi::xml_node objectData, flatbuffers::FlatBufferBuilder* builder); - void setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* textOptions); - cocos2d::Node* createNodeWithFlatBuffers(const flatbuffers::Table* textOptions); + void setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* textOptions); + axis::Node* createNodeWithFlatBuffers(const flatbuffers::Table* textOptions); }; } // namespace cocostudio diff --git a/extensions/cocostudio/WidgetReader/UserCameraReader/UserCameraReader.cpp b/extensions/cocostudio/WidgetReader/UserCameraReader/UserCameraReader.cpp index d50a552b44..6aa9b289d4 100644 --- a/extensions/cocostudio/WidgetReader/UserCameraReader/UserCameraReader.cpp +++ b/extensions/cocostudio/WidgetReader/UserCameraReader/UserCameraReader.cpp @@ -35,7 +35,7 @@ #include "flatbuffers/flatbuffers.h" -USING_NS_CC; +USING_NS_AX; using namespace flatbuffers; namespace cocostudio @@ -399,7 +399,7 @@ Offset
UserCameraReader::createOptionsWithFlatBuffers(pugi::xml_node obje return *(Offset
*)(&options); } -void UserCameraReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* userCameraDOptions) +void UserCameraReader::setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* userCameraDOptions) { auto options = (UserCameraOptions*)userCameraDOptions; diff --git a/extensions/cocostudio/WidgetReader/UserCameraReader/UserCameraReader.h b/extensions/cocostudio/WidgetReader/UserCameraReader/UserCameraReader.h index cb2e3cc3c7..93dd8d11eb 100644 --- a/extensions/cocostudio/WidgetReader/UserCameraReader/UserCameraReader.h +++ b/extensions/cocostudio/WidgetReader/UserCameraReader/UserCameraReader.h @@ -32,7 +32,7 @@ namespace cocostudio { -class CCS_DLL UserCameraReader : public cocos2d::Ref, public NodeReaderProtocol +class CCS_DLL UserCameraReader : public axis::Ref, public NodeReaderProtocol { DECLARE_CLASS_NODE_READER_INFO @@ -47,12 +47,12 @@ public: flatbuffers::Offset createOptionsWithFlatBuffers(pugi::xml_node objectData, flatbuffers::FlatBufferBuilder* builder); - void setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* userCameraOptions); - cocos2d::Node* createNodeWithFlatBuffers(const flatbuffers::Table* userCameraOptions); + void setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* userCameraOptions); + axis::Node* createNodeWithFlatBuffers(const flatbuffers::Table* userCameraOptions); protected: int getResourceType(std::string_view key); - cocos2d::Vec2 getVec2Attribute(pugi::xml_attribute attribute) const; + axis::Vec2 getVec2Attribute(pugi::xml_attribute attribute) const; }; } // namespace cocostudio diff --git a/extensions/cocostudio/WidgetReader/WidgetReader.cpp b/extensions/cocostudio/WidgetReader/WidgetReader.cpp index 31d1f717f2..52e1175cc9 100644 --- a/extensions/cocostudio/WidgetReader/WidgetReader.cpp +++ b/extensions/cocostudio/WidgetReader/WidgetReader.cpp @@ -14,7 +14,7 @@ #include "base/ccUtils.h" #include "base/CCDirector.h" -USING_NS_CC; +USING_NS_AX; using namespace ui; using namespace flatbuffers; /**/ @@ -217,7 +217,7 @@ void WidgetReader::setPropsFromJsonDictionary(Widget* widget, const rapidjson::V { parameter = LinearLayoutParameter::create(); int gravity = DICTOOL->getIntValue_json(layoutParameterDic, P_Gravity); - ((LinearLayoutParameter*)parameter)->setGravity((cocos2d::ui::LinearLayoutParameter::LinearGravity)gravity); + ((LinearLayoutParameter*)parameter)->setGravity((axis::ui::LinearLayoutParameter::LinearGravity)gravity); break; } case 2: @@ -229,7 +229,7 @@ void WidgetReader::setPropsFromJsonDictionary(Widget* widget, const rapidjson::V const char* relativeToName = DICTOOL->getStringValue_json(layoutParameterDic, P_RelativeToName); rParameter->setRelativeToWidgetName(relativeToName); int align = DICTOOL->getIntValue_json(layoutParameterDic, P_Align); - rParameter->setAlign((cocos2d::ui::RelativeLayoutParameter::RelativeAlign)align); + rParameter->setAlign((axis::ui::RelativeLayoutParameter::RelativeAlign)align); break; } default: @@ -270,7 +270,7 @@ void WidgetReader::setColorPropsFromJsonDictionary(Widget* widget, const rapidjs widget->setFlippedY(flipY); } -void WidgetReader::beginSetBasicProperties(cocos2d::ui::Widget* widget) +void WidgetReader::beginSetBasicProperties(axis::ui::Widget* widget) { _position = widget->getPosition(); // set default color @@ -304,7 +304,7 @@ void WidgetReader::endSetBasicProperties(Widget* widget) std::string WidgetReader::getResourcePath(const rapidjson::Value& dict, std::string_view key, - cocos2d::ui::Widget::TextureResType texType) + axis::ui::Widget::TextureResType texType) { std::string_view jsonPath = GUIReader::getInstance()->getFilePath(); const char* imageFileName = DICTOOL->getStringValue_json(dict, key.data()); @@ -329,7 +329,7 @@ std::string WidgetReader::getResourcePath(const rapidjson::Value& dict, std::string WidgetReader::getResourcePath(CocoLoader* cocoLoader, stExpCocoNode* cocoNode, - cocos2d::ui::Widget::TextureResType texType) + axis::ui::Widget::TextureResType texType) { stExpCocoNode* backGroundChildren = cocoNode->GetChildArray(cocoLoader); std::string backgroundValue = backGroundChildren[0].GetValue(cocoLoader); @@ -360,7 +360,7 @@ std::string WidgetReader::getResourcePath(CocoLoader* cocoLoader, return imageFileName_tp; } -void WidgetReader::setAnchorPointForWidget(cocos2d::ui::Widget* widget, const rapidjson::Value& options) +void WidgetReader::setAnchorPointForWidget(axis::ui::Widget* widget, const rapidjson::Value& options) { bool isAnchorPointXExists = DICTOOL->checkObjectExist_json(options, P_AnchorPointX); float anchorPointXInFile; @@ -390,7 +390,7 @@ void WidgetReader::setAnchorPointForWidget(cocos2d::ui::Widget* widget, const ra } } -void WidgetReader::setPropsFromBinary(cocos2d::ui::Widget* widget, +void WidgetReader::setPropsFromBinary(axis::ui::Widget* widget, cocostudio::CocoLoader* cocoLoader, cocostudio::stExpCocoNode* cocoNode) { @@ -773,7 +773,7 @@ Offset
WidgetReader::createOptionsWithFlatBuffers(pugi::xml_node objectDa return *(Offset
*)(&options); } -void WidgetReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* widgetOptions) +void WidgetReader::setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* widgetOptions) { Widget* widget = static_cast(node); @@ -861,7 +861,7 @@ void WidgetReader::setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffer setLayoutComponentPropsWithFlatBuffers(widget, widgetOptions); } -void WidgetReader::setLayoutComponentPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* nodeOptions) +void WidgetReader::setLayoutComponentPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* nodeOptions) { auto layoutComponentTable = ((WidgetOptions*)nodeOptions)->layoutComponent(); if (!layoutComponentTable) @@ -940,7 +940,7 @@ Node* WidgetReader::createNodeWithFlatBuffers(const flatbuffers::Table* widgetOp return widget; } -std::string WidgetReader::getResourcePath(std::string_view path, cocos2d::ui::Widget::TextureResType texType) +std::string WidgetReader::getResourcePath(std::string_view path, axis::ui::Widget::TextureResType texType) { std::string_view filePath = GUIReader::getInstance()->getFilePath(); std::string imageFileName_tp; diff --git a/extensions/cocostudio/WidgetReader/WidgetReader.h b/extensions/cocostudio/WidgetReader/WidgetReader.h index a4c391e567..3b7f8dfff9 100644 --- a/extensions/cocostudio/WidgetReader/WidgetReader.h +++ b/extensions/cocostudio/WidgetReader/WidgetReader.h @@ -37,7 +37,7 @@ namespace cocostudio class CocoLoader; struct stExpCocoNode; -class CCS_DLL WidgetReader : public cocos2d::Ref, public WidgetReaderProtocol, public NodeReaderProtocol +class CCS_DLL WidgetReader : public axis::Ref, public WidgetReaderProtocol, public NodeReaderProtocol { DECLARE_CLASS_NODE_READER_INFO @@ -50,34 +50,34 @@ public: CC_DEPRECATED_ATTRIBUTE static void purge(); static void destroyInstance(); - virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options); + virtual void setPropsFromJsonDictionary(axis::ui::Widget* widget, const rapidjson::Value& options); - virtual void setColorPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options); + virtual void setColorPropsFromJsonDictionary(axis::ui::Widget* widget, const rapidjson::Value& options); - virtual void setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode); + virtual void setPropsFromBinary(axis::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode); /* flatbuffers refactoring */ flatbuffers::Offset createOptionsWithFlatBuffers(pugi::xml_node objectData, flatbuffers::FlatBufferBuilder* builder); - void setPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* widgetOptions); - void setLayoutComponentPropsWithFlatBuffers(cocos2d::Node* node, const flatbuffers::Table* widgetOptions); - cocos2d::Node* createNodeWithFlatBuffers(const flatbuffers::Table* widgetOptions); + void setPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* widgetOptions); + void setLayoutComponentPropsWithFlatBuffers(axis::Node* node, const flatbuffers::Table* widgetOptions); + axis::Node* createNodeWithFlatBuffers(const flatbuffers::Table* widgetOptions); /**/ protected: std::string getResourcePath(const rapidjson::Value& dict, std::string_view key, - cocos2d::ui::Widget::TextureResType texType); - void setAnchorPointForWidget(cocos2d::ui::Widget* widget, const rapidjson::Value& options); + axis::ui::Widget::TextureResType texType); + void setAnchorPointForWidget(axis::ui::Widget* widget, const rapidjson::Value& options); std::string getResourcePath(CocoLoader* cocoLoader, stExpCocoNode* pCocoNode, - cocos2d::ui::Widget::TextureResType texType); + axis::ui::Widget::TextureResType texType); - std::string getResourcePath(std::string_view path, cocos2d::ui::Widget::TextureResType texType); + std::string getResourcePath(std::string_view path, axis::ui::Widget::TextureResType texType); - void beginSetBasicProperties(cocos2d::ui::Widget* widget); - void endSetBasicProperties(cocos2d::ui::Widget* widget); + void beginSetBasicProperties(axis::ui::Widget* widget); + void endSetBasicProperties(axis::ui::Widget* widget); std::function valueToInt; std::function valueToBool; @@ -89,11 +89,11 @@ protected: float _positionPercentY; float _width; float _height; - cocos2d::Color3B _color; + axis::Color3B _color; int _opacity; - cocos2d::Vec2 _position; + axis::Vec2 _position; bool _isAdaptScreen; - cocos2d::Vec2 _originalAnchorPoint; + axis::Vec2 _originalAnchorPoint; }; // property const define @@ -241,7 +241,7 @@ extern const char* P_Path; else if (innerKey == P_Gravity) \ { \ linearParameter->setGravity( \ - (cocos2d::ui::LinearLayoutParameter::LinearGravity)valueToInt(innerValue)); \ + (axis::ui::LinearLayoutParameter::LinearGravity)valueToInt(innerValue)); \ } \ else if (innerKey == P_RelativeName) \ { \ @@ -254,7 +254,7 @@ extern const char* P_Path; else if (innerKey == P_Align) \ { \ relativeParameter->setAlign( \ - (cocos2d::ui::RelativeLayoutParameter::RelativeAlign)valueToInt(innerValue)); \ + (axis::ui::RelativeLayoutParameter::RelativeAlign)valueToInt(innerValue)); \ } \ else if (innerKey == P_MarginLeft) \ { \ diff --git a/extensions/cocostudio/WidgetReader/WidgetReaderProtocol.cpp b/extensions/cocostudio/WidgetReader/WidgetReaderProtocol.cpp index 365d4d4e22..fbd9f94b7b 100644 --- a/extensions/cocostudio/WidgetReader/WidgetReaderProtocol.cpp +++ b/extensions/cocostudio/WidgetReader/WidgetReaderProtocol.cpp @@ -3,8 +3,8 @@ namespace cocostudio { WidgetReaderProtocol::~WidgetReaderProtocol() {} -void WidgetReaderProtocol::setPropsFromProtocolBuffers(cocos2d::ui::Widget* widget, +void WidgetReaderProtocol::setPropsFromProtocolBuffers(axis::ui::Widget* widget, const protocolbuffers::NodeTree& nodeTree) {} -void WidgetReaderProtocol::setPropsFromXML(cocos2d::ui::Widget* widget, pugi::xml_node objectData) {} +void WidgetReaderProtocol::setPropsFromXML(axis::ui::Widget* widget, pugi::xml_node objectData) {} } // namespace cocostudio diff --git a/extensions/cocostudio/WidgetReader/WidgetReaderProtocol.h b/extensions/cocostudio/WidgetReader/WidgetReaderProtocol.h index 5c0e22bd14..cbd09a7137 100644 --- a/extensions/cocostudio/WidgetReader/WidgetReaderProtocol.h +++ b/extensions/cocostudio/WidgetReader/WidgetReaderProtocol.h @@ -27,7 +27,6 @@ #include "DictionaryHelper.h" #include "CocosStudioExport.h" - #include "pugixml/pugixml.hpp" #include "pugixml/pugiext.hpp" @@ -38,13 +37,12 @@ class NodeTree; class ResourceData; // please match in CSParseBinary.pb } // namespace protocolbuffers -namespace cocos2d -{ +NS_AX_BEGIN namespace ui { class Widget; } -} // namespace cocos2d +NS_AX_END // namespace axis namespace cocostudio { @@ -55,12 +53,12 @@ class CCS_DLL WidgetReaderProtocol { public: virtual ~WidgetReaderProtocol(); - virtual void setPropsFromJsonDictionary(cocos2d::ui::Widget* widget, const rapidjson::Value& options) = 0; - virtual void setPropsFromBinary(cocos2d::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode) = 0; + virtual void setPropsFromJsonDictionary(axis::ui::Widget* widget, const rapidjson::Value& options) = 0; + virtual void setPropsFromBinary(axis::ui::Widget* widget, CocoLoader* cocoLoader, stExpCocoNode* pCocoNode) = 0; virtual void setPropsFromProtocolBuffers( - cocos2d::ui::Widget* widget, + axis::ui::Widget* widget, const protocolbuffers::NodeTree& nodeTree); // cocos2d-x-3.3rc1@libccs19 spec - virtual void setPropsFromXML(cocos2d::ui::Widget* widget, + virtual void setPropsFromXML(axis::ui::Widget* widget, pugi::xml_node objectData); // cocos2d-x-3.3rc1@libccs19 spec }; } // namespace cocostudio diff --git a/extensions/fairygui/Controller.cpp b/extensions/fairygui/Controller.cpp index 87c4b8aaa2..9382210259 100644 --- a/extensions/fairygui/Controller.cpp +++ b/extensions/fairygui/Controller.cpp @@ -5,7 +5,7 @@ #include "utils/ToolSet.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; GController::GController() : changing(false), autoRadioGroupDepth(false), diff --git a/extensions/fairygui/DragDropManager.cpp b/extensions/fairygui/DragDropManager.cpp index a178ef985b..ff27bdcef4 100644 --- a/extensions/fairygui/DragDropManager.cpp +++ b/extensions/fairygui/DragDropManager.cpp @@ -3,7 +3,7 @@ #include "GRoot.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; DragDropManager* DragDropManager::_inst = nullptr; diff --git a/extensions/fairygui/DragDropManager.h b/extensions/fairygui/DragDropManager.h index f59d3a0474..8584157763 100644 --- a/extensions/fairygui/DragDropManager.h +++ b/extensions/fairygui/DragDropManager.h @@ -17,7 +17,7 @@ public: GLoader* getAgent() const { return _agent; } bool isDragging() const { return _agent->getParent() != nullptr; } - void startDrag(const std::string& icon, const cocos2d::Value& sourceData = cocos2d::Value::Null, int touchPointID = -1); + void startDrag(const std::string& icon, const axis::Value& sourceData = axis::Value::Null, int touchPointID = -1); void cancel(); private: @@ -26,7 +26,7 @@ private: static DragDropManager* _inst; GLoader* _agent; - cocos2d::Value _sourceData; + axis::Value _sourceData; }; NS_FGUI_END diff --git a/extensions/fairygui/FairyGUIMacros.h b/extensions/fairygui/FairyGUIMacros.h index a2f357471e..6168ede2eb 100644 --- a/extensions/fairygui/FairyGUIMacros.h +++ b/extensions/fairygui/FairyGUIMacros.h @@ -10,24 +10,24 @@ #define CALL_LATER_FUNC(__TYPE__,__FUNC__) \ void __selector_##__FUNC__(float dt) \ {\ - cocos2d::Director::getInstance()->getScheduler()->unschedule(CC_SCHEDULE_SELECTOR(__TYPE__::__selector_##__FUNC__), this);\ + axis::Director::getInstance()->getScheduler()->unschedule(CC_SCHEDULE_SELECTOR(__TYPE__::__selector_##__FUNC__), this);\ __FUNC__(); \ }\ void __FUNC__() #define CALL_LATER(__TYPE__,__FUNC__,...) \ -if (!cocos2d::Director::getInstance()->getScheduler()->isScheduled(CC_SCHEDULE_SELECTOR(__TYPE__::__selector_##__FUNC__), this))\ - cocos2d::Director::getInstance()->getScheduler()->schedule(CC_SCHEDULE_SELECTOR(__TYPE__::__selector_##__FUNC__), this, (__VA_ARGS__+0), false) +if (!axis::Director::getInstance()->getScheduler()->isScheduled(CC_SCHEDULE_SELECTOR(__TYPE__::__selector_##__FUNC__), this))\ + axis::Director::getInstance()->getScheduler()->schedule(CC_SCHEDULE_SELECTOR(__TYPE__::__selector_##__FUNC__), this, (__VA_ARGS__+0), false) #define CALL_LATER_CANCEL(__TYPE__,__FUNC__) \ -cocos2d::Director::getInstance()->getScheduler()->unschedule(CC_SCHEDULE_SELECTOR(__TYPE__::__selector_##__FUNC__), this) +axis::Director::getInstance()->getScheduler()->unschedule(CC_SCHEDULE_SELECTOR(__TYPE__::__selector_##__FUNC__), this) #define CALL_PER_FRAME(__TYPE__,__FUNC__) \ -if (!cocos2d::Director::getInstance()->getScheduler()->isScheduled(CC_SCHEDULE_SELECTOR(__TYPE__::__FUNC__), this))\ - cocos2d::Director::getInstance()->getScheduler()->schedule(CC_SCHEDULE_SELECTOR(__TYPE__::__FUNC__), this, 0, false) +if (!axis::Director::getInstance()->getScheduler()->isScheduled(CC_SCHEDULE_SELECTOR(__TYPE__::__FUNC__), this))\ + axis::Director::getInstance()->getScheduler()->schedule(CC_SCHEDULE_SELECTOR(__TYPE__::__FUNC__), this, 0, false) #define CALL_PER_FRAME_CANCEL(__TYPE__,__FUNC__) \ -cocos2d::Director::getInstance()->getScheduler()->unschedule(CC_SCHEDULE_SELECTOR(__TYPE__::__FUNC__), this) +axis::Director::getInstance()->getScheduler()->unschedule(CC_SCHEDULE_SELECTOR(__TYPE__::__FUNC__), this) #define UIRoot GRoot::getInstance() diff --git a/extensions/fairygui/GButton.cpp b/extensions/fairygui/GButton.cpp index c9bc76cda8..ac332beceb 100644 --- a/extensions/fairygui/GButton.cpp +++ b/extensions/fairygui/GButton.cpp @@ -8,7 +8,7 @@ #include "utils/ToolSet.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; const std::string GButton::UP = "up"; const std::string GButton::DOWN = "down"; @@ -68,7 +68,7 @@ void GButton::setSelectedIcon(const std::string& value) _iconObject->setIcon((_selected && _selectedIcon.length() > 0) ? _selectedIcon : _icon); } -cocos2d::Color3B GButton::getTitleColor() const +axis::Color3B GButton::getTitleColor() const { GTextField* tf = getTextField(); if (tf) @@ -77,7 +77,7 @@ cocos2d::Color3B GButton::getTitleColor() const return Color3B::BLACK; } -void GButton::setTitleColor(const cocos2d::Color3B& value) +void GButton::setTitleColor(const axis::Color3B& value) { GTextField* tf = getTextField(); if (tf) @@ -217,7 +217,7 @@ GTextField* GButton::getTextField() const return nullptr; } -cocos2d::Value GButton::getProp(ObjectPropID propId) +axis::Value GButton::getProp(ObjectPropID propId) { switch (propId) { @@ -240,7 +240,7 @@ cocos2d::Value GButton::getProp(ObjectPropID propId) } } -void GButton::setProp(ObjectPropID propId, const cocos2d::Value& value) +void GButton::setProp(ObjectPropID propId, const axis::Value& value) { switch (propId) { diff --git a/extensions/fairygui/GButton.h b/extensions/fairygui/GButton.h index 3904d91cfd..dca1251865 100644 --- a/extensions/fairygui/GButton.h +++ b/extensions/fairygui/GButton.h @@ -39,8 +39,8 @@ public: const std::string& getSelectedIcon() const { return _selectedIcon; } void setSelectedIcon(const std::string& value); - cocos2d::Color3B getTitleColor() const; - void setTitleColor(const cocos2d::Color3B& value); + axis::Color3B getTitleColor() const; + void setTitleColor(const axis::Color3B& value); int getTitleFontSize() const; void setTitleFontSize(int value); @@ -56,8 +56,8 @@ public: GTextField* getTextField() const; - virtual cocos2d::Value getProp(ObjectPropID propId) override; - virtual void setProp(ObjectPropID propId, const cocos2d::Value& value) override; + virtual axis::Value getProp(ObjectPropID propId) override; + virtual void setProp(ObjectPropID propId, const axis::Value& value) override; protected: virtual void constructExtension(ByteBuffer* buffer) override; diff --git a/extensions/fairygui/GComboBox.cpp b/extensions/fairygui/GComboBox.cpp index 84b29ae7bb..3898a4080a 100644 --- a/extensions/fairygui/GComboBox.cpp +++ b/extensions/fairygui/GComboBox.cpp @@ -6,7 +6,7 @@ #include "utils/ToolSet.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; // clang-format off GComboBox::GComboBox() @@ -46,7 +46,7 @@ void GComboBox::setTitle(const std::string& value) updateGear(6); } -const cocos2d::Color3B GComboBox::getTitleColor() const +const axis::Color3B GComboBox::getTitleColor() const { GTextField* tf = getTextField(); if (tf) @@ -55,7 +55,7 @@ const cocos2d::Color3B GComboBox::getTitleColor() const return Color3B::BLACK; } -void GComboBox::setTitleColor(const cocos2d::Color3B& value) +void GComboBox::setTitleColor(const axis::Color3B& value) { GTextField* tf = getTextField(); if (tf) @@ -251,7 +251,7 @@ GTextField* GComboBox::getTextField() const return nullptr; } -cocos2d::Value GComboBox::getProp(ObjectPropID propId) +axis::Value GComboBox::getProp(ObjectPropID propId) { switch (propId) { @@ -272,7 +272,7 @@ cocos2d::Value GComboBox::getProp(ObjectPropID propId) } } -void GComboBox::setProp(ObjectPropID propId, const cocos2d::Value& value) +void GComboBox::setProp(ObjectPropID propId, const axis::Value& value) { switch (propId) { diff --git a/extensions/fairygui/GComboBox.h b/extensions/fairygui/GComboBox.h index c0f1613319..f0dba0d86f 100644 --- a/extensions/fairygui/GComboBox.h +++ b/extensions/fairygui/GComboBox.h @@ -24,8 +24,8 @@ public: virtual const std::string& getText() const override { return getTitle(); } virtual void setText(const std::string& value) override { setTitle(value); } - const cocos2d::Color3B getTitleColor() const; - void setTitleColor(const cocos2d::Color3B& value); + const axis::Color3B getTitleColor() const; + void setTitleColor(const axis::Color3B& value); int getTitleFontSize() const; void setTitleFontSize(int value); @@ -55,8 +55,8 @@ public: GTextField* getTextField() const; - virtual cocos2d::Value getProp(ObjectPropID propId) override; - virtual void setProp(ObjectPropID propId, const cocos2d::Value& value) override; + virtual axis::Value getProp(ObjectPropID propId) override; + virtual void setProp(ObjectPropID propId, const axis::Value& value) override; protected: virtual void constructExtension(ByteBuffer* buffer) override; diff --git a/extensions/fairygui/GComponent.cpp b/extensions/fairygui/GComponent.cpp index 6fc683e5a4..bbfa0748de 100644 --- a/extensions/fairygui/GComponent.cpp +++ b/extensions/fairygui/GComponent.cpp @@ -10,7 +10,7 @@ #include "utils/ToolSet.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; using namespace std; @@ -535,12 +535,12 @@ void GComponent::setApexIndex(int value) } } -cocos2d::Node* GComponent::getMask() const +axis::Node* GComponent::getMask() const { return ((FUIContainer*)_displayObject)->getStencil(); } -void GComponent::setMask(cocos2d::Node* value, bool inverted) +void GComponent::setMask(axis::Node* value, bool inverted) { if (_maskOwner) { @@ -831,7 +831,7 @@ void GComponent::buildNativeDisplayList() } } -cocos2d::Vec2 GComponent::getSnappingPosition(const cocos2d::Vec2& pt) +axis::Vec2 GComponent::getSnappingPosition(const axis::Vec2& pt) { int cnt = (int)_children.size(); if (cnt == 0) diff --git a/extensions/fairygui/GComponent.h b/extensions/fairygui/GComponent.h index 7cc929fd4c..9e654d97a9 100644 --- a/extensions/fairygui/GComponent.h +++ b/extensions/fairygui/GComponent.h @@ -33,7 +33,7 @@ public: GObject* getChildByPath(const std::string& path) const; GObject* getChildInGroup(const GGroup* group, const std::string& name) const; GObject* getChildById(const std::string& id) const; - const cocos2d::Vector& getChildren() const { return _children; } + const axis::Vector& getChildren() const { return _children; } int getChildIndex(const GObject* child) const; void setChildIndex(GObject* child, int index); @@ -50,14 +50,14 @@ public: void addController(GController* c); GController* getControllerAt(int index) const; GController* getController(const std::string& name) const; - const cocos2d::Vector& getControllers() const { return _controllers; } + const axis::Vector& getControllers() const { return _controllers; } void removeController(GController* c); void applyController(GController* c); void applyAllControllers(); Transition* getTransition(const std::string& name) const; Transition* getTransitionAt(int index) const; - const cocos2d::Vector& getTransitions() const { return _transitions; } + const axis::Vector& getTransitions() const { return _transitions; } bool getOpaque() const { return _opaque; } void setOpaque(bool value); @@ -70,8 +70,8 @@ public: int getApexIndex() const { return _apexIndex; } void setApexIndex(int value); - cocos2d::Node* getMask() const; - void setMask(cocos2d::Node* value, bool inverted = false); + axis::Node* getMask() const; + void setMask(axis::Node* value, bool inverted = false); IHitTest* getHitArea() const { return _hitArea; } void setHitArea(IHitTest* value); @@ -86,8 +86,8 @@ public: void setBoundsChangedFlag(); void ensureBoundsCorrect(); - virtual GObject* hitTest(const cocos2d::Vec2& worldPoint, const cocos2d::Camera* camera) override; - virtual cocos2d::Vec2 getSnappingPosition(const cocos2d::Vec2& pt); + virtual GObject* hitTest(const axis::Vec2& worldPoint, const axis::Camera* camera) override; + virtual axis::Vec2 getSnappingPosition(const axis::Vec2& pt); //internal use void childSortingOrderChanged(GObject* child, int oldValue, int newValue); @@ -117,13 +117,13 @@ protected: void setupOverflow(OverflowType overflow); void setupScroll(ByteBuffer* buffer); - cocos2d::Vector _children; - cocos2d::Vector _controllers; - cocos2d::Vector _transitions; + axis::Vector _children; + axis::Vector _controllers; + axis::Vector _transitions; FUIInnerContainer* _container; ScrollPane* _scrollPane; Margin _margin; - cocos2d::Vec2 _alignOffset; + axis::Vec2 _alignOffset; ChildrenRenderOrder _childrenRenderOrder; int _apexIndex; bool _boundsChanged; diff --git a/extensions/fairygui/GGraph.cpp b/extensions/fairygui/GGraph.cpp index 430ce44d46..c0444e0a4f 100644 --- a/extensions/fairygui/GGraph.cpp +++ b/extensions/fairygui/GGraph.cpp @@ -3,9 +3,9 @@ #include "utils/ToolSet.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; -static void drawVertRect(cocos2d::DrawNode* shape, float x, float y, float width, float height, const cocos2d::Color4F& color) +static void drawVertRect(axis::DrawNode* shape, float x, float y, float width, float height, const axis::Color4F& color) { float mx = x + width; float my = y + height; @@ -40,7 +40,7 @@ void GGraph::handleInit() _displayObject = _shape; } -void GGraph::drawRect(float aWidth, float aHeight, int lineSize, const cocos2d::Color4F& lineColor, const cocos2d::Color4F& fillColor) +void GGraph::drawRect(float aWidth, float aHeight, int lineSize, const axis::Color4F& lineColor, const axis::Color4F& fillColor) { _type = 0; //avoid updateshape call in handleSizeChange setSize(aWidth, aHeight); @@ -51,7 +51,7 @@ void GGraph::drawRect(float aWidth, float aHeight, int lineSize, const cocos2d:: updateShape(); } -void GGraph::drawEllipse(float aWidth, float aHeight, int lineSize, const cocos2d::Color4F& lineColor, const cocos2d::Color4F& fillColor) +void GGraph::drawEllipse(float aWidth, float aHeight, int lineSize, const axis::Color4F& lineColor, const axis::Color4F& fillColor) { _type = 0; //avoid updateshape call in handleSizeChange setSize(aWidth, aHeight); @@ -62,7 +62,7 @@ void GGraph::drawEllipse(float aWidth, float aHeight, int lineSize, const cocos2 updateShape(); } -void GGraph::drawPolygon(int lineSize, const cocos2d::Color4F& lineColor, const cocos2d::Color4F& fillColor, const cocos2d::Vec2* points, int count) +void GGraph::drawPolygon(int lineSize, const axis::Color4F& lineColor, const axis::Color4F& fillColor, const axis::Vec2* points, int count) { _type = 3; _lineSize = lineSize; @@ -83,7 +83,7 @@ void GGraph::drawPolygon(int lineSize, const cocos2d::Color4F& lineColor, const updateShape(); } -void GGraph::drawRegularPolygon(int lineSize, const cocos2d::Color4F& lineColor, const cocos2d::Color4F& fillColor, +void GGraph::drawRegularPolygon(int lineSize, const axis::Color4F& lineColor, const axis::Color4F& fillColor, int sides, float startAngle, const float* distances, int count) { _type = 4; @@ -183,18 +183,18 @@ void GGraph::updateShape() } } -cocos2d::Color3B GGraph::getColor() const +axis::Color3B GGraph::getColor() const { return (Color3B)_fillColor; } -void GGraph::setColor(const cocos2d::Color3B& value) +void GGraph::setColor(const axis::Color3B& value) { _fillColor = Color4F(value, _fillColor.a); updateShape(); } -cocos2d::Value GGraph::getProp(ObjectPropID propId) +axis::Value GGraph::getProp(ObjectPropID propId) { switch (propId) { @@ -205,7 +205,7 @@ cocos2d::Value GGraph::getProp(ObjectPropID propId) } } -void GGraph::setProp(ObjectPropID propId, const cocos2d::Value& value) +void GGraph::setProp(ObjectPropID propId, const axis::Value& value) { switch (propId) { diff --git a/extensions/fairygui/GGraph.h b/extensions/fairygui/GGraph.h index 4116f0609c..0f08b74f9d 100644 --- a/extensions/fairygui/GGraph.h +++ b/extensions/fairygui/GGraph.h @@ -15,17 +15,17 @@ public: CREATE_FUNC(GGraph); - void drawRect(float aWidth, float aHeight, int lineSize, const cocos2d::Color4F& lineColor, const cocos2d::Color4F& fillColor); - void drawEllipse(float aWidth, float aHeight, int lineSize, const cocos2d::Color4F& lineColor, const cocos2d::Color4F& fillColor); - void drawPolygon(int lineSize, const cocos2d::Color4F& lineColor, const cocos2d::Color4F& fillColor, const cocos2d::Vec2* points, int count); - void drawRegularPolygon(int lineSize, const cocos2d::Color4F& lineColor, const cocos2d::Color4F& fillColor, int sides, float startAngle = 0, const float* distances = nullptr, int distanceCount = 0); + void drawRect(float aWidth, float aHeight, int lineSize, const axis::Color4F& lineColor, const axis::Color4F& fillColor); + void drawEllipse(float aWidth, float aHeight, int lineSize, const axis::Color4F& lineColor, const axis::Color4F& fillColor); + void drawPolygon(int lineSize, const axis::Color4F& lineColor, const axis::Color4F& fillColor, const axis::Vec2* points, int count); + void drawRegularPolygon(int lineSize, const axis::Color4F& lineColor, const axis::Color4F& fillColor, int sides, float startAngle = 0, const float* distances = nullptr, int distanceCount = 0); bool isEmpty() const { return _type == 0; } - cocos2d::Color3B getColor() const; - void setColor(const cocos2d::Color3B& value); + axis::Color3B getColor() const; + void setColor(const axis::Color3B& value); - virtual cocos2d::Value getProp(ObjectPropID propId) override; - virtual void setProp(ObjectPropID propId, const cocos2d::Value& value) override; + virtual axis::Value getProp(ObjectPropID propId) override; + virtual void setProp(ObjectPropID propId, const axis::Value& value) override; protected: virtual void handleInit() override; @@ -36,17 +36,17 @@ private: void updateShape(); int _type; - cocos2d::Color4F _lineColor; - cocos2d::Color4F _fillColor; + axis::Color4F _lineColor; + axis::Color4F _fillColor; int _lineSize; float* _cornerRadius; - std::vector* _polygonPoints; + std::vector* _polygonPoints; float _polygonPointOffset; int _sides; float _startAngle; std::vector* _distances; - cocos2d::DrawNode* _shape; + axis::DrawNode* _shape; }; NS_FGUI_END diff --git a/extensions/fairygui/GGroup.cpp b/extensions/fairygui/GGroup.cpp index b7ce09c763..49c926919d 100644 --- a/extensions/fairygui/GGroup.cpp +++ b/extensions/fairygui/GGroup.cpp @@ -3,7 +3,7 @@ #include "utils/ByteBuffer.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; GGroup::GGroup() : _layout(GroupLayoutType::NONE), _lineGap(0), diff --git a/extensions/fairygui/GImage.cpp b/extensions/fairygui/GImage.cpp index 85533c8673..b69bd11751 100644 --- a/extensions/fairygui/GImage.cpp +++ b/extensions/fairygui/GImage.cpp @@ -5,7 +5,7 @@ #include "utils/ToolSet.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; GImage::GImage() : _content(nullptr) { @@ -49,12 +49,12 @@ void GImage::handleGrayedChanged() ((FUISprite*)_content)->setGrayed(_finalGrayed); } -cocos2d::Color3B GImage::getColor() const +axis::Color3B GImage::getColor() const { return _content->getColor(); } -void GImage::setColor(const cocos2d::Color3B& value) +void GImage::setColor(const axis::Color3B& value) { _content->setColor(value); } @@ -99,7 +99,7 @@ void GImage::setFillAmount(float value) _content->setFillAmount(value); } -cocos2d::Value GImage::getProp(ObjectPropID propId) +axis::Value GImage::getProp(ObjectPropID propId) { switch (propId) { @@ -110,7 +110,7 @@ cocos2d::Value GImage::getProp(ObjectPropID propId) } } -void GImage::setProp(ObjectPropID propId, const cocos2d::Value& value) +void GImage::setProp(ObjectPropID propId, const axis::Value& value) { switch (propId) { diff --git a/extensions/fairygui/GImage.h b/extensions/fairygui/GImage.h index 354b23df3c..934f0a3016 100644 --- a/extensions/fairygui/GImage.h +++ b/extensions/fairygui/GImage.h @@ -21,8 +21,8 @@ public: FlipType getFlip() const; void setFlip(FlipType value); - cocos2d::Color3B getColor() const; - void setColor(const cocos2d::Color3B& value); + axis::Color3B getColor() const; + void setColor(const axis::Color3B& value); FillMethod getFillMethod() const; void setFillMethod(FillMethod value); @@ -38,8 +38,8 @@ public: virtual void constructFromResource() override; - virtual cocos2d::Value getProp(ObjectPropID propId) override; - virtual void setProp(ObjectPropID propId, const cocos2d::Value& value) override; + virtual axis::Value getProp(ObjectPropID propId) override; + virtual void setProp(ObjectPropID propId, const axis::Value& value) override; protected: virtual void handleInit() override; diff --git a/extensions/fairygui/GLabel.cpp b/extensions/fairygui/GLabel.cpp index c52385696a..1ba6813d99 100644 --- a/extensions/fairygui/GLabel.cpp +++ b/extensions/fairygui/GLabel.cpp @@ -7,7 +7,7 @@ #include "utils/ToolSet.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; GLabel::GLabel() : _titleObject(nullptr), @@ -48,7 +48,7 @@ void GLabel::setIcon(const std::string & value) updateGear(7); } -cocos2d::Color3B GLabel::getTitleColor() const +axis::Color3B GLabel::getTitleColor() const { GTextField* tf = getTextField(); if (tf) @@ -57,7 +57,7 @@ cocos2d::Color3B GLabel::getTitleColor() const return Color3B::BLACK; } -void GLabel::setTitleColor(const cocos2d::Color3B & value) +void GLabel::setTitleColor(const axis::Color3B & value) { GTextField* tf = getTextField(); if (tf) @@ -92,7 +92,7 @@ GTextField * GLabel::getTextField() const return nullptr; } -cocos2d::Value GLabel::getProp(ObjectPropID propId) +axis::Value GLabel::getProp(ObjectPropID propId) { switch (propId) { @@ -113,7 +113,7 @@ cocos2d::Value GLabel::getProp(ObjectPropID propId) } } -void GLabel::setProp(ObjectPropID propId, const cocos2d::Value& value) +void GLabel::setProp(ObjectPropID propId, const axis::Value& value) { switch (propId) { diff --git a/extensions/fairygui/GLabel.h b/extensions/fairygui/GLabel.h index 87542cb555..cea4feba30 100644 --- a/extensions/fairygui/GLabel.h +++ b/extensions/fairygui/GLabel.h @@ -26,16 +26,16 @@ public: virtual const std::string& getIcon() const override; virtual void setIcon(const std::string& value) override; - cocos2d::Color3B getTitleColor() const; - void setTitleColor(const cocos2d::Color3B& value); + axis::Color3B getTitleColor() const; + void setTitleColor(const axis::Color3B& value); int getTitleFontSize() const; void setTitleFontSize(int value); GTextField* getTextField() const; - virtual cocos2d::Value getProp(ObjectPropID propId) override; - virtual void setProp(ObjectPropID propId, const cocos2d::Value& value) override; + virtual axis::Value getProp(ObjectPropID propId) override; + virtual void setProp(ObjectPropID propId, const axis::Value& value) override; protected: virtual void constructExtension(ByteBuffer* buffer) override; diff --git a/extensions/fairygui/GList.cpp b/extensions/fairygui/GList.cpp index 496f704102..b90db9952f 100644 --- a/extensions/fairygui/GList.cpp +++ b/extensions/fairygui/GList.cpp @@ -6,7 +6,7 @@ #include "utils/ByteBuffer.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; using namespace std; @@ -122,7 +122,7 @@ void GList::setColumnGap(int value) } } -void GList::setAlign(cocos2d::TextHAlignment value) +void GList::setAlign(axis::TextHAlignment value) { if (_align != value) { @@ -133,7 +133,7 @@ void GList::setAlign(cocos2d::TextHAlignment value) } } -void GList::setVerticalAlign(cocos2d::TextVAlignment value) +void GList::setVerticalAlign(axis::TextVAlignment value) { if (_verticalAlign != value) { @@ -1113,7 +1113,7 @@ void GList::refreshVirtualList() setVirtualListChangedFlag(false); } -cocos2d::Vec2 GList::getSnappingPosition(const cocos2d::Vec2& pt) +axis::Vec2 GList::getSnappingPosition(const axis::Vec2& pt) { if (_virtual) { diff --git a/extensions/fairygui/GList.h b/extensions/fairygui/GList.h index 713e0ee95f..e14e5a4e43 100644 --- a/extensions/fairygui/GList.h +++ b/extensions/fairygui/GList.h @@ -37,11 +37,11 @@ public: int getLineGap() const { return _lineGap; } void setLineGap(int value); - cocos2d::TextHAlignment getAlign() const { return _align; } - void setAlign(cocos2d::TextHAlignment value); + axis::TextHAlignment getAlign() const { return _align; } + void setAlign(axis::TextHAlignment value); - cocos2d::TextVAlignment getVerticalAlign() const { return _verticalAlign; } - void setVerticalAlign(cocos2d::TextVAlignment value); + axis::TextVAlignment getVerticalAlign() const { return _verticalAlign; } + void setVerticalAlign(axis::TextVAlignment value); bool getAutoResizeItem() const { return _autoResizeItem; } void setAutoResizeItem(bool value); @@ -50,10 +50,10 @@ public: void setSelectionMode(ListSelectionMode value) { _selectionMode = value; } GObjectPool* getItemPool() const { return _pool; } - GObject* getFromPool() { return getFromPool(cocos2d::STD_STRING_EMPTY); } + GObject* getFromPool() { return getFromPool(axis::STD_STRING_EMPTY); } GObject* getFromPool(const std::string& url); void returnToPool(GObject* obj); - GObject* addItemFromPool() { return addItemFromPool(cocos2d::STD_STRING_EMPTY); } + GObject* addItemFromPool() { return addItemFromPool(axis::STD_STRING_EMPTY); } GObject* addItemFromPool(const std::string& url); GObject* addChildAt(GObject* child, int index) override; @@ -96,7 +96,7 @@ public: int childIndexToItemIndex(int index); int itemIndexToChildIndex(int index); - virtual cocos2d::Vec2 getSnappingPosition(const cocos2d::Vec2& pt) override; + virtual axis::Vec2 getSnappingPosition(const axis::Vec2& pt) override; ListItemRenderer itemRenderer; ListItemProvider itemProvider; @@ -149,8 +149,8 @@ private: int _columnCount; int _lineGap; int _columnGap; - cocos2d::TextHAlignment _align; - cocos2d::TextVAlignment _verticalAlign; + axis::TextHAlignment _align; + axis::TextVAlignment _verticalAlign; bool _autoResizeItem; ListSelectionMode _selectionMode; std::string _defaultItem; @@ -168,14 +168,14 @@ private: int _firstIndex; //the top left index int _curLineItemCount; //item count in one line int _curLineItemCount2; //item count in vertical direction,only pagination layout - cocos2d::Vec2 _itemSize; + axis::Vec2 _itemSize; int _virtualListChanged; //1-content changed, 2-size changed bool _eventLocked; uint32_t _itemInfoVer; struct ItemInfo { - cocos2d::Vec2 size; + axis::Vec2 size; GObject* obj; uint32_t updateFlag; bool selected; diff --git a/extensions/fairygui/GLoader.cpp b/extensions/fairygui/GLoader.cpp index 0c74ca57b5..db73e20854 100644 --- a/extensions/fairygui/GLoader.cpp +++ b/extensions/fairygui/GLoader.cpp @@ -7,7 +7,7 @@ #include "utils/ToolSet.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; GLoader::GLoader() : _autoSize(false), @@ -58,7 +58,7 @@ void GLoader::setURL(const std::string& value) updateGear(7); } -void GLoader::setAlign(cocos2d::TextHAlignment value) +void GLoader::setAlign(axis::TextHAlignment value) { if (_align != value) { @@ -67,7 +67,7 @@ void GLoader::setAlign(cocos2d::TextHAlignment value) } } -void GLoader::setVerticalAlign(cocos2d::TextVAlignment value) +void GLoader::setVerticalAlign(axis::TextVAlignment value) { if (_verticalAlign != value) { @@ -103,17 +103,17 @@ void GLoader::setShrinkOnly(bool value) } } -const cocos2d::Size & GLoader::getContentSize() +const axis::Size & GLoader::getContentSize() { return _content->getContentSize(); } -cocos2d::Color3B GLoader::getColor() const +axis::Color3B GLoader::getColor() const { return _content->getColor(); } -void GLoader::setColor(const cocos2d::Color3B& value) +void GLoader::setColor(const axis::Color3B& value) { _content->setColor(value); } @@ -288,11 +288,11 @@ void GLoader::loadExternal() onExternalLoadFailed(); } -void GLoader::freeExternal(cocos2d::SpriteFrame* spriteFrame) +void GLoader::freeExternal(axis::SpriteFrame* spriteFrame) { } -void GLoader::onExternalLoadSuccess(cocos2d::SpriteFrame* spriteFrame) +void GLoader::onExternalLoadSuccess(axis::SpriteFrame* spriteFrame) { _contentStatus = 4; _content->setSpriteFrame(spriteFrame); @@ -501,7 +501,7 @@ void GLoader::handleGrayedChanged() _content2->setGrayed(_finalGrayed); } -cocos2d::Value GLoader::getProp(ObjectPropID propId) +axis::Value GLoader::getProp(ObjectPropID propId) { switch (propId) { @@ -521,7 +521,7 @@ cocos2d::Value GLoader::getProp(ObjectPropID propId) } } -void GLoader::setProp(ObjectPropID propId, const cocos2d::Value& value) +void GLoader::setProp(ObjectPropID propId, const axis::Value& value) { switch (propId) { diff --git a/extensions/fairygui/GLoader.h b/extensions/fairygui/GLoader.h index 73d4a07af1..da32e82dd7 100644 --- a/extensions/fairygui/GLoader.h +++ b/extensions/fairygui/GLoader.h @@ -25,11 +25,11 @@ public: virtual const std::string& getIcon() const override { return _url; } virtual void setIcon(const std::string& value) override { setURL(value); } - cocos2d::TextHAlignment getAlign() const { return _align; } - void setAlign(cocos2d::TextHAlignment value); + axis::TextHAlignment getAlign() const { return _align; } + void setAlign(axis::TextHAlignment value); - cocos2d::TextVAlignment getVerticalAlign() const { return _verticalAlign; } - void setVerticalAlign(cocos2d::TextVAlignment value); + axis::TextVAlignment getVerticalAlign() const { return _verticalAlign; } + void setVerticalAlign(axis::TextVAlignment value); bool getAutoSize() const { return _autoSize; } void setAutoSize(bool value); @@ -40,10 +40,10 @@ public: bool isShrinkOnly() const { return _shrinkOnly; } void setShrinkOnly(bool value); - const cocos2d::Size& getContentSize(); + const axis::Size& getContentSize(); - cocos2d::Color3B getColor() const; - void setColor(const cocos2d::Color3B& value); + axis::Color3B getColor() const; + void setColor(const axis::Color3B& value); bool isPlaying() const { return _playing; } void setPlaying(bool value); @@ -65,19 +65,19 @@ public: GComponent* getComponent() const { return _content2; } - virtual cocos2d::Value getProp(ObjectPropID propId) override; - virtual void setProp(ObjectPropID propId, const cocos2d::Value& value) override; + virtual axis::Value getProp(ObjectPropID propId) override; + virtual void setProp(ObjectPropID propId, const axis::Value& value) override; protected: virtual void handleInit() override; virtual void handleSizeChanged() override; virtual void handleGrayedChanged() override; virtual void setup_beforeAdd(ByteBuffer* buffer, int beginPos) override; - virtual GObject* hitTest(const cocos2d::Vec2 & worldPoint, const cocos2d::Camera * camera) override; + virtual GObject* hitTest(const axis::Vec2 & worldPoint, const axis::Camera * camera) override; virtual void loadExternal(); - virtual void freeExternal(cocos2d::SpriteFrame* spriteFrame); - void onExternalLoadSuccess(cocos2d::SpriteFrame* spriteFrame); + virtual void freeExternal(axis::SpriteFrame* spriteFrame); + void onExternalLoadSuccess(axis::SpriteFrame* spriteFrame); void onExternalLoadFailed(); private: @@ -89,8 +89,8 @@ private: void clearErrorState(); std::string _url; - cocos2d::TextHAlignment _align; - cocos2d::TextVAlignment _verticalAlign; + axis::TextHAlignment _align; + axis::TextVAlignment _verticalAlign; bool _autoSize; LoaderFillType _fill; bool _shrinkOnly; diff --git a/extensions/fairygui/GLoader3D.cpp b/extensions/fairygui/GLoader3D.cpp index 7e94bd556d..03e4ecd8fd 100644 --- a/extensions/fairygui/GLoader3D.cpp +++ b/extensions/fairygui/GLoader3D.cpp @@ -9,7 +9,7 @@ #include "spine/spine-cocos2dx.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; GLoader3D::GLoader3D() : _autoSize(false), @@ -57,7 +57,7 @@ void GLoader3D::setURL(const std::string& value) updateGear(7); } -void GLoader3D::setAlign(cocos2d::TextHAlignment value) +void GLoader3D::setAlign(axis::TextHAlignment value) { if (_align != value) { @@ -66,7 +66,7 @@ void GLoader3D::setAlign(cocos2d::TextHAlignment value) } } -void GLoader3D::setVerticalAlign(cocos2d::TextVAlignment value) +void GLoader3D::setVerticalAlign(axis::TextVAlignment value) { if (_verticalAlign != value) { @@ -102,12 +102,12 @@ void GLoader3D::setShrinkOnly(bool value) } } -cocos2d::Color3B GLoader3D::getColor() const +axis::Color3B GLoader3D::getColor() const { return _color; } -void GLoader3D::setColor(const cocos2d::Color3B& value) +void GLoader3D::setColor(const axis::Color3B& value) { _color = value; if (_content != nullptr) @@ -155,7 +155,7 @@ void GLoader3D::setLoop(bool value) onChange(); } -void GLoader3D::setContent(cocos2d::Node* value) +void GLoader3D::setContent(axis::Node* value) { setURL(STD_STRING_EMPTY); @@ -292,11 +292,11 @@ void GLoader3D::loadExternal() { } -void GLoader3D::freeExternal(cocos2d::SpriteFrame* spriteFrame) +void GLoader3D::freeExternal(axis::SpriteFrame* spriteFrame) { } -void GLoader3D::onExternalLoadSuccess(cocos2d::SpriteFrame* spriteFrame) +void GLoader3D::onExternalLoadSuccess(axis::SpriteFrame* spriteFrame) { } @@ -422,7 +422,7 @@ void GLoader3D::handleGrayedChanged() GObject::handleGrayedChanged(); } -cocos2d::Value GLoader3D::getProp(ObjectPropID propId) +axis::Value GLoader3D::getProp(ObjectPropID propId) { switch (propId) { @@ -439,7 +439,7 @@ cocos2d::Value GLoader3D::getProp(ObjectPropID propId) } } -void GLoader3D::setProp(ObjectPropID propId, const cocos2d::Value& value) +void GLoader3D::setProp(ObjectPropID propId, const axis::Value& value) { switch (propId) { diff --git a/extensions/fairygui/GLoader3D.h b/extensions/fairygui/GLoader3D.h index 55ed67e5c7..2b28213608 100644 --- a/extensions/fairygui/GLoader3D.h +++ b/extensions/fairygui/GLoader3D.h @@ -24,11 +24,11 @@ public: virtual const std::string& getIcon() const override { return _url; } virtual void setIcon(const std::string& value) override { setURL(value); } - cocos2d::TextHAlignment getAlign() const { return _align; } - void setAlign(cocos2d::TextHAlignment value); + axis::TextHAlignment getAlign() const { return _align; } + void setAlign(axis::TextHAlignment value); - cocos2d::TextVAlignment getVerticalAlign() const { return _verticalAlign; } - void setVerticalAlign(cocos2d::TextVAlignment value); + axis::TextVAlignment getVerticalAlign() const { return _verticalAlign; } + void setVerticalAlign(axis::TextVAlignment value); bool getAutoSize() const { return _autoSize; } void setAutoSize(bool value); @@ -39,11 +39,11 @@ public: bool isShrinkOnly() const { return _shrinkOnly; } void setShrinkOnly(bool value); - const cocos2d::Node* getContent() { return _content; } - void setContent(cocos2d::Node* value); + const axis::Node* getContent() { return _content; } + void setContent(axis::Node* value); - cocos2d::Color3B getColor() const; - void setColor(const cocos2d::Color3B& value); + axis::Color3B getColor() const; + void setColor(const axis::Color3B& value); bool isPlaying() const { return _playing; } void setPlaying(bool value); @@ -60,19 +60,19 @@ public: bool getLoop() const { return _loop; } void setLoop(bool value); - virtual cocos2d::Value getProp(ObjectPropID propId) override; - virtual void setProp(ObjectPropID propId, const cocos2d::Value& value) override; + virtual axis::Value getProp(ObjectPropID propId) override; + virtual void setProp(ObjectPropID propId, const axis::Value& value) override; protected: virtual void handleInit() override; virtual void handleSizeChanged() override; virtual void handleGrayedChanged() override; virtual void setup_beforeAdd(ByteBuffer* buffer, int beginPos) override; - virtual GObject* hitTest(const cocos2d::Vec2 & worldPoint, const cocos2d::Camera * camera) override; + virtual GObject* hitTest(const axis::Vec2 & worldPoint, const axis::Camera * camera) override; virtual void loadExternal(); - virtual void freeExternal(cocos2d::SpriteFrame* spriteFrame); - void onExternalLoadSuccess(cocos2d::SpriteFrame* spriteFrame); + virtual void freeExternal(axis::SpriteFrame* spriteFrame); + void onExternalLoadSuccess(axis::SpriteFrame* spriteFrame); void onExternalLoadFailed(); void onChange(); @@ -87,8 +87,8 @@ private: void clearErrorState(); std::string _url; - cocos2d::TextHAlignment _align; - cocos2d::TextVAlignment _verticalAlign; + axis::TextHAlignment _align; + axis::TextVAlignment _verticalAlign; bool _autoSize; LoaderFillType _fill; bool _shrinkOnly; @@ -99,10 +99,10 @@ private: bool _loop; std::string _animationName; std::string _skinName; - cocos2d::Color3B _color; + axis::Color3B _color; FUIContainer* _container; - cocos2d::Node* _content; + axis::Node* _content; }; NS_FGUI_END diff --git a/extensions/fairygui/GMovieClip.cpp b/extensions/fairygui/GMovieClip.cpp index ee7d94b37c..e3e7f3c7ba 100644 --- a/extensions/fairygui/GMovieClip.cpp +++ b/extensions/fairygui/GMovieClip.cpp @@ -5,7 +5,7 @@ #include "utils/ToolSet.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; GMovieClip::GMovieClip() : _playAction(nullptr), @@ -90,7 +90,7 @@ void GMovieClip::setFlip(FlipType value) _content->setFlippedY(value == FlipType::VERTICAL || value == FlipType::BOTH); } -void GMovieClip::setColor(const cocos2d::Color3B& value) +void GMovieClip::setColor(const axis::Color3B& value) { _content->setColor(value); } @@ -102,7 +102,7 @@ void GMovieClip::handleGrayedChanged() ((FUISprite*)_content)->setGrayed(_finalGrayed); } -cocos2d::Value GMovieClip::getProp(ObjectPropID propId) +axis::Value GMovieClip::getProp(ObjectPropID propId) { switch (propId) { @@ -119,7 +119,7 @@ cocos2d::Value GMovieClip::getProp(ObjectPropID propId) } } -void GMovieClip::setProp(ObjectPropID propId, const cocos2d::Value& value) +void GMovieClip::setProp(ObjectPropID propId, const axis::Value& value) { switch (propId) { @@ -195,7 +195,7 @@ ActionMovieClip::~ActionMovieClip() CC_SAFE_RELEASE(_animation); } -ActionMovieClip* ActionMovieClip::create(cocos2d::Animation* animation, float repeatDelay, bool swing) +ActionMovieClip* ActionMovieClip::create(axis::Animation* animation, float repeatDelay, bool swing) { ActionMovieClip* action = new ActionMovieClip(); action->setAnimation(animation, repeatDelay, swing); @@ -417,7 +417,7 @@ void ActionMovieClip::setPlaySettings(int start, int end, int times, int endAt, setFrame(start); } -void ActionMovieClip::setAnimation(cocos2d::Animation* animation, float repeatDelay, bool swing) +void ActionMovieClip::setAnimation(axis::Animation* animation, float repeatDelay, bool swing) { if (_animation != animation) { diff --git a/extensions/fairygui/GMovieClip.h b/extensions/fairygui/GMovieClip.h index 6032e6280a..5a6d140489 100644 --- a/extensions/fairygui/GMovieClip.h +++ b/extensions/fairygui/GMovieClip.h @@ -31,16 +31,16 @@ public: FlipType getFlip() const; void setFlip(FlipType value); - cocos2d::Color3B getColor() const { return _content->getColor(); } - void setColor(const cocos2d::Color3B& value); + axis::Color3B getColor() const { return _content->getColor(); } + void setColor(const axis::Color3B& value); //from start to end(-1 means ending) repeat times(0 means infinite loop) when all is over, stopping at endAt(-1 means same value of end) void setPlaySettings(int start = 0, int end = -1, int times = 0, int endAt = -1, std::function completeCallback = nullptr); virtual void constructFromResource() override; - virtual cocos2d::Value getProp(ObjectPropID propId) override; - virtual void setProp(ObjectPropID propId, const cocos2d::Value& value) override; + virtual axis::Value getProp(ObjectPropID propId) override; + virtual void setProp(ObjectPropID propId, const axis::Value& value) override; protected: virtual void handleInit() override; @@ -48,21 +48,21 @@ protected: virtual void handleGrayedChanged() override; private: - cocos2d::Sprite* _content; + axis::Sprite* _content; ActionMovieClip* _playAction; bool _playing; }; -class ActionMovieClip : public cocos2d::Action +class ActionMovieClip : public axis::Action { public: - static ActionMovieClip* create(cocos2d::Animation *animation, float repeatDelay = 0, bool swing =false); + static ActionMovieClip* create(axis::Animation *animation, float repeatDelay = 0, bool swing =false); ActionMovieClip(); ~ActionMovieClip(); virtual bool isDone() const override; virtual void step(float dt) override; - virtual void startWithTarget(cocos2d::Node *target) override; + virtual void startWithTarget(axis::Node *target) override; virtual ActionMovieClip* reverse() const override; virtual ActionMovieClip* clone() const override; @@ -75,12 +75,12 @@ public: void advance(float time); void setPlaySettings(int start, int end, int times, int endAt, std::function completeCallback = nullptr); - void setAnimation(cocos2d::Animation *animation, float repeatDelay = 0, bool swing = false); + void setAnimation(axis::Animation *animation, float repeatDelay = 0, bool swing = false); private: void drawFrame(); - cocos2d::Animation* _animation; + axis::Animation* _animation; int _frame; float _frameElapsed; int _repeatedCount; diff --git a/extensions/fairygui/GObject.cpp b/extensions/fairygui/GObject.cpp index f822a89e46..b089044ed6 100644 --- a/extensions/fairygui/GObject.cpp +++ b/extensions/fairygui/GObject.cpp @@ -11,7 +11,7 @@ #include "utils/WeakPtr.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; GObject* GObject::_draggingObject = nullptr; @@ -426,7 +426,7 @@ void GObject::setDraggable(bool value) } } -void GObject::setDragBounds(const cocos2d::Rect& value) +void GObject::setDragBounds(const axis::Rect& value) { if (_dragBounds == nullptr) _dragBounds = new Rect(); @@ -464,7 +464,7 @@ Vec2 GObject::localToGlobal(const Vec2& pt) return UIRoot->worldToRoot(pt2); } -cocos2d::Rect GObject::localToGlobal(const cocos2d::Rect& rect) +axis::Rect GObject::localToGlobal(const axis::Rect& rect) { Rect ret; Vec2 v = localToGlobal(rect.origin); @@ -489,7 +489,7 @@ Vec2 GObject::globalToLocal(const Vec2& pt) return pt2; } -cocos2d::Rect GObject::globalToLocal(const cocos2d::Rect& rect) +axis::Rect GObject::globalToLocal(const axis::Rect& rect) { Rect ret; Vec2 v = globalToLocal(rect.origin); @@ -501,7 +501,7 @@ cocos2d::Rect GObject::globalToLocal(const cocos2d::Rect& rect) return ret; } -cocos2d::Rect GObject::transformRect(const cocos2d::Rect& rect, GObject* targetSpace) +axis::Rect GObject::transformRect(const axis::Rect& rect, GObject* targetSpace) { if (targetSpace == this) return rect; @@ -672,7 +672,7 @@ void GObject::removeFromParent() _parent->removeChild(this); } -cocos2d::Value GObject::getProp(ObjectPropID propId) +axis::Value GObject::getProp(ObjectPropID propId) { switch (propId) { @@ -685,7 +685,7 @@ cocos2d::Value GObject::getProp(ObjectPropID propId) } } -void GObject::setProp(ObjectPropID propId, const cocos2d::Value& value) +void GObject::setProp(ObjectPropID propId, const axis::Value& value) { switch (propId) { diff --git a/extensions/fairygui/GObject.h b/extensions/fairygui/GObject.h index 76d817e28d..3f0ad12ef4 100644 --- a/extensions/fairygui/GObject.h +++ b/extensions/fairygui/GObject.h @@ -31,7 +31,7 @@ public: void setX(float value); float getY() const { return _position.y; }; void setY(float value); - const cocos2d::Vec2& getPosition() const { return _position; } + const axis::Vec2& getPosition() const { return _position; } void setPosition(float xv, float yv); float getXMin() const; void setXMin(float value); @@ -45,13 +45,13 @@ public: void setWidth(float value) { setSize(value, _rawSize.height); } float getHeight() const { return _size.height; } void setHeight(float value) { setSize(_rawSize.width, value); } - const cocos2d::Size& getSize() const { return _size; } + const axis::Size& getSize() const { return _size; } void setSize(float wv, float hv, bool ignorePivot = false); void center(bool restraint = false); void makeFullScreen(); - const cocos2d::Vec2& getPivot() const { return _pivot; } + const axis::Vec2& getPivot() const { return _pivot; } void setPivot(float xv, float yv, bool asAnchor = false); bool isPivotAsAnchor() const { return _pivotAsAnchor; } @@ -59,7 +59,7 @@ public: void setScaleX(float value) { setScale(value, _scale.y); } float getScaleY() const { return _scale.y; } void setScaleY(float value) { setScale(_scale.x, value); } - const cocos2d::Vec2& getScale() const { return _scale; } + const axis::Vec2& getScale() const { return _scale; } void setScale(float xv, float yv); float getSkewX() const { return _displayObject->getSkewX(); } @@ -100,13 +100,13 @@ public: void* getData() const { return _data; }; void setData(void* value) { _data = value; } - const cocos2d::Value& getCustomData() const { return _customData; } - void setCustomData(const cocos2d::Value& value) { _customData = value; } + const axis::Value& getCustomData() const { return _customData; } + void setCustomData(const axis::Value& value) { _customData = value; } bool isDraggable() const { return _draggable; } void setDraggable(bool value); - cocos2d::Rect* getDragBounds() const { return _dragBounds; } - void setDragBounds(const cocos2d::Rect& value); + axis::Rect* getDragBounds() const { return _dragBounds; } + void setDragBounds(const axis::Rect& value); void startDrag(int touchId = -1); void stopDrag(); @@ -115,11 +115,11 @@ public: PackageItem* getPackageItem() const { return _packageItem; } - cocos2d::Vec2 globalToLocal(const cocos2d::Vec2& pt); - cocos2d::Rect globalToLocal(const cocos2d::Rect& rect); - cocos2d::Vec2 localToGlobal(const cocos2d::Vec2& pt); - cocos2d::Rect localToGlobal(const cocos2d::Rect& rect); - cocos2d::Rect transformRect(const cocos2d::Rect& rect, GObject* targetSpace); + axis::Vec2 globalToLocal(const axis::Vec2& pt); + axis::Rect globalToLocal(const axis::Rect& rect); + axis::Vec2 localToGlobal(const axis::Vec2& pt); + axis::Rect localToGlobal(const axis::Rect& rect); + axis::Rect transformRect(const axis::Rect& rect, GObject* targetSpace); Relations* relations() { return _relations; } void addRelation(GObject* target, RelationType relationType, bool usePercent = false); @@ -132,7 +132,7 @@ public: GComponent* getParent() const { return _parent; } GObject* findParent() const; - cocos2d::Node* displayObject() const { return _displayObject; } + axis::Node* displayObject() const { return _displayObject; } GRoot* getRoot() const; bool onStage() const; void removeFromParent(); @@ -141,11 +141,11 @@ public: void addClickListener(const EventCallback& callback, const EventTag& tag) { addEventListener(UIEventType::Click, callback, tag); } void removeClickListener(const EventTag& tag) { removeEventListener(UIEventType::Click, tag); } - virtual cocos2d::Value getProp(ObjectPropID propId); - virtual void setProp(ObjectPropID propId, const cocos2d::Value& value); + virtual axis::Value getProp(ObjectPropID propId); + virtual void setProp(ObjectPropID propId, const axis::Value& value); virtual void constructFromResource(); - virtual GObject* hitTest(const cocos2d::Vec2& worldPoint, const cocos2d::Camera* camera); + virtual GObject* hitTest(const axis::Vec2& worldPoint, const axis::Camera* camera); template T* as(); @@ -154,10 +154,10 @@ public: std::string id; std::string name; - cocos2d::Size sourceSize; - cocos2d::Size initSize; - cocos2d::Size minSize; - cocos2d::Size maxSize; + axis::Size sourceSize; + axis::Size initSize; + axis::Size minSize; + axis::Size maxSize; //internal use bool _underConstruct; @@ -166,7 +166,7 @@ public: protected: GComponent* _parent; - cocos2d::Node* _displayObject; + axis::Node* _displayObject; PackageItem* _packageItem; int _sizeImplType; bool _touchDisabled; @@ -193,11 +193,11 @@ protected: void setSizeDirectly(float wv, float hv); - cocos2d::Vec2 _position; - cocos2d::Size _size; - cocos2d::Size _rawSize; - cocos2d::Vec2 _pivot; - cocos2d::Vec2 _scale; + axis::Vec2 _position; + axis::Size _size; + axis::Size _rawSize; + axis::Vec2 _pivot; + axis::Vec2 _scale; bool _pivotAsAnchor; float _alpha; float _rotation; @@ -211,7 +211,7 @@ private: bool internalVisible2() const; bool internalVisible3() const; void updateGearFromRelations(int index, float dx, float dy); - void transformRectPoint(const cocos2d::Vec2& pt, float rect[], GObject* targetSpace); + void transformRectPoint(const axis::Vec2& pt, float rect[], GObject* targetSpace); void initDrag(); void dragBegin(int touchId); @@ -234,9 +234,9 @@ private: Relations* _relations; GearBase* _gears[10]; void* _data; - cocos2d::Value _customData; - cocos2d::Vec2 _dragTouchStartPos; - cocos2d::Rect* _dragBounds; + axis::Value _customData; + axis::Vec2 _dragTouchStartPos; + axis::Rect* _dragBounds; bool _dragTesting; GTreeNode* _treeNode; diff --git a/extensions/fairygui/GObjectPool.cpp b/extensions/fairygui/GObjectPool.cpp index 786641ffcb..428e9d5d78 100644 --- a/extensions/fairygui/GObjectPool.cpp +++ b/extensions/fairygui/GObjectPool.cpp @@ -3,7 +3,7 @@ #include "UIPackage.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; GObjectPool::GObjectPool() { diff --git a/extensions/fairygui/GObjectPool.h b/extensions/fairygui/GObjectPool.h index cd48917d0a..9a52873f41 100644 --- a/extensions/fairygui/GObjectPool.h +++ b/extensions/fairygui/GObjectPool.h @@ -18,7 +18,7 @@ public: void returnObject(GObject* obj); private: - std::unordered_map> _pool; + std::unordered_map> _pool; }; NS_FGUI_END diff --git a/extensions/fairygui/GProgressBar.cpp b/extensions/fairygui/GProgressBar.cpp index 82944778fc..2bb073dbf1 100644 --- a/extensions/fairygui/GProgressBar.cpp +++ b/extensions/fairygui/GProgressBar.cpp @@ -6,7 +6,7 @@ #include "utils/ByteBuffer.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; GProgressBar::GProgressBar() : _min(0), diff --git a/extensions/fairygui/GRichTextField.cpp b/extensions/fairygui/GRichTextField.cpp index 89b1a63fe9..24deec21b1 100644 --- a/extensions/fairygui/GRichTextField.cpp +++ b/extensions/fairygui/GRichTextField.cpp @@ -4,7 +4,7 @@ #include "utils/html/HtmlObject.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; GRichTextField::GRichTextField() : _richText(nullptr), @@ -117,7 +117,7 @@ void GRichTextField::handleSizeChanged() } } -GObject* GRichTextField::hitTest(const cocos2d::Vec2& worldPoint, const cocos2d::Camera* camera) +GObject* GRichTextField::hitTest(const axis::Vec2& worldPoint, const axis::Camera* camera) { const std::vector& objs = _richText->getControls(); for (auto &obj : objs) diff --git a/extensions/fairygui/GRichTextField.h b/extensions/fairygui/GRichTextField.h index 31eb78bd5d..45db8ee6d8 100644 --- a/extensions/fairygui/GRichTextField.h +++ b/extensions/fairygui/GRichTextField.h @@ -26,7 +26,7 @@ public: HtmlObject* getControl(const std::string& name) const; - virtual GObject* hitTest(const cocos2d::Vec2& worldPoint, const cocos2d::Camera* camera) override; + virtual GObject* hitTest(const axis::Vec2& worldPoint, const axis::Camera* camera) override; protected: virtual void handleInit() override; virtual void handleSizeChanged() override; diff --git a/extensions/fairygui/GRoot.cpp b/extensions/fairygui/GRoot.cpp index a98bb932ed..4325968dc7 100644 --- a/extensions/fairygui/GRoot.cpp +++ b/extensions/fairygui/GRoot.cpp @@ -4,10 +4,10 @@ #include "UIPackage.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; #if COCOS2D_VERSION < 0x00040000 -using namespace cocos2d::experimental; +using namespace axis::experimental; #endif GRoot* GRoot::_inst = nullptr; @@ -216,7 +216,7 @@ bool GRoot::isModalWaiting() return (_modalWaitPane != nullptr) && _modalWaitPane->onStage(); } -cocos2d::Vec2 GRoot::getTouchPosition(int touchId) +axis::Vec2 GRoot::getTouchPosition(int touchId) { return _inputProcessor->getTouchPosition(touchId); } @@ -226,16 +226,16 @@ GObject* GRoot::getTouchTarget() return _inputProcessor->getRecentInput()->getTarget(); } -cocos2d::Vec2 GRoot::worldToRoot(const cocos2d::Vec2 &pt) +axis::Vec2 GRoot::worldToRoot(const axis::Vec2 &pt) { - cocos2d::Vec2 pos = _displayObject->convertToNodeSpace(pt); + axis::Vec2 pos = _displayObject->convertToNodeSpace(pt); pos.y = getHeight() - pos.y; return pos; } -cocos2d::Vec2 GRoot::rootToWorld(const cocos2d::Vec2 &pt) +axis::Vec2 GRoot::rootToWorld(const axis::Vec2 &pt) { - cocos2d::Vec2 pos = pt; + axis::Vec2 pos = pt; pos.y = getHeight() - pos.y; pos = _displayObject->convertToWorldSpace(pos); return pos; @@ -377,7 +377,7 @@ bool GRoot::hasAnyPopup() return !_popupStack.empty(); } -cocos2d::Vec2 GRoot::getPoupPosition(GObject* popup, GObject* target, PopupDirection dir) +axis::Vec2 GRoot::getPoupPosition(GObject* popup, GObject* target, PopupDirection dir) { Vec2 pos; Vec2 size; @@ -524,7 +524,7 @@ void GRoot::onExit() _inst = nullptr; } -bool GRoot::initWithScene(cocos2d::Scene* scene, int zOrder) +bool GRoot::initWithScene(axis::Scene* scene, int zOrder) { if (!GComponent::init()) return false; @@ -547,7 +547,7 @@ bool GRoot::initWithScene(cocos2d::Scene* scene, int zOrder) void GRoot::onWindowSizeChanged() { - const cocos2d::Size& rs = Director::getInstance()->getOpenGLView()->getDesignResolutionSize(); + const axis::Size& rs = Director::getInstance()->getOpenGLView()->getDesignResolutionSize(); setSize(rs.width, rs.height); updateContentScaleLevel(); diff --git a/extensions/fairygui/GRoot.h b/extensions/fairygui/GRoot.h index 92de573a29..d79312d891 100644 --- a/extensions/fairygui/GRoot.h +++ b/extensions/fairygui/GRoot.h @@ -18,7 +18,7 @@ public: GRoot(); virtual ~GRoot(); - static GRoot* create(cocos2d::Scene* scene, int zOrder = 1000); + static GRoot* create(axis::Scene* scene, int zOrder = 1000); static GRoot* getInstance() { return _inst; } void showWindow(Window* win); @@ -37,11 +37,11 @@ public: bool isModalWaiting(); InputProcessor* getInputProcessor() const { return _inputProcessor; } - cocos2d::Vec2 getTouchPosition(int touchId); + axis::Vec2 getTouchPosition(int touchId); GObject* getTouchTarget(); - cocos2d::Vec2 worldToRoot(const cocos2d::Vec2 &pt); - cocos2d::Vec2 rootToWorld(const cocos2d::Vec2 &pt); + axis::Vec2 worldToRoot(const axis::Vec2 &pt); + axis::Vec2 rootToWorld(const axis::Vec2 &pt); void showPopup(GObject* popup); void showPopup(GObject* popup, GObject* target, PopupDirection dir); @@ -50,7 +50,7 @@ public: void hidePopup(); void hidePopup(GObject* popup); bool hasAnyPopup(); - cocos2d::Vec2 getPoupPosition(GObject* popup, GObject* target, PopupDirection dir); + axis::Vec2 getPoupPosition(GObject* popup, GObject* target, PopupDirection dir); void showTooltips(const std::string& msg); void showTooltipsWin(GObject* tooltipWin); @@ -70,7 +70,7 @@ protected: virtual void onExit() override; private: - bool initWithScene(cocos2d::Scene* scene, int zOrder); + bool initWithScene(axis::Scene* scene, int zOrder); void onWindowSizeChanged(); void createModalLayer(); void adjustModalLayer(); @@ -81,7 +81,7 @@ private: CALL_LATER_FUNC(GRoot, doShowTooltipsWin); - cocos2d::EventListener* _windowSizeListener; + axis::EventListener* _windowSizeListener; InputProcessor* _inputProcessor; GGraph* _modalLayer; diff --git a/extensions/fairygui/GScrollBar.cpp b/extensions/fairygui/GScrollBar.cpp index 400f673d72..c031e4cc3d 100644 --- a/extensions/fairygui/GScrollBar.cpp +++ b/extensions/fairygui/GScrollBar.cpp @@ -4,7 +4,7 @@ #include "utils/ByteBuffer.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; GScrollBar::GScrollBar() : _grip(nullptr), diff --git a/extensions/fairygui/GScrollBar.h b/extensions/fairygui/GScrollBar.h index 3ef7d406da..caaaf5e96c 100644 --- a/extensions/fairygui/GScrollBar.h +++ b/extensions/fairygui/GScrollBar.h @@ -43,7 +43,7 @@ private: float _scrollPerc; bool _fixedGripSize; - cocos2d::Vec2 _dragOffset; + axis::Vec2 _dragOffset; }; NS_FGUI_END diff --git a/extensions/fairygui/GSlider.cpp b/extensions/fairygui/GSlider.cpp index 44d89ed795..ceb2831b4b 100644 --- a/extensions/fairygui/GSlider.cpp +++ b/extensions/fairygui/GSlider.cpp @@ -3,7 +3,7 @@ #include "utils/ByteBuffer.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; GSlider::GSlider() : changeOnClick(false), diff --git a/extensions/fairygui/GSlider.h b/extensions/fairygui/GSlider.h index f4dfe573b8..b2ab2225a1 100644 --- a/extensions/fairygui/GSlider.h +++ b/extensions/fairygui/GSlider.h @@ -61,7 +61,7 @@ private: float _barMaxWidthDelta; float _barMaxHeightDelta; GObject* _gripObject; - cocos2d::Vec2 _clickPos; + axis::Vec2 _clickPos; float _clickPercent; float _barStartX; float _barStartY; diff --git a/extensions/fairygui/GTextField.cpp b/extensions/fairygui/GTextField.cpp index a433b940eb..f8124d4566 100644 --- a/extensions/fairygui/GTextField.cpp +++ b/extensions/fairygui/GTextField.cpp @@ -3,7 +3,7 @@ #include "utils/ToolSet.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; GTextField::GTextField() : _templateVars(nullptr), @@ -35,7 +35,7 @@ void GTextField::setUBBEnabled(bool value) } } -void GTextField::setColor(const cocos2d::Color3B& value) +void GTextField::setColor(const axis::Color3B& value) { TextFormat* tf = getTextFormat(); if (tf->color != value) @@ -55,7 +55,7 @@ void GTextField::setFontSize(float value) } } -void GTextField::setOutlineColor(const cocos2d::Color3B& value) +void GTextField::setOutlineColor(const axis::Color3B& value) { TextFormat* tf = getTextFormat(); if (tf->outlineColor != value) @@ -65,7 +65,7 @@ void GTextField::setOutlineColor(const cocos2d::Color3B& value) } } -void GTextField::setTemplateVars(cocos2d::ValueMap* value) +void GTextField::setTemplateVars(axis::ValueMap* value) { if (_templateVars == nullptr && value == nullptr) return; @@ -75,17 +75,17 @@ void GTextField::setTemplateVars(cocos2d::ValueMap* value) else { if (_templateVars == nullptr) - _templateVars = new cocos2d::ValueMap(); + _templateVars = new axis::ValueMap(); *_templateVars = *value; } flushVars(); } -GTextField* GTextField::setVar(const std::string& name, const cocos2d::Value& value) +GTextField* GTextField::setVar(const std::string& name, const axis::Value& value) { if (_templateVars == nullptr) - _templateVars = new cocos2d::ValueMap(); + _templateVars = new axis::ValueMap(); (*_templateVars)[name] = value; @@ -102,7 +102,7 @@ void GTextField::updateSize() { } -cocos2d::Value GTextField::getProp(ObjectPropID propId) +axis::Value GTextField::getProp(ObjectPropID propId) { switch (propId) { @@ -117,7 +117,7 @@ cocos2d::Value GTextField::getProp(ObjectPropID propId) } } -void GTextField::setProp(ObjectPropID propId, const cocos2d::Value& value) +void GTextField::setProp(ObjectPropID propId, const axis::Value& value) { switch (propId) { @@ -175,7 +175,7 @@ void GTextField::setup_beforeAdd(ByteBuffer* buffer, int beginPos) } if (buffer->readBool()) - _templateVars = new cocos2d::ValueMap(); + _templateVars = new axis::ValueMap(); } void GTextField::setup_afterAdd(ByteBuffer* buffer, int beginPos) diff --git a/extensions/fairygui/GTextField.h b/extensions/fairygui/GTextField.h index 1d1f42207a..d0853cf182 100644 --- a/extensions/fairygui/GTextField.h +++ b/extensions/fairygui/GTextField.h @@ -29,25 +29,25 @@ public: virtual TextFormat* getTextFormat() const = 0; virtual void applyTextFormat() = 0; - virtual const cocos2d::Size& getTextSize() { return _displayObject->getContentSize(); } + virtual const axis::Size& getTextSize() { return _displayObject->getContentSize(); } - cocos2d::Color3B getColor() const { return getTextFormat()->color; } - void setColor(const cocos2d::Color3B& value); + axis::Color3B getColor() const { return getTextFormat()->color; } + void setColor(const axis::Color3B& value); float getFontSize() const { return getTextFormat()->fontSize; } void setFontSize(float value); - cocos2d::Color3B getOutlineColor() const { return getTextFormat()->outlineColor; } - void setOutlineColor(const cocos2d::Color3B& value); + axis::Color3B getOutlineColor() const { return getTextFormat()->outlineColor; } + void setOutlineColor(const axis::Color3B& value); - cocos2d::ValueMap* getTemplateVars() { return _templateVars; } - void setTemplateVars(cocos2d::ValueMap* value); + axis::ValueMap* getTemplateVars() { return _templateVars; } + void setTemplateVars(axis::ValueMap* value); - GTextField* setVar(const std::string& name, const cocos2d::Value& value); + GTextField* setVar(const std::string& name, const axis::Value& value); void flushVars(); - virtual cocos2d::Value getProp(ObjectPropID propId) override; - virtual void setProp(ObjectPropID propId, const cocos2d::Value& value) override; + virtual axis::Value getProp(ObjectPropID propId) override; + virtual void setProp(ObjectPropID propId, const axis::Value& value) override; protected: virtual void setTextFieldText() = 0; @@ -61,7 +61,7 @@ protected: std::string _text; bool _ubbEnabled; AutoSizeType _autoSize; - cocos2d::ValueMap* _templateVars; + axis::ValueMap* _templateVars; }; class GBasicTextField : public GTextField diff --git a/extensions/fairygui/GTextInput.cpp b/extensions/fairygui/GTextInput.cpp index 902fc4be52..7b3f63d10f 100644 --- a/extensions/fairygui/GTextInput.cpp +++ b/extensions/fairygui/GTextInput.cpp @@ -7,7 +7,7 @@ #include "utils/ToolSet.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; GTextInput::GTextInput() { @@ -115,14 +115,14 @@ void GTextInput::setTextFieldText() _input->setText(_text); } -void GTextInput::editBoxReturn(cocos2d::ui::EditBox * editBox) +void GTextInput::editBoxReturn(axis::ui::EditBox * editBox) { //found that this will trigger even when focus is lost //if (isSingleLine()) // dispatchEvent(UIEventType::Submit); } -void GTextInput::editBoxTextChanged(cocos2d::ui::EditBox* editBox, std::string_view /*text*/) +void GTextInput::editBoxTextChanged(axis::ui::EditBox* editBox, std::string_view /*text*/) { _text.clear(); _text.append(_input->getText()); diff --git a/extensions/fairygui/GTextInput.h b/extensions/fairygui/GTextInput.h index 7741843e0c..dcd9215d53 100644 --- a/extensions/fairygui/GTextInput.h +++ b/extensions/fairygui/GTextInput.h @@ -8,7 +8,7 @@ NS_FGUI_BEGIN -class GTextInput : public GTextField, cocos2d::ui::EditBoxDelegate +class GTextInput : public GTextField, axis::ui::EditBoxDelegate { public: GTextInput(); @@ -35,8 +35,8 @@ protected: virtual void setTextFieldText() override; - virtual void editBoxReturn(cocos2d::ui::EditBox* editBox) override; - virtual void editBoxTextChanged(cocos2d::ui::EditBox* editBox, std::string_view text) override; + virtual void editBoxReturn(axis::ui::EditBox* editBox) override; + virtual void editBoxTextChanged(axis::ui::EditBox* editBox, std::string_view text) override; private: FUIInput* _input; diff --git a/extensions/fairygui/GTree.cpp b/extensions/fairygui/GTree.cpp index ba53706214..3d9ef86338 100644 --- a/extensions/fairygui/GTree.cpp +++ b/extensions/fairygui/GTree.cpp @@ -4,7 +4,7 @@ #include "utils/ByteBuffer.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; GTree::GTree() : _rootNode(nullptr), diff --git a/extensions/fairygui/GTreeNode.cpp b/extensions/fairygui/GTreeNode.cpp index dfae277edc..6cb12933f4 100644 --- a/extensions/fairygui/GTreeNode.cpp +++ b/extensions/fairygui/GTreeNode.cpp @@ -3,7 +3,7 @@ #include "GTree.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; GTreeNode* GTreeNode::create(bool isFolder, const std::string& resURL) { diff --git a/extensions/fairygui/GTreeNode.h b/extensions/fairygui/GTreeNode.h index 4f461385e2..003fa2102c 100644 --- a/extensions/fairygui/GTreeNode.h +++ b/extensions/fairygui/GTreeNode.h @@ -9,10 +9,10 @@ NS_FGUI_BEGIN class GTree; class GComponent; -class GTreeNode : public cocos2d::Ref +class GTreeNode : public axis::Ref { public: - static GTreeNode* create(bool isFolder = false, const std::string& resURL = cocos2d::STD_STRING_EMPTY); + static GTreeNode* create(bool isFolder = false, const std::string& resURL = axis::STD_STRING_EMPTY); GTreeNode(); virtual ~GTreeNode(); @@ -20,8 +20,8 @@ public: GTreeNode* getParent() const { return _parent; } GTree* getTree() const { return _tree; } GComponent* getCell() const { return _cell; } - const cocos2d::Value& getData() const { return _data; } - void setData(const cocos2d::Value& value) { _data = value; } + const axis::Value& getData() const { return _data; } + void setData(const axis::Value& value) { _data = value; } bool isExpanded() const { return _expanded; } void setExpaned(bool value); bool isFolder() const { return _isFolder; } @@ -61,8 +61,8 @@ private: int _level; bool _expanded; bool _isFolder; - cocos2d::Value _data; - cocos2d::Vector _children; + axis::Value _data; + axis::Vector _children; std::string _resURL; friend class GTree; diff --git a/extensions/fairygui/Margin.h b/extensions/fairygui/Margin.h index c63d2605a6..85de57c2af 100644 --- a/extensions/fairygui/Margin.h +++ b/extensions/fairygui/Margin.h @@ -5,7 +5,7 @@ NS_FGUI_BEGIN -//copy from cocos2d::ui::Margin +//copy from axis::ui::Margin class Margin { public: diff --git a/extensions/fairygui/PackageItem.h b/extensions/fairygui/PackageItem.h index 63b5dc38e5..83fec12fd4 100644 --- a/extensions/fairygui/PackageItem.h +++ b/extensions/fairygui/PackageItem.h @@ -13,7 +13,7 @@ class BitmapFont; class PixelHitTestData; class ByteBuffer; -class PackageItem : public cocos2d::Ref +class PackageItem : public axis::Ref { public: PackageItem(); @@ -38,17 +38,17 @@ public: std::vector* highResolution; //atlas - cocos2d::Texture2D* texture; + axis::Texture2D* texture; //image - cocos2d::Rect* scale9Grid; + axis::Rect* scale9Grid; bool scaleByTile; int tileGridIndice; - cocos2d::SpriteFrame* spriteFrame; + axis::SpriteFrame* spriteFrame; PixelHitTestData* pixelHitTestData; //movieclip - cocos2d::Animation* animation; + axis::Animation* animation; float delayPerUnit; float repeatDelay; bool swing; @@ -61,7 +61,7 @@ public: BitmapFont* bitmapFont; //skeleton - cocos2d::Vec2* skeletonAnchor; + axis::Vec2* skeletonAnchor; }; NS_FGUI_END diff --git a/extensions/fairygui/PopupMenu.cpp b/extensions/fairygui/PopupMenu.cpp index 886bec990f..9f08af23a4 100644 --- a/extensions/fairygui/PopupMenu.cpp +++ b/extensions/fairygui/PopupMenu.cpp @@ -6,7 +6,7 @@ #include "UIConfig.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; PopupMenu* PopupMenu::create(const std::string & resourceURL) { diff --git a/extensions/fairygui/PopupMenu.h b/extensions/fairygui/PopupMenu.h index da0d1ded80..dcb8318529 100644 --- a/extensions/fairygui/PopupMenu.h +++ b/extensions/fairygui/PopupMenu.h @@ -12,7 +12,7 @@ class GComponent; class GButton; class GList; -class PopupMenu : public cocos2d::Ref +class PopupMenu : public axis::Ref { public: static PopupMenu* create(const std::string& resourceURL); diff --git a/extensions/fairygui/RelationItem.cpp b/extensions/fairygui/RelationItem.cpp index 89f047fa76..c0357c24a2 100644 --- a/extensions/fairygui/RelationItem.cpp +++ b/extensions/fairygui/RelationItem.cpp @@ -5,7 +5,7 @@ #include "utils/WeakPtr.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; RelationItem::RelationItem(GObject* owner) : _target(nullptr) { diff --git a/extensions/fairygui/RelationItem.h b/extensions/fairygui/RelationItem.h index c58d25546d..cab7eb0e00 100644 --- a/extensions/fairygui/RelationItem.h +++ b/extensions/fairygui/RelationItem.h @@ -87,7 +87,7 @@ private: GObject* _owner; WeakPtr _target; std::vector _defs; - cocos2d::Vec4 _targetData; + axis::Vec4 _targetData; }; NS_FGUI_END diff --git a/extensions/fairygui/Relations.cpp b/extensions/fairygui/Relations.cpp index 0371bc9323..793086b967 100644 --- a/extensions/fairygui/Relations.cpp +++ b/extensions/fairygui/Relations.cpp @@ -3,7 +3,7 @@ #include "utils/ByteBuffer.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; Relations::Relations(GObject* owner) : handling(nullptr) diff --git a/extensions/fairygui/ScrollPane.cpp b/extensions/fairygui/ScrollPane.cpp index 7e25cbb043..29768e2867 100644 --- a/extensions/fairygui/ScrollPane.cpp +++ b/extensions/fairygui/ScrollPane.cpp @@ -8,7 +8,7 @@ #include "utils/ByteBuffer.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; ScrollPane* ScrollPane::_draggingPane = nullptr; int ScrollPane::_gestureFlag = 0; @@ -363,7 +363,7 @@ void ScrollPane::scrollToView(GObject* obj, bool ani, bool setFirst) scrollToView(rect, ani, setFirst); } -void ScrollPane::scrollToView(const cocos2d::Rect& rect, bool ani, bool setFirst) +void ScrollPane::scrollToView(const axis::Rect& rect, bool ani, bool setFirst) { _owner->ensureBoundsCorrect(); if (_needRefresh) @@ -829,7 +829,7 @@ void ScrollPane::handleSizeChanged() updatePageController(); } -GObject* ScrollPane::hitTest(const cocos2d::Vec2& pt, const cocos2d::Camera* camera) +GObject* ScrollPane::hitTest(const axis::Vec2& pt, const axis::Camera* camera) { GObject* target = nullptr; if (_vtScrollBar) @@ -1052,7 +1052,7 @@ bool ScrollPane::loopCheckingCurrent() return changed; } -void ScrollPane::loopCheckingTarget(cocos2d::Vec2& endPos) +void ScrollPane::loopCheckingTarget(axis::Vec2& endPos) { if (_loop == 1) loopCheckingTarget(endPos, 0); @@ -1061,7 +1061,7 @@ void ScrollPane::loopCheckingTarget(cocos2d::Vec2& endPos) loopCheckingTarget(endPos, 1); } -void ScrollPane::loopCheckingTarget(cocos2d::Vec2& endPos, int axis) +void ScrollPane::loopCheckingTarget(axis::Vec2& endPos, int axis) { if (sp_getField(endPos, axis) > 0) { @@ -1200,7 +1200,7 @@ float ScrollPane::alignByPage(float pos, int axis, bool inertialScrolling) return pos; } -cocos2d::Vec2 ScrollPane::updateTargetAndDuration(const cocos2d::Vec2& orignPos) +axis::Vec2 ScrollPane::updateTargetAndDuration(const axis::Vec2& orignPos) { Vec2 ret(0, 0); ret.x = updateTargetAndDuration(orignPos.x, 0); @@ -1225,7 +1225,7 @@ float ScrollPane::updateTargetAndDuration(float pos, int axis) if (v2 > 500) ratio = pow((v2 - 500) / 500, 2); #else - const cocos2d::Size& winSize = Director::getInstance()->getWinSizeInPixels(); + const axis::Size& winSize = Director::getInstance()->getWinSizeInPixels(); v2 *= 1136.0f / MAX(winSize.width, winSize.height); if (_pageMode) diff --git a/extensions/fairygui/ScrollPane.h b/extensions/fairygui/ScrollPane.h index 3830962877..53f9aa8902 100644 --- a/extensions/fairygui/ScrollPane.h +++ b/extensions/fairygui/ScrollPane.h @@ -17,7 +17,7 @@ class EventContext; class ByteBuffer; class GTweener; -class ScrollPane : public cocos2d::Ref +class ScrollPane : public axis::Ref { public: ScrollPane(GComponent* owner); @@ -78,7 +78,7 @@ public: void scrollTop(bool ani = false); void scrollBottom(bool ani = false); void scrollToView(GObject* obj, bool ani = false, bool setFirst = false); - void scrollToView(const cocos2d::Rect& rect, bool ani = false, bool setFirst = false); + void scrollToView(const axis::Rect& rect, bool ani = false, bool setFirst = false); bool isChildInView(GObject* obj) const; int getPageX() const; @@ -89,8 +89,8 @@ public: float getScrollingPosX() const; float getScrollingPosY() const; - const cocos2d::Size& getContentSize() const { return _contentSize; } - const cocos2d::Size& getViewSize() const { return _viewSize; } + const axis::Size& getContentSize() const { return _contentSize; } + const axis::Size& getViewSize() const { return _viewSize; } void lockHeader(int size); void lockFooter(int size); @@ -111,7 +111,7 @@ private: void handleControllerChanged(GController* c); void updatePageController(); - GObject* hitTest(const cocos2d::Vec2& pt, const cocos2d::Camera* camera); + GObject* hitTest(const axis::Vec2& pt, const axis::Camera* camera); void posChanged(bool ani); CALL_LATER_FUNC(ScrollPane, refresh); @@ -123,12 +123,12 @@ private: float getLoopPartSize(float division, int axis); bool loopCheckingCurrent(); - void loopCheckingTarget(cocos2d::Vec2& endPos); - void loopCheckingTarget(cocos2d::Vec2& endPos, int axis); + void loopCheckingTarget(axis::Vec2& endPos); + void loopCheckingTarget(axis::Vec2& endPos, int axis); void loopCheckingNewPos(float& value, int axis); - void alignPosition(cocos2d::Vec2& pos, bool inertialScrolling); + void alignPosition(axis::Vec2& pos, bool inertialScrolling); float alignByPage(float pos, int axis, bool inertialScrolling); - cocos2d::Vec2 updateTargetAndDuration(const cocos2d::Vec2& orignPos); + axis::Vec2 updateTargetAndDuration(const axis::Vec2& orignPos); float updateTargetAndDuration(float pos, int axis); void fixDuration(int axis, float oldChange); void startTween(int type); @@ -170,16 +170,16 @@ private: float _xPos; float _yPos; - cocos2d::Size _viewSize; - cocos2d::Size _contentSize; - cocos2d::Size _overlapSize; - cocos2d::Size _pageSize; + axis::Size _viewSize; + axis::Size _contentSize; + axis::Size _overlapSize; + axis::Size _pageSize; - cocos2d::Vec2 _containerPos; - cocos2d::Vec2 _beginTouchPos; - cocos2d::Vec2 _lastTouchPos; - cocos2d::Vec2 _lastTouchGlobalPos; - cocos2d::Vec2 _velocity; + axis::Vec2 _containerPos; + axis::Vec2 _beginTouchPos; + axis::Vec2 _lastTouchPos; + axis::Vec2 _lastTouchGlobalPos; + axis::Vec2 _velocity; float _velocityScale; clock_t _lastMoveTime; bool _dragged; @@ -192,10 +192,10 @@ private: int _footerLockedSize; int _tweening; - cocos2d::Vec2 _tweenStart; - cocos2d::Vec2 _tweenChange; - cocos2d::Vec2 _tweenTime; - cocos2d::Vec2 _tweenDuration; + axis::Vec2 _tweenStart; + axis::Vec2 _tweenChange; + axis::Vec2 _tweenTime; + axis::Vec2 _tweenDuration; GComponent* _owner; FUIContainer* _maskContainer; diff --git a/extensions/fairygui/Transition.cpp b/extensions/fairygui/Transition.cpp index 80671e6f05..aa22215732 100644 --- a/extensions/fairygui/Transition.cpp +++ b/extensions/fairygui/Transition.cpp @@ -7,7 +7,7 @@ #include "utils/ToolSet.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; using namespace std; const int OPTION_IGNORE_DISPLAY_CONTROLLER = 1; @@ -53,8 +53,8 @@ class TValue_Shake : public TValueBase public: float amplitude; float duration; - cocos2d::Vec2 lastOffset; - cocos2d::Vec2 offset; + axis::Vec2 lastOffset; + axis::Vec2 offset; }; class TValue_Text : public TValueBase @@ -75,12 +75,12 @@ public: bool b3; TValue(); - cocos2d::Vec2 getVec2() const; - void setVec2(const cocos2d::Vec2& value); - cocos2d::Vec4 getVec4() const; - void setVec4(const cocos2d::Vec4& value); - cocos2d::Color4B getColor() const; - void setColor(const cocos2d::Color4B& value); + axis::Vec2 getVec2() const; + void setVec2(const axis::Vec2& value); + axis::Vec4 getVec4() const; + void setVec4(const axis::Vec4& value); + axis::Color4B getColor() const; + void setColor(const axis::Color4B& value); }; TValue::TValue() @@ -90,23 +90,23 @@ TValue::TValue() b3 = false; } -cocos2d::Vec2 TValue::getVec2() const +axis::Vec2 TValue::getVec2() const { - return cocos2d::Vec2(f1, f2); + return axis::Vec2(f1, f2); } -void TValue::setVec2(const cocos2d::Vec2& value) +void TValue::setVec2(const axis::Vec2& value) { f1 = value.x; f2 = value.y; } -cocos2d::Vec4 TValue::getVec4() const +axis::Vec4 TValue::getVec4() const { - return cocos2d::Vec4(f1, f2, f3, f4); + return axis::Vec4(f1, f2, f3, f4); } -void TValue::setVec4(const cocos2d::Vec4& value) +void TValue::setVec4(const axis::Vec4& value) { f1 = value.x; f2 = value.y; @@ -114,12 +114,12 @@ void TValue::setVec4(const cocos2d::Vec4& value) f4 = value.w; } -cocos2d::Color4B TValue::getColor() const +axis::Color4B TValue::getColor() const { - return cocos2d::Color4B(f1, f2, f3, f4); + return axis::Color4B(f1, f2, f3, f4); } -void TValue::setColor(const cocos2d::Color4B& value) +void TValue::setColor(const axis::Color4B& value) { f1 = value.r; f2 = value.g; diff --git a/extensions/fairygui/Transition.h b/extensions/fairygui/Transition.h index 17071ff78e..673eac0bab 100644 --- a/extensions/fairygui/Transition.h +++ b/extensions/fairygui/Transition.h @@ -12,7 +12,7 @@ class TransitionItem; class GTweener; class ByteBuffer; -class Transition : public cocos2d::Ref +class Transition : public axis::Ref { public: typedef std::function PlayCompleteCallback; @@ -35,7 +35,7 @@ public: void setAutoPlay(bool autoPlay, int times, float delay); void setPaused(bool paused); - void setValue(const std::string& label, const cocos2d::ValueVector& values); + void setValue(const std::string& label, const axis::ValueVector& values); void setHook(const std::string& label, TransitionHook callback); void clearHooks(); void setTarget(const std::string& label, GObject* newTarget); diff --git a/extensions/fairygui/TranslationHelper.cpp b/extensions/fairygui/TranslationHelper.cpp index f590d30aa4..013ff065d3 100644 --- a/extensions/fairygui/TranslationHelper.cpp +++ b/extensions/fairygui/TranslationHelper.cpp @@ -10,7 +10,7 @@ #include "base/format.h" -USING_NS_CC; +USING_NS_AX; NS_FGUI_BEGIN using namespace std; diff --git a/extensions/fairygui/UIConfig.cpp b/extensions/fairygui/UIConfig.cpp index 64f3079736..927c4537b5 100644 --- a/extensions/fairygui/UIConfig.cpp +++ b/extensions/fairygui/UIConfig.cpp @@ -1,7 +1,7 @@ #include "UIConfig.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; std::string UIConfig::defaultFont = ""; std::string UIConfig::buttonSound = ""; diff --git a/extensions/fairygui/UIConfig.h b/extensions/fairygui/UIConfig.h index c706b9ae79..6eba336dba 100644 --- a/extensions/fairygui/UIConfig.h +++ b/extensions/fairygui/UIConfig.h @@ -24,7 +24,7 @@ public: static int touchScrollSensitivity; static int defaultComboBoxVisibleItemCount; static std::string globalModalWaiting; - static cocos2d::Color4F modalLayerColor; + static axis::Color4F modalLayerColor; static std::string tooltipsWin; static bool bringWindowToFrontOnClick; static std::string windowModalWaiting; diff --git a/extensions/fairygui/UIPackage.cpp b/extensions/fairygui/UIPackage.cpp index d1d7a9e85f..c5b5b3aa33 100644 --- a/extensions/fairygui/UIPackage.cpp +++ b/extensions/fairygui/UIPackage.cpp @@ -6,7 +6,7 @@ #include "utils/ToolSet.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; using namespace std; diff --git a/extensions/fairygui/UIPackage.h b/extensions/fairygui/UIPackage.h index a2b0c754d4..64310731fc 100644 --- a/extensions/fairygui/UIPackage.h +++ b/extensions/fairygui/UIPackage.h @@ -11,7 +11,7 @@ NS_FGUI_BEGIN struct AtlasSprite; class ByteBuffer; -class UIPackage : public cocos2d::Ref +class UIPackage : public axis::Ref { public: UIPackage(); @@ -29,7 +29,7 @@ public: static std::string normalizeURL(const std::string& url); static void* getItemAsset(const std::string& pkgName, const std::string& resName, PackageItemType type = PackageItemType::UNKNOWN); static void* getItemAssetByURL(std::string_view url, PackageItemType type = PackageItemType::UNKNOWN); - static cocos2d::Texture2D* getEmptyTexture() { return _emptyTexture; } + static axis::Texture2D* getEmptyTexture() { return _emptyTexture; } const std::string& getId() const { return _id; } const std::string& getName() const { return _name; } @@ -50,7 +50,7 @@ private: bool loadPackage(ByteBuffer* buffer); void loadAtlas(PackageItem* item); AtlasSprite* getSprite(const std::string& spriteId); - cocos2d::SpriteFrame* createSpriteTexture(AtlasSprite* sprite); + axis::SpriteFrame* createSpriteTexture(AtlasSprite* sprite); void loadImage(PackageItem* item); void loadMovieClip(PackageItem* item); void loadFont(PackageItem* item); @@ -79,7 +79,7 @@ private: static std::unordered_map _vars; static std::string _branch; - static cocos2d::Texture2D* _emptyTexture; + static axis::Texture2D* _emptyTexture; friend class PackageItem; }; diff --git a/extensions/fairygui/Window.cpp b/extensions/fairygui/Window.cpp index c00f7239ee..d62a0e921e 100644 --- a/extensions/fairygui/Window.cpp +++ b/extensions/fairygui/Window.cpp @@ -4,7 +4,7 @@ #include "UIConfig.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; Window::Window() : _requestingCmd(0), diff --git a/extensions/fairygui/Window.h b/extensions/fairygui/Window.h index 60b88815d5..6303b4f38c 100644 --- a/extensions/fairygui/Window.h +++ b/extensions/fairygui/Window.h @@ -7,7 +7,7 @@ NS_FGUI_BEGIN -class IUISource : public cocos2d::Ref +class IUISource : public axis::Ref { public: virtual const std::string& getFileName() = 0; @@ -89,7 +89,7 @@ private: GObject* _contentArea; bool _modal; bool _bringToFontOnClick; - cocos2d::Vector _uiSources; + axis::Vector _uiSources; bool _inited; bool _loading; }; diff --git a/extensions/fairygui/controller_action/ChangePageAction.cpp b/extensions/fairygui/controller_action/ChangePageAction.cpp index 5c83b5c330..0f29ad969e 100644 --- a/extensions/fairygui/controller_action/ChangePageAction.cpp +++ b/extensions/fairygui/controller_action/ChangePageAction.cpp @@ -4,7 +4,7 @@ #include "utils/ByteBuffer.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; void ChangePageAction::setup(ByteBuffer* buffer) { diff --git a/extensions/fairygui/controller_action/ControllerAction.cpp b/extensions/fairygui/controller_action/ControllerAction.cpp index 48dcfc26dc..0f32e45f1c 100644 --- a/extensions/fairygui/controller_action/ControllerAction.cpp +++ b/extensions/fairygui/controller_action/ControllerAction.cpp @@ -6,7 +6,7 @@ #include "utils/ToolSet.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; ControllerAction * ControllerAction::createAction(int type) { diff --git a/extensions/fairygui/controller_action/PlayTransitionAction.cpp b/extensions/fairygui/controller_action/PlayTransitionAction.cpp index 8eeae84a29..fe673c5ba6 100644 --- a/extensions/fairygui/controller_action/PlayTransitionAction.cpp +++ b/extensions/fairygui/controller_action/PlayTransitionAction.cpp @@ -4,7 +4,7 @@ #include "utils/ByteBuffer.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; PlayTransitionAction::PlayTransitionAction() : playTimes(1), delay(0), stopOnExit(false), _currentTransition(nullptr) diff --git a/extensions/fairygui/display/BitmapFont.h b/extensions/fairygui/display/BitmapFont.h index 13df29b28a..478d5eff57 100644 --- a/extensions/fairygui/display/BitmapFont.h +++ b/extensions/fairygui/display/BitmapFont.h @@ -7,7 +7,7 @@ NS_FGUI_BEGIN -class BitmapFont : public cocos2d::Font +class BitmapFont : public axis::Font { public: BitmapFont(); @@ -17,11 +17,11 @@ public: virtual int* getHorizontalKerningForTextUTF32(const std::u32string& text, int &outNumLetters) const override; # if defined(AXIS_VERSION) - virtual cocos2d::FontAtlas* newFontAtlas() override { return new cocos2d::FontAtlas(this); } + virtual axis::FontAtlas* newFontAtlas() override { return new axis::FontAtlas(this); } #else - virtual cocos2d::FontAtlas* createFontAtlas() override { return new cocos2d::FontAtlas(*this); } + virtual axis::FontAtlas* createFontAtlas() override { return new axis::FontAtlas(*this); } #endif - cocos2d::FontAtlas* resetFontAtlas(cocos2d::FontAtlas* fontAtlas) + axis::FontAtlas* resetFontAtlas(axis::FontAtlas* fontAtlas) { if (_fontAtlas != fontAtlas) { @@ -30,7 +30,7 @@ public: } return _fontAtlas; } - cocos2d::FontAtlas* getFontAtlas() const { return _fontAtlas; } + axis::FontAtlas* getFontAtlas() const { return _fontAtlas; } void releaseAtlas() { resetFontAtlas(nullptr); } void setFontSize(float fontSize) {} int getOriginalFontSize()const { return _originalFontSize; } @@ -41,7 +41,7 @@ private: float _originalFontSize; bool _resizable; bool _canTint; - cocos2d::FontAtlas* _fontAtlas; + axis::FontAtlas* _fontAtlas; friend class UIPackage; }; diff --git a/extensions/fairygui/display/FUIContainer.cpp b/extensions/fairygui/display/FUIContainer.cpp index b72dbeb405..7d0b8a244d 100644 --- a/extensions/fairygui/display/FUIContainer.cpp +++ b/extensions/fairygui/display/FUIContainer.cpp @@ -4,7 +4,7 @@ #include "GComponent.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; #if COCOS2D_VERSION < 0x00040000 #if (CC_TARGET_PLATFORM == CC_PLATFORM_MAC || CC_TARGET_PLATFORM == CC_PLATFORM_WIN32 || CC_TARGET_PLATFORM == CC_PLATFORM_LINUX) @@ -99,7 +99,7 @@ void FUIContainer::setClippingRegion(const Rect & clippingRegion) _rectClippingSupport->_clippingRegion = clippingRegion; } -cocos2d::Node * FUIContainer::getStencil() const +axis::Node * FUIContainer::getStencil() const { if (_stencilClippingSupport != nullptr) return _stencilClippingSupport->_stencil; @@ -107,7 +107,7 @@ cocos2d::Node * FUIContainer::getStencil() const return nullptr; } -void FUIContainer::setStencil(cocos2d::Node * stencil) +void FUIContainer::setStencil(axis::Node * stencil) { if (_stencilClippingSupport == nullptr) { @@ -368,7 +368,7 @@ const Rect& FUIContainer::getClippingRect() return _rectClippingSupport->_clippingRect; } -void FUIContainer::visit(cocos2d::Renderer * renderer, const cocos2d::Mat4 & parentTransform, uint32_t parentFlags) +void FUIContainer::visit(axis::Renderer * renderer, const axis::Mat4 & parentTransform, uint32_t parentFlags) { if (_stencilClippingSupport != nullptr) { diff --git a/extensions/fairygui/display/FUIContainer.h b/extensions/fairygui/display/FUIContainer.h index d6ea083f12..66195eb157 100644 --- a/extensions/fairygui/display/FUIContainer.h +++ b/extensions/fairygui/display/FUIContainer.h @@ -13,20 +13,20 @@ class RectClippingSupport public: RectClippingSupport(); - cocos2d::Rect _clippingRegion; + axis::Rect _clippingRegion; bool _clippingEnabled; bool _scissorOldState; - cocos2d::Rect _clippingOldRect; - cocos2d::Rect _clippingRect; + axis::Rect _clippingOldRect; + axis::Rect _clippingRect; bool _clippingRectDirty; #if COCOS2D_VERSION >= 0x00040000 - cocos2d::GroupCommand _groupCommand; - //cocos2d::CallbackCommand _beforeVisitCmdScissor; - //cocos2d::CallbackCommand _afterVisitCmdScissor; + axis::GroupCommand _groupCommand; + //axis::CallbackCommand _beforeVisitCmdScissor; + //axis::CallbackCommand _afterVisitCmdScissor; #else - cocos2d::CustomCommand _beforeVisitCmdScissor; - cocos2d::CustomCommand _afterVisitCmdScissor; + axis::CustomCommand _beforeVisitCmdScissor; + axis::CustomCommand _afterVisitCmdScissor; #endif }; @@ -35,23 +35,23 @@ class StencilClippingSupport public: StencilClippingSupport(); - cocos2d::Node* _stencil; - cocos2d::StencilStateManager* _stencilStateManager; - cocos2d::GroupCommand _groupCommand; + axis::Node* _stencil; + axis::StencilStateManager* _stencilStateManager; + axis::GroupCommand _groupCommand; #if COCOS2D_VERSION >= 0x00040000 - cocos2d::backend::ProgramState* _originStencilProgram; - //cocos2d::CallbackCommand _beforeVisitCmd; - //cocos2d::CallbackCommand _afterDrawStencilCmd; - //cocos2d::CallbackCommand _afterVisitCmd; + axis::backend::ProgramState* _originStencilProgram; + //axis::CallbackCommand _beforeVisitCmd; + //axis::CallbackCommand _afterDrawStencilCmd; + //axis::CallbackCommand _afterVisitCmd; #else - cocos2d::GLProgram* _originStencilProgram; - cocos2d::CustomCommand _beforeVisitCmd; - cocos2d::CustomCommand _afterDrawStencilCmd; - cocos2d::CustomCommand _afterVisitCmd; + axis::GLProgram* _originStencilProgram; + axis::CustomCommand _beforeVisitCmd; + axis::CustomCommand _afterDrawStencilCmd; + axis::CustomCommand _afterVisitCmd; #endif }; -class FUIContainer : public cocos2d::Node +class FUIContainer : public axis::Node { public: FUIContainer(); @@ -61,11 +61,11 @@ public: bool isClippingEnabled() const; void setClippingEnabled(bool value); - const cocos2d::Rect& getClippingRegion() const; - void setClippingRegion(const cocos2d::Rect& clippingRegion); + const axis::Rect& getClippingRegion() const; + void setClippingRegion(const axis::Rect& clippingRegion); - cocos2d::Node* getStencil() const; - void setStencil(cocos2d::Node* stencil); + axis::Node* getStencil() const; + void setStencil(axis::Node* stencil); float getAlphaThreshold() const; void setAlphaThreshold(float alphaThreshold); bool isInverted() const; @@ -75,7 +75,7 @@ public: void onEnterTransitionDidFinish() override; void onExitTransitionDidStart() override; void onExit() override; - void visit(cocos2d::Renderer *renderer, const cocos2d::Mat4 &parentTransform, uint32_t parentFlags) override; + void visit(axis::Renderer *renderer, const axis::Mat4 &parentTransform, uint32_t parentFlags) override; void setCameraMask(unsigned short mask, bool applyChildren = true) override; void setGlobalZOrder(float globalZOrder) override; @@ -83,27 +83,27 @@ public: private: void onBeforeVisitScissor(); void onAfterVisitScissor(); - const cocos2d::Rect& getClippingRect(); + const axis::Rect& getClippingRect(); RectClippingSupport* _rectClippingSupport; StencilClippingSupport* _stencilClippingSupport; #if COCOS2D_VERSION >= 0x00040000 - void setProgramStateRecursively(Node* node, cocos2d::backend::ProgramState* programState); + void setProgramStateRecursively(Node* node, axis::backend::ProgramState* programState); void restoreAllProgramStates(); - std::unordered_map _originalStencilProgramState; + std::unordered_map _originalStencilProgramState; #endif }; //internal use -class FUIInnerContainer : public cocos2d::Node +class FUIInnerContainer : public axis::Node { public: CREATE_FUNC(FUIInnerContainer); - void setPosition2(const cocos2d::Vec2 &position) { setPosition(position.x, _parent->getContentSize().height - position.y); } - cocos2d::Vec2 getPosition2() { return cocos2d::Vec2(_position.x, _parent->getContentSize().height - _position.y); } + void setPosition2(const axis::Vec2 &position) { setPosition(position.x, _parent->getContentSize().height - position.y); } + axis::Vec2 getPosition2() { return axis::Vec2(_position.x, _parent->getContentSize().height - _position.y); } void setPosition2(float x, float y) { setPosition(x, _parent->getContentSize().height - y); } void setPositionY2(float y) { setPositionY(_parent->getContentSize().height - y); } float getPositionY2(void) const { return _parent->getContentSize().height - _position.y; } diff --git a/extensions/fairygui/display/FUIInput.cpp b/extensions/fairygui/display/FUIInput.cpp index 5e25aabb6c..33a4f13e9e 100644 --- a/extensions/fairygui/display/FUIInput.cpp +++ b/extensions/fairygui/display/FUIInput.cpp @@ -3,7 +3,7 @@ #include "GTextInput.h" #include "UIConfig.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; FUIInput * FUIInput::create() { @@ -81,7 +81,7 @@ void FUIInput::openKeyboard() #if COCOS2D_VERSION >= 0x00031700 EditBox::openKeyboard(); #else - touchDownAction(this, cocos2d::ui::Widget::TouchEventType::ENDED); + touchDownAction(this, axis::ui::Widget::TouchEventType::ENDED); #endif } @@ -94,7 +94,7 @@ void FUIInput::continueInit() this->addTouchEventListener(CC_CALLBACK_2(FUIInput::_touchDownAction, this)); } -void FUIInput::_touchDownAction(cocos2d::Ref *sender, cocos2d::ui::Widget::TouchEventType controlEvent) +void FUIInput::_touchDownAction(axis::Ref *sender, axis::ui::Widget::TouchEventType controlEvent) { //do nothing } diff --git a/extensions/fairygui/display/FUIInput.h b/extensions/fairygui/display/FUIInput.h index e81f42f0c8..4c401a828c 100644 --- a/extensions/fairygui/display/FUIInput.h +++ b/extensions/fairygui/display/FUIInput.h @@ -8,7 +8,7 @@ NS_FGUI_BEGIN -class FUIInput : public cocos2d::ui::EditBox +class FUIInput : public axis::ui::EditBox { public: static FUIInput* create(); @@ -36,7 +36,7 @@ public: private: void continueInit(); - void _touchDownAction(cocos2d::Ref *sender, cocos2d::ui::Widget::TouchEventType controlEvent); + void _touchDownAction(axis::Ref *sender, axis::ui::Widget::TouchEventType controlEvent); TextFormat* _textFormat; bool _password; diff --git a/extensions/fairygui/display/FUILabel.cpp b/extensions/fairygui/display/FUILabel.cpp index 9917d986a3..6545e111d1 100644 --- a/extensions/fairygui/display/FUILabel.cpp +++ b/extensions/fairygui/display/FUILabel.cpp @@ -4,7 +4,7 @@ #include "UIPackage.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; static Color3B toGrayed(const Color3B& source) { @@ -182,7 +182,7 @@ void FUILabel::updateBMFontScale() } } -void FUILabel::setUnderlineColor(const cocos2d::Color3B& value) +void FUILabel::setUnderlineColor(const axis::Color3B& value) { //NOT IMPLEMENTED } diff --git a/extensions/fairygui/display/FUILabel.h b/extensions/fairygui/display/FUILabel.h index 6733431730..2c4ec34644 100644 --- a/extensions/fairygui/display/FUILabel.h +++ b/extensions/fairygui/display/FUILabel.h @@ -7,7 +7,7 @@ NS_FGUI_BEGIN -class FUILabel : public cocos2d::Label +class FUILabel : public axis::Label { public: FUILabel(); @@ -21,16 +21,16 @@ public: TextFormat* getTextFormat() const { return _textFormat; } void applyTextFormat(); - void setUnderlineColor(const cocos2d::Color3B& value); + void setUnderlineColor(const axis::Color3B& value); - virtual bool setBMFontFilePath(std::string_view bmfontFilePath, const cocos2d::Vec2& imageOffset = cocos2d::Vec2::ZERO, float fontSize = 0) override; + virtual bool setBMFontFilePath(std::string_view bmfontFilePath, const axis::Vec2& imageOffset = axis::Vec2::ZERO, float fontSize = 0) override; void setGrayed(bool value); protected: /* - ע⣡˱Ҫ޸cocos2dԴ룬ļ2d/CCLabel.hԼ672УΪupdateBMFontScalevirtualη - ΪǿָΪFontFnt͵Ĵ룬DzʹFontFntFontFntִֻ֧ⲿļãBMFontConfigurationǶcppġ - Ҫд + ע�⣡���������������˱��������Ҫ�޸�cocos2d��Դ�룬�ļ�2d/CCLabel.h����Լ��672�У�ΪupdateBMFontScale��������virtual���η��� + ��Ϊ�����������ǿ���������ָ��ΪFontFnt���͵Ĵ��룬�����Dz�ʹ��FontFnt��FontFntֻ֧�ִ��ⲿ�ļ����������ã���������BMFontConfiguration�Ƕ�����cpp��ġ��� + ������Ҫ��д��������� */ virtual void updateBMFontScale() override; diff --git a/extensions/fairygui/display/FUIRichText.cpp b/extensions/fairygui/display/FUIRichText.cpp index e98495b7b0..762a6386bb 100644 --- a/extensions/fairygui/display/FUIRichText.cpp +++ b/extensions/fairygui/display/FUIRichText.cpp @@ -11,7 +11,7 @@ #include "UIPackage.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; using namespace std; @@ -165,7 +165,7 @@ void FUIRichText::applyTextFormat() _formatTextDirty = true; } -void FUIRichText::setOverflow(cocos2d::Label::Overflow overflow) +void FUIRichText::setOverflow(axis::Label::Overflow overflow) { if (_overflow != overflow) { @@ -196,12 +196,12 @@ void FUIRichText::setAnchorTextUnderline(bool enable) } } -const cocos2d::Color3B& FUIRichText::getAnchorFontColor() +const axis::Color3B& FUIRichText::getAnchorFontColor() { return _parseOptions.linkColor; } -void FUIRichText::setAnchorFontColor(const cocos2d::Color3B & color) +void FUIRichText::setAnchorFontColor(const axis::Color3B & color) { _parseOptions.linkColor = color; _formatTextDirty = true; @@ -221,7 +221,7 @@ HtmlObject* FUIRichText::getControl(const std::string& name) const return nullptr; } -const char* FUIRichText::hitTestLink(const cocos2d::Vec2 & worldPoint) +const char* FUIRichText::hitTestLink(const axis::Vec2 & worldPoint) { Rect rect; for (auto &child : _children) @@ -237,7 +237,7 @@ const char* FUIRichText::hitTestLink(const cocos2d::Vec2 & worldPoint) return nullptr; } -void FUIRichText::visit(cocos2d::Renderer * renderer, const cocos2d::Mat4 & parentTransform, uint32_t parentFlags) +void FUIRichText::visit(axis::Renderer * renderer, const axis::Mat4 & parentTransform, uint32_t parentFlags) { if (_visible) formatText(); @@ -369,7 +369,7 @@ void FUIRichText::handleTextRenderer(HtmlElement* element, const std::string& te } } -int FUIRichText::findSplitPositionForWord(cocos2d::Label* label, const std::string& text) +int FUIRichText::findSplitPositionForWord(axis::Label* label, const std::string& text) { auto originalLeftSpaceWidth = _leftSpaceWidth + label->getContentSize().width; @@ -517,7 +517,7 @@ void FUIRichText::formarRenderers() _renderers.clear(); } -void FUIRichText::doHorizontalAlignment(const std::vector& row, float rowWidth) { +void FUIRichText::doHorizontalAlignment(const std::vector& row, float rowWidth) { if (_textFormat.align != TextHAlignment::LEFT) { const auto diff = stripTrailingWhitespace(row); const auto leftOver = _dimensions.width - (rowWidth + diff); diff --git a/extensions/fairygui/display/FUIRichText.h b/extensions/fairygui/display/FUIRichText.h index e2c5fb765c..209b71fdf8 100644 --- a/extensions/fairygui/display/FUIRichText.h +++ b/extensions/fairygui/display/FUIRichText.h @@ -10,7 +10,7 @@ NS_FGUI_BEGIN class HtmlObject; -class FUIRichText : public cocos2d::Node +class FUIRichText : public axis::Node { public: FUIRichText(); @@ -18,7 +18,7 @@ public: CREATE_FUNC(FUIRichText); - const cocos2d::Size& getDimensions() const { return _dimensions; } + const axis::Size& getDimensions() const { return _dimensions; } void setDimensions(float width, float height); void setText(const std::string& value); @@ -26,14 +26,14 @@ public: TextFormat* getTextFormat() { return &_textFormat; } void applyTextFormat(); - cocos2d::Label::Overflow getOverflow()const { return _overflow; } - void setOverflow(cocos2d::Label::Overflow overflow); + axis::Label::Overflow getOverflow()const { return _overflow; } + void setOverflow(axis::Label::Overflow overflow); bool isAnchorTextUnderline(); void setAnchorTextUnderline(bool enable); - const cocos2d::Color3B& getAnchorFontColor(); - void setAnchorFontColor(const cocos2d::Color3B& color); + const axis::Color3B& getAnchorFontColor(); + void setAnchorFontColor(const axis::Color3B& color); void setObjectFactory(const std::function& value) { _objectFactory = value; } HtmlParseOptions& parseOptions() { return _parseOptions; } @@ -41,10 +41,10 @@ public: const std::vector& getControls() const { return _controls; } HtmlObject* getControl(const std::string& name) const; - const char* hitTestLink(const cocos2d::Vec2& worldPoint); - virtual void visit(cocos2d::Renderer *renderer, const cocos2d::Mat4 &parentTransform, uint32_t parentFlags) override; + const char* hitTestLink(const axis::Vec2& worldPoint); + virtual void visit(axis::Renderer *renderer, const axis::Mat4 &parentTransform, uint32_t parentFlags) override; - virtual const cocos2d::Size& getContentSize() const override; + virtual const axis::Size& getContentSize() const override; protected: @@ -54,19 +54,19 @@ protected: void handleTextRenderer(HtmlElement* element, const std::string& text); void handleRichRenderer(HtmlElement* element); void addNewLine(); - int findSplitPositionForWord(cocos2d::Label* label, const std::string& text); - void doHorizontalAlignment(const std::vector& row, float rowWidth); + int findSplitPositionForWord(axis::Label* label, const std::string& text); + void doHorizontalAlignment(const std::vector& row, float rowWidth); std::vector _elements; std::vector _controls; - std::vector> _renderers; + std::vector> _renderers; bool _formatTextDirty; bool _textChanged; - cocos2d::Size _dimensions; + axis::Size _dimensions; float _leftSpaceWidth; float _textRectWidth; int _numLines; - cocos2d::Label::Overflow _overflow; + axis::Label::Overflow _overflow; TextFormat _textFormat; std::string _text; HtmlParseOptions _parseOptions; diff --git a/extensions/fairygui/display/FUISprite.cpp b/extensions/fairygui/display/FUISprite.cpp index 14ba4d8cd9..57ec625ed2 100644 --- a/extensions/fairygui/display/FUISprite.cpp +++ b/extensions/fairygui/display/FUISprite.cpp @@ -1,7 +1,7 @@ #include "FUISprite.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; #define kProgressTextureCoordsCount 4 // kProgressTextureCoords holds points {0,1} {0,0} {1,0} {1,1} we can represent it as bits @@ -484,7 +484,7 @@ Vec2 FUISprite::boundaryTexCoord(char index) return Vec2::ZERO; } -void FUISprite::draw(cocos2d::Renderer* renderer, const cocos2d::Mat4& transform, uint32_t flags) +void FUISprite::draw(axis::Renderer* renderer, const axis::Mat4& transform, uint32_t flags) { if (_texture == _empty) return; diff --git a/extensions/fairygui/display/FUISprite.h b/extensions/fairygui/display/FUISprite.h index d93dc5c8f0..42e77dd386 100644 --- a/extensions/fairygui/display/FUISprite.h +++ b/extensions/fairygui/display/FUISprite.h @@ -6,7 +6,7 @@ NS_FGUI_BEGIN -class FUISprite : public cocos2d::Sprite +class FUISprite : public axis::Sprite { public: FUISprite(); @@ -15,7 +15,7 @@ public: CREATE_FUNC(FUISprite); void clearContent(); - void setScale9Grid(cocos2d::Rect* value); + void setScale9Grid(axis::Rect* value); void setGrayed(bool value); FillMethod getFillMethod() const { return _fillMethod; } @@ -33,17 +33,17 @@ public: bool isScaleByTile() const { return _scaleByTile; } void setScaleByTile(bool value); - virtual void setContentSize(const cocos2d::Size& size) override; + virtual void setContentSize(const axis::Size& size) override; protected: - virtual void draw(cocos2d::Renderer *renderer, const cocos2d::Mat4 &transform, uint32_t flags) override; + virtual void draw(axis::Renderer *renderer, const axis::Mat4 &transform, uint32_t flags) override; - cocos2d::Tex2F textureCoordFromAlphaPoint(cocos2d::Vec2 alpha); - cocos2d::Vec3 vertexFromAlphaPoint(cocos2d::Vec2 alpha); + axis::Tex2F textureCoordFromAlphaPoint(axis::Vec2 alpha); + axis::Vec3 vertexFromAlphaPoint(axis::Vec2 alpha); void updateBar(void); void updateRadial(void); virtual void updateColor(void) override; - cocos2d::Vec2 boundaryTexCoord(char index); + axis::Vec2 boundaryTexCoord(char index); void setupFill(); @@ -54,11 +54,11 @@ private: bool _fillClockwise; bool _scaleByTile; int _vertexDataCount; - cocos2d::TrianglesCommand::Triangles _fillTriangles; - cocos2d::V3F_C4B_T2F *_vertexData; + axis::TrianglesCommand::Triangles _fillTriangles; + axis::V3F_C4B_T2F *_vertexData; unsigned short *_vertexIndex; - static cocos2d::Texture2D* _empty; + static axis::Texture2D* _empty; }; NS_FGUI_END diff --git a/extensions/fairygui/display/TextFormat.cpp b/extensions/fairygui/display/TextFormat.cpp index c748d033ff..a17f578dc8 100644 --- a/extensions/fairygui/display/TextFormat.cpp +++ b/extensions/fairygui/display/TextFormat.cpp @@ -1,7 +1,7 @@ #include "TextFormat.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; TextFormat::TextFormat() : fontSize(12), diff --git a/extensions/fairygui/display/TextFormat.h b/extensions/fairygui/display/TextFormat.h index d4f5f8b900..d2e36a1ddd 100644 --- a/extensions/fairygui/display/TextFormat.h +++ b/extensions/fairygui/display/TextFormat.h @@ -24,22 +24,22 @@ public: std::string face; float fontSize; - cocos2d::Color3B color; + axis::Color3B color; bool bold; bool italics; bool underline; int lineSpacing; int letterSpacing; - cocos2d::TextHAlignment align; - cocos2d::TextVAlignment verticalAlign; + axis::TextHAlignment align; + axis::TextVAlignment verticalAlign; int effect; - cocos2d::Color3B outlineColor; + axis::Color3B outlineColor; int outlineSize; - cocos2d::Color3B shadowColor; - cocos2d::Size shadowOffset; + axis::Color3B shadowColor; + axis::Size shadowOffset; int shadowBlurRadius; - cocos2d::Color3B glowColor; + axis::Color3B glowColor; //internal use bool _hasColor; diff --git a/extensions/fairygui/event/EventContext.h b/extensions/fairygui/event/EventContext.h index dc56d1a4c5..c4d77a1e42 100644 --- a/extensions/fairygui/event/EventContext.h +++ b/extensions/fairygui/event/EventContext.h @@ -17,7 +17,7 @@ public: ~EventContext(); int getType() const { return _type; } - cocos2d::Ref* getSender() const { return _sender; } + axis::Ref* getSender() const { return _sender; } InputEvent* getInput() const { return _inputEvent; } void stopPropagation() { _isStopped = true; } void preventDefault() { _defaultPrevented = true; } @@ -25,13 +25,13 @@ public: void captureTouch() { _touchCapture = 1; } void uncaptureTouch() { _touchCapture = 2; } - const cocos2d::Value& getDataValue() const { return _dataValue; } + const axis::Value& getDataValue() const { return _dataValue; } void* getData() const { return _data; } private: - cocos2d::Ref* _sender; + axis::Ref* _sender; InputEvent* _inputEvent; - cocos2d::Value _dataValue; + axis::Value _dataValue; void* _data; bool _isStopped; bool _defaultPrevented; diff --git a/extensions/fairygui/event/HitTest.cpp b/extensions/fairygui/event/HitTest.cpp index 36b59f2e01..44dc5b4ede 100644 --- a/extensions/fairygui/event/HitTest.cpp +++ b/extensions/fairygui/event/HitTest.cpp @@ -2,7 +2,7 @@ #include "GComponent.h" #include "utils/ByteBuffer.h" -USING_NS_CC; +USING_NS_AX; NS_FGUI_BEGIN PixelHitTestData::PixelHitTestData() : @@ -38,7 +38,7 @@ PixelHitTest::PixelHitTest(PixelHitTestData * data, int offsetX, int offsetY) : { } -bool PixelHitTest::hitTest(GComponent * obj, const cocos2d::Vec2 & localPoint) +bool PixelHitTest::hitTest(GComponent * obj, const axis::Vec2 & localPoint) { int x = floor((localPoint.x / scaleX - offsetX) * _data->scale); int y = floor(((obj->getHeight() - localPoint.y) / scaleY - offsetY) * _data->scale); diff --git a/extensions/fairygui/event/HitTest.h b/extensions/fairygui/event/HitTest.h index 4e8a36c7f0..f8a2b7e206 100644 --- a/extensions/fairygui/event/HitTest.h +++ b/extensions/fairygui/event/HitTest.h @@ -12,7 +12,7 @@ class ByteBuffer; class IHitTest { public: - virtual bool hitTest(GComponent* obj, const cocos2d::Vec2& localPoint) + virtual bool hitTest(GComponent* obj, const axis::Vec2& localPoint) { return true; } @@ -37,7 +37,7 @@ class PixelHitTest : public IHitTest public: PixelHitTest(PixelHitTestData* data, int offsetX, int offsetY); - virtual bool hitTest(GComponent* obj, const cocos2d::Vec2& localPoint) override; + virtual bool hitTest(GComponent* obj, const axis::Vec2& localPoint) override; int offsetX; int offsetY; diff --git a/extensions/fairygui/event/InputEvent.cpp b/extensions/fairygui/event/InputEvent.cpp index eb15ada058..f5501dacbd 100644 --- a/extensions/fairygui/event/InputEvent.cpp +++ b/extensions/fairygui/event/InputEvent.cpp @@ -10,8 +10,8 @@ InputEvent::InputEvent() : _touchId(-1), _clickCount(0), _mouseWheelDelta(0), - _button(cocos2d::EventMouse::MouseButton::BUTTON_UNSET), - _keyCode(cocos2d::EventKeyboard::KeyCode::KEY_0), + _button(axis::EventMouse::MouseButton::BUTTON_UNSET), + _keyCode(axis::EventKeyboard::KeyCode::KEY_0), _keyModifiers(0) { } diff --git a/extensions/fairygui/event/InputEvent.h b/extensions/fairygui/event/InputEvent.h index 96758bd920..1a90fe2ef4 100644 --- a/extensions/fairygui/event/InputEvent.h +++ b/extensions/fairygui/event/InputEvent.h @@ -18,12 +18,12 @@ public: GObject* getTarget() const { return _target; } const int getX() const { return static_cast(_pos.x); } const int getY() const {return static_cast(_pos.y); } - const cocos2d::Vec2& getPosition() const { return _pos; } - cocos2d::Touch* getTouch()const { return _touch; } + const axis::Vec2& getPosition() const { return _pos; } + axis::Touch* getTouch()const { return _touch; } int getTouchId()const { return _touchId; } int isDoubleClick()const { return _clickCount == 2; } - cocos2d::EventMouse::MouseButton getButton() const { return _button; } - cocos2d::EventKeyboard::KeyCode getKeyCode() const { return _keyCode; } + axis::EventMouse::MouseButton getButton() const { return _button; } + axis::EventKeyboard::KeyCode getKeyCode() const { return _keyCode; } bool isCtrlDown() const { return (_keyModifiers & 1)!=0; } bool isAltDown() const { return (_keyModifiers & 2) != 0; } bool isShiftDown() const { return (_keyModifiers & 4) != 0; } @@ -33,13 +33,13 @@ public: private: GObject* _target; - cocos2d::Touch* _touch; - cocos2d::Vec2 _pos; + axis::Touch* _touch; + axis::Vec2 _pos; int _touchId; int _clickCount; int _mouseWheelDelta; - cocos2d::EventMouse::MouseButton _button; - cocos2d::EventKeyboard::KeyCode _keyCode; + axis::EventMouse::MouseButton _button; + axis::EventKeyboard::KeyCode _keyCode; uint16_t _keyModifiers; InputProcessor* _inputProcessor; diff --git a/extensions/fairygui/event/InputProcessor.cpp b/extensions/fairygui/event/InputProcessor.cpp index ee8effc31a..d002656a03 100644 --- a/extensions/fairygui/event/InputProcessor.cpp +++ b/extensions/fairygui/event/InputProcessor.cpp @@ -7,7 +7,7 @@ #include "utils/WeakPtr.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; InputProcessor* InputProcessor::_activeProcessor = nullptr; bool InputProcessor::_touchOnUI = false; @@ -21,13 +21,13 @@ public: void reset(); - cocos2d::Touch* touch; - cocos2d::Vec2 pos; + axis::Touch* touch; + axis::Vec2 pos; int touchId; int clickCount; int mouseWheelDelta; - cocos2d::EventMouse::MouseButton button; - cocos2d::Vec2 downPos; + axis::EventMouse::MouseButton button; + axis::Vec2 downPos; bool began; bool clickCancelled; clock_t lastClickTime; @@ -86,7 +86,7 @@ InputProcessor::~InputProcessor() delete ti; } -cocos2d::Vec2 InputProcessor::getTouchPosition(int touchId) +axis::Vec2 InputProcessor::getTouchPosition(int touchId) { for (auto &ti : _touches) { @@ -315,17 +315,17 @@ void InputProcessor::disableDefaultTouchEvent() _owner->displayObject()->getEventDispatcher()->removeEventListener(_touchListener); } -bool InputProcessor::touchDown(cocos2d::Touch *touch, cocos2d::Event *event) +bool InputProcessor::touchDown(axis::Touch *touch, axis::Event *event) { return onTouchBegan(touch, event); } -void InputProcessor::touchMove(cocos2d::Touch *touch, cocos2d::Event *event) +void InputProcessor::touchMove(axis::Touch *touch, axis::Event *event) { onTouchMoved(touch, event); } -void InputProcessor::touchUp(cocos2d::Touch *touch, cocos2d::Event *event) +void InputProcessor::touchUp(axis::Touch *touch, axis::Event *event) { onTouchEnded(touch, event); } @@ -523,7 +523,7 @@ void InputProcessor::onTouchCancelled(Touch* touch, Event* /*unusedEvent*/) _activeProcessor = nullptr; } -void InputProcessor::onMouseDown(cocos2d::EventMouse * event) +void InputProcessor::onMouseDown(axis::EventMouse * event) { if (event->getMouseButton() == EventMouse::MouseButton::BUTTON_LEFT) return; @@ -553,7 +553,7 @@ void InputProcessor::onMouseDown(cocos2d::EventMouse * event) _activeProcessor = nullptr; } -void InputProcessor::onMouseUp(cocos2d::EventMouse * event) +void InputProcessor::onMouseUp(axis::EventMouse * event) { if (event->getMouseButton() == EventMouse::MouseButton::BUTTON_LEFT) return; @@ -617,7 +617,7 @@ void InputProcessor::onMouseUp(cocos2d::EventMouse * event) _activeProcessor = nullptr; } -void InputProcessor::onMouseMove(cocos2d::EventMouse * event) +void InputProcessor::onMouseMove(axis::EventMouse * event) { TouchInfo* ti = getTouch(0); Vec2 npos = UIRoot->worldToRoot(Vec2(event->getCursorX(), event->getCursorY())); @@ -666,7 +666,7 @@ void InputProcessor::onMouseMove(cocos2d::EventMouse * event) _activeProcessor = nullptr; } -void InputProcessor::onMouseScroll(cocos2d::EventMouse * event) +void InputProcessor::onMouseScroll(axis::EventMouse * event) { auto camera = Camera::getVisitingCamera(); Vec2 pt(event->getCursorX(), event->getCursorY()); @@ -688,7 +688,7 @@ void InputProcessor::onMouseScroll(cocos2d::EventMouse * event) _activeProcessor = nullptr; } -void InputProcessor::onKeyDown(cocos2d::EventKeyboard::KeyCode keyCode, cocos2d::Event * event) +void InputProcessor::onKeyDown(axis::EventKeyboard::KeyCode keyCode, axis::Event * event) { if (keyCode == EventKeyboard::KeyCode::KEY_LEFT_CTRL || keyCode == EventKeyboard::KeyCode::KEY_RIGHT_CTRL) _keyModifiers |= 1; @@ -702,7 +702,7 @@ void InputProcessor::onKeyDown(cocos2d::EventKeyboard::KeyCode keyCode, cocos2d: _recentInput._target->dispatchEvent(UIEventType::KeyDown); } -void InputProcessor::onKeyUp(cocos2d::EventKeyboard::KeyCode keyCode, cocos2d::Event *) +void InputProcessor::onKeyUp(axis::EventKeyboard::KeyCode keyCode, axis::Event *) { if (keyCode == EventKeyboard::KeyCode::KEY_LEFT_CTRL || keyCode == EventKeyboard::KeyCode::KEY_RIGHT_CTRL) _keyModifiers &= ~1; diff --git a/extensions/fairygui/event/InputProcessor.h b/extensions/fairygui/event/InputProcessor.h index 4e5a8caa44..7d59df677a 100644 --- a/extensions/fairygui/event/InputProcessor.h +++ b/extensions/fairygui/event/InputProcessor.h @@ -22,7 +22,7 @@ public: InputProcessor(GComponent* owner); ~InputProcessor(); - cocos2d::Vec2 getTouchPosition(int touchId); + axis::Vec2 getTouchPosition(int touchId); void addTouchMonitor(int touchId, GObject* target); void removeTouchMonitor(GObject* target); @@ -33,23 +33,23 @@ public: void setCaptureCallback(CaptureEventCallback value) { _captureCallback = value; } void disableDefaultTouchEvent(); - bool touchDown(cocos2d::Touch *touch, cocos2d::Event *event); - void touchMove(cocos2d::Touch *touch, cocos2d::Event *event); - void touchUp(cocos2d::Touch *touch, cocos2d::Event *event); + bool touchDown(axis::Touch *touch, axis::Event *event); + void touchMove(axis::Touch *touch, axis::Event *event); + void touchUp(axis::Touch *touch, axis::Event *event); private: - bool onTouchBegan(cocos2d::Touch * touch, cocos2d::Event *); - void onTouchMoved(cocos2d::Touch * touch, cocos2d::Event *); - void onTouchEnded(cocos2d::Touch * touch, cocos2d::Event *); - void onTouchCancelled(cocos2d::Touch * touch, cocos2d::Event *); + bool onTouchBegan(axis::Touch * touch, axis::Event *); + void onTouchMoved(axis::Touch * touch, axis::Event *); + void onTouchEnded(axis::Touch * touch, axis::Event *); + void onTouchCancelled(axis::Touch * touch, axis::Event *); - void onMouseDown(cocos2d::EventMouse* event); - void onMouseUp(cocos2d::EventMouse* event); - void onMouseMove(cocos2d::EventMouse* event); - void onMouseScroll(cocos2d::EventMouse* event); + void onMouseDown(axis::EventMouse* event); + void onMouseUp(axis::EventMouse* event); + void onMouseMove(axis::EventMouse* event); + void onMouseScroll(axis::EventMouse* event); - void onKeyDown(cocos2d::EventKeyboard::KeyCode keyCode, cocos2d::Event*); - void onKeyUp(cocos2d::EventKeyboard::KeyCode keyCode, cocos2d::Event*); + void onKeyDown(axis::EventKeyboard::KeyCode keyCode, axis::Event*); + void onKeyUp(axis::EventKeyboard::KeyCode keyCode, axis::Event*); TouchInfo* getTouch(int touchId, bool createIfNotExisits = true); void updateRecentInput(TouchInfo* touch, GObject* target); @@ -58,9 +58,9 @@ private: void setEnd(TouchInfo* touch, GObject* target); GObject* clickTest(TouchInfo* touch, GObject* target); - cocos2d::EventListenerTouchOneByOne* _touchListener; - cocos2d::EventListenerMouse* _mouseListener; - cocos2d::EventListenerKeyboard* _keyboardListener; + axis::EventListenerTouchOneByOne* _touchListener; + axis::EventListenerMouse* _mouseListener; + axis::EventListenerKeyboard* _keyboardListener; std::vector _touches; GComponent* _owner; CaptureEventCallback _captureCallback; diff --git a/extensions/fairygui/event/UIEventDispatcher.cpp b/extensions/fairygui/event/UIEventDispatcher.cpp index 11def0fa13..f225c331ac 100644 --- a/extensions/fairygui/event/UIEventDispatcher.cpp +++ b/extensions/fairygui/event/UIEventDispatcher.cpp @@ -3,7 +3,7 @@ #include "InputProcessor.h" #include "utils/WeakPtr.h" -USING_NS_CC; +USING_NS_AX; NS_FGUI_BEGIN const EventTag EventTag::None; diff --git a/extensions/fairygui/event/UIEventDispatcher.h b/extensions/fairygui/event/UIEventDispatcher.h index 411dd6b140..e5949b052f 100644 --- a/extensions/fairygui/event/UIEventDispatcher.h +++ b/extensions/fairygui/event/UIEventDispatcher.h @@ -40,7 +40,7 @@ private: class InputProcessor; -class UIEventDispatcher : public cocos2d::Ref +class UIEventDispatcher : public axis::Ref { public: UIEventDispatcher(); @@ -54,8 +54,8 @@ public: bool hasEventListener(int eventType) const { return hasEventListener(eventType, EventTag::None); } bool hasEventListener(int eventType, const EventTag& tag) const; - bool dispatchEvent(int eventType, void* data = nullptr, const cocos2d::Value& dataValue = cocos2d::Value::Null); - bool bubbleEvent(int eventType, void* data = nullptr, const cocos2d::Value& dataValue = cocos2d::Value::Null); + bool dispatchEvent(int eventType, void* data = nullptr, const axis::Value& dataValue = axis::Value::Null); + bool bubbleEvent(int eventType, void* data = nullptr, const axis::Value& dataValue = axis::Value::Null); bool isDispatchingEvent(int eventType); diff --git a/extensions/fairygui/gears/GearAnimation.cpp b/extensions/fairygui/gears/GearAnimation.cpp index 39acd6a9be..cdc319eece 100644 --- a/extensions/fairygui/gears/GearAnimation.cpp +++ b/extensions/fairygui/gears/GearAnimation.cpp @@ -4,7 +4,7 @@ #include "utils/ByteBuffer.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; GearAnimation::GearAnimationValue::GearAnimationValue() : frame(0), playing(false) { diff --git a/extensions/fairygui/gears/GearBase.cpp b/extensions/fairygui/gears/GearBase.cpp index 7282b3445c..6fe7386f85 100644 --- a/extensions/fairygui/gears/GearBase.cpp +++ b/extensions/fairygui/gears/GearBase.cpp @@ -14,7 +14,7 @@ #include "utils/ToolSet.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; bool GearBase::disableAllTweenEffect = false; diff --git a/extensions/fairygui/gears/GearColor.cpp b/extensions/fairygui/gears/GearColor.cpp index 6bd847e7e6..6afaa3f9a3 100644 --- a/extensions/fairygui/gears/GearColor.cpp +++ b/extensions/fairygui/gears/GearColor.cpp @@ -7,7 +7,7 @@ #include "utils/ToolSet.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; GearColor::GearColorValue::GearColorValue() { diff --git a/extensions/fairygui/gears/GearColor.h b/extensions/fairygui/gears/GearColor.h index a887d830f8..ad3fe725ef 100644 --- a/extensions/fairygui/gears/GearColor.h +++ b/extensions/fairygui/gears/GearColor.h @@ -30,11 +30,11 @@ private: class GearColorValue { public: - cocos2d::Color3B color; - cocos2d::Color3B outlineColor; + axis::Color3B color; + axis::Color3B outlineColor; GearColorValue(); - GearColorValue(const cocos2d::Color3B& color, const cocos2d::Color3B& outlineColor); + GearColorValue(const axis::Color3B& color, const axis::Color3B& outlineColor); }; std::unordered_map _storage; diff --git a/extensions/fairygui/gears/GearDisplay.cpp b/extensions/fairygui/gears/GearDisplay.cpp index 302f327d1d..9754d8cfce 100644 --- a/extensions/fairygui/gears/GearDisplay.cpp +++ b/extensions/fairygui/gears/GearDisplay.cpp @@ -3,7 +3,7 @@ #include "utils/ByteBuffer.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; GearDisplay::GearDisplay(GObject* owner) : GearBase(owner), diff --git a/extensions/fairygui/gears/GearDisplay2.cpp b/extensions/fairygui/gears/GearDisplay2.cpp index 44671d882c..f263b79362 100644 --- a/extensions/fairygui/gears/GearDisplay2.cpp +++ b/extensions/fairygui/gears/GearDisplay2.cpp @@ -3,7 +3,7 @@ #include "utils/ByteBuffer.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; GearDisplay2::GearDisplay2(GObject* owner) : GearBase(owner), diff --git a/extensions/fairygui/gears/GearFontSize.cpp b/extensions/fairygui/gears/GearFontSize.cpp index e2cd0e33b9..022d639e9c 100644 --- a/extensions/fairygui/gears/GearFontSize.cpp +++ b/extensions/fairygui/gears/GearFontSize.cpp @@ -3,7 +3,7 @@ #include "utils/ByteBuffer.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; GearFontSize::GearFontSize(GObject* owner) : GearBase(owner), _default(13) { } diff --git a/extensions/fairygui/gears/GearIcon.cpp b/extensions/fairygui/gears/GearIcon.cpp index d67f70e853..2eabd22ef8 100644 --- a/extensions/fairygui/gears/GearIcon.cpp +++ b/extensions/fairygui/gears/GearIcon.cpp @@ -3,7 +3,7 @@ #include "utils/ByteBuffer.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; GearIcon::GearIcon(GObject * owner) :GearBase(owner) { diff --git a/extensions/fairygui/gears/GearLook.cpp b/extensions/fairygui/gears/GearLook.cpp index d8cae791de..472d1de754 100644 --- a/extensions/fairygui/gears/GearLook.cpp +++ b/extensions/fairygui/gears/GearLook.cpp @@ -5,7 +5,7 @@ #include "utils/ByteBuffer.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; GearLook::GearLookValue::GearLookValue() : alpha(0), rotation(0), grayed(false), touchable(false) { diff --git a/extensions/fairygui/gears/GearSize.cpp b/extensions/fairygui/gears/GearSize.cpp index 37637baf4d..6f99a371c8 100644 --- a/extensions/fairygui/gears/GearSize.cpp +++ b/extensions/fairygui/gears/GearSize.cpp @@ -5,7 +5,7 @@ #include "utils/ByteBuffer.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; GearSize::GearSize(GObject* owner) : GearBase(owner) { diff --git a/extensions/fairygui/gears/GearSize.h b/extensions/fairygui/gears/GearSize.h index ec832fae65..04718207af 100644 --- a/extensions/fairygui/gears/GearSize.h +++ b/extensions/fairygui/gears/GearSize.h @@ -28,8 +28,8 @@ private: void onTweenUpdate(GTweener* tweener); void onTweenComplete(); - std::unordered_map _storage; - cocos2d::Vec4 _default; + std::unordered_map _storage; + axis::Vec4 _default; }; NS_FGUI_END diff --git a/extensions/fairygui/gears/GearText.cpp b/extensions/fairygui/gears/GearText.cpp index f8711a99f4..2fc4416b55 100644 --- a/extensions/fairygui/gears/GearText.cpp +++ b/extensions/fairygui/gears/GearText.cpp @@ -3,7 +3,7 @@ #include "utils/ByteBuffer.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; GearText::GearText(GObject* owner) : GearBase(owner) { diff --git a/extensions/fairygui/gears/GearXY.cpp b/extensions/fairygui/gears/GearXY.cpp index 7977c41217..4f312e3f28 100644 --- a/extensions/fairygui/gears/GearXY.cpp +++ b/extensions/fairygui/gears/GearXY.cpp @@ -5,7 +5,7 @@ #include "utils/ByteBuffer.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; GearXY::GearXY(GObject* owner) : GearBase(owner), diff --git a/extensions/fairygui/gears/GearXY.h b/extensions/fairygui/gears/GearXY.h index 25fdcb4b3f..5e830e9612 100644 --- a/extensions/fairygui/gears/GearXY.h +++ b/extensions/fairygui/gears/GearXY.h @@ -31,8 +31,8 @@ private: void onTweenUpdate(GTweener* tweener); void onTweenComplete(); - std::unordered_map _storage; - cocos2d::Vec4 _default; + std::unordered_map _storage; + axis::Vec4 _default; }; NS_FGUI_END diff --git a/extensions/fairygui/tween/EaseManager.cpp b/extensions/fairygui/tween/EaseManager.cpp index 3105bc5873..b176664461 100644 --- a/extensions/fairygui/tween/EaseManager.cpp +++ b/extensions/fairygui/tween/EaseManager.cpp @@ -2,7 +2,7 @@ #include "cocos2d.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; static const float _PiOver2 = (float)(M_PI * 0.5f); static const float _TwoPi = (float)(M_PI * 2); diff --git a/extensions/fairygui/tween/GPath.cpp b/extensions/fairygui/tween/GPath.cpp index e3da6034d4..0b58ebd482 100644 --- a/extensions/fairygui/tween/GPath.cpp +++ b/extensions/fairygui/tween/GPath.cpp @@ -1,9 +1,9 @@ #include "GPath.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; -static std::vector splinePoints; +static std::vector splinePoints; GPathPoint::GPathPoint(const Vec3& pos) { @@ -189,7 +189,7 @@ float GPath::getSegmentLength(int segmentIndex) } void GPath::getPointsInSegment(int segmentIndex, float t0, float t1, - std::vector& points, std::vector* ts, float pointDensity) + std::vector& points, std::vector* ts, float pointDensity) { if (ts != nullptr) ts->push_back(t0); @@ -236,7 +236,7 @@ void GPath::getPointsInSegment(int segmentIndex, float t0, float t1, ts->push_back(t1); } -void GPath::getAllPoints(std::vector& points, float pointDensity) +void GPath::getAllPoints(std::vector& points, float pointDensity) { int cnt = (int)_segments.size(); for (int i = 0; i < cnt; i++) diff --git a/extensions/fairygui/tween/GPath.h b/extensions/fairygui/tween/GPath.h index 87b11234d9..2ce097d16e 100644 --- a/extensions/fairygui/tween/GPath.h +++ b/extensions/fairygui/tween/GPath.h @@ -16,15 +16,15 @@ struct GPathPoint Straight }; - cocos2d::Vec3 pos; - cocos2d::Vec3 control1; - cocos2d::Vec3 control2; + axis::Vec3 pos; + axis::Vec3 control1; + axis::Vec3 control2; CurveType curveType; - GPathPoint(const cocos2d::Vec3& pos); - GPathPoint(const cocos2d::Vec3& pos, const cocos2d::Vec3& control); - GPathPoint(const cocos2d::Vec3& pos, const cocos2d::Vec3& control1, const cocos2d::Vec3& control2); - GPathPoint(const cocos2d::Vec3& pos, CurveType curveType); + GPathPoint(const axis::Vec3& pos); + GPathPoint(const axis::Vec3& pos, const axis::Vec3& control); + GPathPoint(const axis::Vec3& pos, const axis::Vec3& control1, const axis::Vec3& control2); + GPathPoint(const axis::Vec3& pos, CurveType curveType); }; class GPath @@ -33,14 +33,14 @@ public: GPath(); void create(GPathPoint* points, int count); void clear(); - cocos2d::Vec3 getPointAt(float t); + axis::Vec3 getPointAt(float t); float getLength() { return _fullLength; } int getSegmentCount() { return (int)_segments.size(); } float getSegmentLength(int segmentIndex); void getPointsInSegment(int segmentIndex, float t0, float t1, - std::vector& points, std::vector* ts = nullptr, float pointDensity = 0.1f); - void getAllPoints(std::vector& points, float pointDensity = 0.1f); + std::vector& points, std::vector* ts = nullptr, float pointDensity = 0.1f); + void getAllPoints(std::vector& points, float pointDensity = 0.1f); struct Segment { @@ -52,11 +52,11 @@ public: private: void createSplineSegment(); - cocos2d::Vec3 onCRSplineCurve(int ptStart, int ptCount, float t); - cocos2d::Vec3 onBezierCurve(int ptStart, int ptCount, float t); + axis::Vec3 onCRSplineCurve(int ptStart, int ptCount, float t); + axis::Vec3 onBezierCurve(int ptStart, int ptCount, float t); std::vector _segments; - std::vector _points; + std::vector _points; float _fullLength; }; diff --git a/extensions/fairygui/tween/GTween.cpp b/extensions/fairygui/tween/GTween.cpp index 88da64a226..07b867f0fd 100644 --- a/extensions/fairygui/tween/GTween.cpp +++ b/extensions/fairygui/tween/GTween.cpp @@ -2,29 +2,29 @@ #include "TweenManager.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; GTweener* GTween::to(float startValue, float endValue, float duration) { return TweenManager::createTween()->_to(startValue, endValue, duration); } -GTweener* GTween::to(const cocos2d::Vec2& startValue, const cocos2d::Vec2 & endValue, float duration) +GTweener* GTween::to(const axis::Vec2& startValue, const axis::Vec2 & endValue, float duration) { return TweenManager::createTween()->_to(startValue, endValue, duration); } -GTweener* GTween::to(const cocos2d::Vec3& startValue, const cocos2d::Vec3 & endValue, float duration) +GTweener* GTween::to(const axis::Vec3& startValue, const axis::Vec3 & endValue, float duration) { return TweenManager::createTween()->_to(startValue, endValue, duration); } -GTweener* GTween::to(const cocos2d::Vec4& startValue, const cocos2d::Vec4 & endValue, float duration) +GTweener* GTween::to(const axis::Vec4& startValue, const axis::Vec4 & endValue, float duration) { return TweenManager::createTween()->_to(startValue, endValue, duration); } -GTweener* GTween::to(const cocos2d::Color4B& startValue, const cocos2d::Color4B & endValue, float duration) +GTweener* GTween::to(const axis::Color4B& startValue, const axis::Color4B & endValue, float duration) { return TweenManager::createTween()->_to(startValue, endValue, duration); } @@ -39,42 +39,42 @@ GTweener* GTween::delayedCall(float delay) return TweenManager::createTween()->setDelay(delay); } -GTweener* GTween::shake(const cocos2d::Vec2& startValue, float amplitude, float duration) +GTweener* GTween::shake(const axis::Vec2& startValue, float amplitude, float duration) { return TweenManager::createTween()->_shake(startValue, amplitude, duration); } -bool GTween::isTweening(cocos2d::Ref * target) +bool GTween::isTweening(axis::Ref * target) { return TweenManager::isTweening(target, TweenPropType::None); } -bool GTween::isTweening(cocos2d::Ref * target, TweenPropType propType) +bool GTween::isTweening(axis::Ref * target, TweenPropType propType) { return TweenManager::isTweening(target, propType); } -void GTween::kill(cocos2d::Ref * target) +void GTween::kill(axis::Ref * target) { TweenManager::killTweens(target, TweenPropType::None, false); } -void GTween::kill(cocos2d::Ref * target, bool complete) +void GTween::kill(axis::Ref * target, bool complete) { TweenManager::killTweens(target, TweenPropType::None, complete); } -void GTween::kill(cocos2d::Ref * target, TweenPropType propType, bool complete) +void GTween::kill(axis::Ref * target, TweenPropType propType, bool complete) { TweenManager::killTweens(target, propType, complete); } -GTweener* GTween::getTween(cocos2d::Ref * target) +GTweener* GTween::getTween(axis::Ref * target) { return TweenManager::getTween(target, TweenPropType::None); } -GTweener* GTween::getTween(cocos2d::Ref * target, TweenPropType propType) +GTweener* GTween::getTween(axis::Ref * target, TweenPropType propType) { return TweenManager::getTween(target, propType); } diff --git a/extensions/fairygui/tween/GTween.h b/extensions/fairygui/tween/GTween.h index 8e6d16a208..3b06acdc0a 100644 --- a/extensions/fairygui/tween/GTween.h +++ b/extensions/fairygui/tween/GTween.h @@ -14,20 +14,20 @@ class GTween { public: static GTweener* to(float startValue, float endValue, float duration); - static GTweener* to(const cocos2d::Vec2& startValue, const cocos2d::Vec2& endValue, float duration); - static GTweener* to(const cocos2d::Vec3& startValue, const cocos2d::Vec3& endValue, float duration); - static GTweener* to(const cocos2d::Vec4& startValue, const cocos2d::Vec4& endValue, float duration); - static GTweener* to(const cocos2d::Color4B& startValue, const cocos2d::Color4B& endValue, float duration); + static GTweener* to(const axis::Vec2& startValue, const axis::Vec2& endValue, float duration); + static GTweener* to(const axis::Vec3& startValue, const axis::Vec3& endValue, float duration); + static GTweener* to(const axis::Vec4& startValue, const axis::Vec4& endValue, float duration); + static GTweener* to(const axis::Color4B& startValue, const axis::Color4B& endValue, float duration); static GTweener* toDouble(double startValue, double endValue, float duration); static GTweener* delayedCall(float delay); - static GTweener* shake(const cocos2d::Vec2& startValue, float amplitude, float duration); - static bool isTweening(cocos2d::Ref* target); - static bool isTweening(cocos2d::Ref* target, TweenPropType propType); - static void kill(cocos2d::Ref* target); - static void kill(cocos2d::Ref* target, bool complete); - static void kill(cocos2d::Ref* target, TweenPropType propType, bool complete); - static GTweener* getTween(cocos2d::Ref* target); - static GTweener* getTween(cocos2d::Ref* target, TweenPropType propType); + static GTweener* shake(const axis::Vec2& startValue, float amplitude, float duration); + static bool isTweening(axis::Ref* target); + static bool isTweening(axis::Ref* target, TweenPropType propType); + static void kill(axis::Ref* target); + static void kill(axis::Ref* target, bool complete); + static void kill(axis::Ref* target, TweenPropType propType, bool complete); + static GTweener* getTween(axis::Ref* target); + static GTweener* getTween(axis::Ref* target, TweenPropType propType); static void clean(); }; diff --git a/extensions/fairygui/tween/GTweener.cpp b/extensions/fairygui/tween/GTweener.cpp index 479707f28f..4125f1c743 100644 --- a/extensions/fairygui/tween/GTweener.cpp +++ b/extensions/fairygui/tween/GTweener.cpp @@ -4,7 +4,7 @@ #include "GPath.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; GTweener::GTweener() : _target(nullptr), _refTarget(nullptr), @@ -84,12 +84,12 @@ GTweener* GTweener::setTargetAny(void* value) return this; } -GTweener* GTweener::setTarget(cocos2d::Ref* value) +GTweener* GTweener::setTarget(axis::Ref* value) { return setTarget(value, TweenPropType::None); } -GTweener* GTweener::setTarget(cocos2d::Ref* target, TweenPropType propType) +GTweener* GTweener::setTarget(axis::Ref* target, TweenPropType propType) { CC_SAFE_RELEASE(_refTarget); _target = _refTarget = target; @@ -191,7 +191,7 @@ GTweener* GTweener::_to(float start, float end, float duration) return this; } -GTweener* GTweener::_to(const cocos2d::Vec2& start, const cocos2d::Vec2& end, float duration) +GTweener* GTweener::_to(const axis::Vec2& start, const axis::Vec2& end, float duration) { _valueSize = 2; startValue.setVec2(start); @@ -201,7 +201,7 @@ GTweener* GTweener::_to(const cocos2d::Vec2& start, const cocos2d::Vec2& end, fl return this; } -GTweener* GTweener::_to(const cocos2d::Vec3& start, const cocos2d::Vec3& end, float duration) +GTweener* GTweener::_to(const axis::Vec3& start, const axis::Vec3& end, float duration) { _valueSize = 3; startValue.setVec3(start); @@ -211,7 +211,7 @@ GTweener* GTweener::_to(const cocos2d::Vec3& start, const cocos2d::Vec3& end, fl return this; } -GTweener* GTweener::_to(const cocos2d::Vec4& start, const cocos2d::Vec4& end, float duration) +GTweener* GTweener::_to(const axis::Vec4& start, const axis::Vec4& end, float duration) { _valueSize = 4; startValue.setVec4(start); @@ -221,7 +221,7 @@ GTweener* GTweener::_to(const cocos2d::Vec4& start, const cocos2d::Vec4& end, fl return this; } -GTweener* GTweener::_to(const cocos2d::Color4B& start, const cocos2d::Color4B& end, float duration) +GTweener* GTweener::_to(const axis::Color4B& start, const axis::Color4B& end, float duration) { _valueSize = 4; startValue.setColor(start); @@ -241,7 +241,7 @@ GTweener* GTweener::_to(double start, double end, float duration) return this; } -GTweener* GTweener::_shake(const cocos2d::Vec2& start, float amplitude, float duration) +GTweener* GTweener::_shake(const axis::Vec2& start, float amplitude, float duration) { _valueSize = 6; startValue.setVec2(start); diff --git a/extensions/fairygui/tween/GTweener.h b/extensions/fairygui/tween/GTweener.h index 03b0439261..e46e5dadbc 100644 --- a/extensions/fairygui/tween/GTweener.h +++ b/extensions/fairygui/tween/GTweener.h @@ -11,7 +11,7 @@ NS_FGUI_BEGIN class GPath; -class GTweener : public cocos2d::Ref +class GTweener : public axis::Ref { public: typedef std::function GTweenCallback; @@ -32,12 +32,12 @@ public: GTweener* setTimeScale(float value); GTweener* setSnapping(bool value); GTweener* setTargetAny(void* value); - GTweener* setTarget(cocos2d::Ref* target); - GTweener* setTarget(cocos2d::Ref* target, TweenPropType propType); + GTweener* setTarget(axis::Ref* target); + GTweener* setTarget(axis::Ref* target, TweenPropType propType); void* getTarget() const { return _target; } - GTweener* setUserData(const cocos2d::Value& value); + GTweener* setUserData(const axis::Value& value); GTweener* setPath(GPath* path); - const cocos2d::Value& getUserData() const { return _userData; } + const axis::Value& getUserData() const { return _userData; } GTweener* onUpdate(GTweenCallback callback); GTweener* onStart(GTweenCallback callback); GTweener* onComplete(GTweenCallback0 callback); @@ -57,12 +57,12 @@ public: private: GTweener* _to(float start, float end, float duration); - GTweener* _to(const cocos2d::Vec2& start, const cocos2d::Vec2& end, float duration); - GTweener* _to(const cocos2d::Vec3& start, const cocos2d::Vec3& end, float duration); - GTweener* _to(const cocos2d::Vec4& start, const cocos2d::Vec4& end, float duration); - GTweener* _to(const cocos2d::Color4B& start, const cocos2d::Color4B& end, float duration); + GTweener* _to(const axis::Vec2& start, const axis::Vec2& end, float duration); + GTweener* _to(const axis::Vec3& start, const axis::Vec3& end, float duration); + GTweener* _to(const axis::Vec4& start, const axis::Vec4& end, float duration); + GTweener* _to(const axis::Color4B& start, const axis::Color4B& end, float duration); GTweener* _to(double start, double end, float duration); - GTweener* _shake(const cocos2d::Vec2& start, float amplitude, float duration); + GTweener* _shake(const axis::Vec2& start, float amplitude, float duration); void _init(); void _reset(); void _update(float dt); @@ -73,7 +73,7 @@ private: private: void* _target; - cocos2d::Ref* _refTarget; + axis::Ref* _refTarget; TweenPropType _propType; bool _killed; bool _paused; @@ -88,7 +88,7 @@ private: bool _yoyo; float _timeScale; bool _snapping; - cocos2d::Value _userData; + axis::Value _userData; int _valueSize; GPath* _path; diff --git a/extensions/fairygui/tween/TweenManager.cpp b/extensions/fairygui/tween/TweenManager.cpp index d5b1fae8b1..c8eb2bc02f 100644 --- a/extensions/fairygui/tween/TweenManager.cpp +++ b/extensions/fairygui/tween/TweenManager.cpp @@ -2,7 +2,7 @@ #include "GTweener.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; GTweener** TweenManager::_activeTweens = nullptr; std::vector TweenManager::_tweenerPool; @@ -50,7 +50,7 @@ GTweener* TweenManager::createTween() return tweener; } -bool TweenManager::isTweening(cocos2d::Ref* target, TweenPropType propType) +bool TweenManager::isTweening(axis::Ref* target, TweenPropType propType) { if (target == nullptr) return false; @@ -66,7 +66,7 @@ bool TweenManager::isTweening(cocos2d::Ref* target, TweenPropType propType) return false; } -bool TweenManager::killTweens(cocos2d::Ref* target, TweenPropType propType, bool completed) +bool TweenManager::killTweens(axis::Ref* target, TweenPropType propType, bool completed) { if (target == nullptr) return false; @@ -87,7 +87,7 @@ bool TweenManager::killTweens(cocos2d::Ref* target, TweenPropType propType, bool return flag; } -GTweener* TweenManager::getTween(cocos2d::Ref* target, TweenPropType propType) +GTweener* TweenManager::getTween(axis::Ref* target, TweenPropType propType) { if (target == nullptr) return nullptr; @@ -173,11 +173,11 @@ void TweenManager::init() _activeTweens = new GTweener*[_arrayLength]; } - cocos2d::Director::getInstance()->getScheduler()->scheduleUpdate(&tweenEngine, INT_MIN + 10, false); - cocos2d::Director::getInstance()->getEventDispatcher()->addCustomEventListener(cocos2d::Director::EVENT_RESET, &reset); + axis::Director::getInstance()->getScheduler()->scheduleUpdate(&tweenEngine, INT_MIN + 10, false); + axis::Director::getInstance()->getEventDispatcher()->addCustomEventListener(axis::Director::EVENT_RESET, &reset); } -void TweenManager::reset(cocos2d::EventCustom*) +void TweenManager::reset(axis::EventCustom*) { int cnt = _totalActiveTweens; for (int i = 0; i < cnt; i++) diff --git a/extensions/fairygui/tween/TweenManager.h b/extensions/fairygui/tween/TweenManager.h index d59395d705..ee6d571067 100644 --- a/extensions/fairygui/tween/TweenManager.h +++ b/extensions/fairygui/tween/TweenManager.h @@ -13,15 +13,15 @@ class TweenManager { public: static GTweener* createTween(); - static bool isTweening(cocos2d::Ref* target, TweenPropType propType); - static bool killTweens(cocos2d::Ref* target, TweenPropType propType, bool completed); - static GTweener* getTween(cocos2d::Ref* target, TweenPropType propType); + static bool isTweening(axis::Ref* target, TweenPropType propType); + static bool killTweens(axis::Ref* target, TweenPropType propType, bool completed); + static GTweener* getTween(axis::Ref* target, TweenPropType propType); static void update(float dt); static void clean(); static void init(); private: - static void reset(cocos2d::EventCustom*); + static void reset(axis::EventCustom*); static GTweener** _activeTweens; static std::vector _tweenerPool; diff --git a/extensions/fairygui/tween/TweenPropType.cpp b/extensions/fairygui/tween/TweenPropType.cpp index e4ccff1559..870041bac9 100644 --- a/extensions/fairygui/tween/TweenPropType.cpp +++ b/extensions/fairygui/tween/TweenPropType.cpp @@ -4,7 +4,7 @@ #include "GProgressBar.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; void TweenPropTypeUtils::setProps(GObject * target, TweenPropType propType, const TweenValue & value) { @@ -65,7 +65,7 @@ void TweenPropTypeUtils::setProps(GObject * target, TweenPropType propType, cons } } -void TweenPropTypeUtils::setProps(cocos2d::Node * target, TweenPropType propType, const TweenValue & value) +void TweenPropTypeUtils::setProps(axis::Node * target, TweenPropType propType, const TweenValue & value) { switch (propType) { diff --git a/extensions/fairygui/tween/TweenPropType.h b/extensions/fairygui/tween/TweenPropType.h index fe21dabbc9..b044917856 100644 --- a/extensions/fairygui/tween/TweenPropType.h +++ b/extensions/fairygui/tween/TweenPropType.h @@ -30,7 +30,7 @@ class TweenPropTypeUtils { public: static void setProps(GObject* target, TweenPropType propType, const TweenValue& value); - static void setProps(cocos2d::Node* target, TweenPropType propType, const TweenValue& value); + static void setProps(axis::Node* target, TweenPropType propType, const TweenValue& value); }; diff --git a/extensions/fairygui/tween/TweenValue.cpp b/extensions/fairygui/tween/TweenValue.cpp index 5cce8b3225..b71baaf08e 100644 --- a/extensions/fairygui/tween/TweenValue.cpp +++ b/extensions/fairygui/tween/TweenValue.cpp @@ -2,41 +2,41 @@ #include "base/format.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; TweenValue::TweenValue():x(0),y(0),z(0),w(0),d(0) { } -cocos2d::Vec2 TweenValue::getVec2() const +axis::Vec2 TweenValue::getVec2() const { - return cocos2d::Vec2(x, y); + return axis::Vec2(x, y); } -void TweenValue::setVec2(const cocos2d::Vec2 & value) +void TweenValue::setVec2(const axis::Vec2 & value) { x = value.x; y = value.y; } -cocos2d::Vec3 TweenValue::getVec3() const +axis::Vec3 TweenValue::getVec3() const { - return cocos2d::Vec3(x, y, z); + return axis::Vec3(x, y, z); } -void TweenValue::setVec3(const cocos2d::Vec3 & value) +void TweenValue::setVec3(const axis::Vec3 & value) { x = value.x; y = value.y; z = value.z; } -cocos2d::Vec4 TweenValue::getVec4() const +axis::Vec4 TweenValue::getVec4() const { - return cocos2d::Vec4(x, y, z, w); + return axis::Vec4(x, y, z, w); } -void TweenValue::setVec4(const cocos2d::Vec4 & value) +void TweenValue::setVec4(const axis::Vec4 & value) { x = value.x; y = value.y; @@ -44,12 +44,12 @@ void TweenValue::setVec4(const cocos2d::Vec4 & value) w = value.w; } -cocos2d::Color4B TweenValue::getColor() const +axis::Color4B TweenValue::getColor() const { - return cocos2d::Color4B(x, y, z, w); + return axis::Color4B(x, y, z, w); } -void TweenValue::setColor(const cocos2d::Color4B & value) +void TweenValue::setColor(const axis::Color4B & value) { x = value.r; y = value.g; diff --git a/extensions/fairygui/tween/TweenValue.h b/extensions/fairygui/tween/TweenValue.h index a3a42b4b2f..f75c9d0150 100644 --- a/extensions/fairygui/tween/TweenValue.h +++ b/extensions/fairygui/tween/TweenValue.h @@ -17,14 +17,14 @@ public: TweenValue(); - cocos2d::Vec2 getVec2() const; - void setVec2(const cocos2d::Vec2& value); - cocos2d::Vec3 getVec3() const; - void setVec3(const cocos2d::Vec3& value); - cocos2d::Vec4 getVec4() const; - void setVec4(const cocos2d::Vec4& value); - cocos2d::Color4B getColor() const; - void setColor(const cocos2d::Color4B& value); + axis::Vec2 getVec2() const; + void setVec2(const axis::Vec2& value); + axis::Vec3 getVec3() const; + void setVec3(const axis::Vec3& value); + axis::Vec4 getVec4() const; + void setVec4(const axis::Vec4& value); + axis::Color4B getColor() const; + void setColor(const axis::Color4B& value); float operator[] (int index) const; float& operator[] (int index); void setZero(); diff --git a/extensions/fairygui/utils/ByteBuffer.cpp b/extensions/fairygui/utils/ByteBuffer.cpp index f52fa0c77b..259196d416 100644 --- a/extensions/fairygui/utils/ByteBuffer.cpp +++ b/extensions/fairygui/utils/ByteBuffer.cpp @@ -110,7 +110,7 @@ const std::string& ByteBuffer::readS() { int index = readUshort(); if (index == 65534 || index == 65533) - return cocos2d::STD_STRING_EMPTY; + return axis::STD_STRING_EMPTY; else return (*_stringTable)[index]; } @@ -138,7 +138,7 @@ const string* ByteBuffer::readSP() if (index == 65534) //null return nullptr; else if (index == 65533) - return &cocos2d::STD_STRING_EMPTY; + return &axis::STD_STRING_EMPTY; else return &(*_stringTable)[index]; } @@ -156,7 +156,7 @@ void ByteBuffer::writeS(const std::string& value) (*_stringTable)[index] = value; } -cocos2d::Color4B ByteBuffer::readColor() +axis::Color4B ByteBuffer::readColor() { int startIndex = _offset + _position; #if COCOS2D_VERSION >= 0x00040000 @@ -172,7 +172,7 @@ cocos2d::Color4B ByteBuffer::readColor() #endif _position += 4; - return cocos2d::Color4B(r, g, b, a); + return axis::Color4B(r, g, b, a); } ByteBuffer* ByteBuffer::readBuffer() diff --git a/extensions/fairygui/utils/ByteBuffer.h b/extensions/fairygui/utils/ByteBuffer.h index 6eaa9931d2..c168c74f60 100644 --- a/extensions/fairygui/utils/ByteBuffer.h +++ b/extensions/fairygui/utils/ByteBuffer.h @@ -39,7 +39,7 @@ public: bool readS(std::string& result); const std::string* readSP(); void writeS(const std::string& value); - cocos2d::Color4B readColor(); + axis::Color4B readColor(); ByteBuffer* readBuffer(); bool seek(int indexTablePos, int blockIndex); diff --git a/extensions/fairygui/utils/ToolSet.cpp b/extensions/fairygui/utils/ToolSet.cpp index 2e9533de14..4496ac0e76 100644 --- a/extensions/fairygui/utils/ToolSet.cpp +++ b/extensions/fairygui/utils/ToolSet.cpp @@ -1,7 +1,7 @@ #include "utils/ToolSet.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; using namespace std; Color4B ToolSet::hexToColor(const char* str) @@ -29,12 +29,12 @@ Color4B ToolSet::hexToColor(const char* str) } } -cocos2d::Color3B ToolSet::intToColor(unsigned int rgb) +axis::Color3B ToolSet::intToColor(unsigned int rgb) { return Color3B((rgb >> 16) & 0xFF, (rgb >> 8) & 0xFF, rgb & 0xFF); } -unsigned int ToolSet::colorToInt(const cocos2d::Color3B& color) +unsigned int ToolSet::colorToInt(const axis::Color3B& color) { return (color.r << 16) + (color.g << 8) + color.b; } diff --git a/extensions/fairygui/utils/ToolSet.h b/extensions/fairygui/utils/ToolSet.h index 02f8b06a29..ed07f6ad7c 100644 --- a/extensions/fairygui/utils/ToolSet.h +++ b/extensions/fairygui/utils/ToolSet.h @@ -9,11 +9,11 @@ NS_FGUI_BEGIN class ToolSet { public: - static cocos2d::Color4B hexToColor(const char* str); - static cocos2d::Color3B intToColor(unsigned int rgb); - static unsigned int colorToInt(const cocos2d::Color3B& color); + static axis::Color4B hexToColor(const char* str); + static axis::Color3B intToColor(unsigned int rgb); + static unsigned int colorToInt(const axis::Color3B& color); - static cocos2d::Rect intersection(const cocos2d::Rect& rect1, const cocos2d::Rect& rect2); + static axis::Rect intersection(const axis::Rect& rect1, const axis::Rect& rect2); static int findInStringArray(const std::vector& arr, const std::string& str); static bool isFileExist(const std::string& fileName); diff --git a/extensions/fairygui/utils/UBBParser.cpp b/extensions/fairygui/utils/UBBParser.cpp index ce1d9f44f1..38e4eafd04 100644 --- a/extensions/fairygui/utils/UBBParser.cpp +++ b/extensions/fairygui/utils/UBBParser.cpp @@ -2,7 +2,7 @@ #include "base/format.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; using namespace std; UBBParser* UBBParser::_inst = nullptr; diff --git a/extensions/fairygui/utils/WeakPtr.cpp b/extensions/fairygui/utils/WeakPtr.cpp index b566ed4be6..756bf3e943 100644 --- a/extensions/fairygui/utils/WeakPtr.cpp +++ b/extensions/fairygui/utils/WeakPtr.cpp @@ -2,7 +2,7 @@ #include "GObject.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; using namespace std; std::unordered_map _weakPointers; diff --git a/extensions/fairygui/utils/html/HtmlElement.cpp b/extensions/fairygui/utils/html/HtmlElement.cpp index 9e1cbfc12c..eec833fecf 100644 --- a/extensions/fairygui/utils/html/HtmlElement.cpp +++ b/extensions/fairygui/utils/html/HtmlElement.cpp @@ -2,7 +2,7 @@ #include "HtmlObject.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; using namespace std; diff --git a/extensions/fairygui/utils/html/HtmlElement.h b/extensions/fairygui/utils/html/HtmlElement.h index 633abe722e..392a139ca3 100644 --- a/extensions/fairygui/utils/html/HtmlElement.h +++ b/extensions/fairygui/utils/html/HtmlElement.h @@ -26,8 +26,8 @@ public: virtual ~HtmlElement() {}; int getInt(const std::string& attrName, int defValue = 0); - std::string getString(const std::string& attrName, const std::string& defValue = cocos2d::STD_STRING_EMPTY); - cocos2d::ValueVector& getArray(const std::string& attrName); + std::string getString(const std::string& attrName, const std::string& defValue = axis::STD_STRING_EMPTY); + axis::ValueVector& getArray(const std::string& attrName); Type type; std::string text; @@ -35,7 +35,7 @@ public: HtmlElement* link; HtmlObject *obj; int space; - cocos2d::ValueMap attrs; + axis::ValueMap attrs; }; NS_FGUI_END diff --git a/extensions/fairygui/utils/html/HtmlObject.cpp b/extensions/fairygui/utils/html/HtmlObject.cpp index b18c1c1c61..14b5df0854 100644 --- a/extensions/fairygui/utils/html/HtmlObject.cpp +++ b/extensions/fairygui/utils/html/HtmlObject.cpp @@ -5,7 +5,7 @@ #include "UIPackage.h" NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; using namespace std; @@ -15,7 +15,7 @@ std::string HtmlObject::selectResource; bool HtmlObject::usePool = true; GObjectPool HtmlObject::objectPool; -cocos2d::Vector HtmlObject::loaderPool; +axis::Vector HtmlObject::loaderPool; HtmlObject::HtmlObject() :_ui(nullptr), _hidden(false) { diff --git a/extensions/fairygui/utils/html/HtmlObject.h b/extensions/fairygui/utils/html/HtmlObject.h index 188c20a16e..717fa8b1a7 100644 --- a/extensions/fairygui/utils/html/HtmlObject.h +++ b/extensions/fairygui/utils/html/HtmlObject.h @@ -20,7 +20,7 @@ public: static bool usePool; static GObjectPool objectPool; - static cocos2d::Vector loaderPool; + static axis::Vector loaderPool; HtmlObject(); virtual ~HtmlObject(); diff --git a/extensions/fairygui/utils/html/HtmlParser.cpp b/extensions/fairygui/utils/html/HtmlParser.cpp index 57c0373d7a..cee83ccd3e 100644 --- a/extensions/fairygui/utils/html/HtmlParser.cpp +++ b/extensions/fairygui/utils/html/HtmlParser.cpp @@ -8,7 +8,7 @@ #include NS_FGUI_BEGIN -USING_NS_CC; +USING_NS_AX; using namespace std; diff --git a/extensions/fairygui/utils/html/HtmlParser.h b/extensions/fairygui/utils/html/HtmlParser.h index c9f5535bb6..d1a708d6fa 100644 --- a/extensions/fairygui/utils/html/HtmlParser.h +++ b/extensions/fairygui/utils/html/HtmlParser.h @@ -13,15 +13,15 @@ class HtmlParseOptions { public: static bool defaultLinkUnderline; - static cocos2d::Color3B defaultLinkColor; + static axis::Color3B defaultLinkColor; HtmlParseOptions(); bool linkUnderline; - cocos2d::Color3B linkColor; + axis::Color3B linkColor; }; -class HtmlParser : public cocos2d::SAXDelegator +class HtmlParser : public axis::SAXDelegator { public: static HtmlParser defaultParser; @@ -36,8 +36,8 @@ public: void textHandler(void *ctx, const char *s, size_t len) override; private: - cocos2d::ValueMap parseAttrs(const char ** attrs); - int attributeInt(const cocos2d::ValueMap& vm, const std::string& key, int defaultValue); + axis::ValueMap parseAttrs(const char ** attrs); + int attributeInt(const axis::ValueMap& vm, const std::string& key, int defaultValue); void pushTextFormat(); void popTextFormat(); diff --git a/extensions/physics-nodes/CCPhysicsDebugNode.cpp b/extensions/physics-nodes/CCPhysicsDebugNode.cpp index e7be5a1dc1..b46d4b454f 100644 --- a/extensions/physics-nodes/CCPhysicsDebugNode.cpp +++ b/extensions/physics-nodes/CCPhysicsDebugNode.cpp @@ -34,7 +34,7 @@ #include #include -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN /* IMPORTANT - READ ME! @@ -249,4 +249,4 @@ void PhysicsDebugNode::setSpace(cpSpace* space) _spacePtr = space; } -NS_CC_EXT_END \ No newline at end of file +NS_AX_EXT_END \ No newline at end of file diff --git a/extensions/physics-nodes/CCPhysicsDebugNode.h b/extensions/physics-nodes/CCPhysicsDebugNode.h index 686a03bfc8..832eed84ac 100644 --- a/extensions/physics-nodes/CCPhysicsDebugNode.h +++ b/extensions/physics-nodes/CCPhysicsDebugNode.h @@ -31,7 +31,7 @@ struct cpSpace; -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN /** * A BaseData that draws the components of a physics engine. @@ -68,6 +68,6 @@ protected: cpSpace* _spacePtr; }; -NS_CC_EXT_END +NS_AX_EXT_END #endif // __PHYSICSNODES_DEBUGNODE_H__ diff --git a/extensions/physics-nodes/CCPhysicsDebugNodeBox2D.cpp b/extensions/physics-nodes/CCPhysicsDebugNodeBox2D.cpp index 79ec0500aa..d2f7852749 100644 --- a/extensions/physics-nodes/CCPhysicsDebugNodeBox2D.cpp +++ b/extensions/physics-nodes/CCPhysicsDebugNodeBox2D.cpp @@ -18,7 +18,7 @@ #include "CCPhysicsDebugNodeBox2D.h" -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN PhysicsDebugNodeBox2D::PhysicsDebugNodeBox2D() { @@ -29,17 +29,17 @@ PhysicsDebugNodeBox2D::PhysicsDebugNodeBox2D() PhysicsDebugNodeBox2D::~PhysicsDebugNodeBox2D() {} -cocos2d::DrawNode* PhysicsDebugNodeBox2D::GetDrawNode() +axis::DrawNode* PhysicsDebugNodeBox2D::GetDrawNode() { return drawBP; } -void PhysicsDebugNodeBox2D::SetDrawNode(cocos2d::DrawNode* drawNode) +void PhysicsDebugNodeBox2D::SetDrawNode(axis::DrawNode* drawNode) { drawBP = drawNode; } -cocos2d::Vec2& PhysicsDebugNodeBox2D::GetDebugNodeOffset() +axis::Vec2& PhysicsDebugNodeBox2D::GetDebugNodeOffset() { return debugNodeOffset; } @@ -110,4 +110,4 @@ void PhysicsDebugNodeBox2D::DrawPoint(const b2Vec2& p, float size, const b2Color Color4F(color.r, color.g, color.b, color.a)); } -NS_CC_EXT_END \ No newline at end of file +NS_AX_EXT_END \ No newline at end of file diff --git a/extensions/physics-nodes/CCPhysicsDebugNodeBox2D.h b/extensions/physics-nodes/CCPhysicsDebugNodeBox2D.h index 29971d6e8d..be3f13d66f 100644 --- a/extensions/physics-nodes/CCPhysicsDebugNodeBox2D.h +++ b/extensions/physics-nodes/CCPhysicsDebugNodeBox2D.h @@ -26,7 +26,7 @@ #include "box2d/box2d.h" #include "cocos2d.h" -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN // This class implements debug drawing callbacks that are invoked inside b2World::Step. class CC_EX_DLL PhysicsDebugNodeBox2D : public b2Draw @@ -53,17 +53,17 @@ public: void DrawPoint(const b2Vec2& p, float size, const b2Color& color) override; // axis stuffs - cocos2d::DrawNode* GetDrawNode(); - void SetDrawNode(cocos2d::DrawNode* drawNode); - cocos2d::Vec2& GetDebugNodeOffset(); + axis::DrawNode* GetDrawNode(); + void SetDrawNode(axis::DrawNode* drawNode); + axis::Vec2& GetDebugNodeOffset(); - cocos2d::DrawNode* drawBP = NULL; // axis "interface"! - cocos2d::Vec2 debugNodeOffset; + axis::DrawNode* drawBP = NULL; // axis "interface"! + axis::Vec2 debugNodeOffset; float mRatio; private: }; -NS_CC_EXT_END +NS_AX_EXT_END #endif //__PHYSICSNODES_DEBUGNODE_BOX2D_H__ \ No newline at end of file diff --git a/extensions/physics-nodes/CCPhysicsDebugNodeChipmunk2D.cpp b/extensions/physics-nodes/CCPhysicsDebugNodeChipmunk2D.cpp index 1a464d7473..3345623f9d 100644 --- a/extensions/physics-nodes/CCPhysicsDebugNodeChipmunk2D.cpp +++ b/extensions/physics-nodes/CCPhysicsDebugNodeChipmunk2D.cpp @@ -34,7 +34,7 @@ #include #include -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN Vec2 physicsDebugNodeOffset; @@ -251,4 +251,4 @@ void PhysicsDebugNodeChipmunk2D::setSpace(cpSpace* space) _spacePtr = space; } -NS_CC_EXT_END \ No newline at end of file +NS_AX_EXT_END \ No newline at end of file diff --git a/extensions/physics-nodes/CCPhysicsDebugNodeChipmunk2D.h b/extensions/physics-nodes/CCPhysicsDebugNodeChipmunk2D.h index 50b3cff22b..6f4f9374a9 100644 --- a/extensions/physics-nodes/CCPhysicsDebugNodeChipmunk2D.h +++ b/extensions/physics-nodes/CCPhysicsDebugNodeChipmunk2D.h @@ -31,7 +31,7 @@ struct cpSpace; -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN extern Vec2 physicsDebugNodeOffset; @@ -70,6 +70,6 @@ protected: cpSpace* _spacePtr; }; -NS_CC_EXT_END +NS_AX_EXT_END #endif // __PHYSICSNODES_DEBUGNODE_CHIPMUNK2D_H__ diff --git a/extensions/physics-nodes/CCPhysicsSprite.cpp b/extensions/physics-nodes/CCPhysicsSprite.cpp index 88e852227d..0ec61d3141 100644 --- a/extensions/physics-nodes/CCPhysicsSprite.cpp +++ b/extensions/physics-nodes/CCPhysicsSprite.cpp @@ -34,7 +34,7 @@ # include "box2d/box2d.h" # endif -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN PhysicsSprite::PhysicsSprite() : _ignoreBodyRotation(false), _CPBody(nullptr), _pB2Body(nullptr), _PTMRatio(0.0f), _syncTransform(nullptr) @@ -465,6 +465,6 @@ void PhysicsSprite::afterUpdate(EventCustom* /*event*/) setDirtyRecursively(true); } -NS_CC_EXT_END +NS_AX_EXT_END #endif // CC_ENABLE_CHIPMUNK_INTEGRATION || CC_ENABLE_BOX2D_INTEGRATION diff --git a/extensions/physics-nodes/CCPhysicsSprite.h b/extensions/physics-nodes/CCPhysicsSprite.h index 359b8aa7d8..16a0eb49b0 100644 --- a/extensions/physics-nodes/CCPhysicsSprite.h +++ b/extensions/physics-nodes/CCPhysicsSprite.h @@ -35,7 +35,7 @@ struct cpBody; class b2Body; -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN /** A Sprite subclass that is bound to a physics body. It works with: @@ -144,10 +144,10 @@ protected: float _PTMRatio; // Event for update synchronise physic transform - cocos2d::EventListenerCustom* _syncTransform; + axis::EventListenerCustom* _syncTransform; }; -NS_CC_EXT_END +NS_AX_EXT_END #endif // CC_ENABLE_CHIPMUNK_INTEGRATION || CC_ENABLE_BOX2D_INTEGRATION diff --git a/extensions/physics-nodes/CCPhysicsSpriteBox2D.cpp b/extensions/physics-nodes/CCPhysicsSpriteBox2D.cpp index e5896d3d1f..6add6591cb 100644 --- a/extensions/physics-nodes/CCPhysicsSpriteBox2D.cpp +++ b/extensions/physics-nodes/CCPhysicsSpriteBox2D.cpp @@ -28,7 +28,7 @@ #include "box2d/box2d.h" -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN PhysicsSpriteBox2D::PhysicsSpriteBox2D() : _ignoreBodyRotation(false), _pB2Body(nullptr), _PTMRatio(0.0f), _syncTransform(nullptr) @@ -349,4 +349,4 @@ void PhysicsSpriteBox2D::afterUpdate(EventCustom* /*event*/) setDirtyRecursively(true); } -NS_CC_EXT_END \ No newline at end of file +NS_AX_EXT_END \ No newline at end of file diff --git a/extensions/physics-nodes/CCPhysicsSpriteBox2D.h b/extensions/physics-nodes/CCPhysicsSpriteBox2D.h index fbf016be32..5a39e38263 100644 --- a/extensions/physics-nodes/CCPhysicsSpriteBox2D.h +++ b/extensions/physics-nodes/CCPhysicsSpriteBox2D.h @@ -32,7 +32,7 @@ class b2Body; -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN /** A Sprite subclass that is bound to a physics body. It works with: @@ -129,9 +129,9 @@ protected: float _PTMRatio; // Event for update synchronise physic transform - cocos2d::EventListenerCustom* _syncTransform; + axis::EventListenerCustom* _syncTransform; }; -NS_CC_EXT_END +NS_AX_EXT_END #endif // __PHYSICSNODES_CCPHYSICSSPRITEBOX2D_H__ diff --git a/extensions/physics-nodes/CCPhysicsSpriteChipmunk2D.cpp b/extensions/physics-nodes/CCPhysicsSpriteChipmunk2D.cpp index f0d7cd1ae9..a5e21a679f 100644 --- a/extensions/physics-nodes/CCPhysicsSpriteChipmunk2D.cpp +++ b/extensions/physics-nodes/CCPhysicsSpriteChipmunk2D.cpp @@ -28,7 +28,7 @@ #include "chipmunk/chipmunk.h" -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN PhysicsSpriteChipmunk2D::PhysicsSpriteChipmunk2D() : _ignoreBodyRotation(false), _CPBody(nullptr), _syncTransform(nullptr) @@ -326,4 +326,4 @@ void PhysicsSpriteChipmunk2D::afterUpdate(EventCustom* /*event*/) setDirtyRecursively(true); } -NS_CC_EXT_END \ No newline at end of file +NS_AX_EXT_END \ No newline at end of file diff --git a/extensions/physics-nodes/CCPhysicsSpriteChipmunk2D.h b/extensions/physics-nodes/CCPhysicsSpriteChipmunk2D.h index a82aa9cfb9..d948a02fee 100644 --- a/extensions/physics-nodes/CCPhysicsSpriteChipmunk2D.h +++ b/extensions/physics-nodes/CCPhysicsSpriteChipmunk2D.h @@ -32,7 +32,7 @@ struct cpBody; -NS_CC_EXT_BEGIN +NS_AX_EXT_BEGIN /** A Sprite subclass that is bound to a physics body. It works with: @@ -128,9 +128,9 @@ protected: cpBody* _CPBody; // Event for update synchronise physic transform - cocos2d::EventListenerCustom* _syncTransform; + axis::EventListenerCustom* _syncTransform; }; -NS_CC_EXT_END +NS_AX_EXT_END #endif // __PHYSICSNODES_CCPhysicsSpriteChipmunk2DCHIPMUNK2D_H__ diff --git a/extensions/scripting/lua-bindings/auto/lua_cocos2dx_3d_auto.cpp b/extensions/scripting/lua-bindings/auto/lua_cocos2dx_3d_auto.cpp index 91c279277c..4842094fdc 100644 --- a/extensions/scripting/lua-bindings/auto/lua_cocos2dx_3d_auto.cpp +++ b/extensions/scripting/lua-bindings/auto/lua_cocos2dx_3d_auto.cpp @@ -7,7 +7,7 @@ int lua_cocos2dx_3d_Animation3D_initWithFile(lua_State* tolua_S) { int argc = 0; - cocos2d::Animation3D* cobj = nullptr; + axis::Animation3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -19,7 +19,7 @@ int lua_cocos2dx_3d_Animation3D_initWithFile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Animation3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Animation3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Animation3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -60,7 +60,7 @@ int lua_cocos2dx_3d_Animation3D_initWithFile(lua_State* tolua_S) int lua_cocos2dx_3d_Animation3D_init(lua_State* tolua_S) { int argc = 0; - cocos2d::Animation3D* cobj = nullptr; + axis::Animation3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -72,7 +72,7 @@ int lua_cocos2dx_3d_Animation3D_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Animation3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Animation3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Animation3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -85,7 +85,7 @@ int lua_cocos2dx_3d_Animation3D_init(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Animation3DData arg0; + axis::Animation3DData arg0; #pragma warning NO CONVERSION TO NATIVE FOR Animation3DData ok = false; @@ -111,7 +111,7 @@ int lua_cocos2dx_3d_Animation3D_init(lua_State* tolua_S) int lua_cocos2dx_3d_Animation3D_getDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::Animation3D* cobj = nullptr; + axis::Animation3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -123,7 +123,7 @@ int lua_cocos2dx_3d_Animation3D_getDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Animation3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Animation3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Animation3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -179,8 +179,8 @@ int lua_cocos2dx_3d_Animation3D_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Animation3D_create'", nullptr); return 0; } - cocos2d::Animation3D* ret = cocos2d::Animation3D::create(arg0); - object_to_luaval(tolua_S, "cc.Animation3D",(cocos2d::Animation3D*)ret); + axis::Animation3D* ret = axis::Animation3D::create(arg0); + object_to_luaval(tolua_S, "cc.Animation3D",(axis::Animation3D*)ret); return 1; } if (argc == 2) @@ -194,8 +194,8 @@ int lua_cocos2dx_3d_Animation3D_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Animation3D_create'", nullptr); return 0; } - cocos2d::Animation3D* ret = cocos2d::Animation3D::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.Animation3D",(cocos2d::Animation3D*)ret); + axis::Animation3D* ret = axis::Animation3D::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.Animation3D",(axis::Animation3D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Animation3D:create",argc, 1); @@ -209,7 +209,7 @@ int lua_cocos2dx_3d_Animation3D_create(lua_State* tolua_S) int lua_cocos2dx_3d_Animation3D_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Animation3D* cobj = nullptr; + axis::Animation3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -226,7 +226,7 @@ int lua_cocos2dx_3d_Animation3D_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Animation3D_constructor'", nullptr); return 0; } - cobj = new cocos2d::Animation3D(); + cobj = new axis::Animation3D(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -261,7 +261,7 @@ int lua_register_cocos2dx_3d_Animation3D(lua_State* tolua_S) tolua_function(tolua_S,"getDuration",lua_cocos2dx_3d_Animation3D_getDuration); tolua_function(tolua_S,"create", lua_cocos2dx_3d_Animation3D_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Animation3D).name(); // rtti is literal storage + auto typeName = typeid(axis::Animation3D).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Animation3D"; g_typeCast[typeName] = "cc.Animation3D"; return 1; @@ -270,7 +270,7 @@ int lua_register_cocos2dx_3d_Animation3D(lua_State* tolua_S) int lua_cocos2dx_3d_Animate3D_setKeyFrameUserInfo(lua_State* tolua_S) { int argc = 0; - cocos2d::Animate3D* cobj = nullptr; + axis::Animate3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -282,7 +282,7 @@ int lua_cocos2dx_3d_Animate3D_setKeyFrameUserInfo(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Animate3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Animate3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Animate3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -296,7 +296,7 @@ int lua_cocos2dx_3d_Animate3D_setKeyFrameUserInfo(lua_State* tolua_S) if (argc == 2) { int arg0; - cocos2d::ValueMap arg1; + axis::ValueMap arg1; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Animate3D:setKeyFrameUserInfo"); @@ -323,7 +323,7 @@ int lua_cocos2dx_3d_Animate3D_setKeyFrameUserInfo(lua_State* tolua_S) int lua_cocos2dx_3d_Animate3D_getSpeed(lua_State* tolua_S) { int argc = 0; - cocos2d::Animate3D* cobj = nullptr; + axis::Animate3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -335,7 +335,7 @@ int lua_cocos2dx_3d_Animate3D_getSpeed(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Animate3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Animate3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Animate3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -370,7 +370,7 @@ int lua_cocos2dx_3d_Animate3D_getSpeed(lua_State* tolua_S) int lua_cocos2dx_3d_Animate3D_setQuality(lua_State* tolua_S) { int argc = 0; - cocos2d::Animate3D* cobj = nullptr; + axis::Animate3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -382,7 +382,7 @@ int lua_cocos2dx_3d_Animate3D_setQuality(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Animate3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Animate3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Animate3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -395,7 +395,7 @@ int lua_cocos2dx_3d_Animate3D_setQuality(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Animate3DQuality arg0; + axis::Animate3DQuality arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Animate3D:setQuality"); if(!ok) @@ -420,7 +420,7 @@ int lua_cocos2dx_3d_Animate3D_setQuality(lua_State* tolua_S) int lua_cocos2dx_3d_Animate3D_setWeight(lua_State* tolua_S) { int argc = 0; - cocos2d::Animate3D* cobj = nullptr; + axis::Animate3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -432,7 +432,7 @@ int lua_cocos2dx_3d_Animate3D_setWeight(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Animate3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Animate3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Animate3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -470,7 +470,7 @@ int lua_cocos2dx_3d_Animate3D_setWeight(lua_State* tolua_S) int lua_cocos2dx_3d_Animate3D_removeFromMap(lua_State* tolua_S) { int argc = 0; - cocos2d::Animate3D* cobj = nullptr; + axis::Animate3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -482,7 +482,7 @@ int lua_cocos2dx_3d_Animate3D_removeFromMap(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Animate3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Animate3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Animate3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -517,7 +517,7 @@ int lua_cocos2dx_3d_Animate3D_removeFromMap(lua_State* tolua_S) int lua_cocos2dx_3d_Animate3D_initWithFrames(lua_State* tolua_S) { int argc = 0; - cocos2d::Animate3D* cobj = nullptr; + axis::Animate3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -529,7 +529,7 @@ int lua_cocos2dx_3d_Animate3D_initWithFrames(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Animate3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Animate3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Animate3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -542,12 +542,12 @@ int lua_cocos2dx_3d_Animate3D_initWithFrames(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 4) { - cocos2d::Animation3D* arg0; + axis::Animation3D* arg0; int arg1; int arg2; double arg3; - ok &= luaval_to_object(tolua_S, 2, "cc.Animation3D",&arg0, "cc.Animate3D:initWithFrames"); + ok &= luaval_to_object(tolua_S, 2, "cc.Animation3D",&arg0, "cc.Animate3D:initWithFrames"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Animate3D:initWithFrames"); @@ -576,7 +576,7 @@ int lua_cocos2dx_3d_Animate3D_initWithFrames(lua_State* tolua_S) int lua_cocos2dx_3d_Animate3D_getOriginInterval(lua_State* tolua_S) { int argc = 0; - cocos2d::Animate3D* cobj = nullptr; + axis::Animate3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -588,7 +588,7 @@ int lua_cocos2dx_3d_Animate3D_getOriginInterval(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Animate3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Animate3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Animate3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -623,7 +623,7 @@ int lua_cocos2dx_3d_Animate3D_getOriginInterval(lua_State* tolua_S) int lua_cocos2dx_3d_Animate3D_setSpeed(lua_State* tolua_S) { int argc = 0; - cocos2d::Animate3D* cobj = nullptr; + axis::Animate3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -635,7 +635,7 @@ int lua_cocos2dx_3d_Animate3D_setSpeed(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Animate3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Animate3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Animate3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -673,7 +673,7 @@ int lua_cocos2dx_3d_Animate3D_setSpeed(lua_State* tolua_S) int lua_cocos2dx_3d_Animate3D_init(lua_State* tolua_S) { int argc = 0; - cocos2d::Animate3D* cobj = nullptr; + axis::Animate3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -682,7 +682,7 @@ int lua_cocos2dx_3d_Animate3D_init(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animate3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Animate3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Animate3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -693,8 +693,8 @@ int lua_cocos2dx_3d_Animate3D_init(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 3) { - cocos2d::Animation3D* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Animation3D",&arg0, "cc.Animate3D:init"); + axis::Animation3D* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Animation3D",&arg0, "cc.Animate3D:init"); if (!ok) { break; } double arg1; @@ -713,8 +713,8 @@ int lua_cocos2dx_3d_Animate3D_init(lua_State* tolua_S) ok = true; do{ if (argc == 1) { - cocos2d::Animation3D* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Animation3D",&arg0, "cc.Animate3D:init"); + axis::Animation3D* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Animation3D",&arg0, "cc.Animate3D:init"); if (!ok) { break; } bool ret = cobj->init(arg0); @@ -736,7 +736,7 @@ int lua_cocos2dx_3d_Animate3D_init(lua_State* tolua_S) int lua_cocos2dx_3d_Animate3D_setOriginInterval(lua_State* tolua_S) { int argc = 0; - cocos2d::Animate3D* cobj = nullptr; + axis::Animate3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -748,7 +748,7 @@ int lua_cocos2dx_3d_Animate3D_setOriginInterval(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Animate3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Animate3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Animate3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -786,7 +786,7 @@ int lua_cocos2dx_3d_Animate3D_setOriginInterval(lua_State* tolua_S) int lua_cocos2dx_3d_Animate3D_getWeight(lua_State* tolua_S) { int argc = 0; - cocos2d::Animate3D* cobj = nullptr; + axis::Animate3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -798,7 +798,7 @@ int lua_cocos2dx_3d_Animate3D_getWeight(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Animate3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Animate3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Animate3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -833,7 +833,7 @@ int lua_cocos2dx_3d_Animate3D_getWeight(lua_State* tolua_S) int lua_cocos2dx_3d_Animate3D_getQuality(lua_State* tolua_S) { int argc = 0; - cocos2d::Animate3D* cobj = nullptr; + axis::Animate3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -845,7 +845,7 @@ int lua_cocos2dx_3d_Animate3D_getQuality(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Animate3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Animate3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Animate3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -895,8 +895,8 @@ int lua_cocos2dx_3d_Animate3D_create(lua_State* tolua_S) { if (argc == 3) { - cocos2d::Animation3D* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Animation3D",&arg0, "cc.Animate3D:create"); + axis::Animation3D* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Animation3D",&arg0, "cc.Animate3D:create"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Animate3D:create"); @@ -904,8 +904,8 @@ int lua_cocos2dx_3d_Animate3D_create(lua_State* tolua_S) double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Animate3D:create"); if (!ok) { break; } - cocos2d::Animate3D* ret = cocos2d::Animate3D::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.Animate3D",(cocos2d::Animate3D*)ret); + axis::Animate3D* ret = axis::Animate3D::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.Animate3D",(axis::Animate3D*)ret); return 1; } } while (0); @@ -914,11 +914,11 @@ int lua_cocos2dx_3d_Animate3D_create(lua_State* tolua_S) { if (argc == 1) { - cocos2d::Animation3D* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Animation3D",&arg0, "cc.Animate3D:create"); + axis::Animation3D* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Animation3D",&arg0, "cc.Animate3D:create"); if (!ok) { break; } - cocos2d::Animate3D* ret = cocos2d::Animate3D::create(arg0); - object_to_luaval(tolua_S, "cc.Animate3D",(cocos2d::Animate3D*)ret); + axis::Animate3D* ret = axis::Animate3D::create(arg0); + object_to_luaval(tolua_S, "cc.Animate3D",(axis::Animate3D*)ret); return 1; } } while (0); @@ -953,7 +953,7 @@ int lua_cocos2dx_3d_Animate3D_getTransitionTime(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Animate3D_getTransitionTime'", nullptr); return 0; } - double ret = cocos2d::Animate3D::getTransitionTime(); + double ret = axis::Animate3D::getTransitionTime(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } @@ -982,10 +982,10 @@ int lua_cocos2dx_3d_Animate3D_createWithFrames(lua_State* tolua_S) if (argc == 3) { - cocos2d::Animation3D* arg0; + axis::Animation3D* arg0; int arg1; int arg2; - ok &= luaval_to_object(tolua_S, 2, "cc.Animation3D",&arg0, "cc.Animate3D:createWithFrames"); + ok &= luaval_to_object(tolua_S, 2, "cc.Animation3D",&arg0, "cc.Animate3D:createWithFrames"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Animate3D:createWithFrames"); ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.Animate3D:createWithFrames"); if(!ok) @@ -993,17 +993,17 @@ int lua_cocos2dx_3d_Animate3D_createWithFrames(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Animate3D_createWithFrames'", nullptr); return 0; } - cocos2d::Animate3D* ret = cocos2d::Animate3D::createWithFrames(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.Animate3D",(cocos2d::Animate3D*)ret); + axis::Animate3D* ret = axis::Animate3D::createWithFrames(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.Animate3D",(axis::Animate3D*)ret); return 1; } if (argc == 4) { - cocos2d::Animation3D* arg0; + axis::Animation3D* arg0; int arg1; int arg2; double arg3; - ok &= luaval_to_object(tolua_S, 2, "cc.Animation3D",&arg0, "cc.Animate3D:createWithFrames"); + ok &= luaval_to_object(tolua_S, 2, "cc.Animation3D",&arg0, "cc.Animate3D:createWithFrames"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Animate3D:createWithFrames"); ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.Animate3D:createWithFrames"); ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.Animate3D:createWithFrames"); @@ -1012,8 +1012,8 @@ int lua_cocos2dx_3d_Animate3D_createWithFrames(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Animate3D_createWithFrames'", nullptr); return 0; } - cocos2d::Animate3D* ret = cocos2d::Animate3D::createWithFrames(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.Animate3D",(cocos2d::Animate3D*)ret); + axis::Animate3D* ret = axis::Animate3D::createWithFrames(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.Animate3D",(axis::Animate3D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Animate3D:createWithFrames",argc, 3); @@ -1048,7 +1048,7 @@ int lua_cocos2dx_3d_Animate3D_setTransitionTime(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Animate3D_setTransitionTime'", nullptr); return 0; } - cocos2d::Animate3D::setTransitionTime(arg0); + axis::Animate3D::setTransitionTime(arg0); lua_settop(tolua_S, 1); return 1; } @@ -1063,7 +1063,7 @@ int lua_cocos2dx_3d_Animate3D_setTransitionTime(lua_State* tolua_S) int lua_cocos2dx_3d_Animate3D_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Animate3D* cobj = nullptr; + axis::Animate3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1080,7 +1080,7 @@ int lua_cocos2dx_3d_Animate3D_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Animate3D_constructor'", nullptr); return 0; } - cobj = new cocos2d::Animate3D(); + cobj = new axis::Animate3D(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -1127,7 +1127,7 @@ int lua_register_cocos2dx_3d_Animate3D(lua_State* tolua_S) tolua_function(tolua_S,"createWithFrames", lua_cocos2dx_3d_Animate3D_createWithFrames); tolua_function(tolua_S,"setTransitionTime", lua_cocos2dx_3d_Animate3D_setTransitionTime); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Animate3D).name(); // rtti is literal storage + auto typeName = typeid(axis::Animate3D).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Animate3D"; g_typeCast[typeName] = "cc.Animate3D"; return 1; @@ -1136,7 +1136,7 @@ int lua_register_cocos2dx_3d_Animate3D(lua_State* tolua_S) int lua_cocos2dx_3d_TextureCube_getImagePaths(lua_State* tolua_S) { int argc = 0; - cocos2d::TextureCube* cobj = nullptr; + axis::TextureCube* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1148,7 +1148,7 @@ int lua_cocos2dx_3d_TextureCube_getImagePaths(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TextureCube",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TextureCube*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TextureCube*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1183,7 +1183,7 @@ int lua_cocos2dx_3d_TextureCube_getImagePaths(lua_State* tolua_S) int lua_cocos2dx_3d_TextureCube_getBackendTexture(lua_State* tolua_S) { int argc = 0; - cocos2d::TextureCube* cobj = nullptr; + axis::TextureCube* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1195,7 +1195,7 @@ int lua_cocos2dx_3d_TextureCube_getBackendTexture(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TextureCube",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TextureCube*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TextureCube*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1213,8 +1213,8 @@ int lua_cocos2dx_3d_TextureCube_getBackendTexture(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_TextureCube_getBackendTexture'", nullptr); return 0; } - cocos2d::backend::TextureBackend* ret = cobj->getBackendTexture(); - object_to_luaval(tolua_S, "ccb.TextureBackend",(cocos2d::backend::TextureBackend*)ret); + axis::backend::TextureBackend* ret = cobj->getBackendTexture(); + object_to_luaval(tolua_S, "ccb.TextureBackend",(axis::backend::TextureBackend*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCube:getBackendTexture",argc, 0); @@ -1230,7 +1230,7 @@ int lua_cocos2dx_3d_TextureCube_getBackendTexture(lua_State* tolua_S) int lua_cocos2dx_3d_TextureCube_reloadTexture(lua_State* tolua_S) { int argc = 0; - cocos2d::TextureCube* cobj = nullptr; + axis::TextureCube* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1242,7 +1242,7 @@ int lua_cocos2dx_3d_TextureCube_reloadTexture(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TextureCube",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TextureCube*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TextureCube*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1277,7 +1277,7 @@ int lua_cocos2dx_3d_TextureCube_reloadTexture(lua_State* tolua_S) int lua_cocos2dx_3d_TextureCube_setTexParameters(lua_State* tolua_S) { int argc = 0; - cocos2d::TextureCube* cobj = nullptr; + axis::TextureCube* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1289,7 +1289,7 @@ int lua_cocos2dx_3d_TextureCube_setTexParameters(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TextureCube",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TextureCube*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TextureCube*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1302,7 +1302,7 @@ int lua_cocos2dx_3d_TextureCube_setTexParameters(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Texture2D::TexParams arg0; + axis::Texture2D::TexParams arg0; ok &= luaval_to_texparams(tolua_S, 2, &arg0, "cc.TextureCube:setTexParameters"); if(!ok) @@ -1358,8 +1358,8 @@ int lua_cocos2dx_3d_TextureCube_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_TextureCube_create'", nullptr); return 0; } - cocos2d::TextureCube* ret = cocos2d::TextureCube::create(arg0, arg1, arg2, arg3, arg4, arg5); - object_to_luaval(tolua_S, "cc.TextureCube",(cocos2d::TextureCube*)ret); + axis::TextureCube* ret = axis::TextureCube::create(arg0, arg1, arg2, arg3, arg4, arg5); + object_to_luaval(tolua_S, "cc.TextureCube",(axis::TextureCube*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TextureCube:create",argc, 6); @@ -1373,7 +1373,7 @@ int lua_cocos2dx_3d_TextureCube_create(lua_State* tolua_S) int lua_cocos2dx_3d_TextureCube_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TextureCube* cobj = nullptr; + axis::TextureCube* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1390,7 +1390,7 @@ int lua_cocos2dx_3d_TextureCube_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_TextureCube_constructor'", nullptr); return 0; } - cobj = new cocos2d::TextureCube(); + cobj = new axis::TextureCube(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -1426,7 +1426,7 @@ int lua_register_cocos2dx_3d_TextureCube(lua_State* tolua_S) tolua_function(tolua_S,"setTexParameters",lua_cocos2dx_3d_TextureCube_setTexParameters); tolua_function(tolua_S,"create", lua_cocos2dx_3d_TextureCube_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TextureCube).name(); // rtti is literal storage + auto typeName = typeid(axis::TextureCube).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TextureCube"; g_typeCast[typeName] = "cc.TextureCube"; return 1; @@ -1449,15 +1449,15 @@ int lua_cocos2dx_3d_AttachNode_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::Bone3D* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Bone3D",&arg0, "cc.AttachNode:create"); + axis::Bone3D* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Bone3D",&arg0, "cc.AttachNode:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_AttachNode_create'", nullptr); return 0; } - cocos2d::AttachNode* ret = cocos2d::AttachNode::create(arg0); - object_to_luaval(tolua_S, "cc.AttachNode",(cocos2d::AttachNode*)ret); + axis::AttachNode* ret = axis::AttachNode::create(arg0); + object_to_luaval(tolua_S, "cc.AttachNode",(axis::AttachNode*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.AttachNode:create",argc, 1); @@ -1471,7 +1471,7 @@ int lua_cocos2dx_3d_AttachNode_create(lua_State* tolua_S) int lua_cocos2dx_3d_AttachNode_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::AttachNode* cobj = nullptr; + axis::AttachNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1488,7 +1488,7 @@ int lua_cocos2dx_3d_AttachNode_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_AttachNode_constructor'", nullptr); return 0; } - cobj = new cocos2d::AttachNode(); + cobj = new axis::AttachNode(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -1520,7 +1520,7 @@ int lua_register_cocos2dx_3d_AttachNode(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_3d_AttachNode_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_3d_AttachNode_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::AttachNode).name(); // rtti is literal storage + auto typeName = typeid(axis::AttachNode).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.AttachNode"; g_typeCast[typeName] = "cc.AttachNode"; return 1; @@ -1529,7 +1529,7 @@ int lua_register_cocos2dx_3d_AttachNode(lua_State* tolua_S) int lua_cocos2dx_3d_BillBoard_getMode(lua_State* tolua_S) { int argc = 0; - cocos2d::BillBoard* cobj = nullptr; + axis::BillBoard* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1541,7 +1541,7 @@ int lua_cocos2dx_3d_BillBoard_getMode(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.BillBoard",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::BillBoard*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::BillBoard*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1576,7 +1576,7 @@ int lua_cocos2dx_3d_BillBoard_getMode(lua_State* tolua_S) int lua_cocos2dx_3d_BillBoard_setMode(lua_State* tolua_S) { int argc = 0; - cocos2d::BillBoard* cobj = nullptr; + axis::BillBoard* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1588,7 +1588,7 @@ int lua_cocos2dx_3d_BillBoard_setMode(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.BillBoard",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::BillBoard*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::BillBoard*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1601,7 +1601,7 @@ int lua_cocos2dx_3d_BillBoard_setMode(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::BillBoard::Mode arg0; + axis::BillBoard::Mode arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.BillBoard:setMode"); if(!ok) @@ -1644,8 +1644,8 @@ int lua_cocos2dx_3d_BillBoard_create(lua_State* tolua_S) std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.BillBoard:create"); if (!ok) { break; } - cocos2d::BillBoard* ret = cocos2d::BillBoard::create(arg0); - object_to_luaval(tolua_S, "cc.BillBoard",(cocos2d::BillBoard*)ret); + axis::BillBoard* ret = axis::BillBoard::create(arg0); + object_to_luaval(tolua_S, "cc.BillBoard",(axis::BillBoard*)ret); return 1; } } while (0); @@ -1657,11 +1657,11 @@ int lua_cocos2dx_3d_BillBoard_create(lua_State* tolua_S) std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.BillBoard:create"); if (!ok) { break; } - cocos2d::BillBoard::Mode arg1; + axis::BillBoard::Mode arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.BillBoard:create"); if (!ok) { break; } - cocos2d::BillBoard* ret = cocos2d::BillBoard::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.BillBoard",(cocos2d::BillBoard*)ret); + axis::BillBoard* ret = axis::BillBoard::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.BillBoard",(axis::BillBoard*)ret); return 1; } } while (0); @@ -1670,8 +1670,8 @@ int lua_cocos2dx_3d_BillBoard_create(lua_State* tolua_S) { if (argc == 0) { - cocos2d::BillBoard* ret = cocos2d::BillBoard::create(); - object_to_luaval(tolua_S, "cc.BillBoard",(cocos2d::BillBoard*)ret); + axis::BillBoard* ret = axis::BillBoard::create(); + object_to_luaval(tolua_S, "cc.BillBoard",(axis::BillBoard*)ret); return 1; } } while (0); @@ -1680,11 +1680,11 @@ int lua_cocos2dx_3d_BillBoard_create(lua_State* tolua_S) { if (argc == 1) { - cocos2d::BillBoard::Mode arg0; + axis::BillBoard::Mode arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.BillBoard:create"); if (!ok) { break; } - cocos2d::BillBoard* ret = cocos2d::BillBoard::create(arg0); - object_to_luaval(tolua_S, "cc.BillBoard",(cocos2d::BillBoard*)ret); + axis::BillBoard* ret = axis::BillBoard::create(arg0); + object_to_luaval(tolua_S, "cc.BillBoard",(axis::BillBoard*)ret); return 1; } } while (0); @@ -1696,11 +1696,11 @@ int lua_cocos2dx_3d_BillBoard_create(lua_State* tolua_S) std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.BillBoard:create"); if (!ok) { break; } - cocos2d::Rect arg1; + axis::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.BillBoard:create"); if (!ok) { break; } - cocos2d::BillBoard* ret = cocos2d::BillBoard::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.BillBoard",(cocos2d::BillBoard*)ret); + axis::BillBoard* ret = axis::BillBoard::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.BillBoard",(axis::BillBoard*)ret); return 1; } } while (0); @@ -1712,14 +1712,14 @@ int lua_cocos2dx_3d_BillBoard_create(lua_State* tolua_S) std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.BillBoard:create"); if (!ok) { break; } - cocos2d::Rect arg1; + axis::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.BillBoard:create"); if (!ok) { break; } - cocos2d::BillBoard::Mode arg2; + axis::BillBoard::Mode arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.BillBoard:create"); if (!ok) { break; } - cocos2d::BillBoard* ret = cocos2d::BillBoard::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.BillBoard",(cocos2d::BillBoard*)ret); + axis::BillBoard* ret = axis::BillBoard::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.BillBoard",(axis::BillBoard*)ret); return 1; } } while (0); @@ -1749,30 +1749,30 @@ int lua_cocos2dx_3d_BillBoard_createWithTexture(lua_State* tolua_S) if (argc == 1) { - cocos2d::Texture2D* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.BillBoard:createWithTexture"); + axis::Texture2D* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.BillBoard:createWithTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_BillBoard_createWithTexture'", nullptr); return 0; } - cocos2d::BillBoard* ret = cocos2d::BillBoard::createWithTexture(arg0); - object_to_luaval(tolua_S, "cc.BillBoard",(cocos2d::BillBoard*)ret); + axis::BillBoard* ret = axis::BillBoard::createWithTexture(arg0); + object_to_luaval(tolua_S, "cc.BillBoard",(axis::BillBoard*)ret); return 1; } if (argc == 2) { - cocos2d::Texture2D* arg0; - cocos2d::BillBoard::Mode arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.BillBoard:createWithTexture"); + axis::Texture2D* arg0; + axis::BillBoard::Mode arg1; + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.BillBoard:createWithTexture"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.BillBoard:createWithTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_BillBoard_createWithTexture'", nullptr); return 0; } - cocos2d::BillBoard* ret = cocos2d::BillBoard::createWithTexture(arg0, arg1); - object_to_luaval(tolua_S, "cc.BillBoard",(cocos2d::BillBoard*)ret); + axis::BillBoard* ret = axis::BillBoard::createWithTexture(arg0, arg1); + object_to_luaval(tolua_S, "cc.BillBoard",(axis::BillBoard*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.BillBoard:createWithTexture",argc, 1); @@ -1786,7 +1786,7 @@ int lua_cocos2dx_3d_BillBoard_createWithTexture(lua_State* tolua_S) int lua_cocos2dx_3d_BillBoard_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::BillBoard* cobj = nullptr; + axis::BillBoard* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1803,7 +1803,7 @@ int lua_cocos2dx_3d_BillBoard_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_BillBoard_constructor'", nullptr); return 0; } - cobj = new cocos2d::BillBoard(); + cobj = new axis::BillBoard(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -1838,7 +1838,7 @@ int lua_register_cocos2dx_3d_BillBoard(lua_State* tolua_S) tolua_function(tolua_S,"create", lua_cocos2dx_3d_BillBoard_create); tolua_function(tolua_S,"createWithTexture", lua_cocos2dx_3d_BillBoard_createWithTexture); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::BillBoard).name(); // rtti is literal storage + auto typeName = typeid(axis::BillBoard).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.BillBoard"; g_typeCast[typeName] = "cc.BillBoard"; return 1; @@ -1847,7 +1847,7 @@ int lua_register_cocos2dx_3d_BillBoard(lua_State* tolua_S) int lua_cocos2dx_3d_Mesh_getMaterial(lua_State* tolua_S) { int argc = 0; - cocos2d::Mesh* cobj = nullptr; + axis::Mesh* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1859,7 +1859,7 @@ int lua_cocos2dx_3d_Mesh_getMaterial(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Mesh",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Mesh*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Mesh*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1877,8 +1877,8 @@ int lua_cocos2dx_3d_Mesh_getMaterial(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Mesh_getMaterial'", nullptr); return 0; } - cocos2d::Material* ret = cobj->getMaterial(); - object_to_luaval(tolua_S, "cc.Material",(cocos2d::Material*)ret); + axis::Material* ret = cobj->getMaterial(); + object_to_luaval(tolua_S, "cc.Material",(axis::Material*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Mesh:getMaterial",argc, 0); @@ -1894,7 +1894,7 @@ int lua_cocos2dx_3d_Mesh_getMaterial(lua_State* tolua_S) int lua_cocos2dx_3d_Mesh_getVertexSizeInBytes(lua_State* tolua_S) { int argc = 0; - cocos2d::Mesh* cobj = nullptr; + axis::Mesh* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1906,7 +1906,7 @@ int lua_cocos2dx_3d_Mesh_getVertexSizeInBytes(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Mesh",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Mesh*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Mesh*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1941,7 +1941,7 @@ int lua_cocos2dx_3d_Mesh_getVertexSizeInBytes(lua_State* tolua_S) int lua_cocos2dx_3d_Mesh_setProgramState(lua_State* tolua_S) { int argc = 0; - cocos2d::Mesh* cobj = nullptr; + axis::Mesh* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1953,7 +1953,7 @@ int lua_cocos2dx_3d_Mesh_setProgramState(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Mesh",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Mesh*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Mesh*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1966,9 +1966,9 @@ int lua_cocos2dx_3d_Mesh_setProgramState(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::backend::ProgramState* arg0; + axis::backend::ProgramState* arg0; - ok &= luaval_to_object(tolua_S, 2, "ccb.ProgramState",&arg0, "cc.Mesh:setProgramState"); + ok &= luaval_to_object(tolua_S, 2, "ccb.ProgramState",&arg0, "cc.Mesh:setProgramState"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Mesh_setProgramState'", nullptr); @@ -1991,7 +1991,7 @@ int lua_cocos2dx_3d_Mesh_setProgramState(lua_State* tolua_S) int lua_cocos2dx_3d_Mesh_setIndexFormat(lua_State* tolua_S) { int argc = 0; - cocos2d::Mesh* cobj = nullptr; + axis::Mesh* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2003,7 +2003,7 @@ int lua_cocos2dx_3d_Mesh_setIndexFormat(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Mesh",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Mesh*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Mesh*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2016,7 +2016,7 @@ int lua_cocos2dx_3d_Mesh_setIndexFormat(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::backend::IndexFormat arg0; + axis::backend::IndexFormat arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Mesh:setIndexFormat"); if(!ok) @@ -2041,7 +2041,7 @@ int lua_cocos2dx_3d_Mesh_setIndexFormat(lua_State* tolua_S) int lua_cocos2dx_3d_Mesh_setMaterial(lua_State* tolua_S) { int argc = 0; - cocos2d::Mesh* cobj = nullptr; + axis::Mesh* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2053,7 +2053,7 @@ int lua_cocos2dx_3d_Mesh_setMaterial(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Mesh",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Mesh*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Mesh*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2066,9 +2066,9 @@ int lua_cocos2dx_3d_Mesh_setMaterial(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Material* arg0; + axis::Material* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Material",&arg0, "cc.Mesh:setMaterial"); + ok &= luaval_to_object(tolua_S, 2, "cc.Material",&arg0, "cc.Mesh:setMaterial"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Mesh_setMaterial'", nullptr); @@ -2091,7 +2091,7 @@ int lua_cocos2dx_3d_Mesh_setMaterial(lua_State* tolua_S) int lua_cocos2dx_3d_Mesh_getName(lua_State* tolua_S) { int argc = 0; - cocos2d::Mesh* cobj = nullptr; + axis::Mesh* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2103,7 +2103,7 @@ int lua_cocos2dx_3d_Mesh_getName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Mesh",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Mesh*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Mesh*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2138,7 +2138,7 @@ int lua_cocos2dx_3d_Mesh_getName(lua_State* tolua_S) int lua_cocos2dx_3d_Mesh_getMeshVertexAttribute(lua_State* tolua_S) { int argc = 0; - cocos2d::Mesh* cobj = nullptr; + axis::Mesh* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2150,7 +2150,7 @@ int lua_cocos2dx_3d_Mesh_getMeshVertexAttribute(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Mesh",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Mesh*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Mesh*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2171,7 +2171,7 @@ int lua_cocos2dx_3d_Mesh_getMeshVertexAttribute(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Mesh_getMeshVertexAttribute'", nullptr); return 0; } - const cocos2d::MeshVertexAttrib& ret = cobj->getMeshVertexAttribute(arg0); + const axis::MeshVertexAttrib& ret = cobj->getMeshVertexAttribute(arg0); mesh_vertex_attrib_to_luaval(tolua_S, ret); return 1; } @@ -2188,7 +2188,7 @@ int lua_cocos2dx_3d_Mesh_getMeshVertexAttribute(lua_State* tolua_S) int lua_cocos2dx_3d_Mesh_calculateAABB(lua_State* tolua_S) { int argc = 0; - cocos2d::Mesh* cobj = nullptr; + axis::Mesh* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2200,7 +2200,7 @@ int lua_cocos2dx_3d_Mesh_calculateAABB(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Mesh",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Mesh*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Mesh*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2235,7 +2235,7 @@ int lua_cocos2dx_3d_Mesh_calculateAABB(lua_State* tolua_S) int lua_cocos2dx_3d_Mesh_draw(lua_State* tolua_S) { int argc = 0; - cocos2d::Mesh* cobj = nullptr; + axis::Mesh* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2247,7 +2247,7 @@ int lua_cocos2dx_3d_Mesh_draw(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Mesh",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Mesh*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Mesh*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2260,15 +2260,15 @@ int lua_cocos2dx_3d_Mesh_draw(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 7) { - cocos2d::Renderer* arg0; + axis::Renderer* arg0; double arg1; - cocos2d::Mat4 arg2; + axis::Mat4 arg2; unsigned int arg3; unsigned int arg4; - cocos2d::Vec4 arg5; + axis::Vec4 arg5; bool arg6; - ok &= luaval_to_object(tolua_S, 2, "cc.Renderer",&arg0, "cc.Mesh:draw"); + ok &= luaval_to_object(tolua_S, 2, "cc.Renderer",&arg0, "cc.Mesh:draw"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Mesh:draw"); @@ -2303,7 +2303,7 @@ int lua_cocos2dx_3d_Mesh_draw(lua_State* tolua_S) int lua_cocos2dx_3d_Mesh_getBlendFunc(lua_State* tolua_S) { int argc = 0; - cocos2d::Mesh* cobj = nullptr; + axis::Mesh* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2315,7 +2315,7 @@ int lua_cocos2dx_3d_Mesh_getBlendFunc(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Mesh",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Mesh*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Mesh*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2333,7 +2333,7 @@ int lua_cocos2dx_3d_Mesh_getBlendFunc(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Mesh_getBlendFunc'", nullptr); return 0; } - const cocos2d::BlendFunc& ret = cobj->getBlendFunc(); + const axis::BlendFunc& ret = cobj->getBlendFunc(); blendfunc_to_luaval(tolua_S, ret); return 1; } @@ -2350,7 +2350,7 @@ int lua_cocos2dx_3d_Mesh_getBlendFunc(lua_State* tolua_S) int lua_cocos2dx_3d_Mesh_setName(lua_State* tolua_S) { int argc = 0; - cocos2d::Mesh* cobj = nullptr; + axis::Mesh* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2362,7 +2362,7 @@ int lua_cocos2dx_3d_Mesh_setName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Mesh",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Mesh*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Mesh*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2400,7 +2400,7 @@ int lua_cocos2dx_3d_Mesh_setName(lua_State* tolua_S) int lua_cocos2dx_3d_Mesh_setMeshIndexData(lua_State* tolua_S) { int argc = 0; - cocos2d::Mesh* cobj = nullptr; + axis::Mesh* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2412,7 +2412,7 @@ int lua_cocos2dx_3d_Mesh_setMeshIndexData(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Mesh",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Mesh*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Mesh*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2425,9 +2425,9 @@ int lua_cocos2dx_3d_Mesh_setMeshIndexData(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::MeshIndexData* arg0; + axis::MeshIndexData* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.MeshIndexData",&arg0, "cc.Mesh:setMeshIndexData"); + ok &= luaval_to_object(tolua_S, 2, "cc.MeshIndexData",&arg0, "cc.Mesh:setMeshIndexData"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Mesh_setMeshIndexData'", nullptr); @@ -2450,7 +2450,7 @@ int lua_cocos2dx_3d_Mesh_setMeshIndexData(lua_State* tolua_S) int lua_cocos2dx_3d_Mesh_getProgramState(lua_State* tolua_S) { int argc = 0; - cocos2d::Mesh* cobj = nullptr; + axis::Mesh* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2462,7 +2462,7 @@ int lua_cocos2dx_3d_Mesh_getProgramState(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Mesh",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Mesh*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Mesh*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2480,8 +2480,8 @@ int lua_cocos2dx_3d_Mesh_getProgramState(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Mesh_getProgramState'", nullptr); return 0; } - cocos2d::backend::ProgramState* ret = cobj->getProgramState(); - object_to_luaval(tolua_S, "ccb.ProgramState",(cocos2d::backend::ProgramState*)ret); + axis::backend::ProgramState* ret = cobj->getProgramState(); + object_to_luaval(tolua_S, "ccb.ProgramState",(axis::backend::ProgramState*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Mesh:getProgramState",argc, 0); @@ -2497,7 +2497,7 @@ int lua_cocos2dx_3d_Mesh_getProgramState(lua_State* tolua_S) int lua_cocos2dx_3d_Mesh_getMeshVertexAttribCount(lua_State* tolua_S) { int argc = 0; - cocos2d::Mesh* cobj = nullptr; + axis::Mesh* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2509,7 +2509,7 @@ int lua_cocos2dx_3d_Mesh_getMeshVertexAttribCount(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Mesh",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Mesh*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Mesh*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2544,7 +2544,7 @@ int lua_cocos2dx_3d_Mesh_getMeshVertexAttribCount(lua_State* tolua_S) int lua_cocos2dx_3d_Mesh_setBlendFunc(lua_State* tolua_S) { int argc = 0; - cocos2d::Mesh* cobj = nullptr; + axis::Mesh* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2556,7 +2556,7 @@ int lua_cocos2dx_3d_Mesh_setBlendFunc(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Mesh",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Mesh*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Mesh*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2569,7 +2569,7 @@ int lua_cocos2dx_3d_Mesh_setBlendFunc(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::BlendFunc arg0; + axis::BlendFunc arg0; ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "cc.Mesh:setBlendFunc"); if(!ok) @@ -2594,7 +2594,7 @@ int lua_cocos2dx_3d_Mesh_setBlendFunc(lua_State* tolua_S) int lua_cocos2dx_3d_Mesh_setForce2DQueue(lua_State* tolua_S) { int argc = 0; - cocos2d::Mesh* cobj = nullptr; + axis::Mesh* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2606,7 +2606,7 @@ int lua_cocos2dx_3d_Mesh_setForce2DQueue(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Mesh",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Mesh*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Mesh*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2644,7 +2644,7 @@ int lua_cocos2dx_3d_Mesh_setForce2DQueue(lua_State* tolua_S) int lua_cocos2dx_3d_Mesh_setSkin(lua_State* tolua_S) { int argc = 0; - cocos2d::Mesh* cobj = nullptr; + axis::Mesh* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2656,7 +2656,7 @@ int lua_cocos2dx_3d_Mesh_setSkin(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Mesh",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Mesh*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Mesh*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2669,9 +2669,9 @@ int lua_cocos2dx_3d_Mesh_setSkin(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::MeshSkin* arg0; + axis::MeshSkin* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.MeshSkin",&arg0, "cc.Mesh:setSkin"); + ok &= luaval_to_object(tolua_S, 2, "cc.MeshSkin",&arg0, "cc.Mesh:setSkin"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Mesh_setSkin'", nullptr); @@ -2694,7 +2694,7 @@ int lua_cocos2dx_3d_Mesh_setSkin(lua_State* tolua_S) int lua_cocos2dx_3d_Mesh_isVisible(lua_State* tolua_S) { int argc = 0; - cocos2d::Mesh* cobj = nullptr; + axis::Mesh* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2706,7 +2706,7 @@ int lua_cocos2dx_3d_Mesh_isVisible(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Mesh",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Mesh*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Mesh*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2741,7 +2741,7 @@ int lua_cocos2dx_3d_Mesh_isVisible(lua_State* tolua_S) int lua_cocos2dx_3d_Mesh_setVisible(lua_State* tolua_S) { int argc = 0; - cocos2d::Mesh* cobj = nullptr; + axis::Mesh* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2753,7 +2753,7 @@ int lua_cocos2dx_3d_Mesh_setVisible(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Mesh",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Mesh*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Mesh*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2791,7 +2791,7 @@ int lua_cocos2dx_3d_Mesh_setVisible(lua_State* tolua_S) int lua_cocos2dx_3d_Mesh_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Mesh* cobj = nullptr; + axis::Mesh* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2808,7 +2808,7 @@ int lua_cocos2dx_3d_Mesh_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Mesh_constructor'", nullptr); return 0; } - cobj = new cocos2d::Mesh(); + cobj = new axis::Mesh(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -2858,7 +2858,7 @@ int lua_register_cocos2dx_3d_Mesh(lua_State* tolua_S) tolua_function(tolua_S,"isVisible",lua_cocos2dx_3d_Mesh_isVisible); tolua_function(tolua_S,"setVisible",lua_cocos2dx_3d_Mesh_setVisible); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Mesh).name(); // rtti is literal storage + auto typeName = typeid(axis::Mesh).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Mesh"; g_typeCast[typeName] = "cc.Mesh"; return 1; @@ -2867,7 +2867,7 @@ int lua_register_cocos2dx_3d_Mesh(lua_State* tolua_S) int lua_cocos2dx_3d_Skeleton3D_removeAllBones(lua_State* tolua_S) { int argc = 0; - cocos2d::Skeleton3D* cobj = nullptr; + axis::Skeleton3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2879,7 +2879,7 @@ int lua_cocos2dx_3d_Skeleton3D_removeAllBones(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Skeleton3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Skeleton3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Skeleton3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2914,7 +2914,7 @@ int lua_cocos2dx_3d_Skeleton3D_removeAllBones(lua_State* tolua_S) int lua_cocos2dx_3d_Skeleton3D_addBone(lua_State* tolua_S) { int argc = 0; - cocos2d::Skeleton3D* cobj = nullptr; + axis::Skeleton3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2926,7 +2926,7 @@ int lua_cocos2dx_3d_Skeleton3D_addBone(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Skeleton3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Skeleton3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Skeleton3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2939,9 +2939,9 @@ int lua_cocos2dx_3d_Skeleton3D_addBone(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Bone3D* arg0; + axis::Bone3D* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Bone3D",&arg0, "cc.Skeleton3D:addBone"); + ok &= luaval_to_object(tolua_S, 2, "cc.Bone3D",&arg0, "cc.Skeleton3D:addBone"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Skeleton3D_addBone'", nullptr); @@ -2964,7 +2964,7 @@ int lua_cocos2dx_3d_Skeleton3D_addBone(lua_State* tolua_S) int lua_cocos2dx_3d_Skeleton3D_getBoneByName(lua_State* tolua_S) { int argc = 0; - cocos2d::Skeleton3D* cobj = nullptr; + axis::Skeleton3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2976,7 +2976,7 @@ int lua_cocos2dx_3d_Skeleton3D_getBoneByName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Skeleton3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Skeleton3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Skeleton3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2997,8 +2997,8 @@ int lua_cocos2dx_3d_Skeleton3D_getBoneByName(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Skeleton3D_getBoneByName'", nullptr); return 0; } - cocos2d::Bone3D* ret = cobj->getBoneByName(arg0); - object_to_luaval(tolua_S, "cc.Bone3D",(cocos2d::Bone3D*)ret); + axis::Bone3D* ret = cobj->getBoneByName(arg0); + object_to_luaval(tolua_S, "cc.Bone3D",(axis::Bone3D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Skeleton3D:getBoneByName",argc, 1); @@ -3014,7 +3014,7 @@ int lua_cocos2dx_3d_Skeleton3D_getBoneByName(lua_State* tolua_S) int lua_cocos2dx_3d_Skeleton3D_getRootBone(lua_State* tolua_S) { int argc = 0; - cocos2d::Skeleton3D* cobj = nullptr; + axis::Skeleton3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3026,7 +3026,7 @@ int lua_cocos2dx_3d_Skeleton3D_getRootBone(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Skeleton3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Skeleton3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Skeleton3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3047,8 +3047,8 @@ int lua_cocos2dx_3d_Skeleton3D_getRootBone(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Skeleton3D_getRootBone'", nullptr); return 0; } - cocos2d::Bone3D* ret = cobj->getRootBone(arg0); - object_to_luaval(tolua_S, "cc.Bone3D",(cocos2d::Bone3D*)ret); + axis::Bone3D* ret = cobj->getRootBone(arg0); + object_to_luaval(tolua_S, "cc.Bone3D",(axis::Bone3D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Skeleton3D:getRootBone",argc, 1); @@ -3064,7 +3064,7 @@ int lua_cocos2dx_3d_Skeleton3D_getRootBone(lua_State* tolua_S) int lua_cocos2dx_3d_Skeleton3D_updateBoneMatrix(lua_State* tolua_S) { int argc = 0; - cocos2d::Skeleton3D* cobj = nullptr; + axis::Skeleton3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3076,7 +3076,7 @@ int lua_cocos2dx_3d_Skeleton3D_updateBoneMatrix(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Skeleton3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Skeleton3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Skeleton3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3111,7 +3111,7 @@ int lua_cocos2dx_3d_Skeleton3D_updateBoneMatrix(lua_State* tolua_S) int lua_cocos2dx_3d_Skeleton3D_getBoneByIndex(lua_State* tolua_S) { int argc = 0; - cocos2d::Skeleton3D* cobj = nullptr; + axis::Skeleton3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3123,7 +3123,7 @@ int lua_cocos2dx_3d_Skeleton3D_getBoneByIndex(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Skeleton3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Skeleton3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Skeleton3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3144,8 +3144,8 @@ int lua_cocos2dx_3d_Skeleton3D_getBoneByIndex(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Skeleton3D_getBoneByIndex'", nullptr); return 0; } - cocos2d::Bone3D* ret = cobj->getBoneByIndex(arg0); - object_to_luaval(tolua_S, "cc.Bone3D",(cocos2d::Bone3D*)ret); + axis::Bone3D* ret = cobj->getBoneByIndex(arg0); + object_to_luaval(tolua_S, "cc.Bone3D",(axis::Bone3D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Skeleton3D:getBoneByIndex",argc, 1); @@ -3161,7 +3161,7 @@ int lua_cocos2dx_3d_Skeleton3D_getBoneByIndex(lua_State* tolua_S) int lua_cocos2dx_3d_Skeleton3D_getRootCount(lua_State* tolua_S) { int argc = 0; - cocos2d::Skeleton3D* cobj = nullptr; + axis::Skeleton3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3173,7 +3173,7 @@ int lua_cocos2dx_3d_Skeleton3D_getRootCount(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Skeleton3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Skeleton3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Skeleton3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3208,7 +3208,7 @@ int lua_cocos2dx_3d_Skeleton3D_getRootCount(lua_State* tolua_S) int lua_cocos2dx_3d_Skeleton3D_getBoneIndex(lua_State* tolua_S) { int argc = 0; - cocos2d::Skeleton3D* cobj = nullptr; + axis::Skeleton3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3220,7 +3220,7 @@ int lua_cocos2dx_3d_Skeleton3D_getBoneIndex(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Skeleton3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Skeleton3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Skeleton3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3233,9 +3233,9 @@ int lua_cocos2dx_3d_Skeleton3D_getBoneIndex(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Bone3D* arg0; + axis::Bone3D* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Bone3D",&arg0, "cc.Skeleton3D:getBoneIndex"); + ok &= luaval_to_object(tolua_S, 2, "cc.Bone3D",&arg0, "cc.Skeleton3D:getBoneIndex"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Skeleton3D_getBoneIndex'", nullptr); @@ -3258,7 +3258,7 @@ int lua_cocos2dx_3d_Skeleton3D_getBoneIndex(lua_State* tolua_S) int lua_cocos2dx_3d_Skeleton3D_getBoneCount(lua_State* tolua_S) { int argc = 0; - cocos2d::Skeleton3D* cobj = nullptr; + axis::Skeleton3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3270,7 +3270,7 @@ int lua_cocos2dx_3d_Skeleton3D_getBoneCount(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Skeleton3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Skeleton3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Skeleton3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3305,7 +3305,7 @@ int lua_cocos2dx_3d_Skeleton3D_getBoneCount(lua_State* tolua_S) int lua_cocos2dx_3d_Skeleton3D_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Skeleton3D* cobj = nullptr; + axis::Skeleton3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3322,7 +3322,7 @@ int lua_cocos2dx_3d_Skeleton3D_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Skeleton3D_constructor'", nullptr); return 0; } - cobj = new cocos2d::Skeleton3D(); + cobj = new axis::Skeleton3D(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -3362,7 +3362,7 @@ int lua_register_cocos2dx_3d_Skeleton3D(lua_State* tolua_S) tolua_function(tolua_S,"getBoneIndex",lua_cocos2dx_3d_Skeleton3D_getBoneIndex); tolua_function(tolua_S,"getBoneCount",lua_cocos2dx_3d_Skeleton3D_getBoneCount); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Skeleton3D).name(); // rtti is literal storage + auto typeName = typeid(axis::Skeleton3D).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Skeleton3D"; g_typeCast[typeName] = "cc.Skeleton3D"; return 1; @@ -3371,7 +3371,7 @@ int lua_register_cocos2dx_3d_Skeleton3D(lua_State* tolua_S) int lua_cocos2dx_3d_Skybox_reload(lua_State* tolua_S) { int argc = 0; - cocos2d::Skybox* cobj = nullptr; + axis::Skybox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3383,7 +3383,7 @@ int lua_cocos2dx_3d_Skybox_reload(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Skybox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Skybox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Skybox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3418,7 +3418,7 @@ int lua_cocos2dx_3d_Skybox_reload(lua_State* tolua_S) int lua_cocos2dx_3d_Skybox_init(lua_State* tolua_S) { int argc = 0; - cocos2d::Skybox* cobj = nullptr; + axis::Skybox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3430,7 +3430,7 @@ int lua_cocos2dx_3d_Skybox_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Skybox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Skybox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Skybox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3483,7 +3483,7 @@ int lua_cocos2dx_3d_Skybox_init(lua_State* tolua_S) int lua_cocos2dx_3d_Skybox_setTexture(lua_State* tolua_S) { int argc = 0; - cocos2d::Skybox* cobj = nullptr; + axis::Skybox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3495,7 +3495,7 @@ int lua_cocos2dx_3d_Skybox_setTexture(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Skybox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Skybox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Skybox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3508,9 +3508,9 @@ int lua_cocos2dx_3d_Skybox_setTexture(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::TextureCube* arg0; + axis::TextureCube* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.TextureCube",&arg0, "cc.Skybox:setTexture"); + ok &= luaval_to_object(tolua_S, 2, "cc.TextureCube",&arg0, "cc.Skybox:setTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Skybox_setTexture'", nullptr); @@ -3566,8 +3566,8 @@ int lua_cocos2dx_3d_Skybox_create(lua_State* tolua_S) std::string_view arg5; ok &= luaval_to_std_string_view(tolua_S, 7,&arg5, "cc.Skybox:create"); if (!ok) { break; } - cocos2d::Skybox* ret = cocos2d::Skybox::create(arg0, arg1, arg2, arg3, arg4, arg5); - object_to_luaval(tolua_S, "cc.Skybox",(cocos2d::Skybox*)ret); + axis::Skybox* ret = axis::Skybox::create(arg0, arg1, arg2, arg3, arg4, arg5); + object_to_luaval(tolua_S, "cc.Skybox",(axis::Skybox*)ret); return 1; } } while (0); @@ -3576,8 +3576,8 @@ int lua_cocos2dx_3d_Skybox_create(lua_State* tolua_S) { if (argc == 0) { - cocos2d::Skybox* ret = cocos2d::Skybox::create(); - object_to_luaval(tolua_S, "cc.Skybox",(cocos2d::Skybox*)ret); + axis::Skybox* ret = axis::Skybox::create(); + object_to_luaval(tolua_S, "cc.Skybox",(axis::Skybox*)ret); return 1; } } while (0); @@ -3593,7 +3593,7 @@ int lua_cocos2dx_3d_Skybox_create(lua_State* tolua_S) int lua_cocos2dx_3d_Skybox_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Skybox* cobj = nullptr; + axis::Skybox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3610,7 +3610,7 @@ int lua_cocos2dx_3d_Skybox_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Skybox_constructor'", nullptr); return 0; } - cobj = new cocos2d::Skybox(); + cobj = new axis::Skybox(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -3645,7 +3645,7 @@ int lua_register_cocos2dx_3d_Skybox(lua_State* tolua_S) tolua_function(tolua_S,"setTexture",lua_cocos2dx_3d_Skybox_setTexture); tolua_function(tolua_S,"create", lua_cocos2dx_3d_Skybox_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Skybox).name(); // rtti is literal storage + auto typeName = typeid(axis::Skybox).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Skybox"; g_typeCast[typeName] = "cc.Skybox"; return 1; @@ -3654,7 +3654,7 @@ int lua_register_cocos2dx_3d_Skybox(lua_State* tolua_S) int lua_cocos2dx_3d_Terrain_initHeightMap(lua_State* tolua_S) { int argc = 0; - cocos2d::Terrain* cobj = nullptr; + axis::Terrain* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3666,7 +3666,7 @@ int lua_cocos2dx_3d_Terrain_initHeightMap(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Terrain",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Terrain*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Terrain*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3704,7 +3704,7 @@ int lua_cocos2dx_3d_Terrain_initHeightMap(lua_State* tolua_S) int lua_cocos2dx_3d_Terrain_setMaxDetailMapAmount(lua_State* tolua_S) { int argc = 0; - cocos2d::Terrain* cobj = nullptr; + axis::Terrain* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3716,7 +3716,7 @@ int lua_cocos2dx_3d_Terrain_setMaxDetailMapAmount(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Terrain",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Terrain*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Terrain*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3754,7 +3754,7 @@ int lua_cocos2dx_3d_Terrain_setMaxDetailMapAmount(lua_State* tolua_S) int lua_cocos2dx_3d_Terrain_setDrawWire(lua_State* tolua_S) { int argc = 0; - cocos2d::Terrain* cobj = nullptr; + axis::Terrain* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3766,7 +3766,7 @@ int lua_cocos2dx_3d_Terrain_setDrawWire(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Terrain",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Terrain*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Terrain*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3804,7 +3804,7 @@ int lua_cocos2dx_3d_Terrain_setDrawWire(lua_State* tolua_S) int lua_cocos2dx_3d_Terrain_getHeightData(lua_State* tolua_S) { int argc = 0; - cocos2d::Terrain* cobj = nullptr; + axis::Terrain* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3816,7 +3816,7 @@ int lua_cocos2dx_3d_Terrain_getHeightData(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Terrain",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Terrain*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Terrain*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3851,7 +3851,7 @@ int lua_cocos2dx_3d_Terrain_getHeightData(lua_State* tolua_S) int lua_cocos2dx_3d_Terrain_setDetailMap(lua_State* tolua_S) { int argc = 0; - cocos2d::Terrain* cobj = nullptr; + axis::Terrain* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3863,7 +3863,7 @@ int lua_cocos2dx_3d_Terrain_setDetailMap(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Terrain",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Terrain*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Terrain*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3877,7 +3877,7 @@ int lua_cocos2dx_3d_Terrain_setDetailMap(lua_State* tolua_S) if (argc == 2) { unsigned int arg0; - cocos2d::Terrain::DetailMap arg1; + axis::Terrain::DetailMap arg1; ok &= luaval_to_uint32(tolua_S, 2,&arg0, "cc.Terrain:setDetailMap"); @@ -3905,7 +3905,7 @@ int lua_cocos2dx_3d_Terrain_setDetailMap(lua_State* tolua_S) int lua_cocos2dx_3d_Terrain_resetHeightMap(lua_State* tolua_S) { int argc = 0; - cocos2d::Terrain* cobj = nullptr; + axis::Terrain* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3917,7 +3917,7 @@ int lua_cocos2dx_3d_Terrain_resetHeightMap(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Terrain",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Terrain*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Terrain*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3955,7 +3955,7 @@ int lua_cocos2dx_3d_Terrain_resetHeightMap(lua_State* tolua_S) int lua_cocos2dx_3d_Terrain_setLightDir(lua_State* tolua_S) { int argc = 0; - cocos2d::Terrain* cobj = nullptr; + axis::Terrain* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3967,7 +3967,7 @@ int lua_cocos2dx_3d_Terrain_setLightDir(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Terrain",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Terrain*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Terrain*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3980,7 +3980,7 @@ int lua_cocos2dx_3d_Terrain_setLightDir(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec3 arg0; + axis::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.Terrain:setLightDir"); if(!ok) @@ -4005,7 +4005,7 @@ int lua_cocos2dx_3d_Terrain_setLightDir(lua_State* tolua_S) int lua_cocos2dx_3d_Terrain_setAlphaMap(lua_State* tolua_S) { int argc = 0; - cocos2d::Terrain* cobj = nullptr; + axis::Terrain* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4017,7 +4017,7 @@ int lua_cocos2dx_3d_Terrain_setAlphaMap(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Terrain",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Terrain*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Terrain*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4030,9 +4030,9 @@ int lua_cocos2dx_3d_Terrain_setAlphaMap(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Texture2D* arg0; + axis::Texture2D* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.Terrain:setAlphaMap"); + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.Terrain:setAlphaMap"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Terrain_setAlphaMap'", nullptr); @@ -4055,7 +4055,7 @@ int lua_cocos2dx_3d_Terrain_setAlphaMap(lua_State* tolua_S) int lua_cocos2dx_3d_Terrain_setSkirtHeightRatio(lua_State* tolua_S) { int argc = 0; - cocos2d::Terrain* cobj = nullptr; + axis::Terrain* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4067,7 +4067,7 @@ int lua_cocos2dx_3d_Terrain_setSkirtHeightRatio(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Terrain",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Terrain*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Terrain*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4105,7 +4105,7 @@ int lua_cocos2dx_3d_Terrain_setSkirtHeightRatio(lua_State* tolua_S) int lua_cocos2dx_3d_Terrain_convertToTerrainSpace(lua_State* tolua_S) { int argc = 0; - cocos2d::Terrain* cobj = nullptr; + axis::Terrain* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4117,7 +4117,7 @@ int lua_cocos2dx_3d_Terrain_convertToTerrainSpace(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Terrain",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Terrain*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Terrain*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4130,7 +4130,7 @@ int lua_cocos2dx_3d_Terrain_convertToTerrainSpace(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Terrain:convertToTerrainSpace"); if(!ok) @@ -4138,7 +4138,7 @@ int lua_cocos2dx_3d_Terrain_convertToTerrainSpace(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Terrain_convertToTerrainSpace'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->convertToTerrainSpace(arg0); + axis::Vec2 ret = cobj->convertToTerrainSpace(arg0); vec2_to_luaval(tolua_S, ret); return 1; } @@ -4155,7 +4155,7 @@ int lua_cocos2dx_3d_Terrain_convertToTerrainSpace(lua_State* tolua_S) int lua_cocos2dx_3d_Terrain_initTextures(lua_State* tolua_S) { int argc = 0; - cocos2d::Terrain* cobj = nullptr; + axis::Terrain* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4167,7 +4167,7 @@ int lua_cocos2dx_3d_Terrain_initTextures(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Terrain",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Terrain*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Terrain*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4202,7 +4202,7 @@ int lua_cocos2dx_3d_Terrain_initTextures(lua_State* tolua_S) int lua_cocos2dx_3d_Terrain_initProperties(lua_State* tolua_S) { int argc = 0; - cocos2d::Terrain* cobj = nullptr; + axis::Terrain* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4214,7 +4214,7 @@ int lua_cocos2dx_3d_Terrain_initProperties(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Terrain",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Terrain*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Terrain*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4249,7 +4249,7 @@ int lua_cocos2dx_3d_Terrain_initProperties(lua_State* tolua_S) int lua_cocos2dx_3d_Terrain_initWithTerrainData(lua_State* tolua_S) { int argc = 0; - cocos2d::Terrain* cobj = nullptr; + axis::Terrain* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4261,7 +4261,7 @@ int lua_cocos2dx_3d_Terrain_initWithTerrainData(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Terrain",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Terrain*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Terrain*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4274,8 +4274,8 @@ int lua_cocos2dx_3d_Terrain_initWithTerrainData(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::Terrain::TerrainData arg0; - cocos2d::Terrain::CrackFixedType arg1; + axis::Terrain::TerrainData arg0; + axis::Terrain::CrackFixedType arg1; #pragma warning NO CONVERSION TO NATIVE FOR TerrainData ok = false; @@ -4303,7 +4303,7 @@ int lua_cocos2dx_3d_Terrain_initWithTerrainData(lua_State* tolua_S) int lua_cocos2dx_3d_Terrain_setLODDistance(lua_State* tolua_S) { int argc = 0; - cocos2d::Terrain* cobj = nullptr; + axis::Terrain* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4315,7 +4315,7 @@ int lua_cocos2dx_3d_Terrain_setLODDistance(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Terrain",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Terrain*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Terrain*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4359,7 +4359,7 @@ int lua_cocos2dx_3d_Terrain_setLODDistance(lua_State* tolua_S) int lua_cocos2dx_3d_Terrain_getTerrainSize(lua_State* tolua_S) { int argc = 0; - cocos2d::Terrain* cobj = nullptr; + axis::Terrain* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4371,7 +4371,7 @@ int lua_cocos2dx_3d_Terrain_getTerrainSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Terrain",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Terrain*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Terrain*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4389,7 +4389,7 @@ int lua_cocos2dx_3d_Terrain_getTerrainSize(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Terrain_getTerrainSize'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getTerrainSize(); + axis::Vec2 ret = cobj->getTerrainSize(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -4406,7 +4406,7 @@ int lua_cocos2dx_3d_Terrain_getTerrainSize(lua_State* tolua_S) int lua_cocos2dx_3d_Terrain_getNormal(lua_State* tolua_S) { int argc = 0; - cocos2d::Terrain* cobj = nullptr; + axis::Terrain* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4418,7 +4418,7 @@ int lua_cocos2dx_3d_Terrain_getNormal(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Terrain",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Terrain*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Terrain*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4442,7 +4442,7 @@ int lua_cocos2dx_3d_Terrain_getNormal(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Terrain_getNormal'", nullptr); return 0; } - cocos2d::Vec3 ret = cobj->getNormal(arg0, arg1); + axis::Vec3 ret = cobj->getNormal(arg0, arg1); vec3_to_luaval(tolua_S, ret); return 1; } @@ -4459,7 +4459,7 @@ int lua_cocos2dx_3d_Terrain_getNormal(lua_State* tolua_S) int lua_cocos2dx_3d_Terrain_reload(lua_State* tolua_S) { int argc = 0; - cocos2d::Terrain* cobj = nullptr; + axis::Terrain* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4471,7 +4471,7 @@ int lua_cocos2dx_3d_Terrain_reload(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Terrain",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Terrain*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Terrain*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4506,7 +4506,7 @@ int lua_cocos2dx_3d_Terrain_reload(lua_State* tolua_S) int lua_cocos2dx_3d_Terrain_getImageHeight(lua_State* tolua_S) { int argc = 0; - cocos2d::Terrain* cobj = nullptr; + axis::Terrain* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4518,7 +4518,7 @@ int lua_cocos2dx_3d_Terrain_getImageHeight(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Terrain",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Terrain*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Terrain*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4559,7 +4559,7 @@ int lua_cocos2dx_3d_Terrain_getImageHeight(lua_State* tolua_S) int lua_cocos2dx_3d_Terrain_setLightMap(lua_State* tolua_S) { int argc = 0; - cocos2d::Terrain* cobj = nullptr; + axis::Terrain* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4571,7 +4571,7 @@ int lua_cocos2dx_3d_Terrain_setLightMap(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Terrain",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Terrain*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Terrain*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4609,7 +4609,7 @@ int lua_cocos2dx_3d_Terrain_setLightMap(lua_State* tolua_S) int lua_cocos2dx_3d_Terrain_setIsEnableFrustumCull(lua_State* tolua_S) { int argc = 0; - cocos2d::Terrain* cobj = nullptr; + axis::Terrain* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4621,7 +4621,7 @@ int lua_cocos2dx_3d_Terrain_setIsEnableFrustumCull(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Terrain",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Terrain*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Terrain*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4659,7 +4659,7 @@ int lua_cocos2dx_3d_Terrain_setIsEnableFrustumCull(lua_State* tolua_S) int lua_cocos2dx_3d_Terrain_getMinHeight(lua_State* tolua_S) { int argc = 0; - cocos2d::Terrain* cobj = nullptr; + axis::Terrain* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4671,7 +4671,7 @@ int lua_cocos2dx_3d_Terrain_getMinHeight(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Terrain",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Terrain*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Terrain*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4706,7 +4706,7 @@ int lua_cocos2dx_3d_Terrain_getMinHeight(lua_State* tolua_S) int lua_cocos2dx_3d_Terrain_getMaxHeight(lua_State* tolua_S) { int argc = 0; - cocos2d::Terrain* cobj = nullptr; + axis::Terrain* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4718,7 +4718,7 @@ int lua_cocos2dx_3d_Terrain_getMaxHeight(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Terrain",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Terrain*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Terrain*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4753,7 +4753,7 @@ int lua_cocos2dx_3d_Terrain_getMaxHeight(lua_State* tolua_S) int lua_cocos2dx_3d_Terrain_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Terrain* cobj = nullptr; + axis::Terrain* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4770,7 +4770,7 @@ int lua_cocos2dx_3d_Terrain_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Terrain_constructor'", nullptr); return 0; } - cobj = new cocos2d::Terrain(); + cobj = new axis::Terrain(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -4823,7 +4823,7 @@ int lua_register_cocos2dx_3d_Terrain(lua_State* tolua_S) tolua_function(tolua_S,"getMinHeight",lua_cocos2dx_3d_Terrain_getMinHeight); tolua_function(tolua_S,"getMaxHeight",lua_cocos2dx_3d_Terrain_getMaxHeight); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Terrain).name(); // rtti is literal storage + auto typeName = typeid(axis::Terrain).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Terrain"; g_typeCast[typeName] = "cc.Terrain"; return 1; @@ -4832,7 +4832,7 @@ int lua_register_cocos2dx_3d_Terrain(lua_State* tolua_S) int lua_cocos2dx_3d_Bundle3D_load(lua_State* tolua_S) { int argc = 0; - cocos2d::Bundle3D* cobj = nullptr; + axis::Bundle3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4844,7 +4844,7 @@ int lua_cocos2dx_3d_Bundle3D_load(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Bundle3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Bundle3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Bundle3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4882,7 +4882,7 @@ int lua_cocos2dx_3d_Bundle3D_load(lua_State* tolua_S) int lua_cocos2dx_3d_Bundle3D_loadSkinData(lua_State* tolua_S) { int argc = 0; - cocos2d::Bundle3D* cobj = nullptr; + axis::Bundle3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4894,7 +4894,7 @@ int lua_cocos2dx_3d_Bundle3D_loadSkinData(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Bundle3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Bundle3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Bundle3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4908,7 +4908,7 @@ int lua_cocos2dx_3d_Bundle3D_loadSkinData(lua_State* tolua_S) if (argc == 2) { std::string_view arg0; - cocos2d::SkinData* arg1; + axis::SkinData* arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.Bundle3D:loadSkinData"); @@ -4936,7 +4936,7 @@ int lua_cocos2dx_3d_Bundle3D_loadSkinData(lua_State* tolua_S) int lua_cocos2dx_3d_Bundle3D_clear(lua_State* tolua_S) { int argc = 0; - cocos2d::Bundle3D* cobj = nullptr; + axis::Bundle3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4948,7 +4948,7 @@ int lua_cocos2dx_3d_Bundle3D_clear(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Bundle3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Bundle3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Bundle3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4983,7 +4983,7 @@ int lua_cocos2dx_3d_Bundle3D_clear(lua_State* tolua_S) int lua_cocos2dx_3d_Bundle3D_loadMaterials(lua_State* tolua_S) { int argc = 0; - cocos2d::Bundle3D* cobj = nullptr; + axis::Bundle3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4995,7 +4995,7 @@ int lua_cocos2dx_3d_Bundle3D_loadMaterials(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Bundle3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Bundle3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Bundle3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5008,7 +5008,7 @@ int lua_cocos2dx_3d_Bundle3D_loadMaterials(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::MaterialDatas arg0; + axis::MaterialDatas arg0; #pragma warning NO CONVERSION TO NATIVE FOR MaterialDatas ok = false; @@ -5034,7 +5034,7 @@ int lua_cocos2dx_3d_Bundle3D_loadMaterials(lua_State* tolua_S) int lua_cocos2dx_3d_Bundle3D_loadNodes(lua_State* tolua_S) { int argc = 0; - cocos2d::Bundle3D* cobj = nullptr; + axis::Bundle3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5046,7 +5046,7 @@ int lua_cocos2dx_3d_Bundle3D_loadNodes(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Bundle3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Bundle3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Bundle3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5059,7 +5059,7 @@ int lua_cocos2dx_3d_Bundle3D_loadNodes(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::NodeDatas arg0; + axis::NodeDatas arg0; #pragma warning NO CONVERSION TO NATIVE FOR NodeDatas ok = false; @@ -5085,7 +5085,7 @@ int lua_cocos2dx_3d_Bundle3D_loadNodes(lua_State* tolua_S) int lua_cocos2dx_3d_Bundle3D_loadAnimationData(lua_State* tolua_S) { int argc = 0; - cocos2d::Bundle3D* cobj = nullptr; + axis::Bundle3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5097,7 +5097,7 @@ int lua_cocos2dx_3d_Bundle3D_loadAnimationData(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Bundle3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Bundle3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Bundle3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5111,7 +5111,7 @@ int lua_cocos2dx_3d_Bundle3D_loadAnimationData(lua_State* tolua_S) if (argc == 2) { std::string_view arg0; - cocos2d::Animation3DData* arg1; + axis::Animation3DData* arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.Bundle3D:loadAnimationData"); @@ -5160,7 +5160,7 @@ int lua_cocos2dx_3d_Bundle3D_parseSamplerAddressMode(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Bundle3D_parseSamplerAddressMode'", nullptr); return 0; } - int ret = (int)cocos2d::Bundle3D::parseSamplerAddressMode(arg0); + int ret = (int)axis::Bundle3D::parseSamplerAddressMode(arg0); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } @@ -5189,14 +5189,14 @@ int lua_cocos2dx_3d_Bundle3D_destroyBundle(lua_State* tolua_S) if (argc == 1) { - cocos2d::Bundle3D* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Bundle3D",&arg0, "cc.Bundle3D:destroyBundle"); + axis::Bundle3D* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Bundle3D",&arg0, "cc.Bundle3D:destroyBundle"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Bundle3D_destroyBundle'", nullptr); return 0; } - cocos2d::Bundle3D::destroyBundle(arg0); + axis::Bundle3D::destroyBundle(arg0); lua_settop(tolua_S, 1); return 1; } @@ -5230,8 +5230,8 @@ int lua_cocos2dx_3d_Bundle3D_createBundle(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Bundle3D_createBundle'", nullptr); return 0; } - cocos2d::Bundle3D* ret = cocos2d::Bundle3D::createBundle(); - object_to_luaval(tolua_S, "cc.Bundle3D",(cocos2d::Bundle3D*)ret); + axis::Bundle3D* ret = axis::Bundle3D::createBundle(); + object_to_luaval(tolua_S, "cc.Bundle3D",(axis::Bundle3D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Bundle3D:createBundle",argc, 0); @@ -5268,7 +5268,7 @@ int lua_cocos2dx_3d_Bundle3D_parseGLDataType(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Bundle3D_parseGLDataType'", nullptr); return 0; } - int ret = (int)cocos2d::Bundle3D::parseGLDataType(arg0, arg1); + int ret = (int)axis::Bundle3D::parseGLDataType(arg0, arg1); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } @@ -5283,7 +5283,7 @@ int lua_cocos2dx_3d_Bundle3D_parseGLDataType(lua_State* tolua_S) int lua_cocos2dx_3d_Bundle3D_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Bundle3D* cobj = nullptr; + axis::Bundle3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5300,7 +5300,7 @@ int lua_cocos2dx_3d_Bundle3D_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_3d_Bundle3D_constructor'", nullptr); return 0; } - cobj = new cocos2d::Bundle3D(); + cobj = new axis::Bundle3D(); tolua_pushusertype(tolua_S,(void*)cobj,"cc.Bundle3D"); tolua_register_gc(tolua_S,lua_gettop(tolua_S)); return 1; @@ -5339,7 +5339,7 @@ int lua_register_cocos2dx_3d_Bundle3D(lua_State* tolua_S) tolua_function(tolua_S,"createBundle", lua_cocos2dx_3d_Bundle3D_createBundle); tolua_function(tolua_S,"parseGLDataType", lua_cocos2dx_3d_Bundle3D_parseGLDataType); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Bundle3D).name(); // rtti is literal storage + auto typeName = typeid(axis::Bundle3D).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Bundle3D"; g_typeCast[typeName] = "cc.Bundle3D"; return 1; diff --git a/extensions/scripting/lua-bindings/auto/lua_cocos2dx_audioengine_auto.cpp b/extensions/scripting/lua-bindings/auto/lua_cocos2dx_audioengine_auto.cpp index 10585e205f..44cce82050 100644 --- a/extensions/scripting/lua-bindings/auto/lua_cocos2dx_audioengine_auto.cpp +++ b/extensions/scripting/lua-bindings/auto/lua_cocos2dx_audioengine_auto.cpp @@ -7,7 +7,7 @@ int lua_cocos2dx_audioengine_AudioProfile_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::AudioProfile* cobj = nullptr; + axis::AudioProfile* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -24,7 +24,7 @@ int lua_cocos2dx_audioengine_AudioProfile_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_audioengine_AudioProfile_constructor'", nullptr); return 0; } - cobj = new cocos2d::AudioProfile(); + cobj = new axis::AudioProfile(); tolua_pushusertype(tolua_S,(void*)cobj,"cc.AudioProfile"); tolua_register_gc(tolua_S,lua_gettop(tolua_S)); return 1; @@ -53,7 +53,7 @@ int lua_register_cocos2dx_audioengine_AudioProfile(lua_State* tolua_S) tolua_beginmodule(tolua_S,"AudioProfile"); tolua_function(tolua_S,"new",lua_cocos2dx_audioengine_AudioProfile_constructor); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::AudioProfile).name(); // rtti is literal storage + auto typeName = typeid(axis::AudioProfile).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.AudioProfile"; g_typeCast[typeName] = "cc.AudioProfile"; return 1; @@ -81,7 +81,7 @@ int lua_cocos2dx_audioengine_AudioEngine_lazyInit(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_audioengine_AudioEngine_lazyInit'", nullptr); return 0; } - bool ret = cocos2d::AudioEngine::lazyInit(); + bool ret = axis::AudioEngine::lazyInit(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } @@ -119,7 +119,7 @@ int lua_cocos2dx_audioengine_AudioEngine_setCurrentTime(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_audioengine_AudioEngine_setCurrentTime'", nullptr); return 0; } - bool ret = cocos2d::AudioEngine::setCurrentTime(arg0, arg1); + bool ret = axis::AudioEngine::setCurrentTime(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } @@ -155,7 +155,7 @@ int lua_cocos2dx_audioengine_AudioEngine_getVolume(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_audioengine_AudioEngine_getVolume'", nullptr); return 0; } - double ret = cocos2d::AudioEngine::getVolume(arg0); + double ret = axis::AudioEngine::getVolume(arg0); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } @@ -191,7 +191,7 @@ int lua_cocos2dx_audioengine_AudioEngine_uncache(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_audioengine_AudioEngine_uncache'", nullptr); return 0; } - cocos2d::AudioEngine::uncache(arg0); + axis::AudioEngine::uncache(arg0); lua_settop(tolua_S, 1); return 1; } @@ -225,7 +225,7 @@ int lua_cocos2dx_audioengine_AudioEngine_resumeAll(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_audioengine_AudioEngine_resumeAll'", nullptr); return 0; } - cocos2d::AudioEngine::resumeAll(); + axis::AudioEngine::resumeAll(); lua_settop(tolua_S, 1); return 1; } @@ -259,7 +259,7 @@ int lua_cocos2dx_audioengine_AudioEngine_stopAll(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_audioengine_AudioEngine_stopAll'", nullptr); return 0; } - cocos2d::AudioEngine::stopAll(); + axis::AudioEngine::stopAll(); lua_settop(tolua_S, 1); return 1; } @@ -295,7 +295,7 @@ int lua_cocos2dx_audioengine_AudioEngine_pause(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_audioengine_AudioEngine_pause'", nullptr); return 0; } - cocos2d::AudioEngine::pause(arg0); + axis::AudioEngine::pause(arg0); lua_settop(tolua_S, 1); return 1; } @@ -329,7 +329,7 @@ int lua_cocos2dx_audioengine_AudioEngine_getMaxAudioInstance(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_audioengine_AudioEngine_getMaxAudioInstance'", nullptr); return 0; } - int ret = cocos2d::AudioEngine::getMaxAudioInstance(); + int ret = axis::AudioEngine::getMaxAudioInstance(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } @@ -363,7 +363,7 @@ int lua_cocos2dx_audioengine_AudioEngine_isEnabled(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_audioengine_AudioEngine_isEnabled'", nullptr); return 0; } - bool ret = cocos2d::AudioEngine::isEnabled(); + bool ret = axis::AudioEngine::isEnabled(); tolua_pushboolean(tolua_S,(bool)ret); return 1; } @@ -399,7 +399,7 @@ int lua_cocos2dx_audioengine_AudioEngine_getCurrentTime(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_audioengine_AudioEngine_getCurrentTime'", nullptr); return 0; } - double ret = cocos2d::AudioEngine::getCurrentTime(arg0); + double ret = axis::AudioEngine::getCurrentTime(arg0); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } @@ -435,7 +435,7 @@ int lua_cocos2dx_audioengine_AudioEngine_setMaxAudioInstance(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_audioengine_AudioEngine_setMaxAudioInstance'", nullptr); return 0; } - bool ret = cocos2d::AudioEngine::setMaxAudioInstance(arg0); + bool ret = axis::AudioEngine::setMaxAudioInstance(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } @@ -471,7 +471,7 @@ int lua_cocos2dx_audioengine_AudioEngine_isLoop(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_audioengine_AudioEngine_isLoop'", nullptr); return 0; } - bool ret = cocos2d::AudioEngine::isLoop(arg0); + bool ret = axis::AudioEngine::isLoop(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } @@ -505,7 +505,7 @@ int lua_cocos2dx_audioengine_AudioEngine_pauseAll(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_audioengine_AudioEngine_pauseAll'", nullptr); return 0; } - cocos2d::AudioEngine::pauseAll(); + axis::AudioEngine::pauseAll(); lua_settop(tolua_S, 1); return 1; } @@ -539,7 +539,7 @@ int lua_cocos2dx_audioengine_AudioEngine_uncacheAll(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_audioengine_AudioEngine_uncacheAll'", nullptr); return 0; } - cocos2d::AudioEngine::uncacheAll(); + axis::AudioEngine::uncacheAll(); lua_settop(tolua_S, 1); return 1; } @@ -577,7 +577,7 @@ int lua_cocos2dx_audioengine_AudioEngine_setVolume(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_audioengine_AudioEngine_setVolume'", nullptr); return 0; } - cocos2d::AudioEngine::setVolume(arg0, arg1); + axis::AudioEngine::setVolume(arg0, arg1); lua_settop(tolua_S, 1); return 1; } @@ -617,7 +617,7 @@ int lua_cocos2dx_audioengine_AudioEngine_preload(lua_State* tolua_S) } while(0) ; if (!ok) { break; } - cocos2d::AudioEngine::preload(arg0, arg1); + axis::AudioEngine::preload(arg0, arg1); lua_settop(tolua_S, 1); return 1; } @@ -630,7 +630,7 @@ int lua_cocos2dx_audioengine_AudioEngine_preload(lua_State* tolua_S) std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.AudioEngine:preload"); if (!ok) { break; } - cocos2d::AudioEngine::preload(arg0); + axis::AudioEngine::preload(arg0); lua_settop(tolua_S, 1); return 1; } @@ -668,7 +668,7 @@ int lua_cocos2dx_audioengine_AudioEngine_setEnabled(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_audioengine_AudioEngine_setEnabled'", nullptr); return 0; } - cocos2d::AudioEngine::setEnabled(arg0); + axis::AudioEngine::setEnabled(arg0); lua_settop(tolua_S, 1); return 1; } @@ -704,7 +704,7 @@ int lua_cocos2dx_audioengine_AudioEngine_play2d(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_audioengine_AudioEngine_play2d'", nullptr); return 0; } - int ret = cocos2d::AudioEngine::play2d(arg0); + int ret = axis::AudioEngine::play2d(arg0); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } @@ -719,7 +719,7 @@ int lua_cocos2dx_audioengine_AudioEngine_play2d(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_audioengine_AudioEngine_play2d'", nullptr); return 0; } - int ret = cocos2d::AudioEngine::play2d(arg0, arg1); + int ret = axis::AudioEngine::play2d(arg0, arg1); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } @@ -736,7 +736,7 @@ int lua_cocos2dx_audioengine_AudioEngine_play2d(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_audioengine_AudioEngine_play2d'", nullptr); return 0; } - int ret = cocos2d::AudioEngine::play2d(arg0, arg1, arg2); + int ret = axis::AudioEngine::play2d(arg0, arg1, arg2); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } @@ -745,17 +745,17 @@ int lua_cocos2dx_audioengine_AudioEngine_play2d(lua_State* tolua_S) std::string_view arg0; bool arg1; double arg2; - const cocos2d::AudioProfile* arg3; + const axis::AudioProfile* arg3; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.AudioEngine:play2d"); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.AudioEngine:play2d"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.AudioEngine:play2d"); - ok &= luaval_to_object(tolua_S, 5, "cc.AudioProfile",&arg3, "cc.AudioEngine:play2d"); + ok &= luaval_to_object(tolua_S, 5, "cc.AudioProfile",&arg3, "cc.AudioEngine:play2d"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_audioengine_AudioEngine_play2d'", nullptr); return 0; } - int ret = cocos2d::AudioEngine::play2d(arg0, arg1, arg2, arg3); + int ret = axis::AudioEngine::play2d(arg0, arg1, arg2, arg3); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } @@ -791,7 +791,7 @@ int lua_cocos2dx_audioengine_AudioEngine_getState(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_audioengine_AudioEngine_getState'", nullptr); return 0; } - int ret = (int)cocos2d::AudioEngine::getState(arg0); + int ret = (int)axis::AudioEngine::getState(arg0); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } @@ -827,7 +827,7 @@ int lua_cocos2dx_audioengine_AudioEngine_resume(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_audioengine_AudioEngine_resume'", nullptr); return 0; } - cocos2d::AudioEngine::resume(arg0); + axis::AudioEngine::resume(arg0); lua_settop(tolua_S, 1); return 1; } @@ -863,7 +863,7 @@ int lua_cocos2dx_audioengine_AudioEngine_stop(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_audioengine_AudioEngine_stop'", nullptr); return 0; } - cocos2d::AudioEngine::stop(arg0); + axis::AudioEngine::stop(arg0); lua_settop(tolua_S, 1); return 1; } @@ -897,7 +897,7 @@ int lua_cocos2dx_audioengine_AudioEngine_end(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_audioengine_AudioEngine_end'", nullptr); return 0; } - cocos2d::AudioEngine::end(); + axis::AudioEngine::end(); lua_settop(tolua_S, 1); return 1; } @@ -933,7 +933,7 @@ int lua_cocos2dx_audioengine_AudioEngine_getDuration(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_audioengine_AudioEngine_getDuration'", nullptr); return 0; } - double ret = cocos2d::AudioEngine::getDuration(arg0); + double ret = axis::AudioEngine::getDuration(arg0); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } @@ -971,7 +971,7 @@ int lua_cocos2dx_audioengine_AudioEngine_setLoop(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_audioengine_AudioEngine_setLoop'", nullptr); return 0; } - cocos2d::AudioEngine::setLoop(arg0, arg1); + axis::AudioEngine::setLoop(arg0, arg1); lua_settop(tolua_S, 1); return 1; } @@ -1005,8 +1005,8 @@ int lua_cocos2dx_audioengine_AudioEngine_getDefaultProfile(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_audioengine_AudioEngine_getDefaultProfile'", nullptr); return 0; } - cocos2d::AudioProfile* ret = cocos2d::AudioEngine::getDefaultProfile(); - object_to_luaval(tolua_S, "cc.AudioProfile",(cocos2d::AudioProfile*)ret); + axis::AudioProfile* ret = axis::AudioEngine::getDefaultProfile(); + object_to_luaval(tolua_S, "cc.AudioProfile",(axis::AudioProfile*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.AudioEngine:getDefaultProfile",argc, 0); @@ -1038,8 +1038,8 @@ int lua_cocos2dx_audioengine_AudioEngine_getProfile(lua_State* tolua_S) std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.AudioEngine:getProfile"); if (!ok) { break; } - cocos2d::AudioProfile* ret = cocos2d::AudioEngine::getProfile(arg0); - object_to_luaval(tolua_S, "cc.AudioProfile",(cocos2d::AudioProfile*)ret); + axis::AudioProfile* ret = axis::AudioEngine::getProfile(arg0); + object_to_luaval(tolua_S, "cc.AudioProfile",(axis::AudioProfile*)ret); return 1; } } while (0); @@ -1051,8 +1051,8 @@ int lua_cocos2dx_audioengine_AudioEngine_getProfile(lua_State* tolua_S) int arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.AudioEngine:getProfile"); if (!ok) { break; } - cocos2d::AudioProfile* ret = cocos2d::AudioEngine::getProfile(arg0); - object_to_luaval(tolua_S, "cc.AudioProfile",(cocos2d::AudioProfile*)ret); + axis::AudioProfile* ret = axis::AudioEngine::getProfile(arg0); + object_to_luaval(tolua_S, "cc.AudioProfile",(axis::AudioProfile*)ret); return 1; } } while (0); @@ -1087,7 +1087,7 @@ int lua_cocos2dx_audioengine_AudioEngine_getPlayingAudioCount(lua_State* tolua_S tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_audioengine_AudioEngine_getPlayingAudioCount'", nullptr); return 0; } - int ret = cocos2d::AudioEngine::getPlayingAudioCount(); + int ret = axis::AudioEngine::getPlayingAudioCount(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } @@ -1139,7 +1139,7 @@ int lua_register_cocos2dx_audioengine_AudioEngine(lua_State* tolua_S) tolua_function(tolua_S,"getProfile", lua_cocos2dx_audioengine_AudioEngine_getProfile); tolua_function(tolua_S,"getPlayingAudioCount", lua_cocos2dx_audioengine_AudioEngine_getPlayingAudioCount); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::AudioEngine).name(); // rtti is literal storage + auto typeName = typeid(axis::AudioEngine).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.AudioEngine"; g_typeCast[typeName] = "cc.AudioEngine"; return 1; diff --git a/extensions/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp b/extensions/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp index fbf880c615..34152c5c90 100644 --- a/extensions/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp +++ b/extensions/scripting/lua-bindings/auto/lua_cocos2dx_auto.cpp @@ -12,7 +12,7 @@ int lua_cocos2dx_Ref_release(lua_State* tolua_S) { int argc = 0; - cocos2d::Ref* cobj = nullptr; + axis::Ref* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -24,7 +24,7 @@ int lua_cocos2dx_Ref_release(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Ref",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Ref*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Ref*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -59,7 +59,7 @@ int lua_cocos2dx_Ref_release(lua_State* tolua_S) int lua_cocos2dx_Ref_retain(lua_State* tolua_S) { int argc = 0; - cocos2d::Ref* cobj = nullptr; + axis::Ref* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -71,7 +71,7 @@ int lua_cocos2dx_Ref_retain(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Ref",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Ref*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Ref*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -106,7 +106,7 @@ int lua_cocos2dx_Ref_retain(lua_State* tolua_S) int lua_cocos2dx_Ref_getReferenceCount(lua_State* tolua_S) { int argc = 0; - cocos2d::Ref* cobj = nullptr; + axis::Ref* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -118,7 +118,7 @@ int lua_cocos2dx_Ref_getReferenceCount(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Ref",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Ref*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Ref*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -166,7 +166,7 @@ int lua_register_cocos2dx_Ref(lua_State* tolua_S) tolua_function(tolua_S,"retain",lua_cocos2dx_Ref_retain); tolua_function(tolua_S,"getReferenceCount",lua_cocos2dx_Ref_getReferenceCount); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Ref).name(); // rtti is literal storage + auto typeName = typeid(axis::Ref).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Ref"; g_typeCast[typeName] = "cc.Ref"; return 1; @@ -175,7 +175,7 @@ int lua_register_cocos2dx_Ref(lua_State* tolua_S) int lua_cocos2dx_Console_listenOnTCP(lua_State* tolua_S) { int argc = 0; - cocos2d::Console* cobj = nullptr; + axis::Console* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -187,7 +187,7 @@ int lua_cocos2dx_Console_listenOnTCP(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Console",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Console*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Console*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -225,7 +225,7 @@ int lua_cocos2dx_Console_listenOnTCP(lua_State* tolua_S) int lua_cocos2dx_Console_log(lua_State* tolua_S) { int argc = 0; - cocos2d::Console* cobj = nullptr; + axis::Console* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -237,7 +237,7 @@ int lua_cocos2dx_Console_log(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Console",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Console*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Console*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -275,7 +275,7 @@ int lua_cocos2dx_Console_log(lua_State* tolua_S) int lua_cocos2dx_Console_delCommand(lua_State* tolua_S) { int argc = 0; - cocos2d::Console* cobj = nullptr; + axis::Console* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -287,7 +287,7 @@ int lua_cocos2dx_Console_delCommand(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Console",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Console*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Console*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -325,7 +325,7 @@ int lua_cocos2dx_Console_delCommand(lua_State* tolua_S) int lua_cocos2dx_Console_stop(lua_State* tolua_S) { int argc = 0; - cocos2d::Console* cobj = nullptr; + axis::Console* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -337,7 +337,7 @@ int lua_cocos2dx_Console_stop(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Console",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Console*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Console*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -372,7 +372,7 @@ int lua_cocos2dx_Console_stop(lua_State* tolua_S) int lua_cocos2dx_Console_listenOnFileDescriptor(lua_State* tolua_S) { int argc = 0; - cocos2d::Console* cobj = nullptr; + axis::Console* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -384,7 +384,7 @@ int lua_cocos2dx_Console_listenOnFileDescriptor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Console",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Console*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Console*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -422,7 +422,7 @@ int lua_cocos2dx_Console_listenOnFileDescriptor(lua_State* tolua_S) int lua_cocos2dx_Console_setCommandSeparator(lua_State* tolua_S) { int argc = 0; - cocos2d::Console* cobj = nullptr; + axis::Console* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -434,7 +434,7 @@ int lua_cocos2dx_Console_setCommandSeparator(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Console",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Console*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Console*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -472,7 +472,7 @@ int lua_cocos2dx_Console_setCommandSeparator(lua_State* tolua_S) int lua_cocos2dx_Console_setBindAddress(lua_State* tolua_S) { int argc = 0; - cocos2d::Console* cobj = nullptr; + axis::Console* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -484,7 +484,7 @@ int lua_cocos2dx_Console_setBindAddress(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Console",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Console*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Console*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -522,7 +522,7 @@ int lua_cocos2dx_Console_setBindAddress(lua_State* tolua_S) int lua_cocos2dx_Console_isIpv6Server(lua_State* tolua_S) { int argc = 0; - cocos2d::Console* cobj = nullptr; + axis::Console* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -534,7 +534,7 @@ int lua_cocos2dx_Console_isIpv6Server(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Console",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Console*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Console*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -587,7 +587,7 @@ int lua_register_cocos2dx_Console(lua_State* tolua_S) tolua_function(tolua_S,"setBindAddress",lua_cocos2dx_Console_setBindAddress); tolua_function(tolua_S,"isIpv6Server",lua_cocos2dx_Console_isIpv6Server); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Console).name(); // rtti is literal storage + auto typeName = typeid(axis::Console).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Console"; g_typeCast[typeName] = "cc.Console"; return 1; @@ -596,7 +596,7 @@ int lua_register_cocos2dx_Console(lua_State* tolua_S) int lua_cocos2dx_EventListener_setEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::EventListener* cobj = nullptr; + axis::EventListener* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -608,7 +608,7 @@ int lua_cocos2dx_EventListener_setEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventListener",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventListener*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventListener*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -646,7 +646,7 @@ int lua_cocos2dx_EventListener_setEnabled(lua_State* tolua_S) int lua_cocos2dx_EventListener_isEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::EventListener* cobj = nullptr; + axis::EventListener* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -658,7 +658,7 @@ int lua_cocos2dx_EventListener_isEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventListener",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventListener*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventListener*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -693,7 +693,7 @@ int lua_cocos2dx_EventListener_isEnabled(lua_State* tolua_S) int lua_cocos2dx_EventListener_clone(lua_State* tolua_S) { int argc = 0; - cocos2d::EventListener* cobj = nullptr; + axis::EventListener* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -705,7 +705,7 @@ int lua_cocos2dx_EventListener_clone(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventListener",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventListener*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventListener*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -723,8 +723,8 @@ int lua_cocos2dx_EventListener_clone(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventListener_clone'", nullptr); return 0; } - cocos2d::EventListener* ret = cobj->clone(); - object_to_luaval(tolua_S, "cc.EventListener",(cocos2d::EventListener*)ret); + axis::EventListener* ret = cobj->clone(); + object_to_luaval(tolua_S, "cc.EventListener",(axis::EventListener*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventListener:clone",argc, 0); @@ -740,7 +740,7 @@ int lua_cocos2dx_EventListener_clone(lua_State* tolua_S) int lua_cocos2dx_EventListener_checkAvailable(lua_State* tolua_S) { int argc = 0; - cocos2d::EventListener* cobj = nullptr; + axis::EventListener* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -752,7 +752,7 @@ int lua_cocos2dx_EventListener_checkAvailable(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventListener",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventListener*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventListener*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -801,7 +801,7 @@ int lua_register_cocos2dx_EventListener(lua_State* tolua_S) tolua_function(tolua_S,"clone",lua_cocos2dx_EventListener_clone); tolua_function(tolua_S,"checkAvailable",lua_cocos2dx_EventListener_checkAvailable); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EventListener).name(); // rtti is literal storage + auto typeName = typeid(axis::EventListener).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EventListener"; g_typeCast[typeName] = "cc.EventListener"; return 1; @@ -810,7 +810,7 @@ int lua_register_cocos2dx_EventListener(lua_State* tolua_S) int lua_cocos2dx_EventListenerCustom_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EventListenerCustom* cobj = nullptr; + axis::EventListenerCustom* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -827,7 +827,7 @@ int lua_cocos2dx_EventListenerCustom_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventListenerCustom_constructor'", nullptr); return 0; } - cobj = new cocos2d::EventListenerCustom(); + cobj = new axis::EventListenerCustom(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -858,7 +858,7 @@ int lua_register_cocos2dx_EventListenerCustom(lua_State* tolua_S) tolua_beginmodule(tolua_S,"EventListenerCustom"); tolua_function(tolua_S,"new",lua_cocos2dx_EventListenerCustom_constructor); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EventListenerCustom).name(); // rtti is literal storage + auto typeName = typeid(axis::EventListenerCustom).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EventListenerCustom"; g_typeCast[typeName] = "cc.EventListenerCustom"; return 1; @@ -867,7 +867,7 @@ int lua_register_cocos2dx_EventListenerCustom(lua_State* tolua_S) int lua_cocos2dx_ShaderCache_removeUnusedShader(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::ShaderCache* cobj = nullptr; + axis::backend::ShaderCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -879,7 +879,7 @@ int lua_cocos2dx_ShaderCache_removeUnusedShader(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccb.ShaderCache",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::ShaderCache*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::ShaderCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -933,7 +933,7 @@ int lua_cocos2dx_ShaderCache_destroyInstance(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ShaderCache_destroyInstance'", nullptr); return 0; } - cocos2d::backend::ShaderCache::destroyInstance(); + axis::backend::ShaderCache::destroyInstance(); lua_settop(tolua_S, 1); return 1; } @@ -969,8 +969,8 @@ int lua_cocos2dx_ShaderCache_newVertexShaderModule(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ShaderCache_newVertexShaderModule'", nullptr); return 0; } - cocos2d::backend::ShaderModule* ret = cocos2d::backend::ShaderCache::newVertexShaderModule(arg0); - object_to_luaval(tolua_S, "ccb.ShaderModule",(cocos2d::backend::ShaderModule*)ret); + axis::backend::ShaderModule* ret = axis::backend::ShaderCache::newVertexShaderModule(arg0); + object_to_luaval(tolua_S, "ccb.ShaderModule",(axis::backend::ShaderModule*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccb.ShaderCache:newVertexShaderModule",argc, 1); @@ -1005,8 +1005,8 @@ int lua_cocos2dx_ShaderCache_newFragmentShaderModule(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ShaderCache_newFragmentShaderModule'", nullptr); return 0; } - cocos2d::backend::ShaderModule* ret = cocos2d::backend::ShaderCache::newFragmentShaderModule(arg0); - object_to_luaval(tolua_S, "ccb.ShaderModule",(cocos2d::backend::ShaderModule*)ret); + axis::backend::ShaderModule* ret = axis::backend::ShaderCache::newFragmentShaderModule(arg0); + object_to_luaval(tolua_S, "ccb.ShaderModule",(axis::backend::ShaderModule*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccb.ShaderCache:newFragmentShaderModule",argc, 1); @@ -1039,8 +1039,8 @@ int lua_cocos2dx_ShaderCache_getInstance(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ShaderCache_getInstance'", nullptr); return 0; } - cocos2d::backend::ShaderCache* ret = cocos2d::backend::ShaderCache::getInstance(); - object_to_luaval(tolua_S, "ccb.ShaderCache",(cocos2d::backend::ShaderCache*)ret); + axis::backend::ShaderCache* ret = axis::backend::ShaderCache::getInstance(); + object_to_luaval(tolua_S, "ccb.ShaderCache",(axis::backend::ShaderCache*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccb.ShaderCache:getInstance",argc, 0); @@ -1069,7 +1069,7 @@ int lua_register_cocos2dx_ShaderCache(lua_State* tolua_S) tolua_function(tolua_S,"newFragmentShaderModule", lua_cocos2dx_ShaderCache_newFragmentShaderModule); tolua_function(tolua_S,"getInstance", lua_cocos2dx_ShaderCache_getInstance); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::backend::ShaderCache).name(); // rtti is literal storage + auto typeName = typeid(axis::backend::ShaderCache).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccb.ShaderCache"; g_typeCast[typeName] = "ccb.ShaderCache"; return 1; @@ -1078,7 +1078,7 @@ int lua_register_cocos2dx_ShaderCache(lua_State* tolua_S) int lua_cocos2dx_Texture2D_updateWithMipmaps(lua_State* tolua_S) { int argc = 0; - cocos2d::Texture2D* cobj = nullptr; + axis::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1090,7 +1090,7 @@ int lua_cocos2dx_Texture2D_updateWithMipmaps(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1103,10 +1103,10 @@ int lua_cocos2dx_Texture2D_updateWithMipmaps(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 6) { - cocos2d::_MipmapInfo* arg0; + axis::_MipmapInfo* arg0; int arg1; - cocos2d::backend::PixelFormat arg2; - cocos2d::backend::PixelFormat arg3; + axis::backend::PixelFormat arg2; + axis::backend::PixelFormat arg3; int arg4; int arg5; @@ -1133,10 +1133,10 @@ int lua_cocos2dx_Texture2D_updateWithMipmaps(lua_State* tolua_S) } if (argc == 7) { - cocos2d::_MipmapInfo* arg0; + axis::_MipmapInfo* arg0; int arg1; - cocos2d::backend::PixelFormat arg2; - cocos2d::backend::PixelFormat arg3; + axis::backend::PixelFormat arg2; + axis::backend::PixelFormat arg3; int arg4; int arg5; bool arg6; @@ -1166,10 +1166,10 @@ int lua_cocos2dx_Texture2D_updateWithMipmaps(lua_State* tolua_S) } if (argc == 8) { - cocos2d::_MipmapInfo* arg0; + axis::_MipmapInfo* arg0; int arg1; - cocos2d::backend::PixelFormat arg2; - cocos2d::backend::PixelFormat arg3; + axis::backend::PixelFormat arg2; + axis::backend::PixelFormat arg3; int arg4; int arg5; bool arg6; @@ -1213,7 +1213,7 @@ int lua_cocos2dx_Texture2D_updateWithMipmaps(lua_State* tolua_S) int lua_cocos2dx_Texture2D_getMaxT(lua_State* tolua_S) { int argc = 0; - cocos2d::Texture2D* cobj = nullptr; + axis::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1225,7 +1225,7 @@ int lua_cocos2dx_Texture2D_getMaxT(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1260,7 +1260,7 @@ int lua_cocos2dx_Texture2D_getMaxT(lua_State* tolua_S) int lua_cocos2dx_Texture2D_getStringForFormat(lua_State* tolua_S) { int argc = 0; - cocos2d::Texture2D* cobj = nullptr; + axis::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1272,7 +1272,7 @@ int lua_cocos2dx_Texture2D_getStringForFormat(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1307,7 +1307,7 @@ int lua_cocos2dx_Texture2D_getStringForFormat(lua_State* tolua_S) int lua_cocos2dx_Texture2D_initWithImage(lua_State* tolua_S) { int argc = 0; - cocos2d::Texture2D* cobj = nullptr; + axis::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -1316,7 +1316,7 @@ int lua_cocos2dx_Texture2D_initWithImage(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -1327,11 +1327,11 @@ int lua_cocos2dx_Texture2D_initWithImage(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { - cocos2d::Image* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Image",&arg0, "cc.Texture2D:initWithImage"); + axis::Image* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Image",&arg0, "cc.Texture2D:initWithImage"); if (!ok) { break; } - cocos2d::backend::PixelFormat arg1; + axis::backend::PixelFormat arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Texture2D:initWithImage"); if (!ok) { break; } @@ -1343,8 +1343,8 @@ int lua_cocos2dx_Texture2D_initWithImage(lua_State* tolua_S) ok = true; do{ if (argc == 1) { - cocos2d::Image* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Image",&arg0, "cc.Texture2D:initWithImage"); + axis::Image* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Image",&arg0, "cc.Texture2D:initWithImage"); if (!ok) { break; } bool ret = cobj->initWithImage(arg0); @@ -1366,7 +1366,7 @@ int lua_cocos2dx_Texture2D_initWithImage(lua_State* tolua_S) int lua_cocos2dx_Texture2D_getMaxS(lua_State* tolua_S) { int argc = 0; - cocos2d::Texture2D* cobj = nullptr; + axis::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1378,7 +1378,7 @@ int lua_cocos2dx_Texture2D_getMaxS(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1413,7 +1413,7 @@ int lua_cocos2dx_Texture2D_getMaxS(lua_State* tolua_S) int lua_cocos2dx_Texture2D_hasPremultipliedAlpha(lua_State* tolua_S) { int argc = 0; - cocos2d::Texture2D* cobj = nullptr; + axis::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1425,7 +1425,7 @@ int lua_cocos2dx_Texture2D_hasPremultipliedAlpha(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1460,7 +1460,7 @@ int lua_cocos2dx_Texture2D_hasPremultipliedAlpha(lua_State* tolua_S) int lua_cocos2dx_Texture2D_getPixelsHigh(lua_State* tolua_S) { int argc = 0; - cocos2d::Texture2D* cobj = nullptr; + axis::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1472,7 +1472,7 @@ int lua_cocos2dx_Texture2D_getPixelsHigh(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1507,7 +1507,7 @@ int lua_cocos2dx_Texture2D_getPixelsHigh(lua_State* tolua_S) int lua_cocos2dx_Texture2D_getBitsPerPixelForFormat(lua_State* tolua_S) { int argc = 0; - cocos2d::Texture2D* cobj = nullptr; + axis::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -1516,7 +1516,7 @@ int lua_cocos2dx_Texture2D_getBitsPerPixelForFormat(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -1527,7 +1527,7 @@ int lua_cocos2dx_Texture2D_getBitsPerPixelForFormat(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { - cocos2d::backend::PixelFormat arg0; + axis::backend::PixelFormat arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Texture2D:getBitsPerPixelForFormat"); if (!ok) { break; } @@ -1558,7 +1558,7 @@ int lua_cocos2dx_Texture2D_getBitsPerPixelForFormat(lua_State* tolua_S) int lua_cocos2dx_Texture2D_setMaxS(lua_State* tolua_S) { int argc = 0; - cocos2d::Texture2D* cobj = nullptr; + axis::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1570,7 +1570,7 @@ int lua_cocos2dx_Texture2D_setMaxS(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1608,7 +1608,7 @@ int lua_cocos2dx_Texture2D_setMaxS(lua_State* tolua_S) int lua_cocos2dx_Texture2D_initWithString(lua_State* tolua_S) { int argc = 0; - cocos2d::Texture2D* cobj = nullptr; + axis::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -1617,7 +1617,7 @@ int lua_cocos2dx_Texture2D_initWithString(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -1632,7 +1632,7 @@ int lua_cocos2dx_Texture2D_initWithString(lua_State* tolua_S) std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Texture2D:initWithString"); arg0 = arg0_tmp.c_str(); if (!ok) { break; } - cocos2d::FontDefinition arg1; + axis::FontDefinition arg1; ok &= luaval_to_fontdefinition(tolua_S, 3, &arg1, "cc.Texture2D:initWithString"); if (!ok) { break; } @@ -1676,7 +1676,7 @@ int lua_cocos2dx_Texture2D_initWithString(lua_State* tolua_S) ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Texture2D:initWithString"); if (!ok) { break; } - cocos2d::Vec2 arg3; + axis::Vec2 arg3; ok &= luaval_to_vec2(tolua_S, 5, &arg3, "cc.Texture2D:initWithString"); if (!ok) { break; } @@ -1700,11 +1700,11 @@ int lua_cocos2dx_Texture2D_initWithString(lua_State* tolua_S) ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Texture2D:initWithString"); if (!ok) { break; } - cocos2d::Vec2 arg3; + axis::Vec2 arg3; ok &= luaval_to_vec2(tolua_S, 5, &arg3, "cc.Texture2D:initWithString"); if (!ok) { break; } - cocos2d::TextHAlignment arg4; + axis::TextHAlignment arg4; ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "cc.Texture2D:initWithString"); if (!ok) { break; } @@ -1728,15 +1728,15 @@ int lua_cocos2dx_Texture2D_initWithString(lua_State* tolua_S) ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Texture2D:initWithString"); if (!ok) { break; } - cocos2d::Vec2 arg3; + axis::Vec2 arg3; ok &= luaval_to_vec2(tolua_S, 5, &arg3, "cc.Texture2D:initWithString"); if (!ok) { break; } - cocos2d::TextHAlignment arg4; + axis::TextHAlignment arg4; ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "cc.Texture2D:initWithString"); if (!ok) { break; } - cocos2d::TextVAlignment arg5; + axis::TextVAlignment arg5; ok &= luaval_to_int32(tolua_S, 7,(int *)&arg5, "cc.Texture2D:initWithString"); if (!ok) { break; } @@ -1760,15 +1760,15 @@ int lua_cocos2dx_Texture2D_initWithString(lua_State* tolua_S) ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Texture2D:initWithString"); if (!ok) { break; } - cocos2d::Vec2 arg3; + axis::Vec2 arg3; ok &= luaval_to_vec2(tolua_S, 5, &arg3, "cc.Texture2D:initWithString"); if (!ok) { break; } - cocos2d::TextHAlignment arg4; + axis::TextHAlignment arg4; ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "cc.Texture2D:initWithString"); if (!ok) { break; } - cocos2d::TextVAlignment arg5; + axis::TextVAlignment arg5; ok &= luaval_to_int32(tolua_S, 7,(int *)&arg5, "cc.Texture2D:initWithString"); if (!ok) { break; } @@ -1796,15 +1796,15 @@ int lua_cocos2dx_Texture2D_initWithString(lua_State* tolua_S) ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Texture2D:initWithString"); if (!ok) { break; } - cocos2d::Vec2 arg3; + axis::Vec2 arg3; ok &= luaval_to_vec2(tolua_S, 5, &arg3, "cc.Texture2D:initWithString"); if (!ok) { break; } - cocos2d::TextHAlignment arg4; + axis::TextHAlignment arg4; ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "cc.Texture2D:initWithString"); if (!ok) { break; } - cocos2d::TextVAlignment arg5; + axis::TextVAlignment arg5; ok &= luaval_to_int32(tolua_S, 7,(int *)&arg5, "cc.Texture2D:initWithString"); if (!ok) { break; } @@ -1835,7 +1835,7 @@ int lua_cocos2dx_Texture2D_initWithString(lua_State* tolua_S) int lua_cocos2dx_Texture2D_setMaxT(lua_State* tolua_S) { int argc = 0; - cocos2d::Texture2D* cobj = nullptr; + axis::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1847,7 +1847,7 @@ int lua_cocos2dx_Texture2D_setMaxT(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1885,7 +1885,7 @@ int lua_cocos2dx_Texture2D_setMaxT(lua_State* tolua_S) int lua_cocos2dx_Texture2D_getPath(lua_State* tolua_S) { int argc = 0; - cocos2d::Texture2D* cobj = nullptr; + axis::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1897,7 +1897,7 @@ int lua_cocos2dx_Texture2D_getPath(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1932,7 +1932,7 @@ int lua_cocos2dx_Texture2D_getPath(lua_State* tolua_S) int lua_cocos2dx_Texture2D_drawInRect(lua_State* tolua_S) { int argc = 0; - cocos2d::Texture2D* cobj = nullptr; + axis::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1944,7 +1944,7 @@ int lua_cocos2dx_Texture2D_drawInRect(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1957,7 +1957,7 @@ int lua_cocos2dx_Texture2D_drawInRect(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::Rect arg0; + axis::Rect arg0; double arg1; ok &= luaval_to_rect(tolua_S, 2, &arg0, "cc.Texture2D:drawInRect"); @@ -1985,7 +1985,7 @@ int lua_cocos2dx_Texture2D_drawInRect(lua_State* tolua_S) int lua_cocos2dx_Texture2D_isRenderTarget(lua_State* tolua_S) { int argc = 0; - cocos2d::Texture2D* cobj = nullptr; + axis::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1997,7 +1997,7 @@ int lua_cocos2dx_Texture2D_isRenderTarget(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2032,7 +2032,7 @@ int lua_cocos2dx_Texture2D_isRenderTarget(lua_State* tolua_S) int lua_cocos2dx_Texture2D_getContentSize(lua_State* tolua_S) { int argc = 0; - cocos2d::Texture2D* cobj = nullptr; + axis::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2044,7 +2044,7 @@ int lua_cocos2dx_Texture2D_getContentSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2062,7 +2062,7 @@ int lua_cocos2dx_Texture2D_getContentSize(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Texture2D_getContentSize'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getContentSize(); + axis::Vec2 ret = cobj->getContentSize(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -2079,7 +2079,7 @@ int lua_cocos2dx_Texture2D_getContentSize(lua_State* tolua_S) int lua_cocos2dx_Texture2D_setAliasTexParameters(lua_State* tolua_S) { int argc = 0; - cocos2d::Texture2D* cobj = nullptr; + axis::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2091,7 +2091,7 @@ int lua_cocos2dx_Texture2D_setAliasTexParameters(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2126,7 +2126,7 @@ int lua_cocos2dx_Texture2D_setAliasTexParameters(lua_State* tolua_S) int lua_cocos2dx_Texture2D_setAntiAliasTexParameters(lua_State* tolua_S) { int argc = 0; - cocos2d::Texture2D* cobj = nullptr; + axis::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2138,7 +2138,7 @@ int lua_cocos2dx_Texture2D_setAntiAliasTexParameters(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2173,7 +2173,7 @@ int lua_cocos2dx_Texture2D_setAntiAliasTexParameters(lua_State* tolua_S) int lua_cocos2dx_Texture2D_generateMipmap(lua_State* tolua_S) { int argc = 0; - cocos2d::Texture2D* cobj = nullptr; + axis::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2185,7 +2185,7 @@ int lua_cocos2dx_Texture2D_generateMipmap(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2220,7 +2220,7 @@ int lua_cocos2dx_Texture2D_generateMipmap(lua_State* tolua_S) int lua_cocos2dx_Texture2D_getPixelFormat(lua_State* tolua_S) { int argc = 0; - cocos2d::Texture2D* cobj = nullptr; + axis::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2232,7 +2232,7 @@ int lua_cocos2dx_Texture2D_getPixelFormat(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2267,7 +2267,7 @@ int lua_cocos2dx_Texture2D_getPixelFormat(lua_State* tolua_S) int lua_cocos2dx_Texture2D_updateTextureDescriptor(lua_State* tolua_S) { int argc = 0; - cocos2d::Texture2D* cobj = nullptr; + axis::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2279,7 +2279,7 @@ int lua_cocos2dx_Texture2D_updateTextureDescriptor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2292,7 +2292,7 @@ int lua_cocos2dx_Texture2D_updateTextureDescriptor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::backend::TextureDescriptor arg0; + axis::backend::TextureDescriptor arg0; #pragma warning NO CONVERSION TO NATIVE FOR TextureDescriptor ok = false; @@ -2307,7 +2307,7 @@ int lua_cocos2dx_Texture2D_updateTextureDescriptor(lua_State* tolua_S) } if (argc == 2) { - cocos2d::backend::TextureDescriptor arg0; + axis::backend::TextureDescriptor arg0; bool arg1; #pragma warning NO CONVERSION TO NATIVE FOR TextureDescriptor @@ -2336,7 +2336,7 @@ int lua_cocos2dx_Texture2D_updateTextureDescriptor(lua_State* tolua_S) int lua_cocos2dx_Texture2D_setPremultipliedAlpha(lua_State* tolua_S) { int argc = 0; - cocos2d::Texture2D* cobj = nullptr; + axis::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2348,7 +2348,7 @@ int lua_cocos2dx_Texture2D_setPremultipliedAlpha(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2386,7 +2386,7 @@ int lua_cocos2dx_Texture2D_setPremultipliedAlpha(lua_State* tolua_S) int lua_cocos2dx_Texture2D_getBackendTexture(lua_State* tolua_S) { int argc = 0; - cocos2d::Texture2D* cobj = nullptr; + axis::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2398,7 +2398,7 @@ int lua_cocos2dx_Texture2D_getBackendTexture(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2416,8 +2416,8 @@ int lua_cocos2dx_Texture2D_getBackendTexture(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Texture2D_getBackendTexture'", nullptr); return 0; } - cocos2d::backend::TextureBackend* ret = cobj->getBackendTexture(); - object_to_luaval(tolua_S, "ccb.TextureBackend",(cocos2d::backend::TextureBackend*)ret); + axis::backend::TextureBackend* ret = cobj->getBackendTexture(); + object_to_luaval(tolua_S, "ccb.TextureBackend",(axis::backend::TextureBackend*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Texture2D:getBackendTexture",argc, 0); @@ -2433,7 +2433,7 @@ int lua_cocos2dx_Texture2D_getBackendTexture(lua_State* tolua_S) int lua_cocos2dx_Texture2D_getContentSizeInPixels(lua_State* tolua_S) { int argc = 0; - cocos2d::Texture2D* cobj = nullptr; + axis::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2445,7 +2445,7 @@ int lua_cocos2dx_Texture2D_getContentSizeInPixels(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2463,7 +2463,7 @@ int lua_cocos2dx_Texture2D_getContentSizeInPixels(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Texture2D_getContentSizeInPixels'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getContentSizeInPixels(); + const axis::Vec2& ret = cobj->getContentSizeInPixels(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -2480,7 +2480,7 @@ int lua_cocos2dx_Texture2D_getContentSizeInPixels(lua_State* tolua_S) int lua_cocos2dx_Texture2D_getSamplerFlags(lua_State* tolua_S) { int argc = 0; - cocos2d::Texture2D* cobj = nullptr; + axis::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2492,7 +2492,7 @@ int lua_cocos2dx_Texture2D_getSamplerFlags(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2527,7 +2527,7 @@ int lua_cocos2dx_Texture2D_getSamplerFlags(lua_State* tolua_S) int lua_cocos2dx_Texture2D_getPixelsWide(lua_State* tolua_S) { int argc = 0; - cocos2d::Texture2D* cobj = nullptr; + axis::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2539,7 +2539,7 @@ int lua_cocos2dx_Texture2D_getPixelsWide(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2574,7 +2574,7 @@ int lua_cocos2dx_Texture2D_getPixelsWide(lua_State* tolua_S) int lua_cocos2dx_Texture2D_drawAtPoint(lua_State* tolua_S) { int argc = 0; - cocos2d::Texture2D* cobj = nullptr; + axis::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2586,7 +2586,7 @@ int lua_cocos2dx_Texture2D_drawAtPoint(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2599,7 +2599,7 @@ int lua_cocos2dx_Texture2D_drawAtPoint(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; double arg1; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Texture2D:drawAtPoint"); @@ -2627,7 +2627,7 @@ int lua_cocos2dx_Texture2D_drawAtPoint(lua_State* tolua_S) int lua_cocos2dx_Texture2D_hasMipmaps(lua_State* tolua_S) { int argc = 0; - cocos2d::Texture2D* cobj = nullptr; + axis::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2639,7 +2639,7 @@ int lua_cocos2dx_Texture2D_hasMipmaps(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2674,7 +2674,7 @@ int lua_cocos2dx_Texture2D_hasMipmaps(lua_State* tolua_S) int lua_cocos2dx_Texture2D_setRenderTarget(lua_State* tolua_S) { int argc = 0; - cocos2d::Texture2D* cobj = nullptr; + axis::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2686,7 +2686,7 @@ int lua_cocos2dx_Texture2D_setRenderTarget(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2724,7 +2724,7 @@ int lua_cocos2dx_Texture2D_setRenderTarget(lua_State* tolua_S) int lua_cocos2dx_Texture2D_updateWithImage(lua_State* tolua_S) { int argc = 0; - cocos2d::Texture2D* cobj = nullptr; + axis::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2736,7 +2736,7 @@ int lua_cocos2dx_Texture2D_updateWithImage(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2749,10 +2749,10 @@ int lua_cocos2dx_Texture2D_updateWithImage(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::Image* arg0; - cocos2d::backend::PixelFormat arg1; + axis::Image* arg0; + axis::backend::PixelFormat arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.Image",&arg0, "cc.Texture2D:updateWithImage"); + ok &= luaval_to_object(tolua_S, 2, "cc.Image",&arg0, "cc.Texture2D:updateWithImage"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Texture2D:updateWithImage"); if(!ok) @@ -2766,11 +2766,11 @@ int lua_cocos2dx_Texture2D_updateWithImage(lua_State* tolua_S) } if (argc == 3) { - cocos2d::Image* arg0; - cocos2d::backend::PixelFormat arg1; + axis::Image* arg0; + axis::backend::PixelFormat arg1; int arg2; - ok &= luaval_to_object(tolua_S, 2, "cc.Image",&arg0, "cc.Texture2D:updateWithImage"); + ok &= luaval_to_object(tolua_S, 2, "cc.Image",&arg0, "cc.Texture2D:updateWithImage"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Texture2D:updateWithImage"); @@ -2797,7 +2797,7 @@ int lua_cocos2dx_Texture2D_updateWithImage(lua_State* tolua_S) int lua_cocos2dx_Texture2D_updateWithSubData(lua_State* tolua_S) { int argc = 0; - cocos2d::Texture2D* cobj = nullptr; + axis::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2809,7 +2809,7 @@ int lua_cocos2dx_Texture2D_updateWithSubData(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Texture2D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Texture2D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Texture2D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2904,14 +2904,14 @@ int lua_cocos2dx_Texture2D_setDefaultAlphaPixelFormat(lua_State* tolua_S) if (argc == 1) { - cocos2d::backend::PixelFormat arg0; + axis::backend::PixelFormat arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Texture2D:setDefaultAlphaPixelFormat"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Texture2D_setDefaultAlphaPixelFormat'", nullptr); return 0; } - cocos2d::Texture2D::setDefaultAlphaPixelFormat(arg0); + axis::Texture2D::setDefaultAlphaPixelFormat(arg0); lua_settop(tolua_S, 1); return 1; } @@ -2945,7 +2945,7 @@ int lua_cocos2dx_Texture2D_getDefaultAlphaPixelFormat(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Texture2D_getDefaultAlphaPixelFormat'", nullptr); return 0; } - int ret = (int)cocos2d::Texture2D::getDefaultAlphaPixelFormat(); + int ret = (int)axis::Texture2D::getDefaultAlphaPixelFormat(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } @@ -2960,7 +2960,7 @@ int lua_cocos2dx_Texture2D_getDefaultAlphaPixelFormat(lua_State* tolua_S) int lua_cocos2dx_Texture2D_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Texture2D* cobj = nullptr; + axis::Texture2D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2977,7 +2977,7 @@ int lua_cocos2dx_Texture2D_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Texture2D_constructor'", nullptr); return 0; } - cobj = new cocos2d::Texture2D(); + cobj = new axis::Texture2D(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -3040,7 +3040,7 @@ int lua_register_cocos2dx_Texture2D(lua_State* tolua_S) tolua_function(tolua_S,"setDefaultAlphaPixelFormat", lua_cocos2dx_Texture2D_setDefaultAlphaPixelFormat); tolua_function(tolua_S,"getDefaultAlphaPixelFormat", lua_cocos2dx_Texture2D_getDefaultAlphaPixelFormat); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Texture2D).name(); // rtti is literal storage + auto typeName = typeid(axis::Texture2D).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Texture2D"; g_typeCast[typeName] = "cc.Texture2D"; return 1; @@ -3049,7 +3049,7 @@ int lua_register_cocos2dx_Texture2D(lua_State* tolua_S) int lua_cocos2dx_Touch_getPreviousLocationInView(lua_State* tolua_S) { int argc = 0; - cocos2d::Touch* cobj = nullptr; + axis::Touch* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3061,7 +3061,7 @@ int lua_cocos2dx_Touch_getPreviousLocationInView(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Touch",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Touch*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Touch*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3079,7 +3079,7 @@ int lua_cocos2dx_Touch_getPreviousLocationInView(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Touch_getPreviousLocationInView'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getPreviousLocationInView(); + axis::Vec2 ret = cobj->getPreviousLocationInView(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -3096,7 +3096,7 @@ int lua_cocos2dx_Touch_getPreviousLocationInView(lua_State* tolua_S) int lua_cocos2dx_Touch_getLocation(lua_State* tolua_S) { int argc = 0; - cocos2d::Touch* cobj = nullptr; + axis::Touch* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3108,7 +3108,7 @@ int lua_cocos2dx_Touch_getLocation(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Touch",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Touch*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Touch*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3126,7 +3126,7 @@ int lua_cocos2dx_Touch_getLocation(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Touch_getLocation'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getLocation(); + axis::Vec2 ret = cobj->getLocation(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -3143,7 +3143,7 @@ int lua_cocos2dx_Touch_getLocation(lua_State* tolua_S) int lua_cocos2dx_Touch_getDelta(lua_State* tolua_S) { int argc = 0; - cocos2d::Touch* cobj = nullptr; + axis::Touch* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3155,7 +3155,7 @@ int lua_cocos2dx_Touch_getDelta(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Touch",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Touch*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Touch*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3173,7 +3173,7 @@ int lua_cocos2dx_Touch_getDelta(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Touch_getDelta'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getDelta(); + axis::Vec2 ret = cobj->getDelta(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -3190,7 +3190,7 @@ int lua_cocos2dx_Touch_getDelta(lua_State* tolua_S) int lua_cocos2dx_Touch_getStartLocationInView(lua_State* tolua_S) { int argc = 0; - cocos2d::Touch* cobj = nullptr; + axis::Touch* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3202,7 +3202,7 @@ int lua_cocos2dx_Touch_getStartLocationInView(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Touch",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Touch*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Touch*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3220,7 +3220,7 @@ int lua_cocos2dx_Touch_getStartLocationInView(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Touch_getStartLocationInView'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getStartLocationInView(); + axis::Vec2 ret = cobj->getStartLocationInView(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -3237,7 +3237,7 @@ int lua_cocos2dx_Touch_getStartLocationInView(lua_State* tolua_S) int lua_cocos2dx_Touch_getCurrentForce(lua_State* tolua_S) { int argc = 0; - cocos2d::Touch* cobj = nullptr; + axis::Touch* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3249,7 +3249,7 @@ int lua_cocos2dx_Touch_getCurrentForce(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Touch",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Touch*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Touch*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3284,7 +3284,7 @@ int lua_cocos2dx_Touch_getCurrentForce(lua_State* tolua_S) int lua_cocos2dx_Touch_getStartLocation(lua_State* tolua_S) { int argc = 0; - cocos2d::Touch* cobj = nullptr; + axis::Touch* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3296,7 +3296,7 @@ int lua_cocos2dx_Touch_getStartLocation(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Touch",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Touch*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Touch*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3314,7 +3314,7 @@ int lua_cocos2dx_Touch_getStartLocation(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Touch_getStartLocation'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getStartLocation(); + axis::Vec2 ret = cobj->getStartLocation(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -3331,7 +3331,7 @@ int lua_cocos2dx_Touch_getStartLocation(lua_State* tolua_S) int lua_cocos2dx_Touch_getID(lua_State* tolua_S) { int argc = 0; - cocos2d::Touch* cobj = nullptr; + axis::Touch* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3343,7 +3343,7 @@ int lua_cocos2dx_Touch_getID(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Touch",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Touch*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Touch*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3378,7 +3378,7 @@ int lua_cocos2dx_Touch_getID(lua_State* tolua_S) int lua_cocos2dx_Touch_setTouchInfo(lua_State* tolua_S) { int argc = 0; - cocos2d::Touch* cobj = nullptr; + axis::Touch* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -3387,7 +3387,7 @@ int lua_cocos2dx_Touch_setTouchInfo(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Touch",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Touch*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Touch*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -3457,7 +3457,7 @@ int lua_cocos2dx_Touch_setTouchInfo(lua_State* tolua_S) int lua_cocos2dx_Touch_getMaxForce(lua_State* tolua_S) { int argc = 0; - cocos2d::Touch* cobj = nullptr; + axis::Touch* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3469,7 +3469,7 @@ int lua_cocos2dx_Touch_getMaxForce(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Touch",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Touch*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Touch*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3504,7 +3504,7 @@ int lua_cocos2dx_Touch_getMaxForce(lua_State* tolua_S) int lua_cocos2dx_Touch_getLocationInView(lua_State* tolua_S) { int argc = 0; - cocos2d::Touch* cobj = nullptr; + axis::Touch* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3516,7 +3516,7 @@ int lua_cocos2dx_Touch_getLocationInView(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Touch",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Touch*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Touch*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3534,7 +3534,7 @@ int lua_cocos2dx_Touch_getLocationInView(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Touch_getLocationInView'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getLocationInView(); + axis::Vec2 ret = cobj->getLocationInView(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -3551,7 +3551,7 @@ int lua_cocos2dx_Touch_getLocationInView(lua_State* tolua_S) int lua_cocos2dx_Touch_getPreviousLocation(lua_State* tolua_S) { int argc = 0; - cocos2d::Touch* cobj = nullptr; + axis::Touch* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3563,7 +3563,7 @@ int lua_cocos2dx_Touch_getPreviousLocation(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Touch",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Touch*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Touch*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3581,7 +3581,7 @@ int lua_cocos2dx_Touch_getPreviousLocation(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Touch_getPreviousLocation'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getPreviousLocation(); + axis::Vec2 ret = cobj->getPreviousLocation(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -3598,7 +3598,7 @@ int lua_cocos2dx_Touch_getPreviousLocation(lua_State* tolua_S) int lua_cocos2dx_Touch_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Touch* cobj = nullptr; + axis::Touch* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3615,7 +3615,7 @@ int lua_cocos2dx_Touch_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Touch_constructor'", nullptr); return 0; } - cobj = new cocos2d::Touch(); + cobj = new axis::Touch(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -3657,7 +3657,7 @@ int lua_register_cocos2dx_Touch(lua_State* tolua_S) tolua_function(tolua_S,"getLocationInView",lua_cocos2dx_Touch_getLocationInView); tolua_function(tolua_S,"getPreviousLocation",lua_cocos2dx_Touch_getPreviousLocation); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Touch).name(); // rtti is literal storage + auto typeName = typeid(axis::Touch).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Touch"; g_typeCast[typeName] = "cc.Touch"; return 1; @@ -3666,7 +3666,7 @@ int lua_register_cocos2dx_Touch(lua_State* tolua_S) int lua_cocos2dx_Event_isStopped(lua_State* tolua_S) { int argc = 0; - cocos2d::Event* cobj = nullptr; + axis::Event* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3678,7 +3678,7 @@ int lua_cocos2dx_Event_isStopped(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Event",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Event*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Event*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3713,7 +3713,7 @@ int lua_cocos2dx_Event_isStopped(lua_State* tolua_S) int lua_cocos2dx_Event_getType(lua_State* tolua_S) { int argc = 0; - cocos2d::Event* cobj = nullptr; + axis::Event* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3725,7 +3725,7 @@ int lua_cocos2dx_Event_getType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Event",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Event*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Event*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3760,7 +3760,7 @@ int lua_cocos2dx_Event_getType(lua_State* tolua_S) int lua_cocos2dx_Event_getCurrentTarget(lua_State* tolua_S) { int argc = 0; - cocos2d::Event* cobj = nullptr; + axis::Event* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3772,7 +3772,7 @@ int lua_cocos2dx_Event_getCurrentTarget(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Event",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Event*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Event*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3790,8 +3790,8 @@ int lua_cocos2dx_Event_getCurrentTarget(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Event_getCurrentTarget'", nullptr); return 0; } - cocos2d::Node* ret = cobj->getCurrentTarget(); - object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + axis::Node* ret = cobj->getCurrentTarget(); + object_to_luaval(tolua_S, "cc.Node",(axis::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Event:getCurrentTarget",argc, 0); @@ -3807,7 +3807,7 @@ int lua_cocos2dx_Event_getCurrentTarget(lua_State* tolua_S) int lua_cocos2dx_Event_stopPropagation(lua_State* tolua_S) { int argc = 0; - cocos2d::Event* cobj = nullptr; + axis::Event* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3819,7 +3819,7 @@ int lua_cocos2dx_Event_stopPropagation(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Event",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Event*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Event*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3854,7 +3854,7 @@ int lua_cocos2dx_Event_stopPropagation(lua_State* tolua_S) int lua_cocos2dx_Event_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Event* cobj = nullptr; + axis::Event* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3866,7 +3866,7 @@ int lua_cocos2dx_Event_constructor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Event::Type arg0; + axis::Event::Type arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Event:Event"); if(!ok) @@ -3874,7 +3874,7 @@ int lua_cocos2dx_Event_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Event_constructor'", nullptr); return 0; } - cobj = new cocos2d::Event(arg0); + cobj = new axis::Event(arg0); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -3909,7 +3909,7 @@ int lua_register_cocos2dx_Event(lua_State* tolua_S) tolua_function(tolua_S,"getCurrentTarget",lua_cocos2dx_Event_getCurrentTarget); tolua_function(tolua_S,"stopPropagation",lua_cocos2dx_Event_stopPropagation); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Event).name(); // rtti is literal storage + auto typeName = typeid(axis::Event).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Event"; g_typeCast[typeName] = "cc.Event"; return 1; @@ -3918,7 +3918,7 @@ int lua_register_cocos2dx_Event(lua_State* tolua_S) int lua_cocos2dx_EventTouch_getEventCode(lua_State* tolua_S) { int argc = 0; - cocos2d::EventTouch* cobj = nullptr; + axis::EventTouch* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3930,7 +3930,7 @@ int lua_cocos2dx_EventTouch_getEventCode(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventTouch",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventTouch*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventTouch*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3965,7 +3965,7 @@ int lua_cocos2dx_EventTouch_getEventCode(lua_State* tolua_S) int lua_cocos2dx_EventTouch_setEventCode(lua_State* tolua_S) { int argc = 0; - cocos2d::EventTouch* cobj = nullptr; + axis::EventTouch* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3977,7 +3977,7 @@ int lua_cocos2dx_EventTouch_setEventCode(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventTouch",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventTouch*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventTouch*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3990,7 +3990,7 @@ int lua_cocos2dx_EventTouch_setEventCode(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::EventTouch::EventCode arg0; + axis::EventTouch::EventCode arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.EventTouch:setEventCode"); if(!ok) @@ -4015,7 +4015,7 @@ int lua_cocos2dx_EventTouch_setEventCode(lua_State* tolua_S) int lua_cocos2dx_EventTouch_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EventTouch* cobj = nullptr; + axis::EventTouch* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4032,7 +4032,7 @@ int lua_cocos2dx_EventTouch_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventTouch_constructor'", nullptr); return 0; } - cobj = new cocos2d::EventTouch(); + cobj = new axis::EventTouch(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -4065,7 +4065,7 @@ int lua_register_cocos2dx_EventTouch(lua_State* tolua_S) tolua_function(tolua_S,"getEventCode",lua_cocos2dx_EventTouch_getEventCode); tolua_function(tolua_S,"setEventCode",lua_cocos2dx_EventTouch_setEventCode); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EventTouch).name(); // rtti is literal storage + auto typeName = typeid(axis::EventTouch).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EventTouch"; g_typeCast[typeName] = "cc.EventTouch"; return 1; @@ -4074,7 +4074,7 @@ int lua_register_cocos2dx_EventTouch(lua_State* tolua_S) int lua_cocos2dx_EventKeyboard_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EventKeyboard* cobj = nullptr; + axis::EventKeyboard* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4086,7 +4086,7 @@ int lua_cocos2dx_EventKeyboard_constructor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::EventKeyboard::KeyCode arg0; + axis::EventKeyboard::KeyCode arg0; bool arg1; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.EventKeyboard:EventKeyboard"); @@ -4097,7 +4097,7 @@ int lua_cocos2dx_EventKeyboard_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventKeyboard_constructor'", nullptr); return 0; } - cobj = new cocos2d::EventKeyboard(arg0, arg1); + cobj = new axis::EventKeyboard(arg0, arg1); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -4128,7 +4128,7 @@ int lua_register_cocos2dx_EventKeyboard(lua_State* tolua_S) tolua_beginmodule(tolua_S,"EventKeyboard"); tolua_function(tolua_S,"new",lua_cocos2dx_EventKeyboard_constructor); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EventKeyboard).name(); // rtti is literal storage + auto typeName = typeid(axis::EventKeyboard).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EventKeyboard"; g_typeCast[typeName] = "cc.EventKeyboard"; return 1; @@ -4137,7 +4137,7 @@ int lua_register_cocos2dx_EventKeyboard(lua_State* tolua_S) int lua_cocos2dx_Component_setEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::Component* cobj = nullptr; + axis::Component* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4149,7 +4149,7 @@ int lua_cocos2dx_Component_setEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Component",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Component*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Component*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4187,7 +4187,7 @@ int lua_cocos2dx_Component_setEnabled(lua_State* tolua_S) int lua_cocos2dx_Component_onRemove(lua_State* tolua_S) { int argc = 0; - cocos2d::Component* cobj = nullptr; + axis::Component* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4199,7 +4199,7 @@ int lua_cocos2dx_Component_onRemove(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Component",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Component*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Component*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4234,7 +4234,7 @@ int lua_cocos2dx_Component_onRemove(lua_State* tolua_S) int lua_cocos2dx_Component_setName(lua_State* tolua_S) { int argc = 0; - cocos2d::Component* cobj = nullptr; + axis::Component* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4246,7 +4246,7 @@ int lua_cocos2dx_Component_setName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Component",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Component*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Component*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4284,7 +4284,7 @@ int lua_cocos2dx_Component_setName(lua_State* tolua_S) int lua_cocos2dx_Component_isEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::Component* cobj = nullptr; + axis::Component* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4296,7 +4296,7 @@ int lua_cocos2dx_Component_isEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Component",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Component*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Component*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4331,7 +4331,7 @@ int lua_cocos2dx_Component_isEnabled(lua_State* tolua_S) int lua_cocos2dx_Component_update(lua_State* tolua_S) { int argc = 0; - cocos2d::Component* cobj = nullptr; + axis::Component* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4343,7 +4343,7 @@ int lua_cocos2dx_Component_update(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Component",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Component*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Component*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4381,7 +4381,7 @@ int lua_cocos2dx_Component_update(lua_State* tolua_S) int lua_cocos2dx_Component_getOwner(lua_State* tolua_S) { int argc = 0; - cocos2d::Component* cobj = nullptr; + axis::Component* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4393,7 +4393,7 @@ int lua_cocos2dx_Component_getOwner(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Component",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Component*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Component*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4411,8 +4411,8 @@ int lua_cocos2dx_Component_getOwner(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Component_getOwner'", nullptr); return 0; } - cocos2d::Node* ret = cobj->getOwner(); - object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + axis::Node* ret = cobj->getOwner(); + object_to_luaval(tolua_S, "cc.Node",(axis::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Component:getOwner",argc, 0); @@ -4428,7 +4428,7 @@ int lua_cocos2dx_Component_getOwner(lua_State* tolua_S) int lua_cocos2dx_Component_init(lua_State* tolua_S) { int argc = 0; - cocos2d::Component* cobj = nullptr; + axis::Component* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4440,7 +4440,7 @@ int lua_cocos2dx_Component_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Component",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Component*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Component*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4475,7 +4475,7 @@ int lua_cocos2dx_Component_init(lua_State* tolua_S) int lua_cocos2dx_Component_setOwner(lua_State* tolua_S) { int argc = 0; - cocos2d::Component* cobj = nullptr; + axis::Component* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4487,7 +4487,7 @@ int lua_cocos2dx_Component_setOwner(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Component",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Component*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Component*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4500,9 +4500,9 @@ int lua_cocos2dx_Component_setOwner(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Node* arg0; + axis::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Component:setOwner"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Component:setOwner"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Component_setOwner'", nullptr); @@ -4525,7 +4525,7 @@ int lua_cocos2dx_Component_setOwner(lua_State* tolua_S) int lua_cocos2dx_Component_getName(lua_State* tolua_S) { int argc = 0; - cocos2d::Component* cobj = nullptr; + axis::Component* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4537,7 +4537,7 @@ int lua_cocos2dx_Component_getName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Component",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Component*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Component*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4572,7 +4572,7 @@ int lua_cocos2dx_Component_getName(lua_State* tolua_S) int lua_cocos2dx_Component_onAdd(lua_State* tolua_S) { int argc = 0; - cocos2d::Component* cobj = nullptr; + axis::Component* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4584,7 +4584,7 @@ int lua_cocos2dx_Component_onAdd(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Component",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Component*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Component*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4638,8 +4638,8 @@ int lua_cocos2dx_Component_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Component_create'", nullptr); return 0; } - cocos2d::Component* ret = cocos2d::Component::create(); - object_to_luaval(tolua_S, "cc.Component",(cocos2d::Component*)ret); + axis::Component* ret = axis::Component::create(); + object_to_luaval(tolua_S, "cc.Component",(axis::Component*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Component:create",argc, 0); @@ -4674,7 +4674,7 @@ int lua_register_cocos2dx_Component(lua_State* tolua_S) tolua_function(tolua_S,"onAdd",lua_cocos2dx_Component_onAdd); tolua_function(tolua_S,"create", lua_cocos2dx_Component_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Component).name(); // rtti is literal storage + auto typeName = typeid(axis::Component).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Component"; g_typeCast[typeName] = "cc.Component"; return 1; @@ -4683,7 +4683,7 @@ int lua_register_cocos2dx_Component(lua_State* tolua_S) int lua_cocos2dx_Node_addChild(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -4692,7 +4692,7 @@ int lua_cocos2dx_Node_addChild(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -4703,8 +4703,8 @@ int lua_cocos2dx_Node_addChild(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { - cocos2d::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Node:addChild"); + axis::Node* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Node:addChild"); if (!ok) { break; } int arg1; @@ -4719,8 +4719,8 @@ int lua_cocos2dx_Node_addChild(lua_State* tolua_S) ok = true; do{ if (argc == 1) { - cocos2d::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Node:addChild"); + axis::Node* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Node:addChild"); if (!ok) { break; } cobj->addChild(arg0); @@ -4731,8 +4731,8 @@ int lua_cocos2dx_Node_addChild(lua_State* tolua_S) ok = true; do{ if (argc == 3) { - cocos2d::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Node:addChild"); + axis::Node* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Node:addChild"); if (!ok) { break; } int arg1; @@ -4751,8 +4751,8 @@ int lua_cocos2dx_Node_addChild(lua_State* tolua_S) ok = true; do{ if (argc == 3) { - cocos2d::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Node:addChild"); + axis::Node* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Node:addChild"); if (!ok) { break; } int arg1; @@ -4782,7 +4782,7 @@ int lua_cocos2dx_Node_addChild(lua_State* tolua_S) int lua_cocos2dx_Node_removeComponent(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -4791,7 +4791,7 @@ int lua_cocos2dx_Node_removeComponent(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -4802,8 +4802,8 @@ int lua_cocos2dx_Node_removeComponent(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { - cocos2d::Component* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Component",&arg0, "cc.Node:removeComponent"); + axis::Component* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Component",&arg0, "cc.Node:removeComponent"); if (!ok) { break; } bool ret = cobj->removeComponent(arg0); @@ -4837,7 +4837,7 @@ int lua_cocos2dx_Node_removeComponent(lua_State* tolua_S) int lua_cocos2dx_Node_setPhysicsBody(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4849,7 +4849,7 @@ int lua_cocos2dx_Node_setPhysicsBody(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4862,9 +4862,9 @@ int lua_cocos2dx_Node_setPhysicsBody(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::PhysicsBody* arg0; + axis::PhysicsBody* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsBody",&arg0, "cc.Node:setPhysicsBody"); + ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsBody",&arg0, "cc.Node:setPhysicsBody"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setPhysicsBody'", nullptr); @@ -4887,7 +4887,7 @@ int lua_cocos2dx_Node_setPhysicsBody(lua_State* tolua_S) int lua_cocos2dx_Node_getOnExitTransitionDidStartCallback(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4899,7 +4899,7 @@ int lua_cocos2dx_Node_getOnExitTransitionDidStartCallback(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4934,7 +4934,7 @@ int lua_cocos2dx_Node_getOnExitTransitionDidStartCallback(lua_State* tolua_S) int lua_cocos2dx_Node_updateProgramStateTexture(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4946,7 +4946,7 @@ int lua_cocos2dx_Node_updateProgramStateTexture(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4959,9 +4959,9 @@ int lua_cocos2dx_Node_updateProgramStateTexture(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Texture2D* arg0; + axis::Texture2D* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.Node:updateProgramStateTexture"); + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.Node:updateProgramStateTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_updateProgramStateTexture'", nullptr); @@ -4984,7 +4984,7 @@ int lua_cocos2dx_Node_updateProgramStateTexture(lua_State* tolua_S) int lua_cocos2dx_Node_getDescription(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4996,7 +4996,7 @@ int lua_cocos2dx_Node_getDescription(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5031,7 +5031,7 @@ int lua_cocos2dx_Node_getDescription(lua_State* tolua_S) int lua_cocos2dx_Node_setRotationSkewY(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5043,7 +5043,7 @@ int lua_cocos2dx_Node_setRotationSkewY(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5081,7 +5081,7 @@ int lua_cocos2dx_Node_setRotationSkewY(lua_State* tolua_S) int lua_cocos2dx_Node_setOpacityModifyRGB(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5093,7 +5093,7 @@ int lua_cocos2dx_Node_setOpacityModifyRGB(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5131,7 +5131,7 @@ int lua_cocos2dx_Node_setOpacityModifyRGB(lua_State* tolua_S) int lua_cocos2dx_Node_setCascadeOpacityEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5143,7 +5143,7 @@ int lua_cocos2dx_Node_setCascadeOpacityEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5181,7 +5181,7 @@ int lua_cocos2dx_Node_setCascadeOpacityEnabled(lua_State* tolua_S) int lua_cocos2dx_Node_getChildren(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -5190,7 +5190,7 @@ int lua_cocos2dx_Node_getChildren(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -5201,7 +5201,7 @@ int lua_cocos2dx_Node_getChildren(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 0) { - const cocos2d::Vector& ret = cobj->getChildren(); + const axis::Vector& ret = cobj->getChildren(); ccvector_to_luaval(tolua_S, ret); return 1; } @@ -5209,7 +5209,7 @@ int lua_cocos2dx_Node_getChildren(lua_State* tolua_S) ok = true; do{ if (argc == 0) { - cocos2d::Vector& ret = cobj->getChildren(); + axis::Vector& ret = cobj->getChildren(); ccvector_to_luaval(tolua_S, ret); return 1; } @@ -5228,7 +5228,7 @@ int lua_cocos2dx_Node_getChildren(lua_State* tolua_S) int lua_cocos2dx_Node_setOnExitCallback(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5240,7 +5240,7 @@ int lua_cocos2dx_Node_setOnExitCallback(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5282,7 +5282,7 @@ int lua_cocos2dx_Node_setOnExitCallback(lua_State* tolua_S) int lua_cocos2dx_Node_setActionManager(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5294,7 +5294,7 @@ int lua_cocos2dx_Node_setActionManager(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5307,9 +5307,9 @@ int lua_cocos2dx_Node_setActionManager(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ActionManager* arg0; + axis::ActionManager* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionManager",&arg0, "cc.Node:setActionManager"); + ok &= luaval_to_object(tolua_S, 2, "cc.ActionManager",&arg0, "cc.Node:setActionManager"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setActionManager'", nullptr); @@ -5332,7 +5332,7 @@ int lua_cocos2dx_Node_setActionManager(lua_State* tolua_S) int lua_cocos2dx_Node_convertToWorldSpaceAR(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5344,7 +5344,7 @@ int lua_cocos2dx_Node_convertToWorldSpaceAR(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5357,7 +5357,7 @@ int lua_cocos2dx_Node_convertToWorldSpaceAR(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Node:convertToWorldSpaceAR"); if(!ok) @@ -5365,7 +5365,7 @@ int lua_cocos2dx_Node_convertToWorldSpaceAR(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_convertToWorldSpaceAR'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->convertToWorldSpaceAR(arg0); + axis::Vec2 ret = cobj->convertToWorldSpaceAR(arg0); vec2_to_luaval(tolua_S, ret); return 1; } @@ -5382,7 +5382,7 @@ int lua_cocos2dx_Node_convertToWorldSpaceAR(lua_State* tolua_S) int lua_cocos2dx_Node_isIgnoreAnchorPointForPosition(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5394,7 +5394,7 @@ int lua_cocos2dx_Node_isIgnoreAnchorPointForPosition(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5429,7 +5429,7 @@ int lua_cocos2dx_Node_isIgnoreAnchorPointForPosition(lua_State* tolua_S) int lua_cocos2dx_Node_getChildByName(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5441,7 +5441,7 @@ int lua_cocos2dx_Node_getChildByName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5462,8 +5462,8 @@ int lua_cocos2dx_Node_getChildByName(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getChildByName'", nullptr); return 0; } - cocos2d::Node* ret = cobj->getChildByName(arg0); - object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + axis::Node* ret = cobj->getChildByName(arg0); + object_to_luaval(tolua_S, "cc.Node",(axis::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getChildByName",argc, 1); @@ -5479,7 +5479,7 @@ int lua_cocos2dx_Node_getChildByName(lua_State* tolua_S) int lua_cocos2dx_Node_updateDisplayedOpacity(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5491,7 +5491,7 @@ int lua_cocos2dx_Node_updateDisplayedOpacity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5529,7 +5529,7 @@ int lua_cocos2dx_Node_updateDisplayedOpacity(lua_State* tolua_S) int lua_cocos2dx_Node_init(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5541,7 +5541,7 @@ int lua_cocos2dx_Node_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5576,7 +5576,7 @@ int lua_cocos2dx_Node_init(lua_State* tolua_S) int lua_cocos2dx_Node_getCameraMask(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5588,7 +5588,7 @@ int lua_cocos2dx_Node_getCameraMask(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5623,7 +5623,7 @@ int lua_cocos2dx_Node_getCameraMask(lua_State* tolua_S) int lua_cocos2dx_Node_setRotation(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5635,7 +5635,7 @@ int lua_cocos2dx_Node_setRotation(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5673,7 +5673,7 @@ int lua_cocos2dx_Node_setRotation(lua_State* tolua_S) int lua_cocos2dx_Node_setScaleZ(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5685,7 +5685,7 @@ int lua_cocos2dx_Node_setScaleZ(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5723,7 +5723,7 @@ int lua_cocos2dx_Node_setScaleZ(lua_State* tolua_S) int lua_cocos2dx_Node_setScaleY(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5735,7 +5735,7 @@ int lua_cocos2dx_Node_setScaleY(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5773,7 +5773,7 @@ int lua_cocos2dx_Node_setScaleY(lua_State* tolua_S) int lua_cocos2dx_Node_setScaleX(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5785,7 +5785,7 @@ int lua_cocos2dx_Node_setScaleX(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5823,7 +5823,7 @@ int lua_cocos2dx_Node_setScaleX(lua_State* tolua_S) int lua_cocos2dx_Node_setRotationSkewX(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5835,7 +5835,7 @@ int lua_cocos2dx_Node_setRotationSkewX(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5873,7 +5873,7 @@ int lua_cocos2dx_Node_setRotationSkewX(lua_State* tolua_S) int lua_cocos2dx_Node_removeAllComponents(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5885,7 +5885,7 @@ int lua_cocos2dx_Node_removeAllComponents(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5920,7 +5920,7 @@ int lua_cocos2dx_Node_removeAllComponents(lua_State* tolua_S) int lua_cocos2dx_Node__setLocalZOrder(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5932,7 +5932,7 @@ int lua_cocos2dx_Node__setLocalZOrder(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5970,7 +5970,7 @@ int lua_cocos2dx_Node__setLocalZOrder(lua_State* tolua_S) int lua_cocos2dx_Node_setCameraMask(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5982,7 +5982,7 @@ int lua_cocos2dx_Node_setCameraMask(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6037,7 +6037,7 @@ int lua_cocos2dx_Node_setCameraMask(lua_State* tolua_S) int lua_cocos2dx_Node_getTag(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6049,7 +6049,7 @@ int lua_cocos2dx_Node_getTag(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6084,7 +6084,7 @@ int lua_cocos2dx_Node_getTag(lua_State* tolua_S) int lua_cocos2dx_Node_initLayer(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6096,7 +6096,7 @@ int lua_cocos2dx_Node_initLayer(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6131,7 +6131,7 @@ int lua_cocos2dx_Node_initLayer(lua_State* tolua_S) int lua_cocos2dx_Node_getNodeToWorldAffineTransform(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6143,7 +6143,7 @@ int lua_cocos2dx_Node_getNodeToWorldAffineTransform(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6161,7 +6161,7 @@ int lua_cocos2dx_Node_getNodeToWorldAffineTransform(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getNodeToWorldAffineTransform'", nullptr); return 0; } - cocos2d::AffineTransform ret = cobj->getNodeToWorldAffineTransform(); + axis::AffineTransform ret = cobj->getNodeToWorldAffineTransform(); affinetransform_to_luaval(tolua_S, ret); return 1; } @@ -6178,7 +6178,7 @@ int lua_cocos2dx_Node_getNodeToWorldAffineTransform(lua_State* tolua_S) int lua_cocos2dx_Node_setProgramStateWithRegistry(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6190,7 +6190,7 @@ int lua_cocos2dx_Node_setProgramStateWithRegistry(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6204,11 +6204,11 @@ int lua_cocos2dx_Node_setProgramStateWithRegistry(lua_State* tolua_S) if (argc == 2) { unsigned int arg0; - cocos2d::Texture2D* arg1; + axis::Texture2D* arg1; ok &= luaval_to_uint32(tolua_S, 2,&arg0, "cc.Node:setProgramStateWithRegistry"); - ok &= luaval_to_object(tolua_S, 3, "cc.Texture2D",&arg1, "cc.Node:setProgramStateWithRegistry"); + ok &= luaval_to_object(tolua_S, 3, "cc.Texture2D",&arg1, "cc.Node:setProgramStateWithRegistry"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setProgramStateWithRegistry'", nullptr); @@ -6231,7 +6231,7 @@ int lua_cocos2dx_Node_setProgramStateWithRegistry(lua_State* tolua_S) int lua_cocos2dx_Node_getNodeToWorldTransform(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6243,7 +6243,7 @@ int lua_cocos2dx_Node_getNodeToWorldTransform(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6261,7 +6261,7 @@ int lua_cocos2dx_Node_getNodeToWorldTransform(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getNodeToWorldTransform'", nullptr); return 0; } - cocos2d::Mat4 ret = cobj->getNodeToWorldTransform(); + axis::Mat4 ret = cobj->getNodeToWorldTransform(); mat4_to_luaval(tolua_S, ret); return 1; } @@ -6278,7 +6278,7 @@ int lua_cocos2dx_Node_getNodeToWorldTransform(lua_State* tolua_S) int lua_cocos2dx_Node_getPosition3D(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6290,7 +6290,7 @@ int lua_cocos2dx_Node_getPosition3D(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6308,7 +6308,7 @@ int lua_cocos2dx_Node_getPosition3D(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getPosition3D'", nullptr); return 0; } - cocos2d::Vec3 ret = cobj->getPosition3D(); + axis::Vec3 ret = cobj->getPosition3D(); vec3_to_luaval(tolua_S, ret); return 1; } @@ -6325,7 +6325,7 @@ int lua_cocos2dx_Node_getPosition3D(lua_State* tolua_S) int lua_cocos2dx_Node_removeChild(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6337,7 +6337,7 @@ int lua_cocos2dx_Node_removeChild(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6350,9 +6350,9 @@ int lua_cocos2dx_Node_removeChild(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Node* arg0; + axis::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Node:removeChild"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Node:removeChild"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_removeChild'", nullptr); @@ -6364,10 +6364,10 @@ int lua_cocos2dx_Node_removeChild(lua_State* tolua_S) } if (argc == 2) { - cocos2d::Node* arg0; + axis::Node* arg0; bool arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Node:removeChild"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Node:removeChild"); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.Node:removeChild"); if(!ok) @@ -6392,7 +6392,7 @@ int lua_cocos2dx_Node_removeChild(lua_State* tolua_S) int lua_cocos2dx_Node_convertToWorldSpace(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6404,7 +6404,7 @@ int lua_cocos2dx_Node_convertToWorldSpace(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6417,7 +6417,7 @@ int lua_cocos2dx_Node_convertToWorldSpace(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Node:convertToWorldSpace"); if(!ok) @@ -6425,7 +6425,7 @@ int lua_cocos2dx_Node_convertToWorldSpace(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_convertToWorldSpace'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->convertToWorldSpace(arg0); + axis::Vec2 ret = cobj->convertToWorldSpace(arg0); vec2_to_luaval(tolua_S, ret); return 1; } @@ -6442,7 +6442,7 @@ int lua_cocos2dx_Node_convertToWorldSpace(lua_State* tolua_S) int lua_cocos2dx_Node_getScene(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6454,7 +6454,7 @@ int lua_cocos2dx_Node_getScene(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6472,8 +6472,8 @@ int lua_cocos2dx_Node_getScene(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getScene'", nullptr); return 0; } - cocos2d::Scene* ret = cobj->getScene(); - object_to_luaval(tolua_S, "cc.Scene",(cocos2d::Scene*)ret); + axis::Scene* ret = cobj->getScene(); + object_to_luaval(tolua_S, "cc.Scene",(axis::Scene*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getScene",argc, 0); @@ -6489,7 +6489,7 @@ int lua_cocos2dx_Node_getScene(lua_State* tolua_S) int lua_cocos2dx_Node_getEventDispatcher(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6501,7 +6501,7 @@ int lua_cocos2dx_Node_getEventDispatcher(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6519,8 +6519,8 @@ int lua_cocos2dx_Node_getEventDispatcher(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getEventDispatcher'", nullptr); return 0; } - cocos2d::EventDispatcher* ret = cobj->getEventDispatcher(); - object_to_luaval(tolua_S, "cc.EventDispatcher",(cocos2d::EventDispatcher*)ret); + axis::EventDispatcher* ret = cobj->getEventDispatcher(); + object_to_luaval(tolua_S, "cc.EventDispatcher",(axis::EventDispatcher*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getEventDispatcher",argc, 0); @@ -6536,7 +6536,7 @@ int lua_cocos2dx_Node_getEventDispatcher(lua_State* tolua_S) int lua_cocos2dx_Node_setSkewX(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6548,7 +6548,7 @@ int lua_cocos2dx_Node_setSkewX(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6586,7 +6586,7 @@ int lua_cocos2dx_Node_setSkewX(lua_State* tolua_S) int lua_cocos2dx_Node_setSkewY(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6598,7 +6598,7 @@ int lua_cocos2dx_Node_setSkewY(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6636,7 +6636,7 @@ int lua_cocos2dx_Node_setSkewY(lua_State* tolua_S) int lua_cocos2dx_Node_setOnEnterCallback(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6648,7 +6648,7 @@ int lua_cocos2dx_Node_setOnEnterCallback(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6690,7 +6690,7 @@ int lua_cocos2dx_Node_setOnEnterCallback(lua_State* tolua_S) int lua_cocos2dx_Node_stopActionsByFlags(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6702,7 +6702,7 @@ int lua_cocos2dx_Node_stopActionsByFlags(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6740,7 +6740,7 @@ int lua_cocos2dx_Node_stopActionsByFlags(lua_State* tolua_S) int lua_cocos2dx_Node_setNormalizedPosition(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6752,7 +6752,7 @@ int lua_cocos2dx_Node_setNormalizedPosition(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6765,7 +6765,7 @@ int lua_cocos2dx_Node_setNormalizedPosition(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Node:setNormalizedPosition"); if(!ok) @@ -6790,7 +6790,7 @@ int lua_cocos2dx_Node_setNormalizedPosition(lua_State* tolua_S) int lua_cocos2dx_Node_convertTouchToNodeSpace(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6802,7 +6802,7 @@ int lua_cocos2dx_Node_convertTouchToNodeSpace(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6815,15 +6815,15 @@ int lua_cocos2dx_Node_convertTouchToNodeSpace(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Touch* arg0; + axis::Touch* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Touch",&arg0, "cc.Node:convertTouchToNodeSpace"); + ok &= luaval_to_object(tolua_S, 2, "cc.Touch",&arg0, "cc.Node:convertTouchToNodeSpace"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_convertTouchToNodeSpace'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->convertTouchToNodeSpace(arg0); + axis::Vec2 ret = cobj->convertTouchToNodeSpace(arg0); vec2_to_luaval(tolua_S, ret); return 1; } @@ -6840,7 +6840,7 @@ int lua_cocos2dx_Node_convertTouchToNodeSpace(lua_State* tolua_S) int lua_cocos2dx_Node_removeAllChildrenWithCleanup(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -6849,7 +6849,7 @@ int lua_cocos2dx_Node_removeAllChildrenWithCleanup(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -6891,7 +6891,7 @@ int lua_cocos2dx_Node_removeAllChildrenWithCleanup(lua_State* tolua_S) int lua_cocos2dx_Node_setOnEnterTransitionDidFinishCallback(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6903,7 +6903,7 @@ int lua_cocos2dx_Node_setOnEnterTransitionDidFinishCallback(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6945,7 +6945,7 @@ int lua_cocos2dx_Node_setOnEnterTransitionDidFinishCallback(lua_State* tolua_S) int lua_cocos2dx_Node_setProgramState(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -6954,7 +6954,7 @@ int lua_cocos2dx_Node_setProgramState(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -6965,8 +6965,8 @@ int lua_cocos2dx_Node_setProgramState(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { - cocos2d::backend::ProgramState* arg0; - ok &= luaval_to_object(tolua_S, 2, "ccb.ProgramState",&arg0, "cc.Node:setProgramState"); + axis::backend::ProgramState* arg0; + ok &= luaval_to_object(tolua_S, 2, "ccb.ProgramState",&arg0, "cc.Node:setProgramState"); if (!ok) { break; } bool ret = cobj->setProgramState(arg0); @@ -6977,8 +6977,8 @@ int lua_cocos2dx_Node_setProgramState(lua_State* tolua_S) ok = true; do{ if (argc == 2) { - cocos2d::backend::ProgramState* arg0; - ok &= luaval_to_object(tolua_S, 2, "ccb.ProgramState",&arg0, "cc.Node:setProgramState"); + axis::backend::ProgramState* arg0; + ok &= luaval_to_object(tolua_S, 2, "ccb.ProgramState",&arg0, "cc.Node:setProgramState"); if (!ok) { break; } bool arg1; @@ -7016,7 +7016,7 @@ int lua_cocos2dx_Node_setProgramState(lua_State* tolua_S) int lua_cocos2dx_Node_getNodeToParentAffineTransform(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -7025,7 +7025,7 @@ int lua_cocos2dx_Node_getNodeToParentAffineTransform(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -7036,11 +7036,11 @@ int lua_cocos2dx_Node_getNodeToParentAffineTransform(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { - cocos2d::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Node:getNodeToParentAffineTransform"); + axis::Node* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Node:getNodeToParentAffineTransform"); if (!ok) { break; } - cocos2d::AffineTransform ret = cobj->getNodeToParentAffineTransform(arg0); + axis::AffineTransform ret = cobj->getNodeToParentAffineTransform(arg0); affinetransform_to_luaval(tolua_S, ret); return 1; } @@ -7048,7 +7048,7 @@ int lua_cocos2dx_Node_getNodeToParentAffineTransform(lua_State* tolua_S) ok = true; do{ if (argc == 0) { - cocos2d::AffineTransform ret = cobj->getNodeToParentAffineTransform(); + axis::AffineTransform ret = cobj->getNodeToParentAffineTransform(); affinetransform_to_luaval(tolua_S, ret); return 1; } @@ -7067,7 +7067,7 @@ int lua_cocos2dx_Node_getNodeToParentAffineTransform(lua_State* tolua_S) int lua_cocos2dx_Node_isCascadeOpacityEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7079,7 +7079,7 @@ int lua_cocos2dx_Node_isCascadeOpacityEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7114,7 +7114,7 @@ int lua_cocos2dx_Node_isCascadeOpacityEnabled(lua_State* tolua_S) int lua_cocos2dx_Node_setParent(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7126,7 +7126,7 @@ int lua_cocos2dx_Node_setParent(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7139,9 +7139,9 @@ int lua_cocos2dx_Node_setParent(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Node* arg0; + axis::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Node:setParent"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Node:setParent"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setParent'", nullptr); @@ -7164,7 +7164,7 @@ int lua_cocos2dx_Node_setParent(lua_State* tolua_S) int lua_cocos2dx_Node_getName(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7176,7 +7176,7 @@ int lua_cocos2dx_Node_getName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7211,7 +7211,7 @@ int lua_cocos2dx_Node_getName(lua_State* tolua_S) int lua_cocos2dx_Node_resume(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7223,7 +7223,7 @@ int lua_cocos2dx_Node_resume(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7258,7 +7258,7 @@ int lua_cocos2dx_Node_resume(lua_State* tolua_S) int lua_cocos2dx_Node_getRotation3D(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7270,7 +7270,7 @@ int lua_cocos2dx_Node_getRotation3D(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7288,7 +7288,7 @@ int lua_cocos2dx_Node_getRotation3D(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getRotation3D'", nullptr); return 0; } - cocos2d::Vec3 ret = cobj->getRotation3D(); + axis::Vec3 ret = cobj->getRotation3D(); vec3_to_luaval(tolua_S, ret); return 1; } @@ -7305,7 +7305,7 @@ int lua_cocos2dx_Node_getRotation3D(lua_State* tolua_S) int lua_cocos2dx_Node_getNodeToParentTransform(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -7314,7 +7314,7 @@ int lua_cocos2dx_Node_getNodeToParentTransform(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -7325,11 +7325,11 @@ int lua_cocos2dx_Node_getNodeToParentTransform(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { - cocos2d::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Node:getNodeToParentTransform"); + axis::Node* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Node:getNodeToParentTransform"); if (!ok) { break; } - cocos2d::Mat4 ret = cobj->getNodeToParentTransform(arg0); + axis::Mat4 ret = cobj->getNodeToParentTransform(arg0); mat4_to_luaval(tolua_S, ret); return 1; } @@ -7337,7 +7337,7 @@ int lua_cocos2dx_Node_getNodeToParentTransform(lua_State* tolua_S) ok = true; do{ if (argc == 0) { - const cocos2d::Mat4& ret = cobj->getNodeToParentTransform(); + const axis::Mat4& ret = cobj->getNodeToParentTransform(); mat4_to_luaval(tolua_S, ret); return 1; } @@ -7356,7 +7356,7 @@ int lua_cocos2dx_Node_getNodeToParentTransform(lua_State* tolua_S) int lua_cocos2dx_Node_convertTouchToNodeSpaceAR(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7368,7 +7368,7 @@ int lua_cocos2dx_Node_convertTouchToNodeSpaceAR(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7381,15 +7381,15 @@ int lua_cocos2dx_Node_convertTouchToNodeSpaceAR(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Touch* arg0; + axis::Touch* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Touch",&arg0, "cc.Node:convertTouchToNodeSpaceAR"); + ok &= luaval_to_object(tolua_S, 2, "cc.Touch",&arg0, "cc.Node:convertTouchToNodeSpaceAR"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_convertTouchToNodeSpaceAR'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->convertTouchToNodeSpaceAR(arg0); + axis::Vec2 ret = cobj->convertTouchToNodeSpaceAR(arg0); vec2_to_luaval(tolua_S, ret); return 1; } @@ -7406,7 +7406,7 @@ int lua_cocos2dx_Node_convertTouchToNodeSpaceAR(lua_State* tolua_S) int lua_cocos2dx_Node_convertToNodeSpace(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7418,7 +7418,7 @@ int lua_cocos2dx_Node_convertToNodeSpace(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7431,7 +7431,7 @@ int lua_cocos2dx_Node_convertToNodeSpace(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Node:convertToNodeSpace"); if(!ok) @@ -7439,7 +7439,7 @@ int lua_cocos2dx_Node_convertToNodeSpace(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_convertToNodeSpace'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->convertToNodeSpace(arg0); + axis::Vec2 ret = cobj->convertToNodeSpace(arg0); vec2_to_luaval(tolua_S, ret); return 1; } @@ -7456,7 +7456,7 @@ int lua_cocos2dx_Node_convertToNodeSpace(lua_State* tolua_S) int lua_cocos2dx_Node_setPositionNormalized(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7468,7 +7468,7 @@ int lua_cocos2dx_Node_setPositionNormalized(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7481,7 +7481,7 @@ int lua_cocos2dx_Node_setPositionNormalized(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Node:setPositionNormalized"); if(!ok) @@ -7506,7 +7506,7 @@ int lua_cocos2dx_Node_setPositionNormalized(lua_State* tolua_S) int lua_cocos2dx_Node_pause(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7518,7 +7518,7 @@ int lua_cocos2dx_Node_pause(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7553,7 +7553,7 @@ int lua_cocos2dx_Node_pause(lua_State* tolua_S) int lua_cocos2dx_Node_applyMaskOnEnter(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7565,7 +7565,7 @@ int lua_cocos2dx_Node_applyMaskOnEnter(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7603,7 +7603,7 @@ int lua_cocos2dx_Node_applyMaskOnEnter(lua_State* tolua_S) int lua_cocos2dx_Node_isOpacityModifyRGB(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7615,7 +7615,7 @@ int lua_cocos2dx_Node_isOpacityModifyRGB(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7650,7 +7650,7 @@ int lua_cocos2dx_Node_isOpacityModifyRGB(lua_State* tolua_S) int lua_cocos2dx_Node_setPosition(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -7659,7 +7659,7 @@ int lua_cocos2dx_Node_setPosition(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -7686,7 +7686,7 @@ int lua_cocos2dx_Node_setPosition(lua_State* tolua_S) ok = true; do{ if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Node:setPosition"); if (!ok) { break; } @@ -7709,7 +7709,7 @@ int lua_cocos2dx_Node_setPosition(lua_State* tolua_S) int lua_cocos2dx_Node_stopActionByTag(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7721,7 +7721,7 @@ int lua_cocos2dx_Node_stopActionByTag(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7759,7 +7759,7 @@ int lua_cocos2dx_Node_stopActionByTag(lua_State* tolua_S) int lua_cocos2dx_Node_reorderChild(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7771,7 +7771,7 @@ int lua_cocos2dx_Node_reorderChild(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7784,10 +7784,10 @@ int lua_cocos2dx_Node_reorderChild(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::Node* arg0; + axis::Node* arg0; int arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Node:reorderChild"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Node:reorderChild"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Node:reorderChild"); if(!ok) @@ -7812,7 +7812,7 @@ int lua_cocos2dx_Node_reorderChild(lua_State* tolua_S) int lua_cocos2dx_Node_setPositionZ(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7824,7 +7824,7 @@ int lua_cocos2dx_Node_setPositionZ(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7862,7 +7862,7 @@ int lua_cocos2dx_Node_setPositionZ(lua_State* tolua_S) int lua_cocos2dx_Node_setRotation3D(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7874,7 +7874,7 @@ int lua_cocos2dx_Node_setRotation3D(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7887,7 +7887,7 @@ int lua_cocos2dx_Node_setRotation3D(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec3 arg0; + axis::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.Node:setRotation3D"); if(!ok) @@ -7912,7 +7912,7 @@ int lua_cocos2dx_Node_setRotation3D(lua_State* tolua_S) int lua_cocos2dx_Node_setPositionX(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7924,7 +7924,7 @@ int lua_cocos2dx_Node_setPositionX(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7962,7 +7962,7 @@ int lua_cocos2dx_Node_setPositionX(lua_State* tolua_S) int lua_cocos2dx_Node_setNodeToParentTransform(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7974,7 +7974,7 @@ int lua_cocos2dx_Node_setNodeToParentTransform(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7987,7 +7987,7 @@ int lua_cocos2dx_Node_setNodeToParentTransform(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Mat4 arg0; + axis::Mat4 arg0; ok &= luaval_to_mat4(tolua_S, 2, &arg0, "cc.Node:setNodeToParentTransform"); if(!ok) @@ -8012,7 +8012,7 @@ int lua_cocos2dx_Node_setNodeToParentTransform(lua_State* tolua_S) int lua_cocos2dx_Node_getAnchorPoint(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8024,7 +8024,7 @@ int lua_cocos2dx_Node_getAnchorPoint(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8042,7 +8042,7 @@ int lua_cocos2dx_Node_getAnchorPoint(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getAnchorPoint'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getAnchorPoint(); + const axis::Vec2& ret = cobj->getAnchorPoint(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -8059,7 +8059,7 @@ int lua_cocos2dx_Node_getAnchorPoint(lua_State* tolua_S) int lua_cocos2dx_Node_getNumberOfRunningActions(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8071,7 +8071,7 @@ int lua_cocos2dx_Node_getNumberOfRunningActions(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8106,7 +8106,7 @@ int lua_cocos2dx_Node_getNumberOfRunningActions(lua_State* tolua_S) int lua_cocos2dx_Node_updateTransform(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8118,7 +8118,7 @@ int lua_cocos2dx_Node_updateTransform(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8153,7 +8153,7 @@ int lua_cocos2dx_Node_updateTransform(lua_State* tolua_S) int lua_cocos2dx_Node_isVisible(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8165,7 +8165,7 @@ int lua_cocos2dx_Node_isVisible(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8200,7 +8200,7 @@ int lua_cocos2dx_Node_isVisible(lua_State* tolua_S) int lua_cocos2dx_Node_getChildrenCount(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8212,7 +8212,7 @@ int lua_cocos2dx_Node_getChildrenCount(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8247,7 +8247,7 @@ int lua_cocos2dx_Node_getChildrenCount(lua_State* tolua_S) int lua_cocos2dx_Node_convertToNodeSpaceAR(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8259,7 +8259,7 @@ int lua_cocos2dx_Node_convertToNodeSpaceAR(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8272,7 +8272,7 @@ int lua_cocos2dx_Node_convertToNodeSpaceAR(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Node:convertToNodeSpaceAR"); if(!ok) @@ -8280,7 +8280,7 @@ int lua_cocos2dx_Node_convertToNodeSpaceAR(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_convertToNodeSpaceAR'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->convertToNodeSpaceAR(arg0); + axis::Vec2 ret = cobj->convertToNodeSpaceAR(arg0); vec2_to_luaval(tolua_S, ret); return 1; } @@ -8297,7 +8297,7 @@ int lua_cocos2dx_Node_convertToNodeSpaceAR(lua_State* tolua_S) int lua_cocos2dx_Node_addComponent(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8309,7 +8309,7 @@ int lua_cocos2dx_Node_addComponent(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8322,9 +8322,9 @@ int lua_cocos2dx_Node_addComponent(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Component* arg0; + axis::Component* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Component",&arg0, "cc.Node:addComponent"); + ok &= luaval_to_object(tolua_S, 2, "cc.Component",&arg0, "cc.Node:addComponent"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_addComponent'", nullptr); @@ -8347,7 +8347,7 @@ int lua_cocos2dx_Node_addComponent(lua_State* tolua_S) int lua_cocos2dx_Node_runAction(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8359,7 +8359,7 @@ int lua_cocos2dx_Node_runAction(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8372,16 +8372,16 @@ int lua_cocos2dx_Node_runAction(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Action* arg0; + axis::Action* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Action",&arg0, "cc.Node:runAction"); + ok &= luaval_to_object(tolua_S, 2, "cc.Action",&arg0, "cc.Node:runAction"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_runAction'", nullptr); return 0; } - cocos2d::Action* ret = cobj->runAction(arg0); - object_to_luaval(tolua_S, "cc.Action",(cocos2d::Action*)ret); + axis::Action* ret = cobj->runAction(arg0); + object_to_luaval(tolua_S, "cc.Action",(axis::Action*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:runAction",argc, 1); @@ -8397,7 +8397,7 @@ int lua_cocos2dx_Node_runAction(lua_State* tolua_S) int lua_cocos2dx_Node_visit(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -8406,7 +8406,7 @@ int lua_cocos2dx_Node_visit(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -8425,11 +8425,11 @@ int lua_cocos2dx_Node_visit(lua_State* tolua_S) ok = true; do{ if (argc == 3) { - cocos2d::Renderer* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Renderer",&arg0, "cc.Node:visit"); + axis::Renderer* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Renderer",&arg0, "cc.Node:visit"); if (!ok) { break; } - cocos2d::Mat4 arg1; + axis::Mat4 arg1; ok &= luaval_to_mat4(tolua_S, 3, &arg1, "cc.Node:visit"); if (!ok) { break; } @@ -8456,7 +8456,7 @@ int lua_cocos2dx_Node_visit(lua_State* tolua_S) int lua_cocos2dx_Node_getRotation(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8468,7 +8468,7 @@ int lua_cocos2dx_Node_getRotation(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8503,7 +8503,7 @@ int lua_cocos2dx_Node_getRotation(lua_State* tolua_S) int lua_cocos2dx_Node_getPhysicsBody(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8515,7 +8515,7 @@ int lua_cocos2dx_Node_getPhysicsBody(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8533,8 +8533,8 @@ int lua_cocos2dx_Node_getPhysicsBody(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getPhysicsBody'", nullptr); return 0; } - cocos2d::PhysicsBody* ret = cobj->getPhysicsBody(); - object_to_luaval(tolua_S, "cc.PhysicsBody",(cocos2d::PhysicsBody*)ret); + axis::PhysicsBody* ret = cobj->getPhysicsBody(); + object_to_luaval(tolua_S, "cc.PhysicsBody",(axis::PhysicsBody*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getPhysicsBody",argc, 0); @@ -8550,7 +8550,7 @@ int lua_cocos2dx_Node_getPhysicsBody(lua_State* tolua_S) int lua_cocos2dx_Node_getAnchorPointInPoints(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8562,7 +8562,7 @@ int lua_cocos2dx_Node_getAnchorPointInPoints(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8580,7 +8580,7 @@ int lua_cocos2dx_Node_getAnchorPointInPoints(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getAnchorPointInPoints'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getAnchorPointInPoints(); + const axis::Vec2& ret = cobj->getAnchorPointInPoints(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -8597,7 +8597,7 @@ int lua_cocos2dx_Node_getAnchorPointInPoints(lua_State* tolua_S) int lua_cocos2dx_Node_removeChildByName(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8609,7 +8609,7 @@ int lua_cocos2dx_Node_removeChildByName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8664,7 +8664,7 @@ int lua_cocos2dx_Node_removeChildByName(lua_State* tolua_S) int lua_cocos2dx_Node_resetChild(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8676,7 +8676,7 @@ int lua_cocos2dx_Node_resetChild(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8689,10 +8689,10 @@ int lua_cocos2dx_Node_resetChild(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::Node* arg0; + axis::Node* arg0; bool arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Node:resetChild"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Node:resetChild"); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.Node:resetChild"); if(!ok) @@ -8717,7 +8717,7 @@ int lua_cocos2dx_Node_resetChild(lua_State* tolua_S) int lua_cocos2dx_Node_setScheduler(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8729,7 +8729,7 @@ int lua_cocos2dx_Node_setScheduler(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8742,9 +8742,9 @@ int lua_cocos2dx_Node_setScheduler(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Scheduler* arg0; + axis::Scheduler* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Scheduler",&arg0, "cc.Node:setScheduler"); + ok &= luaval_to_object(tolua_S, 2, "cc.Scheduler",&arg0, "cc.Node:setScheduler"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setScheduler'", nullptr); @@ -8767,7 +8767,7 @@ int lua_cocos2dx_Node_setScheduler(lua_State* tolua_S) int lua_cocos2dx_Node_stopAllActions(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8779,7 +8779,7 @@ int lua_cocos2dx_Node_stopAllActions(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8814,7 +8814,7 @@ int lua_cocos2dx_Node_stopAllActions(lua_State* tolua_S) int lua_cocos2dx_Node_getSkewX(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8826,7 +8826,7 @@ int lua_cocos2dx_Node_getSkewX(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8861,7 +8861,7 @@ int lua_cocos2dx_Node_getSkewX(lua_State* tolua_S) int lua_cocos2dx_Node_getSkewY(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8873,7 +8873,7 @@ int lua_cocos2dx_Node_getSkewY(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8908,7 +8908,7 @@ int lua_cocos2dx_Node_getSkewY(lua_State* tolua_S) int lua_cocos2dx_Node_getOnEnterTransitionDidFinishCallback(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8920,7 +8920,7 @@ int lua_cocos2dx_Node_getOnEnterTransitionDidFinishCallback(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8955,7 +8955,7 @@ int lua_cocos2dx_Node_getOnEnterTransitionDidFinishCallback(lua_State* tolua_S) int lua_cocos2dx_Node_getDisplayedColor(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8967,7 +8967,7 @@ int lua_cocos2dx_Node_getDisplayedColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8985,7 +8985,7 @@ int lua_cocos2dx_Node_getDisplayedColor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getDisplayedColor'", nullptr); return 0; } - const cocos2d::Color3B& ret = cobj->getDisplayedColor(); + const axis::Color3B& ret = cobj->getDisplayedColor(); color3b_to_luaval(tolua_S, ret); return 1; } @@ -9002,7 +9002,7 @@ int lua_cocos2dx_Node_getDisplayedColor(lua_State* tolua_S) int lua_cocos2dx_Node_getActionByTag(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9014,7 +9014,7 @@ int lua_cocos2dx_Node_getActionByTag(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9035,8 +9035,8 @@ int lua_cocos2dx_Node_getActionByTag(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getActionByTag'", nullptr); return 0; } - cocos2d::Action* ret = cobj->getActionByTag(arg0); - object_to_luaval(tolua_S, "cc.Action",(cocos2d::Action*)ret); + axis::Action* ret = cobj->getActionByTag(arg0); + object_to_luaval(tolua_S, "cc.Action",(axis::Action*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getActionByTag",argc, 1); @@ -9052,7 +9052,7 @@ int lua_cocos2dx_Node_getActionByTag(lua_State* tolua_S) int lua_cocos2dx_Node_setName(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9064,7 +9064,7 @@ int lua_cocos2dx_Node_setName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9102,7 +9102,7 @@ int lua_cocos2dx_Node_setName(lua_State* tolua_S) int lua_cocos2dx_Node_update(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9114,7 +9114,7 @@ int lua_cocos2dx_Node_update(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9152,7 +9152,7 @@ int lua_cocos2dx_Node_update(lua_State* tolua_S) int lua_cocos2dx_Node_getDisplayedOpacity(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9164,7 +9164,7 @@ int lua_cocos2dx_Node_getDisplayedOpacity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9199,7 +9199,7 @@ int lua_cocos2dx_Node_getDisplayedOpacity(lua_State* tolua_S) int lua_cocos2dx_Node_getLocalZOrder(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9211,7 +9211,7 @@ int lua_cocos2dx_Node_getLocalZOrder(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9246,7 +9246,7 @@ int lua_cocos2dx_Node_getLocalZOrder(lua_State* tolua_S) int lua_cocos2dx_Node_getScheduler(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -9255,7 +9255,7 @@ int lua_cocos2dx_Node_getScheduler(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -9266,16 +9266,16 @@ int lua_cocos2dx_Node_getScheduler(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 0) { - const cocos2d::Scheduler* ret = cobj->getScheduler(); - object_to_luaval(tolua_S, "cc.Scheduler",(cocos2d::Scheduler*)ret); + const axis::Scheduler* ret = cobj->getScheduler(); + object_to_luaval(tolua_S, "cc.Scheduler",(axis::Scheduler*)ret); return 1; } }while(0); ok = true; do{ if (argc == 0) { - cocos2d::Scheduler* ret = cobj->getScheduler(); - object_to_luaval(tolua_S, "cc.Scheduler",(cocos2d::Scheduler*)ret); + axis::Scheduler* ret = cobj->getScheduler(); + object_to_luaval(tolua_S, "cc.Scheduler",(axis::Scheduler*)ret); return 1; } }while(0); @@ -9293,7 +9293,7 @@ int lua_cocos2dx_Node_getScheduler(lua_State* tolua_S) int lua_cocos2dx_Node_getParentToNodeAffineTransform(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9305,7 +9305,7 @@ int lua_cocos2dx_Node_getParentToNodeAffineTransform(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9323,7 +9323,7 @@ int lua_cocos2dx_Node_getParentToNodeAffineTransform(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getParentToNodeAffineTransform'", nullptr); return 0; } - cocos2d::AffineTransform ret = cobj->getParentToNodeAffineTransform(); + axis::AffineTransform ret = cobj->getParentToNodeAffineTransform(); affinetransform_to_luaval(tolua_S, ret); return 1; } @@ -9340,7 +9340,7 @@ int lua_cocos2dx_Node_getParentToNodeAffineTransform(lua_State* tolua_S) int lua_cocos2dx_Node_getPositionNormalized(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9352,7 +9352,7 @@ int lua_cocos2dx_Node_getPositionNormalized(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9370,7 +9370,7 @@ int lua_cocos2dx_Node_getPositionNormalized(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getPositionNormalized'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getPositionNormalized(); + const axis::Vec2& ret = cobj->getPositionNormalized(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -9387,7 +9387,7 @@ int lua_cocos2dx_Node_getPositionNormalized(lua_State* tolua_S) int lua_cocos2dx_Node_setColor(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9399,7 +9399,7 @@ int lua_cocos2dx_Node_setColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9412,7 +9412,7 @@ int lua_cocos2dx_Node_setColor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Color3B arg0; + axis::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "cc.Node:setColor"); if(!ok) @@ -9437,7 +9437,7 @@ int lua_cocos2dx_Node_setColor(lua_State* tolua_S) int lua_cocos2dx_Node_isRunning(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9449,7 +9449,7 @@ int lua_cocos2dx_Node_isRunning(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9484,7 +9484,7 @@ int lua_cocos2dx_Node_isRunning(lua_State* tolua_S) int lua_cocos2dx_Node_getParent(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -9493,7 +9493,7 @@ int lua_cocos2dx_Node_getParent(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -9504,16 +9504,16 @@ int lua_cocos2dx_Node_getParent(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 0) { - const cocos2d::Node* ret = cobj->getParent(); - object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + const axis::Node* ret = cobj->getParent(); + object_to_luaval(tolua_S, "cc.Node",(axis::Node*)ret); return 1; } }while(0); ok = true; do{ if (argc == 0) { - cocos2d::Node* ret = cobj->getParent(); - object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + axis::Node* ret = cobj->getParent(); + object_to_luaval(tolua_S, "cc.Node",(axis::Node*)ret); return 1; } }while(0); @@ -9531,7 +9531,7 @@ int lua_cocos2dx_Node_getParent(lua_State* tolua_S) int lua_cocos2dx_Node_getPositionZ(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9543,7 +9543,7 @@ int lua_cocos2dx_Node_getPositionZ(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9578,7 +9578,7 @@ int lua_cocos2dx_Node_getPositionZ(lua_State* tolua_S) int lua_cocos2dx_Node_getPositionY(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9590,7 +9590,7 @@ int lua_cocos2dx_Node_getPositionY(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9625,7 +9625,7 @@ int lua_cocos2dx_Node_getPositionY(lua_State* tolua_S) int lua_cocos2dx_Node_getPositionX(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9637,7 +9637,7 @@ int lua_cocos2dx_Node_getPositionX(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9672,7 +9672,7 @@ int lua_cocos2dx_Node_getPositionX(lua_State* tolua_S) int lua_cocos2dx_Node_removeChildByTag(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9684,7 +9684,7 @@ int lua_cocos2dx_Node_removeChildByTag(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9739,7 +9739,7 @@ int lua_cocos2dx_Node_removeChildByTag(lua_State* tolua_S) int lua_cocos2dx_Node_hitTest(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9751,7 +9751,7 @@ int lua_cocos2dx_Node_hitTest(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9764,7 +9764,7 @@ int lua_cocos2dx_Node_hitTest(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Node:hitTest"); if(!ok) @@ -9789,7 +9789,7 @@ int lua_cocos2dx_Node_hitTest(lua_State* tolua_S) int lua_cocos2dx_Node_setPositionY(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9801,7 +9801,7 @@ int lua_cocos2dx_Node_setPositionY(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9839,7 +9839,7 @@ int lua_cocos2dx_Node_setPositionY(lua_State* tolua_S) int lua_cocos2dx_Node_updateDisplayedColor(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9851,7 +9851,7 @@ int lua_cocos2dx_Node_updateDisplayedColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9864,7 +9864,7 @@ int lua_cocos2dx_Node_updateDisplayedColor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Color3B arg0; + axis::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "cc.Node:updateDisplayedColor"); if(!ok) @@ -9889,7 +9889,7 @@ int lua_cocos2dx_Node_updateDisplayedColor(lua_State* tolua_S) int lua_cocos2dx_Node_setVisible(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9901,7 +9901,7 @@ int lua_cocos2dx_Node_setVisible(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9939,7 +9939,7 @@ int lua_cocos2dx_Node_setVisible(lua_State* tolua_S) int lua_cocos2dx_Node_getParentToNodeTransform(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9951,7 +9951,7 @@ int lua_cocos2dx_Node_getParentToNodeTransform(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9969,7 +9969,7 @@ int lua_cocos2dx_Node_getParentToNodeTransform(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getParentToNodeTransform'", nullptr); return 0; } - const cocos2d::Mat4& ret = cobj->getParentToNodeTransform(); + const axis::Mat4& ret = cobj->getParentToNodeTransform(); mat4_to_luaval(tolua_S, ret); return 1; } @@ -9986,7 +9986,7 @@ int lua_cocos2dx_Node_getParentToNodeTransform(lua_State* tolua_S) int lua_cocos2dx_Node_isScheduled(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9998,7 +9998,7 @@ int lua_cocos2dx_Node_isScheduled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10036,7 +10036,7 @@ int lua_cocos2dx_Node_isScheduled(lua_State* tolua_S) int lua_cocos2dx_Node_setGlobalZOrder(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10048,7 +10048,7 @@ int lua_cocos2dx_Node_setGlobalZOrder(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10086,7 +10086,7 @@ int lua_cocos2dx_Node_setGlobalZOrder(lua_State* tolua_S) int lua_cocos2dx_Node_setScale(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -10095,7 +10095,7 @@ int lua_cocos2dx_Node_setScale(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -10145,7 +10145,7 @@ int lua_cocos2dx_Node_setScale(lua_State* tolua_S) int lua_cocos2dx_Node_getChildByTag(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10157,7 +10157,7 @@ int lua_cocos2dx_Node_getChildByTag(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10178,8 +10178,8 @@ int lua_cocos2dx_Node_getChildByTag(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getChildByTag'", nullptr); return 0; } - cocos2d::Node* ret = cobj->getChildByTag(arg0); - object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + axis::Node* ret = cobj->getChildByTag(arg0); + object_to_luaval(tolua_S, "cc.Node",(axis::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getChildByTag",argc, 1); @@ -10195,7 +10195,7 @@ int lua_cocos2dx_Node_getChildByTag(lua_State* tolua_S) int lua_cocos2dx_Node_getScaleZ(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10207,7 +10207,7 @@ int lua_cocos2dx_Node_getScaleZ(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10242,7 +10242,7 @@ int lua_cocos2dx_Node_getScaleZ(lua_State* tolua_S) int lua_cocos2dx_Node_getScaleY(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10254,7 +10254,7 @@ int lua_cocos2dx_Node_getScaleY(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10289,7 +10289,7 @@ int lua_cocos2dx_Node_getScaleY(lua_State* tolua_S) int lua_cocos2dx_Node_getScaleX(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10301,7 +10301,7 @@ int lua_cocos2dx_Node_getScaleX(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10336,7 +10336,7 @@ int lua_cocos2dx_Node_getScaleX(lua_State* tolua_S) int lua_cocos2dx_Node_setLocalZOrder(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10348,7 +10348,7 @@ int lua_cocos2dx_Node_setLocalZOrder(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10386,7 +10386,7 @@ int lua_cocos2dx_Node_setLocalZOrder(lua_State* tolua_S) int lua_cocos2dx_Node_getWorldToNodeAffineTransform(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10398,7 +10398,7 @@ int lua_cocos2dx_Node_getWorldToNodeAffineTransform(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10416,7 +10416,7 @@ int lua_cocos2dx_Node_getWorldToNodeAffineTransform(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getWorldToNodeAffineTransform'", nullptr); return 0; } - cocos2d::AffineTransform ret = cobj->getWorldToNodeAffineTransform(); + axis::AffineTransform ret = cobj->getWorldToNodeAffineTransform(); affinetransform_to_luaval(tolua_S, ret); return 1; } @@ -10433,7 +10433,7 @@ int lua_cocos2dx_Node_getWorldToNodeAffineTransform(lua_State* tolua_S) int lua_cocos2dx_Node_setCascadeColorEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10445,7 +10445,7 @@ int lua_cocos2dx_Node_setCascadeColorEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10483,7 +10483,7 @@ int lua_cocos2dx_Node_setCascadeColorEnabled(lua_State* tolua_S) int lua_cocos2dx_Node_setOpacity(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10495,7 +10495,7 @@ int lua_cocos2dx_Node_setOpacity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10533,7 +10533,7 @@ int lua_cocos2dx_Node_setOpacity(lua_State* tolua_S) int lua_cocos2dx_Node_cleanup(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10545,7 +10545,7 @@ int lua_cocos2dx_Node_cleanup(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10580,7 +10580,7 @@ int lua_cocos2dx_Node_cleanup(lua_State* tolua_S) int lua_cocos2dx_Node_getComponent(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10592,7 +10592,7 @@ int lua_cocos2dx_Node_getComponent(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10613,8 +10613,8 @@ int lua_cocos2dx_Node_getComponent(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getComponent'", nullptr); return 0; } - cocos2d::Component* ret = cobj->getComponent(arg0); - object_to_luaval(tolua_S, "cc.Component",(cocos2d::Component*)ret); + axis::Component* ret = cobj->getComponent(arg0); + object_to_luaval(tolua_S, "cc.Component",(axis::Component*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getComponent",argc, 1); @@ -10630,7 +10630,7 @@ int lua_cocos2dx_Node_getComponent(lua_State* tolua_S) int lua_cocos2dx_Node_getContentSize(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10642,7 +10642,7 @@ int lua_cocos2dx_Node_getContentSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10660,7 +10660,7 @@ int lua_cocos2dx_Node_getContentSize(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getContentSize'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getContentSize(); + const axis::Vec2& ret = cobj->getContentSize(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -10677,7 +10677,7 @@ int lua_cocos2dx_Node_getContentSize(lua_State* tolua_S) int lua_cocos2dx_Node_stopAllActionsByTag(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10689,7 +10689,7 @@ int lua_cocos2dx_Node_stopAllActionsByTag(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10727,7 +10727,7 @@ int lua_cocos2dx_Node_stopAllActionsByTag(lua_State* tolua_S) int lua_cocos2dx_Node_getColor(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10739,7 +10739,7 @@ int lua_cocos2dx_Node_getColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10757,7 +10757,7 @@ int lua_cocos2dx_Node_getColor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getColor'", nullptr); return 0; } - const cocos2d::Color3B& ret = cobj->getColor(); + const axis::Color3B& ret = cobj->getColor(); color3b_to_luaval(tolua_S, ret); return 1; } @@ -10774,7 +10774,7 @@ int lua_cocos2dx_Node_getColor(lua_State* tolua_S) int lua_cocos2dx_Node_getBoundingBox(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10786,7 +10786,7 @@ int lua_cocos2dx_Node_getBoundingBox(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10804,7 +10804,7 @@ int lua_cocos2dx_Node_getBoundingBox(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getBoundingBox'", nullptr); return 0; } - cocos2d::Rect ret = cobj->getBoundingBox(); + axis::Rect ret = cobj->getBoundingBox(); rect_to_luaval(tolua_S, ret); return 1; } @@ -10821,7 +10821,7 @@ int lua_cocos2dx_Node_getBoundingBox(lua_State* tolua_S) int lua_cocos2dx_Node_setIgnoreAnchorPointForPosition(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10833,7 +10833,7 @@ int lua_cocos2dx_Node_setIgnoreAnchorPointForPosition(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10871,7 +10871,7 @@ int lua_cocos2dx_Node_setIgnoreAnchorPointForPosition(lua_State* tolua_S) int lua_cocos2dx_Node_setEventDispatcher(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10883,7 +10883,7 @@ int lua_cocos2dx_Node_setEventDispatcher(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10896,9 +10896,9 @@ int lua_cocos2dx_Node_setEventDispatcher(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::EventDispatcher* arg0; + axis::EventDispatcher* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.EventDispatcher",&arg0, "cc.Node:setEventDispatcher"); + ok &= luaval_to_object(tolua_S, 2, "cc.EventDispatcher",&arg0, "cc.Node:setEventDispatcher"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setEventDispatcher'", nullptr); @@ -10921,7 +10921,7 @@ int lua_cocos2dx_Node_setEventDispatcher(lua_State* tolua_S) int lua_cocos2dx_Node_getGlobalZOrder(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10933,7 +10933,7 @@ int lua_cocos2dx_Node_getGlobalZOrder(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10968,7 +10968,7 @@ int lua_cocos2dx_Node_getGlobalZOrder(lua_State* tolua_S) int lua_cocos2dx_Node_draw(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -10977,7 +10977,7 @@ int lua_cocos2dx_Node_draw(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -10996,11 +10996,11 @@ int lua_cocos2dx_Node_draw(lua_State* tolua_S) ok = true; do{ if (argc == 3) { - cocos2d::Renderer* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Renderer",&arg0, "cc.Node:draw"); + axis::Renderer* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Renderer",&arg0, "cc.Node:draw"); if (!ok) { break; } - cocos2d::Mat4 arg1; + axis::Mat4 arg1; ok &= luaval_to_mat4(tolua_S, 3, &arg1, "cc.Node:draw"); if (!ok) { break; } @@ -11027,7 +11027,7 @@ int lua_cocos2dx_Node_draw(lua_State* tolua_S) int lua_cocos2dx_Node_setUserObject(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11039,7 +11039,7 @@ int lua_cocos2dx_Node_setUserObject(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11052,9 +11052,9 @@ int lua_cocos2dx_Node_setUserObject(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Ref* arg0; + axis::Ref* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Ref",&arg0, "cc.Node:setUserObject"); + ok &= luaval_to_object(tolua_S, 2, "cc.Ref",&arg0, "cc.Node:setUserObject"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_setUserObject'", nullptr); @@ -11077,7 +11077,7 @@ int lua_cocos2dx_Node_setUserObject(lua_State* tolua_S) int lua_cocos2dx_Node_removeFromParentAndCleanup(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -11086,7 +11086,7 @@ int lua_cocos2dx_Node_removeFromParentAndCleanup(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -11128,7 +11128,7 @@ int lua_cocos2dx_Node_removeFromParentAndCleanup(lua_State* tolua_S) int lua_cocos2dx_Node_setPosition3D(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11140,7 +11140,7 @@ int lua_cocos2dx_Node_setPosition3D(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11153,7 +11153,7 @@ int lua_cocos2dx_Node_setPosition3D(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec3 arg0; + axis::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.Node:setPosition3D"); if(!ok) @@ -11178,7 +11178,7 @@ int lua_cocos2dx_Node_setPosition3D(lua_State* tolua_S) int lua_cocos2dx_Node_getNumberOfRunningActionsByTag(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11190,7 +11190,7 @@ int lua_cocos2dx_Node_getNumberOfRunningActionsByTag(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11228,7 +11228,7 @@ int lua_cocos2dx_Node_getNumberOfRunningActionsByTag(lua_State* tolua_S) int lua_cocos2dx_Node_sortAllChildren(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11240,7 +11240,7 @@ int lua_cocos2dx_Node_sortAllChildren(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11275,7 +11275,7 @@ int lua_cocos2dx_Node_sortAllChildren(lua_State* tolua_S) int lua_cocos2dx_Node_getProgramState(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11287,7 +11287,7 @@ int lua_cocos2dx_Node_getProgramState(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11305,8 +11305,8 @@ int lua_cocos2dx_Node_getProgramState(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getProgramState'", nullptr); return 0; } - cocos2d::backend::ProgramState* ret = cobj->getProgramState(); - object_to_luaval(tolua_S, "ccb.ProgramState",(cocos2d::backend::ProgramState*)ret); + axis::backend::ProgramState* ret = cobj->getProgramState(); + object_to_luaval(tolua_S, "ccb.ProgramState",(axis::backend::ProgramState*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Node:getProgramState",argc, 0); @@ -11322,7 +11322,7 @@ int lua_cocos2dx_Node_getProgramState(lua_State* tolua_S) int lua_cocos2dx_Node_getWorldToNodeTransform(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11334,7 +11334,7 @@ int lua_cocos2dx_Node_getWorldToNodeTransform(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11352,7 +11352,7 @@ int lua_cocos2dx_Node_getWorldToNodeTransform(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getWorldToNodeTransform'", nullptr); return 0; } - cocos2d::Mat4 ret = cobj->getWorldToNodeTransform(); + axis::Mat4 ret = cobj->getWorldToNodeTransform(); mat4_to_luaval(tolua_S, ret); return 1; } @@ -11369,7 +11369,7 @@ int lua_cocos2dx_Node_getWorldToNodeTransform(lua_State* tolua_S) int lua_cocos2dx_Node_getScale(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11381,7 +11381,7 @@ int lua_cocos2dx_Node_getScale(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11416,7 +11416,7 @@ int lua_cocos2dx_Node_getScale(lua_State* tolua_S) int lua_cocos2dx_Node_getOpacity(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11428,7 +11428,7 @@ int lua_cocos2dx_Node_getOpacity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11463,7 +11463,7 @@ int lua_cocos2dx_Node_getOpacity(lua_State* tolua_S) int lua_cocos2dx_Node_updateOrderOfArrival(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11475,7 +11475,7 @@ int lua_cocos2dx_Node_updateOrderOfArrival(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11510,7 +11510,7 @@ int lua_cocos2dx_Node_updateOrderOfArrival(lua_State* tolua_S) int lua_cocos2dx_Node_getNormalizedPosition(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11522,7 +11522,7 @@ int lua_cocos2dx_Node_getNormalizedPosition(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11540,7 +11540,7 @@ int lua_cocos2dx_Node_getNormalizedPosition(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getNormalizedPosition'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getNormalizedPosition(); + const axis::Vec2& ret = cobj->getNormalizedPosition(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -11557,7 +11557,7 @@ int lua_cocos2dx_Node_getNormalizedPosition(lua_State* tolua_S) int lua_cocos2dx_Node_setOnExitTransitionDidStartCallback(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11569,7 +11569,7 @@ int lua_cocos2dx_Node_setOnExitTransitionDidStartCallback(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11611,7 +11611,7 @@ int lua_cocos2dx_Node_setOnExitTransitionDidStartCallback(lua_State* tolua_S) int lua_cocos2dx_Node_getRotationSkewX(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11623,7 +11623,7 @@ int lua_cocos2dx_Node_getRotationSkewX(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11658,7 +11658,7 @@ int lua_cocos2dx_Node_getRotationSkewX(lua_State* tolua_S) int lua_cocos2dx_Node_getRotationSkewY(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11670,7 +11670,7 @@ int lua_cocos2dx_Node_getRotationSkewY(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11705,7 +11705,7 @@ int lua_cocos2dx_Node_getRotationSkewY(lua_State* tolua_S) int lua_cocos2dx_Node_setTag(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11717,7 +11717,7 @@ int lua_cocos2dx_Node_setTag(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11755,7 +11755,7 @@ int lua_cocos2dx_Node_setTag(lua_State* tolua_S) int lua_cocos2dx_Node_isCascadeColorEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11767,7 +11767,7 @@ int lua_cocos2dx_Node_isCascadeColorEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11802,7 +11802,7 @@ int lua_cocos2dx_Node_isCascadeColorEnabled(lua_State* tolua_S) int lua_cocos2dx_Node_stopAction(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11814,7 +11814,7 @@ int lua_cocos2dx_Node_stopAction(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11827,9 +11827,9 @@ int lua_cocos2dx_Node_stopAction(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Action* arg0; + axis::Action* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Action",&arg0, "cc.Node:stopAction"); + ok &= luaval_to_object(tolua_S, 2, "cc.Action",&arg0, "cc.Node:stopAction"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_stopAction'", nullptr); @@ -11852,7 +11852,7 @@ int lua_cocos2dx_Node_stopAction(lua_State* tolua_S) int lua_cocos2dx_Node_getActionManager(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -11861,7 +11861,7 @@ int lua_cocos2dx_Node_getActionManager(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Node",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Node*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -11872,16 +11872,16 @@ int lua_cocos2dx_Node_getActionManager(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 0) { - const cocos2d::ActionManager* ret = cobj->getActionManager(); - object_to_luaval(tolua_S, "cc.ActionManager",(cocos2d::ActionManager*)ret); + const axis::ActionManager* ret = cobj->getActionManager(); + object_to_luaval(tolua_S, "cc.ActionManager",(axis::ActionManager*)ret); return 1; } }while(0); ok = true; do{ if (argc == 0) { - cocos2d::ActionManager* ret = cobj->getActionManager(); - object_to_luaval(tolua_S, "cc.ActionManager",(cocos2d::ActionManager*)ret); + axis::ActionManager* ret = cobj->getActionManager(); + object_to_luaval(tolua_S, "cc.ActionManager",(axis::ActionManager*)ret); return 1; } }while(0); @@ -11918,8 +11918,8 @@ int lua_cocos2dx_Node_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_create'", nullptr); return 0; } - cocos2d::Node* ret = cocos2d::Node::create(); - object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + axis::Node* ret = axis::Node::create(); + object_to_luaval(tolua_S, "cc.Node",(axis::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Node:create",argc, 0); @@ -11952,7 +11952,7 @@ int lua_cocos2dx_Node_getAttachedNodeCount(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_getAttachedNodeCount'", nullptr); return 0; } - int ret = cocos2d::Node::getAttachedNodeCount(); + int ret = axis::Node::getAttachedNodeCount(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } @@ -11967,7 +11967,7 @@ int lua_cocos2dx_Node_getAttachedNodeCount(lua_State* tolua_S) int lua_cocos2dx_Node_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11984,7 +11984,7 @@ int lua_cocos2dx_Node_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Node_constructor'", nullptr); return 0; } - cobj = new cocos2d::Node(); + cobj = new axis::Node(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -12161,7 +12161,7 @@ int lua_register_cocos2dx_Node(lua_State* tolua_S) tolua_function(tolua_S,"create", lua_cocos2dx_Node_create); tolua_function(tolua_S,"getAttachedNodeCount", lua_cocos2dx_Node_getAttachedNodeCount); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Node).name(); // rtti is literal storage + auto typeName = typeid(axis::Node).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Node"; g_typeCast[typeName] = "cc.Node"; return 1; @@ -12170,7 +12170,7 @@ int lua_register_cocos2dx_Node(lua_State* tolua_S) int lua_cocos2dx_Scene_initWithPhysics(lua_State* tolua_S) { int argc = 0; - cocos2d::Scene* cobj = nullptr; + axis::Scene* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12182,7 +12182,7 @@ int lua_cocos2dx_Scene_initWithPhysics(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Scene",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Scene*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Scene*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12217,7 +12217,7 @@ int lua_cocos2dx_Scene_initWithPhysics(lua_State* tolua_S) int lua_cocos2dx_Scene_setCameraOrderDirty(lua_State* tolua_S) { int argc = 0; - cocos2d::Scene* cobj = nullptr; + axis::Scene* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12229,7 +12229,7 @@ int lua_cocos2dx_Scene_setCameraOrderDirty(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Scene",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Scene*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Scene*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12264,7 +12264,7 @@ int lua_cocos2dx_Scene_setCameraOrderDirty(lua_State* tolua_S) int lua_cocos2dx_Scene_render(lua_State* tolua_S) { int argc = 0; - cocos2d::Scene* cobj = nullptr; + axis::Scene* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12276,7 +12276,7 @@ int lua_cocos2dx_Scene_render(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Scene",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Scene*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Scene*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12289,10 +12289,10 @@ int lua_cocos2dx_Scene_render(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::Renderer* arg0; - cocos2d::Mat4 arg1; + axis::Renderer* arg0; + axis::Mat4 arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.Renderer",&arg0, "cc.Scene:render"); + ok &= luaval_to_object(tolua_S, 2, "cc.Renderer",&arg0, "cc.Scene:render"); ok &= luaval_to_mat4(tolua_S, 3, &arg1, "cc.Scene:render"); if(!ok) @@ -12306,15 +12306,15 @@ int lua_cocos2dx_Scene_render(lua_State* tolua_S) } if (argc == 3) { - cocos2d::Renderer* arg0; - cocos2d::Mat4 arg1; - const cocos2d::Mat4* arg2; + axis::Renderer* arg0; + axis::Mat4 arg1; + const axis::Mat4* arg2; - ok &= luaval_to_object(tolua_S, 2, "cc.Renderer",&arg0, "cc.Scene:render"); + ok &= luaval_to_object(tolua_S, 2, "cc.Renderer",&arg0, "cc.Scene:render"); ok &= luaval_to_mat4(tolua_S, 3, &arg1, "cc.Scene:render"); - ok &= luaval_to_object(tolua_S, 4, "cc.Mat4",&arg2, "cc.Scene:render"); + ok &= luaval_to_object(tolua_S, 4, "cc.Mat4",&arg2, "cc.Scene:render"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Scene_render'", nullptr); @@ -12337,7 +12337,7 @@ int lua_cocos2dx_Scene_render(lua_State* tolua_S) int lua_cocos2dx_Scene_stepPhysicsAndNavigation(lua_State* tolua_S) { int argc = 0; - cocos2d::Scene* cobj = nullptr; + axis::Scene* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12349,7 +12349,7 @@ int lua_cocos2dx_Scene_stepPhysicsAndNavigation(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Scene",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Scene*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Scene*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12387,7 +12387,7 @@ int lua_cocos2dx_Scene_stepPhysicsAndNavigation(lua_State* tolua_S) int lua_cocos2dx_Scene_onProjectionChanged(lua_State* tolua_S) { int argc = 0; - cocos2d::Scene* cobj = nullptr; + axis::Scene* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12399,7 +12399,7 @@ int lua_cocos2dx_Scene_onProjectionChanged(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Scene",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Scene*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Scene*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12412,9 +12412,9 @@ int lua_cocos2dx_Scene_onProjectionChanged(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::EventCustom* arg0; + axis::EventCustom* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.EventCustom",&arg0, "cc.Scene:onProjectionChanged"); + ok &= luaval_to_object(tolua_S, 2, "cc.EventCustom",&arg0, "cc.Scene:onProjectionChanged"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Scene_onProjectionChanged'", nullptr); @@ -12437,7 +12437,7 @@ int lua_cocos2dx_Scene_onProjectionChanged(lua_State* tolua_S) int lua_cocos2dx_Scene_getPhysicsWorld(lua_State* tolua_S) { int argc = 0; - cocos2d::Scene* cobj = nullptr; + axis::Scene* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12449,7 +12449,7 @@ int lua_cocos2dx_Scene_getPhysicsWorld(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Scene",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Scene*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Scene*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12467,8 +12467,8 @@ int lua_cocos2dx_Scene_getPhysicsWorld(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Scene_getPhysicsWorld'", nullptr); return 0; } - cocos2d::PhysicsWorld* ret = cobj->getPhysicsWorld(); - object_to_luaval(tolua_S, "cc.PhysicsWorld",(cocos2d::PhysicsWorld*)ret); + axis::PhysicsWorld* ret = cobj->getPhysicsWorld(); + object_to_luaval(tolua_S, "cc.PhysicsWorld",(axis::PhysicsWorld*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Scene:getPhysicsWorld",argc, 0); @@ -12484,7 +12484,7 @@ int lua_cocos2dx_Scene_getPhysicsWorld(lua_State* tolua_S) int lua_cocos2dx_Scene_initPhysicsWorld(lua_State* tolua_S) { int argc = 0; - cocos2d::Scene* cobj = nullptr; + axis::Scene* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12496,7 +12496,7 @@ int lua_cocos2dx_Scene_initPhysicsWorld(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Scene",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Scene*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Scene*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12531,7 +12531,7 @@ int lua_cocos2dx_Scene_initPhysicsWorld(lua_State* tolua_S) int lua_cocos2dx_Scene_initWithSize(lua_State* tolua_S) { int argc = 0; - cocos2d::Scene* cobj = nullptr; + axis::Scene* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12543,7 +12543,7 @@ int lua_cocos2dx_Scene_initWithSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Scene",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Scene*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Scene*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12556,7 +12556,7 @@ int lua_cocos2dx_Scene_initWithSize(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Scene:initWithSize"); if(!ok) @@ -12581,7 +12581,7 @@ int lua_cocos2dx_Scene_initWithSize(lua_State* tolua_S) int lua_cocos2dx_Scene_getDefaultCamera(lua_State* tolua_S) { int argc = 0; - cocos2d::Scene* cobj = nullptr; + axis::Scene* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12593,7 +12593,7 @@ int lua_cocos2dx_Scene_getDefaultCamera(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Scene",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Scene*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Scene*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12611,8 +12611,8 @@ int lua_cocos2dx_Scene_getDefaultCamera(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Scene_getDefaultCamera'", nullptr); return 0; } - cocos2d::Camera* ret = cobj->getDefaultCamera(); - object_to_luaval(tolua_S, "cc.Camera",(cocos2d::Camera*)ret); + axis::Camera* ret = cobj->getDefaultCamera(); + object_to_luaval(tolua_S, "cc.Camera",(axis::Camera*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Scene:getDefaultCamera",argc, 0); @@ -12642,15 +12642,15 @@ int lua_cocos2dx_Scene_createWithSize(lua_State* tolua_S) if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Scene:createWithSize"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Scene_createWithSize'", nullptr); return 0; } - cocos2d::Scene* ret = cocos2d::Scene::createWithSize(arg0); - object_to_luaval(tolua_S, "cc.Scene",(cocos2d::Scene*)ret); + axis::Scene* ret = axis::Scene::createWithSize(arg0); + object_to_luaval(tolua_S, "cc.Scene",(axis::Scene*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Scene:createWithSize",argc, 1); @@ -12683,8 +12683,8 @@ int lua_cocos2dx_Scene_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Scene_create'", nullptr); return 0; } - cocos2d::Scene* ret = cocos2d::Scene::create(); - object_to_luaval(tolua_S, "cc.Scene",(cocos2d::Scene*)ret); + axis::Scene* ret = axis::Scene::create(); + object_to_luaval(tolua_S, "cc.Scene",(axis::Scene*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Scene:create",argc, 0); @@ -12717,8 +12717,8 @@ int lua_cocos2dx_Scene_createWithPhysics(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Scene_createWithPhysics'", nullptr); return 0; } - cocos2d::Scene* ret = cocos2d::Scene::createWithPhysics(); - object_to_luaval(tolua_S, "cc.Scene",(cocos2d::Scene*)ret); + axis::Scene* ret = axis::Scene::createWithPhysics(); + object_to_luaval(tolua_S, "cc.Scene",(axis::Scene*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Scene:createWithPhysics",argc, 0); @@ -12732,7 +12732,7 @@ int lua_cocos2dx_Scene_createWithPhysics(lua_State* tolua_S) int lua_cocos2dx_Scene_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Scene* cobj = nullptr; + axis::Scene* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12749,7 +12749,7 @@ int lua_cocos2dx_Scene_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Scene_constructor'", nullptr); return 0; } - cobj = new cocos2d::Scene(); + cobj = new axis::Scene(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -12792,7 +12792,7 @@ int lua_register_cocos2dx_Scene(lua_State* tolua_S) tolua_function(tolua_S,"create", lua_cocos2dx_Scene_create); tolua_function(tolua_S,"createWithPhysics", lua_cocos2dx_Scene_createWithPhysics); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Scene).name(); // rtti is literal storage + auto typeName = typeid(axis::Scene).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Scene"; g_typeCast[typeName] = "cc.Scene"; return 1; @@ -12801,7 +12801,7 @@ int lua_register_cocos2dx_Scene(lua_State* tolua_S) int lua_cocos2dx_GLView_setFrameSize(lua_State* tolua_S) { int argc = 0; - cocos2d::GLView* cobj = nullptr; + axis::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12813,7 +12813,7 @@ int lua_cocos2dx_GLView_setFrameSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12854,7 +12854,7 @@ int lua_cocos2dx_GLView_setFrameSize(lua_State* tolua_S) int lua_cocos2dx_GLView_getViewPortRect(lua_State* tolua_S) { int argc = 0; - cocos2d::GLView* cobj = nullptr; + axis::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12866,7 +12866,7 @@ int lua_cocos2dx_GLView_getViewPortRect(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12884,7 +12884,7 @@ int lua_cocos2dx_GLView_getViewPortRect(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_getViewPortRect'", nullptr); return 0; } - const cocos2d::Rect& ret = cobj->getViewPortRect(); + const axis::Rect& ret = cobj->getViewPortRect(); rect_to_luaval(tolua_S, ret); return 1; } @@ -12901,7 +12901,7 @@ int lua_cocos2dx_GLView_getViewPortRect(lua_State* tolua_S) int lua_cocos2dx_GLView_getScaleY(lua_State* tolua_S) { int argc = 0; - cocos2d::GLView* cobj = nullptr; + axis::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12913,7 +12913,7 @@ int lua_cocos2dx_GLView_getScaleY(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12948,7 +12948,7 @@ int lua_cocos2dx_GLView_getScaleY(lua_State* tolua_S) int lua_cocos2dx_GLView_setContentScaleFactor(lua_State* tolua_S) { int argc = 0; - cocos2d::GLView* cobj = nullptr; + axis::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12960,7 +12960,7 @@ int lua_cocos2dx_GLView_setContentScaleFactor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12998,7 +12998,7 @@ int lua_cocos2dx_GLView_setContentScaleFactor(lua_State* tolua_S) int lua_cocos2dx_GLView_getContentScaleFactor(lua_State* tolua_S) { int argc = 0; - cocos2d::GLView* cobj = nullptr; + axis::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -13010,7 +13010,7 @@ int lua_cocos2dx_GLView_getContentScaleFactor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -13045,7 +13045,7 @@ int lua_cocos2dx_GLView_getContentScaleFactor(lua_State* tolua_S) int lua_cocos2dx_GLView_setIMEKeyboardState(lua_State* tolua_S) { int argc = 0; - cocos2d::GLView* cobj = nullptr; + axis::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -13057,7 +13057,7 @@ int lua_cocos2dx_GLView_setIMEKeyboardState(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -13095,7 +13095,7 @@ int lua_cocos2dx_GLView_setIMEKeyboardState(lua_State* tolua_S) int lua_cocos2dx_GLView_getSafeAreaRect(lua_State* tolua_S) { int argc = 0; - cocos2d::GLView* cobj = nullptr; + axis::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -13107,7 +13107,7 @@ int lua_cocos2dx_GLView_getSafeAreaRect(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -13125,7 +13125,7 @@ int lua_cocos2dx_GLView_getSafeAreaRect(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_getSafeAreaRect'", nullptr); return 0; } - cocos2d::Rect ret = cobj->getSafeAreaRect(); + axis::Rect ret = cobj->getSafeAreaRect(); rect_to_luaval(tolua_S, ret); return 1; } @@ -13142,7 +13142,7 @@ int lua_cocos2dx_GLView_getSafeAreaRect(lua_State* tolua_S) int lua_cocos2dx_GLView_setScissorInPoints(lua_State* tolua_S) { int argc = 0; - cocos2d::GLView* cobj = nullptr; + axis::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -13154,7 +13154,7 @@ int lua_cocos2dx_GLView_setScissorInPoints(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -13201,7 +13201,7 @@ int lua_cocos2dx_GLView_setScissorInPoints(lua_State* tolua_S) int lua_cocos2dx_GLView_getViewName(lua_State* tolua_S) { int argc = 0; - cocos2d::GLView* cobj = nullptr; + axis::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -13213,7 +13213,7 @@ int lua_cocos2dx_GLView_getViewName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -13248,7 +13248,7 @@ int lua_cocos2dx_GLView_getViewName(lua_State* tolua_S) int lua_cocos2dx_GLView_isOpenGLReady(lua_State* tolua_S) { int argc = 0; - cocos2d::GLView* cobj = nullptr; + axis::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -13260,7 +13260,7 @@ int lua_cocos2dx_GLView_isOpenGLReady(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -13295,7 +13295,7 @@ int lua_cocos2dx_GLView_isOpenGLReady(lua_State* tolua_S) int lua_cocos2dx_GLView_setCursorVisible(lua_State* tolua_S) { int argc = 0; - cocos2d::GLView* cobj = nullptr; + axis::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -13307,7 +13307,7 @@ int lua_cocos2dx_GLView_setCursorVisible(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -13345,7 +13345,7 @@ int lua_cocos2dx_GLView_setCursorVisible(lua_State* tolua_S) int lua_cocos2dx_GLView_getFrameSize(lua_State* tolua_S) { int argc = 0; - cocos2d::GLView* cobj = nullptr; + axis::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -13357,7 +13357,7 @@ int lua_cocos2dx_GLView_getFrameSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -13375,7 +13375,7 @@ int lua_cocos2dx_GLView_getFrameSize(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_getFrameSize'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getFrameSize(); + axis::Vec2 ret = cobj->getFrameSize(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -13392,7 +13392,7 @@ int lua_cocos2dx_GLView_getFrameSize(lua_State* tolua_S) int lua_cocos2dx_GLView_setDefaultIcon(lua_State* tolua_S) { int argc = 0; - cocos2d::GLView* cobj = nullptr; + axis::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -13404,7 +13404,7 @@ int lua_cocos2dx_GLView_setDefaultIcon(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -13439,7 +13439,7 @@ int lua_cocos2dx_GLView_setDefaultIcon(lua_State* tolua_S) int lua_cocos2dx_GLView_getScaleX(lua_State* tolua_S) { int argc = 0; - cocos2d::GLView* cobj = nullptr; + axis::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -13451,7 +13451,7 @@ int lua_cocos2dx_GLView_getScaleX(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -13486,7 +13486,7 @@ int lua_cocos2dx_GLView_getScaleX(lua_State* tolua_S) int lua_cocos2dx_GLView_getVisibleOrigin(lua_State* tolua_S) { int argc = 0; - cocos2d::GLView* cobj = nullptr; + axis::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -13498,7 +13498,7 @@ int lua_cocos2dx_GLView_getVisibleOrigin(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -13516,7 +13516,7 @@ int lua_cocos2dx_GLView_getVisibleOrigin(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_getVisibleOrigin'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getVisibleOrigin(); + axis::Vec2 ret = cobj->getVisibleOrigin(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -13533,7 +13533,7 @@ int lua_cocos2dx_GLView_getVisibleOrigin(lua_State* tolua_S) int lua_cocos2dx_GLView_setFrameZoomFactor(lua_State* tolua_S) { int argc = 0; - cocos2d::GLView* cobj = nullptr; + axis::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -13545,7 +13545,7 @@ int lua_cocos2dx_GLView_setFrameZoomFactor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -13583,7 +13583,7 @@ int lua_cocos2dx_GLView_setFrameZoomFactor(lua_State* tolua_S) int lua_cocos2dx_GLView_getFrameZoomFactor(lua_State* tolua_S) { int argc = 0; - cocos2d::GLView* cobj = nullptr; + axis::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -13595,7 +13595,7 @@ int lua_cocos2dx_GLView_getFrameZoomFactor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -13630,7 +13630,7 @@ int lua_cocos2dx_GLView_getFrameZoomFactor(lua_State* tolua_S) int lua_cocos2dx_GLView_getDesignResolutionSize(lua_State* tolua_S) { int argc = 0; - cocos2d::GLView* cobj = nullptr; + axis::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -13642,7 +13642,7 @@ int lua_cocos2dx_GLView_getDesignResolutionSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -13660,7 +13660,7 @@ int lua_cocos2dx_GLView_getDesignResolutionSize(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_getDesignResolutionSize'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getDesignResolutionSize(); + const axis::Vec2& ret = cobj->getDesignResolutionSize(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -13677,7 +13677,7 @@ int lua_cocos2dx_GLView_getDesignResolutionSize(lua_State* tolua_S) int lua_cocos2dx_GLView_setIcon(lua_State* tolua_S) { int argc = 0; - cocos2d::GLView* cobj = nullptr; + axis::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -13686,7 +13686,7 @@ int lua_cocos2dx_GLView_setIcon(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -13732,7 +13732,7 @@ int lua_cocos2dx_GLView_setIcon(lua_State* tolua_S) int lua_cocos2dx_GLView_windowShouldClose(lua_State* tolua_S) { int argc = 0; - cocos2d::GLView* cobj = nullptr; + axis::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -13744,7 +13744,7 @@ int lua_cocos2dx_GLView_windowShouldClose(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -13779,7 +13779,7 @@ int lua_cocos2dx_GLView_windowShouldClose(lua_State* tolua_S) int lua_cocos2dx_GLView_swapBuffers(lua_State* tolua_S) { int argc = 0; - cocos2d::GLView* cobj = nullptr; + axis::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -13791,7 +13791,7 @@ int lua_cocos2dx_GLView_swapBuffers(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -13826,7 +13826,7 @@ int lua_cocos2dx_GLView_swapBuffers(lua_State* tolua_S) int lua_cocos2dx_GLView_setDesignResolutionSize(lua_State* tolua_S) { int argc = 0; - cocos2d::GLView* cobj = nullptr; + axis::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -13838,7 +13838,7 @@ int lua_cocos2dx_GLView_setDesignResolutionSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -13882,7 +13882,7 @@ int lua_cocos2dx_GLView_setDesignResolutionSize(lua_State* tolua_S) int lua_cocos2dx_GLView_getResolutionPolicy(lua_State* tolua_S) { int argc = 0; - cocos2d::GLView* cobj = nullptr; + axis::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -13894,7 +13894,7 @@ int lua_cocos2dx_GLView_getResolutionPolicy(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -13929,7 +13929,7 @@ int lua_cocos2dx_GLView_getResolutionPolicy(lua_State* tolua_S) int lua_cocos2dx_GLView_end(lua_State* tolua_S) { int argc = 0; - cocos2d::GLView* cobj = nullptr; + axis::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -13941,7 +13941,7 @@ int lua_cocos2dx_GLView_end(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -13976,7 +13976,7 @@ int lua_cocos2dx_GLView_end(lua_State* tolua_S) int lua_cocos2dx_GLView_isRetinaDisplay(lua_State* tolua_S) { int argc = 0; - cocos2d::GLView* cobj = nullptr; + axis::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -13988,7 +13988,7 @@ int lua_cocos2dx_GLView_isRetinaDisplay(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -14023,7 +14023,7 @@ int lua_cocos2dx_GLView_isRetinaDisplay(lua_State* tolua_S) int lua_cocos2dx_GLView_renderScene(lua_State* tolua_S) { int argc = 0; - cocos2d::GLView* cobj = nullptr; + axis::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -14035,7 +14035,7 @@ int lua_cocos2dx_GLView_renderScene(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -14048,12 +14048,12 @@ int lua_cocos2dx_GLView_renderScene(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::Scene* arg0; - cocos2d::Renderer* arg1; + axis::Scene* arg0; + axis::Renderer* arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.Scene",&arg0, "cc.GLView:renderScene"); + ok &= luaval_to_object(tolua_S, 2, "cc.Scene",&arg0, "cc.GLView:renderScene"); - ok &= luaval_to_object(tolua_S, 3, "cc.Renderer",&arg1, "cc.GLView:renderScene"); + ok &= luaval_to_object(tolua_S, 3, "cc.Renderer",&arg1, "cc.GLView:renderScene"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_renderScene'", nullptr); @@ -14076,7 +14076,7 @@ int lua_cocos2dx_GLView_renderScene(lua_State* tolua_S) int lua_cocos2dx_GLView_setViewPortInPoints(lua_State* tolua_S) { int argc = 0; - cocos2d::GLView* cobj = nullptr; + axis::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -14088,7 +14088,7 @@ int lua_cocos2dx_GLView_setViewPortInPoints(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -14135,7 +14135,7 @@ int lua_cocos2dx_GLView_setViewPortInPoints(lua_State* tolua_S) int lua_cocos2dx_GLView_getScissorRect(lua_State* tolua_S) { int argc = 0; - cocos2d::GLView* cobj = nullptr; + axis::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -14147,7 +14147,7 @@ int lua_cocos2dx_GLView_getScissorRect(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -14165,7 +14165,7 @@ int lua_cocos2dx_GLView_getScissorRect(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_getScissorRect'", nullptr); return 0; } - cocos2d::Rect ret = cobj->getScissorRect(); + axis::Rect ret = cobj->getScissorRect(); rect_to_luaval(tolua_S, ret); return 1; } @@ -14182,7 +14182,7 @@ int lua_cocos2dx_GLView_getScissorRect(lua_State* tolua_S) int lua_cocos2dx_GLView_getRetinaFactor(lua_State* tolua_S) { int argc = 0; - cocos2d::GLView* cobj = nullptr; + axis::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -14194,7 +14194,7 @@ int lua_cocos2dx_GLView_getRetinaFactor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -14229,7 +14229,7 @@ int lua_cocos2dx_GLView_getRetinaFactor(lua_State* tolua_S) int lua_cocos2dx_GLView_setViewName(lua_State* tolua_S) { int argc = 0; - cocos2d::GLView* cobj = nullptr; + axis::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -14241,7 +14241,7 @@ int lua_cocos2dx_GLView_setViewName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -14279,7 +14279,7 @@ int lua_cocos2dx_GLView_setViewName(lua_State* tolua_S) int lua_cocos2dx_GLView_getVisibleRect(lua_State* tolua_S) { int argc = 0; - cocos2d::GLView* cobj = nullptr; + axis::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -14291,7 +14291,7 @@ int lua_cocos2dx_GLView_getVisibleRect(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -14309,7 +14309,7 @@ int lua_cocos2dx_GLView_getVisibleRect(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_getVisibleRect'", nullptr); return 0; } - cocos2d::Rect ret = cobj->getVisibleRect(); + axis::Rect ret = cobj->getVisibleRect(); rect_to_luaval(tolua_S, ret); return 1; } @@ -14326,7 +14326,7 @@ int lua_cocos2dx_GLView_getVisibleRect(lua_State* tolua_S) int lua_cocos2dx_GLView_getVisibleSize(lua_State* tolua_S) { int argc = 0; - cocos2d::GLView* cobj = nullptr; + axis::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -14338,7 +14338,7 @@ int lua_cocos2dx_GLView_getVisibleSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -14356,7 +14356,7 @@ int lua_cocos2dx_GLView_getVisibleSize(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_getVisibleSize'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getVisibleSize(); + axis::Vec2 ret = cobj->getVisibleSize(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -14373,7 +14373,7 @@ int lua_cocos2dx_GLView_getVisibleSize(lua_State* tolua_S) int lua_cocos2dx_GLView_isScissorEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::GLView* cobj = nullptr; + axis::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -14385,7 +14385,7 @@ int lua_cocos2dx_GLView_isScissorEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -14420,7 +14420,7 @@ int lua_cocos2dx_GLView_isScissorEnabled(lua_State* tolua_S) int lua_cocos2dx_GLView_pollEvents(lua_State* tolua_S) { int argc = 0; - cocos2d::GLView* cobj = nullptr; + axis::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -14432,7 +14432,7 @@ int lua_cocos2dx_GLView_pollEvents(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GLView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GLView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -14489,7 +14489,7 @@ int lua_cocos2dx_GLView_setGLContextAttrs(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_setGLContextAttrs'", nullptr); return 0; } - cocos2d::GLView::setGLContextAttrs(arg0); + axis::GLView::setGLContextAttrs(arg0); lua_settop(tolua_S, 1); return 1; } @@ -14523,7 +14523,7 @@ int lua_cocos2dx_GLView_getGLContextAttrs(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLView_getGLContextAttrs'", nullptr); return 0; } - GLContextAttrs ret = cocos2d::GLView::getGLContextAttrs(); + GLContextAttrs ret = axis::GLView::getGLContextAttrs(); #pragma warning NO CONVERSION FROM NATIVE FOR GLContextAttrs; return 1; } @@ -14584,7 +14584,7 @@ int lua_register_cocos2dx_GLView(lua_State* tolua_S) tolua_function(tolua_S,"setGLContextAttrs", lua_cocos2dx_GLView_setGLContextAttrs); tolua_function(tolua_S,"getGLContextAttrs", lua_cocos2dx_GLView_getGLContextAttrs); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::GLView).name(); // rtti is literal storage + auto typeName = typeid(axis::GLView).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.GLView"; g_typeCast[typeName] = "cc.GLView"; return 1; @@ -14593,7 +14593,7 @@ int lua_register_cocos2dx_GLView(lua_State* tolua_S) int lua_cocos2dx_Director_pause(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -14605,7 +14605,7 @@ int lua_cocos2dx_Director_pause(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -14640,7 +14640,7 @@ int lua_cocos2dx_Director_pause(lua_State* tolua_S) int lua_cocos2dx_Director_setEventDispatcher(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -14652,7 +14652,7 @@ int lua_cocos2dx_Director_setEventDispatcher(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -14665,9 +14665,9 @@ int lua_cocos2dx_Director_setEventDispatcher(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::EventDispatcher* arg0; + axis::EventDispatcher* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.EventDispatcher",&arg0, "cc.Director:setEventDispatcher"); + ok &= luaval_to_object(tolua_S, 2, "cc.EventDispatcher",&arg0, "cc.Director:setEventDispatcher"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_setEventDispatcher'", nullptr); @@ -14690,7 +14690,7 @@ int lua_cocos2dx_Director_setEventDispatcher(lua_State* tolua_S) int lua_cocos2dx_Director_setContentScaleFactor(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -14702,7 +14702,7 @@ int lua_cocos2dx_Director_setContentScaleFactor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -14740,7 +14740,7 @@ int lua_cocos2dx_Director_setContentScaleFactor(lua_State* tolua_S) int lua_cocos2dx_Director_getDeltaTime(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -14752,7 +14752,7 @@ int lua_cocos2dx_Director_getDeltaTime(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -14787,7 +14787,7 @@ int lua_cocos2dx_Director_getDeltaTime(lua_State* tolua_S) int lua_cocos2dx_Director_setStatsDisplay(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -14799,7 +14799,7 @@ int lua_cocos2dx_Director_setStatsDisplay(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -14837,7 +14837,7 @@ int lua_cocos2dx_Director_setStatsDisplay(lua_State* tolua_S) int lua_cocos2dx_Director_getContentScaleFactor(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -14849,7 +14849,7 @@ int lua_cocos2dx_Director_getContentScaleFactor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -14884,7 +14884,7 @@ int lua_cocos2dx_Director_getContentScaleFactor(lua_State* tolua_S) int lua_cocos2dx_Director_getWinSizeInPixels(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -14896,7 +14896,7 @@ int lua_cocos2dx_Director_getWinSizeInPixels(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -14914,7 +14914,7 @@ int lua_cocos2dx_Director_getWinSizeInPixels(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_getWinSizeInPixels'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getWinSizeInPixels(); + axis::Vec2 ret = cobj->getWinSizeInPixels(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -14931,7 +14931,7 @@ int lua_cocos2dx_Director_getWinSizeInPixels(lua_State* tolua_S) int lua_cocos2dx_Director_getSafeAreaRect(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -14943,7 +14943,7 @@ int lua_cocos2dx_Director_getSafeAreaRect(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -14961,7 +14961,7 @@ int lua_cocos2dx_Director_getSafeAreaRect(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_getSafeAreaRect'", nullptr); return 0; } - cocos2d::Rect ret = cobj->getSafeAreaRect(); + axis::Rect ret = cobj->getSafeAreaRect(); rect_to_luaval(tolua_S, ret); return 1; } @@ -14978,7 +14978,7 @@ int lua_cocos2dx_Director_getSafeAreaRect(lua_State* tolua_S) int lua_cocos2dx_Director_setGLDefaultValues(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -14990,7 +14990,7 @@ int lua_cocos2dx_Director_setGLDefaultValues(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -15025,7 +15025,7 @@ int lua_cocos2dx_Director_setGLDefaultValues(lua_State* tolua_S) int lua_cocos2dx_Director_setActionManager(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -15037,7 +15037,7 @@ int lua_cocos2dx_Director_setActionManager(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -15050,9 +15050,9 @@ int lua_cocos2dx_Director_setActionManager(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ActionManager* arg0; + axis::ActionManager* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionManager",&arg0, "cc.Director:setActionManager"); + ok &= luaval_to_object(tolua_S, 2, "cc.ActionManager",&arg0, "cc.Director:setActionManager"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_setActionManager'", nullptr); @@ -15075,7 +15075,7 @@ int lua_cocos2dx_Director_setActionManager(lua_State* tolua_S) int lua_cocos2dx_Director_popToRootScene(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -15087,7 +15087,7 @@ int lua_cocos2dx_Director_popToRootScene(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -15122,7 +15122,7 @@ int lua_cocos2dx_Director_popToRootScene(lua_State* tolua_S) int lua_cocos2dx_Director_loadMatrix(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -15134,7 +15134,7 @@ int lua_cocos2dx_Director_loadMatrix(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -15147,8 +15147,8 @@ int lua_cocos2dx_Director_loadMatrix(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::MATRIX_STACK_TYPE arg0; - cocos2d::Mat4 arg1; + axis::MATRIX_STACK_TYPE arg0; + axis::Mat4 arg1; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Director:loadMatrix"); @@ -15175,7 +15175,7 @@ int lua_cocos2dx_Director_loadMatrix(lua_State* tolua_S) int lua_cocos2dx_Director_getNotificationNode(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -15187,7 +15187,7 @@ int lua_cocos2dx_Director_getNotificationNode(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -15205,8 +15205,8 @@ int lua_cocos2dx_Director_getNotificationNode(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_getNotificationNode'", nullptr); return 0; } - cocos2d::Node* ret = cobj->getNotificationNode(); - object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + axis::Node* ret = cobj->getNotificationNode(); + object_to_luaval(tolua_S, "cc.Node",(axis::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getNotificationNode",argc, 0); @@ -15222,7 +15222,7 @@ int lua_cocos2dx_Director_getNotificationNode(lua_State* tolua_S) int lua_cocos2dx_Director_getWinSize(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -15234,7 +15234,7 @@ int lua_cocos2dx_Director_getWinSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -15252,7 +15252,7 @@ int lua_cocos2dx_Director_getWinSize(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_getWinSize'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getWinSize(); + const axis::Vec2& ret = cobj->getWinSize(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -15269,7 +15269,7 @@ int lua_cocos2dx_Director_getWinSize(lua_State* tolua_S) int lua_cocos2dx_Director_getTextureCache(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -15281,7 +15281,7 @@ int lua_cocos2dx_Director_getTextureCache(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -15299,8 +15299,8 @@ int lua_cocos2dx_Director_getTextureCache(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_getTextureCache'", nullptr); return 0; } - cocos2d::TextureCache* ret = cobj->getTextureCache(); - object_to_luaval(tolua_S, "cc.TextureCache",(cocos2d::TextureCache*)ret); + axis::TextureCache* ret = cobj->getTextureCache(); + object_to_luaval(tolua_S, "cc.TextureCache",(axis::TextureCache*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getTextureCache",argc, 0); @@ -15316,7 +15316,7 @@ int lua_cocos2dx_Director_getTextureCache(lua_State* tolua_S) int lua_cocos2dx_Director_isSendCleanupToScene(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -15328,7 +15328,7 @@ int lua_cocos2dx_Director_isSendCleanupToScene(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -15363,7 +15363,7 @@ int lua_cocos2dx_Director_isSendCleanupToScene(lua_State* tolua_S) int lua_cocos2dx_Director_getVisibleOrigin(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -15375,7 +15375,7 @@ int lua_cocos2dx_Director_getVisibleOrigin(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -15393,7 +15393,7 @@ int lua_cocos2dx_Director_getVisibleOrigin(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_getVisibleOrigin'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getVisibleOrigin(); + axis::Vec2 ret = cobj->getVisibleOrigin(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -15410,7 +15410,7 @@ int lua_cocos2dx_Director_getVisibleOrigin(lua_State* tolua_S) int lua_cocos2dx_Director_mainLoop(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -15419,7 +15419,7 @@ int lua_cocos2dx_Director_mainLoop(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -15461,7 +15461,7 @@ int lua_cocos2dx_Director_mainLoop(lua_State* tolua_S) int lua_cocos2dx_Director_getFrameRate(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -15473,7 +15473,7 @@ int lua_cocos2dx_Director_getFrameRate(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -15508,7 +15508,7 @@ int lua_cocos2dx_Director_getFrameRate(lua_State* tolua_S) int lua_cocos2dx_Director_getSecondsPerFrame(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -15520,7 +15520,7 @@ int lua_cocos2dx_Director_getSecondsPerFrame(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -15555,7 +15555,7 @@ int lua_cocos2dx_Director_getSecondsPerFrame(lua_State* tolua_S) int lua_cocos2dx_Director_resetMatrixStack(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -15567,7 +15567,7 @@ int lua_cocos2dx_Director_resetMatrixStack(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -15602,7 +15602,7 @@ int lua_cocos2dx_Director_resetMatrixStack(lua_State* tolua_S) int lua_cocos2dx_Director_convertToUI(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -15614,7 +15614,7 @@ int lua_cocos2dx_Director_convertToUI(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -15627,7 +15627,7 @@ int lua_cocos2dx_Director_convertToUI(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Director:convertToUI"); if(!ok) @@ -15635,7 +15635,7 @@ int lua_cocos2dx_Director_convertToUI(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_convertToUI'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->convertToUI(arg0); + axis::Vec2 ret = cobj->convertToUI(arg0); vec2_to_luaval(tolua_S, ret); return 1; } @@ -15652,7 +15652,7 @@ int lua_cocos2dx_Director_convertToUI(lua_State* tolua_S) int lua_cocos2dx_Director_pushMatrix(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -15664,7 +15664,7 @@ int lua_cocos2dx_Director_pushMatrix(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -15677,7 +15677,7 @@ int lua_cocos2dx_Director_pushMatrix(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::MATRIX_STACK_TYPE arg0; + axis::MATRIX_STACK_TYPE arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Director:pushMatrix"); if(!ok) @@ -15702,7 +15702,7 @@ int lua_cocos2dx_Director_pushMatrix(lua_State* tolua_S) int lua_cocos2dx_Director_setDefaultValues(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -15714,7 +15714,7 @@ int lua_cocos2dx_Director_setDefaultValues(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -15749,7 +15749,7 @@ int lua_cocos2dx_Director_setDefaultValues(lua_State* tolua_S) int lua_cocos2dx_Director_init(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -15761,7 +15761,7 @@ int lua_cocos2dx_Director_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -15796,7 +15796,7 @@ int lua_cocos2dx_Director_init(lua_State* tolua_S) int lua_cocos2dx_Director_setScheduler(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -15808,7 +15808,7 @@ int lua_cocos2dx_Director_setScheduler(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -15821,9 +15821,9 @@ int lua_cocos2dx_Director_setScheduler(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Scheduler* arg0; + axis::Scheduler* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Scheduler",&arg0, "cc.Director:setScheduler"); + ok &= luaval_to_object(tolua_S, 2, "cc.Scheduler",&arg0, "cc.Director:setScheduler"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_setScheduler'", nullptr); @@ -15846,7 +15846,7 @@ int lua_cocos2dx_Director_setScheduler(lua_State* tolua_S) int lua_cocos2dx_Director_getMatrix(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -15858,7 +15858,7 @@ int lua_cocos2dx_Director_getMatrix(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -15871,7 +15871,7 @@ int lua_cocos2dx_Director_getMatrix(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::MATRIX_STACK_TYPE arg0; + axis::MATRIX_STACK_TYPE arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Director:getMatrix"); if(!ok) @@ -15879,7 +15879,7 @@ int lua_cocos2dx_Director_getMatrix(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_getMatrix'", nullptr); return 0; } - const cocos2d::Mat4& ret = cobj->getMatrix(arg0); + const axis::Mat4& ret = cobj->getMatrix(arg0); mat4_to_luaval(tolua_S, ret); return 1; } @@ -15896,7 +15896,7 @@ int lua_cocos2dx_Director_getMatrix(lua_State* tolua_S) int lua_cocos2dx_Director_isValid(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -15908,7 +15908,7 @@ int lua_cocos2dx_Director_isValid(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -15943,7 +15943,7 @@ int lua_cocos2dx_Director_isValid(lua_State* tolua_S) int lua_cocos2dx_Director_getOpenGLView(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -15955,7 +15955,7 @@ int lua_cocos2dx_Director_getOpenGLView(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -15973,8 +15973,8 @@ int lua_cocos2dx_Director_getOpenGLView(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_getOpenGLView'", nullptr); return 0; } - cocos2d::GLView* ret = cobj->getOpenGLView(); - object_to_luaval(tolua_S, "cc.GLView",(cocos2d::GLView*)ret); + axis::GLView* ret = cobj->getOpenGLView(); + object_to_luaval(tolua_S, "cc.GLView",(axis::GLView*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getOpenGLView",argc, 0); @@ -15990,7 +15990,7 @@ int lua_cocos2dx_Director_getOpenGLView(lua_State* tolua_S) int lua_cocos2dx_Director_getRunningScene(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -16002,7 +16002,7 @@ int lua_cocos2dx_Director_getRunningScene(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -16020,8 +16020,8 @@ int lua_cocos2dx_Director_getRunningScene(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_getRunningScene'", nullptr); return 0; } - cocos2d::Scene* ret = cobj->getRunningScene(); - object_to_luaval(tolua_S, "cc.Scene",(cocos2d::Scene*)ret); + axis::Scene* ret = cobj->getRunningScene(); + object_to_luaval(tolua_S, "cc.Scene",(axis::Scene*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getRunningScene",argc, 0); @@ -16037,7 +16037,7 @@ int lua_cocos2dx_Director_getRunningScene(lua_State* tolua_S) int lua_cocos2dx_Director_setViewport(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -16049,7 +16049,7 @@ int lua_cocos2dx_Director_setViewport(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -16084,7 +16084,7 @@ int lua_cocos2dx_Director_setViewport(lua_State* tolua_S) int lua_cocos2dx_Director_stopAnimation(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -16096,7 +16096,7 @@ int lua_cocos2dx_Director_stopAnimation(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -16131,7 +16131,7 @@ int lua_cocos2dx_Director_stopAnimation(lua_State* tolua_S) int lua_cocos2dx_Director_popToSceneStackLevel(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -16143,7 +16143,7 @@ int lua_cocos2dx_Director_popToSceneStackLevel(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -16181,7 +16181,7 @@ int lua_cocos2dx_Director_popToSceneStackLevel(lua_State* tolua_S) int lua_cocos2dx_Director_resume(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -16193,7 +16193,7 @@ int lua_cocos2dx_Director_resume(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -16228,7 +16228,7 @@ int lua_cocos2dx_Director_resume(lua_State* tolua_S) int lua_cocos2dx_Director_isNextDeltaTimeZero(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -16240,7 +16240,7 @@ int lua_cocos2dx_Director_isNextDeltaTimeZero(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -16275,7 +16275,7 @@ int lua_cocos2dx_Director_isNextDeltaTimeZero(lua_State* tolua_S) int lua_cocos2dx_Director_isChildrenIndexerEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -16287,7 +16287,7 @@ int lua_cocos2dx_Director_isChildrenIndexerEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -16322,7 +16322,7 @@ int lua_cocos2dx_Director_isChildrenIndexerEnabled(lua_State* tolua_S) int lua_cocos2dx_Director_setClearColor(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -16334,7 +16334,7 @@ int lua_cocos2dx_Director_setClearColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -16347,7 +16347,7 @@ int lua_cocos2dx_Director_setClearColor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Color4F arg0; + axis::Color4F arg0; ok &=luaval_to_color4f(tolua_S, 2, &arg0, "cc.Director:setClearColor"); if(!ok) @@ -16372,7 +16372,7 @@ int lua_cocos2dx_Director_setClearColor(lua_State* tolua_S) int lua_cocos2dx_Director_end(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -16384,7 +16384,7 @@ int lua_cocos2dx_Director_end(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -16419,7 +16419,7 @@ int lua_cocos2dx_Director_end(lua_State* tolua_S) int lua_cocos2dx_Director_setOpenGLView(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -16431,7 +16431,7 @@ int lua_cocos2dx_Director_setOpenGLView(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -16444,9 +16444,9 @@ int lua_cocos2dx_Director_setOpenGLView(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::GLView* arg0; + axis::GLView* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.GLView",&arg0, "cc.Director:setOpenGLView"); + ok &= luaval_to_object(tolua_S, 2, "cc.GLView",&arg0, "cc.Director:setOpenGLView"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_setOpenGLView'", nullptr); @@ -16469,7 +16469,7 @@ int lua_cocos2dx_Director_setOpenGLView(lua_State* tolua_S) int lua_cocos2dx_Director_convertToGL(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -16481,7 +16481,7 @@ int lua_cocos2dx_Director_convertToGL(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -16494,7 +16494,7 @@ int lua_cocos2dx_Director_convertToGL(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Director:convertToGL"); if(!ok) @@ -16502,7 +16502,7 @@ int lua_cocos2dx_Director_convertToGL(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_convertToGL'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->convertToGL(arg0); + axis::Vec2 ret = cobj->convertToGL(arg0); vec2_to_luaval(tolua_S, ret); return 1; } @@ -16519,7 +16519,7 @@ int lua_cocos2dx_Director_convertToGL(lua_State* tolua_S) int lua_cocos2dx_Director_getRenderer(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -16531,7 +16531,7 @@ int lua_cocos2dx_Director_getRenderer(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -16549,8 +16549,8 @@ int lua_cocos2dx_Director_getRenderer(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_getRenderer'", nullptr); return 0; } - cocos2d::Renderer* ret = cobj->getRenderer(); - object_to_luaval(tolua_S, "cc.Renderer",(cocos2d::Renderer*)ret); + axis::Renderer* ret = cobj->getRenderer(); + object_to_luaval(tolua_S, "cc.Renderer",(axis::Renderer*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getRenderer",argc, 0); @@ -16566,7 +16566,7 @@ int lua_cocos2dx_Director_getRenderer(lua_State* tolua_S) int lua_cocos2dx_Director_getTotalFrames(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -16578,7 +16578,7 @@ int lua_cocos2dx_Director_getTotalFrames(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -16613,7 +16613,7 @@ int lua_cocos2dx_Director_getTotalFrames(lua_State* tolua_S) int lua_cocos2dx_Director_runWithScene(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -16625,7 +16625,7 @@ int lua_cocos2dx_Director_runWithScene(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -16638,9 +16638,9 @@ int lua_cocos2dx_Director_runWithScene(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Scene* arg0; + axis::Scene* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Scene",&arg0, "cc.Director:runWithScene"); + ok &= luaval_to_object(tolua_S, 2, "cc.Scene",&arg0, "cc.Director:runWithScene"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_runWithScene'", nullptr); @@ -16663,7 +16663,7 @@ int lua_cocos2dx_Director_runWithScene(lua_State* tolua_S) int lua_cocos2dx_Director_setNotificationNode(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -16675,7 +16675,7 @@ int lua_cocos2dx_Director_setNotificationNode(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -16688,9 +16688,9 @@ int lua_cocos2dx_Director_setNotificationNode(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Node* arg0; + axis::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Director:setNotificationNode"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Director:setNotificationNode"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_setNotificationNode'", nullptr); @@ -16713,7 +16713,7 @@ int lua_cocos2dx_Director_setNotificationNode(lua_State* tolua_S) int lua_cocos2dx_Director_isStatsDisplay(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -16725,7 +16725,7 @@ int lua_cocos2dx_Director_isStatsDisplay(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -16760,7 +16760,7 @@ int lua_cocos2dx_Director_isStatsDisplay(lua_State* tolua_S) int lua_cocos2dx_Director_setChildrenIndexerEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -16772,7 +16772,7 @@ int lua_cocos2dx_Director_setChildrenIndexerEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -16810,7 +16810,7 @@ int lua_cocos2dx_Director_setChildrenIndexerEnabled(lua_State* tolua_S) int lua_cocos2dx_Director_drawScene(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -16822,7 +16822,7 @@ int lua_cocos2dx_Director_drawScene(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -16857,7 +16857,7 @@ int lua_cocos2dx_Director_drawScene(lua_State* tolua_S) int lua_cocos2dx_Director_restart(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -16869,7 +16869,7 @@ int lua_cocos2dx_Director_restart(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -16904,7 +16904,7 @@ int lua_cocos2dx_Director_restart(lua_State* tolua_S) int lua_cocos2dx_Director_popScene(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -16916,7 +16916,7 @@ int lua_cocos2dx_Director_popScene(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -16951,7 +16951,7 @@ int lua_cocos2dx_Director_popScene(lua_State* tolua_S) int lua_cocos2dx_Director_loadIdentityMatrix(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -16963,7 +16963,7 @@ int lua_cocos2dx_Director_loadIdentityMatrix(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -16976,7 +16976,7 @@ int lua_cocos2dx_Director_loadIdentityMatrix(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::MATRIX_STACK_TYPE arg0; + axis::MATRIX_STACK_TYPE arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Director:loadIdentityMatrix"); if(!ok) @@ -17001,7 +17001,7 @@ int lua_cocos2dx_Director_loadIdentityMatrix(lua_State* tolua_S) int lua_cocos2dx_Director_startAnimation(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -17013,7 +17013,7 @@ int lua_cocos2dx_Director_startAnimation(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -17048,7 +17048,7 @@ int lua_cocos2dx_Director_startAnimation(lua_State* tolua_S) int lua_cocos2dx_Director_setProjection(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -17060,7 +17060,7 @@ int lua_cocos2dx_Director_setProjection(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -17073,7 +17073,7 @@ int lua_cocos2dx_Director_setProjection(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Director::Projection arg0; + axis::Director::Projection arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Director:setProjection"); if(!ok) @@ -17098,7 +17098,7 @@ int lua_cocos2dx_Director_setProjection(lua_State* tolua_S) int lua_cocos2dx_Director_getConsole(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -17110,7 +17110,7 @@ int lua_cocos2dx_Director_getConsole(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -17128,8 +17128,8 @@ int lua_cocos2dx_Director_getConsole(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_getConsole'", nullptr); return 0; } - cocos2d::Console* ret = cobj->getConsole(); - object_to_luaval(tolua_S, "cc.Console",(cocos2d::Console*)ret); + axis::Console* ret = cobj->getConsole(); + object_to_luaval(tolua_S, "cc.Console",(axis::Console*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getConsole",argc, 0); @@ -17145,7 +17145,7 @@ int lua_cocos2dx_Director_getConsole(lua_State* tolua_S) int lua_cocos2dx_Director_multiplyMatrix(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -17157,7 +17157,7 @@ int lua_cocos2dx_Director_multiplyMatrix(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -17170,8 +17170,8 @@ int lua_cocos2dx_Director_multiplyMatrix(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::MATRIX_STACK_TYPE arg0; - cocos2d::Mat4 arg1; + axis::MATRIX_STACK_TYPE arg0; + axis::Mat4 arg1; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Director:multiplyMatrix"); @@ -17198,7 +17198,7 @@ int lua_cocos2dx_Director_multiplyMatrix(lua_State* tolua_S) int lua_cocos2dx_Director_getZEye(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -17210,7 +17210,7 @@ int lua_cocos2dx_Director_getZEye(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -17245,7 +17245,7 @@ int lua_cocos2dx_Director_getZEye(lua_State* tolua_S) int lua_cocos2dx_Director_setNextDeltaTimeZero(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -17257,7 +17257,7 @@ int lua_cocos2dx_Director_setNextDeltaTimeZero(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -17295,7 +17295,7 @@ int lua_cocos2dx_Director_setNextDeltaTimeZero(lua_State* tolua_S) int lua_cocos2dx_Director_popMatrix(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -17307,7 +17307,7 @@ int lua_cocos2dx_Director_popMatrix(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -17320,7 +17320,7 @@ int lua_cocos2dx_Director_popMatrix(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::MATRIX_STACK_TYPE arg0; + axis::MATRIX_STACK_TYPE arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Director:popMatrix"); if(!ok) @@ -17345,7 +17345,7 @@ int lua_cocos2dx_Director_popMatrix(lua_State* tolua_S) int lua_cocos2dx_Director_getVisibleSize(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -17357,7 +17357,7 @@ int lua_cocos2dx_Director_getVisibleSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -17375,7 +17375,7 @@ int lua_cocos2dx_Director_getVisibleSize(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_getVisibleSize'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getVisibleSize(); + axis::Vec2 ret = cobj->getVisibleSize(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -17392,7 +17392,7 @@ int lua_cocos2dx_Director_getVisibleSize(lua_State* tolua_S) int lua_cocos2dx_Director_getScheduler(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -17404,7 +17404,7 @@ int lua_cocos2dx_Director_getScheduler(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -17422,8 +17422,8 @@ int lua_cocos2dx_Director_getScheduler(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_getScheduler'", nullptr); return 0; } - cocos2d::Scheduler* ret = cobj->getScheduler(); - object_to_luaval(tolua_S, "cc.Scheduler",(cocos2d::Scheduler*)ret); + axis::Scheduler* ret = cobj->getScheduler(); + object_to_luaval(tolua_S, "cc.Scheduler",(axis::Scheduler*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getScheduler",argc, 0); @@ -17439,7 +17439,7 @@ int lua_cocos2dx_Director_getScheduler(lua_State* tolua_S) int lua_cocos2dx_Director_pushScene(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -17451,7 +17451,7 @@ int lua_cocos2dx_Director_pushScene(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -17464,9 +17464,9 @@ int lua_cocos2dx_Director_pushScene(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Scene* arg0; + axis::Scene* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Scene",&arg0, "cc.Director:pushScene"); + ok &= luaval_to_object(tolua_S, 2, "cc.Scene",&arg0, "cc.Director:pushScene"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_pushScene'", nullptr); @@ -17489,7 +17489,7 @@ int lua_cocos2dx_Director_pushScene(lua_State* tolua_S) int lua_cocos2dx_Director_setStatsAnchor(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -17501,7 +17501,7 @@ int lua_cocos2dx_Director_setStatsAnchor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -17525,7 +17525,7 @@ int lua_cocos2dx_Director_setStatsAnchor(lua_State* tolua_S) } if (argc == 1) { - cocos2d::AnchorPreset arg0; + axis::AnchorPreset arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Director:setStatsAnchor"); if(!ok) @@ -17550,7 +17550,7 @@ int lua_cocos2dx_Director_setStatsAnchor(lua_State* tolua_S) int lua_cocos2dx_Director_getAnimationInterval(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -17562,7 +17562,7 @@ int lua_cocos2dx_Director_getAnimationInterval(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -17597,7 +17597,7 @@ int lua_cocos2dx_Director_getAnimationInterval(lua_State* tolua_S) int lua_cocos2dx_Director_isPaused(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -17609,7 +17609,7 @@ int lua_cocos2dx_Director_isPaused(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -17644,7 +17644,7 @@ int lua_cocos2dx_Director_isPaused(lua_State* tolua_S) int lua_cocos2dx_Director_purgeCachedData(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -17656,7 +17656,7 @@ int lua_cocos2dx_Director_purgeCachedData(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -17691,7 +17691,7 @@ int lua_cocos2dx_Director_purgeCachedData(lua_State* tolua_S) int lua_cocos2dx_Director_getEventDispatcher(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -17703,7 +17703,7 @@ int lua_cocos2dx_Director_getEventDispatcher(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -17721,8 +17721,8 @@ int lua_cocos2dx_Director_getEventDispatcher(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_getEventDispatcher'", nullptr); return 0; } - cocos2d::EventDispatcher* ret = cobj->getEventDispatcher(); - object_to_luaval(tolua_S, "cc.EventDispatcher",(cocos2d::EventDispatcher*)ret); + axis::EventDispatcher* ret = cobj->getEventDispatcher(); + object_to_luaval(tolua_S, "cc.EventDispatcher",(axis::EventDispatcher*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getEventDispatcher",argc, 0); @@ -17738,7 +17738,7 @@ int lua_cocos2dx_Director_getEventDispatcher(lua_State* tolua_S) int lua_cocos2dx_Director_replaceScene(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -17750,7 +17750,7 @@ int lua_cocos2dx_Director_replaceScene(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -17763,9 +17763,9 @@ int lua_cocos2dx_Director_replaceScene(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Scene* arg0; + axis::Scene* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Scene",&arg0, "cc.Director:replaceScene"); + ok &= luaval_to_object(tolua_S, 2, "cc.Scene",&arg0, "cc.Director:replaceScene"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_replaceScene'", nullptr); @@ -17788,7 +17788,7 @@ int lua_cocos2dx_Director_replaceScene(lua_State* tolua_S) int lua_cocos2dx_Director_setAnimationInterval(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -17800,7 +17800,7 @@ int lua_cocos2dx_Director_setAnimationInterval(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -17838,7 +17838,7 @@ int lua_cocos2dx_Director_setAnimationInterval(lua_State* tolua_S) int lua_cocos2dx_Director_getActionManager(lua_State* tolua_S) { int argc = 0; - cocos2d::Director* cobj = nullptr; + axis::Director* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -17850,7 +17850,7 @@ int lua_cocos2dx_Director_getActionManager(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Director",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Director*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Director*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -17868,8 +17868,8 @@ int lua_cocos2dx_Director_getActionManager(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_getActionManager'", nullptr); return 0; } - cocos2d::ActionManager* ret = cobj->getActionManager(); - object_to_luaval(tolua_S, "cc.ActionManager",(cocos2d::ActionManager*)ret); + axis::ActionManager* ret = cobj->getActionManager(); + object_to_luaval(tolua_S, "cc.ActionManager",(axis::ActionManager*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Director:getActionManager",argc, 0); @@ -17904,8 +17904,8 @@ int lua_cocos2dx_Director_getInstance(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Director_getInstance'", nullptr); return 0; } - cocos2d::Director* ret = cocos2d::Director::getInstance(); - object_to_luaval(tolua_S, "cc.Director",(cocos2d::Director*)ret); + axis::Director* ret = axis::Director::getInstance(); + object_to_luaval(tolua_S, "cc.Director",(axis::Director*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Director:getInstance",argc, 0); @@ -17998,7 +17998,7 @@ int lua_register_cocos2dx_Director(lua_State* tolua_S) tolua_function(tolua_S,"getActionManager",lua_cocos2dx_Director_getActionManager); tolua_function(tolua_S,"getInstance", lua_cocos2dx_Director_getInstance); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Director).name(); // rtti is literal storage + auto typeName = typeid(axis::Director).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Director"; g_typeCast[typeName] = "cc.Director"; return 1; @@ -18007,7 +18007,7 @@ int lua_register_cocos2dx_Director(lua_State* tolua_S) int lua_cocos2dx_Timer_setupTimerWithInterval(lua_State* tolua_S) { int argc = 0; - cocos2d::Timer* cobj = nullptr; + axis::Timer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -18019,7 +18019,7 @@ int lua_cocos2dx_Timer_setupTimerWithInterval(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Timer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Timer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Timer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -18063,7 +18063,7 @@ int lua_cocos2dx_Timer_setupTimerWithInterval(lua_State* tolua_S) int lua_cocos2dx_Timer_update(lua_State* tolua_S) { int argc = 0; - cocos2d::Timer* cobj = nullptr; + axis::Timer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -18075,7 +18075,7 @@ int lua_cocos2dx_Timer_update(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Timer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Timer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Timer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -18113,7 +18113,7 @@ int lua_cocos2dx_Timer_update(lua_State* tolua_S) int lua_cocos2dx_Timer_isAborted(lua_State* tolua_S) { int argc = 0; - cocos2d::Timer* cobj = nullptr; + axis::Timer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -18125,7 +18125,7 @@ int lua_cocos2dx_Timer_isAborted(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Timer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Timer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Timer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -18160,7 +18160,7 @@ int lua_cocos2dx_Timer_isAborted(lua_State* tolua_S) int lua_cocos2dx_Timer_isExhausted(lua_State* tolua_S) { int argc = 0; - cocos2d::Timer* cobj = nullptr; + axis::Timer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -18172,7 +18172,7 @@ int lua_cocos2dx_Timer_isExhausted(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Timer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Timer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Timer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -18207,7 +18207,7 @@ int lua_cocos2dx_Timer_isExhausted(lua_State* tolua_S) int lua_cocos2dx_Timer_trigger(lua_State* tolua_S) { int argc = 0; - cocos2d::Timer* cobj = nullptr; + axis::Timer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -18219,7 +18219,7 @@ int lua_cocos2dx_Timer_trigger(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Timer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Timer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Timer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -18257,7 +18257,7 @@ int lua_cocos2dx_Timer_trigger(lua_State* tolua_S) int lua_cocos2dx_Timer_cancel(lua_State* tolua_S) { int argc = 0; - cocos2d::Timer* cobj = nullptr; + axis::Timer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -18269,7 +18269,7 @@ int lua_cocos2dx_Timer_cancel(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Timer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Timer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Timer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -18304,7 +18304,7 @@ int lua_cocos2dx_Timer_cancel(lua_State* tolua_S) int lua_cocos2dx_Timer_setAborted(lua_State* tolua_S) { int argc = 0; - cocos2d::Timer* cobj = nullptr; + axis::Timer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -18316,7 +18316,7 @@ int lua_cocos2dx_Timer_setAborted(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Timer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Timer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Timer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -18368,7 +18368,7 @@ int lua_register_cocos2dx_Timer(lua_State* tolua_S) tolua_function(tolua_S,"cancel",lua_cocos2dx_Timer_cancel); tolua_function(tolua_S,"setAborted",lua_cocos2dx_Timer_setAborted); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Timer).name(); // rtti is literal storage + auto typeName = typeid(axis::Timer).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Timer"; g_typeCast[typeName] = "cc.Timer"; return 1; @@ -18377,7 +18377,7 @@ int lua_register_cocos2dx_Timer(lua_State* tolua_S) int lua_cocos2dx_Scheduler_setTimeScale(lua_State* tolua_S) { int argc = 0; - cocos2d::Scheduler* cobj = nullptr; + axis::Scheduler* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -18389,7 +18389,7 @@ int lua_cocos2dx_Scheduler_setTimeScale(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Scheduler",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Scheduler*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Scheduler*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -18427,7 +18427,7 @@ int lua_cocos2dx_Scheduler_setTimeScale(lua_State* tolua_S) int lua_cocos2dx_Scheduler_removeAllFunctionsToBePerformedInCocosThread(lua_State* tolua_S) { int argc = 0; - cocos2d::Scheduler* cobj = nullptr; + axis::Scheduler* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -18439,7 +18439,7 @@ int lua_cocos2dx_Scheduler_removeAllFunctionsToBePerformedInCocosThread(lua_Stat if (!tolua_isusertype(tolua_S,1,"cc.Scheduler",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Scheduler*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Scheduler*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -18474,7 +18474,7 @@ int lua_cocos2dx_Scheduler_removeAllFunctionsToBePerformedInCocosThread(lua_Stat int lua_cocos2dx_Scheduler_getTimeScale(lua_State* tolua_S) { int argc = 0; - cocos2d::Scheduler* cobj = nullptr; + axis::Scheduler* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -18486,7 +18486,7 @@ int lua_cocos2dx_Scheduler_getTimeScale(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Scheduler",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Scheduler*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Scheduler*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -18521,7 +18521,7 @@ int lua_cocos2dx_Scheduler_getTimeScale(lua_State* tolua_S) int lua_cocos2dx_Scheduler_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Scheduler* cobj = nullptr; + axis::Scheduler* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -18538,7 +18538,7 @@ int lua_cocos2dx_Scheduler_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Scheduler_constructor'", nullptr); return 0; } - cobj = new cocos2d::Scheduler(); + cobj = new axis::Scheduler(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -18572,7 +18572,7 @@ int lua_register_cocos2dx_Scheduler(lua_State* tolua_S) tolua_function(tolua_S,"removeAllFunctionsToBePerformedInCocosThread",lua_cocos2dx_Scheduler_removeAllFunctionsToBePerformedInCocosThread); tolua_function(tolua_S,"getTimeScale",lua_cocos2dx_Scheduler_getTimeScale); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Scheduler).name(); // rtti is literal storage + auto typeName = typeid(axis::Scheduler).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Scheduler"; g_typeCast[typeName] = "cc.Scheduler"; return 1; @@ -18581,7 +18581,7 @@ int lua_register_cocos2dx_Scheduler(lua_State* tolua_S) int lua_cocos2dx_AsyncTaskPool_enqueue(lua_State* tolua_S) { int argc = 0; - cocos2d::AsyncTaskPool* cobj = nullptr; + axis::AsyncTaskPool* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -18590,7 +18590,7 @@ int lua_cocos2dx_AsyncTaskPool_enqueue(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AsyncTaskPool",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::AsyncTaskPool*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::AsyncTaskPool*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -18601,7 +18601,7 @@ int lua_cocos2dx_AsyncTaskPool_enqueue(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { - cocos2d::AsyncTaskPool::TaskType arg0; + axis::AsyncTaskPool::TaskType arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.AsyncTaskPool:enqueue"); if (!ok) { break; } @@ -18621,7 +18621,7 @@ int lua_cocos2dx_AsyncTaskPool_enqueue(lua_State* tolua_S) ok = true; do{ if (argc == 4) { - cocos2d::AsyncTaskPool::TaskType arg0; + axis::AsyncTaskPool::TaskType arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.AsyncTaskPool:enqueue"); if (!ok) { break; } @@ -18665,7 +18665,7 @@ int lua_cocos2dx_AsyncTaskPool_enqueue(lua_State* tolua_S) int lua_cocos2dx_AsyncTaskPool_stopTasks(lua_State* tolua_S) { int argc = 0; - cocos2d::AsyncTaskPool* cobj = nullptr; + axis::AsyncTaskPool* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -18677,7 +18677,7 @@ int lua_cocos2dx_AsyncTaskPool_stopTasks(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.AsyncTaskPool",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::AsyncTaskPool*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::AsyncTaskPool*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -18690,7 +18690,7 @@ int lua_cocos2dx_AsyncTaskPool_stopTasks(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::AsyncTaskPool::TaskType arg0; + axis::AsyncTaskPool::TaskType arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.AsyncTaskPool:stopTasks"); if(!ok) @@ -18734,7 +18734,7 @@ int lua_cocos2dx_AsyncTaskPool_destroyInstance(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AsyncTaskPool_destroyInstance'", nullptr); return 0; } - cocos2d::AsyncTaskPool::destroyInstance(); + axis::AsyncTaskPool::destroyInstance(); lua_settop(tolua_S, 1); return 1; } @@ -18768,8 +18768,8 @@ int lua_cocos2dx_AsyncTaskPool_getInstance(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AsyncTaskPool_getInstance'", nullptr); return 0; } - cocos2d::AsyncTaskPool* ret = cocos2d::AsyncTaskPool::getInstance(); - object_to_luaval(tolua_S, "cc.AsyncTaskPool",(cocos2d::AsyncTaskPool*)ret); + axis::AsyncTaskPool* ret = axis::AsyncTaskPool::getInstance(); + object_to_luaval(tolua_S, "cc.AsyncTaskPool",(axis::AsyncTaskPool*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.AsyncTaskPool:getInstance",argc, 0); @@ -18783,7 +18783,7 @@ int lua_cocos2dx_AsyncTaskPool_getInstance(lua_State* tolua_S) int lua_cocos2dx_AsyncTaskPool_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::AsyncTaskPool* cobj = nullptr; + axis::AsyncTaskPool* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -18800,7 +18800,7 @@ int lua_cocos2dx_AsyncTaskPool_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AsyncTaskPool_constructor'", nullptr); return 0; } - cobj = new cocos2d::AsyncTaskPool(); + cobj = new axis::AsyncTaskPool(); tolua_pushusertype(tolua_S,(void*)cobj,"cc.AsyncTaskPool"); tolua_register_gc(tolua_S,lua_gettop(tolua_S)); return 1; @@ -18833,7 +18833,7 @@ int lua_register_cocos2dx_AsyncTaskPool(lua_State* tolua_S) tolua_function(tolua_S,"destroyInstance", lua_cocos2dx_AsyncTaskPool_destroyInstance); tolua_function(tolua_S,"getInstance", lua_cocos2dx_AsyncTaskPool_getInstance); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::AsyncTaskPool).name(); // rtti is literal storage + auto typeName = typeid(axis::AsyncTaskPool).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.AsyncTaskPool"; g_typeCast[typeName] = "cc.AsyncTaskPool"; return 1; @@ -18842,7 +18842,7 @@ int lua_register_cocos2dx_AsyncTaskPool(lua_State* tolua_S) int lua_cocos2dx_Action_startWithTarget(lua_State* tolua_S) { int argc = 0; - cocos2d::Action* cobj = nullptr; + axis::Action* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -18854,7 +18854,7 @@ int lua_cocos2dx_Action_startWithTarget(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Action*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -18867,9 +18867,9 @@ int lua_cocos2dx_Action_startWithTarget(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Node* arg0; + axis::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Action:startWithTarget"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Action:startWithTarget"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Action_startWithTarget'", nullptr); @@ -18892,7 +18892,7 @@ int lua_cocos2dx_Action_startWithTarget(lua_State* tolua_S) int lua_cocos2dx_Action_setOriginalTarget(lua_State* tolua_S) { int argc = 0; - cocos2d::Action* cobj = nullptr; + axis::Action* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -18904,7 +18904,7 @@ int lua_cocos2dx_Action_setOriginalTarget(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Action*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -18917,9 +18917,9 @@ int lua_cocos2dx_Action_setOriginalTarget(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Node* arg0; + axis::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Action:setOriginalTarget"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Action:setOriginalTarget"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Action_setOriginalTarget'", nullptr); @@ -18942,7 +18942,7 @@ int lua_cocos2dx_Action_setOriginalTarget(lua_State* tolua_S) int lua_cocos2dx_Action_clone(lua_State* tolua_S) { int argc = 0; - cocos2d::Action* cobj = nullptr; + axis::Action* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -18954,7 +18954,7 @@ int lua_cocos2dx_Action_clone(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Action*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -18972,8 +18972,8 @@ int lua_cocos2dx_Action_clone(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Action_clone'", nullptr); return 0; } - cocos2d::Action* ret = cobj->clone(); - object_to_luaval(tolua_S, "cc.Action",(cocos2d::Action*)ret); + axis::Action* ret = cobj->clone(); + object_to_luaval(tolua_S, "cc.Action",(axis::Action*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:clone",argc, 0); @@ -18989,7 +18989,7 @@ int lua_cocos2dx_Action_clone(lua_State* tolua_S) int lua_cocos2dx_Action_getOriginalTarget(lua_State* tolua_S) { int argc = 0; - cocos2d::Action* cobj = nullptr; + axis::Action* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -19001,7 +19001,7 @@ int lua_cocos2dx_Action_getOriginalTarget(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Action*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -19019,8 +19019,8 @@ int lua_cocos2dx_Action_getOriginalTarget(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Action_getOriginalTarget'", nullptr); return 0; } - cocos2d::Node* ret = cobj->getOriginalTarget(); - object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + axis::Node* ret = cobj->getOriginalTarget(); + object_to_luaval(tolua_S, "cc.Node",(axis::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:getOriginalTarget",argc, 0); @@ -19036,7 +19036,7 @@ int lua_cocos2dx_Action_getOriginalTarget(lua_State* tolua_S) int lua_cocos2dx_Action_stop(lua_State* tolua_S) { int argc = 0; - cocos2d::Action* cobj = nullptr; + axis::Action* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -19048,7 +19048,7 @@ int lua_cocos2dx_Action_stop(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Action*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -19083,7 +19083,7 @@ int lua_cocos2dx_Action_stop(lua_State* tolua_S) int lua_cocos2dx_Action_update(lua_State* tolua_S) { int argc = 0; - cocos2d::Action* cobj = nullptr; + axis::Action* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -19095,7 +19095,7 @@ int lua_cocos2dx_Action_update(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Action*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -19133,7 +19133,7 @@ int lua_cocos2dx_Action_update(lua_State* tolua_S) int lua_cocos2dx_Action_getTarget(lua_State* tolua_S) { int argc = 0; - cocos2d::Action* cobj = nullptr; + axis::Action* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -19145,7 +19145,7 @@ int lua_cocos2dx_Action_getTarget(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Action*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -19163,8 +19163,8 @@ int lua_cocos2dx_Action_getTarget(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Action_getTarget'", nullptr); return 0; } - cocos2d::Node* ret = cobj->getTarget(); - object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + axis::Node* ret = cobj->getTarget(); + object_to_luaval(tolua_S, "cc.Node",(axis::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:getTarget",argc, 0); @@ -19180,7 +19180,7 @@ int lua_cocos2dx_Action_getTarget(lua_State* tolua_S) int lua_cocos2dx_Action_getFlags(lua_State* tolua_S) { int argc = 0; - cocos2d::Action* cobj = nullptr; + axis::Action* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -19192,7 +19192,7 @@ int lua_cocos2dx_Action_getFlags(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Action*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -19227,7 +19227,7 @@ int lua_cocos2dx_Action_getFlags(lua_State* tolua_S) int lua_cocos2dx_Action_step(lua_State* tolua_S) { int argc = 0; - cocos2d::Action* cobj = nullptr; + axis::Action* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -19239,7 +19239,7 @@ int lua_cocos2dx_Action_step(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Action*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -19277,7 +19277,7 @@ int lua_cocos2dx_Action_step(lua_State* tolua_S) int lua_cocos2dx_Action_setTag(lua_State* tolua_S) { int argc = 0; - cocos2d::Action* cobj = nullptr; + axis::Action* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -19289,7 +19289,7 @@ int lua_cocos2dx_Action_setTag(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Action*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -19327,7 +19327,7 @@ int lua_cocos2dx_Action_setTag(lua_State* tolua_S) int lua_cocos2dx_Action_setFlags(lua_State* tolua_S) { int argc = 0; - cocos2d::Action* cobj = nullptr; + axis::Action* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -19339,7 +19339,7 @@ int lua_cocos2dx_Action_setFlags(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Action*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -19377,7 +19377,7 @@ int lua_cocos2dx_Action_setFlags(lua_State* tolua_S) int lua_cocos2dx_Action_getTag(lua_State* tolua_S) { int argc = 0; - cocos2d::Action* cobj = nullptr; + axis::Action* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -19389,7 +19389,7 @@ int lua_cocos2dx_Action_getTag(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Action*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -19424,7 +19424,7 @@ int lua_cocos2dx_Action_getTag(lua_State* tolua_S) int lua_cocos2dx_Action_setTarget(lua_State* tolua_S) { int argc = 0; - cocos2d::Action* cobj = nullptr; + axis::Action* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -19436,7 +19436,7 @@ int lua_cocos2dx_Action_setTarget(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Action*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -19449,9 +19449,9 @@ int lua_cocos2dx_Action_setTarget(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Node* arg0; + axis::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Action:setTarget"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Action:setTarget"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Action_setTarget'", nullptr); @@ -19474,7 +19474,7 @@ int lua_cocos2dx_Action_setTarget(lua_State* tolua_S) int lua_cocos2dx_Action_isDone(lua_State* tolua_S) { int argc = 0; - cocos2d::Action* cobj = nullptr; + axis::Action* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -19486,7 +19486,7 @@ int lua_cocos2dx_Action_isDone(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Action*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -19521,7 +19521,7 @@ int lua_cocos2dx_Action_isDone(lua_State* tolua_S) int lua_cocos2dx_Action_reverse(lua_State* tolua_S) { int argc = 0; - cocos2d::Action* cobj = nullptr; + axis::Action* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -19533,7 +19533,7 @@ int lua_cocos2dx_Action_reverse(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Action",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Action*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Action*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -19551,8 +19551,8 @@ int lua_cocos2dx_Action_reverse(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Action_reverse'", nullptr); return 0; } - cocos2d::Action* ret = cobj->reverse(); - object_to_luaval(tolua_S, "cc.Action",(cocos2d::Action*)ret); + axis::Action* ret = cobj->reverse(); + object_to_luaval(tolua_S, "cc.Action",(axis::Action*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Action:reverse",argc, 0); @@ -19593,7 +19593,7 @@ int lua_register_cocos2dx_Action(lua_State* tolua_S) tolua_function(tolua_S,"isDone",lua_cocos2dx_Action_isDone); tolua_function(tolua_S,"reverse",lua_cocos2dx_Action_reverse); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Action).name(); // rtti is literal storage + auto typeName = typeid(axis::Action).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Action"; g_typeCast[typeName] = "cc.Action"; return 1; @@ -19602,7 +19602,7 @@ int lua_register_cocos2dx_Action(lua_State* tolua_S) int lua_cocos2dx_FiniteTimeAction_setDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::FiniteTimeAction* cobj = nullptr; + axis::FiniteTimeAction* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -19614,7 +19614,7 @@ int lua_cocos2dx_FiniteTimeAction_setDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FiniteTimeAction",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FiniteTimeAction*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FiniteTimeAction*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -19652,7 +19652,7 @@ int lua_cocos2dx_FiniteTimeAction_setDuration(lua_State* tolua_S) int lua_cocos2dx_FiniteTimeAction_getDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::FiniteTimeAction* cobj = nullptr; + axis::FiniteTimeAction* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -19664,7 +19664,7 @@ int lua_cocos2dx_FiniteTimeAction_getDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FiniteTimeAction",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FiniteTimeAction*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FiniteTimeAction*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -19711,7 +19711,7 @@ int lua_register_cocos2dx_FiniteTimeAction(lua_State* tolua_S) tolua_function(tolua_S,"setDuration",lua_cocos2dx_FiniteTimeAction_setDuration); tolua_function(tolua_S,"getDuration",lua_cocos2dx_FiniteTimeAction_getDuration); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::FiniteTimeAction).name(); // rtti is literal storage + auto typeName = typeid(axis::FiniteTimeAction).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.FiniteTimeAction"; g_typeCast[typeName] = "cc.FiniteTimeAction"; return 1; @@ -19720,7 +19720,7 @@ int lua_register_cocos2dx_FiniteTimeAction(lua_State* tolua_S) int lua_cocos2dx_Speed_setInnerAction(lua_State* tolua_S) { int argc = 0; - cocos2d::Speed* cobj = nullptr; + axis::Speed* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -19732,7 +19732,7 @@ int lua_cocos2dx_Speed_setInnerAction(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Speed",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Speed*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Speed*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -19745,9 +19745,9 @@ int lua_cocos2dx_Speed_setInnerAction(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ActionInterval* arg0; + axis::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.Speed:setInnerAction"); + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.Speed:setInnerAction"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Speed_setInnerAction'", nullptr); @@ -19770,7 +19770,7 @@ int lua_cocos2dx_Speed_setInnerAction(lua_State* tolua_S) int lua_cocos2dx_Speed_getSpeed(lua_State* tolua_S) { int argc = 0; - cocos2d::Speed* cobj = nullptr; + axis::Speed* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -19782,7 +19782,7 @@ int lua_cocos2dx_Speed_getSpeed(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Speed",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Speed*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Speed*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -19817,7 +19817,7 @@ int lua_cocos2dx_Speed_getSpeed(lua_State* tolua_S) int lua_cocos2dx_Speed_setSpeed(lua_State* tolua_S) { int argc = 0; - cocos2d::Speed* cobj = nullptr; + axis::Speed* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -19829,7 +19829,7 @@ int lua_cocos2dx_Speed_setSpeed(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Speed",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Speed*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Speed*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -19867,7 +19867,7 @@ int lua_cocos2dx_Speed_setSpeed(lua_State* tolua_S) int lua_cocos2dx_Speed_initWithAction(lua_State* tolua_S) { int argc = 0; - cocos2d::Speed* cobj = nullptr; + axis::Speed* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -19879,7 +19879,7 @@ int lua_cocos2dx_Speed_initWithAction(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Speed",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Speed*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Speed*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -19892,10 +19892,10 @@ int lua_cocos2dx_Speed_initWithAction(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::ActionInterval* arg0; + axis::ActionInterval* arg0; double arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.Speed:initWithAction"); + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.Speed:initWithAction"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Speed:initWithAction"); if(!ok) @@ -19920,7 +19920,7 @@ int lua_cocos2dx_Speed_initWithAction(lua_State* tolua_S) int lua_cocos2dx_Speed_getInnerAction(lua_State* tolua_S) { int argc = 0; - cocos2d::Speed* cobj = nullptr; + axis::Speed* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -19932,7 +19932,7 @@ int lua_cocos2dx_Speed_getInnerAction(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Speed",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Speed*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Speed*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -19950,8 +19950,8 @@ int lua_cocos2dx_Speed_getInnerAction(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Speed_getInnerAction'", nullptr); return 0; } - cocos2d::ActionInterval* ret = cobj->getInnerAction(); - object_to_luaval(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); + axis::ActionInterval* ret = cobj->getInnerAction(); + object_to_luaval(tolua_S, "cc.ActionInterval",(axis::ActionInterval*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Speed:getInnerAction",argc, 0); @@ -19981,17 +19981,17 @@ int lua_cocos2dx_Speed_create(lua_State* tolua_S) if (argc == 2) { - cocos2d::ActionInterval* arg0; + axis::ActionInterval* arg0; double arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.Speed:create"); + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.Speed:create"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Speed:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Speed_create'", nullptr); return 0; } - cocos2d::Speed* ret = cocos2d::Speed::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.Speed",(cocos2d::Speed*)ret); + axis::Speed* ret = axis::Speed::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.Speed",(axis::Speed*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Speed:create",argc, 2); @@ -20005,7 +20005,7 @@ int lua_cocos2dx_Speed_create(lua_State* tolua_S) int lua_cocos2dx_Speed_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Speed* cobj = nullptr; + axis::Speed* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -20022,7 +20022,7 @@ int lua_cocos2dx_Speed_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Speed_constructor'", nullptr); return 0; } - cobj = new cocos2d::Speed(); + cobj = new axis::Speed(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -20059,7 +20059,7 @@ int lua_register_cocos2dx_Speed(lua_State* tolua_S) tolua_function(tolua_S,"getInnerAction",lua_cocos2dx_Speed_getInnerAction); tolua_function(tolua_S,"create", lua_cocos2dx_Speed_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Speed).name(); // rtti is literal storage + auto typeName = typeid(axis::Speed).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Speed"; g_typeCast[typeName] = "cc.Speed"; return 1; @@ -20068,7 +20068,7 @@ int lua_register_cocos2dx_Speed(lua_State* tolua_S) int lua_cocos2dx_Follow_setBoundarySet(lua_State* tolua_S) { int argc = 0; - cocos2d::Follow* cobj = nullptr; + axis::Follow* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -20080,7 +20080,7 @@ int lua_cocos2dx_Follow_setBoundarySet(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Follow",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Follow*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Follow*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -20118,7 +20118,7 @@ int lua_cocos2dx_Follow_setBoundarySet(lua_State* tolua_S) int lua_cocos2dx_Follow_initWithTarget(lua_State* tolua_S) { int argc = 0; - cocos2d::Follow* cobj = nullptr; + axis::Follow* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -20130,7 +20130,7 @@ int lua_cocos2dx_Follow_initWithTarget(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Follow",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Follow*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Follow*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -20143,9 +20143,9 @@ int lua_cocos2dx_Follow_initWithTarget(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Node* arg0; + axis::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Follow:initWithTarget"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Follow:initWithTarget"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Follow_initWithTarget'", nullptr); @@ -20157,10 +20157,10 @@ int lua_cocos2dx_Follow_initWithTarget(lua_State* tolua_S) } if (argc == 2) { - cocos2d::Node* arg0; - cocos2d::Rect arg1; + axis::Node* arg0; + axis::Rect arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Follow:initWithTarget"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Follow:initWithTarget"); ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.Follow:initWithTarget"); if(!ok) @@ -20185,7 +20185,7 @@ int lua_cocos2dx_Follow_initWithTarget(lua_State* tolua_S) int lua_cocos2dx_Follow_initWithTargetAndOffset(lua_State* tolua_S) { int argc = 0; - cocos2d::Follow* cobj = nullptr; + axis::Follow* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -20197,7 +20197,7 @@ int lua_cocos2dx_Follow_initWithTargetAndOffset(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Follow",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Follow*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Follow*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -20210,11 +20210,11 @@ int lua_cocos2dx_Follow_initWithTargetAndOffset(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 3) { - cocos2d::Node* arg0; + axis::Node* arg0; double arg1; double arg2; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Follow:initWithTargetAndOffset"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Follow:initWithTargetAndOffset"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Follow:initWithTargetAndOffset"); @@ -20230,12 +20230,12 @@ int lua_cocos2dx_Follow_initWithTargetAndOffset(lua_State* tolua_S) } if (argc == 4) { - cocos2d::Node* arg0; + axis::Node* arg0; double arg1; double arg2; - cocos2d::Rect arg3; + axis::Rect arg3; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Follow:initWithTargetAndOffset"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Follow:initWithTargetAndOffset"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Follow:initWithTargetAndOffset"); @@ -20264,7 +20264,7 @@ int lua_cocos2dx_Follow_initWithTargetAndOffset(lua_State* tolua_S) int lua_cocos2dx_Follow_isBoundarySet(lua_State* tolua_S) { int argc = 0; - cocos2d::Follow* cobj = nullptr; + axis::Follow* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -20276,7 +20276,7 @@ int lua_cocos2dx_Follow_isBoundarySet(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Follow",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Follow*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Follow*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -20325,30 +20325,30 @@ int lua_cocos2dx_Follow_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Follow:create"); + axis::Node* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Follow:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Follow_create'", nullptr); return 0; } - cocos2d::Follow* ret = cocos2d::Follow::create(arg0); - object_to_luaval(tolua_S, "cc.Follow",(cocos2d::Follow*)ret); + axis::Follow* ret = axis::Follow::create(arg0); + object_to_luaval(tolua_S, "cc.Follow",(axis::Follow*)ret); return 1; } if (argc == 2) { - cocos2d::Node* arg0; - cocos2d::Rect arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Follow:create"); + axis::Node* arg0; + axis::Rect arg1; + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Follow:create"); ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.Follow:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Follow_create'", nullptr); return 0; } - cocos2d::Follow* ret = cocos2d::Follow::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.Follow",(cocos2d::Follow*)ret); + axis::Follow* ret = axis::Follow::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.Follow",(axis::Follow*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Follow:create",argc, 1); @@ -20376,10 +20376,10 @@ int lua_cocos2dx_Follow_createWithOffset(lua_State* tolua_S) if (argc == 3) { - cocos2d::Node* arg0; + axis::Node* arg0; double arg1; double arg2; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Follow:createWithOffset"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Follow:createWithOffset"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Follow:createWithOffset"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Follow:createWithOffset"); if(!ok) @@ -20387,17 +20387,17 @@ int lua_cocos2dx_Follow_createWithOffset(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Follow_createWithOffset'", nullptr); return 0; } - cocos2d::Follow* ret = cocos2d::Follow::createWithOffset(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.Follow",(cocos2d::Follow*)ret); + axis::Follow* ret = axis::Follow::createWithOffset(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.Follow",(axis::Follow*)ret); return 1; } if (argc == 4) { - cocos2d::Node* arg0; + axis::Node* arg0; double arg1; double arg2; - cocos2d::Rect arg3; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Follow:createWithOffset"); + axis::Rect arg3; + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.Follow:createWithOffset"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Follow:createWithOffset"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Follow:createWithOffset"); ok &= luaval_to_rect(tolua_S, 5, &arg3, "cc.Follow:createWithOffset"); @@ -20406,8 +20406,8 @@ int lua_cocos2dx_Follow_createWithOffset(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Follow_createWithOffset'", nullptr); return 0; } - cocos2d::Follow* ret = cocos2d::Follow::createWithOffset(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.Follow",(cocos2d::Follow*)ret); + axis::Follow* ret = axis::Follow::createWithOffset(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.Follow",(axis::Follow*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Follow:createWithOffset",argc, 3); @@ -20421,7 +20421,7 @@ int lua_cocos2dx_Follow_createWithOffset(lua_State* tolua_S) int lua_cocos2dx_Follow_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Follow* cobj = nullptr; + axis::Follow* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -20438,7 +20438,7 @@ int lua_cocos2dx_Follow_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Follow_constructor'", nullptr); return 0; } - cobj = new cocos2d::Follow(); + cobj = new axis::Follow(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -20475,7 +20475,7 @@ int lua_register_cocos2dx_Follow(lua_State* tolua_S) tolua_function(tolua_S,"create", lua_cocos2dx_Follow_create); tolua_function(tolua_S,"createWithOffset", lua_cocos2dx_Follow_createWithOffset); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Follow).name(); // rtti is literal storage + auto typeName = typeid(axis::Follow).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Follow"; g_typeCast[typeName] = "cc.Follow"; return 1; @@ -20484,7 +20484,7 @@ int lua_register_cocos2dx_Follow(lua_State* tolua_S) int lua_cocos2dx_Image_hasPremultipliedAlpha(lua_State* tolua_S) { int argc = 0; - cocos2d::Image* cobj = nullptr; + axis::Image* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -20496,7 +20496,7 @@ int lua_cocos2dx_Image_hasPremultipliedAlpha(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Image*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -20531,7 +20531,7 @@ int lua_cocos2dx_Image_hasPremultipliedAlpha(lua_State* tolua_S) int lua_cocos2dx_Image_reversePremultipliedAlpha(lua_State* tolua_S) { int argc = 0; - cocos2d::Image* cobj = nullptr; + axis::Image* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -20543,7 +20543,7 @@ int lua_cocos2dx_Image_reversePremultipliedAlpha(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Image*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -20578,7 +20578,7 @@ int lua_cocos2dx_Image_reversePremultipliedAlpha(lua_State* tolua_S) int lua_cocos2dx_Image_isCompressed(lua_State* tolua_S) { int argc = 0; - cocos2d::Image* cobj = nullptr; + axis::Image* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -20590,7 +20590,7 @@ int lua_cocos2dx_Image_isCompressed(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Image*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -20625,7 +20625,7 @@ int lua_cocos2dx_Image_isCompressed(lua_State* tolua_S) int lua_cocos2dx_Image_hasAlpha(lua_State* tolua_S) { int argc = 0; - cocos2d::Image* cobj = nullptr; + axis::Image* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -20637,7 +20637,7 @@ int lua_cocos2dx_Image_hasAlpha(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Image*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -20672,7 +20672,7 @@ int lua_cocos2dx_Image_hasAlpha(lua_State* tolua_S) int lua_cocos2dx_Image_getPixelFormat(lua_State* tolua_S) { int argc = 0; - cocos2d::Image* cobj = nullptr; + axis::Image* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -20684,7 +20684,7 @@ int lua_cocos2dx_Image_getPixelFormat(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Image*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -20719,7 +20719,7 @@ int lua_cocos2dx_Image_getPixelFormat(lua_State* tolua_S) int lua_cocos2dx_Image_getHeight(lua_State* tolua_S) { int argc = 0; - cocos2d::Image* cobj = nullptr; + axis::Image* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -20731,7 +20731,7 @@ int lua_cocos2dx_Image_getHeight(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Image*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -20766,7 +20766,7 @@ int lua_cocos2dx_Image_getHeight(lua_State* tolua_S) int lua_cocos2dx_Image_premultiplyAlpha(lua_State* tolua_S) { int argc = 0; - cocos2d::Image* cobj = nullptr; + axis::Image* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -20778,7 +20778,7 @@ int lua_cocos2dx_Image_premultiplyAlpha(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Image*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -20813,7 +20813,7 @@ int lua_cocos2dx_Image_premultiplyAlpha(lua_State* tolua_S) int lua_cocos2dx_Image_initWithImageFile(lua_State* tolua_S) { int argc = 0; - cocos2d::Image* cobj = nullptr; + axis::Image* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -20825,7 +20825,7 @@ int lua_cocos2dx_Image_initWithImageFile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Image*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -20863,7 +20863,7 @@ int lua_cocos2dx_Image_initWithImageFile(lua_State* tolua_S) int lua_cocos2dx_Image_getWidth(lua_State* tolua_S) { int argc = 0; - cocos2d::Image* cobj = nullptr; + axis::Image* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -20875,7 +20875,7 @@ int lua_cocos2dx_Image_getWidth(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Image*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -20910,7 +20910,7 @@ int lua_cocos2dx_Image_getWidth(lua_State* tolua_S) int lua_cocos2dx_Image_getBitPerPixel(lua_State* tolua_S) { int argc = 0; - cocos2d::Image* cobj = nullptr; + axis::Image* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -20922,7 +20922,7 @@ int lua_cocos2dx_Image_getBitPerPixel(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Image*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -20957,7 +20957,7 @@ int lua_cocos2dx_Image_getBitPerPixel(lua_State* tolua_S) int lua_cocos2dx_Image_getFileType(lua_State* tolua_S) { int argc = 0; - cocos2d::Image* cobj = nullptr; + axis::Image* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -20969,7 +20969,7 @@ int lua_cocos2dx_Image_getFileType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Image*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -21004,7 +21004,7 @@ int lua_cocos2dx_Image_getFileType(lua_State* tolua_S) int lua_cocos2dx_Image_getFilePath(lua_State* tolua_S) { int argc = 0; - cocos2d::Image* cobj = nullptr; + axis::Image* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -21016,7 +21016,7 @@ int lua_cocos2dx_Image_getFilePath(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Image*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -21051,7 +21051,7 @@ int lua_cocos2dx_Image_getFilePath(lua_State* tolua_S) int lua_cocos2dx_Image_getNumberOfMipmaps(lua_State* tolua_S) { int argc = 0; - cocos2d::Image* cobj = nullptr; + axis::Image* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -21063,7 +21063,7 @@ int lua_cocos2dx_Image_getNumberOfMipmaps(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Image*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -21098,7 +21098,7 @@ int lua_cocos2dx_Image_getNumberOfMipmaps(lua_State* tolua_S) int lua_cocos2dx_Image_saveToFile(lua_State* tolua_S) { int argc = 0; - cocos2d::Image* cobj = nullptr; + axis::Image* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -21110,7 +21110,7 @@ int lua_cocos2dx_Image_saveToFile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Image",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Image*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Image*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -21186,7 +21186,7 @@ int lua_cocos2dx_Image_isCompressedImageHavePMA(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Image_isCompressedImageHavePMA'", nullptr); return 0; } - bool ret = cocos2d::Image::isCompressedImageHavePMA(arg0); + bool ret = axis::Image::isCompressedImageHavePMA(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } @@ -21222,7 +21222,7 @@ int lua_cocos2dx_Image_setPNGPremultipliedAlphaEnabled(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Image_setPNGPremultipliedAlphaEnabled'", nullptr); return 0; } - cocos2d::Image::setPNGPremultipliedAlphaEnabled(arg0); + axis::Image::setPNGPremultipliedAlphaEnabled(arg0); lua_settop(tolua_S, 1); return 1; } @@ -21260,7 +21260,7 @@ int lua_cocos2dx_Image_setCompressedImagesHavePMA(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Image_setCompressedImagesHavePMA'", nullptr); return 0; } - cocos2d::Image::setCompressedImagesHavePMA(arg0, arg1); + axis::Image::setCompressedImagesHavePMA(arg0, arg1); lua_settop(tolua_S, 1); return 1; } @@ -21275,7 +21275,7 @@ int lua_cocos2dx_Image_setCompressedImagesHavePMA(lua_State* tolua_S) int lua_cocos2dx_Image_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Image* cobj = nullptr; + axis::Image* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -21292,7 +21292,7 @@ int lua_cocos2dx_Image_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Image_constructor'", nullptr); return 0; } - cobj = new cocos2d::Image(); + cobj = new axis::Image(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -21340,7 +21340,7 @@ int lua_register_cocos2dx_Image(lua_State* tolua_S) tolua_function(tolua_S,"setPNGPremultipliedAlphaEnabled", lua_cocos2dx_Image_setPNGPremultipliedAlphaEnabled); tolua_function(tolua_S,"setCompressedImagesHavePMA", lua_cocos2dx_Image_setCompressedImagesHavePMA); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Image).name(); // rtti is literal storage + auto typeName = typeid(axis::Image).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Image"; g_typeCast[typeName] = "cc.Image"; return 1; @@ -21349,7 +21349,7 @@ int lua_register_cocos2dx_Image(lua_State* tolua_S) int lua_cocos2dx_PolygonInfo_getFilename(lua_State* tolua_S) { int argc = 0; - cocos2d::PolygonInfo* cobj = nullptr; + axis::PolygonInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -21361,7 +21361,7 @@ int lua_cocos2dx_PolygonInfo_getFilename(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PolygonInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PolygonInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PolygonInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -21396,7 +21396,7 @@ int lua_cocos2dx_PolygonInfo_getFilename(lua_State* tolua_S) int lua_cocos2dx_PolygonInfo_getArea(lua_State* tolua_S) { int argc = 0; - cocos2d::PolygonInfo* cobj = nullptr; + axis::PolygonInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -21408,7 +21408,7 @@ int lua_cocos2dx_PolygonInfo_getArea(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PolygonInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PolygonInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PolygonInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -21443,7 +21443,7 @@ int lua_cocos2dx_PolygonInfo_getArea(lua_State* tolua_S) int lua_cocos2dx_PolygonInfo_getRect(lua_State* tolua_S) { int argc = 0; - cocos2d::PolygonInfo* cobj = nullptr; + axis::PolygonInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -21455,7 +21455,7 @@ int lua_cocos2dx_PolygonInfo_getRect(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PolygonInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PolygonInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PolygonInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -21473,7 +21473,7 @@ int lua_cocos2dx_PolygonInfo_getRect(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_PolygonInfo_getRect'", nullptr); return 0; } - const cocos2d::Rect& ret = cobj->getRect(); + const axis::Rect& ret = cobj->getRect(); rect_to_luaval(tolua_S, ret); return 1; } @@ -21490,7 +21490,7 @@ int lua_cocos2dx_PolygonInfo_getRect(lua_State* tolua_S) int lua_cocos2dx_PolygonInfo_setFilename(lua_State* tolua_S) { int argc = 0; - cocos2d::PolygonInfo* cobj = nullptr; + axis::PolygonInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -21502,7 +21502,7 @@ int lua_cocos2dx_PolygonInfo_setFilename(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PolygonInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PolygonInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PolygonInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -21540,7 +21540,7 @@ int lua_cocos2dx_PolygonInfo_setFilename(lua_State* tolua_S) int lua_cocos2dx_PolygonInfo_setQuads(lua_State* tolua_S) { int argc = 0; - cocos2d::PolygonInfo* cobj = nullptr; + axis::PolygonInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -21552,7 +21552,7 @@ int lua_cocos2dx_PolygonInfo_setQuads(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PolygonInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PolygonInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PolygonInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -21565,7 +21565,7 @@ int lua_cocos2dx_PolygonInfo_setQuads(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::V3F_C4B_T2F_Quad* arg0; + axis::V3F_C4B_T2F_Quad* arg0; int arg1; #pragma warning NO CONVERSION TO NATIVE FOR V3F_C4B_T2F_Quad* @@ -21594,7 +21594,7 @@ int lua_cocos2dx_PolygonInfo_setQuads(lua_State* tolua_S) int lua_cocos2dx_PolygonInfo_getVertCount(lua_State* tolua_S) { int argc = 0; - cocos2d::PolygonInfo* cobj = nullptr; + axis::PolygonInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -21606,7 +21606,7 @@ int lua_cocos2dx_PolygonInfo_getVertCount(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PolygonInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PolygonInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PolygonInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -21641,7 +21641,7 @@ int lua_cocos2dx_PolygonInfo_getVertCount(lua_State* tolua_S) int lua_cocos2dx_PolygonInfo_getTrianglesCount(lua_State* tolua_S) { int argc = 0; - cocos2d::PolygonInfo* cobj = nullptr; + axis::PolygonInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -21653,7 +21653,7 @@ int lua_cocos2dx_PolygonInfo_getTrianglesCount(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PolygonInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PolygonInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PolygonInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -21688,7 +21688,7 @@ int lua_cocos2dx_PolygonInfo_getTrianglesCount(lua_State* tolua_S) int lua_cocos2dx_PolygonInfo_setQuad(lua_State* tolua_S) { int argc = 0; - cocos2d::PolygonInfo* cobj = nullptr; + axis::PolygonInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -21700,7 +21700,7 @@ int lua_cocos2dx_PolygonInfo_setQuad(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PolygonInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PolygonInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PolygonInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -21713,7 +21713,7 @@ int lua_cocos2dx_PolygonInfo_setQuad(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::V3F_C4B_T2F_Quad* arg0; + axis::V3F_C4B_T2F_Quad* arg0; #pragma warning NO CONVERSION TO NATIVE FOR V3F_C4B_T2F_Quad* ok = false; @@ -21739,7 +21739,7 @@ int lua_cocos2dx_PolygonInfo_setQuad(lua_State* tolua_S) int lua_cocos2dx_PolygonInfo_setTriangles(lua_State* tolua_S) { int argc = 0; - cocos2d::PolygonInfo* cobj = nullptr; + axis::PolygonInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -21751,7 +21751,7 @@ int lua_cocos2dx_PolygonInfo_setTriangles(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PolygonInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PolygonInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PolygonInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -21764,7 +21764,7 @@ int lua_cocos2dx_PolygonInfo_setTriangles(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::TrianglesCommand::Triangles arg0; + axis::TrianglesCommand::Triangles arg0; #pragma warning NO CONVERSION TO NATIVE FOR Triangles ok = false; @@ -21790,7 +21790,7 @@ int lua_cocos2dx_PolygonInfo_setTriangles(lua_State* tolua_S) int lua_cocos2dx_PolygonInfo_setRect(lua_State* tolua_S) { int argc = 0; - cocos2d::PolygonInfo* cobj = nullptr; + axis::PolygonInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -21802,7 +21802,7 @@ int lua_cocos2dx_PolygonInfo_setRect(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PolygonInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PolygonInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PolygonInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -21815,7 +21815,7 @@ int lua_cocos2dx_PolygonInfo_setRect(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Rect arg0; + axis::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "cc.PolygonInfo:setRect"); if(!ok) @@ -21840,7 +21840,7 @@ int lua_cocos2dx_PolygonInfo_setRect(lua_State* tolua_S) int lua_cocos2dx_PolygonInfo_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::PolygonInfo* cobj = nullptr; + axis::PolygonInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -21857,7 +21857,7 @@ int lua_cocos2dx_PolygonInfo_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_PolygonInfo_constructor'", nullptr); return 0; } - cobj = new cocos2d::PolygonInfo(); + cobj = new axis::PolygonInfo(); tolua_pushusertype(tolua_S,(void*)cobj,"cc.PolygonInfo"); tolua_register_gc(tolua_S,lua_gettop(tolua_S)); return 1; @@ -21896,7 +21896,7 @@ int lua_register_cocos2dx_PolygonInfo(lua_State* tolua_S) tolua_function(tolua_S,"setTriangles",lua_cocos2dx_PolygonInfo_setTriangles); tolua_function(tolua_S,"setRect",lua_cocos2dx_PolygonInfo_setRect); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::PolygonInfo).name(); // rtti is literal storage + auto typeName = typeid(axis::PolygonInfo).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.PolygonInfo"; g_typeCast[typeName] = "cc.PolygonInfo"; return 1; @@ -21905,7 +21905,7 @@ int lua_register_cocos2dx_PolygonInfo(lua_State* tolua_S) int lua_cocos2dx_AutoPolygon_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::AutoPolygon* cobj = nullptr; + axis::AutoPolygon* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -21925,7 +21925,7 @@ int lua_cocos2dx_AutoPolygon_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AutoPolygon_constructor'", nullptr); return 0; } - cobj = new cocos2d::AutoPolygon(arg0); + cobj = new axis::AutoPolygon(arg0); tolua_pushusertype(tolua_S,(void*)cobj,"cc.AutoPolygon"); tolua_register_gc(tolua_S,lua_gettop(tolua_S)); return 1; @@ -21954,7 +21954,7 @@ int lua_register_cocos2dx_AutoPolygon(lua_State* tolua_S) tolua_beginmodule(tolua_S,"AutoPolygon"); tolua_function(tolua_S,"new",lua_cocos2dx_AutoPolygon_constructor); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::AutoPolygon).name(); // rtti is literal storage + auto typeName = typeid(axis::AutoPolygon).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.AutoPolygon"; g_typeCast[typeName] = "cc.AutoPolygon"; return 1; @@ -21963,7 +21963,7 @@ int lua_register_cocos2dx_AutoPolygon(lua_State* tolua_S) int lua_cocos2dx_SpriteFrame_setAnchorPoint(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrame* cobj = nullptr; + axis::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -21975,7 +21975,7 @@ int lua_cocos2dx_SpriteFrame_setAnchorPoint(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -21988,7 +21988,7 @@ int lua_cocos2dx_SpriteFrame_setAnchorPoint(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.SpriteFrame:setAnchorPoint"); if(!ok) @@ -22013,7 +22013,7 @@ int lua_cocos2dx_SpriteFrame_setAnchorPoint(lua_State* tolua_S) int lua_cocos2dx_SpriteFrame_setTexture(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrame* cobj = nullptr; + axis::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -22025,7 +22025,7 @@ int lua_cocos2dx_SpriteFrame_setTexture(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -22038,9 +22038,9 @@ int lua_cocos2dx_SpriteFrame_setTexture(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Texture2D* arg0; + axis::Texture2D* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.SpriteFrame:setTexture"); + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.SpriteFrame:setTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrame_setTexture'", nullptr); @@ -22063,7 +22063,7 @@ int lua_cocos2dx_SpriteFrame_setTexture(lua_State* tolua_S) int lua_cocos2dx_SpriteFrame_getTexture(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrame* cobj = nullptr; + axis::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -22075,7 +22075,7 @@ int lua_cocos2dx_SpriteFrame_getTexture(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -22093,8 +22093,8 @@ int lua_cocos2dx_SpriteFrame_getTexture(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrame_getTexture'", nullptr); return 0; } - cocos2d::Texture2D* ret = cobj->getTexture(); - object_to_luaval(tolua_S, "cc.Texture2D",(cocos2d::Texture2D*)ret); + axis::Texture2D* ret = cobj->getTexture(); + object_to_luaval(tolua_S, "cc.Texture2D",(axis::Texture2D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:getTexture",argc, 0); @@ -22110,7 +22110,7 @@ int lua_cocos2dx_SpriteFrame_getTexture(lua_State* tolua_S) int lua_cocos2dx_SpriteFrame_setOffsetInPixels(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrame* cobj = nullptr; + axis::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -22122,7 +22122,7 @@ int lua_cocos2dx_SpriteFrame_setOffsetInPixels(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -22135,7 +22135,7 @@ int lua_cocos2dx_SpriteFrame_setOffsetInPixels(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.SpriteFrame:setOffsetInPixels"); if(!ok) @@ -22160,7 +22160,7 @@ int lua_cocos2dx_SpriteFrame_setOffsetInPixels(lua_State* tolua_S) int lua_cocos2dx_SpriteFrame_getOriginalSizeInPixels(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrame* cobj = nullptr; + axis::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -22172,7 +22172,7 @@ int lua_cocos2dx_SpriteFrame_getOriginalSizeInPixels(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -22190,7 +22190,7 @@ int lua_cocos2dx_SpriteFrame_getOriginalSizeInPixels(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrame_getOriginalSizeInPixels'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getOriginalSizeInPixels(); + const axis::Vec2& ret = cobj->getOriginalSizeInPixels(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -22207,7 +22207,7 @@ int lua_cocos2dx_SpriteFrame_getOriginalSizeInPixels(lua_State* tolua_S) int lua_cocos2dx_SpriteFrame_setOriginalSize(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrame* cobj = nullptr; + axis::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -22219,7 +22219,7 @@ int lua_cocos2dx_SpriteFrame_setOriginalSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -22232,7 +22232,7 @@ int lua_cocos2dx_SpriteFrame_setOriginalSize(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.SpriteFrame:setOriginalSize"); if(!ok) @@ -22257,7 +22257,7 @@ int lua_cocos2dx_SpriteFrame_setOriginalSize(lua_State* tolua_S) int lua_cocos2dx_SpriteFrame_getCenterRect(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrame* cobj = nullptr; + axis::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -22269,7 +22269,7 @@ int lua_cocos2dx_SpriteFrame_getCenterRect(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -22287,7 +22287,7 @@ int lua_cocos2dx_SpriteFrame_getCenterRect(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrame_getCenterRect'", nullptr); return 0; } - const cocos2d::Rect& ret = cobj->getCenterRect(); + const axis::Rect& ret = cobj->getCenterRect(); rect_to_luaval(tolua_S, ret); return 1; } @@ -22304,7 +22304,7 @@ int lua_cocos2dx_SpriteFrame_getCenterRect(lua_State* tolua_S) int lua_cocos2dx_SpriteFrame_setRectInPixels(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrame* cobj = nullptr; + axis::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -22316,7 +22316,7 @@ int lua_cocos2dx_SpriteFrame_setRectInPixels(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -22329,7 +22329,7 @@ int lua_cocos2dx_SpriteFrame_setRectInPixels(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Rect arg0; + axis::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "cc.SpriteFrame:setRectInPixels"); if(!ok) @@ -22354,7 +22354,7 @@ int lua_cocos2dx_SpriteFrame_setRectInPixels(lua_State* tolua_S) int lua_cocos2dx_SpriteFrame_getRect(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrame* cobj = nullptr; + axis::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -22366,7 +22366,7 @@ int lua_cocos2dx_SpriteFrame_getRect(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -22384,7 +22384,7 @@ int lua_cocos2dx_SpriteFrame_getRect(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrame_getRect'", nullptr); return 0; } - const cocos2d::Rect& ret = cobj->getRect(); + const axis::Rect& ret = cobj->getRect(); rect_to_luaval(tolua_S, ret); return 1; } @@ -22401,7 +22401,7 @@ int lua_cocos2dx_SpriteFrame_getRect(lua_State* tolua_S) int lua_cocos2dx_SpriteFrame_setCenterRectInPixels(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrame* cobj = nullptr; + axis::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -22413,7 +22413,7 @@ int lua_cocos2dx_SpriteFrame_setCenterRectInPixels(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -22426,7 +22426,7 @@ int lua_cocos2dx_SpriteFrame_setCenterRectInPixels(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Rect arg0; + axis::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "cc.SpriteFrame:setCenterRectInPixels"); if(!ok) @@ -22451,7 +22451,7 @@ int lua_cocos2dx_SpriteFrame_setCenterRectInPixels(lua_State* tolua_S) int lua_cocos2dx_SpriteFrame_setOffset(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrame* cobj = nullptr; + axis::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -22463,7 +22463,7 @@ int lua_cocos2dx_SpriteFrame_setOffset(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -22476,7 +22476,7 @@ int lua_cocos2dx_SpriteFrame_setOffset(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.SpriteFrame:setOffset"); if(!ok) @@ -22501,7 +22501,7 @@ int lua_cocos2dx_SpriteFrame_setOffset(lua_State* tolua_S) int lua_cocos2dx_SpriteFrame_initWithTextureFilename(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrame* cobj = nullptr; + axis::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -22510,7 +22510,7 @@ int lua_cocos2dx_SpriteFrame_initWithTextureFilename(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -22525,7 +22525,7 @@ int lua_cocos2dx_SpriteFrame_initWithTextureFilename(lua_State* tolua_S) ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.SpriteFrame:initWithTextureFilename"); if (!ok) { break; } - cocos2d::Rect arg1; + axis::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.SpriteFrame:initWithTextureFilename"); if (!ok) { break; } @@ -22533,11 +22533,11 @@ int lua_cocos2dx_SpriteFrame_initWithTextureFilename(lua_State* tolua_S) ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.SpriteFrame:initWithTextureFilename"); if (!ok) { break; } - cocos2d::Vec2 arg3; + axis::Vec2 arg3; ok &= luaval_to_vec2(tolua_S, 5, &arg3, "cc.SpriteFrame:initWithTextureFilename"); if (!ok) { break; } - cocos2d::Vec2 arg4; + axis::Vec2 arg4; ok &= luaval_to_vec2(tolua_S, 6, &arg4, "cc.SpriteFrame:initWithTextureFilename"); if (!ok) { break; } @@ -22553,7 +22553,7 @@ int lua_cocos2dx_SpriteFrame_initWithTextureFilename(lua_State* tolua_S) ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.SpriteFrame:initWithTextureFilename"); if (!ok) { break; } - cocos2d::Rect arg1; + axis::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.SpriteFrame:initWithTextureFilename"); if (!ok) { break; } @@ -22576,7 +22576,7 @@ int lua_cocos2dx_SpriteFrame_initWithTextureFilename(lua_State* tolua_S) int lua_cocos2dx_SpriteFrame_setRect(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrame* cobj = nullptr; + axis::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -22588,7 +22588,7 @@ int lua_cocos2dx_SpriteFrame_setRect(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -22601,7 +22601,7 @@ int lua_cocos2dx_SpriteFrame_setRect(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Rect arg0; + axis::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "cc.SpriteFrame:setRect"); if(!ok) @@ -22626,7 +22626,7 @@ int lua_cocos2dx_SpriteFrame_setRect(lua_State* tolua_S) int lua_cocos2dx_SpriteFrame_initWithTexture(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrame* cobj = nullptr; + axis::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -22635,7 +22635,7 @@ int lua_cocos2dx_SpriteFrame_initWithTexture(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -22646,11 +22646,11 @@ int lua_cocos2dx_SpriteFrame_initWithTexture(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 5) { - cocos2d::Texture2D* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.SpriteFrame:initWithTexture"); + axis::Texture2D* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.SpriteFrame:initWithTexture"); if (!ok) { break; } - cocos2d::Rect arg1; + axis::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.SpriteFrame:initWithTexture"); if (!ok) { break; } @@ -22658,11 +22658,11 @@ int lua_cocos2dx_SpriteFrame_initWithTexture(lua_State* tolua_S) ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.SpriteFrame:initWithTexture"); if (!ok) { break; } - cocos2d::Vec2 arg3; + axis::Vec2 arg3; ok &= luaval_to_vec2(tolua_S, 5, &arg3, "cc.SpriteFrame:initWithTexture"); if (!ok) { break; } - cocos2d::Vec2 arg4; + axis::Vec2 arg4; ok &= luaval_to_vec2(tolua_S, 6, &arg4, "cc.SpriteFrame:initWithTexture"); if (!ok) { break; } @@ -22674,11 +22674,11 @@ int lua_cocos2dx_SpriteFrame_initWithTexture(lua_State* tolua_S) ok = true; do{ if (argc == 2) { - cocos2d::Texture2D* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.SpriteFrame:initWithTexture"); + axis::Texture2D* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.SpriteFrame:initWithTexture"); if (!ok) { break; } - cocos2d::Rect arg1; + axis::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.SpriteFrame:initWithTexture"); if (!ok) { break; } @@ -22701,7 +22701,7 @@ int lua_cocos2dx_SpriteFrame_initWithTexture(lua_State* tolua_S) int lua_cocos2dx_SpriteFrame_getOriginalSize(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrame* cobj = nullptr; + axis::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -22713,7 +22713,7 @@ int lua_cocos2dx_SpriteFrame_getOriginalSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -22731,7 +22731,7 @@ int lua_cocos2dx_SpriteFrame_getOriginalSize(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrame_getOriginalSize'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getOriginalSize(); + const axis::Vec2& ret = cobj->getOriginalSize(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -22748,7 +22748,7 @@ int lua_cocos2dx_SpriteFrame_getOriginalSize(lua_State* tolua_S) int lua_cocos2dx_SpriteFrame_clone(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrame* cobj = nullptr; + axis::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -22760,7 +22760,7 @@ int lua_cocos2dx_SpriteFrame_clone(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -22778,8 +22778,8 @@ int lua_cocos2dx_SpriteFrame_clone(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrame_clone'", nullptr); return 0; } - cocos2d::SpriteFrame* ret = cobj->clone(); - object_to_luaval(tolua_S, "cc.SpriteFrame",(cocos2d::SpriteFrame*)ret); + axis::SpriteFrame* ret = cobj->clone(); + object_to_luaval(tolua_S, "cc.SpriteFrame",(axis::SpriteFrame*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrame:clone",argc, 0); @@ -22795,7 +22795,7 @@ int lua_cocos2dx_SpriteFrame_clone(lua_State* tolua_S) int lua_cocos2dx_SpriteFrame_getRectInPixels(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrame* cobj = nullptr; + axis::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -22807,7 +22807,7 @@ int lua_cocos2dx_SpriteFrame_getRectInPixels(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -22825,7 +22825,7 @@ int lua_cocos2dx_SpriteFrame_getRectInPixels(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrame_getRectInPixels'", nullptr); return 0; } - const cocos2d::Rect& ret = cobj->getRectInPixels(); + const axis::Rect& ret = cobj->getRectInPixels(); rect_to_luaval(tolua_S, ret); return 1; } @@ -22842,7 +22842,7 @@ int lua_cocos2dx_SpriteFrame_getRectInPixels(lua_State* tolua_S) int lua_cocos2dx_SpriteFrame_isRotated(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrame* cobj = nullptr; + axis::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -22854,7 +22854,7 @@ int lua_cocos2dx_SpriteFrame_isRotated(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -22889,7 +22889,7 @@ int lua_cocos2dx_SpriteFrame_isRotated(lua_State* tolua_S) int lua_cocos2dx_SpriteFrame_hasCenterRect(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrame* cobj = nullptr; + axis::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -22901,7 +22901,7 @@ int lua_cocos2dx_SpriteFrame_hasCenterRect(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -22936,7 +22936,7 @@ int lua_cocos2dx_SpriteFrame_hasCenterRect(lua_State* tolua_S) int lua_cocos2dx_SpriteFrame_setRotated(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrame* cobj = nullptr; + axis::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -22948,7 +22948,7 @@ int lua_cocos2dx_SpriteFrame_setRotated(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -22986,7 +22986,7 @@ int lua_cocos2dx_SpriteFrame_setRotated(lua_State* tolua_S) int lua_cocos2dx_SpriteFrame_getOffset(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrame* cobj = nullptr; + axis::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -22998,7 +22998,7 @@ int lua_cocos2dx_SpriteFrame_getOffset(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -23016,7 +23016,7 @@ int lua_cocos2dx_SpriteFrame_getOffset(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrame_getOffset'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getOffset(); + const axis::Vec2& ret = cobj->getOffset(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -23033,7 +23033,7 @@ int lua_cocos2dx_SpriteFrame_getOffset(lua_State* tolua_S) int lua_cocos2dx_SpriteFrame_setOriginalSizeInPixels(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrame* cobj = nullptr; + axis::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -23045,7 +23045,7 @@ int lua_cocos2dx_SpriteFrame_setOriginalSizeInPixels(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -23058,7 +23058,7 @@ int lua_cocos2dx_SpriteFrame_setOriginalSizeInPixels(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.SpriteFrame:setOriginalSizeInPixels"); if(!ok) @@ -23083,7 +23083,7 @@ int lua_cocos2dx_SpriteFrame_setOriginalSizeInPixels(lua_State* tolua_S) int lua_cocos2dx_SpriteFrame_getAnchorPoint(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrame* cobj = nullptr; + axis::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -23095,7 +23095,7 @@ int lua_cocos2dx_SpriteFrame_getAnchorPoint(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -23113,7 +23113,7 @@ int lua_cocos2dx_SpriteFrame_getAnchorPoint(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrame_getAnchorPoint'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getAnchorPoint(); + const axis::Vec2& ret = cobj->getAnchorPoint(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -23130,7 +23130,7 @@ int lua_cocos2dx_SpriteFrame_getAnchorPoint(lua_State* tolua_S) int lua_cocos2dx_SpriteFrame_hasAnchorPoint(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrame* cobj = nullptr; + axis::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -23142,7 +23142,7 @@ int lua_cocos2dx_SpriteFrame_hasAnchorPoint(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -23177,7 +23177,7 @@ int lua_cocos2dx_SpriteFrame_hasAnchorPoint(lua_State* tolua_S) int lua_cocos2dx_SpriteFrame_getOffsetInPixels(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrame* cobj = nullptr; + axis::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -23189,7 +23189,7 @@ int lua_cocos2dx_SpriteFrame_getOffsetInPixels(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrame",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteFrame*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -23207,7 +23207,7 @@ int lua_cocos2dx_SpriteFrame_getOffsetInPixels(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrame_getOffsetInPixels'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getOffsetInPixels(); + const axis::Vec2& ret = cobj->getOffsetInPixels(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -23242,20 +23242,20 @@ int lua_cocos2dx_SpriteFrame_create(lua_State* tolua_S) std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.SpriteFrame:create"); if (!ok) { break; } - cocos2d::Rect arg1; + axis::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.SpriteFrame:create"); if (!ok) { break; } bool arg2; ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.SpriteFrame:create"); if (!ok) { break; } - cocos2d::Vec2 arg3; + axis::Vec2 arg3; ok &= luaval_to_vec2(tolua_S, 5, &arg3, "cc.SpriteFrame:create"); if (!ok) { break; } - cocos2d::Vec2 arg4; + axis::Vec2 arg4; ok &= luaval_to_vec2(tolua_S, 6, &arg4, "cc.SpriteFrame:create"); if (!ok) { break; } - cocos2d::SpriteFrame* ret = cocos2d::SpriteFrame::create(arg0, arg1, arg2, arg3, arg4); - object_to_luaval(tolua_S, "cc.SpriteFrame",(cocos2d::SpriteFrame*)ret); + axis::SpriteFrame* ret = axis::SpriteFrame::create(arg0, arg1, arg2, arg3, arg4); + object_to_luaval(tolua_S, "cc.SpriteFrame",(axis::SpriteFrame*)ret); return 1; } } while (0); @@ -23267,11 +23267,11 @@ int lua_cocos2dx_SpriteFrame_create(lua_State* tolua_S) std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.SpriteFrame:create"); if (!ok) { break; } - cocos2d::Rect arg1; + axis::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.SpriteFrame:create"); if (!ok) { break; } - cocos2d::SpriteFrame* ret = cocos2d::SpriteFrame::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.SpriteFrame",(cocos2d::SpriteFrame*)ret); + axis::SpriteFrame* ret = axis::SpriteFrame::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.SpriteFrame",(axis::SpriteFrame*)ret); return 1; } } while (0); @@ -23302,23 +23302,23 @@ int lua_cocos2dx_SpriteFrame_createWithTexture(lua_State* tolua_S) { if (argc == 5) { - cocos2d::Texture2D* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.SpriteFrame:createWithTexture"); + axis::Texture2D* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.SpriteFrame:createWithTexture"); if (!ok) { break; } - cocos2d::Rect arg1; + axis::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.SpriteFrame:createWithTexture"); if (!ok) { break; } bool arg2; ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.SpriteFrame:createWithTexture"); if (!ok) { break; } - cocos2d::Vec2 arg3; + axis::Vec2 arg3; ok &= luaval_to_vec2(tolua_S, 5, &arg3, "cc.SpriteFrame:createWithTexture"); if (!ok) { break; } - cocos2d::Vec2 arg4; + axis::Vec2 arg4; ok &= luaval_to_vec2(tolua_S, 6, &arg4, "cc.SpriteFrame:createWithTexture"); if (!ok) { break; } - cocos2d::SpriteFrame* ret = cocos2d::SpriteFrame::createWithTexture(arg0, arg1, arg2, arg3, arg4); - object_to_luaval(tolua_S, "cc.SpriteFrame",(cocos2d::SpriteFrame*)ret); + axis::SpriteFrame* ret = axis::SpriteFrame::createWithTexture(arg0, arg1, arg2, arg3, arg4); + object_to_luaval(tolua_S, "cc.SpriteFrame",(axis::SpriteFrame*)ret); return 1; } } while (0); @@ -23327,14 +23327,14 @@ int lua_cocos2dx_SpriteFrame_createWithTexture(lua_State* tolua_S) { if (argc == 2) { - cocos2d::Texture2D* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.SpriteFrame:createWithTexture"); + axis::Texture2D* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.SpriteFrame:createWithTexture"); if (!ok) { break; } - cocos2d::Rect arg1; + axis::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.SpriteFrame:createWithTexture"); if (!ok) { break; } - cocos2d::SpriteFrame* ret = cocos2d::SpriteFrame::createWithTexture(arg0, arg1); - object_to_luaval(tolua_S, "cc.SpriteFrame",(cocos2d::SpriteFrame*)ret); + axis::SpriteFrame* ret = axis::SpriteFrame::createWithTexture(arg0, arg1); + object_to_luaval(tolua_S, "cc.SpriteFrame",(axis::SpriteFrame*)ret); return 1; } } while (0); @@ -23350,7 +23350,7 @@ int lua_cocos2dx_SpriteFrame_createWithTexture(lua_State* tolua_S) int lua_cocos2dx_SpriteFrame_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrame* cobj = nullptr; + axis::SpriteFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -23367,7 +23367,7 @@ int lua_cocos2dx_SpriteFrame_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrame_constructor'", nullptr); return 0; } - cobj = new cocos2d::SpriteFrame(); + cobj = new axis::SpriteFrame(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -23425,7 +23425,7 @@ int lua_register_cocos2dx_SpriteFrame(lua_State* tolua_S) tolua_function(tolua_S,"create", lua_cocos2dx_SpriteFrame_create); tolua_function(tolua_S,"createWithTexture", lua_cocos2dx_SpriteFrame_createWithTexture); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::SpriteFrame).name(); // rtti is literal storage + auto typeName = typeid(axis::SpriteFrame).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.SpriteFrame"; g_typeCast[typeName] = "cc.SpriteFrame"; return 1; @@ -23434,7 +23434,7 @@ int lua_register_cocos2dx_SpriteFrame(lua_State* tolua_S) int lua_cocos2dx_AnimationFrame_setSpriteFrame(lua_State* tolua_S) { int argc = 0; - cocos2d::AnimationFrame* cobj = nullptr; + axis::AnimationFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -23446,7 +23446,7 @@ int lua_cocos2dx_AnimationFrame_setSpriteFrame(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.AnimationFrame",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::AnimationFrame*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::AnimationFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -23459,9 +23459,9 @@ int lua_cocos2dx_AnimationFrame_setSpriteFrame(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::SpriteFrame* arg0; + axis::SpriteFrame* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.AnimationFrame:setSpriteFrame"); + ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.AnimationFrame:setSpriteFrame"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AnimationFrame_setSpriteFrame'", nullptr); @@ -23484,7 +23484,7 @@ int lua_cocos2dx_AnimationFrame_setSpriteFrame(lua_State* tolua_S) int lua_cocos2dx_AnimationFrame_getUserInfo(lua_State* tolua_S) { int argc = 0; - cocos2d::AnimationFrame* cobj = nullptr; + axis::AnimationFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -23493,7 +23493,7 @@ int lua_cocos2dx_AnimationFrame_getUserInfo(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.AnimationFrame",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::AnimationFrame*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::AnimationFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -23504,7 +23504,7 @@ int lua_cocos2dx_AnimationFrame_getUserInfo(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 0) { - cocos2d::ValueMap& ret = cobj->getUserInfo(); + axis::ValueMap& ret = cobj->getUserInfo(); ccvaluemap_to_luaval(tolua_S, ret); return 1; } @@ -23512,7 +23512,7 @@ int lua_cocos2dx_AnimationFrame_getUserInfo(lua_State* tolua_S) ok = true; do{ if (argc == 0) { - const cocos2d::ValueMap& ret = cobj->getUserInfo(); + const axis::ValueMap& ret = cobj->getUserInfo(); ccvaluemap_to_luaval(tolua_S, ret); return 1; } @@ -23531,7 +23531,7 @@ int lua_cocos2dx_AnimationFrame_getUserInfo(lua_State* tolua_S) int lua_cocos2dx_AnimationFrame_setDelayUnits(lua_State* tolua_S) { int argc = 0; - cocos2d::AnimationFrame* cobj = nullptr; + axis::AnimationFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -23543,7 +23543,7 @@ int lua_cocos2dx_AnimationFrame_setDelayUnits(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.AnimationFrame",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::AnimationFrame*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::AnimationFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -23581,7 +23581,7 @@ int lua_cocos2dx_AnimationFrame_setDelayUnits(lua_State* tolua_S) int lua_cocos2dx_AnimationFrame_clone(lua_State* tolua_S) { int argc = 0; - cocos2d::AnimationFrame* cobj = nullptr; + axis::AnimationFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -23593,7 +23593,7 @@ int lua_cocos2dx_AnimationFrame_clone(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.AnimationFrame",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::AnimationFrame*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::AnimationFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -23611,8 +23611,8 @@ int lua_cocos2dx_AnimationFrame_clone(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AnimationFrame_clone'", nullptr); return 0; } - cocos2d::AnimationFrame* ret = cobj->clone(); - object_to_luaval(tolua_S, "cc.AnimationFrame",(cocos2d::AnimationFrame*)ret); + axis::AnimationFrame* ret = cobj->clone(); + object_to_luaval(tolua_S, "cc.AnimationFrame",(axis::AnimationFrame*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationFrame:clone",argc, 0); @@ -23628,7 +23628,7 @@ int lua_cocos2dx_AnimationFrame_clone(lua_State* tolua_S) int lua_cocos2dx_AnimationFrame_getSpriteFrame(lua_State* tolua_S) { int argc = 0; - cocos2d::AnimationFrame* cobj = nullptr; + axis::AnimationFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -23640,7 +23640,7 @@ int lua_cocos2dx_AnimationFrame_getSpriteFrame(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.AnimationFrame",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::AnimationFrame*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::AnimationFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -23658,8 +23658,8 @@ int lua_cocos2dx_AnimationFrame_getSpriteFrame(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AnimationFrame_getSpriteFrame'", nullptr); return 0; } - cocos2d::SpriteFrame* ret = cobj->getSpriteFrame(); - object_to_luaval(tolua_S, "cc.SpriteFrame",(cocos2d::SpriteFrame*)ret); + axis::SpriteFrame* ret = cobj->getSpriteFrame(); + object_to_luaval(tolua_S, "cc.SpriteFrame",(axis::SpriteFrame*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationFrame:getSpriteFrame",argc, 0); @@ -23675,7 +23675,7 @@ int lua_cocos2dx_AnimationFrame_getSpriteFrame(lua_State* tolua_S) int lua_cocos2dx_AnimationFrame_getDelayUnits(lua_State* tolua_S) { int argc = 0; - cocos2d::AnimationFrame* cobj = nullptr; + axis::AnimationFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -23687,7 +23687,7 @@ int lua_cocos2dx_AnimationFrame_getDelayUnits(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.AnimationFrame",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::AnimationFrame*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::AnimationFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -23722,7 +23722,7 @@ int lua_cocos2dx_AnimationFrame_getDelayUnits(lua_State* tolua_S) int lua_cocos2dx_AnimationFrame_setUserInfo(lua_State* tolua_S) { int argc = 0; - cocos2d::AnimationFrame* cobj = nullptr; + axis::AnimationFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -23734,7 +23734,7 @@ int lua_cocos2dx_AnimationFrame_setUserInfo(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.AnimationFrame",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::AnimationFrame*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::AnimationFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -23747,7 +23747,7 @@ int lua_cocos2dx_AnimationFrame_setUserInfo(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ValueMap arg0; + axis::ValueMap arg0; ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.AnimationFrame:setUserInfo"); if(!ok) @@ -23772,7 +23772,7 @@ int lua_cocos2dx_AnimationFrame_setUserInfo(lua_State* tolua_S) int lua_cocos2dx_AnimationFrame_initWithSpriteFrame(lua_State* tolua_S) { int argc = 0; - cocos2d::AnimationFrame* cobj = nullptr; + axis::AnimationFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -23784,7 +23784,7 @@ int lua_cocos2dx_AnimationFrame_initWithSpriteFrame(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.AnimationFrame",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::AnimationFrame*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::AnimationFrame*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -23797,11 +23797,11 @@ int lua_cocos2dx_AnimationFrame_initWithSpriteFrame(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 3) { - cocos2d::SpriteFrame* arg0; + axis::SpriteFrame* arg0; double arg1; - cocos2d::ValueMap arg2; + axis::ValueMap arg2; - ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.AnimationFrame:initWithSpriteFrame"); + ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.AnimationFrame:initWithSpriteFrame"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.AnimationFrame:initWithSpriteFrame"); @@ -23842,10 +23842,10 @@ int lua_cocos2dx_AnimationFrame_create(lua_State* tolua_S) if (argc == 3) { - cocos2d::SpriteFrame* arg0; + axis::SpriteFrame* arg0; double arg1; - cocos2d::ValueMap arg2; - ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.AnimationFrame:create"); + axis::ValueMap arg2; + ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.AnimationFrame:create"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.AnimationFrame:create"); ok &= luaval_to_ccvaluemap(tolua_S, 4, &arg2, "cc.AnimationFrame:create"); if(!ok) @@ -23853,8 +23853,8 @@ int lua_cocos2dx_AnimationFrame_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AnimationFrame_create'", nullptr); return 0; } - cocos2d::AnimationFrame* ret = cocos2d::AnimationFrame::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.AnimationFrame",(cocos2d::AnimationFrame*)ret); + axis::AnimationFrame* ret = axis::AnimationFrame::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.AnimationFrame",(axis::AnimationFrame*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.AnimationFrame:create",argc, 3); @@ -23868,7 +23868,7 @@ int lua_cocos2dx_AnimationFrame_create(lua_State* tolua_S) int lua_cocos2dx_AnimationFrame_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::AnimationFrame* cobj = nullptr; + axis::AnimationFrame* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -23885,7 +23885,7 @@ int lua_cocos2dx_AnimationFrame_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AnimationFrame_constructor'", nullptr); return 0; } - cobj = new cocos2d::AnimationFrame(); + cobj = new axis::AnimationFrame(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -23925,7 +23925,7 @@ int lua_register_cocos2dx_AnimationFrame(lua_State* tolua_S) tolua_function(tolua_S,"initWithSpriteFrame",lua_cocos2dx_AnimationFrame_initWithSpriteFrame); tolua_function(tolua_S,"create", lua_cocos2dx_AnimationFrame_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::AnimationFrame).name(); // rtti is literal storage + auto typeName = typeid(axis::AnimationFrame).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.AnimationFrame"; g_typeCast[typeName] = "cc.AnimationFrame"; return 1; @@ -23934,7 +23934,7 @@ int lua_register_cocos2dx_AnimationFrame(lua_State* tolua_S) int lua_cocos2dx_Animation_getLoops(lua_State* tolua_S) { int argc = 0; - cocos2d::Animation* cobj = nullptr; + axis::Animation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -23946,7 +23946,7 @@ int lua_cocos2dx_Animation_getLoops(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Animation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -23981,7 +23981,7 @@ int lua_cocos2dx_Animation_getLoops(lua_State* tolua_S) int lua_cocos2dx_Animation_addSpriteFrame(lua_State* tolua_S) { int argc = 0; - cocos2d::Animation* cobj = nullptr; + axis::Animation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -23993,7 +23993,7 @@ int lua_cocos2dx_Animation_addSpriteFrame(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Animation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -24006,9 +24006,9 @@ int lua_cocos2dx_Animation_addSpriteFrame(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::SpriteFrame* arg0; + axis::SpriteFrame* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.Animation:addSpriteFrame"); + ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.Animation:addSpriteFrame"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animation_addSpriteFrame'", nullptr); @@ -24031,7 +24031,7 @@ int lua_cocos2dx_Animation_addSpriteFrame(lua_State* tolua_S) int lua_cocos2dx_Animation_setRestoreOriginalFrame(lua_State* tolua_S) { int argc = 0; - cocos2d::Animation* cobj = nullptr; + axis::Animation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -24043,7 +24043,7 @@ int lua_cocos2dx_Animation_setRestoreOriginalFrame(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Animation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -24081,7 +24081,7 @@ int lua_cocos2dx_Animation_setRestoreOriginalFrame(lua_State* tolua_S) int lua_cocos2dx_Animation_clone(lua_State* tolua_S) { int argc = 0; - cocos2d::Animation* cobj = nullptr; + axis::Animation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -24093,7 +24093,7 @@ int lua_cocos2dx_Animation_clone(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Animation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -24111,8 +24111,8 @@ int lua_cocos2dx_Animation_clone(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animation_clone'", nullptr); return 0; } - cocos2d::Animation* ret = cobj->clone(); - object_to_luaval(tolua_S, "cc.Animation",(cocos2d::Animation*)ret); + axis::Animation* ret = cobj->clone(); + object_to_luaval(tolua_S, "cc.Animation",(axis::Animation*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Animation:clone",argc, 0); @@ -24128,7 +24128,7 @@ int lua_cocos2dx_Animation_clone(lua_State* tolua_S) int lua_cocos2dx_Animation_getDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::Animation* cobj = nullptr; + axis::Animation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -24140,7 +24140,7 @@ int lua_cocos2dx_Animation_getDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Animation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -24175,7 +24175,7 @@ int lua_cocos2dx_Animation_getDuration(lua_State* tolua_S) int lua_cocos2dx_Animation_initWithAnimationFrames(lua_State* tolua_S) { int argc = 0; - cocos2d::Animation* cobj = nullptr; + axis::Animation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -24187,7 +24187,7 @@ int lua_cocos2dx_Animation_initWithAnimationFrames(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Animation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -24200,7 +24200,7 @@ int lua_cocos2dx_Animation_initWithAnimationFrames(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 3) { - cocos2d::Vector arg0; + axis::Vector arg0; double arg1; unsigned int arg2; @@ -24231,7 +24231,7 @@ int lua_cocos2dx_Animation_initWithAnimationFrames(lua_State* tolua_S) int lua_cocos2dx_Animation_init(lua_State* tolua_S) { int argc = 0; - cocos2d::Animation* cobj = nullptr; + axis::Animation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -24243,7 +24243,7 @@ int lua_cocos2dx_Animation_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Animation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -24278,7 +24278,7 @@ int lua_cocos2dx_Animation_init(lua_State* tolua_S) int lua_cocos2dx_Animation_setFrames(lua_State* tolua_S) { int argc = 0; - cocos2d::Animation* cobj = nullptr; + axis::Animation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -24290,7 +24290,7 @@ int lua_cocos2dx_Animation_setFrames(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Animation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -24303,7 +24303,7 @@ int lua_cocos2dx_Animation_setFrames(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vector arg0; + axis::Vector arg0; ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.Animation:setFrames"); if(!ok) @@ -24328,7 +24328,7 @@ int lua_cocos2dx_Animation_setFrames(lua_State* tolua_S) int lua_cocos2dx_Animation_getFrames(lua_State* tolua_S) { int argc = 0; - cocos2d::Animation* cobj = nullptr; + axis::Animation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -24340,7 +24340,7 @@ int lua_cocos2dx_Animation_getFrames(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Animation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -24358,7 +24358,7 @@ int lua_cocos2dx_Animation_getFrames(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animation_getFrames'", nullptr); return 0; } - const cocos2d::Vector& ret = cobj->getFrames(); + const axis::Vector& ret = cobj->getFrames(); ccvector_to_luaval(tolua_S, ret); return 1; } @@ -24375,7 +24375,7 @@ int lua_cocos2dx_Animation_getFrames(lua_State* tolua_S) int lua_cocos2dx_Animation_setLoops(lua_State* tolua_S) { int argc = 0; - cocos2d::Animation* cobj = nullptr; + axis::Animation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -24387,7 +24387,7 @@ int lua_cocos2dx_Animation_setLoops(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Animation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -24425,7 +24425,7 @@ int lua_cocos2dx_Animation_setLoops(lua_State* tolua_S) int lua_cocos2dx_Animation_setDelayPerUnit(lua_State* tolua_S) { int argc = 0; - cocos2d::Animation* cobj = nullptr; + axis::Animation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -24437,7 +24437,7 @@ int lua_cocos2dx_Animation_setDelayPerUnit(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Animation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -24475,7 +24475,7 @@ int lua_cocos2dx_Animation_setDelayPerUnit(lua_State* tolua_S) int lua_cocos2dx_Animation_addSpriteFrameWithFile(lua_State* tolua_S) { int argc = 0; - cocos2d::Animation* cobj = nullptr; + axis::Animation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -24487,7 +24487,7 @@ int lua_cocos2dx_Animation_addSpriteFrameWithFile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Animation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -24525,7 +24525,7 @@ int lua_cocos2dx_Animation_addSpriteFrameWithFile(lua_State* tolua_S) int lua_cocos2dx_Animation_getTotalDelayUnits(lua_State* tolua_S) { int argc = 0; - cocos2d::Animation* cobj = nullptr; + axis::Animation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -24537,7 +24537,7 @@ int lua_cocos2dx_Animation_getTotalDelayUnits(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Animation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -24572,7 +24572,7 @@ int lua_cocos2dx_Animation_getTotalDelayUnits(lua_State* tolua_S) int lua_cocos2dx_Animation_getDelayPerUnit(lua_State* tolua_S) { int argc = 0; - cocos2d::Animation* cobj = nullptr; + axis::Animation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -24584,7 +24584,7 @@ int lua_cocos2dx_Animation_getDelayPerUnit(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Animation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -24619,7 +24619,7 @@ int lua_cocos2dx_Animation_getDelayPerUnit(lua_State* tolua_S) int lua_cocos2dx_Animation_initWithSpriteFrames(lua_State* tolua_S) { int argc = 0; - cocos2d::Animation* cobj = nullptr; + axis::Animation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -24631,7 +24631,7 @@ int lua_cocos2dx_Animation_initWithSpriteFrames(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Animation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -24644,7 +24644,7 @@ int lua_cocos2dx_Animation_initWithSpriteFrames(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vector arg0; + axis::Vector arg0; ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.Animation:initWithSpriteFrames"); if(!ok) @@ -24658,7 +24658,7 @@ int lua_cocos2dx_Animation_initWithSpriteFrames(lua_State* tolua_S) } if (argc == 2) { - cocos2d::Vector arg0; + axis::Vector arg0; double arg1; ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.Animation:initWithSpriteFrames"); @@ -24675,7 +24675,7 @@ int lua_cocos2dx_Animation_initWithSpriteFrames(lua_State* tolua_S) } if (argc == 3) { - cocos2d::Vector arg0; + axis::Vector arg0; double arg1; unsigned int arg2; @@ -24706,7 +24706,7 @@ int lua_cocos2dx_Animation_initWithSpriteFrames(lua_State* tolua_S) int lua_cocos2dx_Animation_getRestoreOriginalFrame(lua_State* tolua_S) { int argc = 0; - cocos2d::Animation* cobj = nullptr; + axis::Animation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -24718,7 +24718,7 @@ int lua_cocos2dx_Animation_getRestoreOriginalFrame(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Animation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -24753,7 +24753,7 @@ int lua_cocos2dx_Animation_getRestoreOriginalFrame(lua_State* tolua_S) int lua_cocos2dx_Animation_addSpriteFrameWithTexture(lua_State* tolua_S) { int argc = 0; - cocos2d::Animation* cobj = nullptr; + axis::Animation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -24765,7 +24765,7 @@ int lua_cocos2dx_Animation_addSpriteFrameWithTexture(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Animation",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Animation*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Animation*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -24778,10 +24778,10 @@ int lua_cocos2dx_Animation_addSpriteFrameWithTexture(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::Texture2D* arg0; - cocos2d::Rect arg1; + axis::Texture2D* arg0; + axis::Rect arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.Animation:addSpriteFrameWithTexture"); + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.Animation:addSpriteFrameWithTexture"); ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.Animation:addSpriteFrameWithTexture"); if(!ok) @@ -24821,14 +24821,14 @@ int lua_cocos2dx_Animation_create(lua_State* tolua_S) { if (argc == 2) { - cocos2d::Vector arg0; + axis::Vector arg0; ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.Animation:create"); if (!ok) { break; } double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Animation:create"); if (!ok) { break; } - cocos2d::Animation* ret = cocos2d::Animation::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.Animation",(cocos2d::Animation*)ret); + axis::Animation* ret = axis::Animation::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.Animation",(axis::Animation*)ret); return 1; } } while (0); @@ -24837,7 +24837,7 @@ int lua_cocos2dx_Animation_create(lua_State* tolua_S) { if (argc == 3) { - cocos2d::Vector arg0; + axis::Vector arg0; ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.Animation:create"); if (!ok) { break; } double arg1; @@ -24846,8 +24846,8 @@ int lua_cocos2dx_Animation_create(lua_State* tolua_S) unsigned int arg2; ok &= luaval_to_uint32(tolua_S, 4,&arg2, "cc.Animation:create"); if (!ok) { break; } - cocos2d::Animation* ret = cocos2d::Animation::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.Animation",(cocos2d::Animation*)ret); + axis::Animation* ret = axis::Animation::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.Animation",(axis::Animation*)ret); return 1; } } while (0); @@ -24856,8 +24856,8 @@ int lua_cocos2dx_Animation_create(lua_State* tolua_S) { if (argc == 0) { - cocos2d::Animation* ret = cocos2d::Animation::create(); - object_to_luaval(tolua_S, "cc.Animation",(cocos2d::Animation*)ret); + axis::Animation* ret = axis::Animation::create(); + object_to_luaval(tolua_S, "cc.Animation",(axis::Animation*)ret); return 1; } } while (0); @@ -24887,20 +24887,20 @@ int lua_cocos2dx_Animation_createWithSpriteFrames(lua_State* tolua_S) if (argc == 1) { - cocos2d::Vector arg0; + axis::Vector arg0; ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.Animation:createWithSpriteFrames"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animation_createWithSpriteFrames'", nullptr); return 0; } - cocos2d::Animation* ret = cocos2d::Animation::createWithSpriteFrames(arg0); - object_to_luaval(tolua_S, "cc.Animation",(cocos2d::Animation*)ret); + axis::Animation* ret = axis::Animation::createWithSpriteFrames(arg0); + object_to_luaval(tolua_S, "cc.Animation",(axis::Animation*)ret); return 1; } if (argc == 2) { - cocos2d::Vector arg0; + axis::Vector arg0; double arg1; ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.Animation:createWithSpriteFrames"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Animation:createWithSpriteFrames"); @@ -24909,13 +24909,13 @@ int lua_cocos2dx_Animation_createWithSpriteFrames(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animation_createWithSpriteFrames'", nullptr); return 0; } - cocos2d::Animation* ret = cocos2d::Animation::createWithSpriteFrames(arg0, arg1); - object_to_luaval(tolua_S, "cc.Animation",(cocos2d::Animation*)ret); + axis::Animation* ret = axis::Animation::createWithSpriteFrames(arg0, arg1); + object_to_luaval(tolua_S, "cc.Animation",(axis::Animation*)ret); return 1; } if (argc == 3) { - cocos2d::Vector arg0; + axis::Vector arg0; double arg1; unsigned int arg2; ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.Animation:createWithSpriteFrames"); @@ -24926,8 +24926,8 @@ int lua_cocos2dx_Animation_createWithSpriteFrames(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animation_createWithSpriteFrames'", nullptr); return 0; } - cocos2d::Animation* ret = cocos2d::Animation::createWithSpriteFrames(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.Animation",(cocos2d::Animation*)ret); + axis::Animation* ret = axis::Animation::createWithSpriteFrames(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.Animation",(axis::Animation*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Animation:createWithSpriteFrames",argc, 1); @@ -24941,7 +24941,7 @@ int lua_cocos2dx_Animation_createWithSpriteFrames(lua_State* tolua_S) int lua_cocos2dx_Animation_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Animation* cobj = nullptr; + axis::Animation* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -24958,7 +24958,7 @@ int lua_cocos2dx_Animation_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animation_constructor'", nullptr); return 0; } - cobj = new cocos2d::Animation(); + cobj = new axis::Animation(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -25008,7 +25008,7 @@ int lua_register_cocos2dx_Animation(lua_State* tolua_S) tolua_function(tolua_S,"create", lua_cocos2dx_Animation_create); tolua_function(tolua_S,"createWithSpriteFrames", lua_cocos2dx_Animation_createWithSpriteFrames); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Animation).name(); // rtti is literal storage + auto typeName = typeid(axis::Animation).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Animation"; g_typeCast[typeName] = "cc.Animation"; return 1; @@ -25017,7 +25017,7 @@ int lua_register_cocos2dx_Animation(lua_State* tolua_S) int lua_cocos2dx_ActionInterval_getAmplitudeRate(lua_State* tolua_S) { int argc = 0; - cocos2d::ActionInterval* cobj = nullptr; + axis::ActionInterval* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -25029,7 +25029,7 @@ int lua_cocos2dx_ActionInterval_getAmplitudeRate(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ActionInterval",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ActionInterval*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ActionInterval*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -25064,7 +25064,7 @@ int lua_cocos2dx_ActionInterval_getAmplitudeRate(lua_State* tolua_S) int lua_cocos2dx_ActionInterval_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::ActionInterval* cobj = nullptr; + axis::ActionInterval* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -25076,7 +25076,7 @@ int lua_cocos2dx_ActionInterval_initWithDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ActionInterval",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ActionInterval*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ActionInterval*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -25114,7 +25114,7 @@ int lua_cocos2dx_ActionInterval_initWithDuration(lua_State* tolua_S) int lua_cocos2dx_ActionInterval_setAmplitudeRate(lua_State* tolua_S) { int argc = 0; - cocos2d::ActionInterval* cobj = nullptr; + axis::ActionInterval* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -25126,7 +25126,7 @@ int lua_cocos2dx_ActionInterval_setAmplitudeRate(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ActionInterval",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ActionInterval*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ActionInterval*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -25164,7 +25164,7 @@ int lua_cocos2dx_ActionInterval_setAmplitudeRate(lua_State* tolua_S) int lua_cocos2dx_ActionInterval_getElapsed(lua_State* tolua_S) { int argc = 0; - cocos2d::ActionInterval* cobj = nullptr; + axis::ActionInterval* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -25176,7 +25176,7 @@ int lua_cocos2dx_ActionInterval_getElapsed(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ActionInterval",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ActionInterval*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ActionInterval*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -25225,7 +25225,7 @@ int lua_register_cocos2dx_ActionInterval(lua_State* tolua_S) tolua_function(tolua_S,"setAmplitudeRate",lua_cocos2dx_ActionInterval_setAmplitudeRate); tolua_function(tolua_S,"getElapsed",lua_cocos2dx_ActionInterval_getElapsed); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ActionInterval).name(); // rtti is literal storage + auto typeName = typeid(axis::ActionInterval).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.ActionInterval"; g_typeCast[typeName] = "cc.ActionInterval"; return 1; @@ -25234,7 +25234,7 @@ int lua_register_cocos2dx_ActionInterval(lua_State* tolua_S) int lua_cocos2dx_Sequence_init(lua_State* tolua_S) { int argc = 0; - cocos2d::Sequence* cobj = nullptr; + axis::Sequence* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -25246,7 +25246,7 @@ int lua_cocos2dx_Sequence_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Sequence",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Sequence*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Sequence*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -25259,7 +25259,7 @@ int lua_cocos2dx_Sequence_init(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vector arg0; + axis::Vector arg0; ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.Sequence:init"); if(!ok) @@ -25284,7 +25284,7 @@ int lua_cocos2dx_Sequence_init(lua_State* tolua_S) int lua_cocos2dx_Sequence_initWithTwoActions(lua_State* tolua_S) { int argc = 0; - cocos2d::Sequence* cobj = nullptr; + axis::Sequence* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -25296,7 +25296,7 @@ int lua_cocos2dx_Sequence_initWithTwoActions(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Sequence",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Sequence*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Sequence*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -25309,12 +25309,12 @@ int lua_cocos2dx_Sequence_initWithTwoActions(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::FiniteTimeAction* arg0; - cocos2d::FiniteTimeAction* arg1; + axis::FiniteTimeAction* arg0; + axis::FiniteTimeAction* arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.FiniteTimeAction",&arg0, "cc.Sequence:initWithTwoActions"); + ok &= luaval_to_object(tolua_S, 2, "cc.FiniteTimeAction",&arg0, "cc.Sequence:initWithTwoActions"); - ok &= luaval_to_object(tolua_S, 3, "cc.FiniteTimeAction",&arg1, "cc.Sequence:initWithTwoActions"); + ok &= luaval_to_object(tolua_S, 3, "cc.FiniteTimeAction",&arg1, "cc.Sequence:initWithTwoActions"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sequence_initWithTwoActions'", nullptr); @@ -25337,7 +25337,7 @@ int lua_cocos2dx_Sequence_initWithTwoActions(lua_State* tolua_S) int lua_cocos2dx_Sequence_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Sequence* cobj = nullptr; + axis::Sequence* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -25354,7 +25354,7 @@ int lua_cocos2dx_Sequence_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sequence_constructor'", nullptr); return 0; } - cobj = new cocos2d::Sequence(); + cobj = new axis::Sequence(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -25387,7 +25387,7 @@ int lua_register_cocos2dx_Sequence(lua_State* tolua_S) tolua_function(tolua_S,"init",lua_cocos2dx_Sequence_init); tolua_function(tolua_S,"initWithTwoActions",lua_cocos2dx_Sequence_initWithTwoActions); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Sequence).name(); // rtti is literal storage + auto typeName = typeid(axis::Sequence).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Sequence"; g_typeCast[typeName] = "cc.Sequence"; return 1; @@ -25396,7 +25396,7 @@ int lua_register_cocos2dx_Sequence(lua_State* tolua_S) int lua_cocos2dx_Repeat_setInnerAction(lua_State* tolua_S) { int argc = 0; - cocos2d::Repeat* cobj = nullptr; + axis::Repeat* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -25408,7 +25408,7 @@ int lua_cocos2dx_Repeat_setInnerAction(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Repeat",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Repeat*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Repeat*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -25421,9 +25421,9 @@ int lua_cocos2dx_Repeat_setInnerAction(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::FiniteTimeAction* arg0; + axis::FiniteTimeAction* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.FiniteTimeAction",&arg0, "cc.Repeat:setInnerAction"); + ok &= luaval_to_object(tolua_S, 2, "cc.FiniteTimeAction",&arg0, "cc.Repeat:setInnerAction"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Repeat_setInnerAction'", nullptr); @@ -25446,7 +25446,7 @@ int lua_cocos2dx_Repeat_setInnerAction(lua_State* tolua_S) int lua_cocos2dx_Repeat_initWithAction(lua_State* tolua_S) { int argc = 0; - cocos2d::Repeat* cobj = nullptr; + axis::Repeat* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -25458,7 +25458,7 @@ int lua_cocos2dx_Repeat_initWithAction(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Repeat",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Repeat*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Repeat*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -25471,10 +25471,10 @@ int lua_cocos2dx_Repeat_initWithAction(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::FiniteTimeAction* arg0; + axis::FiniteTimeAction* arg0; unsigned int arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.FiniteTimeAction",&arg0, "cc.Repeat:initWithAction"); + ok &= luaval_to_object(tolua_S, 2, "cc.FiniteTimeAction",&arg0, "cc.Repeat:initWithAction"); ok &= luaval_to_uint32(tolua_S, 3,&arg1, "cc.Repeat:initWithAction"); if(!ok) @@ -25499,7 +25499,7 @@ int lua_cocos2dx_Repeat_initWithAction(lua_State* tolua_S) int lua_cocos2dx_Repeat_getInnerAction(lua_State* tolua_S) { int argc = 0; - cocos2d::Repeat* cobj = nullptr; + axis::Repeat* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -25511,7 +25511,7 @@ int lua_cocos2dx_Repeat_getInnerAction(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Repeat",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Repeat*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Repeat*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -25529,8 +25529,8 @@ int lua_cocos2dx_Repeat_getInnerAction(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Repeat_getInnerAction'", nullptr); return 0; } - cocos2d::FiniteTimeAction* ret = cobj->getInnerAction(); - object_to_luaval(tolua_S, "cc.FiniteTimeAction",(cocos2d::FiniteTimeAction*)ret); + axis::FiniteTimeAction* ret = cobj->getInnerAction(); + object_to_luaval(tolua_S, "cc.FiniteTimeAction",(axis::FiniteTimeAction*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Repeat:getInnerAction",argc, 0); @@ -25560,17 +25560,17 @@ int lua_cocos2dx_Repeat_create(lua_State* tolua_S) if (argc == 2) { - cocos2d::FiniteTimeAction* arg0; + axis::FiniteTimeAction* arg0; unsigned int arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.FiniteTimeAction",&arg0, "cc.Repeat:create"); + ok &= luaval_to_object(tolua_S, 2, "cc.FiniteTimeAction",&arg0, "cc.Repeat:create"); ok &= luaval_to_uint32(tolua_S, 3,&arg1, "cc.Repeat:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Repeat_create'", nullptr); return 0; } - cocos2d::Repeat* ret = cocos2d::Repeat::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.Repeat",(cocos2d::Repeat*)ret); + axis::Repeat* ret = axis::Repeat::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.Repeat",(axis::Repeat*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Repeat:create",argc, 2); @@ -25584,7 +25584,7 @@ int lua_cocos2dx_Repeat_create(lua_State* tolua_S) int lua_cocos2dx_Repeat_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Repeat* cobj = nullptr; + axis::Repeat* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -25601,7 +25601,7 @@ int lua_cocos2dx_Repeat_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Repeat_constructor'", nullptr); return 0; } - cobj = new cocos2d::Repeat(); + cobj = new axis::Repeat(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -25636,7 +25636,7 @@ int lua_register_cocos2dx_Repeat(lua_State* tolua_S) tolua_function(tolua_S,"getInnerAction",lua_cocos2dx_Repeat_getInnerAction); tolua_function(tolua_S,"create", lua_cocos2dx_Repeat_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Repeat).name(); // rtti is literal storage + auto typeName = typeid(axis::Repeat).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Repeat"; g_typeCast[typeName] = "cc.Repeat"; return 1; @@ -25645,7 +25645,7 @@ int lua_register_cocos2dx_Repeat(lua_State* tolua_S) int lua_cocos2dx_RepeatForever_setInnerAction(lua_State* tolua_S) { int argc = 0; - cocos2d::RepeatForever* cobj = nullptr; + axis::RepeatForever* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -25657,7 +25657,7 @@ int lua_cocos2dx_RepeatForever_setInnerAction(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.RepeatForever",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::RepeatForever*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::RepeatForever*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -25670,9 +25670,9 @@ int lua_cocos2dx_RepeatForever_setInnerAction(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ActionInterval* arg0; + axis::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.RepeatForever:setInnerAction"); + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.RepeatForever:setInnerAction"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RepeatForever_setInnerAction'", nullptr); @@ -25695,7 +25695,7 @@ int lua_cocos2dx_RepeatForever_setInnerAction(lua_State* tolua_S) int lua_cocos2dx_RepeatForever_initWithAction(lua_State* tolua_S) { int argc = 0; - cocos2d::RepeatForever* cobj = nullptr; + axis::RepeatForever* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -25707,7 +25707,7 @@ int lua_cocos2dx_RepeatForever_initWithAction(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.RepeatForever",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::RepeatForever*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::RepeatForever*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -25720,9 +25720,9 @@ int lua_cocos2dx_RepeatForever_initWithAction(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ActionInterval* arg0; + axis::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.RepeatForever:initWithAction"); + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.RepeatForever:initWithAction"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RepeatForever_initWithAction'", nullptr); @@ -25745,7 +25745,7 @@ int lua_cocos2dx_RepeatForever_initWithAction(lua_State* tolua_S) int lua_cocos2dx_RepeatForever_getInnerAction(lua_State* tolua_S) { int argc = 0; - cocos2d::RepeatForever* cobj = nullptr; + axis::RepeatForever* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -25757,7 +25757,7 @@ int lua_cocos2dx_RepeatForever_getInnerAction(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.RepeatForever",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::RepeatForever*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::RepeatForever*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -25775,8 +25775,8 @@ int lua_cocos2dx_RepeatForever_getInnerAction(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RepeatForever_getInnerAction'", nullptr); return 0; } - cocos2d::ActionInterval* ret = cobj->getInnerAction(); - object_to_luaval(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); + axis::ActionInterval* ret = cobj->getInnerAction(); + object_to_luaval(tolua_S, "cc.ActionInterval",(axis::ActionInterval*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RepeatForever:getInnerAction",argc, 0); @@ -25806,15 +25806,15 @@ int lua_cocos2dx_RepeatForever_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.RepeatForever:create"); + axis::ActionInterval* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.RepeatForever:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RepeatForever_create'", nullptr); return 0; } - cocos2d::RepeatForever* ret = cocos2d::RepeatForever::create(arg0); - object_to_luaval(tolua_S, "cc.RepeatForever",(cocos2d::RepeatForever*)ret); + axis::RepeatForever* ret = axis::RepeatForever::create(arg0); + object_to_luaval(tolua_S, "cc.RepeatForever",(axis::RepeatForever*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.RepeatForever:create",argc, 1); @@ -25828,7 +25828,7 @@ int lua_cocos2dx_RepeatForever_create(lua_State* tolua_S) int lua_cocos2dx_RepeatForever_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::RepeatForever* cobj = nullptr; + axis::RepeatForever* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -25845,7 +25845,7 @@ int lua_cocos2dx_RepeatForever_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RepeatForever_constructor'", nullptr); return 0; } - cobj = new cocos2d::RepeatForever(); + cobj = new axis::RepeatForever(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -25880,7 +25880,7 @@ int lua_register_cocos2dx_RepeatForever(lua_State* tolua_S) tolua_function(tolua_S,"getInnerAction",lua_cocos2dx_RepeatForever_getInnerAction); tolua_function(tolua_S,"create", lua_cocos2dx_RepeatForever_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::RepeatForever).name(); // rtti is literal storage + auto typeName = typeid(axis::RepeatForever).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.RepeatForever"; g_typeCast[typeName] = "cc.RepeatForever"; return 1; @@ -25889,7 +25889,7 @@ int lua_register_cocos2dx_RepeatForever(lua_State* tolua_S) int lua_cocos2dx_Spawn_init(lua_State* tolua_S) { int argc = 0; - cocos2d::Spawn* cobj = nullptr; + axis::Spawn* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -25901,7 +25901,7 @@ int lua_cocos2dx_Spawn_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Spawn",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Spawn*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Spawn*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -25914,7 +25914,7 @@ int lua_cocos2dx_Spawn_init(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vector arg0; + axis::Vector arg0; ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.Spawn:init"); if(!ok) @@ -25939,7 +25939,7 @@ int lua_cocos2dx_Spawn_init(lua_State* tolua_S) int lua_cocos2dx_Spawn_initWithTwoActions(lua_State* tolua_S) { int argc = 0; - cocos2d::Spawn* cobj = nullptr; + axis::Spawn* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -25951,7 +25951,7 @@ int lua_cocos2dx_Spawn_initWithTwoActions(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Spawn",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Spawn*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Spawn*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -25964,12 +25964,12 @@ int lua_cocos2dx_Spawn_initWithTwoActions(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::FiniteTimeAction* arg0; - cocos2d::FiniteTimeAction* arg1; + axis::FiniteTimeAction* arg0; + axis::FiniteTimeAction* arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.FiniteTimeAction",&arg0, "cc.Spawn:initWithTwoActions"); + ok &= luaval_to_object(tolua_S, 2, "cc.FiniteTimeAction",&arg0, "cc.Spawn:initWithTwoActions"); - ok &= luaval_to_object(tolua_S, 3, "cc.FiniteTimeAction",&arg1, "cc.Spawn:initWithTwoActions"); + ok &= luaval_to_object(tolua_S, 3, "cc.FiniteTimeAction",&arg1, "cc.Spawn:initWithTwoActions"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Spawn_initWithTwoActions'", nullptr); @@ -25992,7 +25992,7 @@ int lua_cocos2dx_Spawn_initWithTwoActions(lua_State* tolua_S) int lua_cocos2dx_Spawn_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Spawn* cobj = nullptr; + axis::Spawn* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -26009,7 +26009,7 @@ int lua_cocos2dx_Spawn_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Spawn_constructor'", nullptr); return 0; } - cobj = new cocos2d::Spawn(); + cobj = new axis::Spawn(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -26042,7 +26042,7 @@ int lua_register_cocos2dx_Spawn(lua_State* tolua_S) tolua_function(tolua_S,"init",lua_cocos2dx_Spawn_init); tolua_function(tolua_S,"initWithTwoActions",lua_cocos2dx_Spawn_initWithTwoActions); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Spawn).name(); // rtti is literal storage + auto typeName = typeid(axis::Spawn).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Spawn"; g_typeCast[typeName] = "cc.Spawn"; return 1; @@ -26051,7 +26051,7 @@ int lua_register_cocos2dx_Spawn(lua_State* tolua_S) int lua_cocos2dx_RotateTo_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::RotateTo* cobj = nullptr; + axis::RotateTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -26060,7 +26060,7 @@ int lua_cocos2dx_RotateTo_initWithDuration(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RotateTo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::RotateTo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::RotateTo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -26075,7 +26075,7 @@ int lua_cocos2dx_RotateTo_initWithDuration(lua_State* tolua_S) ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.RotateTo:initWithDuration"); if (!ok) { break; } - cocos2d::Vec3 arg1; + axis::Vec3 arg1; ok &= luaval_to_vec3(tolua_S, 3, &arg1, "cc.RotateTo:initWithDuration"); if (!ok) { break; } @@ -26139,8 +26139,8 @@ int lua_cocos2dx_RotateTo_create(lua_State* tolua_S) double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.RotateTo:create"); if (!ok) { break; } - cocos2d::RotateTo* ret = cocos2d::RotateTo::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.RotateTo",(cocos2d::RotateTo*)ret); + axis::RotateTo* ret = axis::RotateTo::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.RotateTo",(axis::RotateTo*)ret); return 1; } } while (0); @@ -26158,8 +26158,8 @@ int lua_cocos2dx_RotateTo_create(lua_State* tolua_S) double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.RotateTo:create"); if (!ok) { break; } - cocos2d::RotateTo* ret = cocos2d::RotateTo::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.RotateTo",(cocos2d::RotateTo*)ret); + axis::RotateTo* ret = axis::RotateTo::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.RotateTo",(axis::RotateTo*)ret); return 1; } } while (0); @@ -26171,11 +26171,11 @@ int lua_cocos2dx_RotateTo_create(lua_State* tolua_S) double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.RotateTo:create"); if (!ok) { break; } - cocos2d::Vec3 arg1; + axis::Vec3 arg1; ok &= luaval_to_vec3(tolua_S, 3, &arg1, "cc.RotateTo:create"); if (!ok) { break; } - cocos2d::RotateTo* ret = cocos2d::RotateTo::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.RotateTo",(cocos2d::RotateTo*)ret); + axis::RotateTo* ret = axis::RotateTo::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.RotateTo",(axis::RotateTo*)ret); return 1; } } while (0); @@ -26191,7 +26191,7 @@ int lua_cocos2dx_RotateTo_create(lua_State* tolua_S) int lua_cocos2dx_RotateTo_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::RotateTo* cobj = nullptr; + axis::RotateTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -26208,7 +26208,7 @@ int lua_cocos2dx_RotateTo_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RotateTo_constructor'", nullptr); return 0; } - cobj = new cocos2d::RotateTo(); + cobj = new axis::RotateTo(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -26241,7 +26241,7 @@ int lua_register_cocos2dx_RotateTo(lua_State* tolua_S) tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_RotateTo_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_RotateTo_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::RotateTo).name(); // rtti is literal storage + auto typeName = typeid(axis::RotateTo).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.RotateTo"; g_typeCast[typeName] = "cc.RotateTo"; return 1; @@ -26250,7 +26250,7 @@ int lua_register_cocos2dx_RotateTo(lua_State* tolua_S) int lua_cocos2dx_RotateBy_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::RotateBy* cobj = nullptr; + axis::RotateBy* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -26259,7 +26259,7 @@ int lua_cocos2dx_RotateBy_initWithDuration(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RotateBy",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::RotateBy*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::RotateBy*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -26310,7 +26310,7 @@ int lua_cocos2dx_RotateBy_initWithDuration(lua_State* tolua_S) ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.RotateBy:initWithDuration"); if (!ok) { break; } - cocos2d::Vec3 arg1; + axis::Vec3 arg1; ok &= luaval_to_vec3(tolua_S, 3, &arg1, "cc.RotateBy:initWithDuration"); if (!ok) { break; } @@ -26357,8 +26357,8 @@ int lua_cocos2dx_RotateBy_create(lua_State* tolua_S) double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.RotateBy:create"); if (!ok) { break; } - cocos2d::RotateBy* ret = cocos2d::RotateBy::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.RotateBy",(cocos2d::RotateBy*)ret); + axis::RotateBy* ret = axis::RotateBy::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.RotateBy",(axis::RotateBy*)ret); return 1; } } while (0); @@ -26373,8 +26373,8 @@ int lua_cocos2dx_RotateBy_create(lua_State* tolua_S) double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.RotateBy:create"); if (!ok) { break; } - cocos2d::RotateBy* ret = cocos2d::RotateBy::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.RotateBy",(cocos2d::RotateBy*)ret); + axis::RotateBy* ret = axis::RotateBy::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.RotateBy",(axis::RotateBy*)ret); return 1; } } while (0); @@ -26386,11 +26386,11 @@ int lua_cocos2dx_RotateBy_create(lua_State* tolua_S) double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.RotateBy:create"); if (!ok) { break; } - cocos2d::Vec3 arg1; + axis::Vec3 arg1; ok &= luaval_to_vec3(tolua_S, 3, &arg1, "cc.RotateBy:create"); if (!ok) { break; } - cocos2d::RotateBy* ret = cocos2d::RotateBy::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.RotateBy",(cocos2d::RotateBy*)ret); + axis::RotateBy* ret = axis::RotateBy::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.RotateBy",(axis::RotateBy*)ret); return 1; } } while (0); @@ -26406,7 +26406,7 @@ int lua_cocos2dx_RotateBy_create(lua_State* tolua_S) int lua_cocos2dx_RotateBy_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::RotateBy* cobj = nullptr; + axis::RotateBy* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -26423,7 +26423,7 @@ int lua_cocos2dx_RotateBy_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RotateBy_constructor'", nullptr); return 0; } - cobj = new cocos2d::RotateBy(); + cobj = new axis::RotateBy(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -26456,7 +26456,7 @@ int lua_register_cocos2dx_RotateBy(lua_State* tolua_S) tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_RotateBy_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_RotateBy_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::RotateBy).name(); // rtti is literal storage + auto typeName = typeid(axis::RotateBy).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.RotateBy"; g_typeCast[typeName] = "cc.RotateBy"; return 1; @@ -26465,7 +26465,7 @@ int lua_register_cocos2dx_RotateBy(lua_State* tolua_S) int lua_cocos2dx_MoveBy_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::MoveBy* cobj = nullptr; + axis::MoveBy* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -26474,7 +26474,7 @@ int lua_cocos2dx_MoveBy_initWithDuration(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MoveBy",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MoveBy*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MoveBy*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -26489,7 +26489,7 @@ int lua_cocos2dx_MoveBy_initWithDuration(lua_State* tolua_S) ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.MoveBy:initWithDuration"); if (!ok) { break; } - cocos2d::Vec3 arg1; + axis::Vec3 arg1; ok &= luaval_to_vec3(tolua_S, 3, &arg1, "cc.MoveBy:initWithDuration"); if (!ok) { break; } @@ -26505,7 +26505,7 @@ int lua_cocos2dx_MoveBy_initWithDuration(lua_State* tolua_S) ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.MoveBy:initWithDuration"); if (!ok) { break; } - cocos2d::Vec2 arg1; + axis::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.MoveBy:initWithDuration"); if (!ok) { break; } @@ -26546,11 +26546,11 @@ int lua_cocos2dx_MoveBy_create(lua_State* tolua_S) double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.MoveBy:create"); if (!ok) { break; } - cocos2d::Vec3 arg1; + axis::Vec3 arg1; ok &= luaval_to_vec3(tolua_S, 3, &arg1, "cc.MoveBy:create"); if (!ok) { break; } - cocos2d::MoveBy* ret = cocos2d::MoveBy::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.MoveBy",(cocos2d::MoveBy*)ret); + axis::MoveBy* ret = axis::MoveBy::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.MoveBy",(axis::MoveBy*)ret); return 1; } } while (0); @@ -26562,11 +26562,11 @@ int lua_cocos2dx_MoveBy_create(lua_State* tolua_S) double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.MoveBy:create"); if (!ok) { break; } - cocos2d::Vec2 arg1; + axis::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.MoveBy:create"); if (!ok) { break; } - cocos2d::MoveBy* ret = cocos2d::MoveBy::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.MoveBy",(cocos2d::MoveBy*)ret); + axis::MoveBy* ret = axis::MoveBy::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.MoveBy",(axis::MoveBy*)ret); return 1; } } while (0); @@ -26582,7 +26582,7 @@ int lua_cocos2dx_MoveBy_create(lua_State* tolua_S) int lua_cocos2dx_MoveBy_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::MoveBy* cobj = nullptr; + axis::MoveBy* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -26599,7 +26599,7 @@ int lua_cocos2dx_MoveBy_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MoveBy_constructor'", nullptr); return 0; } - cobj = new cocos2d::MoveBy(); + cobj = new axis::MoveBy(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -26632,7 +26632,7 @@ int lua_register_cocos2dx_MoveBy(lua_State* tolua_S) tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_MoveBy_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_MoveBy_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::MoveBy).name(); // rtti is literal storage + auto typeName = typeid(axis::MoveBy).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.MoveBy"; g_typeCast[typeName] = "cc.MoveBy"; return 1; @@ -26641,7 +26641,7 @@ int lua_register_cocos2dx_MoveBy(lua_State* tolua_S) int lua_cocos2dx_MoveTo_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::MoveTo* cobj = nullptr; + axis::MoveTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -26650,7 +26650,7 @@ int lua_cocos2dx_MoveTo_initWithDuration(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MoveTo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MoveTo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MoveTo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -26665,7 +26665,7 @@ int lua_cocos2dx_MoveTo_initWithDuration(lua_State* tolua_S) ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.MoveTo:initWithDuration"); if (!ok) { break; } - cocos2d::Vec3 arg1; + axis::Vec3 arg1; ok &= luaval_to_vec3(tolua_S, 3, &arg1, "cc.MoveTo:initWithDuration"); if (!ok) { break; } @@ -26681,7 +26681,7 @@ int lua_cocos2dx_MoveTo_initWithDuration(lua_State* tolua_S) ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.MoveTo:initWithDuration"); if (!ok) { break; } - cocos2d::Vec2 arg1; + axis::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.MoveTo:initWithDuration"); if (!ok) { break; } @@ -26722,11 +26722,11 @@ int lua_cocos2dx_MoveTo_create(lua_State* tolua_S) double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.MoveTo:create"); if (!ok) { break; } - cocos2d::Vec3 arg1; + axis::Vec3 arg1; ok &= luaval_to_vec3(tolua_S, 3, &arg1, "cc.MoveTo:create"); if (!ok) { break; } - cocos2d::MoveTo* ret = cocos2d::MoveTo::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.MoveTo",(cocos2d::MoveTo*)ret); + axis::MoveTo* ret = axis::MoveTo::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.MoveTo",(axis::MoveTo*)ret); return 1; } } while (0); @@ -26738,11 +26738,11 @@ int lua_cocos2dx_MoveTo_create(lua_State* tolua_S) double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.MoveTo:create"); if (!ok) { break; } - cocos2d::Vec2 arg1; + axis::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.MoveTo:create"); if (!ok) { break; } - cocos2d::MoveTo* ret = cocos2d::MoveTo::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.MoveTo",(cocos2d::MoveTo*)ret); + axis::MoveTo* ret = axis::MoveTo::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.MoveTo",(axis::MoveTo*)ret); return 1; } } while (0); @@ -26758,7 +26758,7 @@ int lua_cocos2dx_MoveTo_create(lua_State* tolua_S) int lua_cocos2dx_MoveTo_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::MoveTo* cobj = nullptr; + axis::MoveTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -26775,7 +26775,7 @@ int lua_cocos2dx_MoveTo_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MoveTo_constructor'", nullptr); return 0; } - cobj = new cocos2d::MoveTo(); + cobj = new axis::MoveTo(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -26808,7 +26808,7 @@ int lua_register_cocos2dx_MoveTo(lua_State* tolua_S) tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_MoveTo_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_MoveTo_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::MoveTo).name(); // rtti is literal storage + auto typeName = typeid(axis::MoveTo).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.MoveTo"; g_typeCast[typeName] = "cc.MoveTo"; return 1; @@ -26817,7 +26817,7 @@ int lua_register_cocos2dx_MoveTo(lua_State* tolua_S) int lua_cocos2dx_SkewTo_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::SkewTo* cobj = nullptr; + axis::SkewTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -26829,7 +26829,7 @@ int lua_cocos2dx_SkewTo_initWithDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SkewTo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SkewTo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SkewTo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -26898,8 +26898,8 @@ int lua_cocos2dx_SkewTo_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SkewTo_create'", nullptr); return 0; } - cocos2d::SkewTo* ret = cocos2d::SkewTo::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.SkewTo",(cocos2d::SkewTo*)ret); + axis::SkewTo* ret = axis::SkewTo::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.SkewTo",(axis::SkewTo*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.SkewTo:create",argc, 3); @@ -26913,7 +26913,7 @@ int lua_cocos2dx_SkewTo_create(lua_State* tolua_S) int lua_cocos2dx_SkewTo_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::SkewTo* cobj = nullptr; + axis::SkewTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -26930,7 +26930,7 @@ int lua_cocos2dx_SkewTo_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SkewTo_constructor'", nullptr); return 0; } - cobj = new cocos2d::SkewTo(); + cobj = new axis::SkewTo(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -26963,7 +26963,7 @@ int lua_register_cocos2dx_SkewTo(lua_State* tolua_S) tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_SkewTo_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_SkewTo_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::SkewTo).name(); // rtti is literal storage + auto typeName = typeid(axis::SkewTo).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.SkewTo"; g_typeCast[typeName] = "cc.SkewTo"; return 1; @@ -26972,7 +26972,7 @@ int lua_register_cocos2dx_SkewTo(lua_State* tolua_S) int lua_cocos2dx_SkewBy_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::SkewBy* cobj = nullptr; + axis::SkewBy* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -26984,7 +26984,7 @@ int lua_cocos2dx_SkewBy_initWithDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SkewBy",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SkewBy*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SkewBy*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -27053,8 +27053,8 @@ int lua_cocos2dx_SkewBy_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SkewBy_create'", nullptr); return 0; } - cocos2d::SkewBy* ret = cocos2d::SkewBy::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.SkewBy",(cocos2d::SkewBy*)ret); + axis::SkewBy* ret = axis::SkewBy::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.SkewBy",(axis::SkewBy*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.SkewBy:create",argc, 3); @@ -27068,7 +27068,7 @@ int lua_cocos2dx_SkewBy_create(lua_State* tolua_S) int lua_cocos2dx_SkewBy_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::SkewBy* cobj = nullptr; + axis::SkewBy* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -27085,7 +27085,7 @@ int lua_cocos2dx_SkewBy_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SkewBy_constructor'", nullptr); return 0; } - cobj = new cocos2d::SkewBy(); + cobj = new axis::SkewBy(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -27118,7 +27118,7 @@ int lua_register_cocos2dx_SkewBy(lua_State* tolua_S) tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_SkewBy_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_SkewBy_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::SkewBy).name(); // rtti is literal storage + auto typeName = typeid(axis::SkewBy).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.SkewBy"; g_typeCast[typeName] = "cc.SkewBy"; return 1; @@ -27127,7 +27127,7 @@ int lua_register_cocos2dx_SkewBy(lua_State* tolua_S) int lua_cocos2dx_JumpBy_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::JumpBy* cobj = nullptr; + axis::JumpBy* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -27139,7 +27139,7 @@ int lua_cocos2dx_JumpBy_initWithDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.JumpBy",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::JumpBy*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::JumpBy*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -27153,7 +27153,7 @@ int lua_cocos2dx_JumpBy_initWithDuration(lua_State* tolua_S) if (argc == 4) { double arg0; - cocos2d::Vec2 arg1; + axis::Vec2 arg1; double arg2; int arg3; @@ -27201,7 +27201,7 @@ int lua_cocos2dx_JumpBy_create(lua_State* tolua_S) if (argc == 4) { double arg0; - cocos2d::Vec2 arg1; + axis::Vec2 arg1; double arg2; int arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.JumpBy:create"); @@ -27213,8 +27213,8 @@ int lua_cocos2dx_JumpBy_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_JumpBy_create'", nullptr); return 0; } - cocos2d::JumpBy* ret = cocos2d::JumpBy::create(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.JumpBy",(cocos2d::JumpBy*)ret); + axis::JumpBy* ret = axis::JumpBy::create(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.JumpBy",(axis::JumpBy*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.JumpBy:create",argc, 4); @@ -27228,7 +27228,7 @@ int lua_cocos2dx_JumpBy_create(lua_State* tolua_S) int lua_cocos2dx_JumpBy_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::JumpBy* cobj = nullptr; + axis::JumpBy* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -27245,7 +27245,7 @@ int lua_cocos2dx_JumpBy_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_JumpBy_constructor'", nullptr); return 0; } - cobj = new cocos2d::JumpBy(); + cobj = new axis::JumpBy(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -27278,7 +27278,7 @@ int lua_register_cocos2dx_JumpBy(lua_State* tolua_S) tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_JumpBy_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_JumpBy_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::JumpBy).name(); // rtti is literal storage + auto typeName = typeid(axis::JumpBy).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.JumpBy"; g_typeCast[typeName] = "cc.JumpBy"; return 1; @@ -27287,7 +27287,7 @@ int lua_register_cocos2dx_JumpBy(lua_State* tolua_S) int lua_cocos2dx_JumpTo_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::JumpTo* cobj = nullptr; + axis::JumpTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -27299,7 +27299,7 @@ int lua_cocos2dx_JumpTo_initWithDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.JumpTo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::JumpTo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::JumpTo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -27313,7 +27313,7 @@ int lua_cocos2dx_JumpTo_initWithDuration(lua_State* tolua_S) if (argc == 4) { double arg0; - cocos2d::Vec2 arg1; + axis::Vec2 arg1; double arg2; int arg3; @@ -27361,7 +27361,7 @@ int lua_cocos2dx_JumpTo_create(lua_State* tolua_S) if (argc == 4) { double arg0; - cocos2d::Vec2 arg1; + axis::Vec2 arg1; double arg2; int arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.JumpTo:create"); @@ -27373,8 +27373,8 @@ int lua_cocos2dx_JumpTo_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_JumpTo_create'", nullptr); return 0; } - cocos2d::JumpTo* ret = cocos2d::JumpTo::create(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.JumpTo",(cocos2d::JumpTo*)ret); + axis::JumpTo* ret = axis::JumpTo::create(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.JumpTo",(axis::JumpTo*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.JumpTo:create",argc, 4); @@ -27388,7 +27388,7 @@ int lua_cocos2dx_JumpTo_create(lua_State* tolua_S) int lua_cocos2dx_JumpTo_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::JumpTo* cobj = nullptr; + axis::JumpTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -27405,7 +27405,7 @@ int lua_cocos2dx_JumpTo_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_JumpTo_constructor'", nullptr); return 0; } - cobj = new cocos2d::JumpTo(); + cobj = new axis::JumpTo(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -27438,7 +27438,7 @@ int lua_register_cocos2dx_JumpTo(lua_State* tolua_S) tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_JumpTo_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_JumpTo_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::JumpTo).name(); // rtti is literal storage + auto typeName = typeid(axis::JumpTo).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.JumpTo"; g_typeCast[typeName] = "cc.JumpTo"; return 1; @@ -27447,7 +27447,7 @@ int lua_register_cocos2dx_JumpTo(lua_State* tolua_S) int lua_cocos2dx_BezierBy_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::BezierBy* cobj = nullptr; + axis::BezierBy* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -27459,7 +27459,7 @@ int lua_cocos2dx_BezierBy_initWithDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.BezierBy",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::BezierBy*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::BezierBy*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -27473,7 +27473,7 @@ int lua_cocos2dx_BezierBy_initWithDuration(lua_State* tolua_S) if (argc == 2) { double arg0; - cocos2d::_ccBezierConfig arg1; + axis::_ccBezierConfig arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.BezierBy:initWithDuration"); @@ -27501,7 +27501,7 @@ int lua_cocos2dx_BezierBy_initWithDuration(lua_State* tolua_S) int lua_cocos2dx_BezierBy_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::BezierBy* cobj = nullptr; + axis::BezierBy* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -27518,7 +27518,7 @@ int lua_cocos2dx_BezierBy_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_BezierBy_constructor'", nullptr); return 0; } - cobj = new cocos2d::BezierBy(); + cobj = new axis::BezierBy(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -27550,7 +27550,7 @@ int lua_register_cocos2dx_BezierBy(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_BezierBy_constructor); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_BezierBy_initWithDuration); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::BezierBy).name(); // rtti is literal storage + auto typeName = typeid(axis::BezierBy).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.BezierBy"; g_typeCast[typeName] = "cc.BezierBy"; return 1; @@ -27559,7 +27559,7 @@ int lua_register_cocos2dx_BezierBy(lua_State* tolua_S) int lua_cocos2dx_BezierTo_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::BezierTo* cobj = nullptr; + axis::BezierTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -27571,7 +27571,7 @@ int lua_cocos2dx_BezierTo_initWithDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.BezierTo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::BezierTo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::BezierTo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -27585,7 +27585,7 @@ int lua_cocos2dx_BezierTo_initWithDuration(lua_State* tolua_S) if (argc == 2) { double arg0; - cocos2d::_ccBezierConfig arg1; + axis::_ccBezierConfig arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.BezierTo:initWithDuration"); @@ -27613,7 +27613,7 @@ int lua_cocos2dx_BezierTo_initWithDuration(lua_State* tolua_S) int lua_cocos2dx_BezierTo_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::BezierTo* cobj = nullptr; + axis::BezierTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -27630,7 +27630,7 @@ int lua_cocos2dx_BezierTo_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_BezierTo_constructor'", nullptr); return 0; } - cobj = new cocos2d::BezierTo(); + cobj = new axis::BezierTo(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -27662,7 +27662,7 @@ int lua_register_cocos2dx_BezierTo(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_BezierTo_constructor); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_BezierTo_initWithDuration); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::BezierTo).name(); // rtti is literal storage + auto typeName = typeid(axis::BezierTo).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.BezierTo"; g_typeCast[typeName] = "cc.BezierTo"; return 1; @@ -27671,7 +27671,7 @@ int lua_register_cocos2dx_BezierTo(lua_State* tolua_S) int lua_cocos2dx_ScaleTo_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::ScaleTo* cobj = nullptr; + axis::ScaleTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -27680,7 +27680,7 @@ int lua_cocos2dx_ScaleTo_initWithDuration(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ScaleTo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ScaleTo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ScaleTo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -27786,8 +27786,8 @@ int lua_cocos2dx_ScaleTo_create(lua_State* tolua_S) double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.ScaleTo:create"); if (!ok) { break; } - cocos2d::ScaleTo* ret = cocos2d::ScaleTo::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.ScaleTo",(cocos2d::ScaleTo*)ret); + axis::ScaleTo* ret = axis::ScaleTo::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.ScaleTo",(axis::ScaleTo*)ret); return 1; } } while (0); @@ -27802,8 +27802,8 @@ int lua_cocos2dx_ScaleTo_create(lua_State* tolua_S) double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.ScaleTo:create"); if (!ok) { break; } - cocos2d::ScaleTo* ret = cocos2d::ScaleTo::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.ScaleTo",(cocos2d::ScaleTo*)ret); + axis::ScaleTo* ret = axis::ScaleTo::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.ScaleTo",(axis::ScaleTo*)ret); return 1; } } while (0); @@ -27824,8 +27824,8 @@ int lua_cocos2dx_ScaleTo_create(lua_State* tolua_S) double arg3; ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.ScaleTo:create"); if (!ok) { break; } - cocos2d::ScaleTo* ret = cocos2d::ScaleTo::create(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.ScaleTo",(cocos2d::ScaleTo*)ret); + axis::ScaleTo* ret = axis::ScaleTo::create(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.ScaleTo",(axis::ScaleTo*)ret); return 1; } } while (0); @@ -27841,7 +27841,7 @@ int lua_cocos2dx_ScaleTo_create(lua_State* tolua_S) int lua_cocos2dx_ScaleTo_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ScaleTo* cobj = nullptr; + axis::ScaleTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -27858,7 +27858,7 @@ int lua_cocos2dx_ScaleTo_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ScaleTo_constructor'", nullptr); return 0; } - cobj = new cocos2d::ScaleTo(); + cobj = new axis::ScaleTo(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -27891,7 +27891,7 @@ int lua_register_cocos2dx_ScaleTo(lua_State* tolua_S) tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_ScaleTo_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_ScaleTo_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ScaleTo).name(); // rtti is literal storage + auto typeName = typeid(axis::ScaleTo).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.ScaleTo"; g_typeCast[typeName] = "cc.ScaleTo"; return 1; @@ -27924,8 +27924,8 @@ int lua_cocos2dx_ScaleBy_create(lua_State* tolua_S) double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.ScaleBy:create"); if (!ok) { break; } - cocos2d::ScaleBy* ret = cocos2d::ScaleBy::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.ScaleBy",(cocos2d::ScaleBy*)ret); + axis::ScaleBy* ret = axis::ScaleBy::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.ScaleBy",(axis::ScaleBy*)ret); return 1; } } while (0); @@ -27940,8 +27940,8 @@ int lua_cocos2dx_ScaleBy_create(lua_State* tolua_S) double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.ScaleBy:create"); if (!ok) { break; } - cocos2d::ScaleBy* ret = cocos2d::ScaleBy::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.ScaleBy",(cocos2d::ScaleBy*)ret); + axis::ScaleBy* ret = axis::ScaleBy::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.ScaleBy",(axis::ScaleBy*)ret); return 1; } } while (0); @@ -27962,8 +27962,8 @@ int lua_cocos2dx_ScaleBy_create(lua_State* tolua_S) double arg3; ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.ScaleBy:create"); if (!ok) { break; } - cocos2d::ScaleBy* ret = cocos2d::ScaleBy::create(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.ScaleBy",(cocos2d::ScaleBy*)ret); + axis::ScaleBy* ret = axis::ScaleBy::create(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.ScaleBy",(axis::ScaleBy*)ret); return 1; } } while (0); @@ -27979,7 +27979,7 @@ int lua_cocos2dx_ScaleBy_create(lua_State* tolua_S) int lua_cocos2dx_ScaleBy_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ScaleBy* cobj = nullptr; + axis::ScaleBy* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -27996,7 +27996,7 @@ int lua_cocos2dx_ScaleBy_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ScaleBy_constructor'", nullptr); return 0; } - cobj = new cocos2d::ScaleBy(); + cobj = new axis::ScaleBy(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -28028,7 +28028,7 @@ int lua_register_cocos2dx_ScaleBy(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_ScaleBy_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_ScaleBy_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ScaleBy).name(); // rtti is literal storage + auto typeName = typeid(axis::ScaleBy).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.ScaleBy"; g_typeCast[typeName] = "cc.ScaleBy"; return 1; @@ -28037,7 +28037,7 @@ int lua_register_cocos2dx_ScaleBy(lua_State* tolua_S) int lua_cocos2dx_Blink_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::Blink* cobj = nullptr; + axis::Blink* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -28049,7 +28049,7 @@ int lua_cocos2dx_Blink_initWithDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Blink",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Blink*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Blink*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -28113,8 +28113,8 @@ int lua_cocos2dx_Blink_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Blink_create'", nullptr); return 0; } - cocos2d::Blink* ret = cocos2d::Blink::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.Blink",(cocos2d::Blink*)ret); + axis::Blink* ret = axis::Blink::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.Blink",(axis::Blink*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Blink:create",argc, 2); @@ -28128,7 +28128,7 @@ int lua_cocos2dx_Blink_create(lua_State* tolua_S) int lua_cocos2dx_Blink_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Blink* cobj = nullptr; + axis::Blink* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -28145,7 +28145,7 @@ int lua_cocos2dx_Blink_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Blink_constructor'", nullptr); return 0; } - cobj = new cocos2d::Blink(); + cobj = new axis::Blink(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -28178,7 +28178,7 @@ int lua_register_cocos2dx_Blink(lua_State* tolua_S) tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_Blink_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_Blink_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Blink).name(); // rtti is literal storage + auto typeName = typeid(axis::Blink).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Blink"; g_typeCast[typeName] = "cc.Blink"; return 1; @@ -28187,7 +28187,7 @@ int lua_register_cocos2dx_Blink(lua_State* tolua_S) int lua_cocos2dx_FadeTo_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::FadeTo* cobj = nullptr; + axis::FadeTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -28199,7 +28199,7 @@ int lua_cocos2dx_FadeTo_initWithDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FadeTo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FadeTo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FadeTo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -28263,8 +28263,8 @@ int lua_cocos2dx_FadeTo_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeTo_create'", nullptr); return 0; } - cocos2d::FadeTo* ret = cocos2d::FadeTo::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.FadeTo",(cocos2d::FadeTo*)ret); + axis::FadeTo* ret = axis::FadeTo::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.FadeTo",(axis::FadeTo*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FadeTo:create",argc, 2); @@ -28278,7 +28278,7 @@ int lua_cocos2dx_FadeTo_create(lua_State* tolua_S) int lua_cocos2dx_FadeTo_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::FadeTo* cobj = nullptr; + axis::FadeTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -28295,7 +28295,7 @@ int lua_cocos2dx_FadeTo_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeTo_constructor'", nullptr); return 0; } - cobj = new cocos2d::FadeTo(); + cobj = new axis::FadeTo(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -28328,7 +28328,7 @@ int lua_register_cocos2dx_FadeTo(lua_State* tolua_S) tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_FadeTo_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_FadeTo_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::FadeTo).name(); // rtti is literal storage + auto typeName = typeid(axis::FadeTo).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.FadeTo"; g_typeCast[typeName] = "cc.FadeTo"; return 1; @@ -28337,7 +28337,7 @@ int lua_register_cocos2dx_FadeTo(lua_State* tolua_S) int lua_cocos2dx_FadeIn_setReverseAction(lua_State* tolua_S) { int argc = 0; - cocos2d::FadeIn* cobj = nullptr; + axis::FadeIn* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -28349,7 +28349,7 @@ int lua_cocos2dx_FadeIn_setReverseAction(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FadeIn",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FadeIn*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FadeIn*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -28362,9 +28362,9 @@ int lua_cocos2dx_FadeIn_setReverseAction(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::FadeTo* arg0; + axis::FadeTo* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.FadeTo",&arg0, "cc.FadeIn:setReverseAction"); + ok &= luaval_to_object(tolua_S, 2, "cc.FadeTo",&arg0, "cc.FadeIn:setReverseAction"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeIn_setReverseAction'", nullptr); @@ -28408,8 +28408,8 @@ int lua_cocos2dx_FadeIn_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeIn_create'", nullptr); return 0; } - cocos2d::FadeIn* ret = cocos2d::FadeIn::create(arg0); - object_to_luaval(tolua_S, "cc.FadeIn",(cocos2d::FadeIn*)ret); + axis::FadeIn* ret = axis::FadeIn::create(arg0); + object_to_luaval(tolua_S, "cc.FadeIn",(axis::FadeIn*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FadeIn:create",argc, 1); @@ -28423,7 +28423,7 @@ int lua_cocos2dx_FadeIn_create(lua_State* tolua_S) int lua_cocos2dx_FadeIn_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::FadeIn* cobj = nullptr; + axis::FadeIn* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -28440,7 +28440,7 @@ int lua_cocos2dx_FadeIn_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeIn_constructor'", nullptr); return 0; } - cobj = new cocos2d::FadeIn(); + cobj = new axis::FadeIn(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -28473,7 +28473,7 @@ int lua_register_cocos2dx_FadeIn(lua_State* tolua_S) tolua_function(tolua_S,"setReverseAction",lua_cocos2dx_FadeIn_setReverseAction); tolua_function(tolua_S,"create", lua_cocos2dx_FadeIn_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::FadeIn).name(); // rtti is literal storage + auto typeName = typeid(axis::FadeIn).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.FadeIn"; g_typeCast[typeName] = "cc.FadeIn"; return 1; @@ -28482,7 +28482,7 @@ int lua_register_cocos2dx_FadeIn(lua_State* tolua_S) int lua_cocos2dx_FadeOut_setReverseAction(lua_State* tolua_S) { int argc = 0; - cocos2d::FadeOut* cobj = nullptr; + axis::FadeOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -28494,7 +28494,7 @@ int lua_cocos2dx_FadeOut_setReverseAction(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FadeOut",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FadeOut*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FadeOut*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -28507,9 +28507,9 @@ int lua_cocos2dx_FadeOut_setReverseAction(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::FadeTo* arg0; + axis::FadeTo* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.FadeTo",&arg0, "cc.FadeOut:setReverseAction"); + ok &= luaval_to_object(tolua_S, 2, "cc.FadeTo",&arg0, "cc.FadeOut:setReverseAction"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeOut_setReverseAction'", nullptr); @@ -28553,8 +28553,8 @@ int lua_cocos2dx_FadeOut_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeOut_create'", nullptr); return 0; } - cocos2d::FadeOut* ret = cocos2d::FadeOut::create(arg0); - object_to_luaval(tolua_S, "cc.FadeOut",(cocos2d::FadeOut*)ret); + axis::FadeOut* ret = axis::FadeOut::create(arg0); + object_to_luaval(tolua_S, "cc.FadeOut",(axis::FadeOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FadeOut:create",argc, 1); @@ -28568,7 +28568,7 @@ int lua_cocos2dx_FadeOut_create(lua_State* tolua_S) int lua_cocos2dx_FadeOut_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::FadeOut* cobj = nullptr; + axis::FadeOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -28585,7 +28585,7 @@ int lua_cocos2dx_FadeOut_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeOut_constructor'", nullptr); return 0; } - cobj = new cocos2d::FadeOut(); + cobj = new axis::FadeOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -28618,7 +28618,7 @@ int lua_register_cocos2dx_FadeOut(lua_State* tolua_S) tolua_function(tolua_S,"setReverseAction",lua_cocos2dx_FadeOut_setReverseAction); tolua_function(tolua_S,"create", lua_cocos2dx_FadeOut_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::FadeOut).name(); // rtti is literal storage + auto typeName = typeid(axis::FadeOut).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.FadeOut"; g_typeCast[typeName] = "cc.FadeOut"; return 1; @@ -28627,7 +28627,7 @@ int lua_register_cocos2dx_FadeOut(lua_State* tolua_S) int lua_cocos2dx_TintTo_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::TintTo* cobj = nullptr; + axis::TintTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -28639,7 +28639,7 @@ int lua_cocos2dx_TintTo_initWithDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TintTo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TintTo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TintTo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -28704,11 +28704,11 @@ int lua_cocos2dx_TintTo_create(lua_State* tolua_S) double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TintTo:create"); if (!ok) { break; } - cocos2d::Color3B arg1; + axis::Color3B arg1; ok &= luaval_to_color3b(tolua_S, 3, &arg1, "cc.TintTo:create"); if (!ok) { break; } - cocos2d::TintTo* ret = cocos2d::TintTo::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.TintTo",(cocos2d::TintTo*)ret); + axis::TintTo* ret = axis::TintTo::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.TintTo",(axis::TintTo*)ret); return 1; } } while (0); @@ -28729,8 +28729,8 @@ int lua_cocos2dx_TintTo_create(lua_State* tolua_S) uint16_t arg3; ok &= luaval_to_uint16(tolua_S, 5,&arg3, "cc.TintTo:create"); if (!ok) { break; } - cocos2d::TintTo* ret = cocos2d::TintTo::create(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.TintTo",(cocos2d::TintTo*)ret); + axis::TintTo* ret = axis::TintTo::create(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.TintTo",(axis::TintTo*)ret); return 1; } } while (0); @@ -28746,7 +28746,7 @@ int lua_cocos2dx_TintTo_create(lua_State* tolua_S) int lua_cocos2dx_TintTo_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TintTo* cobj = nullptr; + axis::TintTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -28763,7 +28763,7 @@ int lua_cocos2dx_TintTo_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TintTo_constructor'", nullptr); return 0; } - cobj = new cocos2d::TintTo(); + cobj = new axis::TintTo(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -28796,7 +28796,7 @@ int lua_register_cocos2dx_TintTo(lua_State* tolua_S) tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_TintTo_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_TintTo_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TintTo).name(); // rtti is literal storage + auto typeName = typeid(axis::TintTo).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TintTo"; g_typeCast[typeName] = "cc.TintTo"; return 1; @@ -28805,7 +28805,7 @@ int lua_register_cocos2dx_TintTo(lua_State* tolua_S) int lua_cocos2dx_TintBy_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::TintBy* cobj = nullptr; + axis::TintBy* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -28817,7 +28817,7 @@ int lua_cocos2dx_TintBy_initWithDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TintBy",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TintBy*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TintBy*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -28891,8 +28891,8 @@ int lua_cocos2dx_TintBy_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TintBy_create'", nullptr); return 0; } - cocos2d::TintBy* ret = cocos2d::TintBy::create(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.TintBy",(cocos2d::TintBy*)ret); + axis::TintBy* ret = axis::TintBy::create(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.TintBy",(axis::TintBy*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TintBy:create",argc, 4); @@ -28906,7 +28906,7 @@ int lua_cocos2dx_TintBy_create(lua_State* tolua_S) int lua_cocos2dx_TintBy_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TintBy* cobj = nullptr; + axis::TintBy* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -28923,7 +28923,7 @@ int lua_cocos2dx_TintBy_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TintBy_constructor'", nullptr); return 0; } - cobj = new cocos2d::TintBy(); + cobj = new axis::TintBy(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -28956,7 +28956,7 @@ int lua_register_cocos2dx_TintBy(lua_State* tolua_S) tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_TintBy_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_TintBy_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TintBy).name(); // rtti is literal storage + auto typeName = typeid(axis::TintBy).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TintBy"; g_typeCast[typeName] = "cc.TintBy"; return 1; @@ -28986,8 +28986,8 @@ int lua_cocos2dx_DelayTime_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_DelayTime_create'", nullptr); return 0; } - cocos2d::DelayTime* ret = cocos2d::DelayTime::create(arg0); - object_to_luaval(tolua_S, "cc.DelayTime",(cocos2d::DelayTime*)ret); + axis::DelayTime* ret = axis::DelayTime::create(arg0); + object_to_luaval(tolua_S, "cc.DelayTime",(axis::DelayTime*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.DelayTime:create",argc, 1); @@ -29001,7 +29001,7 @@ int lua_cocos2dx_DelayTime_create(lua_State* tolua_S) int lua_cocos2dx_DelayTime_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::DelayTime* cobj = nullptr; + axis::DelayTime* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -29018,7 +29018,7 @@ int lua_cocos2dx_DelayTime_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_DelayTime_constructor'", nullptr); return 0; } - cobj = new cocos2d::DelayTime(); + cobj = new axis::DelayTime(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -29050,7 +29050,7 @@ int lua_register_cocos2dx_DelayTime(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_DelayTime_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_DelayTime_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::DelayTime).name(); // rtti is literal storage + auto typeName = typeid(axis::DelayTime).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.DelayTime"; g_typeCast[typeName] = "cc.DelayTime"; return 1; @@ -29059,7 +29059,7 @@ int lua_register_cocos2dx_DelayTime(lua_State* tolua_S) int lua_cocos2dx_Animate_initWithAnimation(lua_State* tolua_S) { int argc = 0; - cocos2d::Animate* cobj = nullptr; + axis::Animate* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -29071,7 +29071,7 @@ int lua_cocos2dx_Animate_initWithAnimation(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Animate",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Animate*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Animate*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -29084,9 +29084,9 @@ int lua_cocos2dx_Animate_initWithAnimation(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Animation* arg0; + axis::Animation* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Animation",&arg0, "cc.Animate:initWithAnimation"); + ok &= luaval_to_object(tolua_S, 2, "cc.Animation",&arg0, "cc.Animate:initWithAnimation"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animate_initWithAnimation'", nullptr); @@ -29109,7 +29109,7 @@ int lua_cocos2dx_Animate_initWithAnimation(lua_State* tolua_S) int lua_cocos2dx_Animate_getAnimation(lua_State* tolua_S) { int argc = 0; - cocos2d::Animate* cobj = nullptr; + axis::Animate* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -29118,7 +29118,7 @@ int lua_cocos2dx_Animate_getAnimation(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Animate",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Animate*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Animate*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -29129,16 +29129,16 @@ int lua_cocos2dx_Animate_getAnimation(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 0) { - const cocos2d::Animation* ret = cobj->getAnimation(); - object_to_luaval(tolua_S, "cc.Animation",(cocos2d::Animation*)ret); + const axis::Animation* ret = cobj->getAnimation(); + object_to_luaval(tolua_S, "cc.Animation",(axis::Animation*)ret); return 1; } }while(0); ok = true; do{ if (argc == 0) { - cocos2d::Animation* ret = cobj->getAnimation(); - object_to_luaval(tolua_S, "cc.Animation",(cocos2d::Animation*)ret); + axis::Animation* ret = cobj->getAnimation(); + object_to_luaval(tolua_S, "cc.Animation",(axis::Animation*)ret); return 1; } }while(0); @@ -29156,7 +29156,7 @@ int lua_cocos2dx_Animate_getAnimation(lua_State* tolua_S) int lua_cocos2dx_Animate_getCurrentFrameIndex(lua_State* tolua_S) { int argc = 0; - cocos2d::Animate* cobj = nullptr; + axis::Animate* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -29168,7 +29168,7 @@ int lua_cocos2dx_Animate_getCurrentFrameIndex(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Animate",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Animate*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Animate*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -29203,7 +29203,7 @@ int lua_cocos2dx_Animate_getCurrentFrameIndex(lua_State* tolua_S) int lua_cocos2dx_Animate_setAnimation(lua_State* tolua_S) { int argc = 0; - cocos2d::Animate* cobj = nullptr; + axis::Animate* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -29215,7 +29215,7 @@ int lua_cocos2dx_Animate_setAnimation(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Animate",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Animate*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Animate*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -29228,9 +29228,9 @@ int lua_cocos2dx_Animate_setAnimation(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Animation* arg0; + axis::Animation* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Animation",&arg0, "cc.Animate:setAnimation"); + ok &= luaval_to_object(tolua_S, 2, "cc.Animation",&arg0, "cc.Animate:setAnimation"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animate_setAnimation'", nullptr); @@ -29267,15 +29267,15 @@ int lua_cocos2dx_Animate_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::Animation* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Animation",&arg0, "cc.Animate:create"); + axis::Animation* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Animation",&arg0, "cc.Animate:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animate_create'", nullptr); return 0; } - cocos2d::Animate* ret = cocos2d::Animate::create(arg0); - object_to_luaval(tolua_S, "cc.Animate",(cocos2d::Animate*)ret); + axis::Animate* ret = axis::Animate::create(arg0); + object_to_luaval(tolua_S, "cc.Animate",(axis::Animate*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Animate:create",argc, 1); @@ -29289,7 +29289,7 @@ int lua_cocos2dx_Animate_create(lua_State* tolua_S) int lua_cocos2dx_Animate_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Animate* cobj = nullptr; + axis::Animate* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -29306,7 +29306,7 @@ int lua_cocos2dx_Animate_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Animate_constructor'", nullptr); return 0; } - cobj = new cocos2d::Animate(); + cobj = new axis::Animate(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -29342,7 +29342,7 @@ int lua_register_cocos2dx_Animate(lua_State* tolua_S) tolua_function(tolua_S,"setAnimation",lua_cocos2dx_Animate_setAnimation); tolua_function(tolua_S,"create", lua_cocos2dx_Animate_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Animate).name(); // rtti is literal storage + auto typeName = typeid(axis::Animate).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Animate"; g_typeCast[typeName] = "cc.Animate"; return 1; @@ -29351,7 +29351,7 @@ int lua_register_cocos2dx_Animate(lua_State* tolua_S) int lua_cocos2dx_TargetedAction_getForcedTarget(lua_State* tolua_S) { int argc = 0; - cocos2d::TargetedAction* cobj = nullptr; + axis::TargetedAction* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -29360,7 +29360,7 @@ int lua_cocos2dx_TargetedAction_getForcedTarget(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TargetedAction",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TargetedAction*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TargetedAction*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -29371,16 +29371,16 @@ int lua_cocos2dx_TargetedAction_getForcedTarget(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 0) { - const cocos2d::Node* ret = cobj->getForcedTarget(); - object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + const axis::Node* ret = cobj->getForcedTarget(); + object_to_luaval(tolua_S, "cc.Node",(axis::Node*)ret); return 1; } }while(0); ok = true; do{ if (argc == 0) { - cocos2d::Node* ret = cobj->getForcedTarget(); - object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + axis::Node* ret = cobj->getForcedTarget(); + object_to_luaval(tolua_S, "cc.Node",(axis::Node*)ret); return 1; } }while(0); @@ -29398,7 +29398,7 @@ int lua_cocos2dx_TargetedAction_getForcedTarget(lua_State* tolua_S) int lua_cocos2dx_TargetedAction_initWithTarget(lua_State* tolua_S) { int argc = 0; - cocos2d::TargetedAction* cobj = nullptr; + axis::TargetedAction* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -29410,7 +29410,7 @@ int lua_cocos2dx_TargetedAction_initWithTarget(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TargetedAction",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TargetedAction*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TargetedAction*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -29423,12 +29423,12 @@ int lua_cocos2dx_TargetedAction_initWithTarget(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::Node* arg0; - cocos2d::FiniteTimeAction* arg1; + axis::Node* arg0; + axis::FiniteTimeAction* arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.TargetedAction:initWithTarget"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.TargetedAction:initWithTarget"); - ok &= luaval_to_object(tolua_S, 3, "cc.FiniteTimeAction",&arg1, "cc.TargetedAction:initWithTarget"); + ok &= luaval_to_object(tolua_S, 3, "cc.FiniteTimeAction",&arg1, "cc.TargetedAction:initWithTarget"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TargetedAction_initWithTarget'", nullptr); @@ -29451,7 +29451,7 @@ int lua_cocos2dx_TargetedAction_initWithTarget(lua_State* tolua_S) int lua_cocos2dx_TargetedAction_setForcedTarget(lua_State* tolua_S) { int argc = 0; - cocos2d::TargetedAction* cobj = nullptr; + axis::TargetedAction* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -29463,7 +29463,7 @@ int lua_cocos2dx_TargetedAction_setForcedTarget(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TargetedAction",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TargetedAction*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TargetedAction*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -29476,9 +29476,9 @@ int lua_cocos2dx_TargetedAction_setForcedTarget(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Node* arg0; + axis::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.TargetedAction:setForcedTarget"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.TargetedAction:setForcedTarget"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TargetedAction_setForcedTarget'", nullptr); @@ -29515,17 +29515,17 @@ int lua_cocos2dx_TargetedAction_create(lua_State* tolua_S) if (argc == 2) { - cocos2d::Node* arg0; - cocos2d::FiniteTimeAction* arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.TargetedAction:create"); - ok &= luaval_to_object(tolua_S, 3, "cc.FiniteTimeAction",&arg1, "cc.TargetedAction:create"); + axis::Node* arg0; + axis::FiniteTimeAction* arg1; + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.TargetedAction:create"); + ok &= luaval_to_object(tolua_S, 3, "cc.FiniteTimeAction",&arg1, "cc.TargetedAction:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TargetedAction_create'", nullptr); return 0; } - cocos2d::TargetedAction* ret = cocos2d::TargetedAction::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.TargetedAction",(cocos2d::TargetedAction*)ret); + axis::TargetedAction* ret = axis::TargetedAction::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.TargetedAction",(axis::TargetedAction*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TargetedAction:create",argc, 2); @@ -29539,7 +29539,7 @@ int lua_cocos2dx_TargetedAction_create(lua_State* tolua_S) int lua_cocos2dx_TargetedAction_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TargetedAction* cobj = nullptr; + axis::TargetedAction* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -29556,7 +29556,7 @@ int lua_cocos2dx_TargetedAction_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TargetedAction_constructor'", nullptr); return 0; } - cobj = new cocos2d::TargetedAction(); + cobj = new axis::TargetedAction(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -29591,7 +29591,7 @@ int lua_register_cocos2dx_TargetedAction(lua_State* tolua_S) tolua_function(tolua_S,"setForcedTarget",lua_cocos2dx_TargetedAction_setForcedTarget); tolua_function(tolua_S,"create", lua_cocos2dx_TargetedAction_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TargetedAction).name(); // rtti is literal storage + auto typeName = typeid(axis::TargetedAction).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TargetedAction"; g_typeCast[typeName] = "cc.TargetedAction"; return 1; @@ -29600,7 +29600,7 @@ int lua_register_cocos2dx_TargetedAction(lua_State* tolua_S) int lua_cocos2dx_ActionFloat_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::ActionFloat* cobj = nullptr; + axis::ActionFloat* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -29612,7 +29612,7 @@ int lua_cocos2dx_ActionFloat_initWithDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ActionFloat",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ActionFloat*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ActionFloat*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -29694,8 +29694,8 @@ int lua_cocos2dx_ActionFloat_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionFloat_create'", nullptr); return 0; } - cocos2d::ActionFloat* ret = cocos2d::ActionFloat::create(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.ActionFloat",(cocos2d::ActionFloat*)ret); + axis::ActionFloat* ret = axis::ActionFloat::create(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.ActionFloat",(axis::ActionFloat*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ActionFloat:create",argc, 4); @@ -29709,7 +29709,7 @@ int lua_cocos2dx_ActionFloat_create(lua_State* tolua_S) int lua_cocos2dx_ActionFloat_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ActionFloat* cobj = nullptr; + axis::ActionFloat* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -29726,7 +29726,7 @@ int lua_cocos2dx_ActionFloat_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionFloat_constructor'", nullptr); return 0; } - cobj = new cocos2d::ActionFloat(); + cobj = new axis::ActionFloat(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -29759,7 +29759,7 @@ int lua_register_cocos2dx_ActionFloat(lua_State* tolua_S) tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_ActionFloat_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_ActionFloat_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ActionFloat).name(); // rtti is literal storage + auto typeName = typeid(axis::ActionFloat).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.ActionFloat"; g_typeCast[typeName] = "cc.ActionFloat"; return 1; @@ -29768,7 +29768,7 @@ int lua_register_cocos2dx_ActionFloat(lua_State* tolua_S) int lua_cocos2dx_Properties_setVariable(lua_State* tolua_S) { int argc = 0; - cocos2d::Properties* cobj = nullptr; + axis::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -29780,7 +29780,7 @@ int lua_cocos2dx_Properties_setVariable(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -29821,7 +29821,7 @@ int lua_cocos2dx_Properties_setVariable(lua_State* tolua_S) int lua_cocos2dx_Properties_getFloat(lua_State* tolua_S) { int argc = 0; - cocos2d::Properties* cobj = nullptr; + axis::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -29833,7 +29833,7 @@ int lua_cocos2dx_Properties_getFloat(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -29882,7 +29882,7 @@ int lua_cocos2dx_Properties_getFloat(lua_State* tolua_S) int lua_cocos2dx_Properties_getType(lua_State* tolua_S) { int argc = 0; - cocos2d::Properties* cobj = nullptr; + axis::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -29894,7 +29894,7 @@ int lua_cocos2dx_Properties_getType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -29943,7 +29943,7 @@ int lua_cocos2dx_Properties_getType(lua_State* tolua_S) int lua_cocos2dx_Properties_getString(lua_State* tolua_S) { int argc = 0; - cocos2d::Properties* cobj = nullptr; + axis::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -29955,7 +29955,7 @@ int lua_cocos2dx_Properties_getString(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -30021,7 +30021,7 @@ int lua_cocos2dx_Properties_getString(lua_State* tolua_S) int lua_cocos2dx_Properties_exists(lua_State* tolua_S) { int argc = 0; - cocos2d::Properties* cobj = nullptr; + axis::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -30033,7 +30033,7 @@ int lua_cocos2dx_Properties_exists(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -30071,7 +30071,7 @@ int lua_cocos2dx_Properties_exists(lua_State* tolua_S) int lua_cocos2dx_Properties_getColor(lua_State* tolua_S) { int argc = 0; - cocos2d::Properties* cobj = nullptr; + axis::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -30080,7 +30080,7 @@ int lua_cocos2dx_Properties_getColor(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -30095,8 +30095,8 @@ int lua_cocos2dx_Properties_getColor(lua_State* tolua_S) std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:getColor"); arg0 = arg0_tmp.c_str(); if (!ok) { break; } - cocos2d::Vec4* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Vec4",&arg1, "cc.Properties:getColor"); + axis::Vec4* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Vec4",&arg1, "cc.Properties:getColor"); if (!ok) { break; } bool ret = cobj->getColor(arg0, arg1); @@ -30111,8 +30111,8 @@ int lua_cocos2dx_Properties_getColor(lua_State* tolua_S) std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:getColor"); arg0 = arg0_tmp.c_str(); if (!ok) { break; } - cocos2d::Vec3* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Vec3",&arg1, "cc.Properties:getColor"); + axis::Vec3* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Vec3",&arg1, "cc.Properties:getColor"); if (!ok) { break; } bool ret = cobj->getColor(arg0, arg1); @@ -30134,7 +30134,7 @@ int lua_cocos2dx_Properties_getColor(lua_State* tolua_S) int lua_cocos2dx_Properties_setString(lua_State* tolua_S) { int argc = 0; - cocos2d::Properties* cobj = nullptr; + axis::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -30146,7 +30146,7 @@ int lua_cocos2dx_Properties_setString(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -30187,7 +30187,7 @@ int lua_cocos2dx_Properties_setString(lua_State* tolua_S) int lua_cocos2dx_Properties_getNextProperty(lua_State* tolua_S) { int argc = 0; - cocos2d::Properties* cobj = nullptr; + axis::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -30199,7 +30199,7 @@ int lua_cocos2dx_Properties_getNextProperty(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -30234,7 +30234,7 @@ int lua_cocos2dx_Properties_getNextProperty(lua_State* tolua_S) int lua_cocos2dx_Properties_getNamespace(lua_State* tolua_S) { int argc = 0; - cocos2d::Properties* cobj = nullptr; + axis::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -30243,7 +30243,7 @@ int lua_cocos2dx_Properties_getNamespace(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -30266,8 +30266,8 @@ int lua_cocos2dx_Properties_getNamespace(lua_State* tolua_S) std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:getNamespace"); arg0 = arg0_tmp.c_str(); if (!ok) { break; } - cocos2d::Properties* ret = cobj->getNamespace(arg0); - object_to_luaval(tolua_S, "cc.Properties",(cocos2d::Properties*)ret); + axis::Properties* ret = cobj->getNamespace(arg0); + object_to_luaval(tolua_S, "cc.Properties",(axis::Properties*)ret); return 1; } }while(0); @@ -30282,8 +30282,8 @@ int lua_cocos2dx_Properties_getNamespace(lua_State* tolua_S) ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.Properties:getNamespace"); if (!ok) { break; } - cocos2d::Properties* ret = cobj->getNamespace(arg0, arg1); - object_to_luaval(tolua_S, "cc.Properties",(cocos2d::Properties*)ret); + axis::Properties* ret = cobj->getNamespace(arg0, arg1); + object_to_luaval(tolua_S, "cc.Properties",(axis::Properties*)ret); return 1; } }while(0); @@ -30302,8 +30302,8 @@ int lua_cocos2dx_Properties_getNamespace(lua_State* tolua_S) ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.Properties:getNamespace"); if (!ok) { break; } - cocos2d::Properties* ret = cobj->getNamespace(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.Properties",(cocos2d::Properties*)ret); + axis::Properties* ret = cobj->getNamespace(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.Properties",(axis::Properties*)ret); return 1; } }while(0); @@ -30321,7 +30321,7 @@ int lua_cocos2dx_Properties_getNamespace(lua_State* tolua_S) int lua_cocos2dx_Properties_getId(lua_State* tolua_S) { int argc = 0; - cocos2d::Properties* cobj = nullptr; + axis::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -30333,7 +30333,7 @@ int lua_cocos2dx_Properties_getId(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -30368,7 +30368,7 @@ int lua_cocos2dx_Properties_getId(lua_State* tolua_S) int lua_cocos2dx_Properties_getNextNamespace(lua_State* tolua_S) { int argc = 0; - cocos2d::Properties* cobj = nullptr; + axis::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -30380,7 +30380,7 @@ int lua_cocos2dx_Properties_getNextNamespace(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -30398,8 +30398,8 @@ int lua_cocos2dx_Properties_getNextNamespace(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_getNextNamespace'", nullptr); return 0; } - cocos2d::Properties* ret = cobj->getNextNamespace(); - object_to_luaval(tolua_S, "cc.Properties",(cocos2d::Properties*)ret); + axis::Properties* ret = cobj->getNextNamespace(); + object_to_luaval(tolua_S, "cc.Properties",(axis::Properties*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Properties:getNextNamespace",argc, 0); @@ -30415,7 +30415,7 @@ int lua_cocos2dx_Properties_getNextNamespace(lua_State* tolua_S) int lua_cocos2dx_Properties_getInt(lua_State* tolua_S) { int argc = 0; - cocos2d::Properties* cobj = nullptr; + axis::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -30427,7 +30427,7 @@ int lua_cocos2dx_Properties_getInt(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -30476,7 +30476,7 @@ int lua_cocos2dx_Properties_getInt(lua_State* tolua_S) int lua_cocos2dx_Properties_getVec3(lua_State* tolua_S) { int argc = 0; - cocos2d::Properties* cobj = nullptr; + axis::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -30488,7 +30488,7 @@ int lua_cocos2dx_Properties_getVec3(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -30502,11 +30502,11 @@ int lua_cocos2dx_Properties_getVec3(lua_State* tolua_S) if (argc == 2) { const char* arg0; - cocos2d::Vec3* arg1; + axis::Vec3* arg1; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:getVec3"); arg0 = arg0_tmp.c_str(); - ok &= luaval_to_object(tolua_S, 3, "cc.Vec3",&arg1, "cc.Properties:getVec3"); + ok &= luaval_to_object(tolua_S, 3, "cc.Vec3",&arg1, "cc.Properties:getVec3"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_getVec3'", nullptr); @@ -30529,7 +30529,7 @@ int lua_cocos2dx_Properties_getVec3(lua_State* tolua_S) int lua_cocos2dx_Properties_getVec2(lua_State* tolua_S) { int argc = 0; - cocos2d::Properties* cobj = nullptr; + axis::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -30541,7 +30541,7 @@ int lua_cocos2dx_Properties_getVec2(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -30555,11 +30555,11 @@ int lua_cocos2dx_Properties_getVec2(lua_State* tolua_S) if (argc == 2) { const char* arg0; - cocos2d::Vec2* arg1; + axis::Vec2* arg1; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:getVec2"); arg0 = arg0_tmp.c_str(); - ok &= luaval_to_object(tolua_S, 3, "cc.Vec2",&arg1, "cc.Properties:getVec2"); + ok &= luaval_to_object(tolua_S, 3, "cc.Vec2",&arg1, "cc.Properties:getVec2"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_getVec2'", nullptr); @@ -30582,7 +30582,7 @@ int lua_cocos2dx_Properties_getVec2(lua_State* tolua_S) int lua_cocos2dx_Properties_getVec4(lua_State* tolua_S) { int argc = 0; - cocos2d::Properties* cobj = nullptr; + axis::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -30594,7 +30594,7 @@ int lua_cocos2dx_Properties_getVec4(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -30608,11 +30608,11 @@ int lua_cocos2dx_Properties_getVec4(lua_State* tolua_S) if (argc == 2) { const char* arg0; - cocos2d::Vec4* arg1; + axis::Vec4* arg1; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:getVec4"); arg0 = arg0_tmp.c_str(); - ok &= luaval_to_object(tolua_S, 3, "cc.Vec4",&arg1, "cc.Properties:getVec4"); + ok &= luaval_to_object(tolua_S, 3, "cc.Vec4",&arg1, "cc.Properties:getVec4"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_getVec4'", nullptr); @@ -30635,7 +30635,7 @@ int lua_cocos2dx_Properties_getVec4(lua_State* tolua_S) int lua_cocos2dx_Properties_rewind(lua_State* tolua_S) { int argc = 0; - cocos2d::Properties* cobj = nullptr; + axis::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -30647,7 +30647,7 @@ int lua_cocos2dx_Properties_rewind(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -30682,7 +30682,7 @@ int lua_cocos2dx_Properties_rewind(lua_State* tolua_S) int lua_cocos2dx_Properties_getBool(lua_State* tolua_S) { int argc = 0; - cocos2d::Properties* cobj = nullptr; + axis::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -30694,7 +30694,7 @@ int lua_cocos2dx_Properties_getBool(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -30760,7 +30760,7 @@ int lua_cocos2dx_Properties_getBool(lua_State* tolua_S) int lua_cocos2dx_Properties_getVariable(lua_State* tolua_S) { int argc = 0; - cocos2d::Properties* cobj = nullptr; + axis::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -30772,7 +30772,7 @@ int lua_cocos2dx_Properties_getVariable(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -30827,7 +30827,7 @@ int lua_cocos2dx_Properties_getVariable(lua_State* tolua_S) int lua_cocos2dx_Properties_getQuaternionFromAxisAngle(lua_State* tolua_S) { int argc = 0; - cocos2d::Properties* cobj = nullptr; + axis::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -30839,7 +30839,7 @@ int lua_cocos2dx_Properties_getQuaternionFromAxisAngle(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -30853,11 +30853,11 @@ int lua_cocos2dx_Properties_getQuaternionFromAxisAngle(lua_State* tolua_S) if (argc == 2) { const char* arg0; - cocos2d::Quaternion* arg1; + axis::Quaternion* arg1; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:getQuaternionFromAxisAngle"); arg0 = arg0_tmp.c_str(); - ok &= luaval_to_object(tolua_S, 3, "cc.Quaternion",&arg1, "cc.Properties:getQuaternionFromAxisAngle"); + ok &= luaval_to_object(tolua_S, 3, "cc.Quaternion",&arg1, "cc.Properties:getQuaternionFromAxisAngle"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_getQuaternionFromAxisAngle'", nullptr); @@ -30880,7 +30880,7 @@ int lua_cocos2dx_Properties_getQuaternionFromAxisAngle(lua_State* tolua_S) int lua_cocos2dx_Properties_getPath(lua_State* tolua_S) { int argc = 0; - cocos2d::Properties* cobj = nullptr; + axis::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -30892,7 +30892,7 @@ int lua_cocos2dx_Properties_getPath(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -30934,7 +30934,7 @@ int lua_cocos2dx_Properties_getPath(lua_State* tolua_S) int lua_cocos2dx_Properties_getMat4(lua_State* tolua_S) { int argc = 0; - cocos2d::Properties* cobj = nullptr; + axis::Properties* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -30946,7 +30946,7 @@ int lua_cocos2dx_Properties_getMat4(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Properties",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Properties*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Properties*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -30960,11 +30960,11 @@ int lua_cocos2dx_Properties_getMat4(lua_State* tolua_S) if (argc == 2) { const char* arg0; - cocos2d::Mat4* arg1; + axis::Mat4* arg1; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:getMat4"); arg0 = arg0_tmp.c_str(); - ok &= luaval_to_object(tolua_S, 3, "cc.Mat4",&arg1, "cc.Properties:getMat4"); + ok &= luaval_to_object(tolua_S, 3, "cc.Mat4",&arg1, "cc.Properties:getMat4"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_getMat4'", nullptr); @@ -31005,10 +31005,10 @@ int lua_cocos2dx_Properties_parseColor(lua_State* tolua_S) const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:parseColor"); arg0 = arg0_tmp.c_str(); if (!ok) { break; } - cocos2d::Vec4* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Vec4",&arg1, "cc.Properties:parseColor"); + axis::Vec4* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Vec4",&arg1, "cc.Properties:parseColor"); if (!ok) { break; } - bool ret = cocos2d::Properties::parseColor(arg0, arg1); + bool ret = axis::Properties::parseColor(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } @@ -31021,10 +31021,10 @@ int lua_cocos2dx_Properties_parseColor(lua_State* tolua_S) const char* arg0; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:parseColor"); arg0 = arg0_tmp.c_str(); if (!ok) { break; } - cocos2d::Vec3* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Vec3",&arg1, "cc.Properties:parseColor"); + axis::Vec3* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Vec3",&arg1, "cc.Properties:parseColor"); if (!ok) { break; } - bool ret = cocos2d::Properties::parseColor(arg0, arg1); + bool ret = axis::Properties::parseColor(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } @@ -31056,15 +31056,15 @@ int lua_cocos2dx_Properties_parseVec3(lua_State* tolua_S) if (argc == 2) { const char* arg0; - cocos2d::Vec3* arg1; + axis::Vec3* arg1; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:parseVec3"); arg0 = arg0_tmp.c_str(); - ok &= luaval_to_object(tolua_S, 3, "cc.Vec3",&arg1, "cc.Properties:parseVec3"); + ok &= luaval_to_object(tolua_S, 3, "cc.Vec3",&arg1, "cc.Properties:parseVec3"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_parseVec3'", nullptr); return 0; } - bool ret = cocos2d::Properties::parseVec3(arg0, arg1); + bool ret = axis::Properties::parseVec3(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } @@ -31094,15 +31094,15 @@ int lua_cocos2dx_Properties_parseAxisAngle(lua_State* tolua_S) if (argc == 2) { const char* arg0; - cocos2d::Quaternion* arg1; + axis::Quaternion* arg1; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:parseAxisAngle"); arg0 = arg0_tmp.c_str(); - ok &= luaval_to_object(tolua_S, 3, "cc.Quaternion",&arg1, "cc.Properties:parseAxisAngle"); + ok &= luaval_to_object(tolua_S, 3, "cc.Quaternion",&arg1, "cc.Properties:parseAxisAngle"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_parseAxisAngle'", nullptr); return 0; } - bool ret = cocos2d::Properties::parseAxisAngle(arg0, arg1); + bool ret = axis::Properties::parseAxisAngle(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } @@ -31132,15 +31132,15 @@ int lua_cocos2dx_Properties_parseVec2(lua_State* tolua_S) if (argc == 2) { const char* arg0; - cocos2d::Vec2* arg1; + axis::Vec2* arg1; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:parseVec2"); arg0 = arg0_tmp.c_str(); - ok &= luaval_to_object(tolua_S, 3, "cc.Vec2",&arg1, "cc.Properties:parseVec2"); + ok &= luaval_to_object(tolua_S, 3, "cc.Vec2",&arg1, "cc.Properties:parseVec2"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_parseVec2'", nullptr); return 0; } - bool ret = cocos2d::Properties::parseVec2(arg0, arg1); + bool ret = axis::Properties::parseVec2(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } @@ -31170,15 +31170,15 @@ int lua_cocos2dx_Properties_parseVec4(lua_State* tolua_S) if (argc == 2) { const char* arg0; - cocos2d::Vec4* arg1; + axis::Vec4* arg1; std::string arg0_tmp; ok &= luaval_to_std_string(tolua_S, 2, &arg0_tmp, "cc.Properties:parseVec4"); arg0 = arg0_tmp.c_str(); - ok &= luaval_to_object(tolua_S, 3, "cc.Vec4",&arg1, "cc.Properties:parseVec4"); + ok &= luaval_to_object(tolua_S, 3, "cc.Vec4",&arg1, "cc.Properties:parseVec4"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Properties_parseVec4'", nullptr); return 0; } - bool ret = cocos2d::Properties::parseVec4(arg0, arg1); + bool ret = axis::Properties::parseVec4(arg0, arg1); tolua_pushboolean(tolua_S,(bool)ret); return 1; } @@ -31229,7 +31229,7 @@ int lua_register_cocos2dx_Properties(lua_State* tolua_S) tolua_function(tolua_S,"parseVec2", lua_cocos2dx_Properties_parseVec2); tolua_function(tolua_S,"parseVec4", lua_cocos2dx_Properties_parseVec4); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Properties).name(); // rtti is literal storage + auto typeName = typeid(axis::Properties).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Properties"; g_typeCast[typeName] = "cc.Properties"; return 1; @@ -31238,7 +31238,7 @@ int lua_register_cocos2dx_Properties(lua_State* tolua_S) int lua_cocos2dx_UserDefault_setIntegerForKey(lua_State* tolua_S) { int argc = 0; - cocos2d::UserDefault* cobj = nullptr; + axis::UserDefault* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -31250,7 +31250,7 @@ int lua_cocos2dx_UserDefault_setIntegerForKey(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::UserDefault*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::UserDefault*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -31291,7 +31291,7 @@ int lua_cocos2dx_UserDefault_setIntegerForKey(lua_State* tolua_S) int lua_cocos2dx_UserDefault_setLargeIntForKey(lua_State* tolua_S) { int argc = 0; - cocos2d::UserDefault* cobj = nullptr; + axis::UserDefault* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -31303,7 +31303,7 @@ int lua_cocos2dx_UserDefault_setLargeIntForKey(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::UserDefault*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::UserDefault*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -31344,7 +31344,7 @@ int lua_cocos2dx_UserDefault_setLargeIntForKey(lua_State* tolua_S) int lua_cocos2dx_UserDefault_getFloatForKey(lua_State* tolua_S) { int argc = 0; - cocos2d::UserDefault* cobj = nullptr; + axis::UserDefault* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -31353,7 +31353,7 @@ int lua_cocos2dx_UserDefault_getFloatForKey(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::UserDefault*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::UserDefault*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -31403,7 +31403,7 @@ int lua_cocos2dx_UserDefault_getFloatForKey(lua_State* tolua_S) int lua_cocos2dx_UserDefault_getBoolForKey(lua_State* tolua_S) { int argc = 0; - cocos2d::UserDefault* cobj = nullptr; + axis::UserDefault* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -31412,7 +31412,7 @@ int lua_cocos2dx_UserDefault_getBoolForKey(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::UserDefault*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::UserDefault*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -31462,7 +31462,7 @@ int lua_cocos2dx_UserDefault_getBoolForKey(lua_State* tolua_S) int lua_cocos2dx_UserDefault_flush(lua_State* tolua_S) { int argc = 0; - cocos2d::UserDefault* cobj = nullptr; + axis::UserDefault* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -31474,7 +31474,7 @@ int lua_cocos2dx_UserDefault_flush(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::UserDefault*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::UserDefault*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -31509,7 +31509,7 @@ int lua_cocos2dx_UserDefault_flush(lua_State* tolua_S) int lua_cocos2dx_UserDefault_setDoubleForKey(lua_State* tolua_S) { int argc = 0; - cocos2d::UserDefault* cobj = nullptr; + axis::UserDefault* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -31521,7 +31521,7 @@ int lua_cocos2dx_UserDefault_setDoubleForKey(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::UserDefault*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::UserDefault*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -31562,7 +31562,7 @@ int lua_cocos2dx_UserDefault_setDoubleForKey(lua_State* tolua_S) int lua_cocos2dx_UserDefault_setFloatForKey(lua_State* tolua_S) { int argc = 0; - cocos2d::UserDefault* cobj = nullptr; + axis::UserDefault* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -31574,7 +31574,7 @@ int lua_cocos2dx_UserDefault_setFloatForKey(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::UserDefault*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::UserDefault*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -31615,7 +31615,7 @@ int lua_cocos2dx_UserDefault_setFloatForKey(lua_State* tolua_S) int lua_cocos2dx_UserDefault_getStringForKey(lua_State* tolua_S) { int argc = 0; - cocos2d::UserDefault* cobj = nullptr; + axis::UserDefault* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -31624,7 +31624,7 @@ int lua_cocos2dx_UserDefault_getStringForKey(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::UserDefault*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::UserDefault*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -31674,7 +31674,7 @@ int lua_cocos2dx_UserDefault_getStringForKey(lua_State* tolua_S) int lua_cocos2dx_UserDefault_setStringForKey(lua_State* tolua_S) { int argc = 0; - cocos2d::UserDefault* cobj = nullptr; + axis::UserDefault* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -31686,7 +31686,7 @@ int lua_cocos2dx_UserDefault_setStringForKey(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::UserDefault*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::UserDefault*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -31727,7 +31727,7 @@ int lua_cocos2dx_UserDefault_setStringForKey(lua_State* tolua_S) int lua_cocos2dx_UserDefault_getLargeIntForKey(lua_State* tolua_S) { int argc = 0; - cocos2d::UserDefault* cobj = nullptr; + axis::UserDefault* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -31736,7 +31736,7 @@ int lua_cocos2dx_UserDefault_getLargeIntForKey(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::UserDefault*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::UserDefault*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -31786,7 +31786,7 @@ int lua_cocos2dx_UserDefault_getLargeIntForKey(lua_State* tolua_S) int lua_cocos2dx_UserDefault_setEncryptEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::UserDefault* cobj = nullptr; + axis::UserDefault* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -31798,7 +31798,7 @@ int lua_cocos2dx_UserDefault_setEncryptEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::UserDefault*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::UserDefault*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -31842,7 +31842,7 @@ int lua_cocos2dx_UserDefault_setEncryptEnabled(lua_State* tolua_S) int lua_cocos2dx_UserDefault_deleteValueForKey(lua_State* tolua_S) { int argc = 0; - cocos2d::UserDefault* cobj = nullptr; + axis::UserDefault* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -31854,7 +31854,7 @@ int lua_cocos2dx_UserDefault_deleteValueForKey(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::UserDefault*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::UserDefault*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -31892,7 +31892,7 @@ int lua_cocos2dx_UserDefault_deleteValueForKey(lua_State* tolua_S) int lua_cocos2dx_UserDefault_getIntegerForKey(lua_State* tolua_S) { int argc = 0; - cocos2d::UserDefault* cobj = nullptr; + axis::UserDefault* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -31901,7 +31901,7 @@ int lua_cocos2dx_UserDefault_getIntegerForKey(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::UserDefault*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::UserDefault*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -31951,7 +31951,7 @@ int lua_cocos2dx_UserDefault_getIntegerForKey(lua_State* tolua_S) int lua_cocos2dx_UserDefault_getDoubleForKey(lua_State* tolua_S) { int argc = 0; - cocos2d::UserDefault* cobj = nullptr; + axis::UserDefault* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -31960,7 +31960,7 @@ int lua_cocos2dx_UserDefault_getDoubleForKey(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::UserDefault*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::UserDefault*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -32010,7 +32010,7 @@ int lua_cocos2dx_UserDefault_getDoubleForKey(lua_State* tolua_S) int lua_cocos2dx_UserDefault_setBoolForKey(lua_State* tolua_S) { int argc = 0; - cocos2d::UserDefault* cobj = nullptr; + axis::UserDefault* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -32022,7 +32022,7 @@ int lua_cocos2dx_UserDefault_setBoolForKey(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.UserDefault",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::UserDefault*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::UserDefault*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -32082,7 +32082,7 @@ int lua_cocos2dx_UserDefault_destroyInstance(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_UserDefault_destroyInstance'", nullptr); return 0; } - cocos2d::UserDefault::destroyInstance(); + axis::UserDefault::destroyInstance(); lua_settop(tolua_S, 1); return 1; } @@ -32123,7 +32123,7 @@ int lua_register_cocos2dx_UserDefault(lua_State* tolua_S) tolua_function(tolua_S,"setBoolForKey",lua_cocos2dx_UserDefault_setBoolForKey); tolua_function(tolua_S,"destroyInstance", lua_cocos2dx_UserDefault_destroyInstance); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::UserDefault).name(); // rtti is literal storage + auto typeName = typeid(axis::UserDefault).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.UserDefault"; g_typeCast[typeName] = "cc.UserDefault"; return 1; @@ -32132,7 +32132,7 @@ int lua_register_cocos2dx_UserDefault(lua_State* tolua_S) int lua_cocos2dx_FileUtils_fullPathForFilename(lua_State* tolua_S) { int argc = 0; - cocos2d::FileUtils* cobj = nullptr; + axis::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -32144,7 +32144,7 @@ int lua_cocos2dx_FileUtils_fullPathForFilename(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -32182,7 +32182,7 @@ int lua_cocos2dx_FileUtils_fullPathForFilename(lua_State* tolua_S) int lua_cocos2dx_FileUtils_getStringFromFile(lua_State* tolua_S) { int argc = 0; - cocos2d::FileUtils* cobj = nullptr; + axis::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -32191,7 +32191,7 @@ int lua_cocos2dx_FileUtils_getStringFromFile(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -32245,7 +32245,7 @@ int lua_cocos2dx_FileUtils_getStringFromFile(lua_State* tolua_S) int lua_cocos2dx_FileUtils_getNativeWritableAbsolutePath(lua_State* tolua_S) { int argc = 0; - cocos2d::FileUtils* cobj = nullptr; + axis::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -32257,7 +32257,7 @@ int lua_cocos2dx_FileUtils_getNativeWritableAbsolutePath(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -32292,7 +32292,7 @@ int lua_cocos2dx_FileUtils_getNativeWritableAbsolutePath(lua_State* tolua_S) int lua_cocos2dx_FileUtils_removeFile(lua_State* tolua_S) { int argc = 0; - cocos2d::FileUtils* cobj = nullptr; + axis::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -32301,7 +32301,7 @@ int lua_cocos2dx_FileUtils_removeFile(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -32355,7 +32355,7 @@ int lua_cocos2dx_FileUtils_removeFile(lua_State* tolua_S) int lua_cocos2dx_FileUtils_listFilesRecursivelyAsync(lua_State* tolua_S) { int argc = 0; - cocos2d::FileUtils* cobj = nullptr; + axis::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -32367,7 +32367,7 @@ int lua_cocos2dx_FileUtils_listFilesRecursivelyAsync(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -32412,7 +32412,7 @@ int lua_cocos2dx_FileUtils_listFilesRecursivelyAsync(lua_State* tolua_S) int lua_cocos2dx_FileUtils_isAbsolutePath(lua_State* tolua_S) { int argc = 0; - cocos2d::FileUtils* cobj = nullptr; + axis::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -32424,7 +32424,7 @@ int lua_cocos2dx_FileUtils_isAbsolutePath(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -32462,7 +32462,7 @@ int lua_cocos2dx_FileUtils_isAbsolutePath(lua_State* tolua_S) int lua_cocos2dx_FileUtils_renameFile(lua_State* tolua_S) { int argc = 0; - cocos2d::FileUtils* cobj = nullptr; + axis::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -32471,7 +32471,7 @@ int lua_cocos2dx_FileUtils_renameFile(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -32581,7 +32581,7 @@ int lua_cocos2dx_FileUtils_renameFile(lua_State* tolua_S) int lua_cocos2dx_FileUtils_getDefaultResourceRootPath(lua_State* tolua_S) { int argc = 0; - cocos2d::FileUtils* cobj = nullptr; + axis::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -32593,7 +32593,7 @@ int lua_cocos2dx_FileUtils_getDefaultResourceRootPath(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -32628,7 +32628,7 @@ int lua_cocos2dx_FileUtils_getDefaultResourceRootPath(lua_State* tolua_S) int lua_cocos2dx_FileUtils_isPopupNotify(lua_State* tolua_S) { int argc = 0; - cocos2d::FileUtils* cobj = nullptr; + axis::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -32640,7 +32640,7 @@ int lua_cocos2dx_FileUtils_isPopupNotify(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -32675,7 +32675,7 @@ int lua_cocos2dx_FileUtils_isPopupNotify(lua_State* tolua_S) int lua_cocos2dx_FileUtils_getValueVectorFromFile(lua_State* tolua_S) { int argc = 0; - cocos2d::FileUtils* cobj = nullptr; + axis::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -32687,7 +32687,7 @@ int lua_cocos2dx_FileUtils_getValueVectorFromFile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -32708,7 +32708,7 @@ int lua_cocos2dx_FileUtils_getValueVectorFromFile(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_getValueVectorFromFile'", nullptr); return 0; } - cocos2d::ValueVector ret = cobj->getValueVectorFromFile(arg0); + axis::ValueVector ret = cobj->getValueVectorFromFile(arg0); ccvaluevector_to_luaval(tolua_S, ret); return 1; } @@ -32725,7 +32725,7 @@ int lua_cocos2dx_FileUtils_getValueVectorFromFile(lua_State* tolua_S) int lua_cocos2dx_FileUtils_getSearchPaths(lua_State* tolua_S) { int argc = 0; - cocos2d::FileUtils* cobj = nullptr; + axis::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -32737,7 +32737,7 @@ int lua_cocos2dx_FileUtils_getSearchPaths(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -32772,7 +32772,7 @@ int lua_cocos2dx_FileUtils_getSearchPaths(lua_State* tolua_S) int lua_cocos2dx_FileUtils_writeToFile(lua_State* tolua_S) { int argc = 0; - cocos2d::FileUtils* cobj = nullptr; + axis::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -32784,7 +32784,7 @@ int lua_cocos2dx_FileUtils_writeToFile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -32797,7 +32797,7 @@ int lua_cocos2dx_FileUtils_writeToFile(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::ValueMap arg0; + axis::ValueMap arg0; std::string_view arg1; ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.FileUtils:writeToFile"); @@ -32825,7 +32825,7 @@ int lua_cocos2dx_FileUtils_writeToFile(lua_State* tolua_S) int lua_cocos2dx_FileUtils_getOriginalSearchPaths(lua_State* tolua_S) { int argc = 0; - cocos2d::FileUtils* cobj = nullptr; + axis::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -32837,7 +32837,7 @@ int lua_cocos2dx_FileUtils_getOriginalSearchPaths(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -32872,7 +32872,7 @@ int lua_cocos2dx_FileUtils_getOriginalSearchPaths(lua_State* tolua_S) int lua_cocos2dx_FileUtils_listFiles(lua_State* tolua_S) { int argc = 0; - cocos2d::FileUtils* cobj = nullptr; + axis::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -32884,7 +32884,7 @@ int lua_cocos2dx_FileUtils_listFiles(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -32922,7 +32922,7 @@ int lua_cocos2dx_FileUtils_listFiles(lua_State* tolua_S) int lua_cocos2dx_FileUtils_getValueMapFromFile(lua_State* tolua_S) { int argc = 0; - cocos2d::FileUtils* cobj = nullptr; + axis::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -32934,7 +32934,7 @@ int lua_cocos2dx_FileUtils_getValueMapFromFile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -32955,7 +32955,7 @@ int lua_cocos2dx_FileUtils_getValueMapFromFile(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_getValueMapFromFile'", nullptr); return 0; } - cocos2d::ValueMap ret = cobj->getValueMapFromFile(arg0); + axis::ValueMap ret = cobj->getValueMapFromFile(arg0); ccvaluemap_to_luaval(tolua_S, ret); return 1; } @@ -32972,7 +32972,7 @@ int lua_cocos2dx_FileUtils_getValueMapFromFile(lua_State* tolua_S) int lua_cocos2dx_FileUtils_getFileSize(lua_State* tolua_S) { int argc = 0; - cocos2d::FileUtils* cobj = nullptr; + axis::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -32981,7 +32981,7 @@ int lua_cocos2dx_FileUtils_getFileSize(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -33035,7 +33035,7 @@ int lua_cocos2dx_FileUtils_getFileSize(lua_State* tolua_S) int lua_cocos2dx_FileUtils_getValueMapFromData(lua_State* tolua_S) { int argc = 0; - cocos2d::FileUtils* cobj = nullptr; + axis::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -33047,7 +33047,7 @@ int lua_cocos2dx_FileUtils_getValueMapFromData(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -33071,7 +33071,7 @@ int lua_cocos2dx_FileUtils_getValueMapFromData(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_getValueMapFromData'", nullptr); return 0; } - cocos2d::ValueMap ret = cobj->getValueMapFromData(arg0, arg1); + axis::ValueMap ret = cobj->getValueMapFromData(arg0, arg1); ccvaluemap_to_luaval(tolua_S, ret); return 1; } @@ -33088,7 +33088,7 @@ int lua_cocos2dx_FileUtils_getValueMapFromData(lua_State* tolua_S) int lua_cocos2dx_FileUtils_removeDirectory(lua_State* tolua_S) { int argc = 0; - cocos2d::FileUtils* cobj = nullptr; + axis::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -33097,7 +33097,7 @@ int lua_cocos2dx_FileUtils_removeDirectory(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -33151,7 +33151,7 @@ int lua_cocos2dx_FileUtils_removeDirectory(lua_State* tolua_S) int lua_cocos2dx_FileUtils_setSearchPaths(lua_State* tolua_S) { int argc = 0; - cocos2d::FileUtils* cobj = nullptr; + axis::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -33163,7 +33163,7 @@ int lua_cocos2dx_FileUtils_setSearchPaths(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -33201,7 +33201,7 @@ int lua_cocos2dx_FileUtils_setSearchPaths(lua_State* tolua_S) int lua_cocos2dx_FileUtils_writeStringToFile(lua_State* tolua_S) { int argc = 0; - cocos2d::FileUtils* cobj = nullptr; + axis::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -33210,7 +33210,7 @@ int lua_cocos2dx_FileUtils_writeStringToFile(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -33272,7 +33272,7 @@ int lua_cocos2dx_FileUtils_writeStringToFile(lua_State* tolua_S) int lua_cocos2dx_FileUtils_isFileExistInternal(lua_State* tolua_S) { int argc = 0; - cocos2d::FileUtils* cobj = nullptr; + axis::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -33284,7 +33284,7 @@ int lua_cocos2dx_FileUtils_isFileExistInternal(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -33322,7 +33322,7 @@ int lua_cocos2dx_FileUtils_isFileExistInternal(lua_State* tolua_S) int lua_cocos2dx_FileUtils_setSearchResolutionsOrder(lua_State* tolua_S) { int argc = 0; - cocos2d::FileUtils* cobj = nullptr; + axis::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -33334,7 +33334,7 @@ int lua_cocos2dx_FileUtils_setSearchResolutionsOrder(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -33372,7 +33372,7 @@ int lua_cocos2dx_FileUtils_setSearchResolutionsOrder(lua_State* tolua_S) int lua_cocos2dx_FileUtils_addSearchResolutionsOrder(lua_State* tolua_S) { int argc = 0; - cocos2d::FileUtils* cobj = nullptr; + axis::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -33384,7 +33384,7 @@ int lua_cocos2dx_FileUtils_addSearchResolutionsOrder(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -33439,7 +33439,7 @@ int lua_cocos2dx_FileUtils_addSearchResolutionsOrder(lua_State* tolua_S) int lua_cocos2dx_FileUtils_addSearchPath(lua_State* tolua_S) { int argc = 0; - cocos2d::FileUtils* cobj = nullptr; + axis::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -33451,7 +33451,7 @@ int lua_cocos2dx_FileUtils_addSearchPath(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -33506,7 +33506,7 @@ int lua_cocos2dx_FileUtils_addSearchPath(lua_State* tolua_S) int lua_cocos2dx_FileUtils_writeValueVectorToFile(lua_State* tolua_S) { int argc = 0; - cocos2d::FileUtils* cobj = nullptr; + axis::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -33515,7 +33515,7 @@ int lua_cocos2dx_FileUtils_writeValueVectorToFile(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -33526,7 +33526,7 @@ int lua_cocos2dx_FileUtils_writeValueVectorToFile(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 3) { - cocos2d::ValueVector arg0; + axis::ValueVector arg0; ok &= luaval_to_ccvaluevector(tolua_S, 2, &arg0, "cc.FileUtils:writeValueVectorToFile"); if (!ok) { break; } @@ -33550,7 +33550,7 @@ int lua_cocos2dx_FileUtils_writeValueVectorToFile(lua_State* tolua_S) ok = true; do{ if (argc == 2) { - cocos2d::ValueVector arg0; + axis::ValueVector arg0; ok &= luaval_to_ccvaluevector(tolua_S, 2, &arg0, "cc.FileUtils:writeValueVectorToFile"); if (!ok) { break; } @@ -33577,7 +33577,7 @@ int lua_cocos2dx_FileUtils_writeValueVectorToFile(lua_State* tolua_S) int lua_cocos2dx_FileUtils_isFileExist(lua_State* tolua_S) { int argc = 0; - cocos2d::FileUtils* cobj = nullptr; + axis::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -33586,7 +33586,7 @@ int lua_cocos2dx_FileUtils_isFileExist(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -33640,7 +33640,7 @@ int lua_cocos2dx_FileUtils_isFileExist(lua_State* tolua_S) int lua_cocos2dx_FileUtils_purgeCachedEntries(lua_State* tolua_S) { int argc = 0; - cocos2d::FileUtils* cobj = nullptr; + axis::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -33652,7 +33652,7 @@ int lua_cocos2dx_FileUtils_purgeCachedEntries(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -33687,7 +33687,7 @@ int lua_cocos2dx_FileUtils_purgeCachedEntries(lua_State* tolua_S) int lua_cocos2dx_FileUtils_fullPathFromRelativeFile(lua_State* tolua_S) { int argc = 0; - cocos2d::FileUtils* cobj = nullptr; + axis::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -33699,7 +33699,7 @@ int lua_cocos2dx_FileUtils_fullPathFromRelativeFile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -33740,7 +33740,7 @@ int lua_cocos2dx_FileUtils_fullPathFromRelativeFile(lua_State* tolua_S) int lua_cocos2dx_FileUtils_isDirectoryExistInternal(lua_State* tolua_S) { int argc = 0; - cocos2d::FileUtils* cobj = nullptr; + axis::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -33752,7 +33752,7 @@ int lua_cocos2dx_FileUtils_isDirectoryExistInternal(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -33790,7 +33790,7 @@ int lua_cocos2dx_FileUtils_isDirectoryExistInternal(lua_State* tolua_S) int lua_cocos2dx_FileUtils_writeValueMapToFile(lua_State* tolua_S) { int argc = 0; - cocos2d::FileUtils* cobj = nullptr; + axis::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -33799,7 +33799,7 @@ int lua_cocos2dx_FileUtils_writeValueMapToFile(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -33810,7 +33810,7 @@ int lua_cocos2dx_FileUtils_writeValueMapToFile(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 3) { - cocos2d::ValueMap arg0; + axis::ValueMap arg0; ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.FileUtils:writeValueMapToFile"); if (!ok) { break; } @@ -33834,7 +33834,7 @@ int lua_cocos2dx_FileUtils_writeValueMapToFile(lua_State* tolua_S) ok = true; do{ if (argc == 2) { - cocos2d::ValueMap arg0; + axis::ValueMap arg0; ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.FileUtils:writeValueMapToFile"); if (!ok) { break; } @@ -33861,7 +33861,7 @@ int lua_cocos2dx_FileUtils_writeValueMapToFile(lua_State* tolua_S) int lua_cocos2dx_FileUtils_getFileExtension(lua_State* tolua_S) { int argc = 0; - cocos2d::FileUtils* cobj = nullptr; + axis::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -33873,7 +33873,7 @@ int lua_cocos2dx_FileUtils_getFileExtension(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -33911,7 +33911,7 @@ int lua_cocos2dx_FileUtils_getFileExtension(lua_State* tolua_S) int lua_cocos2dx_FileUtils_setWritablePath(lua_State* tolua_S) { int argc = 0; - cocos2d::FileUtils* cobj = nullptr; + axis::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -33923,7 +33923,7 @@ int lua_cocos2dx_FileUtils_setWritablePath(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -33961,7 +33961,7 @@ int lua_cocos2dx_FileUtils_setWritablePath(lua_State* tolua_S) int lua_cocos2dx_FileUtils_setPopupNotify(lua_State* tolua_S) { int argc = 0; - cocos2d::FileUtils* cobj = nullptr; + axis::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -33973,7 +33973,7 @@ int lua_cocos2dx_FileUtils_setPopupNotify(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -34011,7 +34011,7 @@ int lua_cocos2dx_FileUtils_setPopupNotify(lua_State* tolua_S) int lua_cocos2dx_FileUtils_isDirectoryExist(lua_State* tolua_S) { int argc = 0; - cocos2d::FileUtils* cobj = nullptr; + axis::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -34020,7 +34020,7 @@ int lua_cocos2dx_FileUtils_isDirectoryExist(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -34074,7 +34074,7 @@ int lua_cocos2dx_FileUtils_isDirectoryExist(lua_State* tolua_S) int lua_cocos2dx_FileUtils_setDefaultResourceRootPath(lua_State* tolua_S) { int argc = 0; - cocos2d::FileUtils* cobj = nullptr; + axis::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -34086,7 +34086,7 @@ int lua_cocos2dx_FileUtils_setDefaultResourceRootPath(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -34124,7 +34124,7 @@ int lua_cocos2dx_FileUtils_setDefaultResourceRootPath(lua_State* tolua_S) int lua_cocos2dx_FileUtils_getSearchResolutionsOrder(lua_State* tolua_S) { int argc = 0; - cocos2d::FileUtils* cobj = nullptr; + axis::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -34136,7 +34136,7 @@ int lua_cocos2dx_FileUtils_getSearchResolutionsOrder(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -34171,7 +34171,7 @@ int lua_cocos2dx_FileUtils_getSearchResolutionsOrder(lua_State* tolua_S) int lua_cocos2dx_FileUtils_createDirectory(lua_State* tolua_S) { int argc = 0; - cocos2d::FileUtils* cobj = nullptr; + axis::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -34180,7 +34180,7 @@ int lua_cocos2dx_FileUtils_createDirectory(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -34234,7 +34234,7 @@ int lua_cocos2dx_FileUtils_createDirectory(lua_State* tolua_S) int lua_cocos2dx_FileUtils_listFilesAsync(lua_State* tolua_S) { int argc = 0; - cocos2d::FileUtils* cobj = nullptr; + axis::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -34246,7 +34246,7 @@ int lua_cocos2dx_FileUtils_listFilesAsync(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -34291,7 +34291,7 @@ int lua_cocos2dx_FileUtils_listFilesAsync(lua_State* tolua_S) int lua_cocos2dx_FileUtils_getWritablePath(lua_State* tolua_S) { int argc = 0; - cocos2d::FileUtils* cobj = nullptr; + axis::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -34303,7 +34303,7 @@ int lua_cocos2dx_FileUtils_getWritablePath(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -34338,7 +34338,7 @@ int lua_cocos2dx_FileUtils_getWritablePath(lua_State* tolua_S) int lua_cocos2dx_FileUtils_listFilesRecursively(lua_State* tolua_S) { int argc = 0; - cocos2d::FileUtils* cobj = nullptr; + axis::FileUtils* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -34350,7 +34350,7 @@ int lua_cocos2dx_FileUtils_listFilesRecursively(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FileUtils",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FileUtils*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FileUtils*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -34417,7 +34417,7 @@ int lua_cocos2dx_FileUtils_writeBinaryToFile(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_writeBinaryToFile'", nullptr); return 0; } - bool ret = cocos2d::FileUtils::writeBinaryToFile(arg0, arg1, arg2); + bool ret = axis::FileUtils::writeBinaryToFile(arg0, arg1, arg2); tolua_pushboolean(tolua_S,(bool)ret); return 1; } @@ -34451,8 +34451,8 @@ int lua_cocos2dx_FileUtils_getInstance(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_getInstance'", nullptr); return 0; } - cocos2d::FileUtils* ret = cocos2d::FileUtils::getInstance(); - object_to_luaval(tolua_S, "cc.FileUtils",(cocos2d::FileUtils*)ret); + axis::FileUtils* ret = axis::FileUtils::getInstance(); + object_to_luaval(tolua_S, "cc.FileUtils",(axis::FileUtils*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FileUtils:getInstance",argc, 0); @@ -34487,7 +34487,7 @@ int lua_cocos2dx_FileUtils_isAbsolutePathInternal(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_isAbsolutePathInternal'", nullptr); return 0; } - bool ret = cocos2d::FileUtils::isAbsolutePathInternal(arg0); + bool ret = axis::FileUtils::isAbsolutePathInternal(arg0); tolua_pushboolean(tolua_S,(bool)ret); return 1; } @@ -34521,7 +34521,7 @@ int lua_cocos2dx_FileUtils_destroyInstance(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_destroyInstance'", nullptr); return 0; } - cocos2d::FileUtils::destroyInstance(); + axis::FileUtils::destroyInstance(); lua_settop(tolua_S, 1); return 1; } @@ -34557,7 +34557,7 @@ int lua_cocos2dx_FileUtils_getFileShortName(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FileUtils_getFileShortName'", nullptr); return 0; } - std::string ret = cocos2d::FileUtils::getFileShortName(arg0); + std::string ret = axis::FileUtils::getFileShortName(arg0); lua_pushlstring(tolua_S,ret.c_str(),ret.length()); return 1; } @@ -34627,7 +34627,7 @@ int lua_register_cocos2dx_FileUtils(lua_State* tolua_S) tolua_function(tolua_S,"destroyInstance", lua_cocos2dx_FileUtils_destroyInstance); tolua_function(tolua_S,"getFileShortName", lua_cocos2dx_FileUtils_getFileShortName); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::FileUtils).name(); // rtti is literal storage + auto typeName = typeid(axis::FileUtils).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.FileUtils"; g_typeCast[typeName] = "cc.FileUtils"; return 1; @@ -34646,7 +34646,7 @@ int lua_register_cocos2dx_EventAcceleration(lua_State* tolua_S) tolua_beginmodule(tolua_S,"EventAcceleration"); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EventAcceleration).name(); // rtti is literal storage + auto typeName = typeid(axis::EventAcceleration).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EventAcceleration"; g_typeCast[typeName] = "cc.EventAcceleration"; return 1; @@ -34655,7 +34655,7 @@ int lua_register_cocos2dx_EventAcceleration(lua_State* tolua_S) int lua_cocos2dx_EventCustom_getEventName(lua_State* tolua_S) { int argc = 0; - cocos2d::EventCustom* cobj = nullptr; + axis::EventCustom* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -34667,7 +34667,7 @@ int lua_cocos2dx_EventCustom_getEventName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventCustom",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventCustom*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventCustom*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -34702,7 +34702,7 @@ int lua_cocos2dx_EventCustom_getEventName(lua_State* tolua_S) int lua_cocos2dx_EventCustom_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EventCustom* cobj = nullptr; + axis::EventCustom* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -34722,7 +34722,7 @@ int lua_cocos2dx_EventCustom_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventCustom_constructor'", nullptr); return 0; } - cobj = new cocos2d::EventCustom(arg0); + cobj = new axis::EventCustom(arg0); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -34754,7 +34754,7 @@ int lua_register_cocos2dx_EventCustom(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_EventCustom_constructor); tolua_function(tolua_S,"getEventName",lua_cocos2dx_EventCustom_getEventName); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EventCustom).name(); // rtti is literal storage + auto typeName = typeid(axis::EventCustom).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EventCustom"; g_typeCast[typeName] = "cc.EventCustom"; return 1; @@ -34763,7 +34763,7 @@ int lua_register_cocos2dx_EventCustom(lua_State* tolua_S) int lua_cocos2dx_EventDispatcher_pauseEventListenersForTarget(lua_State* tolua_S) { int argc = 0; - cocos2d::EventDispatcher* cobj = nullptr; + axis::EventDispatcher* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -34775,7 +34775,7 @@ int lua_cocos2dx_EventDispatcher_pauseEventListenersForTarget(lua_State* tolua_S if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventDispatcher*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -34788,9 +34788,9 @@ int lua_cocos2dx_EventDispatcher_pauseEventListenersForTarget(lua_State* tolua_S argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Node* arg0; + axis::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.EventDispatcher:pauseEventListenersForTarget"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.EventDispatcher:pauseEventListenersForTarget"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventDispatcher_pauseEventListenersForTarget'", nullptr); @@ -34802,10 +34802,10 @@ int lua_cocos2dx_EventDispatcher_pauseEventListenersForTarget(lua_State* tolua_S } if (argc == 2) { - cocos2d::Node* arg0; + axis::Node* arg0; bool arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.EventDispatcher:pauseEventListenersForTarget"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.EventDispatcher:pauseEventListenersForTarget"); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.EventDispatcher:pauseEventListenersForTarget"); if(!ok) @@ -34830,7 +34830,7 @@ int lua_cocos2dx_EventDispatcher_pauseEventListenersForTarget(lua_State* tolua_S int lua_cocos2dx_EventDispatcher_addEventListenerWithSceneGraphPriority(lua_State* tolua_S) { int argc = 0; - cocos2d::EventDispatcher* cobj = nullptr; + axis::EventDispatcher* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -34842,7 +34842,7 @@ int lua_cocos2dx_EventDispatcher_addEventListenerWithSceneGraphPriority(lua_Stat if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventDispatcher*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -34855,12 +34855,12 @@ int lua_cocos2dx_EventDispatcher_addEventListenerWithSceneGraphPriority(lua_Stat argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::EventListener* arg0; - cocos2d::Node* arg1; + axis::EventListener* arg0; + axis::Node* arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.EventListener",&arg0, "cc.EventDispatcher:addEventListenerWithSceneGraphPriority"); + ok &= luaval_to_object(tolua_S, 2, "cc.EventListener",&arg0, "cc.EventDispatcher:addEventListenerWithSceneGraphPriority"); - ok &= luaval_to_object(tolua_S, 3, "cc.Node",&arg1, "cc.EventDispatcher:addEventListenerWithSceneGraphPriority"); + ok &= luaval_to_object(tolua_S, 3, "cc.Node",&arg1, "cc.EventDispatcher:addEventListenerWithSceneGraphPriority"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventDispatcher_addEventListenerWithSceneGraphPriority'", nullptr); @@ -34883,7 +34883,7 @@ int lua_cocos2dx_EventDispatcher_addEventListenerWithSceneGraphPriority(lua_Stat int lua_cocos2dx_EventDispatcher_setEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::EventDispatcher* cobj = nullptr; + axis::EventDispatcher* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -34895,7 +34895,7 @@ int lua_cocos2dx_EventDispatcher_setEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventDispatcher*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -34933,7 +34933,7 @@ int lua_cocos2dx_EventDispatcher_setEnabled(lua_State* tolua_S) int lua_cocos2dx_EventDispatcher_addEventListenerWithFixedPriority(lua_State* tolua_S) { int argc = 0; - cocos2d::EventDispatcher* cobj = nullptr; + axis::EventDispatcher* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -34945,7 +34945,7 @@ int lua_cocos2dx_EventDispatcher_addEventListenerWithFixedPriority(lua_State* to if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventDispatcher*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -34958,10 +34958,10 @@ int lua_cocos2dx_EventDispatcher_addEventListenerWithFixedPriority(lua_State* to argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::EventListener* arg0; + axis::EventListener* arg0; int arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.EventListener",&arg0, "cc.EventDispatcher:addEventListenerWithFixedPriority"); + ok &= luaval_to_object(tolua_S, 2, "cc.EventListener",&arg0, "cc.EventDispatcher:addEventListenerWithFixedPriority"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.EventDispatcher:addEventListenerWithFixedPriority"); if(!ok) @@ -34986,7 +34986,7 @@ int lua_cocos2dx_EventDispatcher_addEventListenerWithFixedPriority(lua_State* to int lua_cocos2dx_EventDispatcher_removeEventListener(lua_State* tolua_S) { int argc = 0; - cocos2d::EventDispatcher* cobj = nullptr; + axis::EventDispatcher* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -34998,7 +34998,7 @@ int lua_cocos2dx_EventDispatcher_removeEventListener(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventDispatcher*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -35011,9 +35011,9 @@ int lua_cocos2dx_EventDispatcher_removeEventListener(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::EventListener* arg0; + axis::EventListener* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.EventListener",&arg0, "cc.EventDispatcher:removeEventListener"); + ok &= luaval_to_object(tolua_S, 2, "cc.EventListener",&arg0, "cc.EventDispatcher:removeEventListener"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventDispatcher_removeEventListener'", nullptr); @@ -35036,7 +35036,7 @@ int lua_cocos2dx_EventDispatcher_removeEventListener(lua_State* tolua_S) int lua_cocos2dx_EventDispatcher_dispatchCustomEvent(lua_State* tolua_S) { int argc = 0; - cocos2d::EventDispatcher* cobj = nullptr; + axis::EventDispatcher* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -35048,7 +35048,7 @@ int lua_cocos2dx_EventDispatcher_dispatchCustomEvent(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventDispatcher*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -35104,7 +35104,7 @@ int lua_cocos2dx_EventDispatcher_dispatchCustomEvent(lua_State* tolua_S) int lua_cocos2dx_EventDispatcher_resumeEventListenersForTarget(lua_State* tolua_S) { int argc = 0; - cocos2d::EventDispatcher* cobj = nullptr; + axis::EventDispatcher* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -35116,7 +35116,7 @@ int lua_cocos2dx_EventDispatcher_resumeEventListenersForTarget(lua_State* tolua_ if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventDispatcher*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -35129,9 +35129,9 @@ int lua_cocos2dx_EventDispatcher_resumeEventListenersForTarget(lua_State* tolua_ argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Node* arg0; + axis::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.EventDispatcher:resumeEventListenersForTarget"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.EventDispatcher:resumeEventListenersForTarget"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventDispatcher_resumeEventListenersForTarget'", nullptr); @@ -35143,10 +35143,10 @@ int lua_cocos2dx_EventDispatcher_resumeEventListenersForTarget(lua_State* tolua_ } if (argc == 2) { - cocos2d::Node* arg0; + axis::Node* arg0; bool arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.EventDispatcher:resumeEventListenersForTarget"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.EventDispatcher:resumeEventListenersForTarget"); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.EventDispatcher:resumeEventListenersForTarget"); if(!ok) @@ -35171,7 +35171,7 @@ int lua_cocos2dx_EventDispatcher_resumeEventListenersForTarget(lua_State* tolua_ int lua_cocos2dx_EventDispatcher_removeEventListenersForTarget(lua_State* tolua_S) { int argc = 0; - cocos2d::EventDispatcher* cobj = nullptr; + axis::EventDispatcher* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -35183,7 +35183,7 @@ int lua_cocos2dx_EventDispatcher_removeEventListenersForTarget(lua_State* tolua_ if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventDispatcher*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -35196,9 +35196,9 @@ int lua_cocos2dx_EventDispatcher_removeEventListenersForTarget(lua_State* tolua_ argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Node* arg0; + axis::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.EventDispatcher:removeEventListenersForTarget"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.EventDispatcher:removeEventListenersForTarget"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventDispatcher_removeEventListenersForTarget'", nullptr); @@ -35210,10 +35210,10 @@ int lua_cocos2dx_EventDispatcher_removeEventListenersForTarget(lua_State* tolua_ } if (argc == 2) { - cocos2d::Node* arg0; + axis::Node* arg0; bool arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.EventDispatcher:removeEventListenersForTarget"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.EventDispatcher:removeEventListenersForTarget"); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.EventDispatcher:removeEventListenersForTarget"); if(!ok) @@ -35238,7 +35238,7 @@ int lua_cocos2dx_EventDispatcher_removeEventListenersForTarget(lua_State* tolua_ int lua_cocos2dx_EventDispatcher_setPriority(lua_State* tolua_S) { int argc = 0; - cocos2d::EventDispatcher* cobj = nullptr; + axis::EventDispatcher* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -35250,7 +35250,7 @@ int lua_cocos2dx_EventDispatcher_setPriority(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventDispatcher*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -35263,10 +35263,10 @@ int lua_cocos2dx_EventDispatcher_setPriority(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::EventListener* arg0; + axis::EventListener* arg0; int arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.EventListener",&arg0, "cc.EventDispatcher:setPriority"); + ok &= luaval_to_object(tolua_S, 2, "cc.EventListener",&arg0, "cc.EventDispatcher:setPriority"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.EventDispatcher:setPriority"); if(!ok) @@ -35291,7 +35291,7 @@ int lua_cocos2dx_EventDispatcher_setPriority(lua_State* tolua_S) int lua_cocos2dx_EventDispatcher_addCustomEventListener(lua_State* tolua_S) { int argc = 0; - cocos2d::EventDispatcher* cobj = nullptr; + axis::EventDispatcher* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -35303,7 +35303,7 @@ int lua_cocos2dx_EventDispatcher_addCustomEventListener(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventDispatcher*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -35317,7 +35317,7 @@ int lua_cocos2dx_EventDispatcher_addCustomEventListener(lua_State* tolua_S) if (argc == 2) { std::string_view arg0; - std::function arg1; + std::function arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.EventDispatcher:addCustomEventListener"); @@ -35331,8 +35331,8 @@ int lua_cocos2dx_EventDispatcher_addCustomEventListener(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventDispatcher_addCustomEventListener'", nullptr); return 0; } - cocos2d::EventListenerCustom* ret = cobj->addCustomEventListener(arg0, arg1); - object_to_luaval(tolua_S, "cc.EventListenerCustom",(cocos2d::EventListenerCustom*)ret); + axis::EventListenerCustom* ret = cobj->addCustomEventListener(arg0, arg1); + object_to_luaval(tolua_S, "cc.EventListenerCustom",(axis::EventListenerCustom*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventDispatcher:addCustomEventListener",argc, 2); @@ -35348,7 +35348,7 @@ int lua_cocos2dx_EventDispatcher_addCustomEventListener(lua_State* tolua_S) int lua_cocos2dx_EventDispatcher_dispatchEvent(lua_State* tolua_S) { int argc = 0; - cocos2d::EventDispatcher* cobj = nullptr; + axis::EventDispatcher* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -35360,7 +35360,7 @@ int lua_cocos2dx_EventDispatcher_dispatchEvent(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventDispatcher*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -35373,9 +35373,9 @@ int lua_cocos2dx_EventDispatcher_dispatchEvent(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Event* arg0; + axis::Event* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Event",&arg0, "cc.EventDispatcher:dispatchEvent"); + ok &= luaval_to_object(tolua_S, 2, "cc.Event",&arg0, "cc.EventDispatcher:dispatchEvent"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventDispatcher_dispatchEvent'", nullptr); @@ -35398,7 +35398,7 @@ int lua_cocos2dx_EventDispatcher_dispatchEvent(lua_State* tolua_S) int lua_cocos2dx_EventDispatcher_hasEventListener(lua_State* tolua_S) { int argc = 0; - cocos2d::EventDispatcher* cobj = nullptr; + axis::EventDispatcher* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -35410,7 +35410,7 @@ int lua_cocos2dx_EventDispatcher_hasEventListener(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventDispatcher*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -35448,7 +35448,7 @@ int lua_cocos2dx_EventDispatcher_hasEventListener(lua_State* tolua_S) int lua_cocos2dx_EventDispatcher_removeAllEventListeners(lua_State* tolua_S) { int argc = 0; - cocos2d::EventDispatcher* cobj = nullptr; + axis::EventDispatcher* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -35460,7 +35460,7 @@ int lua_cocos2dx_EventDispatcher_removeAllEventListeners(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventDispatcher*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -35495,7 +35495,7 @@ int lua_cocos2dx_EventDispatcher_removeAllEventListeners(lua_State* tolua_S) int lua_cocos2dx_EventDispatcher_removeCustomEventListeners(lua_State* tolua_S) { int argc = 0; - cocos2d::EventDispatcher* cobj = nullptr; + axis::EventDispatcher* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -35507,7 +35507,7 @@ int lua_cocos2dx_EventDispatcher_removeCustomEventListeners(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventDispatcher*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -35545,7 +35545,7 @@ int lua_cocos2dx_EventDispatcher_removeCustomEventListeners(lua_State* tolua_S) int lua_cocos2dx_EventDispatcher_isEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::EventDispatcher* cobj = nullptr; + axis::EventDispatcher* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -35557,7 +35557,7 @@ int lua_cocos2dx_EventDispatcher_isEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventDispatcher*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -35592,7 +35592,7 @@ int lua_cocos2dx_EventDispatcher_isEnabled(lua_State* tolua_S) int lua_cocos2dx_EventDispatcher_removeEventListenersForType(lua_State* tolua_S) { int argc = 0; - cocos2d::EventDispatcher* cobj = nullptr; + axis::EventDispatcher* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -35604,7 +35604,7 @@ int lua_cocos2dx_EventDispatcher_removeEventListenersForType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventDispatcher",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventDispatcher*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventDispatcher*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -35617,7 +35617,7 @@ int lua_cocos2dx_EventDispatcher_removeEventListenersForType(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::EventListener::Type arg0; + axis::EventListener::Type arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.EventDispatcher:removeEventListenersForType"); if(!ok) @@ -35642,7 +35642,7 @@ int lua_cocos2dx_EventDispatcher_removeEventListenersForType(lua_State* tolua_S) int lua_cocos2dx_EventDispatcher_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EventDispatcher* cobj = nullptr; + axis::EventDispatcher* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -35659,7 +35659,7 @@ int lua_cocos2dx_EventDispatcher_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventDispatcher_constructor'", nullptr); return 0; } - cobj = new cocos2d::EventDispatcher(); + cobj = new axis::EventDispatcher(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -35706,7 +35706,7 @@ int lua_register_cocos2dx_EventDispatcher(lua_State* tolua_S) tolua_function(tolua_S,"isEnabled",lua_cocos2dx_EventDispatcher_isEnabled); tolua_function(tolua_S,"removeEventListenersForType",lua_cocos2dx_EventDispatcher_removeEventListenersForType); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EventDispatcher).name(); // rtti is literal storage + auto typeName = typeid(axis::EventDispatcher).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EventDispatcher"; g_typeCast[typeName] = "cc.EventDispatcher"; return 1; @@ -35715,7 +35715,7 @@ int lua_register_cocos2dx_EventDispatcher(lua_State* tolua_S) int lua_cocos2dx_EventFocus_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EventFocus* cobj = nullptr; + axis::EventFocus* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -35727,18 +35727,18 @@ int lua_cocos2dx_EventFocus_constructor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::ui::Widget* arg0; - cocos2d::ui::Widget* arg1; + axis::ui::Widget* arg0; + axis::ui::Widget* arg1; - ok &= luaval_to_object(tolua_S, 2, "ccui.Widget",&arg0, "cc.EventFocus:EventFocus"); + ok &= luaval_to_object(tolua_S, 2, "ccui.Widget",&arg0, "cc.EventFocus:EventFocus"); - ok &= luaval_to_object(tolua_S, 3, "ccui.Widget",&arg1, "cc.EventFocus:EventFocus"); + ok &= luaval_to_object(tolua_S, 3, "ccui.Widget",&arg1, "cc.EventFocus:EventFocus"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventFocus_constructor'", nullptr); return 0; } - cobj = new cocos2d::EventFocus(arg0, arg1); + cobj = new axis::EventFocus(arg0, arg1); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -35769,7 +35769,7 @@ int lua_register_cocos2dx_EventFocus(lua_State* tolua_S) tolua_beginmodule(tolua_S,"EventFocus"); tolua_function(tolua_S,"new",lua_cocos2dx_EventFocus_constructor); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EventFocus).name(); // rtti is literal storage + auto typeName = typeid(axis::EventFocus).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EventFocus"; g_typeCast[typeName] = "cc.EventFocus"; return 1; @@ -35778,7 +35778,7 @@ int lua_register_cocos2dx_EventFocus(lua_State* tolua_S) int lua_cocos2dx_EventListenerAcceleration_init(lua_State* tolua_S) { int argc = 0; - cocos2d::EventListenerAcceleration* cobj = nullptr; + axis::EventListenerAcceleration* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -35790,7 +35790,7 @@ int lua_cocos2dx_EventListenerAcceleration_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventListenerAcceleration",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventListenerAcceleration*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventListenerAcceleration*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -35803,7 +35803,7 @@ int lua_cocos2dx_EventListenerAcceleration_init(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - std::function arg0; + std::function arg0; do { // Lambda binding for lua is not supported. @@ -35832,7 +35832,7 @@ int lua_cocos2dx_EventListenerAcceleration_init(lua_State* tolua_S) int lua_cocos2dx_EventListenerAcceleration_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EventListenerAcceleration* cobj = nullptr; + axis::EventListenerAcceleration* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -35849,7 +35849,7 @@ int lua_cocos2dx_EventListenerAcceleration_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventListenerAcceleration_constructor'", nullptr); return 0; } - cobj = new cocos2d::EventListenerAcceleration(); + cobj = new axis::EventListenerAcceleration(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -35881,7 +35881,7 @@ int lua_register_cocos2dx_EventListenerAcceleration(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_EventListenerAcceleration_constructor); tolua_function(tolua_S,"init",lua_cocos2dx_EventListenerAcceleration_init); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EventListenerAcceleration).name(); // rtti is literal storage + auto typeName = typeid(axis::EventListenerAcceleration).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EventListenerAcceleration"; g_typeCast[typeName] = "cc.EventListenerAcceleration"; return 1; @@ -35890,7 +35890,7 @@ int lua_register_cocos2dx_EventListenerAcceleration(lua_State* tolua_S) int lua_cocos2dx_EventListenerFocus_init(lua_State* tolua_S) { int argc = 0; - cocos2d::EventListenerFocus* cobj = nullptr; + axis::EventListenerFocus* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -35902,7 +35902,7 @@ int lua_cocos2dx_EventListenerFocus_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventListenerFocus",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventListenerFocus*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventListenerFocus*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -35937,7 +35937,7 @@ int lua_cocos2dx_EventListenerFocus_init(lua_State* tolua_S) int lua_cocos2dx_EventListenerFocus_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EventListenerFocus* cobj = nullptr; + axis::EventListenerFocus* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -35954,7 +35954,7 @@ int lua_cocos2dx_EventListenerFocus_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventListenerFocus_constructor'", nullptr); return 0; } - cobj = new cocos2d::EventListenerFocus(); + cobj = new axis::EventListenerFocus(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -35986,7 +35986,7 @@ int lua_register_cocos2dx_EventListenerFocus(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_EventListenerFocus_constructor); tolua_function(tolua_S,"init",lua_cocos2dx_EventListenerFocus_init); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EventListenerFocus).name(); // rtti is literal storage + auto typeName = typeid(axis::EventListenerFocus).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EventListenerFocus"; g_typeCast[typeName] = "cc.EventListenerFocus"; return 1; @@ -35995,7 +35995,7 @@ int lua_register_cocos2dx_EventListenerFocus(lua_State* tolua_S) int lua_cocos2dx_EventListenerKeyboard_init(lua_State* tolua_S) { int argc = 0; - cocos2d::EventListenerKeyboard* cobj = nullptr; + axis::EventListenerKeyboard* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -36007,7 +36007,7 @@ int lua_cocos2dx_EventListenerKeyboard_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventListenerKeyboard",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventListenerKeyboard*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventListenerKeyboard*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -36042,7 +36042,7 @@ int lua_cocos2dx_EventListenerKeyboard_init(lua_State* tolua_S) int lua_cocos2dx_EventListenerKeyboard_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EventListenerKeyboard* cobj = nullptr; + axis::EventListenerKeyboard* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -36059,7 +36059,7 @@ int lua_cocos2dx_EventListenerKeyboard_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventListenerKeyboard_constructor'", nullptr); return 0; } - cobj = new cocos2d::EventListenerKeyboard(); + cobj = new axis::EventListenerKeyboard(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -36091,7 +36091,7 @@ int lua_register_cocos2dx_EventListenerKeyboard(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_EventListenerKeyboard_constructor); tolua_function(tolua_S,"init",lua_cocos2dx_EventListenerKeyboard_init); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EventListenerKeyboard).name(); // rtti is literal storage + auto typeName = typeid(axis::EventListenerKeyboard).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EventListenerKeyboard"; g_typeCast[typeName] = "cc.EventListenerKeyboard"; return 1; @@ -36100,7 +36100,7 @@ int lua_register_cocos2dx_EventListenerKeyboard(lua_State* tolua_S) int lua_cocos2dx_EventMouse_getPreviousLocationInView(lua_State* tolua_S) { int argc = 0; - cocos2d::EventMouse* cobj = nullptr; + axis::EventMouse* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -36112,7 +36112,7 @@ int lua_cocos2dx_EventMouse_getPreviousLocationInView(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventMouse*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -36130,7 +36130,7 @@ int lua_cocos2dx_EventMouse_getPreviousLocationInView(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventMouse_getPreviousLocationInView'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getPreviousLocationInView(); + axis::Vec2 ret = cobj->getPreviousLocationInView(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -36147,7 +36147,7 @@ int lua_cocos2dx_EventMouse_getPreviousLocationInView(lua_State* tolua_S) int lua_cocos2dx_EventMouse_getLocation(lua_State* tolua_S) { int argc = 0; - cocos2d::EventMouse* cobj = nullptr; + axis::EventMouse* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -36159,7 +36159,7 @@ int lua_cocos2dx_EventMouse_getLocation(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventMouse*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -36177,7 +36177,7 @@ int lua_cocos2dx_EventMouse_getLocation(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventMouse_getLocation'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getLocation(); + axis::Vec2 ret = cobj->getLocation(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -36194,7 +36194,7 @@ int lua_cocos2dx_EventMouse_getLocation(lua_State* tolua_S) int lua_cocos2dx_EventMouse_getMouseButton(lua_State* tolua_S) { int argc = 0; - cocos2d::EventMouse* cobj = nullptr; + axis::EventMouse* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -36206,7 +36206,7 @@ int lua_cocos2dx_EventMouse_getMouseButton(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventMouse*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -36241,7 +36241,7 @@ int lua_cocos2dx_EventMouse_getMouseButton(lua_State* tolua_S) int lua_cocos2dx_EventMouse_getPreviousLocation(lua_State* tolua_S) { int argc = 0; - cocos2d::EventMouse* cobj = nullptr; + axis::EventMouse* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -36253,7 +36253,7 @@ int lua_cocos2dx_EventMouse_getPreviousLocation(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventMouse*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -36271,7 +36271,7 @@ int lua_cocos2dx_EventMouse_getPreviousLocation(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventMouse_getPreviousLocation'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getPreviousLocation(); + axis::Vec2 ret = cobj->getPreviousLocation(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -36288,7 +36288,7 @@ int lua_cocos2dx_EventMouse_getPreviousLocation(lua_State* tolua_S) int lua_cocos2dx_EventMouse_getDelta(lua_State* tolua_S) { int argc = 0; - cocos2d::EventMouse* cobj = nullptr; + axis::EventMouse* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -36300,7 +36300,7 @@ int lua_cocos2dx_EventMouse_getDelta(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventMouse*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -36318,7 +36318,7 @@ int lua_cocos2dx_EventMouse_getDelta(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventMouse_getDelta'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getDelta(); + axis::Vec2 ret = cobj->getDelta(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -36335,7 +36335,7 @@ int lua_cocos2dx_EventMouse_getDelta(lua_State* tolua_S) int lua_cocos2dx_EventMouse_setScrollData(lua_State* tolua_S) { int argc = 0; - cocos2d::EventMouse* cobj = nullptr; + axis::EventMouse* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -36347,7 +36347,7 @@ int lua_cocos2dx_EventMouse_setScrollData(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventMouse*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -36388,7 +36388,7 @@ int lua_cocos2dx_EventMouse_setScrollData(lua_State* tolua_S) int lua_cocos2dx_EventMouse_getStartLocationInView(lua_State* tolua_S) { int argc = 0; - cocos2d::EventMouse* cobj = nullptr; + axis::EventMouse* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -36400,7 +36400,7 @@ int lua_cocos2dx_EventMouse_getStartLocationInView(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventMouse*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -36418,7 +36418,7 @@ int lua_cocos2dx_EventMouse_getStartLocationInView(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventMouse_getStartLocationInView'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getStartLocationInView(); + axis::Vec2 ret = cobj->getStartLocationInView(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -36435,7 +36435,7 @@ int lua_cocos2dx_EventMouse_getStartLocationInView(lua_State* tolua_S) int lua_cocos2dx_EventMouse_getStartLocation(lua_State* tolua_S) { int argc = 0; - cocos2d::EventMouse* cobj = nullptr; + axis::EventMouse* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -36447,7 +36447,7 @@ int lua_cocos2dx_EventMouse_getStartLocation(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventMouse*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -36465,7 +36465,7 @@ int lua_cocos2dx_EventMouse_getStartLocation(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventMouse_getStartLocation'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getStartLocation(); + axis::Vec2 ret = cobj->getStartLocation(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -36482,7 +36482,7 @@ int lua_cocos2dx_EventMouse_getStartLocation(lua_State* tolua_S) int lua_cocos2dx_EventMouse_setMouseButton(lua_State* tolua_S) { int argc = 0; - cocos2d::EventMouse* cobj = nullptr; + axis::EventMouse* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -36494,7 +36494,7 @@ int lua_cocos2dx_EventMouse_setMouseButton(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventMouse*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -36507,7 +36507,7 @@ int lua_cocos2dx_EventMouse_setMouseButton(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::EventMouse::MouseButton arg0; + axis::EventMouse::MouseButton arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.EventMouse:setMouseButton"); if(!ok) @@ -36532,7 +36532,7 @@ int lua_cocos2dx_EventMouse_setMouseButton(lua_State* tolua_S) int lua_cocos2dx_EventMouse_getLocationInView(lua_State* tolua_S) { int argc = 0; - cocos2d::EventMouse* cobj = nullptr; + axis::EventMouse* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -36544,7 +36544,7 @@ int lua_cocos2dx_EventMouse_getLocationInView(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventMouse*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -36562,7 +36562,7 @@ int lua_cocos2dx_EventMouse_getLocationInView(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventMouse_getLocationInView'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getLocationInView(); + axis::Vec2 ret = cobj->getLocationInView(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -36579,7 +36579,7 @@ int lua_cocos2dx_EventMouse_getLocationInView(lua_State* tolua_S) int lua_cocos2dx_EventMouse_getScrollY(lua_State* tolua_S) { int argc = 0; - cocos2d::EventMouse* cobj = nullptr; + axis::EventMouse* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -36591,7 +36591,7 @@ int lua_cocos2dx_EventMouse_getScrollY(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventMouse*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -36626,7 +36626,7 @@ int lua_cocos2dx_EventMouse_getScrollY(lua_State* tolua_S) int lua_cocos2dx_EventMouse_getScrollX(lua_State* tolua_S) { int argc = 0; - cocos2d::EventMouse* cobj = nullptr; + axis::EventMouse* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -36638,7 +36638,7 @@ int lua_cocos2dx_EventMouse_getScrollX(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventMouse*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -36673,7 +36673,7 @@ int lua_cocos2dx_EventMouse_getScrollX(lua_State* tolua_S) int lua_cocos2dx_EventMouse_getCursorX(lua_State* tolua_S) { int argc = 0; - cocos2d::EventMouse* cobj = nullptr; + axis::EventMouse* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -36685,7 +36685,7 @@ int lua_cocos2dx_EventMouse_getCursorX(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventMouse*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -36720,7 +36720,7 @@ int lua_cocos2dx_EventMouse_getCursorX(lua_State* tolua_S) int lua_cocos2dx_EventMouse_getCursorY(lua_State* tolua_S) { int argc = 0; - cocos2d::EventMouse* cobj = nullptr; + axis::EventMouse* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -36732,7 +36732,7 @@ int lua_cocos2dx_EventMouse_getCursorY(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventMouse*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -36767,7 +36767,7 @@ int lua_cocos2dx_EventMouse_getCursorY(lua_State* tolua_S) int lua_cocos2dx_EventMouse_setCursorPosition(lua_State* tolua_S) { int argc = 0; - cocos2d::EventMouse* cobj = nullptr; + axis::EventMouse* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -36779,7 +36779,7 @@ int lua_cocos2dx_EventMouse_setCursorPosition(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventMouse",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventMouse*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventMouse*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -36820,7 +36820,7 @@ int lua_cocos2dx_EventMouse_setCursorPosition(lua_State* tolua_S) int lua_cocos2dx_EventMouse_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EventMouse* cobj = nullptr; + axis::EventMouse* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -36832,7 +36832,7 @@ int lua_cocos2dx_EventMouse_constructor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::EventMouse::MouseEventType arg0; + axis::EventMouse::MouseEventType arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.EventMouse:EventMouse"); if(!ok) @@ -36840,7 +36840,7 @@ int lua_cocos2dx_EventMouse_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventMouse_constructor'", nullptr); return 0; } - cobj = new cocos2d::EventMouse(arg0); + cobj = new axis::EventMouse(arg0); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -36886,7 +36886,7 @@ int lua_register_cocos2dx_EventMouse(lua_State* tolua_S) tolua_function(tolua_S,"getCursorY",lua_cocos2dx_EventMouse_getCursorY); tolua_function(tolua_S,"setCursorPosition",lua_cocos2dx_EventMouse_setCursorPosition); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EventMouse).name(); // rtti is literal storage + auto typeName = typeid(axis::EventMouse).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EventMouse"; g_typeCast[typeName] = "cc.EventMouse"; return 1; @@ -36895,7 +36895,7 @@ int lua_register_cocos2dx_EventMouse(lua_State* tolua_S) int lua_cocos2dx_EventListenerMouse_init(lua_State* tolua_S) { int argc = 0; - cocos2d::EventListenerMouse* cobj = nullptr; + axis::EventListenerMouse* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -36907,7 +36907,7 @@ int lua_cocos2dx_EventListenerMouse_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventListenerMouse",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventListenerMouse*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventListenerMouse*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -36942,7 +36942,7 @@ int lua_cocos2dx_EventListenerMouse_init(lua_State* tolua_S) int lua_cocos2dx_EventListenerMouse_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EventListenerMouse* cobj = nullptr; + axis::EventListenerMouse* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -36959,7 +36959,7 @@ int lua_cocos2dx_EventListenerMouse_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventListenerMouse_constructor'", nullptr); return 0; } - cobj = new cocos2d::EventListenerMouse(); + cobj = new axis::EventListenerMouse(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -36991,7 +36991,7 @@ int lua_register_cocos2dx_EventListenerMouse(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_EventListenerMouse_constructor); tolua_function(tolua_S,"init",lua_cocos2dx_EventListenerMouse_init); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EventListenerMouse).name(); // rtti is literal storage + auto typeName = typeid(axis::EventListenerMouse).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EventListenerMouse"; g_typeCast[typeName] = "cc.EventListenerMouse"; return 1; @@ -37010,7 +37010,7 @@ int lua_register_cocos2dx_EventListenerController(lua_State* tolua_S) tolua_beginmodule(tolua_S,"EventListenerController"); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EventListenerController).name(); // rtti is literal storage + auto typeName = typeid(axis::EventListenerController).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EventListenerController"; g_typeCast[typeName] = "cc.EventListenerController"; return 1; @@ -37019,7 +37019,7 @@ int lua_register_cocos2dx_EventListenerController(lua_State* tolua_S) int lua_cocos2dx_EventListenerTouchOneByOne_isSwallowTouches(lua_State* tolua_S) { int argc = 0; - cocos2d::EventListenerTouchOneByOne* cobj = nullptr; + axis::EventListenerTouchOneByOne* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -37031,7 +37031,7 @@ int lua_cocos2dx_EventListenerTouchOneByOne_isSwallowTouches(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventListenerTouchOneByOne",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventListenerTouchOneByOne*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventListenerTouchOneByOne*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -37066,7 +37066,7 @@ int lua_cocos2dx_EventListenerTouchOneByOne_isSwallowTouches(lua_State* tolua_S) int lua_cocos2dx_EventListenerTouchOneByOne_setSwallowTouches(lua_State* tolua_S) { int argc = 0; - cocos2d::EventListenerTouchOneByOne* cobj = nullptr; + axis::EventListenerTouchOneByOne* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -37078,7 +37078,7 @@ int lua_cocos2dx_EventListenerTouchOneByOne_setSwallowTouches(lua_State* tolua_S if (!tolua_isusertype(tolua_S,1,"cc.EventListenerTouchOneByOne",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventListenerTouchOneByOne*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventListenerTouchOneByOne*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -37116,7 +37116,7 @@ int lua_cocos2dx_EventListenerTouchOneByOne_setSwallowTouches(lua_State* tolua_S int lua_cocos2dx_EventListenerTouchOneByOne_init(lua_State* tolua_S) { int argc = 0; - cocos2d::EventListenerTouchOneByOne* cobj = nullptr; + axis::EventListenerTouchOneByOne* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -37128,7 +37128,7 @@ int lua_cocos2dx_EventListenerTouchOneByOne_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventListenerTouchOneByOne",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventListenerTouchOneByOne*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventListenerTouchOneByOne*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -37163,7 +37163,7 @@ int lua_cocos2dx_EventListenerTouchOneByOne_init(lua_State* tolua_S) int lua_cocos2dx_EventListenerTouchOneByOne_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EventListenerTouchOneByOne* cobj = nullptr; + axis::EventListenerTouchOneByOne* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -37180,7 +37180,7 @@ int lua_cocos2dx_EventListenerTouchOneByOne_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventListenerTouchOneByOne_constructor'", nullptr); return 0; } - cobj = new cocos2d::EventListenerTouchOneByOne(); + cobj = new axis::EventListenerTouchOneByOne(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -37214,7 +37214,7 @@ int lua_register_cocos2dx_EventListenerTouchOneByOne(lua_State* tolua_S) tolua_function(tolua_S,"setSwallowTouches",lua_cocos2dx_EventListenerTouchOneByOne_setSwallowTouches); tolua_function(tolua_S,"init",lua_cocos2dx_EventListenerTouchOneByOne_init); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EventListenerTouchOneByOne).name(); // rtti is literal storage + auto typeName = typeid(axis::EventListenerTouchOneByOne).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EventListenerTouchOneByOne"; g_typeCast[typeName] = "cc.EventListenerTouchOneByOne"; return 1; @@ -37223,7 +37223,7 @@ int lua_register_cocos2dx_EventListenerTouchOneByOne(lua_State* tolua_S) int lua_cocos2dx_EventListenerTouchAllAtOnce_init(lua_State* tolua_S) { int argc = 0; - cocos2d::EventListenerTouchAllAtOnce* cobj = nullptr; + axis::EventListenerTouchAllAtOnce* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -37235,7 +37235,7 @@ int lua_cocos2dx_EventListenerTouchAllAtOnce_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventListenerTouchAllAtOnce",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventListenerTouchAllAtOnce*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventListenerTouchAllAtOnce*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -37270,7 +37270,7 @@ int lua_cocos2dx_EventListenerTouchAllAtOnce_init(lua_State* tolua_S) int lua_cocos2dx_EventListenerTouchAllAtOnce_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EventListenerTouchAllAtOnce* cobj = nullptr; + axis::EventListenerTouchAllAtOnce* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -37287,7 +37287,7 @@ int lua_cocos2dx_EventListenerTouchAllAtOnce_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventListenerTouchAllAtOnce_constructor'", nullptr); return 0; } - cobj = new cocos2d::EventListenerTouchAllAtOnce(); + cobj = new axis::EventListenerTouchAllAtOnce(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -37319,7 +37319,7 @@ int lua_register_cocos2dx_EventListenerTouchAllAtOnce(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_EventListenerTouchAllAtOnce_constructor); tolua_function(tolua_S,"init",lua_cocos2dx_EventListenerTouchAllAtOnce_init); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EventListenerTouchAllAtOnce).name(); // rtti is literal storage + auto typeName = typeid(axis::EventListenerTouchAllAtOnce).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EventListenerTouchAllAtOnce"; g_typeCast[typeName] = "cc.EventListenerTouchAllAtOnce"; return 1; @@ -37328,7 +37328,7 @@ int lua_register_cocos2dx_EventListenerTouchAllAtOnce(lua_State* tolua_S) int lua_cocos2dx_EventController_getControllerEventType(lua_State* tolua_S) { int argc = 0; - cocos2d::EventController* cobj = nullptr; + axis::EventController* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -37340,7 +37340,7 @@ int lua_cocos2dx_EventController_getControllerEventType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventController",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventController*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventController*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -37375,7 +37375,7 @@ int lua_cocos2dx_EventController_getControllerEventType(lua_State* tolua_S) int lua_cocos2dx_EventController_setConnectStatus(lua_State* tolua_S) { int argc = 0; - cocos2d::EventController* cobj = nullptr; + axis::EventController* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -37387,7 +37387,7 @@ int lua_cocos2dx_EventController_setConnectStatus(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventController",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventController*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventController*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -37425,7 +37425,7 @@ int lua_cocos2dx_EventController_setConnectStatus(lua_State* tolua_S) int lua_cocos2dx_EventController_isConnected(lua_State* tolua_S) { int argc = 0; - cocos2d::EventController* cobj = nullptr; + axis::EventController* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -37437,7 +37437,7 @@ int lua_cocos2dx_EventController_isConnected(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventController",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventController*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventController*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -37472,7 +37472,7 @@ int lua_cocos2dx_EventController_isConnected(lua_State* tolua_S) int lua_cocos2dx_EventController_setKeyCode(lua_State* tolua_S) { int argc = 0; - cocos2d::EventController* cobj = nullptr; + axis::EventController* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -37484,7 +37484,7 @@ int lua_cocos2dx_EventController_setKeyCode(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventController",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventController*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventController*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -37522,7 +37522,7 @@ int lua_cocos2dx_EventController_setKeyCode(lua_State* tolua_S) int lua_cocos2dx_EventController_getController(lua_State* tolua_S) { int argc = 0; - cocos2d::EventController* cobj = nullptr; + axis::EventController* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -37534,7 +37534,7 @@ int lua_cocos2dx_EventController_getController(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventController",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventController*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventController*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -37552,8 +37552,8 @@ int lua_cocos2dx_EventController_getController(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EventController_getController'", nullptr); return 0; } - cocos2d::Controller* ret = cobj->getController(); - object_to_luaval(tolua_S, "cc.Controller",(cocos2d::Controller*)ret); + axis::Controller* ret = cobj->getController(); + object_to_luaval(tolua_S, "cc.Controller",(axis::Controller*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventController:getController",argc, 0); @@ -37569,7 +37569,7 @@ int lua_cocos2dx_EventController_getController(lua_State* tolua_S) int lua_cocos2dx_EventController_getKeyCode(lua_State* tolua_S) { int argc = 0; - cocos2d::EventController* cobj = nullptr; + axis::EventController* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -37581,7 +37581,7 @@ int lua_cocos2dx_EventController_getKeyCode(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventController",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventController*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventController*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -37616,7 +37616,7 @@ int lua_cocos2dx_EventController_getKeyCode(lua_State* tolua_S) int lua_cocos2dx_EventController_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EventController* cobj = nullptr; + axis::EventController* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -37625,19 +37625,19 @@ int lua_cocos2dx_EventController_constructor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 3) { - cocos2d::EventController::ControllerEventType arg0; + axis::EventController::ControllerEventType arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.EventController:EventController"); if (!ok) { break; } - cocos2d::Controller* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Controller",&arg1, "cc.EventController:EventController"); + axis::Controller* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Controller",&arg1, "cc.EventController:EventController"); if (!ok) { break; } bool arg2; ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.EventController:EventController"); if (!ok) { break; } - cobj = new cocos2d::EventController(arg0, arg1, arg2); + cobj = new axis::EventController(arg0, arg1, arg2); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -37648,19 +37648,19 @@ int lua_cocos2dx_EventController_constructor(lua_State* tolua_S) ok = true; do{ if (argc == 3) { - cocos2d::EventController::ControllerEventType arg0; + axis::EventController::ControllerEventType arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.EventController:EventController"); if (!ok) { break; } - cocos2d::Controller* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Controller",&arg1, "cc.EventController:EventController"); + axis::Controller* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Controller",&arg1, "cc.EventController:EventController"); if (!ok) { break; } int arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.EventController:EventController"); if (!ok) { break; } - cobj = new cocos2d::EventController(arg0, arg1, arg2); + cobj = new axis::EventController(arg0, arg1, arg2); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -37699,7 +37699,7 @@ int lua_register_cocos2dx_EventController(lua_State* tolua_S) tolua_function(tolua_S,"getController",lua_cocos2dx_EventController_getController); tolua_function(tolua_S,"getKeyCode",lua_cocos2dx_EventController_getKeyCode); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EventController).name(); // rtti is literal storage + auto typeName = typeid(axis::EventController).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EventController"; g_typeCast[typeName] = "cc.EventController"; return 1; @@ -37708,7 +37708,7 @@ int lua_register_cocos2dx_EventController(lua_State* tolua_S) int lua_cocos2dx_ActionCamera_setEye(lua_State* tolua_S) { int argc = 0; - cocos2d::ActionCamera* cobj = nullptr; + axis::ActionCamera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -37717,7 +37717,7 @@ int lua_cocos2dx_ActionCamera_setEye(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ActionCamera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ActionCamera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ActionCamera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -37748,7 +37748,7 @@ int lua_cocos2dx_ActionCamera_setEye(lua_State* tolua_S) ok = true; do{ if (argc == 1) { - cocos2d::Vec3 arg0; + axis::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.ActionCamera:setEye"); if (!ok) { break; } @@ -37771,7 +37771,7 @@ int lua_cocos2dx_ActionCamera_setEye(lua_State* tolua_S) int lua_cocos2dx_ActionCamera_getEye(lua_State* tolua_S) { int argc = 0; - cocos2d::ActionCamera* cobj = nullptr; + axis::ActionCamera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -37783,7 +37783,7 @@ int lua_cocos2dx_ActionCamera_getEye(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ActionCamera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ActionCamera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ActionCamera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -37801,7 +37801,7 @@ int lua_cocos2dx_ActionCamera_getEye(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionCamera_getEye'", nullptr); return 0; } - const cocos2d::Vec3& ret = cobj->getEye(); + const axis::Vec3& ret = cobj->getEye(); vec3_to_luaval(tolua_S, ret); return 1; } @@ -37818,7 +37818,7 @@ int lua_cocos2dx_ActionCamera_getEye(lua_State* tolua_S) int lua_cocos2dx_ActionCamera_setUp(lua_State* tolua_S) { int argc = 0; - cocos2d::ActionCamera* cobj = nullptr; + axis::ActionCamera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -37830,7 +37830,7 @@ int lua_cocos2dx_ActionCamera_setUp(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ActionCamera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ActionCamera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ActionCamera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -37843,7 +37843,7 @@ int lua_cocos2dx_ActionCamera_setUp(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec3 arg0; + axis::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.ActionCamera:setUp"); if(!ok) @@ -37868,7 +37868,7 @@ int lua_cocos2dx_ActionCamera_setUp(lua_State* tolua_S) int lua_cocos2dx_ActionCamera_getCenter(lua_State* tolua_S) { int argc = 0; - cocos2d::ActionCamera* cobj = nullptr; + axis::ActionCamera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -37880,7 +37880,7 @@ int lua_cocos2dx_ActionCamera_getCenter(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ActionCamera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ActionCamera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ActionCamera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -37898,7 +37898,7 @@ int lua_cocos2dx_ActionCamera_getCenter(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionCamera_getCenter'", nullptr); return 0; } - const cocos2d::Vec3& ret = cobj->getCenter(); + const axis::Vec3& ret = cobj->getCenter(); vec3_to_luaval(tolua_S, ret); return 1; } @@ -37915,7 +37915,7 @@ int lua_cocos2dx_ActionCamera_getCenter(lua_State* tolua_S) int lua_cocos2dx_ActionCamera_setCenter(lua_State* tolua_S) { int argc = 0; - cocos2d::ActionCamera* cobj = nullptr; + axis::ActionCamera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -37927,7 +37927,7 @@ int lua_cocos2dx_ActionCamera_setCenter(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ActionCamera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ActionCamera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ActionCamera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -37940,7 +37940,7 @@ int lua_cocos2dx_ActionCamera_setCenter(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec3 arg0; + axis::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.ActionCamera:setCenter"); if(!ok) @@ -37965,7 +37965,7 @@ int lua_cocos2dx_ActionCamera_setCenter(lua_State* tolua_S) int lua_cocos2dx_ActionCamera_getUp(lua_State* tolua_S) { int argc = 0; - cocos2d::ActionCamera* cobj = nullptr; + axis::ActionCamera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -37977,7 +37977,7 @@ int lua_cocos2dx_ActionCamera_getUp(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ActionCamera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ActionCamera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ActionCamera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -37995,7 +37995,7 @@ int lua_cocos2dx_ActionCamera_getUp(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionCamera_getUp'", nullptr); return 0; } - const cocos2d::Vec3& ret = cobj->getUp(); + const axis::Vec3& ret = cobj->getUp(); vec3_to_luaval(tolua_S, ret); return 1; } @@ -38012,7 +38012,7 @@ int lua_cocos2dx_ActionCamera_getUp(lua_State* tolua_S) int lua_cocos2dx_ActionCamera_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ActionCamera* cobj = nullptr; + axis::ActionCamera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -38029,7 +38029,7 @@ int lua_cocos2dx_ActionCamera_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionCamera_constructor'", nullptr); return 0; } - cobj = new cocos2d::ActionCamera(); + cobj = new axis::ActionCamera(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -38066,7 +38066,7 @@ int lua_register_cocos2dx_ActionCamera(lua_State* tolua_S) tolua_function(tolua_S,"setCenter",lua_cocos2dx_ActionCamera_setCenter); tolua_function(tolua_S,"getUp",lua_cocos2dx_ActionCamera_getUp); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ActionCamera).name(); // rtti is literal storage + auto typeName = typeid(axis::ActionCamera).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.ActionCamera"; g_typeCast[typeName] = "cc.ActionCamera"; return 1; @@ -38075,7 +38075,7 @@ int lua_register_cocos2dx_ActionCamera(lua_State* tolua_S) int lua_cocos2dx_OrbitCamera_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::OrbitCamera* cobj = nullptr; + axis::OrbitCamera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -38087,7 +38087,7 @@ int lua_cocos2dx_OrbitCamera_initWithDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.OrbitCamera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::OrbitCamera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::OrbitCamera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -38176,8 +38176,8 @@ int lua_cocos2dx_OrbitCamera_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_OrbitCamera_create'", nullptr); return 0; } - cocos2d::OrbitCamera* ret = cocos2d::OrbitCamera::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6); - object_to_luaval(tolua_S, "cc.OrbitCamera",(cocos2d::OrbitCamera*)ret); + axis::OrbitCamera* ret = axis::OrbitCamera::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6); + object_to_luaval(tolua_S, "cc.OrbitCamera",(axis::OrbitCamera*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.OrbitCamera:create",argc, 7); @@ -38191,7 +38191,7 @@ int lua_cocos2dx_OrbitCamera_create(lua_State* tolua_S) int lua_cocos2dx_OrbitCamera_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::OrbitCamera* cobj = nullptr; + axis::OrbitCamera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -38208,7 +38208,7 @@ int lua_cocos2dx_OrbitCamera_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_OrbitCamera_constructor'", nullptr); return 0; } - cobj = new cocos2d::OrbitCamera(); + cobj = new axis::OrbitCamera(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -38241,7 +38241,7 @@ int lua_register_cocos2dx_OrbitCamera(lua_State* tolua_S) tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_OrbitCamera_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_OrbitCamera_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::OrbitCamera).name(); // rtti is literal storage + auto typeName = typeid(axis::OrbitCamera).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.OrbitCamera"; g_typeCast[typeName] = "cc.OrbitCamera"; return 1; @@ -38250,7 +38250,7 @@ int lua_register_cocos2dx_OrbitCamera(lua_State* tolua_S) int lua_cocos2dx_CardinalSplineTo_getPoints(lua_State* tolua_S) { int argc = 0; - cocos2d::CardinalSplineTo* cobj = nullptr; + axis::CardinalSplineTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -38262,7 +38262,7 @@ int lua_cocos2dx_CardinalSplineTo_getPoints(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.CardinalSplineTo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::CardinalSplineTo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::CardinalSplineTo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -38280,8 +38280,8 @@ int lua_cocos2dx_CardinalSplineTo_getPoints(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CardinalSplineTo_getPoints'", nullptr); return 0; } - cocos2d::PointArray* ret = cobj->getPoints(); - object_to_luaval(tolua_S, "cc.PointArray",(cocos2d::PointArray*)ret); + axis::PointArray* ret = cobj->getPoints(); + object_to_luaval(tolua_S, "cc.PointArray",(axis::PointArray*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CardinalSplineTo:getPoints",argc, 0); @@ -38297,7 +38297,7 @@ int lua_cocos2dx_CardinalSplineTo_getPoints(lua_State* tolua_S) int lua_cocos2dx_CardinalSplineTo_updatePosition(lua_State* tolua_S) { int argc = 0; - cocos2d::CardinalSplineTo* cobj = nullptr; + axis::CardinalSplineTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -38309,7 +38309,7 @@ int lua_cocos2dx_CardinalSplineTo_updatePosition(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.CardinalSplineTo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::CardinalSplineTo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::CardinalSplineTo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -38322,7 +38322,7 @@ int lua_cocos2dx_CardinalSplineTo_updatePosition(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.CardinalSplineTo:updatePosition"); if(!ok) @@ -38347,7 +38347,7 @@ int lua_cocos2dx_CardinalSplineTo_updatePosition(lua_State* tolua_S) int lua_cocos2dx_CardinalSplineTo_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::CardinalSplineTo* cobj = nullptr; + axis::CardinalSplineTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -38359,7 +38359,7 @@ int lua_cocos2dx_CardinalSplineTo_initWithDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.CardinalSplineTo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::CardinalSplineTo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::CardinalSplineTo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -38373,12 +38373,12 @@ int lua_cocos2dx_CardinalSplineTo_initWithDuration(lua_State* tolua_S) if (argc == 3) { double arg0; - cocos2d::PointArray* arg1; + axis::PointArray* arg1; double arg2; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.CardinalSplineTo:initWithDuration"); - ok &= luaval_to_object(tolua_S, 3, "cc.PointArray",&arg1, "cc.CardinalSplineTo:initWithDuration"); + ok &= luaval_to_object(tolua_S, 3, "cc.PointArray",&arg1, "cc.CardinalSplineTo:initWithDuration"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.CardinalSplineTo:initWithDuration"); if(!ok) @@ -38403,7 +38403,7 @@ int lua_cocos2dx_CardinalSplineTo_initWithDuration(lua_State* tolua_S) int lua_cocos2dx_CardinalSplineTo_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::CardinalSplineTo* cobj = nullptr; + axis::CardinalSplineTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -38420,7 +38420,7 @@ int lua_cocos2dx_CardinalSplineTo_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CardinalSplineTo_constructor'", nullptr); return 0; } - cobj = new cocos2d::CardinalSplineTo(); + cobj = new axis::CardinalSplineTo(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -38454,7 +38454,7 @@ int lua_register_cocos2dx_CardinalSplineTo(lua_State* tolua_S) tolua_function(tolua_S,"updatePosition",lua_cocos2dx_CardinalSplineTo_updatePosition); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_CardinalSplineTo_initWithDuration); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::CardinalSplineTo).name(); // rtti is literal storage + auto typeName = typeid(axis::CardinalSplineTo).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.CardinalSplineTo"; g_typeCast[typeName] = "cc.CardinalSplineTo"; return 1; @@ -38463,7 +38463,7 @@ int lua_register_cocos2dx_CardinalSplineTo(lua_State* tolua_S) int lua_cocos2dx_CardinalSplineBy_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::CardinalSplineBy* cobj = nullptr; + axis::CardinalSplineBy* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -38480,7 +38480,7 @@ int lua_cocos2dx_CardinalSplineBy_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CardinalSplineBy_constructor'", nullptr); return 0; } - cobj = new cocos2d::CardinalSplineBy(); + cobj = new axis::CardinalSplineBy(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -38511,7 +38511,7 @@ int lua_register_cocos2dx_CardinalSplineBy(lua_State* tolua_S) tolua_beginmodule(tolua_S,"CardinalSplineBy"); tolua_function(tolua_S,"new",lua_cocos2dx_CardinalSplineBy_constructor); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::CardinalSplineBy).name(); // rtti is literal storage + auto typeName = typeid(axis::CardinalSplineBy).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.CardinalSplineBy"; g_typeCast[typeName] = "cc.CardinalSplineBy"; return 1; @@ -38520,7 +38520,7 @@ int lua_register_cocos2dx_CardinalSplineBy(lua_State* tolua_S) int lua_cocos2dx_CatmullRomTo_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::CatmullRomTo* cobj = nullptr; + axis::CatmullRomTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -38532,7 +38532,7 @@ int lua_cocos2dx_CatmullRomTo_initWithDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.CatmullRomTo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::CatmullRomTo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::CatmullRomTo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -38546,11 +38546,11 @@ int lua_cocos2dx_CatmullRomTo_initWithDuration(lua_State* tolua_S) if (argc == 2) { double arg0; - cocos2d::PointArray* arg1; + axis::PointArray* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.CatmullRomTo:initWithDuration"); - ok &= luaval_to_object(tolua_S, 3, "cc.PointArray",&arg1, "cc.CatmullRomTo:initWithDuration"); + ok &= luaval_to_object(tolua_S, 3, "cc.PointArray",&arg1, "cc.CatmullRomTo:initWithDuration"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CatmullRomTo_initWithDuration'", nullptr); @@ -38584,7 +38584,7 @@ int lua_register_cocos2dx_CatmullRomTo(lua_State* tolua_S) tolua_beginmodule(tolua_S,"CatmullRomTo"); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_CatmullRomTo_initWithDuration); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::CatmullRomTo).name(); // rtti is literal storage + auto typeName = typeid(axis::CatmullRomTo).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.CatmullRomTo"; g_typeCast[typeName] = "cc.CatmullRomTo"; return 1; @@ -38593,7 +38593,7 @@ int lua_register_cocos2dx_CatmullRomTo(lua_State* tolua_S) int lua_cocos2dx_CatmullRomBy_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::CatmullRomBy* cobj = nullptr; + axis::CatmullRomBy* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -38605,7 +38605,7 @@ int lua_cocos2dx_CatmullRomBy_initWithDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.CatmullRomBy",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::CatmullRomBy*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::CatmullRomBy*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -38619,11 +38619,11 @@ int lua_cocos2dx_CatmullRomBy_initWithDuration(lua_State* tolua_S) if (argc == 2) { double arg0; - cocos2d::PointArray* arg1; + axis::PointArray* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.CatmullRomBy:initWithDuration"); - ok &= luaval_to_object(tolua_S, 3, "cc.PointArray",&arg1, "cc.CatmullRomBy:initWithDuration"); + ok &= luaval_to_object(tolua_S, 3, "cc.PointArray",&arg1, "cc.CatmullRomBy:initWithDuration"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CatmullRomBy_initWithDuration'", nullptr); @@ -38657,7 +38657,7 @@ int lua_register_cocos2dx_CatmullRomBy(lua_State* tolua_S) tolua_beginmodule(tolua_S,"CatmullRomBy"); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_CatmullRomBy_initWithDuration); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::CatmullRomBy).name(); // rtti is literal storage + auto typeName = typeid(axis::CatmullRomBy).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.CatmullRomBy"; g_typeCast[typeName] = "cc.CatmullRomBy"; return 1; @@ -38666,7 +38666,7 @@ int lua_register_cocos2dx_CatmullRomBy(lua_State* tolua_S) int lua_cocos2dx_ActionEase_initWithAction(lua_State* tolua_S) { int argc = 0; - cocos2d::ActionEase* cobj = nullptr; + axis::ActionEase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -38678,7 +38678,7 @@ int lua_cocos2dx_ActionEase_initWithAction(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ActionEase",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ActionEase*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ActionEase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -38691,9 +38691,9 @@ int lua_cocos2dx_ActionEase_initWithAction(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ActionInterval* arg0; + axis::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.ActionEase:initWithAction"); + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.ActionEase:initWithAction"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionEase_initWithAction'", nullptr); @@ -38716,7 +38716,7 @@ int lua_cocos2dx_ActionEase_initWithAction(lua_State* tolua_S) int lua_cocos2dx_ActionEase_getInnerAction(lua_State* tolua_S) { int argc = 0; - cocos2d::ActionEase* cobj = nullptr; + axis::ActionEase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -38728,7 +38728,7 @@ int lua_cocos2dx_ActionEase_getInnerAction(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ActionEase",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ActionEase*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ActionEase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -38746,8 +38746,8 @@ int lua_cocos2dx_ActionEase_getInnerAction(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionEase_getInnerAction'", nullptr); return 0; } - cocos2d::ActionInterval* ret = cobj->getInnerAction(); - object_to_luaval(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); + axis::ActionInterval* ret = cobj->getInnerAction(); + object_to_luaval(tolua_S, "cc.ActionInterval",(axis::ActionInterval*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionEase:getInnerAction",argc, 0); @@ -38775,7 +38775,7 @@ int lua_register_cocos2dx_ActionEase(lua_State* tolua_S) tolua_function(tolua_S,"initWithAction",lua_cocos2dx_ActionEase_initWithAction); tolua_function(tolua_S,"getInnerAction",lua_cocos2dx_ActionEase_getInnerAction); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ActionEase).name(); // rtti is literal storage + auto typeName = typeid(axis::ActionEase).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.ActionEase"; g_typeCast[typeName] = "cc.ActionEase"; return 1; @@ -38784,7 +38784,7 @@ int lua_register_cocos2dx_ActionEase(lua_State* tolua_S) int lua_cocos2dx_EaseRateAction_setRate(lua_State* tolua_S) { int argc = 0; - cocos2d::EaseRateAction* cobj = nullptr; + axis::EaseRateAction* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -38796,7 +38796,7 @@ int lua_cocos2dx_EaseRateAction_setRate(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EaseRateAction",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EaseRateAction*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EaseRateAction*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -38834,7 +38834,7 @@ int lua_cocos2dx_EaseRateAction_setRate(lua_State* tolua_S) int lua_cocos2dx_EaseRateAction_initWithAction(lua_State* tolua_S) { int argc = 0; - cocos2d::EaseRateAction* cobj = nullptr; + axis::EaseRateAction* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -38846,7 +38846,7 @@ int lua_cocos2dx_EaseRateAction_initWithAction(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EaseRateAction",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EaseRateAction*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EaseRateAction*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -38859,10 +38859,10 @@ int lua_cocos2dx_EaseRateAction_initWithAction(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::ActionInterval* arg0; + axis::ActionInterval* arg0; double arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseRateAction:initWithAction"); + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseRateAction:initWithAction"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.EaseRateAction:initWithAction"); if(!ok) @@ -38887,7 +38887,7 @@ int lua_cocos2dx_EaseRateAction_initWithAction(lua_State* tolua_S) int lua_cocos2dx_EaseRateAction_getRate(lua_State* tolua_S) { int argc = 0; - cocos2d::EaseRateAction* cobj = nullptr; + axis::EaseRateAction* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -38899,7 +38899,7 @@ int lua_cocos2dx_EaseRateAction_getRate(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EaseRateAction",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EaseRateAction*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EaseRateAction*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -38948,17 +38948,17 @@ int lua_cocos2dx_EaseRateAction_create(lua_State* tolua_S) if (argc == 2) { - cocos2d::ActionInterval* arg0; + axis::ActionInterval* arg0; double arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseRateAction:create"); + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseRateAction:create"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.EaseRateAction:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseRateAction_create'", nullptr); return 0; } - cocos2d::EaseRateAction* ret = cocos2d::EaseRateAction::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.EaseRateAction",(cocos2d::EaseRateAction*)ret); + axis::EaseRateAction* ret = axis::EaseRateAction::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.EaseRateAction",(axis::EaseRateAction*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseRateAction:create",argc, 2); @@ -38986,7 +38986,7 @@ int lua_register_cocos2dx_EaseRateAction(lua_State* tolua_S) tolua_function(tolua_S,"getRate",lua_cocos2dx_EaseRateAction_getRate); tolua_function(tolua_S,"create", lua_cocos2dx_EaseRateAction_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EaseRateAction).name(); // rtti is literal storage + auto typeName = typeid(axis::EaseRateAction).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EaseRateAction"; g_typeCast[typeName] = "cc.EaseRateAction"; return 1; @@ -39009,15 +39009,15 @@ int lua_cocos2dx_EaseExponentialIn_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseExponentialIn:create"); + axis::ActionInterval* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseExponentialIn:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseExponentialIn_create'", nullptr); return 0; } - cocos2d::EaseExponentialIn* ret = cocos2d::EaseExponentialIn::create(arg0); - object_to_luaval(tolua_S, "cc.EaseExponentialIn",(cocos2d::EaseExponentialIn*)ret); + axis::EaseExponentialIn* ret = axis::EaseExponentialIn::create(arg0); + object_to_luaval(tolua_S, "cc.EaseExponentialIn",(axis::EaseExponentialIn*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseExponentialIn:create",argc, 1); @@ -39031,7 +39031,7 @@ int lua_cocos2dx_EaseExponentialIn_create(lua_State* tolua_S) int lua_cocos2dx_EaseExponentialIn_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EaseExponentialIn* cobj = nullptr; + axis::EaseExponentialIn* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -39048,7 +39048,7 @@ int lua_cocos2dx_EaseExponentialIn_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseExponentialIn_constructor'", nullptr); return 0; } - cobj = new cocos2d::EaseExponentialIn(); + cobj = new axis::EaseExponentialIn(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -39080,7 +39080,7 @@ int lua_register_cocos2dx_EaseExponentialIn(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_EaseExponentialIn_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseExponentialIn_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EaseExponentialIn).name(); // rtti is literal storage + auto typeName = typeid(axis::EaseExponentialIn).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EaseExponentialIn"; g_typeCast[typeName] = "cc.EaseExponentialIn"; return 1; @@ -39103,15 +39103,15 @@ int lua_cocos2dx_EaseExponentialOut_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseExponentialOut:create"); + axis::ActionInterval* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseExponentialOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseExponentialOut_create'", nullptr); return 0; } - cocos2d::EaseExponentialOut* ret = cocos2d::EaseExponentialOut::create(arg0); - object_to_luaval(tolua_S, "cc.EaseExponentialOut",(cocos2d::EaseExponentialOut*)ret); + axis::EaseExponentialOut* ret = axis::EaseExponentialOut::create(arg0); + object_to_luaval(tolua_S, "cc.EaseExponentialOut",(axis::EaseExponentialOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseExponentialOut:create",argc, 1); @@ -39125,7 +39125,7 @@ int lua_cocos2dx_EaseExponentialOut_create(lua_State* tolua_S) int lua_cocos2dx_EaseExponentialOut_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EaseExponentialOut* cobj = nullptr; + axis::EaseExponentialOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -39142,7 +39142,7 @@ int lua_cocos2dx_EaseExponentialOut_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseExponentialOut_constructor'", nullptr); return 0; } - cobj = new cocos2d::EaseExponentialOut(); + cobj = new axis::EaseExponentialOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -39174,7 +39174,7 @@ int lua_register_cocos2dx_EaseExponentialOut(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_EaseExponentialOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseExponentialOut_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EaseExponentialOut).name(); // rtti is literal storage + auto typeName = typeid(axis::EaseExponentialOut).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EaseExponentialOut"; g_typeCast[typeName] = "cc.EaseExponentialOut"; return 1; @@ -39197,15 +39197,15 @@ int lua_cocos2dx_EaseExponentialInOut_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseExponentialInOut:create"); + axis::ActionInterval* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseExponentialInOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseExponentialInOut_create'", nullptr); return 0; } - cocos2d::EaseExponentialInOut* ret = cocos2d::EaseExponentialInOut::create(arg0); - object_to_luaval(tolua_S, "cc.EaseExponentialInOut",(cocos2d::EaseExponentialInOut*)ret); + axis::EaseExponentialInOut* ret = axis::EaseExponentialInOut::create(arg0); + object_to_luaval(tolua_S, "cc.EaseExponentialInOut",(axis::EaseExponentialInOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseExponentialInOut:create",argc, 1); @@ -39219,7 +39219,7 @@ int lua_cocos2dx_EaseExponentialInOut_create(lua_State* tolua_S) int lua_cocos2dx_EaseExponentialInOut_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EaseExponentialInOut* cobj = nullptr; + axis::EaseExponentialInOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -39236,7 +39236,7 @@ int lua_cocos2dx_EaseExponentialInOut_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseExponentialInOut_constructor'", nullptr); return 0; } - cobj = new cocos2d::EaseExponentialInOut(); + cobj = new axis::EaseExponentialInOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -39268,7 +39268,7 @@ int lua_register_cocos2dx_EaseExponentialInOut(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_EaseExponentialInOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseExponentialInOut_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EaseExponentialInOut).name(); // rtti is literal storage + auto typeName = typeid(axis::EaseExponentialInOut).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EaseExponentialInOut"; g_typeCast[typeName] = "cc.EaseExponentialInOut"; return 1; @@ -39291,15 +39291,15 @@ int lua_cocos2dx_EaseSineIn_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseSineIn:create"); + axis::ActionInterval* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseSineIn:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseSineIn_create'", nullptr); return 0; } - cocos2d::EaseSineIn* ret = cocos2d::EaseSineIn::create(arg0); - object_to_luaval(tolua_S, "cc.EaseSineIn",(cocos2d::EaseSineIn*)ret); + axis::EaseSineIn* ret = axis::EaseSineIn::create(arg0); + object_to_luaval(tolua_S, "cc.EaseSineIn",(axis::EaseSineIn*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseSineIn:create",argc, 1); @@ -39313,7 +39313,7 @@ int lua_cocos2dx_EaseSineIn_create(lua_State* tolua_S) int lua_cocos2dx_EaseSineIn_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EaseSineIn* cobj = nullptr; + axis::EaseSineIn* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -39330,7 +39330,7 @@ int lua_cocos2dx_EaseSineIn_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseSineIn_constructor'", nullptr); return 0; } - cobj = new cocos2d::EaseSineIn(); + cobj = new axis::EaseSineIn(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -39362,7 +39362,7 @@ int lua_register_cocos2dx_EaseSineIn(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_EaseSineIn_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseSineIn_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EaseSineIn).name(); // rtti is literal storage + auto typeName = typeid(axis::EaseSineIn).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EaseSineIn"; g_typeCast[typeName] = "cc.EaseSineIn"; return 1; @@ -39385,15 +39385,15 @@ int lua_cocos2dx_EaseSineOut_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseSineOut:create"); + axis::ActionInterval* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseSineOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseSineOut_create'", nullptr); return 0; } - cocos2d::EaseSineOut* ret = cocos2d::EaseSineOut::create(arg0); - object_to_luaval(tolua_S, "cc.EaseSineOut",(cocos2d::EaseSineOut*)ret); + axis::EaseSineOut* ret = axis::EaseSineOut::create(arg0); + object_to_luaval(tolua_S, "cc.EaseSineOut",(axis::EaseSineOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseSineOut:create",argc, 1); @@ -39407,7 +39407,7 @@ int lua_cocos2dx_EaseSineOut_create(lua_State* tolua_S) int lua_cocos2dx_EaseSineOut_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EaseSineOut* cobj = nullptr; + axis::EaseSineOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -39424,7 +39424,7 @@ int lua_cocos2dx_EaseSineOut_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseSineOut_constructor'", nullptr); return 0; } - cobj = new cocos2d::EaseSineOut(); + cobj = new axis::EaseSineOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -39456,7 +39456,7 @@ int lua_register_cocos2dx_EaseSineOut(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_EaseSineOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseSineOut_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EaseSineOut).name(); // rtti is literal storage + auto typeName = typeid(axis::EaseSineOut).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EaseSineOut"; g_typeCast[typeName] = "cc.EaseSineOut"; return 1; @@ -39479,15 +39479,15 @@ int lua_cocos2dx_EaseSineInOut_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseSineInOut:create"); + axis::ActionInterval* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseSineInOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseSineInOut_create'", nullptr); return 0; } - cocos2d::EaseSineInOut* ret = cocos2d::EaseSineInOut::create(arg0); - object_to_luaval(tolua_S, "cc.EaseSineInOut",(cocos2d::EaseSineInOut*)ret); + axis::EaseSineInOut* ret = axis::EaseSineInOut::create(arg0); + object_to_luaval(tolua_S, "cc.EaseSineInOut",(axis::EaseSineInOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseSineInOut:create",argc, 1); @@ -39501,7 +39501,7 @@ int lua_cocos2dx_EaseSineInOut_create(lua_State* tolua_S) int lua_cocos2dx_EaseSineInOut_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EaseSineInOut* cobj = nullptr; + axis::EaseSineInOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -39518,7 +39518,7 @@ int lua_cocos2dx_EaseSineInOut_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseSineInOut_constructor'", nullptr); return 0; } - cobj = new cocos2d::EaseSineInOut(); + cobj = new axis::EaseSineInOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -39550,7 +39550,7 @@ int lua_register_cocos2dx_EaseSineInOut(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_EaseSineInOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseSineInOut_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EaseSineInOut).name(); // rtti is literal storage + auto typeName = typeid(axis::EaseSineInOut).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EaseSineInOut"; g_typeCast[typeName] = "cc.EaseSineInOut"; return 1; @@ -39569,7 +39569,7 @@ int lua_register_cocos2dx_EaseBounce(lua_State* tolua_S) tolua_beginmodule(tolua_S,"EaseBounce"); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EaseBounce).name(); // rtti is literal storage + auto typeName = typeid(axis::EaseBounce).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EaseBounce"; g_typeCast[typeName] = "cc.EaseBounce"; return 1; @@ -39592,15 +39592,15 @@ int lua_cocos2dx_EaseBounceIn_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseBounceIn:create"); + axis::ActionInterval* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseBounceIn:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseBounceIn_create'", nullptr); return 0; } - cocos2d::EaseBounceIn* ret = cocos2d::EaseBounceIn::create(arg0); - object_to_luaval(tolua_S, "cc.EaseBounceIn",(cocos2d::EaseBounceIn*)ret); + axis::EaseBounceIn* ret = axis::EaseBounceIn::create(arg0); + object_to_luaval(tolua_S, "cc.EaseBounceIn",(axis::EaseBounceIn*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseBounceIn:create",argc, 1); @@ -39614,7 +39614,7 @@ int lua_cocos2dx_EaseBounceIn_create(lua_State* tolua_S) int lua_cocos2dx_EaseBounceIn_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EaseBounceIn* cobj = nullptr; + axis::EaseBounceIn* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -39631,7 +39631,7 @@ int lua_cocos2dx_EaseBounceIn_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseBounceIn_constructor'", nullptr); return 0; } - cobj = new cocos2d::EaseBounceIn(); + cobj = new axis::EaseBounceIn(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -39663,7 +39663,7 @@ int lua_register_cocos2dx_EaseBounceIn(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_EaseBounceIn_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseBounceIn_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EaseBounceIn).name(); // rtti is literal storage + auto typeName = typeid(axis::EaseBounceIn).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EaseBounceIn"; g_typeCast[typeName] = "cc.EaseBounceIn"; return 1; @@ -39686,15 +39686,15 @@ int lua_cocos2dx_EaseBounceOut_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseBounceOut:create"); + axis::ActionInterval* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseBounceOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseBounceOut_create'", nullptr); return 0; } - cocos2d::EaseBounceOut* ret = cocos2d::EaseBounceOut::create(arg0); - object_to_luaval(tolua_S, "cc.EaseBounceOut",(cocos2d::EaseBounceOut*)ret); + axis::EaseBounceOut* ret = axis::EaseBounceOut::create(arg0); + object_to_luaval(tolua_S, "cc.EaseBounceOut",(axis::EaseBounceOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseBounceOut:create",argc, 1); @@ -39708,7 +39708,7 @@ int lua_cocos2dx_EaseBounceOut_create(lua_State* tolua_S) int lua_cocos2dx_EaseBounceOut_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EaseBounceOut* cobj = nullptr; + axis::EaseBounceOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -39725,7 +39725,7 @@ int lua_cocos2dx_EaseBounceOut_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseBounceOut_constructor'", nullptr); return 0; } - cobj = new cocos2d::EaseBounceOut(); + cobj = new axis::EaseBounceOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -39757,7 +39757,7 @@ int lua_register_cocos2dx_EaseBounceOut(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_EaseBounceOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseBounceOut_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EaseBounceOut).name(); // rtti is literal storage + auto typeName = typeid(axis::EaseBounceOut).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EaseBounceOut"; g_typeCast[typeName] = "cc.EaseBounceOut"; return 1; @@ -39780,15 +39780,15 @@ int lua_cocos2dx_EaseBounceInOut_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseBounceInOut:create"); + axis::ActionInterval* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseBounceInOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseBounceInOut_create'", nullptr); return 0; } - cocos2d::EaseBounceInOut* ret = cocos2d::EaseBounceInOut::create(arg0); - object_to_luaval(tolua_S, "cc.EaseBounceInOut",(cocos2d::EaseBounceInOut*)ret); + axis::EaseBounceInOut* ret = axis::EaseBounceInOut::create(arg0); + object_to_luaval(tolua_S, "cc.EaseBounceInOut",(axis::EaseBounceInOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseBounceInOut:create",argc, 1); @@ -39802,7 +39802,7 @@ int lua_cocos2dx_EaseBounceInOut_create(lua_State* tolua_S) int lua_cocos2dx_EaseBounceInOut_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EaseBounceInOut* cobj = nullptr; + axis::EaseBounceInOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -39819,7 +39819,7 @@ int lua_cocos2dx_EaseBounceInOut_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseBounceInOut_constructor'", nullptr); return 0; } - cobj = new cocos2d::EaseBounceInOut(); + cobj = new axis::EaseBounceInOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -39851,7 +39851,7 @@ int lua_register_cocos2dx_EaseBounceInOut(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_EaseBounceInOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseBounceInOut_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EaseBounceInOut).name(); // rtti is literal storage + auto typeName = typeid(axis::EaseBounceInOut).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EaseBounceInOut"; g_typeCast[typeName] = "cc.EaseBounceInOut"; return 1; @@ -39874,15 +39874,15 @@ int lua_cocos2dx_EaseBackIn_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseBackIn:create"); + axis::ActionInterval* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseBackIn:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseBackIn_create'", nullptr); return 0; } - cocos2d::EaseBackIn* ret = cocos2d::EaseBackIn::create(arg0); - object_to_luaval(tolua_S, "cc.EaseBackIn",(cocos2d::EaseBackIn*)ret); + axis::EaseBackIn* ret = axis::EaseBackIn::create(arg0); + object_to_luaval(tolua_S, "cc.EaseBackIn",(axis::EaseBackIn*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseBackIn:create",argc, 1); @@ -39896,7 +39896,7 @@ int lua_cocos2dx_EaseBackIn_create(lua_State* tolua_S) int lua_cocos2dx_EaseBackIn_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EaseBackIn* cobj = nullptr; + axis::EaseBackIn* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -39913,7 +39913,7 @@ int lua_cocos2dx_EaseBackIn_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseBackIn_constructor'", nullptr); return 0; } - cobj = new cocos2d::EaseBackIn(); + cobj = new axis::EaseBackIn(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -39945,7 +39945,7 @@ int lua_register_cocos2dx_EaseBackIn(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_EaseBackIn_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseBackIn_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EaseBackIn).name(); // rtti is literal storage + auto typeName = typeid(axis::EaseBackIn).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EaseBackIn"; g_typeCast[typeName] = "cc.EaseBackIn"; return 1; @@ -39968,15 +39968,15 @@ int lua_cocos2dx_EaseBackOut_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseBackOut:create"); + axis::ActionInterval* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseBackOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseBackOut_create'", nullptr); return 0; } - cocos2d::EaseBackOut* ret = cocos2d::EaseBackOut::create(arg0); - object_to_luaval(tolua_S, "cc.EaseBackOut",(cocos2d::EaseBackOut*)ret); + axis::EaseBackOut* ret = axis::EaseBackOut::create(arg0); + object_to_luaval(tolua_S, "cc.EaseBackOut",(axis::EaseBackOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseBackOut:create",argc, 1); @@ -39990,7 +39990,7 @@ int lua_cocos2dx_EaseBackOut_create(lua_State* tolua_S) int lua_cocos2dx_EaseBackOut_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EaseBackOut* cobj = nullptr; + axis::EaseBackOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -40007,7 +40007,7 @@ int lua_cocos2dx_EaseBackOut_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseBackOut_constructor'", nullptr); return 0; } - cobj = new cocos2d::EaseBackOut(); + cobj = new axis::EaseBackOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -40039,7 +40039,7 @@ int lua_register_cocos2dx_EaseBackOut(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_EaseBackOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseBackOut_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EaseBackOut).name(); // rtti is literal storage + auto typeName = typeid(axis::EaseBackOut).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EaseBackOut"; g_typeCast[typeName] = "cc.EaseBackOut"; return 1; @@ -40062,15 +40062,15 @@ int lua_cocos2dx_EaseBackInOut_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseBackInOut:create"); + axis::ActionInterval* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseBackInOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseBackInOut_create'", nullptr); return 0; } - cocos2d::EaseBackInOut* ret = cocos2d::EaseBackInOut::create(arg0); - object_to_luaval(tolua_S, "cc.EaseBackInOut",(cocos2d::EaseBackInOut*)ret); + axis::EaseBackInOut* ret = axis::EaseBackInOut::create(arg0); + object_to_luaval(tolua_S, "cc.EaseBackInOut",(axis::EaseBackInOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseBackInOut:create",argc, 1); @@ -40084,7 +40084,7 @@ int lua_cocos2dx_EaseBackInOut_create(lua_State* tolua_S) int lua_cocos2dx_EaseBackInOut_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EaseBackInOut* cobj = nullptr; + axis::EaseBackInOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -40101,7 +40101,7 @@ int lua_cocos2dx_EaseBackInOut_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseBackInOut_constructor'", nullptr); return 0; } - cobj = new cocos2d::EaseBackInOut(); + cobj = new axis::EaseBackInOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -40133,7 +40133,7 @@ int lua_register_cocos2dx_EaseBackInOut(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_EaseBackInOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseBackInOut_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EaseBackInOut).name(); // rtti is literal storage + auto typeName = typeid(axis::EaseBackInOut).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EaseBackInOut"; g_typeCast[typeName] = "cc.EaseBackInOut"; return 1; @@ -40156,15 +40156,15 @@ int lua_cocos2dx_EaseQuadraticActionIn_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseQuadraticActionIn:create"); + axis::ActionInterval* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseQuadraticActionIn:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuadraticActionIn_create'", nullptr); return 0; } - cocos2d::EaseQuadraticActionIn* ret = cocos2d::EaseQuadraticActionIn::create(arg0); - object_to_luaval(tolua_S, "cc.EaseQuadraticActionIn",(cocos2d::EaseQuadraticActionIn*)ret); + axis::EaseQuadraticActionIn* ret = axis::EaseQuadraticActionIn::create(arg0); + object_to_luaval(tolua_S, "cc.EaseQuadraticActionIn",(axis::EaseQuadraticActionIn*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseQuadraticActionIn:create",argc, 1); @@ -40178,7 +40178,7 @@ int lua_cocos2dx_EaseQuadraticActionIn_create(lua_State* tolua_S) int lua_cocos2dx_EaseQuadraticActionIn_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EaseQuadraticActionIn* cobj = nullptr; + axis::EaseQuadraticActionIn* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -40195,7 +40195,7 @@ int lua_cocos2dx_EaseQuadraticActionIn_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuadraticActionIn_constructor'", nullptr); return 0; } - cobj = new cocos2d::EaseQuadraticActionIn(); + cobj = new axis::EaseQuadraticActionIn(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -40227,7 +40227,7 @@ int lua_register_cocos2dx_EaseQuadraticActionIn(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_EaseQuadraticActionIn_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuadraticActionIn_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EaseQuadraticActionIn).name(); // rtti is literal storage + auto typeName = typeid(axis::EaseQuadraticActionIn).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EaseQuadraticActionIn"; g_typeCast[typeName] = "cc.EaseQuadraticActionIn"; return 1; @@ -40250,15 +40250,15 @@ int lua_cocos2dx_EaseQuadraticActionOut_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseQuadraticActionOut:create"); + axis::ActionInterval* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseQuadraticActionOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuadraticActionOut_create'", nullptr); return 0; } - cocos2d::EaseQuadraticActionOut* ret = cocos2d::EaseQuadraticActionOut::create(arg0); - object_to_luaval(tolua_S, "cc.EaseQuadraticActionOut",(cocos2d::EaseQuadraticActionOut*)ret); + axis::EaseQuadraticActionOut* ret = axis::EaseQuadraticActionOut::create(arg0); + object_to_luaval(tolua_S, "cc.EaseQuadraticActionOut",(axis::EaseQuadraticActionOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseQuadraticActionOut:create",argc, 1); @@ -40272,7 +40272,7 @@ int lua_cocos2dx_EaseQuadraticActionOut_create(lua_State* tolua_S) int lua_cocos2dx_EaseQuadraticActionOut_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EaseQuadraticActionOut* cobj = nullptr; + axis::EaseQuadraticActionOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -40289,7 +40289,7 @@ int lua_cocos2dx_EaseQuadraticActionOut_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuadraticActionOut_constructor'", nullptr); return 0; } - cobj = new cocos2d::EaseQuadraticActionOut(); + cobj = new axis::EaseQuadraticActionOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -40321,7 +40321,7 @@ int lua_register_cocos2dx_EaseQuadraticActionOut(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_EaseQuadraticActionOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuadraticActionOut_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EaseQuadraticActionOut).name(); // rtti is literal storage + auto typeName = typeid(axis::EaseQuadraticActionOut).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EaseQuadraticActionOut"; g_typeCast[typeName] = "cc.EaseQuadraticActionOut"; return 1; @@ -40344,15 +40344,15 @@ int lua_cocos2dx_EaseQuadraticActionInOut_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseQuadraticActionInOut:create"); + axis::ActionInterval* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseQuadraticActionInOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuadraticActionInOut_create'", nullptr); return 0; } - cocos2d::EaseQuadraticActionInOut* ret = cocos2d::EaseQuadraticActionInOut::create(arg0); - object_to_luaval(tolua_S, "cc.EaseQuadraticActionInOut",(cocos2d::EaseQuadraticActionInOut*)ret); + axis::EaseQuadraticActionInOut* ret = axis::EaseQuadraticActionInOut::create(arg0); + object_to_luaval(tolua_S, "cc.EaseQuadraticActionInOut",(axis::EaseQuadraticActionInOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseQuadraticActionInOut:create",argc, 1); @@ -40366,7 +40366,7 @@ int lua_cocos2dx_EaseQuadraticActionInOut_create(lua_State* tolua_S) int lua_cocos2dx_EaseQuadraticActionInOut_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EaseQuadraticActionInOut* cobj = nullptr; + axis::EaseQuadraticActionInOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -40383,7 +40383,7 @@ int lua_cocos2dx_EaseQuadraticActionInOut_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuadraticActionInOut_constructor'", nullptr); return 0; } - cobj = new cocos2d::EaseQuadraticActionInOut(); + cobj = new axis::EaseQuadraticActionInOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -40415,7 +40415,7 @@ int lua_register_cocos2dx_EaseQuadraticActionInOut(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_EaseQuadraticActionInOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuadraticActionInOut_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EaseQuadraticActionInOut).name(); // rtti is literal storage + auto typeName = typeid(axis::EaseQuadraticActionInOut).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EaseQuadraticActionInOut"; g_typeCast[typeName] = "cc.EaseQuadraticActionInOut"; return 1; @@ -40438,15 +40438,15 @@ int lua_cocos2dx_EaseQuarticActionIn_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseQuarticActionIn:create"); + axis::ActionInterval* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseQuarticActionIn:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuarticActionIn_create'", nullptr); return 0; } - cocos2d::EaseQuarticActionIn* ret = cocos2d::EaseQuarticActionIn::create(arg0); - object_to_luaval(tolua_S, "cc.EaseQuarticActionIn",(cocos2d::EaseQuarticActionIn*)ret); + axis::EaseQuarticActionIn* ret = axis::EaseQuarticActionIn::create(arg0); + object_to_luaval(tolua_S, "cc.EaseQuarticActionIn",(axis::EaseQuarticActionIn*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseQuarticActionIn:create",argc, 1); @@ -40460,7 +40460,7 @@ int lua_cocos2dx_EaseQuarticActionIn_create(lua_State* tolua_S) int lua_cocos2dx_EaseQuarticActionIn_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EaseQuarticActionIn* cobj = nullptr; + axis::EaseQuarticActionIn* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -40477,7 +40477,7 @@ int lua_cocos2dx_EaseQuarticActionIn_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuarticActionIn_constructor'", nullptr); return 0; } - cobj = new cocos2d::EaseQuarticActionIn(); + cobj = new axis::EaseQuarticActionIn(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -40509,7 +40509,7 @@ int lua_register_cocos2dx_EaseQuarticActionIn(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_EaseQuarticActionIn_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuarticActionIn_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EaseQuarticActionIn).name(); // rtti is literal storage + auto typeName = typeid(axis::EaseQuarticActionIn).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EaseQuarticActionIn"; g_typeCast[typeName] = "cc.EaseQuarticActionIn"; return 1; @@ -40532,15 +40532,15 @@ int lua_cocos2dx_EaseQuarticActionOut_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseQuarticActionOut:create"); + axis::ActionInterval* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseQuarticActionOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuarticActionOut_create'", nullptr); return 0; } - cocos2d::EaseQuarticActionOut* ret = cocos2d::EaseQuarticActionOut::create(arg0); - object_to_luaval(tolua_S, "cc.EaseQuarticActionOut",(cocos2d::EaseQuarticActionOut*)ret); + axis::EaseQuarticActionOut* ret = axis::EaseQuarticActionOut::create(arg0); + object_to_luaval(tolua_S, "cc.EaseQuarticActionOut",(axis::EaseQuarticActionOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseQuarticActionOut:create",argc, 1); @@ -40554,7 +40554,7 @@ int lua_cocos2dx_EaseQuarticActionOut_create(lua_State* tolua_S) int lua_cocos2dx_EaseQuarticActionOut_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EaseQuarticActionOut* cobj = nullptr; + axis::EaseQuarticActionOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -40571,7 +40571,7 @@ int lua_cocos2dx_EaseQuarticActionOut_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuarticActionOut_constructor'", nullptr); return 0; } - cobj = new cocos2d::EaseQuarticActionOut(); + cobj = new axis::EaseQuarticActionOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -40603,7 +40603,7 @@ int lua_register_cocos2dx_EaseQuarticActionOut(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_EaseQuarticActionOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuarticActionOut_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EaseQuarticActionOut).name(); // rtti is literal storage + auto typeName = typeid(axis::EaseQuarticActionOut).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EaseQuarticActionOut"; g_typeCast[typeName] = "cc.EaseQuarticActionOut"; return 1; @@ -40626,15 +40626,15 @@ int lua_cocos2dx_EaseQuarticActionInOut_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseQuarticActionInOut:create"); + axis::ActionInterval* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseQuarticActionInOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuarticActionInOut_create'", nullptr); return 0; } - cocos2d::EaseQuarticActionInOut* ret = cocos2d::EaseQuarticActionInOut::create(arg0); - object_to_luaval(tolua_S, "cc.EaseQuarticActionInOut",(cocos2d::EaseQuarticActionInOut*)ret); + axis::EaseQuarticActionInOut* ret = axis::EaseQuarticActionInOut::create(arg0); + object_to_luaval(tolua_S, "cc.EaseQuarticActionInOut",(axis::EaseQuarticActionInOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseQuarticActionInOut:create",argc, 1); @@ -40648,7 +40648,7 @@ int lua_cocos2dx_EaseQuarticActionInOut_create(lua_State* tolua_S) int lua_cocos2dx_EaseQuarticActionInOut_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EaseQuarticActionInOut* cobj = nullptr; + axis::EaseQuarticActionInOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -40665,7 +40665,7 @@ int lua_cocos2dx_EaseQuarticActionInOut_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuarticActionInOut_constructor'", nullptr); return 0; } - cobj = new cocos2d::EaseQuarticActionInOut(); + cobj = new axis::EaseQuarticActionInOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -40697,7 +40697,7 @@ int lua_register_cocos2dx_EaseQuarticActionInOut(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_EaseQuarticActionInOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuarticActionInOut_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EaseQuarticActionInOut).name(); // rtti is literal storage + auto typeName = typeid(axis::EaseQuarticActionInOut).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EaseQuarticActionInOut"; g_typeCast[typeName] = "cc.EaseQuarticActionInOut"; return 1; @@ -40720,15 +40720,15 @@ int lua_cocos2dx_EaseQuinticActionIn_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseQuinticActionIn:create"); + axis::ActionInterval* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseQuinticActionIn:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuinticActionIn_create'", nullptr); return 0; } - cocos2d::EaseQuinticActionIn* ret = cocos2d::EaseQuinticActionIn::create(arg0); - object_to_luaval(tolua_S, "cc.EaseQuinticActionIn",(cocos2d::EaseQuinticActionIn*)ret); + axis::EaseQuinticActionIn* ret = axis::EaseQuinticActionIn::create(arg0); + object_to_luaval(tolua_S, "cc.EaseQuinticActionIn",(axis::EaseQuinticActionIn*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseQuinticActionIn:create",argc, 1); @@ -40742,7 +40742,7 @@ int lua_cocos2dx_EaseQuinticActionIn_create(lua_State* tolua_S) int lua_cocos2dx_EaseQuinticActionIn_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EaseQuinticActionIn* cobj = nullptr; + axis::EaseQuinticActionIn* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -40759,7 +40759,7 @@ int lua_cocos2dx_EaseQuinticActionIn_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuinticActionIn_constructor'", nullptr); return 0; } - cobj = new cocos2d::EaseQuinticActionIn(); + cobj = new axis::EaseQuinticActionIn(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -40791,7 +40791,7 @@ int lua_register_cocos2dx_EaseQuinticActionIn(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_EaseQuinticActionIn_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuinticActionIn_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EaseQuinticActionIn).name(); // rtti is literal storage + auto typeName = typeid(axis::EaseQuinticActionIn).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EaseQuinticActionIn"; g_typeCast[typeName] = "cc.EaseQuinticActionIn"; return 1; @@ -40814,15 +40814,15 @@ int lua_cocos2dx_EaseQuinticActionOut_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseQuinticActionOut:create"); + axis::ActionInterval* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseQuinticActionOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuinticActionOut_create'", nullptr); return 0; } - cocos2d::EaseQuinticActionOut* ret = cocos2d::EaseQuinticActionOut::create(arg0); - object_to_luaval(tolua_S, "cc.EaseQuinticActionOut",(cocos2d::EaseQuinticActionOut*)ret); + axis::EaseQuinticActionOut* ret = axis::EaseQuinticActionOut::create(arg0); + object_to_luaval(tolua_S, "cc.EaseQuinticActionOut",(axis::EaseQuinticActionOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseQuinticActionOut:create",argc, 1); @@ -40836,7 +40836,7 @@ int lua_cocos2dx_EaseQuinticActionOut_create(lua_State* tolua_S) int lua_cocos2dx_EaseQuinticActionOut_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EaseQuinticActionOut* cobj = nullptr; + axis::EaseQuinticActionOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -40853,7 +40853,7 @@ int lua_cocos2dx_EaseQuinticActionOut_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuinticActionOut_constructor'", nullptr); return 0; } - cobj = new cocos2d::EaseQuinticActionOut(); + cobj = new axis::EaseQuinticActionOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -40885,7 +40885,7 @@ int lua_register_cocos2dx_EaseQuinticActionOut(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_EaseQuinticActionOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuinticActionOut_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EaseQuinticActionOut).name(); // rtti is literal storage + auto typeName = typeid(axis::EaseQuinticActionOut).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EaseQuinticActionOut"; g_typeCast[typeName] = "cc.EaseQuinticActionOut"; return 1; @@ -40908,15 +40908,15 @@ int lua_cocos2dx_EaseQuinticActionInOut_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseQuinticActionInOut:create"); + axis::ActionInterval* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseQuinticActionInOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuinticActionInOut_create'", nullptr); return 0; } - cocos2d::EaseQuinticActionInOut* ret = cocos2d::EaseQuinticActionInOut::create(arg0); - object_to_luaval(tolua_S, "cc.EaseQuinticActionInOut",(cocos2d::EaseQuinticActionInOut*)ret); + axis::EaseQuinticActionInOut* ret = axis::EaseQuinticActionInOut::create(arg0); + object_to_luaval(tolua_S, "cc.EaseQuinticActionInOut",(axis::EaseQuinticActionInOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseQuinticActionInOut:create",argc, 1); @@ -40930,7 +40930,7 @@ int lua_cocos2dx_EaseQuinticActionInOut_create(lua_State* tolua_S) int lua_cocos2dx_EaseQuinticActionInOut_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EaseQuinticActionInOut* cobj = nullptr; + axis::EaseQuinticActionInOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -40947,7 +40947,7 @@ int lua_cocos2dx_EaseQuinticActionInOut_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseQuinticActionInOut_constructor'", nullptr); return 0; } - cobj = new cocos2d::EaseQuinticActionInOut(); + cobj = new axis::EaseQuinticActionInOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -40979,7 +40979,7 @@ int lua_register_cocos2dx_EaseQuinticActionInOut(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_EaseQuinticActionInOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseQuinticActionInOut_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EaseQuinticActionInOut).name(); // rtti is literal storage + auto typeName = typeid(axis::EaseQuinticActionInOut).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EaseQuinticActionInOut"; g_typeCast[typeName] = "cc.EaseQuinticActionInOut"; return 1; @@ -41002,15 +41002,15 @@ int lua_cocos2dx_EaseCircleActionIn_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseCircleActionIn:create"); + axis::ActionInterval* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseCircleActionIn:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseCircleActionIn_create'", nullptr); return 0; } - cocos2d::EaseCircleActionIn* ret = cocos2d::EaseCircleActionIn::create(arg0); - object_to_luaval(tolua_S, "cc.EaseCircleActionIn",(cocos2d::EaseCircleActionIn*)ret); + axis::EaseCircleActionIn* ret = axis::EaseCircleActionIn::create(arg0); + object_to_luaval(tolua_S, "cc.EaseCircleActionIn",(axis::EaseCircleActionIn*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseCircleActionIn:create",argc, 1); @@ -41024,7 +41024,7 @@ int lua_cocos2dx_EaseCircleActionIn_create(lua_State* tolua_S) int lua_cocos2dx_EaseCircleActionIn_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EaseCircleActionIn* cobj = nullptr; + axis::EaseCircleActionIn* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -41041,7 +41041,7 @@ int lua_cocos2dx_EaseCircleActionIn_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseCircleActionIn_constructor'", nullptr); return 0; } - cobj = new cocos2d::EaseCircleActionIn(); + cobj = new axis::EaseCircleActionIn(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -41073,7 +41073,7 @@ int lua_register_cocos2dx_EaseCircleActionIn(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_EaseCircleActionIn_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseCircleActionIn_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EaseCircleActionIn).name(); // rtti is literal storage + auto typeName = typeid(axis::EaseCircleActionIn).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EaseCircleActionIn"; g_typeCast[typeName] = "cc.EaseCircleActionIn"; return 1; @@ -41096,15 +41096,15 @@ int lua_cocos2dx_EaseCircleActionOut_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseCircleActionOut:create"); + axis::ActionInterval* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseCircleActionOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseCircleActionOut_create'", nullptr); return 0; } - cocos2d::EaseCircleActionOut* ret = cocos2d::EaseCircleActionOut::create(arg0); - object_to_luaval(tolua_S, "cc.EaseCircleActionOut",(cocos2d::EaseCircleActionOut*)ret); + axis::EaseCircleActionOut* ret = axis::EaseCircleActionOut::create(arg0); + object_to_luaval(tolua_S, "cc.EaseCircleActionOut",(axis::EaseCircleActionOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseCircleActionOut:create",argc, 1); @@ -41118,7 +41118,7 @@ int lua_cocos2dx_EaseCircleActionOut_create(lua_State* tolua_S) int lua_cocos2dx_EaseCircleActionOut_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EaseCircleActionOut* cobj = nullptr; + axis::EaseCircleActionOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -41135,7 +41135,7 @@ int lua_cocos2dx_EaseCircleActionOut_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseCircleActionOut_constructor'", nullptr); return 0; } - cobj = new cocos2d::EaseCircleActionOut(); + cobj = new axis::EaseCircleActionOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -41167,7 +41167,7 @@ int lua_register_cocos2dx_EaseCircleActionOut(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_EaseCircleActionOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseCircleActionOut_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EaseCircleActionOut).name(); // rtti is literal storage + auto typeName = typeid(axis::EaseCircleActionOut).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EaseCircleActionOut"; g_typeCast[typeName] = "cc.EaseCircleActionOut"; return 1; @@ -41190,15 +41190,15 @@ int lua_cocos2dx_EaseCircleActionInOut_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseCircleActionInOut:create"); + axis::ActionInterval* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseCircleActionInOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseCircleActionInOut_create'", nullptr); return 0; } - cocos2d::EaseCircleActionInOut* ret = cocos2d::EaseCircleActionInOut::create(arg0); - object_to_luaval(tolua_S, "cc.EaseCircleActionInOut",(cocos2d::EaseCircleActionInOut*)ret); + axis::EaseCircleActionInOut* ret = axis::EaseCircleActionInOut::create(arg0); + object_to_luaval(tolua_S, "cc.EaseCircleActionInOut",(axis::EaseCircleActionInOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseCircleActionInOut:create",argc, 1); @@ -41212,7 +41212,7 @@ int lua_cocos2dx_EaseCircleActionInOut_create(lua_State* tolua_S) int lua_cocos2dx_EaseCircleActionInOut_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EaseCircleActionInOut* cobj = nullptr; + axis::EaseCircleActionInOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -41229,7 +41229,7 @@ int lua_cocos2dx_EaseCircleActionInOut_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseCircleActionInOut_constructor'", nullptr); return 0; } - cobj = new cocos2d::EaseCircleActionInOut(); + cobj = new axis::EaseCircleActionInOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -41261,7 +41261,7 @@ int lua_register_cocos2dx_EaseCircleActionInOut(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_EaseCircleActionInOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseCircleActionInOut_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EaseCircleActionInOut).name(); // rtti is literal storage + auto typeName = typeid(axis::EaseCircleActionInOut).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EaseCircleActionInOut"; g_typeCast[typeName] = "cc.EaseCircleActionInOut"; return 1; @@ -41284,15 +41284,15 @@ int lua_cocos2dx_EaseCubicActionIn_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseCubicActionIn:create"); + axis::ActionInterval* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseCubicActionIn:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseCubicActionIn_create'", nullptr); return 0; } - cocos2d::EaseCubicActionIn* ret = cocos2d::EaseCubicActionIn::create(arg0); - object_to_luaval(tolua_S, "cc.EaseCubicActionIn",(cocos2d::EaseCubicActionIn*)ret); + axis::EaseCubicActionIn* ret = axis::EaseCubicActionIn::create(arg0); + object_to_luaval(tolua_S, "cc.EaseCubicActionIn",(axis::EaseCubicActionIn*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseCubicActionIn:create",argc, 1); @@ -41306,7 +41306,7 @@ int lua_cocos2dx_EaseCubicActionIn_create(lua_State* tolua_S) int lua_cocos2dx_EaseCubicActionIn_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EaseCubicActionIn* cobj = nullptr; + axis::EaseCubicActionIn* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -41323,7 +41323,7 @@ int lua_cocos2dx_EaseCubicActionIn_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseCubicActionIn_constructor'", nullptr); return 0; } - cobj = new cocos2d::EaseCubicActionIn(); + cobj = new axis::EaseCubicActionIn(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -41355,7 +41355,7 @@ int lua_register_cocos2dx_EaseCubicActionIn(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_EaseCubicActionIn_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseCubicActionIn_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EaseCubicActionIn).name(); // rtti is literal storage + auto typeName = typeid(axis::EaseCubicActionIn).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EaseCubicActionIn"; g_typeCast[typeName] = "cc.EaseCubicActionIn"; return 1; @@ -41378,15 +41378,15 @@ int lua_cocos2dx_EaseCubicActionOut_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseCubicActionOut:create"); + axis::ActionInterval* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseCubicActionOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseCubicActionOut_create'", nullptr); return 0; } - cocos2d::EaseCubicActionOut* ret = cocos2d::EaseCubicActionOut::create(arg0); - object_to_luaval(tolua_S, "cc.EaseCubicActionOut",(cocos2d::EaseCubicActionOut*)ret); + axis::EaseCubicActionOut* ret = axis::EaseCubicActionOut::create(arg0); + object_to_luaval(tolua_S, "cc.EaseCubicActionOut",(axis::EaseCubicActionOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseCubicActionOut:create",argc, 1); @@ -41400,7 +41400,7 @@ int lua_cocos2dx_EaseCubicActionOut_create(lua_State* tolua_S) int lua_cocos2dx_EaseCubicActionOut_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EaseCubicActionOut* cobj = nullptr; + axis::EaseCubicActionOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -41417,7 +41417,7 @@ int lua_cocos2dx_EaseCubicActionOut_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseCubicActionOut_constructor'", nullptr); return 0; } - cobj = new cocos2d::EaseCubicActionOut(); + cobj = new axis::EaseCubicActionOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -41449,7 +41449,7 @@ int lua_register_cocos2dx_EaseCubicActionOut(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_EaseCubicActionOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseCubicActionOut_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EaseCubicActionOut).name(); // rtti is literal storage + auto typeName = typeid(axis::EaseCubicActionOut).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EaseCubicActionOut"; g_typeCast[typeName] = "cc.EaseCubicActionOut"; return 1; @@ -41472,15 +41472,15 @@ int lua_cocos2dx_EaseCubicActionInOut_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseCubicActionInOut:create"); + axis::ActionInterval* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseCubicActionInOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseCubicActionInOut_create'", nullptr); return 0; } - cocos2d::EaseCubicActionInOut* ret = cocos2d::EaseCubicActionInOut::create(arg0); - object_to_luaval(tolua_S, "cc.EaseCubicActionInOut",(cocos2d::EaseCubicActionInOut*)ret); + axis::EaseCubicActionInOut* ret = axis::EaseCubicActionInOut::create(arg0); + object_to_luaval(tolua_S, "cc.EaseCubicActionInOut",(axis::EaseCubicActionInOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseCubicActionInOut:create",argc, 1); @@ -41494,7 +41494,7 @@ int lua_cocos2dx_EaseCubicActionInOut_create(lua_State* tolua_S) int lua_cocos2dx_EaseCubicActionInOut_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EaseCubicActionInOut* cobj = nullptr; + axis::EaseCubicActionInOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -41511,7 +41511,7 @@ int lua_cocos2dx_EaseCubicActionInOut_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseCubicActionInOut_constructor'", nullptr); return 0; } - cobj = new cocos2d::EaseCubicActionInOut(); + cobj = new axis::EaseCubicActionInOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -41543,7 +41543,7 @@ int lua_register_cocos2dx_EaseCubicActionInOut(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_EaseCubicActionInOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseCubicActionInOut_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EaseCubicActionInOut).name(); // rtti is literal storage + auto typeName = typeid(axis::EaseCubicActionInOut).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EaseCubicActionInOut"; g_typeCast[typeName] = "cc.EaseCubicActionInOut"; return 1; @@ -41566,17 +41566,17 @@ int lua_cocos2dx_EaseIn_create(lua_State* tolua_S) if (argc == 2) { - cocos2d::ActionInterval* arg0; + axis::ActionInterval* arg0; double arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseIn:create"); + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseIn:create"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.EaseIn:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseIn_create'", nullptr); return 0; } - cocos2d::EaseIn* ret = cocos2d::EaseIn::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.EaseIn",(cocos2d::EaseIn*)ret); + axis::EaseIn* ret = axis::EaseIn::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.EaseIn",(axis::EaseIn*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseIn:create",argc, 2); @@ -41590,7 +41590,7 @@ int lua_cocos2dx_EaseIn_create(lua_State* tolua_S) int lua_cocos2dx_EaseIn_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EaseIn* cobj = nullptr; + axis::EaseIn* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -41607,7 +41607,7 @@ int lua_cocos2dx_EaseIn_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseIn_constructor'", nullptr); return 0; } - cobj = new cocos2d::EaseIn(); + cobj = new axis::EaseIn(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -41639,7 +41639,7 @@ int lua_register_cocos2dx_EaseIn(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_EaseIn_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseIn_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EaseIn).name(); // rtti is literal storage + auto typeName = typeid(axis::EaseIn).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EaseIn"; g_typeCast[typeName] = "cc.EaseIn"; return 1; @@ -41662,17 +41662,17 @@ int lua_cocos2dx_EaseOut_create(lua_State* tolua_S) if (argc == 2) { - cocos2d::ActionInterval* arg0; + axis::ActionInterval* arg0; double arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseOut:create"); + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseOut:create"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.EaseOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseOut_create'", nullptr); return 0; } - cocos2d::EaseOut* ret = cocos2d::EaseOut::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.EaseOut",(cocos2d::EaseOut*)ret); + axis::EaseOut* ret = axis::EaseOut::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.EaseOut",(axis::EaseOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseOut:create",argc, 2); @@ -41686,7 +41686,7 @@ int lua_cocos2dx_EaseOut_create(lua_State* tolua_S) int lua_cocos2dx_EaseOut_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EaseOut* cobj = nullptr; + axis::EaseOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -41703,7 +41703,7 @@ int lua_cocos2dx_EaseOut_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseOut_constructor'", nullptr); return 0; } - cobj = new cocos2d::EaseOut(); + cobj = new axis::EaseOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -41735,7 +41735,7 @@ int lua_register_cocos2dx_EaseOut(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_EaseOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseOut_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EaseOut).name(); // rtti is literal storage + auto typeName = typeid(axis::EaseOut).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EaseOut"; g_typeCast[typeName] = "cc.EaseOut"; return 1; @@ -41758,17 +41758,17 @@ int lua_cocos2dx_EaseInOut_create(lua_State* tolua_S) if (argc == 2) { - cocos2d::ActionInterval* arg0; + axis::ActionInterval* arg0; double arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseInOut:create"); + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseInOut:create"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.EaseInOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseInOut_create'", nullptr); return 0; } - cocos2d::EaseInOut* ret = cocos2d::EaseInOut::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.EaseInOut",(cocos2d::EaseInOut*)ret); + axis::EaseInOut* ret = axis::EaseInOut::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.EaseInOut",(axis::EaseInOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseInOut:create",argc, 2); @@ -41782,7 +41782,7 @@ int lua_cocos2dx_EaseInOut_create(lua_State* tolua_S) int lua_cocos2dx_EaseInOut_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EaseInOut* cobj = nullptr; + axis::EaseInOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -41799,7 +41799,7 @@ int lua_cocos2dx_EaseInOut_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseInOut_constructor'", nullptr); return 0; } - cobj = new cocos2d::EaseInOut(); + cobj = new axis::EaseInOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -41831,7 +41831,7 @@ int lua_register_cocos2dx_EaseInOut(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_EaseInOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseInOut_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EaseInOut).name(); // rtti is literal storage + auto typeName = typeid(axis::EaseInOut).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EaseInOut"; g_typeCast[typeName] = "cc.EaseInOut"; return 1; @@ -41840,7 +41840,7 @@ int lua_register_cocos2dx_EaseInOut(lua_State* tolua_S) int lua_cocos2dx_EaseElastic_setPeriod(lua_State* tolua_S) { int argc = 0; - cocos2d::EaseElastic* cobj = nullptr; + axis::EaseElastic* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -41852,7 +41852,7 @@ int lua_cocos2dx_EaseElastic_setPeriod(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EaseElastic",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EaseElastic*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EaseElastic*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -41890,7 +41890,7 @@ int lua_cocos2dx_EaseElastic_setPeriod(lua_State* tolua_S) int lua_cocos2dx_EaseElastic_initWithAction(lua_State* tolua_S) { int argc = 0; - cocos2d::EaseElastic* cobj = nullptr; + axis::EaseElastic* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -41902,7 +41902,7 @@ int lua_cocos2dx_EaseElastic_initWithAction(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EaseElastic",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EaseElastic*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EaseElastic*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -41915,9 +41915,9 @@ int lua_cocos2dx_EaseElastic_initWithAction(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ActionInterval* arg0; + axis::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseElastic:initWithAction"); + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseElastic:initWithAction"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseElastic_initWithAction'", nullptr); @@ -41929,10 +41929,10 @@ int lua_cocos2dx_EaseElastic_initWithAction(lua_State* tolua_S) } if (argc == 2) { - cocos2d::ActionInterval* arg0; + axis::ActionInterval* arg0; double arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseElastic:initWithAction"); + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseElastic:initWithAction"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.EaseElastic:initWithAction"); if(!ok) @@ -41957,7 +41957,7 @@ int lua_cocos2dx_EaseElastic_initWithAction(lua_State* tolua_S) int lua_cocos2dx_EaseElastic_getPeriod(lua_State* tolua_S) { int argc = 0; - cocos2d::EaseElastic* cobj = nullptr; + axis::EaseElastic* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -41969,7 +41969,7 @@ int lua_cocos2dx_EaseElastic_getPeriod(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EaseElastic",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EaseElastic*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EaseElastic*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -42017,7 +42017,7 @@ int lua_register_cocos2dx_EaseElastic(lua_State* tolua_S) tolua_function(tolua_S,"initWithAction",lua_cocos2dx_EaseElastic_initWithAction); tolua_function(tolua_S,"getPeriod",lua_cocos2dx_EaseElastic_getPeriod); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EaseElastic).name(); // rtti is literal storage + auto typeName = typeid(axis::EaseElastic).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EaseElastic"; g_typeCast[typeName] = "cc.EaseElastic"; return 1; @@ -42040,30 +42040,30 @@ int lua_cocos2dx_EaseElasticIn_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseElasticIn:create"); + axis::ActionInterval* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseElasticIn:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseElasticIn_create'", nullptr); return 0; } - cocos2d::EaseElasticIn* ret = cocos2d::EaseElasticIn::create(arg0); - object_to_luaval(tolua_S, "cc.EaseElasticIn",(cocos2d::EaseElasticIn*)ret); + axis::EaseElasticIn* ret = axis::EaseElasticIn::create(arg0); + object_to_luaval(tolua_S, "cc.EaseElasticIn",(axis::EaseElasticIn*)ret); return 1; } if (argc == 2) { - cocos2d::ActionInterval* arg0; + axis::ActionInterval* arg0; double arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseElasticIn:create"); + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseElasticIn:create"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.EaseElasticIn:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseElasticIn_create'", nullptr); return 0; } - cocos2d::EaseElasticIn* ret = cocos2d::EaseElasticIn::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.EaseElasticIn",(cocos2d::EaseElasticIn*)ret); + axis::EaseElasticIn* ret = axis::EaseElasticIn::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.EaseElasticIn",(axis::EaseElasticIn*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseElasticIn:create",argc, 1); @@ -42077,7 +42077,7 @@ int lua_cocos2dx_EaseElasticIn_create(lua_State* tolua_S) int lua_cocos2dx_EaseElasticIn_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EaseElasticIn* cobj = nullptr; + axis::EaseElasticIn* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -42094,7 +42094,7 @@ int lua_cocos2dx_EaseElasticIn_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseElasticIn_constructor'", nullptr); return 0; } - cobj = new cocos2d::EaseElasticIn(); + cobj = new axis::EaseElasticIn(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -42126,7 +42126,7 @@ int lua_register_cocos2dx_EaseElasticIn(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_EaseElasticIn_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseElasticIn_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EaseElasticIn).name(); // rtti is literal storage + auto typeName = typeid(axis::EaseElasticIn).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EaseElasticIn"; g_typeCast[typeName] = "cc.EaseElasticIn"; return 1; @@ -42149,30 +42149,30 @@ int lua_cocos2dx_EaseElasticOut_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseElasticOut:create"); + axis::ActionInterval* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseElasticOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseElasticOut_create'", nullptr); return 0; } - cocos2d::EaseElasticOut* ret = cocos2d::EaseElasticOut::create(arg0); - object_to_luaval(tolua_S, "cc.EaseElasticOut",(cocos2d::EaseElasticOut*)ret); + axis::EaseElasticOut* ret = axis::EaseElasticOut::create(arg0); + object_to_luaval(tolua_S, "cc.EaseElasticOut",(axis::EaseElasticOut*)ret); return 1; } if (argc == 2) { - cocos2d::ActionInterval* arg0; + axis::ActionInterval* arg0; double arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseElasticOut:create"); + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseElasticOut:create"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.EaseElasticOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseElasticOut_create'", nullptr); return 0; } - cocos2d::EaseElasticOut* ret = cocos2d::EaseElasticOut::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.EaseElasticOut",(cocos2d::EaseElasticOut*)ret); + axis::EaseElasticOut* ret = axis::EaseElasticOut::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.EaseElasticOut",(axis::EaseElasticOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseElasticOut:create",argc, 1); @@ -42186,7 +42186,7 @@ int lua_cocos2dx_EaseElasticOut_create(lua_State* tolua_S) int lua_cocos2dx_EaseElasticOut_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EaseElasticOut* cobj = nullptr; + axis::EaseElasticOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -42203,7 +42203,7 @@ int lua_cocos2dx_EaseElasticOut_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseElasticOut_constructor'", nullptr); return 0; } - cobj = new cocos2d::EaseElasticOut(); + cobj = new axis::EaseElasticOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -42235,7 +42235,7 @@ int lua_register_cocos2dx_EaseElasticOut(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_EaseElasticOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseElasticOut_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EaseElasticOut).name(); // rtti is literal storage + auto typeName = typeid(axis::EaseElasticOut).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EaseElasticOut"; g_typeCast[typeName] = "cc.EaseElasticOut"; return 1; @@ -42258,30 +42258,30 @@ int lua_cocos2dx_EaseElasticInOut_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseElasticInOut:create"); + axis::ActionInterval* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseElasticInOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseElasticInOut_create'", nullptr); return 0; } - cocos2d::EaseElasticInOut* ret = cocos2d::EaseElasticInOut::create(arg0); - object_to_luaval(tolua_S, "cc.EaseElasticInOut",(cocos2d::EaseElasticInOut*)ret); + axis::EaseElasticInOut* ret = axis::EaseElasticInOut::create(arg0); + object_to_luaval(tolua_S, "cc.EaseElasticInOut",(axis::EaseElasticInOut*)ret); return 1; } if (argc == 2) { - cocos2d::ActionInterval* arg0; + axis::ActionInterval* arg0; double arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseElasticInOut:create"); + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseElasticInOut:create"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.EaseElasticInOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseElasticInOut_create'", nullptr); return 0; } - cocos2d::EaseElasticInOut* ret = cocos2d::EaseElasticInOut::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.EaseElasticInOut",(cocos2d::EaseElasticInOut*)ret); + axis::EaseElasticInOut* ret = axis::EaseElasticInOut::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.EaseElasticInOut",(axis::EaseElasticInOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseElasticInOut:create",argc, 1); @@ -42295,7 +42295,7 @@ int lua_cocos2dx_EaseElasticInOut_create(lua_State* tolua_S) int lua_cocos2dx_EaseElasticInOut_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EaseElasticInOut* cobj = nullptr; + axis::EaseElasticInOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -42312,7 +42312,7 @@ int lua_cocos2dx_EaseElasticInOut_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseElasticInOut_constructor'", nullptr); return 0; } - cobj = new cocos2d::EaseElasticInOut(); + cobj = new axis::EaseElasticInOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -42344,7 +42344,7 @@ int lua_register_cocos2dx_EaseElasticInOut(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_EaseElasticInOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_EaseElasticInOut_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EaseElasticInOut).name(); // rtti is literal storage + auto typeName = typeid(axis::EaseElasticInOut).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EaseElasticInOut"; g_typeCast[typeName] = "cc.EaseElasticInOut"; return 1; @@ -42353,7 +42353,7 @@ int lua_register_cocos2dx_EaseElasticInOut(lua_State* tolua_S) int lua_cocos2dx_EaseBezierAction_setBezierParamer(lua_State* tolua_S) { int argc = 0; - cocos2d::EaseBezierAction* cobj = nullptr; + axis::EaseBezierAction* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -42365,7 +42365,7 @@ int lua_cocos2dx_EaseBezierAction_setBezierParamer(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EaseBezierAction",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EaseBezierAction*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EaseBezierAction*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -42426,15 +42426,15 @@ int lua_cocos2dx_EaseBezierAction_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseBezierAction:create"); + axis::ActionInterval* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.EaseBezierAction:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseBezierAction_create'", nullptr); return 0; } - cocos2d::EaseBezierAction* ret = cocos2d::EaseBezierAction::create(arg0); - object_to_luaval(tolua_S, "cc.EaseBezierAction",(cocos2d::EaseBezierAction*)ret); + axis::EaseBezierAction* ret = axis::EaseBezierAction::create(arg0); + object_to_luaval(tolua_S, "cc.EaseBezierAction",(axis::EaseBezierAction*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EaseBezierAction:create",argc, 1); @@ -42448,7 +42448,7 @@ int lua_cocos2dx_EaseBezierAction_create(lua_State* tolua_S) int lua_cocos2dx_EaseBezierAction_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EaseBezierAction* cobj = nullptr; + axis::EaseBezierAction* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -42465,7 +42465,7 @@ int lua_cocos2dx_EaseBezierAction_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_EaseBezierAction_constructor'", nullptr); return 0; } - cobj = new cocos2d::EaseBezierAction(); + cobj = new axis::EaseBezierAction(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -42498,7 +42498,7 @@ int lua_register_cocos2dx_EaseBezierAction(lua_State* tolua_S) tolua_function(tolua_S,"setBezierParamer",lua_cocos2dx_EaseBezierAction_setBezierParamer); tolua_function(tolua_S,"create", lua_cocos2dx_EaseBezierAction_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EaseBezierAction).name(); // rtti is literal storage + auto typeName = typeid(axis::EaseBezierAction).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EaseBezierAction"; g_typeCast[typeName] = "cc.EaseBezierAction"; return 1; @@ -42517,7 +42517,7 @@ int lua_register_cocos2dx_ActionInstant(lua_State* tolua_S) tolua_beginmodule(tolua_S,"ActionInstant"); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ActionInstant).name(); // rtti is literal storage + auto typeName = typeid(axis::ActionInstant).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.ActionInstant"; g_typeCast[typeName] = "cc.ActionInstant"; return 1; @@ -42545,8 +42545,8 @@ int lua_cocos2dx_Show_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Show_create'", nullptr); return 0; } - cocos2d::Show* ret = cocos2d::Show::create(); - object_to_luaval(tolua_S, "cc.Show",(cocos2d::Show*)ret); + axis::Show* ret = axis::Show::create(); + object_to_luaval(tolua_S, "cc.Show",(axis::Show*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Show:create",argc, 0); @@ -42560,7 +42560,7 @@ int lua_cocos2dx_Show_create(lua_State* tolua_S) int lua_cocos2dx_Show_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Show* cobj = nullptr; + axis::Show* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -42577,7 +42577,7 @@ int lua_cocos2dx_Show_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Show_constructor'", nullptr); return 0; } - cobj = new cocos2d::Show(); + cobj = new axis::Show(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -42609,7 +42609,7 @@ int lua_register_cocos2dx_Show(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_Show_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_Show_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Show).name(); // rtti is literal storage + auto typeName = typeid(axis::Show).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Show"; g_typeCast[typeName] = "cc.Show"; return 1; @@ -42637,8 +42637,8 @@ int lua_cocos2dx_Hide_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Hide_create'", nullptr); return 0; } - cocos2d::Hide* ret = cocos2d::Hide::create(); - object_to_luaval(tolua_S, "cc.Hide",(cocos2d::Hide*)ret); + axis::Hide* ret = axis::Hide::create(); + object_to_luaval(tolua_S, "cc.Hide",(axis::Hide*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Hide:create",argc, 0); @@ -42652,7 +42652,7 @@ int lua_cocos2dx_Hide_create(lua_State* tolua_S) int lua_cocos2dx_Hide_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Hide* cobj = nullptr; + axis::Hide* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -42669,7 +42669,7 @@ int lua_cocos2dx_Hide_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Hide_constructor'", nullptr); return 0; } - cobj = new cocos2d::Hide(); + cobj = new axis::Hide(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -42701,7 +42701,7 @@ int lua_register_cocos2dx_Hide(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_Hide_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_Hide_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Hide).name(); // rtti is literal storage + auto typeName = typeid(axis::Hide).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Hide"; g_typeCast[typeName] = "cc.Hide"; return 1; @@ -42729,8 +42729,8 @@ int lua_cocos2dx_ToggleVisibility_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ToggleVisibility_create'", nullptr); return 0; } - cocos2d::ToggleVisibility* ret = cocos2d::ToggleVisibility::create(); - object_to_luaval(tolua_S, "cc.ToggleVisibility",(cocos2d::ToggleVisibility*)ret); + axis::ToggleVisibility* ret = axis::ToggleVisibility::create(); + object_to_luaval(tolua_S, "cc.ToggleVisibility",(axis::ToggleVisibility*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ToggleVisibility:create",argc, 0); @@ -42744,7 +42744,7 @@ int lua_cocos2dx_ToggleVisibility_create(lua_State* tolua_S) int lua_cocos2dx_ToggleVisibility_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ToggleVisibility* cobj = nullptr; + axis::ToggleVisibility* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -42761,7 +42761,7 @@ int lua_cocos2dx_ToggleVisibility_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ToggleVisibility_constructor'", nullptr); return 0; } - cobj = new cocos2d::ToggleVisibility(); + cobj = new axis::ToggleVisibility(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -42793,7 +42793,7 @@ int lua_register_cocos2dx_ToggleVisibility(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_ToggleVisibility_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_ToggleVisibility_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ToggleVisibility).name(); // rtti is literal storage + auto typeName = typeid(axis::ToggleVisibility).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.ToggleVisibility"; g_typeCast[typeName] = "cc.ToggleVisibility"; return 1; @@ -42802,7 +42802,7 @@ int lua_register_cocos2dx_ToggleVisibility(lua_State* tolua_S) int lua_cocos2dx_RemoveSelf_init(lua_State* tolua_S) { int argc = 0; - cocos2d::RemoveSelf* cobj = nullptr; + axis::RemoveSelf* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -42814,7 +42814,7 @@ int lua_cocos2dx_RemoveSelf_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.RemoveSelf",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::RemoveSelf*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::RemoveSelf*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -42871,8 +42871,8 @@ int lua_cocos2dx_RemoveSelf_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RemoveSelf_create'", nullptr); return 0; } - cocos2d::RemoveSelf* ret = cocos2d::RemoveSelf::create(); - object_to_luaval(tolua_S, "cc.RemoveSelf",(cocos2d::RemoveSelf*)ret); + axis::RemoveSelf* ret = axis::RemoveSelf::create(); + object_to_luaval(tolua_S, "cc.RemoveSelf",(axis::RemoveSelf*)ret); return 1; } if (argc == 1) @@ -42884,8 +42884,8 @@ int lua_cocos2dx_RemoveSelf_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RemoveSelf_create'", nullptr); return 0; } - cocos2d::RemoveSelf* ret = cocos2d::RemoveSelf::create(arg0); - object_to_luaval(tolua_S, "cc.RemoveSelf",(cocos2d::RemoveSelf*)ret); + axis::RemoveSelf* ret = axis::RemoveSelf::create(arg0); + object_to_luaval(tolua_S, "cc.RemoveSelf",(axis::RemoveSelf*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.RemoveSelf:create",argc, 0); @@ -42899,7 +42899,7 @@ int lua_cocos2dx_RemoveSelf_create(lua_State* tolua_S) int lua_cocos2dx_RemoveSelf_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::RemoveSelf* cobj = nullptr; + axis::RemoveSelf* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -42916,7 +42916,7 @@ int lua_cocos2dx_RemoveSelf_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RemoveSelf_constructor'", nullptr); return 0; } - cobj = new cocos2d::RemoveSelf(); + cobj = new axis::RemoveSelf(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -42949,7 +42949,7 @@ int lua_register_cocos2dx_RemoveSelf(lua_State* tolua_S) tolua_function(tolua_S,"init",lua_cocos2dx_RemoveSelf_init); tolua_function(tolua_S,"create", lua_cocos2dx_RemoveSelf_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::RemoveSelf).name(); // rtti is literal storage + auto typeName = typeid(axis::RemoveSelf).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.RemoveSelf"; g_typeCast[typeName] = "cc.RemoveSelf"; return 1; @@ -42958,7 +42958,7 @@ int lua_register_cocos2dx_RemoveSelf(lua_State* tolua_S) int lua_cocos2dx_FlipX_initWithFlipX(lua_State* tolua_S) { int argc = 0; - cocos2d::FlipX* cobj = nullptr; + axis::FlipX* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -42970,7 +42970,7 @@ int lua_cocos2dx_FlipX_initWithFlipX(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FlipX",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FlipX*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FlipX*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -43029,8 +43029,8 @@ int lua_cocos2dx_FlipX_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FlipX_create'", nullptr); return 0; } - cocos2d::FlipX* ret = cocos2d::FlipX::create(arg0); - object_to_luaval(tolua_S, "cc.FlipX",(cocos2d::FlipX*)ret); + axis::FlipX* ret = axis::FlipX::create(arg0); + object_to_luaval(tolua_S, "cc.FlipX",(axis::FlipX*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FlipX:create",argc, 1); @@ -43044,7 +43044,7 @@ int lua_cocos2dx_FlipX_create(lua_State* tolua_S) int lua_cocos2dx_FlipX_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::FlipX* cobj = nullptr; + axis::FlipX* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -43061,7 +43061,7 @@ int lua_cocos2dx_FlipX_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FlipX_constructor'", nullptr); return 0; } - cobj = new cocos2d::FlipX(); + cobj = new axis::FlipX(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -43094,7 +43094,7 @@ int lua_register_cocos2dx_FlipX(lua_State* tolua_S) tolua_function(tolua_S,"initWithFlipX",lua_cocos2dx_FlipX_initWithFlipX); tolua_function(tolua_S,"create", lua_cocos2dx_FlipX_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::FlipX).name(); // rtti is literal storage + auto typeName = typeid(axis::FlipX).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.FlipX"; g_typeCast[typeName] = "cc.FlipX"; return 1; @@ -43103,7 +43103,7 @@ int lua_register_cocos2dx_FlipX(lua_State* tolua_S) int lua_cocos2dx_FlipY_initWithFlipY(lua_State* tolua_S) { int argc = 0; - cocos2d::FlipY* cobj = nullptr; + axis::FlipY* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -43115,7 +43115,7 @@ int lua_cocos2dx_FlipY_initWithFlipY(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FlipY",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FlipY*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FlipY*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -43174,8 +43174,8 @@ int lua_cocos2dx_FlipY_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FlipY_create'", nullptr); return 0; } - cocos2d::FlipY* ret = cocos2d::FlipY::create(arg0); - object_to_luaval(tolua_S, "cc.FlipY",(cocos2d::FlipY*)ret); + axis::FlipY* ret = axis::FlipY::create(arg0); + object_to_luaval(tolua_S, "cc.FlipY",(axis::FlipY*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FlipY:create",argc, 1); @@ -43189,7 +43189,7 @@ int lua_cocos2dx_FlipY_create(lua_State* tolua_S) int lua_cocos2dx_FlipY_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::FlipY* cobj = nullptr; + axis::FlipY* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -43206,7 +43206,7 @@ int lua_cocos2dx_FlipY_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FlipY_constructor'", nullptr); return 0; } - cobj = new cocos2d::FlipY(); + cobj = new axis::FlipY(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -43239,7 +43239,7 @@ int lua_register_cocos2dx_FlipY(lua_State* tolua_S) tolua_function(tolua_S,"initWithFlipY",lua_cocos2dx_FlipY_initWithFlipY); tolua_function(tolua_S,"create", lua_cocos2dx_FlipY_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::FlipY).name(); // rtti is literal storage + auto typeName = typeid(axis::FlipY).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.FlipY"; g_typeCast[typeName] = "cc.FlipY"; return 1; @@ -43248,7 +43248,7 @@ int lua_register_cocos2dx_FlipY(lua_State* tolua_S) int lua_cocos2dx_Place_initWithPosition(lua_State* tolua_S) { int argc = 0; - cocos2d::Place* cobj = nullptr; + axis::Place* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -43260,7 +43260,7 @@ int lua_cocos2dx_Place_initWithPosition(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Place",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Place*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Place*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -43273,7 +43273,7 @@ int lua_cocos2dx_Place_initWithPosition(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Place:initWithPosition"); if(!ok) @@ -43312,15 +43312,15 @@ int lua_cocos2dx_Place_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Place:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Place_create'", nullptr); return 0; } - cocos2d::Place* ret = cocos2d::Place::create(arg0); - object_to_luaval(tolua_S, "cc.Place",(cocos2d::Place*)ret); + axis::Place* ret = axis::Place::create(arg0); + object_to_luaval(tolua_S, "cc.Place",(axis::Place*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Place:create",argc, 1); @@ -43334,7 +43334,7 @@ int lua_cocos2dx_Place_create(lua_State* tolua_S) int lua_cocos2dx_Place_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Place* cobj = nullptr; + axis::Place* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -43351,7 +43351,7 @@ int lua_cocos2dx_Place_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Place_constructor'", nullptr); return 0; } - cobj = new cocos2d::Place(); + cobj = new axis::Place(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -43384,7 +43384,7 @@ int lua_register_cocos2dx_Place(lua_State* tolua_S) tolua_function(tolua_S,"initWithPosition",lua_cocos2dx_Place_initWithPosition); tolua_function(tolua_S,"create", lua_cocos2dx_Place_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Place).name(); // rtti is literal storage + auto typeName = typeid(axis::Place).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Place"; g_typeCast[typeName] = "cc.Place"; return 1; @@ -43393,7 +43393,7 @@ int lua_register_cocos2dx_Place(lua_State* tolua_S) int lua_cocos2dx_CallFunc_execute(lua_State* tolua_S) { int argc = 0; - cocos2d::CallFunc* cobj = nullptr; + axis::CallFunc* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -43405,7 +43405,7 @@ int lua_cocos2dx_CallFunc_execute(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.CallFunc",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::CallFunc*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::CallFunc*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -43440,7 +43440,7 @@ int lua_cocos2dx_CallFunc_execute(lua_State* tolua_S) int lua_cocos2dx_CallFunc_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::CallFunc* cobj = nullptr; + axis::CallFunc* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -43457,7 +43457,7 @@ int lua_cocos2dx_CallFunc_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CallFunc_constructor'", nullptr); return 0; } - cobj = new cocos2d::CallFunc(); + cobj = new axis::CallFunc(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -43489,7 +43489,7 @@ int lua_register_cocos2dx_CallFunc(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_CallFunc_constructor); tolua_function(tolua_S,"execute",lua_cocos2dx_CallFunc_execute); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::CallFunc).name(); // rtti is literal storage + auto typeName = typeid(axis::CallFunc).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.CallFunc"; g_typeCast[typeName] = "cc.CallFunc"; return 1; @@ -43498,7 +43498,7 @@ int lua_register_cocos2dx_CallFunc(lua_State* tolua_S) int lua_cocos2dx_GridAction_getGrid(lua_State* tolua_S) { int argc = 0; - cocos2d::GridAction* cobj = nullptr; + axis::GridAction* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -43510,7 +43510,7 @@ int lua_cocos2dx_GridAction_getGrid(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GridAction",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GridAction*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GridAction*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -43528,8 +43528,8 @@ int lua_cocos2dx_GridAction_getGrid(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GridAction_getGrid'", nullptr); return 0; } - cocos2d::GridBase* ret = cobj->getGrid(); - object_to_luaval(tolua_S, "cc.GridBase",(cocos2d::GridBase*)ret); + axis::GridBase* ret = cobj->getGrid(); + object_to_luaval(tolua_S, "cc.GridBase",(axis::GridBase*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.GridAction:getGrid",argc, 0); @@ -43545,7 +43545,7 @@ int lua_cocos2dx_GridAction_getGrid(lua_State* tolua_S) int lua_cocos2dx_GridAction_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::GridAction* cobj = nullptr; + axis::GridAction* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -43557,7 +43557,7 @@ int lua_cocos2dx_GridAction_initWithDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GridAction",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GridAction*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GridAction*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -43571,7 +43571,7 @@ int lua_cocos2dx_GridAction_initWithDuration(lua_State* tolua_S) if (argc == 2) { double arg0; - cocos2d::Vec2 arg1; + axis::Vec2 arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.GridAction:initWithDuration"); @@ -43610,7 +43610,7 @@ int lua_register_cocos2dx_GridAction(lua_State* tolua_S) tolua_function(tolua_S,"getGrid",lua_cocos2dx_GridAction_getGrid); tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_GridAction_initWithDuration); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::GridAction).name(); // rtti is literal storage + auto typeName = typeid(axis::GridAction).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.GridAction"; g_typeCast[typeName] = "cc.GridAction"; return 1; @@ -43619,7 +43619,7 @@ int lua_register_cocos2dx_GridAction(lua_State* tolua_S) int lua_cocos2dx_Grid3DAction_getGridRect(lua_State* tolua_S) { int argc = 0; - cocos2d::Grid3DAction* cobj = nullptr; + axis::Grid3DAction* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -43631,7 +43631,7 @@ int lua_cocos2dx_Grid3DAction_getGridRect(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Grid3DAction",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Grid3DAction*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Grid3DAction*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -43649,7 +43649,7 @@ int lua_cocos2dx_Grid3DAction_getGridRect(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Grid3DAction_getGridRect'", nullptr); return 0; } - cocos2d::Rect ret = cobj->getGridRect(); + axis::Rect ret = cobj->getGridRect(); rect_to_luaval(tolua_S, ret); return 1; } @@ -43677,7 +43677,7 @@ int lua_register_cocos2dx_Grid3DAction(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Grid3DAction"); tolua_function(tolua_S,"getGridRect",lua_cocos2dx_Grid3DAction_getGridRect); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Grid3DAction).name(); // rtti is literal storage + auto typeName = typeid(axis::Grid3DAction).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Grid3DAction"; g_typeCast[typeName] = "cc.Grid3DAction"; return 1; @@ -43696,7 +43696,7 @@ int lua_register_cocos2dx_TiledGrid3DAction(lua_State* tolua_S) tolua_beginmodule(tolua_S,"TiledGrid3DAction"); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TiledGrid3DAction).name(); // rtti is literal storage + auto typeName = typeid(axis::TiledGrid3DAction).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TiledGrid3DAction"; g_typeCast[typeName] = "cc.TiledGrid3DAction"; return 1; @@ -43724,8 +43724,8 @@ int lua_cocos2dx_StopGrid_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_StopGrid_create'", nullptr); return 0; } - cocos2d::StopGrid* ret = cocos2d::StopGrid::create(); - object_to_luaval(tolua_S, "cc.StopGrid",(cocos2d::StopGrid*)ret); + axis::StopGrid* ret = axis::StopGrid::create(); + object_to_luaval(tolua_S, "cc.StopGrid",(axis::StopGrid*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.StopGrid:create",argc, 0); @@ -43739,7 +43739,7 @@ int lua_cocos2dx_StopGrid_create(lua_State* tolua_S) int lua_cocos2dx_StopGrid_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::StopGrid* cobj = nullptr; + axis::StopGrid* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -43756,7 +43756,7 @@ int lua_cocos2dx_StopGrid_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_StopGrid_constructor'", nullptr); return 0; } - cobj = new cocos2d::StopGrid(); + cobj = new axis::StopGrid(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -43788,7 +43788,7 @@ int lua_register_cocos2dx_StopGrid(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_StopGrid_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_StopGrid_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::StopGrid).name(); // rtti is literal storage + auto typeName = typeid(axis::StopGrid).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.StopGrid"; g_typeCast[typeName] = "cc.StopGrid"; return 1; @@ -43797,7 +43797,7 @@ int lua_register_cocos2dx_StopGrid(lua_State* tolua_S) int lua_cocos2dx_ReuseGrid_initWithTimes(lua_State* tolua_S) { int argc = 0; - cocos2d::ReuseGrid* cobj = nullptr; + axis::ReuseGrid* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -43809,7 +43809,7 @@ int lua_cocos2dx_ReuseGrid_initWithTimes(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ReuseGrid",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ReuseGrid*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ReuseGrid*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -43868,8 +43868,8 @@ int lua_cocos2dx_ReuseGrid_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ReuseGrid_create'", nullptr); return 0; } - cocos2d::ReuseGrid* ret = cocos2d::ReuseGrid::create(arg0); - object_to_luaval(tolua_S, "cc.ReuseGrid",(cocos2d::ReuseGrid*)ret); + axis::ReuseGrid* ret = axis::ReuseGrid::create(arg0); + object_to_luaval(tolua_S, "cc.ReuseGrid",(axis::ReuseGrid*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ReuseGrid:create",argc, 1); @@ -43883,7 +43883,7 @@ int lua_cocos2dx_ReuseGrid_create(lua_State* tolua_S) int lua_cocos2dx_ReuseGrid_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ReuseGrid* cobj = nullptr; + axis::ReuseGrid* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -43900,7 +43900,7 @@ int lua_cocos2dx_ReuseGrid_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ReuseGrid_constructor'", nullptr); return 0; } - cobj = new cocos2d::ReuseGrid(); + cobj = new axis::ReuseGrid(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -43933,7 +43933,7 @@ int lua_register_cocos2dx_ReuseGrid(lua_State* tolua_S) tolua_function(tolua_S,"initWithTimes",lua_cocos2dx_ReuseGrid_initWithTimes); tolua_function(tolua_S,"create", lua_cocos2dx_ReuseGrid_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ReuseGrid).name(); // rtti is literal storage + auto typeName = typeid(axis::ReuseGrid).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.ReuseGrid"; g_typeCast[typeName] = "cc.ReuseGrid"; return 1; @@ -43942,7 +43942,7 @@ int lua_register_cocos2dx_ReuseGrid(lua_State* tolua_S) int lua_cocos2dx_Waves3D_setAmplitudeRate(lua_State* tolua_S) { int argc = 0; - cocos2d::Waves3D* cobj = nullptr; + axis::Waves3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -43954,7 +43954,7 @@ int lua_cocos2dx_Waves3D_setAmplitudeRate(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Waves3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Waves3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Waves3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -43992,7 +43992,7 @@ int lua_cocos2dx_Waves3D_setAmplitudeRate(lua_State* tolua_S) int lua_cocos2dx_Waves3D_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::Waves3D* cobj = nullptr; + axis::Waves3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -44004,7 +44004,7 @@ int lua_cocos2dx_Waves3D_initWithDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Waves3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Waves3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Waves3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -44018,7 +44018,7 @@ int lua_cocos2dx_Waves3D_initWithDuration(lua_State* tolua_S) if (argc == 4) { double arg0; - cocos2d::Vec2 arg1; + axis::Vec2 arg1; unsigned int arg2; double arg3; @@ -44051,7 +44051,7 @@ int lua_cocos2dx_Waves3D_initWithDuration(lua_State* tolua_S) int lua_cocos2dx_Waves3D_getAmplitude(lua_State* tolua_S) { int argc = 0; - cocos2d::Waves3D* cobj = nullptr; + axis::Waves3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -44063,7 +44063,7 @@ int lua_cocos2dx_Waves3D_getAmplitude(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Waves3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Waves3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Waves3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -44098,7 +44098,7 @@ int lua_cocos2dx_Waves3D_getAmplitude(lua_State* tolua_S) int lua_cocos2dx_Waves3D_getAmplitudeRate(lua_State* tolua_S) { int argc = 0; - cocos2d::Waves3D* cobj = nullptr; + axis::Waves3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -44110,7 +44110,7 @@ int lua_cocos2dx_Waves3D_getAmplitudeRate(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Waves3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Waves3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Waves3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -44145,7 +44145,7 @@ int lua_cocos2dx_Waves3D_getAmplitudeRate(lua_State* tolua_S) int lua_cocos2dx_Waves3D_setAmplitude(lua_State* tolua_S) { int argc = 0; - cocos2d::Waves3D* cobj = nullptr; + axis::Waves3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -44157,7 +44157,7 @@ int lua_cocos2dx_Waves3D_setAmplitude(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Waves3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Waves3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Waves3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -44210,7 +44210,7 @@ int lua_cocos2dx_Waves3D_create(lua_State* tolua_S) if (argc == 4) { double arg0; - cocos2d::Vec2 arg1; + axis::Vec2 arg1; unsigned int arg2; double arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Waves3D:create"); @@ -44222,8 +44222,8 @@ int lua_cocos2dx_Waves3D_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Waves3D_create'", nullptr); return 0; } - cocos2d::Waves3D* ret = cocos2d::Waves3D::create(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.Waves3D",(cocos2d::Waves3D*)ret); + axis::Waves3D* ret = axis::Waves3D::create(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.Waves3D",(axis::Waves3D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Waves3D:create",argc, 4); @@ -44237,7 +44237,7 @@ int lua_cocos2dx_Waves3D_create(lua_State* tolua_S) int lua_cocos2dx_Waves3D_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Waves3D* cobj = nullptr; + axis::Waves3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -44254,7 +44254,7 @@ int lua_cocos2dx_Waves3D_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Waves3D_constructor'", nullptr); return 0; } - cobj = new cocos2d::Waves3D(); + cobj = new axis::Waves3D(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -44291,7 +44291,7 @@ int lua_register_cocos2dx_Waves3D(lua_State* tolua_S) tolua_function(tolua_S,"setAmplitude",lua_cocos2dx_Waves3D_setAmplitude); tolua_function(tolua_S,"create", lua_cocos2dx_Waves3D_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Waves3D).name(); // rtti is literal storage + auto typeName = typeid(axis::Waves3D).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Waves3D"; g_typeCast[typeName] = "cc.Waves3D"; return 1; @@ -44300,7 +44300,7 @@ int lua_register_cocos2dx_Waves3D(lua_State* tolua_S) int lua_cocos2dx_FlipX3D_initWithSize(lua_State* tolua_S) { int argc = 0; - cocos2d::FlipX3D* cobj = nullptr; + axis::FlipX3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -44312,7 +44312,7 @@ int lua_cocos2dx_FlipX3D_initWithSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FlipX3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FlipX3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FlipX3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -44325,7 +44325,7 @@ int lua_cocos2dx_FlipX3D_initWithSize(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; double arg1; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.FlipX3D:initWithSize"); @@ -44353,7 +44353,7 @@ int lua_cocos2dx_FlipX3D_initWithSize(lua_State* tolua_S) int lua_cocos2dx_FlipX3D_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::FlipX3D* cobj = nullptr; + axis::FlipX3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -44365,7 +44365,7 @@ int lua_cocos2dx_FlipX3D_initWithDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FlipX3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FlipX3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FlipX3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -44424,8 +44424,8 @@ int lua_cocos2dx_FlipX3D_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FlipX3D_create'", nullptr); return 0; } - cocos2d::FlipX3D* ret = cocos2d::FlipX3D::create(arg0); - object_to_luaval(tolua_S, "cc.FlipX3D",(cocos2d::FlipX3D*)ret); + axis::FlipX3D* ret = axis::FlipX3D::create(arg0); + object_to_luaval(tolua_S, "cc.FlipX3D",(axis::FlipX3D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FlipX3D:create",argc, 1); @@ -44439,7 +44439,7 @@ int lua_cocos2dx_FlipX3D_create(lua_State* tolua_S) int lua_cocos2dx_FlipX3D_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::FlipX3D* cobj = nullptr; + axis::FlipX3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -44456,7 +44456,7 @@ int lua_cocos2dx_FlipX3D_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FlipX3D_constructor'", nullptr); return 0; } - cobj = new cocos2d::FlipX3D(); + cobj = new axis::FlipX3D(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -44490,7 +44490,7 @@ int lua_register_cocos2dx_FlipX3D(lua_State* tolua_S) tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_FlipX3D_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_FlipX3D_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::FlipX3D).name(); // rtti is literal storage + auto typeName = typeid(axis::FlipX3D).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.FlipX3D"; g_typeCast[typeName] = "cc.FlipX3D"; return 1; @@ -44520,8 +44520,8 @@ int lua_cocos2dx_FlipY3D_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FlipY3D_create'", nullptr); return 0; } - cocos2d::FlipY3D* ret = cocos2d::FlipY3D::create(arg0); - object_to_luaval(tolua_S, "cc.FlipY3D",(cocos2d::FlipY3D*)ret); + axis::FlipY3D* ret = axis::FlipY3D::create(arg0); + object_to_luaval(tolua_S, "cc.FlipY3D",(axis::FlipY3D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FlipY3D:create",argc, 1); @@ -44535,7 +44535,7 @@ int lua_cocos2dx_FlipY3D_create(lua_State* tolua_S) int lua_cocos2dx_FlipY3D_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::FlipY3D* cobj = nullptr; + axis::FlipY3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -44552,7 +44552,7 @@ int lua_cocos2dx_FlipY3D_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FlipY3D_constructor'", nullptr); return 0; } - cobj = new cocos2d::FlipY3D(); + cobj = new axis::FlipY3D(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -44584,7 +44584,7 @@ int lua_register_cocos2dx_FlipY3D(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_FlipY3D_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_FlipY3D_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::FlipY3D).name(); // rtti is literal storage + auto typeName = typeid(axis::FlipY3D).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.FlipY3D"; g_typeCast[typeName] = "cc.FlipY3D"; return 1; @@ -44593,7 +44593,7 @@ int lua_register_cocos2dx_FlipY3D(lua_State* tolua_S) int lua_cocos2dx_Lens3D_setConcave(lua_State* tolua_S) { int argc = 0; - cocos2d::Lens3D* cobj = nullptr; + axis::Lens3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -44605,7 +44605,7 @@ int lua_cocos2dx_Lens3D_setConcave(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Lens3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Lens3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Lens3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -44643,7 +44643,7 @@ int lua_cocos2dx_Lens3D_setConcave(lua_State* tolua_S) int lua_cocos2dx_Lens3D_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::Lens3D* cobj = nullptr; + axis::Lens3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -44655,7 +44655,7 @@ int lua_cocos2dx_Lens3D_initWithDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Lens3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Lens3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Lens3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -44669,8 +44669,8 @@ int lua_cocos2dx_Lens3D_initWithDuration(lua_State* tolua_S) if (argc == 4) { double arg0; - cocos2d::Vec2 arg1; - cocos2d::Vec2 arg2; + axis::Vec2 arg1; + axis::Vec2 arg2; double arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Lens3D:initWithDuration"); @@ -44702,7 +44702,7 @@ int lua_cocos2dx_Lens3D_initWithDuration(lua_State* tolua_S) int lua_cocos2dx_Lens3D_setLensEffect(lua_State* tolua_S) { int argc = 0; - cocos2d::Lens3D* cobj = nullptr; + axis::Lens3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -44714,7 +44714,7 @@ int lua_cocos2dx_Lens3D_setLensEffect(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Lens3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Lens3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Lens3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -44752,7 +44752,7 @@ int lua_cocos2dx_Lens3D_setLensEffect(lua_State* tolua_S) int lua_cocos2dx_Lens3D_getLensEffect(lua_State* tolua_S) { int argc = 0; - cocos2d::Lens3D* cobj = nullptr; + axis::Lens3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -44764,7 +44764,7 @@ int lua_cocos2dx_Lens3D_getLensEffect(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Lens3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Lens3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Lens3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -44799,7 +44799,7 @@ int lua_cocos2dx_Lens3D_getLensEffect(lua_State* tolua_S) int lua_cocos2dx_Lens3D_setPosition(lua_State* tolua_S) { int argc = 0; - cocos2d::Lens3D* cobj = nullptr; + axis::Lens3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -44811,7 +44811,7 @@ int lua_cocos2dx_Lens3D_setPosition(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Lens3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Lens3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Lens3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -44824,7 +44824,7 @@ int lua_cocos2dx_Lens3D_setPosition(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Lens3D:setPosition"); if(!ok) @@ -44849,7 +44849,7 @@ int lua_cocos2dx_Lens3D_setPosition(lua_State* tolua_S) int lua_cocos2dx_Lens3D_getPosition(lua_State* tolua_S) { int argc = 0; - cocos2d::Lens3D* cobj = nullptr; + axis::Lens3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -44861,7 +44861,7 @@ int lua_cocos2dx_Lens3D_getPosition(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Lens3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Lens3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Lens3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -44879,7 +44879,7 @@ int lua_cocos2dx_Lens3D_getPosition(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Lens3D_getPosition'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getPosition(); + const axis::Vec2& ret = cobj->getPosition(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -44911,8 +44911,8 @@ int lua_cocos2dx_Lens3D_create(lua_State* tolua_S) if (argc == 4) { double arg0; - cocos2d::Vec2 arg1; - cocos2d::Vec2 arg2; + axis::Vec2 arg1; + axis::Vec2 arg2; double arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Lens3D:create"); ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.Lens3D:create"); @@ -44923,8 +44923,8 @@ int lua_cocos2dx_Lens3D_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Lens3D_create'", nullptr); return 0; } - cocos2d::Lens3D* ret = cocos2d::Lens3D::create(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.Lens3D",(cocos2d::Lens3D*)ret); + axis::Lens3D* ret = axis::Lens3D::create(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.Lens3D",(axis::Lens3D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Lens3D:create",argc, 4); @@ -44938,7 +44938,7 @@ int lua_cocos2dx_Lens3D_create(lua_State* tolua_S) int lua_cocos2dx_Lens3D_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Lens3D* cobj = nullptr; + axis::Lens3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -44955,7 +44955,7 @@ int lua_cocos2dx_Lens3D_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Lens3D_constructor'", nullptr); return 0; } - cobj = new cocos2d::Lens3D(); + cobj = new axis::Lens3D(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -44993,7 +44993,7 @@ int lua_register_cocos2dx_Lens3D(lua_State* tolua_S) tolua_function(tolua_S,"getPosition",lua_cocos2dx_Lens3D_getPosition); tolua_function(tolua_S,"create", lua_cocos2dx_Lens3D_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Lens3D).name(); // rtti is literal storage + auto typeName = typeid(axis::Lens3D).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Lens3D"; g_typeCast[typeName] = "cc.Lens3D"; return 1; @@ -45002,7 +45002,7 @@ int lua_register_cocos2dx_Lens3D(lua_State* tolua_S) int lua_cocos2dx_Ripple3D_setAmplitudeRate(lua_State* tolua_S) { int argc = 0; - cocos2d::Ripple3D* cobj = nullptr; + axis::Ripple3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -45014,7 +45014,7 @@ int lua_cocos2dx_Ripple3D_setAmplitudeRate(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Ripple3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Ripple3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Ripple3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -45052,7 +45052,7 @@ int lua_cocos2dx_Ripple3D_setAmplitudeRate(lua_State* tolua_S) int lua_cocos2dx_Ripple3D_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::Ripple3D* cobj = nullptr; + axis::Ripple3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -45064,7 +45064,7 @@ int lua_cocos2dx_Ripple3D_initWithDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Ripple3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Ripple3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Ripple3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -45078,8 +45078,8 @@ int lua_cocos2dx_Ripple3D_initWithDuration(lua_State* tolua_S) if (argc == 6) { double arg0; - cocos2d::Vec2 arg1; - cocos2d::Vec2 arg2; + axis::Vec2 arg1; + axis::Vec2 arg2; double arg3; unsigned int arg4; double arg5; @@ -45117,7 +45117,7 @@ int lua_cocos2dx_Ripple3D_initWithDuration(lua_State* tolua_S) int lua_cocos2dx_Ripple3D_getAmplitudeRate(lua_State* tolua_S) { int argc = 0; - cocos2d::Ripple3D* cobj = nullptr; + axis::Ripple3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -45129,7 +45129,7 @@ int lua_cocos2dx_Ripple3D_getAmplitudeRate(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Ripple3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Ripple3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Ripple3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -45164,7 +45164,7 @@ int lua_cocos2dx_Ripple3D_getAmplitudeRate(lua_State* tolua_S) int lua_cocos2dx_Ripple3D_setAmplitude(lua_State* tolua_S) { int argc = 0; - cocos2d::Ripple3D* cobj = nullptr; + axis::Ripple3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -45176,7 +45176,7 @@ int lua_cocos2dx_Ripple3D_setAmplitude(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Ripple3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Ripple3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Ripple3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -45214,7 +45214,7 @@ int lua_cocos2dx_Ripple3D_setAmplitude(lua_State* tolua_S) int lua_cocos2dx_Ripple3D_getAmplitude(lua_State* tolua_S) { int argc = 0; - cocos2d::Ripple3D* cobj = nullptr; + axis::Ripple3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -45226,7 +45226,7 @@ int lua_cocos2dx_Ripple3D_getAmplitude(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Ripple3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Ripple3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Ripple3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -45261,7 +45261,7 @@ int lua_cocos2dx_Ripple3D_getAmplitude(lua_State* tolua_S) int lua_cocos2dx_Ripple3D_setPosition(lua_State* tolua_S) { int argc = 0; - cocos2d::Ripple3D* cobj = nullptr; + axis::Ripple3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -45273,7 +45273,7 @@ int lua_cocos2dx_Ripple3D_setPosition(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Ripple3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Ripple3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Ripple3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -45286,7 +45286,7 @@ int lua_cocos2dx_Ripple3D_setPosition(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Ripple3D:setPosition"); if(!ok) @@ -45311,7 +45311,7 @@ int lua_cocos2dx_Ripple3D_setPosition(lua_State* tolua_S) int lua_cocos2dx_Ripple3D_getPosition(lua_State* tolua_S) { int argc = 0; - cocos2d::Ripple3D* cobj = nullptr; + axis::Ripple3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -45323,7 +45323,7 @@ int lua_cocos2dx_Ripple3D_getPosition(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Ripple3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Ripple3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Ripple3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -45341,7 +45341,7 @@ int lua_cocos2dx_Ripple3D_getPosition(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Ripple3D_getPosition'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getPosition(); + const axis::Vec2& ret = cobj->getPosition(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -45373,8 +45373,8 @@ int lua_cocos2dx_Ripple3D_create(lua_State* tolua_S) if (argc == 6) { double arg0; - cocos2d::Vec2 arg1; - cocos2d::Vec2 arg2; + axis::Vec2 arg1; + axis::Vec2 arg2; double arg3; unsigned int arg4; double arg5; @@ -45389,8 +45389,8 @@ int lua_cocos2dx_Ripple3D_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Ripple3D_create'", nullptr); return 0; } - cocos2d::Ripple3D* ret = cocos2d::Ripple3D::create(arg0, arg1, arg2, arg3, arg4, arg5); - object_to_luaval(tolua_S, "cc.Ripple3D",(cocos2d::Ripple3D*)ret); + axis::Ripple3D* ret = axis::Ripple3D::create(arg0, arg1, arg2, arg3, arg4, arg5); + object_to_luaval(tolua_S, "cc.Ripple3D",(axis::Ripple3D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Ripple3D:create",argc, 6); @@ -45404,7 +45404,7 @@ int lua_cocos2dx_Ripple3D_create(lua_State* tolua_S) int lua_cocos2dx_Ripple3D_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Ripple3D* cobj = nullptr; + axis::Ripple3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -45421,7 +45421,7 @@ int lua_cocos2dx_Ripple3D_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Ripple3D_constructor'", nullptr); return 0; } - cobj = new cocos2d::Ripple3D(); + cobj = new axis::Ripple3D(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -45460,7 +45460,7 @@ int lua_register_cocos2dx_Ripple3D(lua_State* tolua_S) tolua_function(tolua_S,"getPosition",lua_cocos2dx_Ripple3D_getPosition); tolua_function(tolua_S,"create", lua_cocos2dx_Ripple3D_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Ripple3D).name(); // rtti is literal storage + auto typeName = typeid(axis::Ripple3D).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Ripple3D"; g_typeCast[typeName] = "cc.Ripple3D"; return 1; @@ -45469,7 +45469,7 @@ int lua_register_cocos2dx_Ripple3D(lua_State* tolua_S) int lua_cocos2dx_Shaky3D_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::Shaky3D* cobj = nullptr; + axis::Shaky3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -45481,7 +45481,7 @@ int lua_cocos2dx_Shaky3D_initWithDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Shaky3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Shaky3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Shaky3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -45495,7 +45495,7 @@ int lua_cocos2dx_Shaky3D_initWithDuration(lua_State* tolua_S) if (argc == 4) { double arg0; - cocos2d::Vec2 arg1; + axis::Vec2 arg1; int arg2; bool arg3; @@ -45543,7 +45543,7 @@ int lua_cocos2dx_Shaky3D_create(lua_State* tolua_S) if (argc == 4) { double arg0; - cocos2d::Vec2 arg1; + axis::Vec2 arg1; int arg2; bool arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Shaky3D:create"); @@ -45555,8 +45555,8 @@ int lua_cocos2dx_Shaky3D_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Shaky3D_create'", nullptr); return 0; } - cocos2d::Shaky3D* ret = cocos2d::Shaky3D::create(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.Shaky3D",(cocos2d::Shaky3D*)ret); + axis::Shaky3D* ret = axis::Shaky3D::create(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.Shaky3D",(axis::Shaky3D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Shaky3D:create",argc, 4); @@ -45570,7 +45570,7 @@ int lua_cocos2dx_Shaky3D_create(lua_State* tolua_S) int lua_cocos2dx_Shaky3D_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Shaky3D* cobj = nullptr; + axis::Shaky3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -45587,7 +45587,7 @@ int lua_cocos2dx_Shaky3D_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Shaky3D_constructor'", nullptr); return 0; } - cobj = new cocos2d::Shaky3D(); + cobj = new axis::Shaky3D(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -45620,7 +45620,7 @@ int lua_register_cocos2dx_Shaky3D(lua_State* tolua_S) tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_Shaky3D_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_Shaky3D_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Shaky3D).name(); // rtti is literal storage + auto typeName = typeid(axis::Shaky3D).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Shaky3D"; g_typeCast[typeName] = "cc.Shaky3D"; return 1; @@ -45629,7 +45629,7 @@ int lua_register_cocos2dx_Shaky3D(lua_State* tolua_S) int lua_cocos2dx_Liquid_setAmplitudeRate(lua_State* tolua_S) { int argc = 0; - cocos2d::Liquid* cobj = nullptr; + axis::Liquid* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -45641,7 +45641,7 @@ int lua_cocos2dx_Liquid_setAmplitudeRate(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Liquid",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Liquid*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Liquid*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -45679,7 +45679,7 @@ int lua_cocos2dx_Liquid_setAmplitudeRate(lua_State* tolua_S) int lua_cocos2dx_Liquid_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::Liquid* cobj = nullptr; + axis::Liquid* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -45691,7 +45691,7 @@ int lua_cocos2dx_Liquid_initWithDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Liquid",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Liquid*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Liquid*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -45705,7 +45705,7 @@ int lua_cocos2dx_Liquid_initWithDuration(lua_State* tolua_S) if (argc == 4) { double arg0; - cocos2d::Vec2 arg1; + axis::Vec2 arg1; unsigned int arg2; double arg3; @@ -45738,7 +45738,7 @@ int lua_cocos2dx_Liquid_initWithDuration(lua_State* tolua_S) int lua_cocos2dx_Liquid_getAmplitude(lua_State* tolua_S) { int argc = 0; - cocos2d::Liquid* cobj = nullptr; + axis::Liquid* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -45750,7 +45750,7 @@ int lua_cocos2dx_Liquid_getAmplitude(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Liquid",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Liquid*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Liquid*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -45785,7 +45785,7 @@ int lua_cocos2dx_Liquid_getAmplitude(lua_State* tolua_S) int lua_cocos2dx_Liquid_getAmplitudeRate(lua_State* tolua_S) { int argc = 0; - cocos2d::Liquid* cobj = nullptr; + axis::Liquid* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -45797,7 +45797,7 @@ int lua_cocos2dx_Liquid_getAmplitudeRate(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Liquid",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Liquid*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Liquid*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -45832,7 +45832,7 @@ int lua_cocos2dx_Liquid_getAmplitudeRate(lua_State* tolua_S) int lua_cocos2dx_Liquid_setAmplitude(lua_State* tolua_S) { int argc = 0; - cocos2d::Liquid* cobj = nullptr; + axis::Liquid* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -45844,7 +45844,7 @@ int lua_cocos2dx_Liquid_setAmplitude(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Liquid",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Liquid*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Liquid*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -45897,7 +45897,7 @@ int lua_cocos2dx_Liquid_create(lua_State* tolua_S) if (argc == 4) { double arg0; - cocos2d::Vec2 arg1; + axis::Vec2 arg1; unsigned int arg2; double arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Liquid:create"); @@ -45909,8 +45909,8 @@ int lua_cocos2dx_Liquid_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Liquid_create'", nullptr); return 0; } - cocos2d::Liquid* ret = cocos2d::Liquid::create(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.Liquid",(cocos2d::Liquid*)ret); + axis::Liquid* ret = axis::Liquid::create(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.Liquid",(axis::Liquid*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Liquid:create",argc, 4); @@ -45924,7 +45924,7 @@ int lua_cocos2dx_Liquid_create(lua_State* tolua_S) int lua_cocos2dx_Liquid_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Liquid* cobj = nullptr; + axis::Liquid* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -45941,7 +45941,7 @@ int lua_cocos2dx_Liquid_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Liquid_constructor'", nullptr); return 0; } - cobj = new cocos2d::Liquid(); + cobj = new axis::Liquid(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -45978,7 +45978,7 @@ int lua_register_cocos2dx_Liquid(lua_State* tolua_S) tolua_function(tolua_S,"setAmplitude",lua_cocos2dx_Liquid_setAmplitude); tolua_function(tolua_S,"create", lua_cocos2dx_Liquid_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Liquid).name(); // rtti is literal storage + auto typeName = typeid(axis::Liquid).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Liquid"; g_typeCast[typeName] = "cc.Liquid"; return 1; @@ -45987,7 +45987,7 @@ int lua_register_cocos2dx_Liquid(lua_State* tolua_S) int lua_cocos2dx_Waves_setAmplitudeRate(lua_State* tolua_S) { int argc = 0; - cocos2d::Waves* cobj = nullptr; + axis::Waves* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -45999,7 +45999,7 @@ int lua_cocos2dx_Waves_setAmplitudeRate(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Waves",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Waves*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Waves*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -46037,7 +46037,7 @@ int lua_cocos2dx_Waves_setAmplitudeRate(lua_State* tolua_S) int lua_cocos2dx_Waves_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::Waves* cobj = nullptr; + axis::Waves* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -46049,7 +46049,7 @@ int lua_cocos2dx_Waves_initWithDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Waves",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Waves*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Waves*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -46063,7 +46063,7 @@ int lua_cocos2dx_Waves_initWithDuration(lua_State* tolua_S) if (argc == 6) { double arg0; - cocos2d::Vec2 arg1; + axis::Vec2 arg1; unsigned int arg2; double arg3; bool arg4; @@ -46102,7 +46102,7 @@ int lua_cocos2dx_Waves_initWithDuration(lua_State* tolua_S) int lua_cocos2dx_Waves_getAmplitude(lua_State* tolua_S) { int argc = 0; - cocos2d::Waves* cobj = nullptr; + axis::Waves* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -46114,7 +46114,7 @@ int lua_cocos2dx_Waves_getAmplitude(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Waves",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Waves*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Waves*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -46149,7 +46149,7 @@ int lua_cocos2dx_Waves_getAmplitude(lua_State* tolua_S) int lua_cocos2dx_Waves_getAmplitudeRate(lua_State* tolua_S) { int argc = 0; - cocos2d::Waves* cobj = nullptr; + axis::Waves* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -46161,7 +46161,7 @@ int lua_cocos2dx_Waves_getAmplitudeRate(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Waves",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Waves*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Waves*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -46196,7 +46196,7 @@ int lua_cocos2dx_Waves_getAmplitudeRate(lua_State* tolua_S) int lua_cocos2dx_Waves_setAmplitude(lua_State* tolua_S) { int argc = 0; - cocos2d::Waves* cobj = nullptr; + axis::Waves* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -46208,7 +46208,7 @@ int lua_cocos2dx_Waves_setAmplitude(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Waves",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Waves*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Waves*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -46261,7 +46261,7 @@ int lua_cocos2dx_Waves_create(lua_State* tolua_S) if (argc == 6) { double arg0; - cocos2d::Vec2 arg1; + axis::Vec2 arg1; unsigned int arg2; double arg3; bool arg4; @@ -46277,8 +46277,8 @@ int lua_cocos2dx_Waves_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Waves_create'", nullptr); return 0; } - cocos2d::Waves* ret = cocos2d::Waves::create(arg0, arg1, arg2, arg3, arg4, arg5); - object_to_luaval(tolua_S, "cc.Waves",(cocos2d::Waves*)ret); + axis::Waves* ret = axis::Waves::create(arg0, arg1, arg2, arg3, arg4, arg5); + object_to_luaval(tolua_S, "cc.Waves",(axis::Waves*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Waves:create",argc, 6); @@ -46292,7 +46292,7 @@ int lua_cocos2dx_Waves_create(lua_State* tolua_S) int lua_cocos2dx_Waves_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Waves* cobj = nullptr; + axis::Waves* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -46309,7 +46309,7 @@ int lua_cocos2dx_Waves_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Waves_constructor'", nullptr); return 0; } - cobj = new cocos2d::Waves(); + cobj = new axis::Waves(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -46346,7 +46346,7 @@ int lua_register_cocos2dx_Waves(lua_State* tolua_S) tolua_function(tolua_S,"setAmplitude",lua_cocos2dx_Waves_setAmplitude); tolua_function(tolua_S,"create", lua_cocos2dx_Waves_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Waves).name(); // rtti is literal storage + auto typeName = typeid(axis::Waves).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Waves"; g_typeCast[typeName] = "cc.Waves"; return 1; @@ -46355,7 +46355,7 @@ int lua_register_cocos2dx_Waves(lua_State* tolua_S) int lua_cocos2dx_Twirl_setAmplitudeRate(lua_State* tolua_S) { int argc = 0; - cocos2d::Twirl* cobj = nullptr; + axis::Twirl* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -46367,7 +46367,7 @@ int lua_cocos2dx_Twirl_setAmplitudeRate(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Twirl",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Twirl*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Twirl*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -46405,7 +46405,7 @@ int lua_cocos2dx_Twirl_setAmplitudeRate(lua_State* tolua_S) int lua_cocos2dx_Twirl_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::Twirl* cobj = nullptr; + axis::Twirl* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -46417,7 +46417,7 @@ int lua_cocos2dx_Twirl_initWithDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Twirl",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Twirl*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Twirl*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -46431,8 +46431,8 @@ int lua_cocos2dx_Twirl_initWithDuration(lua_State* tolua_S) if (argc == 5) { double arg0; - cocos2d::Vec2 arg1; - cocos2d::Vec2 arg2; + axis::Vec2 arg1; + axis::Vec2 arg2; unsigned int arg3; double arg4; @@ -46467,7 +46467,7 @@ int lua_cocos2dx_Twirl_initWithDuration(lua_State* tolua_S) int lua_cocos2dx_Twirl_getAmplitudeRate(lua_State* tolua_S) { int argc = 0; - cocos2d::Twirl* cobj = nullptr; + axis::Twirl* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -46479,7 +46479,7 @@ int lua_cocos2dx_Twirl_getAmplitudeRate(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Twirl",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Twirl*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Twirl*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -46514,7 +46514,7 @@ int lua_cocos2dx_Twirl_getAmplitudeRate(lua_State* tolua_S) int lua_cocos2dx_Twirl_setAmplitude(lua_State* tolua_S) { int argc = 0; - cocos2d::Twirl* cobj = nullptr; + axis::Twirl* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -46526,7 +46526,7 @@ int lua_cocos2dx_Twirl_setAmplitude(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Twirl",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Twirl*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Twirl*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -46564,7 +46564,7 @@ int lua_cocos2dx_Twirl_setAmplitude(lua_State* tolua_S) int lua_cocos2dx_Twirl_getAmplitude(lua_State* tolua_S) { int argc = 0; - cocos2d::Twirl* cobj = nullptr; + axis::Twirl* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -46576,7 +46576,7 @@ int lua_cocos2dx_Twirl_getAmplitude(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Twirl",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Twirl*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Twirl*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -46611,7 +46611,7 @@ int lua_cocos2dx_Twirl_getAmplitude(lua_State* tolua_S) int lua_cocos2dx_Twirl_setPosition(lua_State* tolua_S) { int argc = 0; - cocos2d::Twirl* cobj = nullptr; + axis::Twirl* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -46623,7 +46623,7 @@ int lua_cocos2dx_Twirl_setPosition(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Twirl",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Twirl*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Twirl*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -46636,7 +46636,7 @@ int lua_cocos2dx_Twirl_setPosition(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Twirl:setPosition"); if(!ok) @@ -46661,7 +46661,7 @@ int lua_cocos2dx_Twirl_setPosition(lua_State* tolua_S) int lua_cocos2dx_Twirl_getPosition(lua_State* tolua_S) { int argc = 0; - cocos2d::Twirl* cobj = nullptr; + axis::Twirl* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -46673,7 +46673,7 @@ int lua_cocos2dx_Twirl_getPosition(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Twirl",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Twirl*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Twirl*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -46691,7 +46691,7 @@ int lua_cocos2dx_Twirl_getPosition(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Twirl_getPosition'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getPosition(); + const axis::Vec2& ret = cobj->getPosition(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -46723,8 +46723,8 @@ int lua_cocos2dx_Twirl_create(lua_State* tolua_S) if (argc == 5) { double arg0; - cocos2d::Vec2 arg1; - cocos2d::Vec2 arg2; + axis::Vec2 arg1; + axis::Vec2 arg2; unsigned int arg3; double arg4; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Twirl:create"); @@ -46737,8 +46737,8 @@ int lua_cocos2dx_Twirl_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Twirl_create'", nullptr); return 0; } - cocos2d::Twirl* ret = cocos2d::Twirl::create(arg0, arg1, arg2, arg3, arg4); - object_to_luaval(tolua_S, "cc.Twirl",(cocos2d::Twirl*)ret); + axis::Twirl* ret = axis::Twirl::create(arg0, arg1, arg2, arg3, arg4); + object_to_luaval(tolua_S, "cc.Twirl",(axis::Twirl*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Twirl:create",argc, 5); @@ -46752,7 +46752,7 @@ int lua_cocos2dx_Twirl_create(lua_State* tolua_S) int lua_cocos2dx_Twirl_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Twirl* cobj = nullptr; + axis::Twirl* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -46769,7 +46769,7 @@ int lua_cocos2dx_Twirl_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Twirl_constructor'", nullptr); return 0; } - cobj = new cocos2d::Twirl(); + cobj = new axis::Twirl(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -46808,7 +46808,7 @@ int lua_register_cocos2dx_Twirl(lua_State* tolua_S) tolua_function(tolua_S,"getPosition",lua_cocos2dx_Twirl_getPosition); tolua_function(tolua_S,"create", lua_cocos2dx_Twirl_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Twirl).name(); // rtti is literal storage + auto typeName = typeid(axis::Twirl).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Twirl"; g_typeCast[typeName] = "cc.Twirl"; return 1; @@ -46817,7 +46817,7 @@ int lua_register_cocos2dx_Twirl(lua_State* tolua_S) int lua_cocos2dx_ActionManager_getActionByTag(lua_State* tolua_S) { int argc = 0; - cocos2d::ActionManager* cobj = nullptr; + axis::ActionManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -46829,7 +46829,7 @@ int lua_cocos2dx_ActionManager_getActionByTag(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ActionManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -46843,18 +46843,18 @@ int lua_cocos2dx_ActionManager_getActionByTag(lua_State* tolua_S) if (argc == 2) { int arg0; - const cocos2d::Node* arg1; + const axis::Node* arg1; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ActionManager:getActionByTag"); - ok &= luaval_to_object(tolua_S, 3, "cc.Node",&arg1, "cc.ActionManager:getActionByTag"); + ok &= luaval_to_object(tolua_S, 3, "cc.Node",&arg1, "cc.ActionManager:getActionByTag"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionManager_getActionByTag'", nullptr); return 0; } - cocos2d::Action* ret = cobj->getActionByTag(arg0, arg1); - object_to_luaval(tolua_S, "cc.Action",(cocos2d::Action*)ret); + axis::Action* ret = cobj->getActionByTag(arg0, arg1); + object_to_luaval(tolua_S, "cc.Action",(axis::Action*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ActionManager:getActionByTag",argc, 2); @@ -46870,7 +46870,7 @@ int lua_cocos2dx_ActionManager_getActionByTag(lua_State* tolua_S) int lua_cocos2dx_ActionManager_removeActionByTag(lua_State* tolua_S) { int argc = 0; - cocos2d::ActionManager* cobj = nullptr; + axis::ActionManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -46882,7 +46882,7 @@ int lua_cocos2dx_ActionManager_removeActionByTag(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ActionManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -46896,11 +46896,11 @@ int lua_cocos2dx_ActionManager_removeActionByTag(lua_State* tolua_S) if (argc == 2) { int arg0; - cocos2d::Node* arg1; + axis::Node* arg1; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ActionManager:removeActionByTag"); - ok &= luaval_to_object(tolua_S, 3, "cc.Node",&arg1, "cc.ActionManager:removeActionByTag"); + ok &= luaval_to_object(tolua_S, 3, "cc.Node",&arg1, "cc.ActionManager:removeActionByTag"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionManager_removeActionByTag'", nullptr); @@ -46923,7 +46923,7 @@ int lua_cocos2dx_ActionManager_removeActionByTag(lua_State* tolua_S) int lua_cocos2dx_ActionManager_removeActionsByFlags(lua_State* tolua_S) { int argc = 0; - cocos2d::ActionManager* cobj = nullptr; + axis::ActionManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -46935,7 +46935,7 @@ int lua_cocos2dx_ActionManager_removeActionsByFlags(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ActionManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -46949,11 +46949,11 @@ int lua_cocos2dx_ActionManager_removeActionsByFlags(lua_State* tolua_S) if (argc == 2) { unsigned int arg0; - cocos2d::Node* arg1; + axis::Node* arg1; ok &= luaval_to_uint32(tolua_S, 2,&arg0, "cc.ActionManager:removeActionsByFlags"); - ok &= luaval_to_object(tolua_S, 3, "cc.Node",&arg1, "cc.ActionManager:removeActionsByFlags"); + ok &= luaval_to_object(tolua_S, 3, "cc.Node",&arg1, "cc.ActionManager:removeActionsByFlags"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionManager_removeActionsByFlags'", nullptr); @@ -46976,7 +46976,7 @@ int lua_cocos2dx_ActionManager_removeActionsByFlags(lua_State* tolua_S) int lua_cocos2dx_ActionManager_removeAllActions(lua_State* tolua_S) { int argc = 0; - cocos2d::ActionManager* cobj = nullptr; + axis::ActionManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -46988,7 +46988,7 @@ int lua_cocos2dx_ActionManager_removeAllActions(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ActionManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -47023,7 +47023,7 @@ int lua_cocos2dx_ActionManager_removeAllActions(lua_State* tolua_S) int lua_cocos2dx_ActionManager_addAction(lua_State* tolua_S) { int argc = 0; - cocos2d::ActionManager* cobj = nullptr; + axis::ActionManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -47035,7 +47035,7 @@ int lua_cocos2dx_ActionManager_addAction(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ActionManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -47048,13 +47048,13 @@ int lua_cocos2dx_ActionManager_addAction(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 3) { - cocos2d::Action* arg0; - cocos2d::Node* arg1; + axis::Action* arg0; + axis::Node* arg1; bool arg2; - ok &= luaval_to_object(tolua_S, 2, "cc.Action",&arg0, "cc.ActionManager:addAction"); + ok &= luaval_to_object(tolua_S, 2, "cc.Action",&arg0, "cc.ActionManager:addAction"); - ok &= luaval_to_object(tolua_S, 3, "cc.Node",&arg1, "cc.ActionManager:addAction"); + ok &= luaval_to_object(tolua_S, 3, "cc.Node",&arg1, "cc.ActionManager:addAction"); ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.ActionManager:addAction"); if(!ok) @@ -47079,7 +47079,7 @@ int lua_cocos2dx_ActionManager_addAction(lua_State* tolua_S) int lua_cocos2dx_ActionManager_resumeTarget(lua_State* tolua_S) { int argc = 0; - cocos2d::ActionManager* cobj = nullptr; + axis::ActionManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -47091,7 +47091,7 @@ int lua_cocos2dx_ActionManager_resumeTarget(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ActionManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -47104,9 +47104,9 @@ int lua_cocos2dx_ActionManager_resumeTarget(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Node* arg0; + axis::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.ActionManager:resumeTarget"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.ActionManager:resumeTarget"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionManager_resumeTarget'", nullptr); @@ -47129,7 +47129,7 @@ int lua_cocos2dx_ActionManager_resumeTarget(lua_State* tolua_S) int lua_cocos2dx_ActionManager_getNumberOfRunningActions(lua_State* tolua_S) { int argc = 0; - cocos2d::ActionManager* cobj = nullptr; + axis::ActionManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -47141,7 +47141,7 @@ int lua_cocos2dx_ActionManager_getNumberOfRunningActions(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ActionManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -47176,7 +47176,7 @@ int lua_cocos2dx_ActionManager_getNumberOfRunningActions(lua_State* tolua_S) int lua_cocos2dx_ActionManager_pauseTarget(lua_State* tolua_S) { int argc = 0; - cocos2d::ActionManager* cobj = nullptr; + axis::ActionManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -47188,7 +47188,7 @@ int lua_cocos2dx_ActionManager_pauseTarget(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ActionManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -47201,9 +47201,9 @@ int lua_cocos2dx_ActionManager_pauseTarget(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Node* arg0; + axis::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.ActionManager:pauseTarget"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.ActionManager:pauseTarget"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionManager_pauseTarget'", nullptr); @@ -47226,7 +47226,7 @@ int lua_cocos2dx_ActionManager_pauseTarget(lua_State* tolua_S) int lua_cocos2dx_ActionManager_getNumberOfRunningActionsInTarget(lua_State* tolua_S) { int argc = 0; - cocos2d::ActionManager* cobj = nullptr; + axis::ActionManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -47238,7 +47238,7 @@ int lua_cocos2dx_ActionManager_getNumberOfRunningActionsInTarget(lua_State* tolu if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ActionManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -47251,9 +47251,9 @@ int lua_cocos2dx_ActionManager_getNumberOfRunningActionsInTarget(lua_State* tolu argc = lua_gettop(tolua_S)-1; if (argc == 1) { - const cocos2d::Node* arg0; + const axis::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.ActionManager:getNumberOfRunningActionsInTarget"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.ActionManager:getNumberOfRunningActionsInTarget"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionManager_getNumberOfRunningActionsInTarget'", nullptr); @@ -47276,7 +47276,7 @@ int lua_cocos2dx_ActionManager_getNumberOfRunningActionsInTarget(lua_State* tolu int lua_cocos2dx_ActionManager_removeAllActionsFromTarget(lua_State* tolua_S) { int argc = 0; - cocos2d::ActionManager* cobj = nullptr; + axis::ActionManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -47288,7 +47288,7 @@ int lua_cocos2dx_ActionManager_removeAllActionsFromTarget(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ActionManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -47301,9 +47301,9 @@ int lua_cocos2dx_ActionManager_removeAllActionsFromTarget(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Node* arg0; + axis::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.ActionManager:removeAllActionsFromTarget"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.ActionManager:removeAllActionsFromTarget"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionManager_removeAllActionsFromTarget'", nullptr); @@ -47326,7 +47326,7 @@ int lua_cocos2dx_ActionManager_removeAllActionsFromTarget(lua_State* tolua_S) int lua_cocos2dx_ActionManager_resumeTargets(lua_State* tolua_S) { int argc = 0; - cocos2d::ActionManager* cobj = nullptr; + axis::ActionManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -47338,7 +47338,7 @@ int lua_cocos2dx_ActionManager_resumeTargets(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ActionManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -47351,7 +47351,7 @@ int lua_cocos2dx_ActionManager_resumeTargets(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vector arg0; + axis::Vector arg0; ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.ActionManager:resumeTargets"); if(!ok) @@ -47376,7 +47376,7 @@ int lua_cocos2dx_ActionManager_resumeTargets(lua_State* tolua_S) int lua_cocos2dx_ActionManager_removeAction(lua_State* tolua_S) { int argc = 0; - cocos2d::ActionManager* cobj = nullptr; + axis::ActionManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -47388,7 +47388,7 @@ int lua_cocos2dx_ActionManager_removeAction(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ActionManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -47401,9 +47401,9 @@ int lua_cocos2dx_ActionManager_removeAction(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Action* arg0; + axis::Action* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Action",&arg0, "cc.ActionManager:removeAction"); + ok &= luaval_to_object(tolua_S, 2, "cc.Action",&arg0, "cc.ActionManager:removeAction"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionManager_removeAction'", nullptr); @@ -47426,7 +47426,7 @@ int lua_cocos2dx_ActionManager_removeAction(lua_State* tolua_S) int lua_cocos2dx_ActionManager_pauseAllRunningActions(lua_State* tolua_S) { int argc = 0; - cocos2d::ActionManager* cobj = nullptr; + axis::ActionManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -47438,7 +47438,7 @@ int lua_cocos2dx_ActionManager_pauseAllRunningActions(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ActionManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -47456,7 +47456,7 @@ int lua_cocos2dx_ActionManager_pauseAllRunningActions(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionManager_pauseAllRunningActions'", nullptr); return 0; } - cocos2d::Vector ret = cobj->pauseAllRunningActions(); + axis::Vector ret = cobj->pauseAllRunningActions(); ccvector_to_luaval(tolua_S, ret); return 1; } @@ -47473,7 +47473,7 @@ int lua_cocos2dx_ActionManager_pauseAllRunningActions(lua_State* tolua_S) int lua_cocos2dx_ActionManager_update(lua_State* tolua_S) { int argc = 0; - cocos2d::ActionManager* cobj = nullptr; + axis::ActionManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -47485,7 +47485,7 @@ int lua_cocos2dx_ActionManager_update(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ActionManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -47523,7 +47523,7 @@ int lua_cocos2dx_ActionManager_update(lua_State* tolua_S) int lua_cocos2dx_ActionManager_removeAllActionsByTag(lua_State* tolua_S) { int argc = 0; - cocos2d::ActionManager* cobj = nullptr; + axis::ActionManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -47535,7 +47535,7 @@ int lua_cocos2dx_ActionManager_removeAllActionsByTag(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ActionManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -47549,11 +47549,11 @@ int lua_cocos2dx_ActionManager_removeAllActionsByTag(lua_State* tolua_S) if (argc == 2) { int arg0; - cocos2d::Node* arg1; + axis::Node* arg1; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ActionManager:removeAllActionsByTag"); - ok &= luaval_to_object(tolua_S, 3, "cc.Node",&arg1, "cc.ActionManager:removeAllActionsByTag"); + ok &= luaval_to_object(tolua_S, 3, "cc.Node",&arg1, "cc.ActionManager:removeAllActionsByTag"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionManager_removeAllActionsByTag'", nullptr); @@ -47576,7 +47576,7 @@ int lua_cocos2dx_ActionManager_removeAllActionsByTag(lua_State* tolua_S) int lua_cocos2dx_ActionManager_getNumberOfRunningActionsInTargetByTag(lua_State* tolua_S) { int argc = 0; - cocos2d::ActionManager* cobj = nullptr; + axis::ActionManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -47588,7 +47588,7 @@ int lua_cocos2dx_ActionManager_getNumberOfRunningActionsInTargetByTag(lua_State* if (!tolua_isusertype(tolua_S,1,"cc.ActionManager",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ActionManager*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ActionManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -47601,10 +47601,10 @@ int lua_cocos2dx_ActionManager_getNumberOfRunningActionsInTargetByTag(lua_State* argc = lua_gettop(tolua_S)-1; if (argc == 2) { - const cocos2d::Node* arg0; + const axis::Node* arg0; int arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.ActionManager:getNumberOfRunningActionsInTargetByTag"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.ActionManager:getNumberOfRunningActionsInTargetByTag"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.ActionManager:getNumberOfRunningActionsInTargetByTag"); if(!ok) @@ -47629,7 +47629,7 @@ int lua_cocos2dx_ActionManager_getNumberOfRunningActionsInTargetByTag(lua_State* int lua_cocos2dx_ActionManager_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ActionManager* cobj = nullptr; + axis::ActionManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -47646,7 +47646,7 @@ int lua_cocos2dx_ActionManager_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionManager_constructor'", nullptr); return 0; } - cobj = new cocos2d::ActionManager(); + cobj = new axis::ActionManager(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -47693,7 +47693,7 @@ int lua_register_cocos2dx_ActionManager(lua_State* tolua_S) tolua_function(tolua_S,"removeAllActionsByTag",lua_cocos2dx_ActionManager_removeAllActionsByTag); tolua_function(tolua_S,"getNumberOfRunningActionsInTargetByTag",lua_cocos2dx_ActionManager_getNumberOfRunningActionsInTargetByTag); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ActionManager).name(); // rtti is literal storage + auto typeName = typeid(axis::ActionManager).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.ActionManager"; g_typeCast[typeName] = "cc.ActionManager"; return 1; @@ -47717,7 +47717,7 @@ int lua_cocos2dx_PageTurn3D_create(lua_State* tolua_S) if (argc == 2) { double arg0; - cocos2d::Vec2 arg1; + axis::Vec2 arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.PageTurn3D:create"); ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.PageTurn3D:create"); if(!ok) @@ -47725,8 +47725,8 @@ int lua_cocos2dx_PageTurn3D_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_PageTurn3D_create'", nullptr); return 0; } - cocos2d::PageTurn3D* ret = cocos2d::PageTurn3D::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.PageTurn3D",(cocos2d::PageTurn3D*)ret); + axis::PageTurn3D* ret = axis::PageTurn3D::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.PageTurn3D",(axis::PageTurn3D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.PageTurn3D:create",argc, 2); @@ -47751,7 +47751,7 @@ int lua_register_cocos2dx_PageTurn3D(lua_State* tolua_S) tolua_beginmodule(tolua_S,"PageTurn3D"); tolua_function(tolua_S,"create", lua_cocos2dx_PageTurn3D_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::PageTurn3D).name(); // rtti is literal storage + auto typeName = typeid(axis::PageTurn3D).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.PageTurn3D"; g_typeCast[typeName] = "cc.PageTurn3D"; return 1; @@ -47760,7 +47760,7 @@ int lua_register_cocos2dx_PageTurn3D(lua_State* tolua_S) int lua_cocos2dx_ProgressTo_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::ProgressTo* cobj = nullptr; + axis::ProgressTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -47772,7 +47772,7 @@ int lua_cocos2dx_ProgressTo_initWithDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ProgressTo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ProgressTo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ProgressTo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -47836,8 +47836,8 @@ int lua_cocos2dx_ProgressTo_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProgressTo_create'", nullptr); return 0; } - cocos2d::ProgressTo* ret = cocos2d::ProgressTo::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.ProgressTo",(cocos2d::ProgressTo*)ret); + axis::ProgressTo* ret = axis::ProgressTo::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.ProgressTo",(axis::ProgressTo*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ProgressTo:create",argc, 2); @@ -47851,7 +47851,7 @@ int lua_cocos2dx_ProgressTo_create(lua_State* tolua_S) int lua_cocos2dx_ProgressTo_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ProgressTo* cobj = nullptr; + axis::ProgressTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -47868,7 +47868,7 @@ int lua_cocos2dx_ProgressTo_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProgressTo_constructor'", nullptr); return 0; } - cobj = new cocos2d::ProgressTo(); + cobj = new axis::ProgressTo(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -47901,7 +47901,7 @@ int lua_register_cocos2dx_ProgressTo(lua_State* tolua_S) tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_ProgressTo_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_ProgressTo_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ProgressTo).name(); // rtti is literal storage + auto typeName = typeid(axis::ProgressTo).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.ProgressTo"; g_typeCast[typeName] = "cc.ProgressTo"; return 1; @@ -47910,7 +47910,7 @@ int lua_register_cocos2dx_ProgressTo(lua_State* tolua_S) int lua_cocos2dx_ProgressFromTo_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::ProgressFromTo* cobj = nullptr; + axis::ProgressFromTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -47922,7 +47922,7 @@ int lua_cocos2dx_ProgressFromTo_initWithDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ProgressFromTo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ProgressFromTo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ProgressFromTo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -47991,8 +47991,8 @@ int lua_cocos2dx_ProgressFromTo_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProgressFromTo_create'", nullptr); return 0; } - cocos2d::ProgressFromTo* ret = cocos2d::ProgressFromTo::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.ProgressFromTo",(cocos2d::ProgressFromTo*)ret); + axis::ProgressFromTo* ret = axis::ProgressFromTo::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.ProgressFromTo",(axis::ProgressFromTo*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ProgressFromTo:create",argc, 3); @@ -48006,7 +48006,7 @@ int lua_cocos2dx_ProgressFromTo_create(lua_State* tolua_S) int lua_cocos2dx_ProgressFromTo_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ProgressFromTo* cobj = nullptr; + axis::ProgressFromTo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -48023,7 +48023,7 @@ int lua_cocos2dx_ProgressFromTo_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProgressFromTo_constructor'", nullptr); return 0; } - cobj = new cocos2d::ProgressFromTo(); + cobj = new axis::ProgressFromTo(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -48056,7 +48056,7 @@ int lua_register_cocos2dx_ProgressFromTo(lua_State* tolua_S) tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_ProgressFromTo_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_ProgressFromTo_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ProgressFromTo).name(); // rtti is literal storage + auto typeName = typeid(axis::ProgressFromTo).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.ProgressFromTo"; g_typeCast[typeName] = "cc.ProgressFromTo"; return 1; @@ -48065,7 +48065,7 @@ int lua_register_cocos2dx_ProgressFromTo(lua_State* tolua_S) int lua_cocos2dx_ShakyTiles3D_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::ShakyTiles3D* cobj = nullptr; + axis::ShakyTiles3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -48077,7 +48077,7 @@ int lua_cocos2dx_ShakyTiles3D_initWithDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ShakyTiles3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ShakyTiles3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ShakyTiles3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -48091,7 +48091,7 @@ int lua_cocos2dx_ShakyTiles3D_initWithDuration(lua_State* tolua_S) if (argc == 4) { double arg0; - cocos2d::Vec2 arg1; + axis::Vec2 arg1; int arg2; bool arg3; @@ -48139,7 +48139,7 @@ int lua_cocos2dx_ShakyTiles3D_create(lua_State* tolua_S) if (argc == 4) { double arg0; - cocos2d::Vec2 arg1; + axis::Vec2 arg1; int arg2; bool arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ShakyTiles3D:create"); @@ -48151,8 +48151,8 @@ int lua_cocos2dx_ShakyTiles3D_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ShakyTiles3D_create'", nullptr); return 0; } - cocos2d::ShakyTiles3D* ret = cocos2d::ShakyTiles3D::create(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.ShakyTiles3D",(cocos2d::ShakyTiles3D*)ret); + axis::ShakyTiles3D* ret = axis::ShakyTiles3D::create(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.ShakyTiles3D",(axis::ShakyTiles3D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ShakyTiles3D:create",argc, 4); @@ -48166,7 +48166,7 @@ int lua_cocos2dx_ShakyTiles3D_create(lua_State* tolua_S) int lua_cocos2dx_ShakyTiles3D_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ShakyTiles3D* cobj = nullptr; + axis::ShakyTiles3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -48183,7 +48183,7 @@ int lua_cocos2dx_ShakyTiles3D_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ShakyTiles3D_constructor'", nullptr); return 0; } - cobj = new cocos2d::ShakyTiles3D(); + cobj = new axis::ShakyTiles3D(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -48216,7 +48216,7 @@ int lua_register_cocos2dx_ShakyTiles3D(lua_State* tolua_S) tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_ShakyTiles3D_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_ShakyTiles3D_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ShakyTiles3D).name(); // rtti is literal storage + auto typeName = typeid(axis::ShakyTiles3D).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.ShakyTiles3D"; g_typeCast[typeName] = "cc.ShakyTiles3D"; return 1; @@ -48225,7 +48225,7 @@ int lua_register_cocos2dx_ShakyTiles3D(lua_State* tolua_S) int lua_cocos2dx_ShatteredTiles3D_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::ShatteredTiles3D* cobj = nullptr; + axis::ShatteredTiles3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -48237,7 +48237,7 @@ int lua_cocos2dx_ShatteredTiles3D_initWithDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ShatteredTiles3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ShatteredTiles3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ShatteredTiles3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -48251,7 +48251,7 @@ int lua_cocos2dx_ShatteredTiles3D_initWithDuration(lua_State* tolua_S) if (argc == 4) { double arg0; - cocos2d::Vec2 arg1; + axis::Vec2 arg1; int arg2; bool arg3; @@ -48299,7 +48299,7 @@ int lua_cocos2dx_ShatteredTiles3D_create(lua_State* tolua_S) if (argc == 4) { double arg0; - cocos2d::Vec2 arg1; + axis::Vec2 arg1; int arg2; bool arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ShatteredTiles3D:create"); @@ -48311,8 +48311,8 @@ int lua_cocos2dx_ShatteredTiles3D_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ShatteredTiles3D_create'", nullptr); return 0; } - cocos2d::ShatteredTiles3D* ret = cocos2d::ShatteredTiles3D::create(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.ShatteredTiles3D",(cocos2d::ShatteredTiles3D*)ret); + axis::ShatteredTiles3D* ret = axis::ShatteredTiles3D::create(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.ShatteredTiles3D",(axis::ShatteredTiles3D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ShatteredTiles3D:create",argc, 4); @@ -48326,7 +48326,7 @@ int lua_cocos2dx_ShatteredTiles3D_create(lua_State* tolua_S) int lua_cocos2dx_ShatteredTiles3D_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ShatteredTiles3D* cobj = nullptr; + axis::ShatteredTiles3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -48343,7 +48343,7 @@ int lua_cocos2dx_ShatteredTiles3D_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ShatteredTiles3D_constructor'", nullptr); return 0; } - cobj = new cocos2d::ShatteredTiles3D(); + cobj = new axis::ShatteredTiles3D(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -48376,7 +48376,7 @@ int lua_register_cocos2dx_ShatteredTiles3D(lua_State* tolua_S) tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_ShatteredTiles3D_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_ShatteredTiles3D_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ShatteredTiles3D).name(); // rtti is literal storage + auto typeName = typeid(axis::ShatteredTiles3D).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.ShatteredTiles3D"; g_typeCast[typeName] = "cc.ShatteredTiles3D"; return 1; @@ -48385,7 +48385,7 @@ int lua_register_cocos2dx_ShatteredTiles3D(lua_State* tolua_S) int lua_cocos2dx_ShuffleTiles_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::ShuffleTiles* cobj = nullptr; + axis::ShuffleTiles* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -48397,7 +48397,7 @@ int lua_cocos2dx_ShuffleTiles_initWithDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ShuffleTiles",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ShuffleTiles*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ShuffleTiles*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -48411,7 +48411,7 @@ int lua_cocos2dx_ShuffleTiles_initWithDuration(lua_State* tolua_S) if (argc == 3) { double arg0; - cocos2d::Vec2 arg1; + axis::Vec2 arg1; unsigned int arg2; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ShuffleTiles:initWithDuration"); @@ -48441,7 +48441,7 @@ int lua_cocos2dx_ShuffleTiles_initWithDuration(lua_State* tolua_S) int lua_cocos2dx_ShuffleTiles_getDelta(lua_State* tolua_S) { int argc = 0; - cocos2d::ShuffleTiles* cobj = nullptr; + axis::ShuffleTiles* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -48453,7 +48453,7 @@ int lua_cocos2dx_ShuffleTiles_getDelta(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ShuffleTiles",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ShuffleTiles*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ShuffleTiles*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -48466,7 +48466,7 @@ int lua_cocos2dx_ShuffleTiles_getDelta(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.ShuffleTiles:getDelta"); if(!ok) @@ -48474,7 +48474,7 @@ int lua_cocos2dx_ShuffleTiles_getDelta(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ShuffleTiles_getDelta'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getDelta(arg0); + axis::Vec2 ret = cobj->getDelta(arg0); vec2_to_luaval(tolua_S, ret); return 1; } @@ -48506,7 +48506,7 @@ int lua_cocos2dx_ShuffleTiles_create(lua_State* tolua_S) if (argc == 3) { double arg0; - cocos2d::Vec2 arg1; + axis::Vec2 arg1; unsigned int arg2; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.ShuffleTiles:create"); ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.ShuffleTiles:create"); @@ -48516,8 +48516,8 @@ int lua_cocos2dx_ShuffleTiles_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ShuffleTiles_create'", nullptr); return 0; } - cocos2d::ShuffleTiles* ret = cocos2d::ShuffleTiles::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.ShuffleTiles",(cocos2d::ShuffleTiles*)ret); + axis::ShuffleTiles* ret = axis::ShuffleTiles::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.ShuffleTiles",(axis::ShuffleTiles*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ShuffleTiles:create",argc, 3); @@ -48531,7 +48531,7 @@ int lua_cocos2dx_ShuffleTiles_create(lua_State* tolua_S) int lua_cocos2dx_ShuffleTiles_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ShuffleTiles* cobj = nullptr; + axis::ShuffleTiles* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -48548,7 +48548,7 @@ int lua_cocos2dx_ShuffleTiles_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ShuffleTiles_constructor'", nullptr); return 0; } - cobj = new cocos2d::ShuffleTiles(); + cobj = new axis::ShuffleTiles(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -48582,7 +48582,7 @@ int lua_register_cocos2dx_ShuffleTiles(lua_State* tolua_S) tolua_function(tolua_S,"getDelta",lua_cocos2dx_ShuffleTiles_getDelta); tolua_function(tolua_S,"create", lua_cocos2dx_ShuffleTiles_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ShuffleTiles).name(); // rtti is literal storage + auto typeName = typeid(axis::ShuffleTiles).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.ShuffleTiles"; g_typeCast[typeName] = "cc.ShuffleTiles"; return 1; @@ -48591,7 +48591,7 @@ int lua_register_cocos2dx_ShuffleTiles(lua_State* tolua_S) int lua_cocos2dx_FadeOutTRTiles_turnOnTile(lua_State* tolua_S) { int argc = 0; - cocos2d::FadeOutTRTiles* cobj = nullptr; + axis::FadeOutTRTiles* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -48603,7 +48603,7 @@ int lua_cocos2dx_FadeOutTRTiles_turnOnTile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FadeOutTRTiles",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FadeOutTRTiles*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FadeOutTRTiles*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -48616,7 +48616,7 @@ int lua_cocos2dx_FadeOutTRTiles_turnOnTile(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.FadeOutTRTiles:turnOnTile"); if(!ok) @@ -48641,7 +48641,7 @@ int lua_cocos2dx_FadeOutTRTiles_turnOnTile(lua_State* tolua_S) int lua_cocos2dx_FadeOutTRTiles_turnOffTile(lua_State* tolua_S) { int argc = 0; - cocos2d::FadeOutTRTiles* cobj = nullptr; + axis::FadeOutTRTiles* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -48653,7 +48653,7 @@ int lua_cocos2dx_FadeOutTRTiles_turnOffTile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FadeOutTRTiles",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FadeOutTRTiles*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FadeOutTRTiles*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -48666,7 +48666,7 @@ int lua_cocos2dx_FadeOutTRTiles_turnOffTile(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.FadeOutTRTiles:turnOffTile"); if(!ok) @@ -48691,7 +48691,7 @@ int lua_cocos2dx_FadeOutTRTiles_turnOffTile(lua_State* tolua_S) int lua_cocos2dx_FadeOutTRTiles_transformTile(lua_State* tolua_S) { int argc = 0; - cocos2d::FadeOutTRTiles* cobj = nullptr; + axis::FadeOutTRTiles* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -48703,7 +48703,7 @@ int lua_cocos2dx_FadeOutTRTiles_transformTile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FadeOutTRTiles",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FadeOutTRTiles*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FadeOutTRTiles*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -48716,7 +48716,7 @@ int lua_cocos2dx_FadeOutTRTiles_transformTile(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; double arg1; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.FadeOutTRTiles:transformTile"); @@ -48744,7 +48744,7 @@ int lua_cocos2dx_FadeOutTRTiles_transformTile(lua_State* tolua_S) int lua_cocos2dx_FadeOutTRTiles_testFunc(lua_State* tolua_S) { int argc = 0; - cocos2d::FadeOutTRTiles* cobj = nullptr; + axis::FadeOutTRTiles* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -48756,7 +48756,7 @@ int lua_cocos2dx_FadeOutTRTiles_testFunc(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FadeOutTRTiles",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FadeOutTRTiles*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FadeOutTRTiles*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -48769,7 +48769,7 @@ int lua_cocos2dx_FadeOutTRTiles_testFunc(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; double arg1; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.FadeOutTRTiles:testFunc"); @@ -48812,7 +48812,7 @@ int lua_cocos2dx_FadeOutTRTiles_create(lua_State* tolua_S) if (argc == 2) { double arg0; - cocos2d::Vec2 arg1; + axis::Vec2 arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.FadeOutTRTiles:create"); ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.FadeOutTRTiles:create"); if(!ok) @@ -48820,8 +48820,8 @@ int lua_cocos2dx_FadeOutTRTiles_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeOutTRTiles_create'", nullptr); return 0; } - cocos2d::FadeOutTRTiles* ret = cocos2d::FadeOutTRTiles::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.FadeOutTRTiles",(cocos2d::FadeOutTRTiles*)ret); + axis::FadeOutTRTiles* ret = axis::FadeOutTRTiles::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.FadeOutTRTiles",(axis::FadeOutTRTiles*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FadeOutTRTiles:create",argc, 2); @@ -48835,7 +48835,7 @@ int lua_cocos2dx_FadeOutTRTiles_create(lua_State* tolua_S) int lua_cocos2dx_FadeOutTRTiles_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::FadeOutTRTiles* cobj = nullptr; + axis::FadeOutTRTiles* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -48852,7 +48852,7 @@ int lua_cocos2dx_FadeOutTRTiles_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeOutTRTiles_constructor'", nullptr); return 0; } - cobj = new cocos2d::FadeOutTRTiles(); + cobj = new axis::FadeOutTRTiles(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -48888,7 +48888,7 @@ int lua_register_cocos2dx_FadeOutTRTiles(lua_State* tolua_S) tolua_function(tolua_S,"testFunc",lua_cocos2dx_FadeOutTRTiles_testFunc); tolua_function(tolua_S,"create", lua_cocos2dx_FadeOutTRTiles_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::FadeOutTRTiles).name(); // rtti is literal storage + auto typeName = typeid(axis::FadeOutTRTiles).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.FadeOutTRTiles"; g_typeCast[typeName] = "cc.FadeOutTRTiles"; return 1; @@ -48912,7 +48912,7 @@ int lua_cocos2dx_FadeOutBLTiles_create(lua_State* tolua_S) if (argc == 2) { double arg0; - cocos2d::Vec2 arg1; + axis::Vec2 arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.FadeOutBLTiles:create"); ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.FadeOutBLTiles:create"); if(!ok) @@ -48920,8 +48920,8 @@ int lua_cocos2dx_FadeOutBLTiles_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeOutBLTiles_create'", nullptr); return 0; } - cocos2d::FadeOutBLTiles* ret = cocos2d::FadeOutBLTiles::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.FadeOutBLTiles",(cocos2d::FadeOutBLTiles*)ret); + axis::FadeOutBLTiles* ret = axis::FadeOutBLTiles::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.FadeOutBLTiles",(axis::FadeOutBLTiles*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FadeOutBLTiles:create",argc, 2); @@ -48935,7 +48935,7 @@ int lua_cocos2dx_FadeOutBLTiles_create(lua_State* tolua_S) int lua_cocos2dx_FadeOutBLTiles_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::FadeOutBLTiles* cobj = nullptr; + axis::FadeOutBLTiles* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -48952,7 +48952,7 @@ int lua_cocos2dx_FadeOutBLTiles_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeOutBLTiles_constructor'", nullptr); return 0; } - cobj = new cocos2d::FadeOutBLTiles(); + cobj = new axis::FadeOutBLTiles(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -48984,7 +48984,7 @@ int lua_register_cocos2dx_FadeOutBLTiles(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_FadeOutBLTiles_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_FadeOutBLTiles_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::FadeOutBLTiles).name(); // rtti is literal storage + auto typeName = typeid(axis::FadeOutBLTiles).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.FadeOutBLTiles"; g_typeCast[typeName] = "cc.FadeOutBLTiles"; return 1; @@ -49008,7 +49008,7 @@ int lua_cocos2dx_FadeOutUpTiles_create(lua_State* tolua_S) if (argc == 2) { double arg0; - cocos2d::Vec2 arg1; + axis::Vec2 arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.FadeOutUpTiles:create"); ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.FadeOutUpTiles:create"); if(!ok) @@ -49016,8 +49016,8 @@ int lua_cocos2dx_FadeOutUpTiles_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeOutUpTiles_create'", nullptr); return 0; } - cocos2d::FadeOutUpTiles* ret = cocos2d::FadeOutUpTiles::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.FadeOutUpTiles",(cocos2d::FadeOutUpTiles*)ret); + axis::FadeOutUpTiles* ret = axis::FadeOutUpTiles::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.FadeOutUpTiles",(axis::FadeOutUpTiles*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FadeOutUpTiles:create",argc, 2); @@ -49031,7 +49031,7 @@ int lua_cocos2dx_FadeOutUpTiles_create(lua_State* tolua_S) int lua_cocos2dx_FadeOutUpTiles_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::FadeOutUpTiles* cobj = nullptr; + axis::FadeOutUpTiles* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -49048,7 +49048,7 @@ int lua_cocos2dx_FadeOutUpTiles_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeOutUpTiles_constructor'", nullptr); return 0; } - cobj = new cocos2d::FadeOutUpTiles(); + cobj = new axis::FadeOutUpTiles(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -49080,7 +49080,7 @@ int lua_register_cocos2dx_FadeOutUpTiles(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_FadeOutUpTiles_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_FadeOutUpTiles_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::FadeOutUpTiles).name(); // rtti is literal storage + auto typeName = typeid(axis::FadeOutUpTiles).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.FadeOutUpTiles"; g_typeCast[typeName] = "cc.FadeOutUpTiles"; return 1; @@ -49104,7 +49104,7 @@ int lua_cocos2dx_FadeOutDownTiles_create(lua_State* tolua_S) if (argc == 2) { double arg0; - cocos2d::Vec2 arg1; + axis::Vec2 arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.FadeOutDownTiles:create"); ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.FadeOutDownTiles:create"); if(!ok) @@ -49112,8 +49112,8 @@ int lua_cocos2dx_FadeOutDownTiles_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeOutDownTiles_create'", nullptr); return 0; } - cocos2d::FadeOutDownTiles* ret = cocos2d::FadeOutDownTiles::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.FadeOutDownTiles",(cocos2d::FadeOutDownTiles*)ret); + axis::FadeOutDownTiles* ret = axis::FadeOutDownTiles::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.FadeOutDownTiles",(axis::FadeOutDownTiles*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FadeOutDownTiles:create",argc, 2); @@ -49127,7 +49127,7 @@ int lua_cocos2dx_FadeOutDownTiles_create(lua_State* tolua_S) int lua_cocos2dx_FadeOutDownTiles_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::FadeOutDownTiles* cobj = nullptr; + axis::FadeOutDownTiles* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -49144,7 +49144,7 @@ int lua_cocos2dx_FadeOutDownTiles_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FadeOutDownTiles_constructor'", nullptr); return 0; } - cobj = new cocos2d::FadeOutDownTiles(); + cobj = new axis::FadeOutDownTiles(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -49176,7 +49176,7 @@ int lua_register_cocos2dx_FadeOutDownTiles(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_FadeOutDownTiles_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_FadeOutDownTiles_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::FadeOutDownTiles).name(); // rtti is literal storage + auto typeName = typeid(axis::FadeOutDownTiles).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.FadeOutDownTiles"; g_typeCast[typeName] = "cc.FadeOutDownTiles"; return 1; @@ -49185,7 +49185,7 @@ int lua_register_cocos2dx_FadeOutDownTiles(lua_State* tolua_S) int lua_cocos2dx_TurnOffTiles_turnOnTile(lua_State* tolua_S) { int argc = 0; - cocos2d::TurnOffTiles* cobj = nullptr; + axis::TurnOffTiles* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -49197,7 +49197,7 @@ int lua_cocos2dx_TurnOffTiles_turnOnTile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TurnOffTiles",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TurnOffTiles*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TurnOffTiles*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -49210,7 +49210,7 @@ int lua_cocos2dx_TurnOffTiles_turnOnTile(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.TurnOffTiles:turnOnTile"); if(!ok) @@ -49235,7 +49235,7 @@ int lua_cocos2dx_TurnOffTiles_turnOnTile(lua_State* tolua_S) int lua_cocos2dx_TurnOffTiles_turnOffTile(lua_State* tolua_S) { int argc = 0; - cocos2d::TurnOffTiles* cobj = nullptr; + axis::TurnOffTiles* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -49247,7 +49247,7 @@ int lua_cocos2dx_TurnOffTiles_turnOffTile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TurnOffTiles",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TurnOffTiles*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TurnOffTiles*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -49260,7 +49260,7 @@ int lua_cocos2dx_TurnOffTiles_turnOffTile(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.TurnOffTiles:turnOffTile"); if(!ok) @@ -49285,7 +49285,7 @@ int lua_cocos2dx_TurnOffTiles_turnOffTile(lua_State* tolua_S) int lua_cocos2dx_TurnOffTiles_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::TurnOffTiles* cobj = nullptr; + axis::TurnOffTiles* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -49297,7 +49297,7 @@ int lua_cocos2dx_TurnOffTiles_initWithDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TurnOffTiles",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TurnOffTiles*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TurnOffTiles*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -49311,7 +49311,7 @@ int lua_cocos2dx_TurnOffTiles_initWithDuration(lua_State* tolua_S) if (argc == 3) { double arg0; - cocos2d::Vec2 arg1; + axis::Vec2 arg1; unsigned int arg2; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TurnOffTiles:initWithDuration"); @@ -49359,14 +49359,14 @@ int lua_cocos2dx_TurnOffTiles_create(lua_State* tolua_S) double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TurnOffTiles:create"); if (!ok) { break; } - cocos2d::Vec2 arg1; + axis::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.TurnOffTiles:create"); if (!ok) { break; } unsigned int arg2; ok &= luaval_to_uint32(tolua_S, 4,&arg2, "cc.TurnOffTiles:create"); if (!ok) { break; } - cocos2d::TurnOffTiles* ret = cocos2d::TurnOffTiles::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.TurnOffTiles",(cocos2d::TurnOffTiles*)ret); + axis::TurnOffTiles* ret = axis::TurnOffTiles::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.TurnOffTiles",(axis::TurnOffTiles*)ret); return 1; } } while (0); @@ -49378,11 +49378,11 @@ int lua_cocos2dx_TurnOffTiles_create(lua_State* tolua_S) double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TurnOffTiles:create"); if (!ok) { break; } - cocos2d::Vec2 arg1; + axis::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.TurnOffTiles:create"); if (!ok) { break; } - cocos2d::TurnOffTiles* ret = cocos2d::TurnOffTiles::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.TurnOffTiles",(cocos2d::TurnOffTiles*)ret); + axis::TurnOffTiles* ret = axis::TurnOffTiles::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.TurnOffTiles",(axis::TurnOffTiles*)ret); return 1; } } while (0); @@ -49398,7 +49398,7 @@ int lua_cocos2dx_TurnOffTiles_create(lua_State* tolua_S) int lua_cocos2dx_TurnOffTiles_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TurnOffTiles* cobj = nullptr; + axis::TurnOffTiles* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -49415,7 +49415,7 @@ int lua_cocos2dx_TurnOffTiles_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TurnOffTiles_constructor'", nullptr); return 0; } - cobj = new cocos2d::TurnOffTiles(); + cobj = new axis::TurnOffTiles(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -49450,7 +49450,7 @@ int lua_register_cocos2dx_TurnOffTiles(lua_State* tolua_S) tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_TurnOffTiles_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_TurnOffTiles_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TurnOffTiles).name(); // rtti is literal storage + auto typeName = typeid(axis::TurnOffTiles).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TurnOffTiles"; g_typeCast[typeName] = "cc.TurnOffTiles"; return 1; @@ -49459,7 +49459,7 @@ int lua_register_cocos2dx_TurnOffTiles(lua_State* tolua_S) int lua_cocos2dx_WavesTiles3D_setAmplitudeRate(lua_State* tolua_S) { int argc = 0; - cocos2d::WavesTiles3D* cobj = nullptr; + axis::WavesTiles3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -49471,7 +49471,7 @@ int lua_cocos2dx_WavesTiles3D_setAmplitudeRate(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.WavesTiles3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::WavesTiles3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::WavesTiles3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -49509,7 +49509,7 @@ int lua_cocos2dx_WavesTiles3D_setAmplitudeRate(lua_State* tolua_S) int lua_cocos2dx_WavesTiles3D_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::WavesTiles3D* cobj = nullptr; + axis::WavesTiles3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -49521,7 +49521,7 @@ int lua_cocos2dx_WavesTiles3D_initWithDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.WavesTiles3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::WavesTiles3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::WavesTiles3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -49535,7 +49535,7 @@ int lua_cocos2dx_WavesTiles3D_initWithDuration(lua_State* tolua_S) if (argc == 4) { double arg0; - cocos2d::Vec2 arg1; + axis::Vec2 arg1; unsigned int arg2; double arg3; @@ -49568,7 +49568,7 @@ int lua_cocos2dx_WavesTiles3D_initWithDuration(lua_State* tolua_S) int lua_cocos2dx_WavesTiles3D_getAmplitude(lua_State* tolua_S) { int argc = 0; - cocos2d::WavesTiles3D* cobj = nullptr; + axis::WavesTiles3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -49580,7 +49580,7 @@ int lua_cocos2dx_WavesTiles3D_getAmplitude(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.WavesTiles3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::WavesTiles3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::WavesTiles3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -49615,7 +49615,7 @@ int lua_cocos2dx_WavesTiles3D_getAmplitude(lua_State* tolua_S) int lua_cocos2dx_WavesTiles3D_getAmplitudeRate(lua_State* tolua_S) { int argc = 0; - cocos2d::WavesTiles3D* cobj = nullptr; + axis::WavesTiles3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -49627,7 +49627,7 @@ int lua_cocos2dx_WavesTiles3D_getAmplitudeRate(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.WavesTiles3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::WavesTiles3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::WavesTiles3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -49662,7 +49662,7 @@ int lua_cocos2dx_WavesTiles3D_getAmplitudeRate(lua_State* tolua_S) int lua_cocos2dx_WavesTiles3D_setAmplitude(lua_State* tolua_S) { int argc = 0; - cocos2d::WavesTiles3D* cobj = nullptr; + axis::WavesTiles3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -49674,7 +49674,7 @@ int lua_cocos2dx_WavesTiles3D_setAmplitude(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.WavesTiles3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::WavesTiles3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::WavesTiles3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -49727,7 +49727,7 @@ int lua_cocos2dx_WavesTiles3D_create(lua_State* tolua_S) if (argc == 4) { double arg0; - cocos2d::Vec2 arg1; + axis::Vec2 arg1; unsigned int arg2; double arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.WavesTiles3D:create"); @@ -49739,8 +49739,8 @@ int lua_cocos2dx_WavesTiles3D_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_WavesTiles3D_create'", nullptr); return 0; } - cocos2d::WavesTiles3D* ret = cocos2d::WavesTiles3D::create(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.WavesTiles3D",(cocos2d::WavesTiles3D*)ret); + axis::WavesTiles3D* ret = axis::WavesTiles3D::create(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.WavesTiles3D",(axis::WavesTiles3D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.WavesTiles3D:create",argc, 4); @@ -49754,7 +49754,7 @@ int lua_cocos2dx_WavesTiles3D_create(lua_State* tolua_S) int lua_cocos2dx_WavesTiles3D_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::WavesTiles3D* cobj = nullptr; + axis::WavesTiles3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -49771,7 +49771,7 @@ int lua_cocos2dx_WavesTiles3D_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_WavesTiles3D_constructor'", nullptr); return 0; } - cobj = new cocos2d::WavesTiles3D(); + cobj = new axis::WavesTiles3D(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -49808,7 +49808,7 @@ int lua_register_cocos2dx_WavesTiles3D(lua_State* tolua_S) tolua_function(tolua_S,"setAmplitude",lua_cocos2dx_WavesTiles3D_setAmplitude); tolua_function(tolua_S,"create", lua_cocos2dx_WavesTiles3D_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::WavesTiles3D).name(); // rtti is literal storage + auto typeName = typeid(axis::WavesTiles3D).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.WavesTiles3D"; g_typeCast[typeName] = "cc.WavesTiles3D"; return 1; @@ -49817,7 +49817,7 @@ int lua_register_cocos2dx_WavesTiles3D(lua_State* tolua_S) int lua_cocos2dx_JumpTiles3D_setAmplitudeRate(lua_State* tolua_S) { int argc = 0; - cocos2d::JumpTiles3D* cobj = nullptr; + axis::JumpTiles3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -49829,7 +49829,7 @@ int lua_cocos2dx_JumpTiles3D_setAmplitudeRate(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.JumpTiles3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::JumpTiles3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::JumpTiles3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -49867,7 +49867,7 @@ int lua_cocos2dx_JumpTiles3D_setAmplitudeRate(lua_State* tolua_S) int lua_cocos2dx_JumpTiles3D_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::JumpTiles3D* cobj = nullptr; + axis::JumpTiles3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -49879,7 +49879,7 @@ int lua_cocos2dx_JumpTiles3D_initWithDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.JumpTiles3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::JumpTiles3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::JumpTiles3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -49893,7 +49893,7 @@ int lua_cocos2dx_JumpTiles3D_initWithDuration(lua_State* tolua_S) if (argc == 4) { double arg0; - cocos2d::Vec2 arg1; + axis::Vec2 arg1; unsigned int arg2; double arg3; @@ -49926,7 +49926,7 @@ int lua_cocos2dx_JumpTiles3D_initWithDuration(lua_State* tolua_S) int lua_cocos2dx_JumpTiles3D_getAmplitude(lua_State* tolua_S) { int argc = 0; - cocos2d::JumpTiles3D* cobj = nullptr; + axis::JumpTiles3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -49938,7 +49938,7 @@ int lua_cocos2dx_JumpTiles3D_getAmplitude(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.JumpTiles3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::JumpTiles3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::JumpTiles3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -49973,7 +49973,7 @@ int lua_cocos2dx_JumpTiles3D_getAmplitude(lua_State* tolua_S) int lua_cocos2dx_JumpTiles3D_getAmplitudeRate(lua_State* tolua_S) { int argc = 0; - cocos2d::JumpTiles3D* cobj = nullptr; + axis::JumpTiles3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -49985,7 +49985,7 @@ int lua_cocos2dx_JumpTiles3D_getAmplitudeRate(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.JumpTiles3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::JumpTiles3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::JumpTiles3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -50020,7 +50020,7 @@ int lua_cocos2dx_JumpTiles3D_getAmplitudeRate(lua_State* tolua_S) int lua_cocos2dx_JumpTiles3D_setAmplitude(lua_State* tolua_S) { int argc = 0; - cocos2d::JumpTiles3D* cobj = nullptr; + axis::JumpTiles3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -50032,7 +50032,7 @@ int lua_cocos2dx_JumpTiles3D_setAmplitude(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.JumpTiles3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::JumpTiles3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::JumpTiles3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -50085,7 +50085,7 @@ int lua_cocos2dx_JumpTiles3D_create(lua_State* tolua_S) if (argc == 4) { double arg0; - cocos2d::Vec2 arg1; + axis::Vec2 arg1; unsigned int arg2; double arg3; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.JumpTiles3D:create"); @@ -50097,8 +50097,8 @@ int lua_cocos2dx_JumpTiles3D_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_JumpTiles3D_create'", nullptr); return 0; } - cocos2d::JumpTiles3D* ret = cocos2d::JumpTiles3D::create(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.JumpTiles3D",(cocos2d::JumpTiles3D*)ret); + axis::JumpTiles3D* ret = axis::JumpTiles3D::create(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.JumpTiles3D",(axis::JumpTiles3D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.JumpTiles3D:create",argc, 4); @@ -50112,7 +50112,7 @@ int lua_cocos2dx_JumpTiles3D_create(lua_State* tolua_S) int lua_cocos2dx_JumpTiles3D_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::JumpTiles3D* cobj = nullptr; + axis::JumpTiles3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -50129,7 +50129,7 @@ int lua_cocos2dx_JumpTiles3D_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_JumpTiles3D_constructor'", nullptr); return 0; } - cobj = new cocos2d::JumpTiles3D(); + cobj = new axis::JumpTiles3D(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -50166,7 +50166,7 @@ int lua_register_cocos2dx_JumpTiles3D(lua_State* tolua_S) tolua_function(tolua_S,"setAmplitude",lua_cocos2dx_JumpTiles3D_setAmplitude); tolua_function(tolua_S,"create", lua_cocos2dx_JumpTiles3D_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::JumpTiles3D).name(); // rtti is literal storage + auto typeName = typeid(axis::JumpTiles3D).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.JumpTiles3D"; g_typeCast[typeName] = "cc.JumpTiles3D"; return 1; @@ -50175,7 +50175,7 @@ int lua_register_cocos2dx_JumpTiles3D(lua_State* tolua_S) int lua_cocos2dx_SplitRows_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::SplitRows* cobj = nullptr; + axis::SplitRows* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -50187,7 +50187,7 @@ int lua_cocos2dx_SplitRows_initWithDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SplitRows",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SplitRows*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SplitRows*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -50251,8 +50251,8 @@ int lua_cocos2dx_SplitRows_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SplitRows_create'", nullptr); return 0; } - cocos2d::SplitRows* ret = cocos2d::SplitRows::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.SplitRows",(cocos2d::SplitRows*)ret); + axis::SplitRows* ret = axis::SplitRows::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.SplitRows",(axis::SplitRows*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.SplitRows:create",argc, 2); @@ -50266,7 +50266,7 @@ int lua_cocos2dx_SplitRows_create(lua_State* tolua_S) int lua_cocos2dx_SplitRows_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::SplitRows* cobj = nullptr; + axis::SplitRows* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -50283,7 +50283,7 @@ int lua_cocos2dx_SplitRows_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SplitRows_constructor'", nullptr); return 0; } - cobj = new cocos2d::SplitRows(); + cobj = new axis::SplitRows(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -50316,7 +50316,7 @@ int lua_register_cocos2dx_SplitRows(lua_State* tolua_S) tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_SplitRows_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_SplitRows_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::SplitRows).name(); // rtti is literal storage + auto typeName = typeid(axis::SplitRows).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.SplitRows"; g_typeCast[typeName] = "cc.SplitRows"; return 1; @@ -50325,7 +50325,7 @@ int lua_register_cocos2dx_SplitRows(lua_State* tolua_S) int lua_cocos2dx_SplitCols_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::SplitCols* cobj = nullptr; + axis::SplitCols* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -50337,7 +50337,7 @@ int lua_cocos2dx_SplitCols_initWithDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SplitCols",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SplitCols*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SplitCols*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -50401,8 +50401,8 @@ int lua_cocos2dx_SplitCols_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SplitCols_create'", nullptr); return 0; } - cocos2d::SplitCols* ret = cocos2d::SplitCols::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.SplitCols",(cocos2d::SplitCols*)ret); + axis::SplitCols* ret = axis::SplitCols::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.SplitCols",(axis::SplitCols*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.SplitCols:create",argc, 2); @@ -50416,7 +50416,7 @@ int lua_cocos2dx_SplitCols_create(lua_State* tolua_S) int lua_cocos2dx_SplitCols_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::SplitCols* cobj = nullptr; + axis::SplitCols* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -50433,7 +50433,7 @@ int lua_cocos2dx_SplitCols_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SplitCols_constructor'", nullptr); return 0; } - cobj = new cocos2d::SplitCols(); + cobj = new axis::SplitCols(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -50466,7 +50466,7 @@ int lua_register_cocos2dx_SplitCols(lua_State* tolua_S) tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_SplitCols_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_SplitCols_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::SplitCols).name(); // rtti is literal storage + auto typeName = typeid(axis::SplitCols).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.SplitCols"; g_typeCast[typeName] = "cc.SplitCols"; return 1; @@ -50475,7 +50475,7 @@ int lua_register_cocos2dx_SplitCols(lua_State* tolua_S) int lua_cocos2dx_ActionTween_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::ActionTween* cobj = nullptr; + axis::ActionTween* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -50487,7 +50487,7 @@ int lua_cocos2dx_ActionTween_initWithDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ActionTween",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ActionTween*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ActionTween*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -50561,8 +50561,8 @@ int lua_cocos2dx_ActionTween_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ActionTween_create'", nullptr); return 0; } - cocos2d::ActionTween* ret = cocos2d::ActionTween::create(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.ActionTween",(cocos2d::ActionTween*)ret); + axis::ActionTween* ret = axis::ActionTween::create(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.ActionTween",(axis::ActionTween*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ActionTween:create",argc, 4); @@ -50588,7 +50588,7 @@ int lua_register_cocos2dx_ActionTween(lua_State* tolua_S) tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_ActionTween_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_ActionTween_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ActionTween).name(); // rtti is literal storage + auto typeName = typeid(axis::ActionTween).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.ActionTween"; g_typeCast[typeName] = "cc.ActionTween"; return 1; @@ -50597,7 +50597,7 @@ int lua_register_cocos2dx_ActionTween(lua_State* tolua_S) int lua_cocos2dx_AtlasNode_getBlendFunc(lua_State* tolua_S) { int argc = 0; - cocos2d::AtlasNode* cobj = nullptr; + axis::AtlasNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -50609,7 +50609,7 @@ int lua_cocos2dx_AtlasNode_getBlendFunc(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.AtlasNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::AtlasNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::AtlasNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -50627,7 +50627,7 @@ int lua_cocos2dx_AtlasNode_getBlendFunc(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AtlasNode_getBlendFunc'", nullptr); return 0; } - const cocos2d::BlendFunc& ret = cobj->getBlendFunc(); + const axis::BlendFunc& ret = cobj->getBlendFunc(); blendfunc_to_luaval(tolua_S, ret); return 1; } @@ -50644,7 +50644,7 @@ int lua_cocos2dx_AtlasNode_getBlendFunc(lua_State* tolua_S) int lua_cocos2dx_AtlasNode_initWithTileFile(lua_State* tolua_S) { int argc = 0; - cocos2d::AtlasNode* cobj = nullptr; + axis::AtlasNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -50656,7 +50656,7 @@ int lua_cocos2dx_AtlasNode_initWithTileFile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.AtlasNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::AtlasNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::AtlasNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -50703,7 +50703,7 @@ int lua_cocos2dx_AtlasNode_initWithTileFile(lua_State* tolua_S) int lua_cocos2dx_AtlasNode_setBlendFunc(lua_State* tolua_S) { int argc = 0; - cocos2d::AtlasNode* cobj = nullptr; + axis::AtlasNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -50715,7 +50715,7 @@ int lua_cocos2dx_AtlasNode_setBlendFunc(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.AtlasNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::AtlasNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::AtlasNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -50728,7 +50728,7 @@ int lua_cocos2dx_AtlasNode_setBlendFunc(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::BlendFunc arg0; + axis::BlendFunc arg0; ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "cc.AtlasNode:setBlendFunc"); if(!ok) @@ -50753,7 +50753,7 @@ int lua_cocos2dx_AtlasNode_setBlendFunc(lua_State* tolua_S) int lua_cocos2dx_AtlasNode_setTextureAtlas(lua_State* tolua_S) { int argc = 0; - cocos2d::AtlasNode* cobj = nullptr; + axis::AtlasNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -50765,7 +50765,7 @@ int lua_cocos2dx_AtlasNode_setTextureAtlas(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.AtlasNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::AtlasNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::AtlasNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -50778,9 +50778,9 @@ int lua_cocos2dx_AtlasNode_setTextureAtlas(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::TextureAtlas* arg0; + axis::TextureAtlas* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.TextureAtlas",&arg0, "cc.AtlasNode:setTextureAtlas"); + ok &= luaval_to_object(tolua_S, 2, "cc.TextureAtlas",&arg0, "cc.AtlasNode:setTextureAtlas"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AtlasNode_setTextureAtlas'", nullptr); @@ -50803,7 +50803,7 @@ int lua_cocos2dx_AtlasNode_setTextureAtlas(lua_State* tolua_S) int lua_cocos2dx_AtlasNode_getTexture(lua_State* tolua_S) { int argc = 0; - cocos2d::AtlasNode* cobj = nullptr; + axis::AtlasNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -50815,7 +50815,7 @@ int lua_cocos2dx_AtlasNode_getTexture(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.AtlasNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::AtlasNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::AtlasNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -50833,8 +50833,8 @@ int lua_cocos2dx_AtlasNode_getTexture(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AtlasNode_getTexture'", nullptr); return 0; } - cocos2d::Texture2D* ret = cobj->getTexture(); - object_to_luaval(tolua_S, "cc.Texture2D",(cocos2d::Texture2D*)ret); + axis::Texture2D* ret = cobj->getTexture(); + object_to_luaval(tolua_S, "cc.Texture2D",(axis::Texture2D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AtlasNode:getTexture",argc, 0); @@ -50850,7 +50850,7 @@ int lua_cocos2dx_AtlasNode_getTexture(lua_State* tolua_S) int lua_cocos2dx_AtlasNode_getTextureAtlas(lua_State* tolua_S) { int argc = 0; - cocos2d::AtlasNode* cobj = nullptr; + axis::AtlasNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -50862,7 +50862,7 @@ int lua_cocos2dx_AtlasNode_getTextureAtlas(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.AtlasNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::AtlasNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::AtlasNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -50880,8 +50880,8 @@ int lua_cocos2dx_AtlasNode_getTextureAtlas(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AtlasNode_getTextureAtlas'", nullptr); return 0; } - cocos2d::TextureAtlas* ret = cobj->getTextureAtlas(); - object_to_luaval(tolua_S, "cc.TextureAtlas",(cocos2d::TextureAtlas*)ret); + axis::TextureAtlas* ret = cobj->getTextureAtlas(); + object_to_luaval(tolua_S, "cc.TextureAtlas",(axis::TextureAtlas*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AtlasNode:getTextureAtlas",argc, 0); @@ -50897,7 +50897,7 @@ int lua_cocos2dx_AtlasNode_getTextureAtlas(lua_State* tolua_S) int lua_cocos2dx_AtlasNode_updateAtlasValues(lua_State* tolua_S) { int argc = 0; - cocos2d::AtlasNode* cobj = nullptr; + axis::AtlasNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -50909,7 +50909,7 @@ int lua_cocos2dx_AtlasNode_updateAtlasValues(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.AtlasNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::AtlasNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::AtlasNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -50944,7 +50944,7 @@ int lua_cocos2dx_AtlasNode_updateAtlasValues(lua_State* tolua_S) int lua_cocos2dx_AtlasNode_setTexture(lua_State* tolua_S) { int argc = 0; - cocos2d::AtlasNode* cobj = nullptr; + axis::AtlasNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -50956,7 +50956,7 @@ int lua_cocos2dx_AtlasNode_setTexture(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.AtlasNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::AtlasNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::AtlasNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -50969,9 +50969,9 @@ int lua_cocos2dx_AtlasNode_setTexture(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Texture2D* arg0; + axis::Texture2D* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.AtlasNode:setTexture"); + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.AtlasNode:setTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AtlasNode_setTexture'", nullptr); @@ -50994,7 +50994,7 @@ int lua_cocos2dx_AtlasNode_setTexture(lua_State* tolua_S) int lua_cocos2dx_AtlasNode_initWithTexture(lua_State* tolua_S) { int argc = 0; - cocos2d::AtlasNode* cobj = nullptr; + axis::AtlasNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -51006,7 +51006,7 @@ int lua_cocos2dx_AtlasNode_initWithTexture(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.AtlasNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::AtlasNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::AtlasNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -51019,12 +51019,12 @@ int lua_cocos2dx_AtlasNode_initWithTexture(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 4) { - cocos2d::Texture2D* arg0; + axis::Texture2D* arg0; int arg1; int arg2; int arg3; - ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.AtlasNode:initWithTexture"); + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.AtlasNode:initWithTexture"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.AtlasNode:initWithTexture"); @@ -51053,7 +51053,7 @@ int lua_cocos2dx_AtlasNode_initWithTexture(lua_State* tolua_S) int lua_cocos2dx_AtlasNode_getQuadsToDraw(lua_State* tolua_S) { int argc = 0; - cocos2d::AtlasNode* cobj = nullptr; + axis::AtlasNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -51065,7 +51065,7 @@ int lua_cocos2dx_AtlasNode_getQuadsToDraw(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.AtlasNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::AtlasNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::AtlasNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -51100,7 +51100,7 @@ int lua_cocos2dx_AtlasNode_getQuadsToDraw(lua_State* tolua_S) int lua_cocos2dx_AtlasNode_setQuadsToDraw(lua_State* tolua_S) { int argc = 0; - cocos2d::AtlasNode* cobj = nullptr; + axis::AtlasNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -51112,7 +51112,7 @@ int lua_cocos2dx_AtlasNode_setQuadsToDraw(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.AtlasNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::AtlasNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::AtlasNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -51177,8 +51177,8 @@ int lua_cocos2dx_AtlasNode_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AtlasNode_create'", nullptr); return 0; } - cocos2d::AtlasNode* ret = cocos2d::AtlasNode::create(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.AtlasNode",(cocos2d::AtlasNode*)ret); + axis::AtlasNode* ret = axis::AtlasNode::create(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.AtlasNode",(axis::AtlasNode*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.AtlasNode:create",argc, 4); @@ -51192,7 +51192,7 @@ int lua_cocos2dx_AtlasNode_create(lua_State* tolua_S) int lua_cocos2dx_AtlasNode_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::AtlasNode* cobj = nullptr; + axis::AtlasNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -51209,7 +51209,7 @@ int lua_cocos2dx_AtlasNode_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AtlasNode_constructor'", nullptr); return 0; } - cobj = new cocos2d::AtlasNode(); + cobj = new axis::AtlasNode(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -51252,7 +51252,7 @@ int lua_register_cocos2dx_AtlasNode(lua_State* tolua_S) tolua_function(tolua_S,"setQuadsToDraw",lua_cocos2dx_AtlasNode_setQuadsToDraw); tolua_function(tolua_S,"create", lua_cocos2dx_AtlasNode_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::AtlasNode).name(); // rtti is literal storage + auto typeName = typeid(axis::AtlasNode).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.AtlasNode"; g_typeCast[typeName] = "cc.AtlasNode"; return 1; @@ -51261,7 +51261,7 @@ int lua_register_cocos2dx_AtlasNode(lua_State* tolua_S) int lua_cocos2dx_ClippingNode_hasContent(lua_State* tolua_S) { int argc = 0; - cocos2d::ClippingNode* cobj = nullptr; + axis::ClippingNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -51273,7 +51273,7 @@ int lua_cocos2dx_ClippingNode_hasContent(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ClippingNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ClippingNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ClippingNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -51308,7 +51308,7 @@ int lua_cocos2dx_ClippingNode_hasContent(lua_State* tolua_S) int lua_cocos2dx_ClippingNode_setInverted(lua_State* tolua_S) { int argc = 0; - cocos2d::ClippingNode* cobj = nullptr; + axis::ClippingNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -51320,7 +51320,7 @@ int lua_cocos2dx_ClippingNode_setInverted(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ClippingNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ClippingNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ClippingNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -51358,7 +51358,7 @@ int lua_cocos2dx_ClippingNode_setInverted(lua_State* tolua_S) int lua_cocos2dx_ClippingNode_setStencil(lua_State* tolua_S) { int argc = 0; - cocos2d::ClippingNode* cobj = nullptr; + axis::ClippingNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -51370,7 +51370,7 @@ int lua_cocos2dx_ClippingNode_setStencil(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ClippingNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ClippingNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ClippingNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -51383,9 +51383,9 @@ int lua_cocos2dx_ClippingNode_setStencil(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Node* arg0; + axis::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.ClippingNode:setStencil"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.ClippingNode:setStencil"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ClippingNode_setStencil'", nullptr); @@ -51408,7 +51408,7 @@ int lua_cocos2dx_ClippingNode_setStencil(lua_State* tolua_S) int lua_cocos2dx_ClippingNode_getAlphaThreshold(lua_State* tolua_S) { int argc = 0; - cocos2d::ClippingNode* cobj = nullptr; + axis::ClippingNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -51420,7 +51420,7 @@ int lua_cocos2dx_ClippingNode_getAlphaThreshold(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ClippingNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ClippingNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ClippingNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -51455,7 +51455,7 @@ int lua_cocos2dx_ClippingNode_getAlphaThreshold(lua_State* tolua_S) int lua_cocos2dx_ClippingNode_init(lua_State* tolua_S) { int argc = 0; - cocos2d::ClippingNode* cobj = nullptr; + axis::ClippingNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -51467,7 +51467,7 @@ int lua_cocos2dx_ClippingNode_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ClippingNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ClippingNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ClippingNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -51480,9 +51480,9 @@ int lua_cocos2dx_ClippingNode_init(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Node* arg0; + axis::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.ClippingNode:init"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.ClippingNode:init"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ClippingNode_init'", nullptr); @@ -51505,7 +51505,7 @@ int lua_cocos2dx_ClippingNode_init(lua_State* tolua_S) int lua_cocos2dx_ClippingNode_getStencil(lua_State* tolua_S) { int argc = 0; - cocos2d::ClippingNode* cobj = nullptr; + axis::ClippingNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -51517,7 +51517,7 @@ int lua_cocos2dx_ClippingNode_getStencil(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ClippingNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ClippingNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ClippingNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -51535,8 +51535,8 @@ int lua_cocos2dx_ClippingNode_getStencil(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ClippingNode_getStencil'", nullptr); return 0; } - cocos2d::Node* ret = cobj->getStencil(); - object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + axis::Node* ret = cobj->getStencil(); + object_to_luaval(tolua_S, "cc.Node",(axis::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ClippingNode:getStencil",argc, 0); @@ -51552,7 +51552,7 @@ int lua_cocos2dx_ClippingNode_getStencil(lua_State* tolua_S) int lua_cocos2dx_ClippingNode_setAlphaThreshold(lua_State* tolua_S) { int argc = 0; - cocos2d::ClippingNode* cobj = nullptr; + axis::ClippingNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -51564,7 +51564,7 @@ int lua_cocos2dx_ClippingNode_setAlphaThreshold(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ClippingNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ClippingNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ClippingNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -51602,7 +51602,7 @@ int lua_cocos2dx_ClippingNode_setAlphaThreshold(lua_State* tolua_S) int lua_cocos2dx_ClippingNode_isInverted(lua_State* tolua_S) { int argc = 0; - cocos2d::ClippingNode* cobj = nullptr; + axis::ClippingNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -51614,7 +51614,7 @@ int lua_cocos2dx_ClippingNode_isInverted(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ClippingNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ClippingNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ClippingNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -51664,11 +51664,11 @@ int lua_cocos2dx_ClippingNode_create(lua_State* tolua_S) { if (argc == 1) { - cocos2d::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.ClippingNode:create"); + axis::Node* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.ClippingNode:create"); if (!ok) { break; } - cocos2d::ClippingNode* ret = cocos2d::ClippingNode::create(arg0); - object_to_luaval(tolua_S, "cc.ClippingNode",(cocos2d::ClippingNode*)ret); + axis::ClippingNode* ret = axis::ClippingNode::create(arg0); + object_to_luaval(tolua_S, "cc.ClippingNode",(axis::ClippingNode*)ret); return 1; } } while (0); @@ -51677,8 +51677,8 @@ int lua_cocos2dx_ClippingNode_create(lua_State* tolua_S) { if (argc == 0) { - cocos2d::ClippingNode* ret = cocos2d::ClippingNode::create(); - object_to_luaval(tolua_S, "cc.ClippingNode",(cocos2d::ClippingNode*)ret); + axis::ClippingNode* ret = axis::ClippingNode::create(); + object_to_luaval(tolua_S, "cc.ClippingNode",(axis::ClippingNode*)ret); return 1; } } while (0); @@ -51713,7 +51713,7 @@ int lua_register_cocos2dx_ClippingNode(lua_State* tolua_S) tolua_function(tolua_S,"isInverted",lua_cocos2dx_ClippingNode_isInverted); tolua_function(tolua_S,"create", lua_cocos2dx_ClippingNode_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ClippingNode).name(); // rtti is literal storage + auto typeName = typeid(axis::ClippingNode).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.ClippingNode"; g_typeCast[typeName] = "cc.ClippingNode"; return 1; @@ -51722,7 +51722,7 @@ int lua_register_cocos2dx_ClippingNode(lua_State* tolua_S) int lua_cocos2dx_ClippingRectangleNode_isClippingEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ClippingRectangleNode* cobj = nullptr; + axis::ClippingRectangleNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -51734,7 +51734,7 @@ int lua_cocos2dx_ClippingRectangleNode_isClippingEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ClippingRectangleNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ClippingRectangleNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ClippingRectangleNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -51769,7 +51769,7 @@ int lua_cocos2dx_ClippingRectangleNode_isClippingEnabled(lua_State* tolua_S) int lua_cocos2dx_ClippingRectangleNode_setClippingEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ClippingRectangleNode* cobj = nullptr; + axis::ClippingRectangleNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -51781,7 +51781,7 @@ int lua_cocos2dx_ClippingRectangleNode_setClippingEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ClippingRectangleNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ClippingRectangleNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ClippingRectangleNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -51819,7 +51819,7 @@ int lua_cocos2dx_ClippingRectangleNode_setClippingEnabled(lua_State* tolua_S) int lua_cocos2dx_ClippingRectangleNode_getClippingRegion(lua_State* tolua_S) { int argc = 0; - cocos2d::ClippingRectangleNode* cobj = nullptr; + axis::ClippingRectangleNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -51831,7 +51831,7 @@ int lua_cocos2dx_ClippingRectangleNode_getClippingRegion(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ClippingRectangleNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ClippingRectangleNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ClippingRectangleNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -51849,7 +51849,7 @@ int lua_cocos2dx_ClippingRectangleNode_getClippingRegion(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ClippingRectangleNode_getClippingRegion'", nullptr); return 0; } - const cocos2d::Rect& ret = cobj->getClippingRegion(); + const axis::Rect& ret = cobj->getClippingRegion(); rect_to_luaval(tolua_S, ret); return 1; } @@ -51866,7 +51866,7 @@ int lua_cocos2dx_ClippingRectangleNode_getClippingRegion(lua_State* tolua_S) int lua_cocos2dx_ClippingRectangleNode_setClippingRegion(lua_State* tolua_S) { int argc = 0; - cocos2d::ClippingRectangleNode* cobj = nullptr; + axis::ClippingRectangleNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -51878,7 +51878,7 @@ int lua_cocos2dx_ClippingRectangleNode_setClippingRegion(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ClippingRectangleNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ClippingRectangleNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ClippingRectangleNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -51891,7 +51891,7 @@ int lua_cocos2dx_ClippingRectangleNode_setClippingRegion(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Rect arg0; + axis::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "cc.ClippingRectangleNode:setClippingRegion"); if(!ok) @@ -51931,8 +51931,8 @@ int lua_cocos2dx_ClippingRectangleNode_create(lua_State* tolua_S) { if (argc == 0) { - cocos2d::ClippingRectangleNode* ret = cocos2d::ClippingRectangleNode::create(); - object_to_luaval(tolua_S, "cc.ClippingRectangleNode",(cocos2d::ClippingRectangleNode*)ret); + axis::ClippingRectangleNode* ret = axis::ClippingRectangleNode::create(); + object_to_luaval(tolua_S, "cc.ClippingRectangleNode",(axis::ClippingRectangleNode*)ret); return 1; } } while (0); @@ -51941,11 +51941,11 @@ int lua_cocos2dx_ClippingRectangleNode_create(lua_State* tolua_S) { if (argc == 1) { - cocos2d::Rect arg0; + axis::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "cc.ClippingRectangleNode:create"); if (!ok) { break; } - cocos2d::ClippingRectangleNode* ret = cocos2d::ClippingRectangleNode::create(arg0); - object_to_luaval(tolua_S, "cc.ClippingRectangleNode",(cocos2d::ClippingRectangleNode*)ret); + axis::ClippingRectangleNode* ret = axis::ClippingRectangleNode::create(arg0); + object_to_luaval(tolua_S, "cc.ClippingRectangleNode",(axis::ClippingRectangleNode*)ret); return 1; } } while (0); @@ -51976,7 +51976,7 @@ int lua_register_cocos2dx_ClippingRectangleNode(lua_State* tolua_S) tolua_function(tolua_S,"setClippingRegion",lua_cocos2dx_ClippingRectangleNode_setClippingRegion); tolua_function(tolua_S,"create", lua_cocos2dx_ClippingRectangleNode_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ClippingRectangleNode).name(); // rtti is literal storage + auto typeName = typeid(axis::ClippingRectangleNode).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.ClippingRectangleNode"; g_typeCast[typeName] = "cc.ClippingRectangleNode"; return 1; @@ -51985,7 +51985,7 @@ int lua_register_cocos2dx_ClippingRectangleNode(lua_State* tolua_S) int lua_cocos2dx_DrawNode_drawLine(lua_State* tolua_S) { int argc = 0; - cocos2d::DrawNode* cobj = nullptr; + axis::DrawNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -51997,7 +51997,7 @@ int lua_cocos2dx_DrawNode_drawLine(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::DrawNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -52010,9 +52010,9 @@ int lua_cocos2dx_DrawNode_drawLine(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 3) { - cocos2d::Vec2 arg0; - cocos2d::Vec2 arg1; - cocos2d::Color4B arg2; + axis::Vec2 arg0; + axis::Vec2 arg1; + axis::Color4B arg2; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawLine"); @@ -52041,7 +52041,7 @@ int lua_cocos2dx_DrawNode_drawLine(lua_State* tolua_S) int lua_cocos2dx_DrawNode_setIsolated(lua_State* tolua_S) { int argc = 0; - cocos2d::DrawNode* cobj = nullptr; + axis::DrawNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -52053,7 +52053,7 @@ int lua_cocos2dx_DrawNode_setIsolated(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::DrawNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -52091,7 +52091,7 @@ int lua_cocos2dx_DrawNode_setIsolated(lua_State* tolua_S) int lua_cocos2dx_DrawNode_drawRect(lua_State* tolua_S) { int argc = 0; - cocos2d::DrawNode* cobj = nullptr; + axis::DrawNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -52100,7 +52100,7 @@ int lua_cocos2dx_DrawNode_drawRect(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::DrawNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -52111,23 +52111,23 @@ int lua_cocos2dx_DrawNode_drawRect(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 5) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawRect"); if (!ok) { break; } - cocos2d::Vec2 arg1; + axis::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.DrawNode:drawRect"); if (!ok) { break; } - cocos2d::Vec2 arg2; + axis::Vec2 arg2; ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.DrawNode:drawRect"); if (!ok) { break; } - cocos2d::Vec2 arg3; + axis::Vec2 arg3; ok &= luaval_to_vec2(tolua_S, 5, &arg3, "cc.DrawNode:drawRect"); if (!ok) { break; } - cocos2d::Color4B arg4; + axis::Color4B arg4; ok &=luaval_to_color4b(tolua_S, 6, &arg4, "cc.DrawNode:drawRect"); if (!ok) { break; } @@ -52139,15 +52139,15 @@ int lua_cocos2dx_DrawNode_drawRect(lua_State* tolua_S) ok = true; do{ if (argc == 3) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawRect"); if (!ok) { break; } - cocos2d::Vec2 arg1; + axis::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.DrawNode:drawRect"); if (!ok) { break; } - cocos2d::Color4B arg2; + axis::Color4B arg2; ok &=luaval_to_color4b(tolua_S, 4, &arg2, "cc.DrawNode:drawRect"); if (!ok) { break; } @@ -52170,7 +52170,7 @@ int lua_cocos2dx_DrawNode_drawRect(lua_State* tolua_S) int lua_cocos2dx_DrawNode_drawSolidCircle(lua_State* tolua_S) { int argc = 0; - cocos2d::DrawNode* cobj = nullptr; + axis::DrawNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -52179,7 +52179,7 @@ int lua_cocos2dx_DrawNode_drawSolidCircle(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::DrawNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -52190,7 +52190,7 @@ int lua_cocos2dx_DrawNode_drawSolidCircle(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 7) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawSolidCircle"); if (!ok) { break; } @@ -52214,7 +52214,7 @@ int lua_cocos2dx_DrawNode_drawSolidCircle(lua_State* tolua_S) ok &= luaval_to_number(tolua_S, 7,&arg5, "cc.DrawNode:drawSolidCircle"); if (!ok) { break; } - cocos2d::Color4B arg6; + axis::Color4B arg6; ok &=luaval_to_color4b(tolua_S, 8, &arg6, "cc.DrawNode:drawSolidCircle"); if (!ok) { break; } @@ -52226,7 +52226,7 @@ int lua_cocos2dx_DrawNode_drawSolidCircle(lua_State* tolua_S) ok = true; do{ if (argc == 9) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawSolidCircle"); if (!ok) { break; } @@ -52250,7 +52250,7 @@ int lua_cocos2dx_DrawNode_drawSolidCircle(lua_State* tolua_S) ok &= luaval_to_number(tolua_S, 7,&arg5, "cc.DrawNode:drawSolidCircle"); if (!ok) { break; } - cocos2d::Color4B arg6; + axis::Color4B arg6; ok &=luaval_to_color4b(tolua_S, 8, &arg6, "cc.DrawNode:drawSolidCircle"); if (!ok) { break; } @@ -52258,7 +52258,7 @@ int lua_cocos2dx_DrawNode_drawSolidCircle(lua_State* tolua_S) ok &= luaval_to_number(tolua_S, 9,&arg7, "cc.DrawNode:drawSolidCircle"); if (!ok) { break; } - cocos2d::Color4B arg8; + axis::Color4B arg8; ok &=luaval_to_color4b(tolua_S, 10, &arg8, "cc.DrawNode:drawSolidCircle"); if (!ok) { break; } @@ -52270,7 +52270,7 @@ int lua_cocos2dx_DrawNode_drawSolidCircle(lua_State* tolua_S) ok = true; do{ if (argc == 5) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawSolidCircle"); if (!ok) { break; } @@ -52286,7 +52286,7 @@ int lua_cocos2dx_DrawNode_drawSolidCircle(lua_State* tolua_S) ok &= luaval_to_uint32(tolua_S, 5,&arg3, "cc.DrawNode:drawSolidCircle"); if (!ok) { break; } - cocos2d::Color4B arg4; + axis::Color4B arg4; ok &=luaval_to_color4b(tolua_S, 6, &arg4, "cc.DrawNode:drawSolidCircle"); if (!ok) { break; } @@ -52309,7 +52309,7 @@ int lua_cocos2dx_DrawNode_drawSolidCircle(lua_State* tolua_S) int lua_cocos2dx_DrawNode_setLineWidth(lua_State* tolua_S) { int argc = 0; - cocos2d::DrawNode* cobj = nullptr; + axis::DrawNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -52321,7 +52321,7 @@ int lua_cocos2dx_DrawNode_setLineWidth(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::DrawNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -52359,7 +52359,7 @@ int lua_cocos2dx_DrawNode_setLineWidth(lua_State* tolua_S) int lua_cocos2dx_DrawNode_drawDot(lua_State* tolua_S) { int argc = 0; - cocos2d::DrawNode* cobj = nullptr; + axis::DrawNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -52371,7 +52371,7 @@ int lua_cocos2dx_DrawNode_drawDot(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::DrawNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -52384,9 +52384,9 @@ int lua_cocos2dx_DrawNode_drawDot(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 3) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; double arg1; - cocos2d::Color4B arg2; + axis::Color4B arg2; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawDot"); @@ -52415,7 +52415,7 @@ int lua_cocos2dx_DrawNode_drawDot(lua_State* tolua_S) int lua_cocos2dx_DrawNode_drawSegment(lua_State* tolua_S) { int argc = 0; - cocos2d::DrawNode* cobj = nullptr; + axis::DrawNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -52427,7 +52427,7 @@ int lua_cocos2dx_DrawNode_drawSegment(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::DrawNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -52440,10 +52440,10 @@ int lua_cocos2dx_DrawNode_drawSegment(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 4) { - cocos2d::Vec2 arg0; - cocos2d::Vec2 arg1; + axis::Vec2 arg0; + axis::Vec2 arg1; double arg2; - cocos2d::Color4B arg3; + axis::Color4B arg3; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawSegment"); @@ -52474,7 +52474,7 @@ int lua_cocos2dx_DrawNode_drawSegment(lua_State* tolua_S) int lua_cocos2dx_DrawNode_getBlendFunc(lua_State* tolua_S) { int argc = 0; - cocos2d::DrawNode* cobj = nullptr; + axis::DrawNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -52486,7 +52486,7 @@ int lua_cocos2dx_DrawNode_getBlendFunc(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::DrawNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -52504,7 +52504,7 @@ int lua_cocos2dx_DrawNode_getBlendFunc(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_DrawNode_getBlendFunc'", nullptr); return 0; } - const cocos2d::BlendFunc& ret = cobj->getBlendFunc(); + const axis::BlendFunc& ret = cobj->getBlendFunc(); blendfunc_to_luaval(tolua_S, ret); return 1; } @@ -52521,7 +52521,7 @@ int lua_cocos2dx_DrawNode_getBlendFunc(lua_State* tolua_S) int lua_cocos2dx_DrawNode_drawCircle(lua_State* tolua_S) { int argc = 0; - cocos2d::DrawNode* cobj = nullptr; + axis::DrawNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -52530,7 +52530,7 @@ int lua_cocos2dx_DrawNode_drawCircle(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::DrawNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -52541,7 +52541,7 @@ int lua_cocos2dx_DrawNode_drawCircle(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 6) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawCircle"); if (!ok) { break; } @@ -52561,7 +52561,7 @@ int lua_cocos2dx_DrawNode_drawCircle(lua_State* tolua_S) ok &= luaval_to_boolean(tolua_S, 6,&arg4, "cc.DrawNode:drawCircle"); if (!ok) { break; } - cocos2d::Color4B arg5; + axis::Color4B arg5; ok &=luaval_to_color4b(tolua_S, 7, &arg5, "cc.DrawNode:drawCircle"); if (!ok) { break; } @@ -52573,7 +52573,7 @@ int lua_cocos2dx_DrawNode_drawCircle(lua_State* tolua_S) ok = true; do{ if (argc == 8) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawCircle"); if (!ok) { break; } @@ -52601,7 +52601,7 @@ int lua_cocos2dx_DrawNode_drawCircle(lua_State* tolua_S) ok &= luaval_to_number(tolua_S, 8,&arg6, "cc.DrawNode:drawCircle"); if (!ok) { break; } - cocos2d::Color4B arg7; + axis::Color4B arg7; ok &=luaval_to_color4b(tolua_S, 9, &arg7, "cc.DrawNode:drawCircle"); if (!ok) { break; } @@ -52624,7 +52624,7 @@ int lua_cocos2dx_DrawNode_drawCircle(lua_State* tolua_S) int lua_cocos2dx_DrawNode_drawQuadBezier(lua_State* tolua_S) { int argc = 0; - cocos2d::DrawNode* cobj = nullptr; + axis::DrawNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -52636,7 +52636,7 @@ int lua_cocos2dx_DrawNode_drawQuadBezier(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::DrawNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -52649,11 +52649,11 @@ int lua_cocos2dx_DrawNode_drawQuadBezier(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 5) { - cocos2d::Vec2 arg0; - cocos2d::Vec2 arg1; - cocos2d::Vec2 arg2; + axis::Vec2 arg0; + axis::Vec2 arg1; + axis::Vec2 arg2; unsigned int arg3; - cocos2d::Color4B arg4; + axis::Color4B arg4; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawQuadBezier"); @@ -52686,7 +52686,7 @@ int lua_cocos2dx_DrawNode_drawQuadBezier(lua_State* tolua_S) int lua_cocos2dx_DrawNode_drawTriangle(lua_State* tolua_S) { int argc = 0; - cocos2d::DrawNode* cobj = nullptr; + axis::DrawNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -52698,7 +52698,7 @@ int lua_cocos2dx_DrawNode_drawTriangle(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::DrawNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -52711,10 +52711,10 @@ int lua_cocos2dx_DrawNode_drawTriangle(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 4) { - cocos2d::Vec2 arg0; - cocos2d::Vec2 arg1; - cocos2d::Vec2 arg2; - cocos2d::Color4B arg3; + axis::Vec2 arg0; + axis::Vec2 arg1; + axis::Vec2 arg2; + axis::Color4B arg3; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawTriangle"); @@ -52745,7 +52745,7 @@ int lua_cocos2dx_DrawNode_drawTriangle(lua_State* tolua_S) int lua_cocos2dx_DrawNode_setBlendFunc(lua_State* tolua_S) { int argc = 0; - cocos2d::DrawNode* cobj = nullptr; + axis::DrawNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -52757,7 +52757,7 @@ int lua_cocos2dx_DrawNode_setBlendFunc(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::DrawNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -52770,7 +52770,7 @@ int lua_cocos2dx_DrawNode_setBlendFunc(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::BlendFunc arg0; + axis::BlendFunc arg0; ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "cc.DrawNode:setBlendFunc"); if(!ok) @@ -52795,7 +52795,7 @@ int lua_cocos2dx_DrawNode_setBlendFunc(lua_State* tolua_S) int lua_cocos2dx_DrawNode_clear(lua_State* tolua_S) { int argc = 0; - cocos2d::DrawNode* cobj = nullptr; + axis::DrawNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -52807,7 +52807,7 @@ int lua_cocos2dx_DrawNode_clear(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::DrawNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -52842,7 +52842,7 @@ int lua_cocos2dx_DrawNode_clear(lua_State* tolua_S) int lua_cocos2dx_DrawNode_drawSolidRect(lua_State* tolua_S) { int argc = 0; - cocos2d::DrawNode* cobj = nullptr; + axis::DrawNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -52854,7 +52854,7 @@ int lua_cocos2dx_DrawNode_drawSolidRect(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::DrawNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -52867,9 +52867,9 @@ int lua_cocos2dx_DrawNode_drawSolidRect(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 3) { - cocos2d::Vec2 arg0; - cocos2d::Vec2 arg1; - cocos2d::Color4B arg2; + axis::Vec2 arg0; + axis::Vec2 arg1; + axis::Color4B arg2; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawSolidRect"); @@ -52898,7 +52898,7 @@ int lua_cocos2dx_DrawNode_drawSolidRect(lua_State* tolua_S) int lua_cocos2dx_DrawNode_getLineWidth(lua_State* tolua_S) { int argc = 0; - cocos2d::DrawNode* cobj = nullptr; + axis::DrawNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -52910,7 +52910,7 @@ int lua_cocos2dx_DrawNode_getLineWidth(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::DrawNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -52945,7 +52945,7 @@ int lua_cocos2dx_DrawNode_getLineWidth(lua_State* tolua_S) int lua_cocos2dx_DrawNode_drawPoint(lua_State* tolua_S) { int argc = 0; - cocos2d::DrawNode* cobj = nullptr; + axis::DrawNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -52957,7 +52957,7 @@ int lua_cocos2dx_DrawNode_drawPoint(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::DrawNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -52970,9 +52970,9 @@ int lua_cocos2dx_DrawNode_drawPoint(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 3) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; double arg1; - cocos2d::Color4B arg2; + axis::Color4B arg2; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawPoint"); @@ -53001,7 +53001,7 @@ int lua_cocos2dx_DrawNode_drawPoint(lua_State* tolua_S) int lua_cocos2dx_DrawNode_isIsolated(lua_State* tolua_S) { int argc = 0; - cocos2d::DrawNode* cobj = nullptr; + axis::DrawNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -53013,7 +53013,7 @@ int lua_cocos2dx_DrawNode_isIsolated(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::DrawNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -53048,7 +53048,7 @@ int lua_cocos2dx_DrawNode_isIsolated(lua_State* tolua_S) int lua_cocos2dx_DrawNode_drawCubicBezier(lua_State* tolua_S) { int argc = 0; - cocos2d::DrawNode* cobj = nullptr; + axis::DrawNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -53060,7 +53060,7 @@ int lua_cocos2dx_DrawNode_drawCubicBezier(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.DrawNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::DrawNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::DrawNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -53073,12 +53073,12 @@ int lua_cocos2dx_DrawNode_drawCubicBezier(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 6) { - cocos2d::Vec2 arg0; - cocos2d::Vec2 arg1; - cocos2d::Vec2 arg2; - cocos2d::Vec2 arg3; + axis::Vec2 arg0; + axis::Vec2 arg1; + axis::Vec2 arg2; + axis::Vec2 arg3; unsigned int arg4; - cocos2d::Color4B arg5; + axis::Color4B arg5; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.DrawNode:drawCubicBezier"); @@ -53132,8 +53132,8 @@ int lua_cocos2dx_DrawNode_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_DrawNode_create'", nullptr); return 0; } - cocos2d::DrawNode* ret = cocos2d::DrawNode::create(); - object_to_luaval(tolua_S, "cc.DrawNode",(cocos2d::DrawNode*)ret); + axis::DrawNode* ret = axis::DrawNode::create(); + object_to_luaval(tolua_S, "cc.DrawNode",(axis::DrawNode*)ret); return 1; } if (argc == 1) @@ -53145,8 +53145,8 @@ int lua_cocos2dx_DrawNode_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_DrawNode_create'", nullptr); return 0; } - cocos2d::DrawNode* ret = cocos2d::DrawNode::create(arg0); - object_to_luaval(tolua_S, "cc.DrawNode",(cocos2d::DrawNode*)ret); + axis::DrawNode* ret = axis::DrawNode::create(arg0); + object_to_luaval(tolua_S, "cc.DrawNode",(axis::DrawNode*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.DrawNode:create",argc, 0); @@ -53160,7 +53160,7 @@ int lua_cocos2dx_DrawNode_create(lua_State* tolua_S) int lua_cocos2dx_DrawNode_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::DrawNode* cobj = nullptr; + axis::DrawNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -53177,7 +53177,7 @@ int lua_cocos2dx_DrawNode_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_DrawNode_constructor'", nullptr); return 0; } - cobj = new cocos2d::DrawNode(); + cobj = new axis::DrawNode(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -53194,7 +53194,7 @@ int lua_cocos2dx_DrawNode_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_DrawNode_constructor'", nullptr); return 0; } - cobj = new cocos2d::DrawNode(arg0); + cobj = new axis::DrawNode(arg0); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -53244,7 +53244,7 @@ int lua_register_cocos2dx_DrawNode(lua_State* tolua_S) tolua_function(tolua_S,"drawCubicBezier",lua_cocos2dx_DrawNode_drawCubicBezier); tolua_function(tolua_S,"create", lua_cocos2dx_DrawNode_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::DrawNode).name(); // rtti is literal storage + auto typeName = typeid(axis::DrawNode).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.DrawNode"; g_typeCast[typeName] = "cc.DrawNode"; return 1; @@ -53253,7 +53253,7 @@ int lua_register_cocos2dx_DrawNode(lua_State* tolua_S) int lua_cocos2dx_Label_isClipMarginEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -53265,7 +53265,7 @@ int lua_cocos2dx_Label_isClipMarginEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -53300,7 +53300,7 @@ int lua_cocos2dx_Label_isClipMarginEnabled(lua_State* tolua_S) int lua_cocos2dx_Label_enableShadow(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -53312,7 +53312,7 @@ int lua_cocos2dx_Label_enableShadow(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -53336,7 +53336,7 @@ int lua_cocos2dx_Label_enableShadow(lua_State* tolua_S) } if (argc == 1) { - cocos2d::Color4B arg0; + axis::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.Label:enableShadow"); if(!ok) @@ -53350,8 +53350,8 @@ int lua_cocos2dx_Label_enableShadow(lua_State* tolua_S) } if (argc == 2) { - cocos2d::Color4B arg0; - cocos2d::Vec2 arg1; + axis::Color4B arg0; + axis::Vec2 arg1; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.Label:enableShadow"); @@ -53367,8 +53367,8 @@ int lua_cocos2dx_Label_enableShadow(lua_State* tolua_S) } if (argc == 3) { - cocos2d::Color4B arg0; - cocos2d::Vec2 arg1; + axis::Color4B arg0; + axis::Vec2 arg1; int arg2; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.Label:enableShadow"); @@ -53398,7 +53398,7 @@ int lua_cocos2dx_Label_enableShadow(lua_State* tolua_S) int lua_cocos2dx_Label_setDimensions(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -53410,7 +53410,7 @@ int lua_cocos2dx_Label_setDimensions(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -53451,7 +53451,7 @@ int lua_cocos2dx_Label_setDimensions(lua_State* tolua_S) int lua_cocos2dx_Label_getWidth(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -53463,7 +53463,7 @@ int lua_cocos2dx_Label_getWidth(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -53498,7 +53498,7 @@ int lua_cocos2dx_Label_getWidth(lua_State* tolua_S) int lua_cocos2dx_Label_getString(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -53510,7 +53510,7 @@ int lua_cocos2dx_Label_getString(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -53545,7 +53545,7 @@ int lua_cocos2dx_Label_getString(lua_State* tolua_S) int lua_cocos2dx_Label_getHeight(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -53557,7 +53557,7 @@ int lua_cocos2dx_Label_getHeight(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -53592,7 +53592,7 @@ int lua_cocos2dx_Label_getHeight(lua_State* tolua_S) int lua_cocos2dx_Label_disableEffect(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -53601,7 +53601,7 @@ int lua_cocos2dx_Label_disableEffect(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -53612,7 +53612,7 @@ int lua_cocos2dx_Label_disableEffect(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { - cocos2d::LabelEffect arg0; + axis::LabelEffect arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Label:disableEffect"); if (!ok) { break; } @@ -53643,7 +53643,7 @@ int lua_cocos2dx_Label_disableEffect(lua_State* tolua_S) int lua_cocos2dx_Label_setTTFConfig(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -53655,7 +53655,7 @@ int lua_cocos2dx_Label_setTTFConfig(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -53668,7 +53668,7 @@ int lua_cocos2dx_Label_setTTFConfig(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::_ttfConfig arg0; + axis::_ttfConfig arg0; ok &= luaval_to_ttfconfig(tolua_S, 2, &arg0, "cc.Label:setTTFConfig"); if(!ok) @@ -53693,7 +53693,7 @@ int lua_cocos2dx_Label_setTTFConfig(lua_State* tolua_S) int lua_cocos2dx_Label_getLabelType(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -53705,7 +53705,7 @@ int lua_cocos2dx_Label_getLabelType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -53740,7 +53740,7 @@ int lua_cocos2dx_Label_getLabelType(lua_State* tolua_S) int lua_cocos2dx_Label_getTextColor(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -53752,7 +53752,7 @@ int lua_cocos2dx_Label_getTextColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -53770,7 +53770,7 @@ int lua_cocos2dx_Label_getTextColor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_getTextColor'", nullptr); return 0; } - const cocos2d::Color4B& ret = cobj->getTextColor(); + const axis::Color4B& ret = cobj->getTextColor(); color4b_to_luaval(tolua_S, ret); return 1; } @@ -53787,7 +53787,7 @@ int lua_cocos2dx_Label_getTextColor(lua_State* tolua_S) int lua_cocos2dx_Label_getBlendFunc(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -53799,7 +53799,7 @@ int lua_cocos2dx_Label_getBlendFunc(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -53817,7 +53817,7 @@ int lua_cocos2dx_Label_getBlendFunc(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_getBlendFunc'", nullptr); return 0; } - const cocos2d::BlendFunc& ret = cobj->getBlendFunc(); + const axis::BlendFunc& ret = cobj->getBlendFunc(); blendfunc_to_luaval(tolua_S, ret); return 1; } @@ -53834,7 +53834,7 @@ int lua_cocos2dx_Label_getBlendFunc(lua_State* tolua_S) int lua_cocos2dx_Label_enableWrap(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -53846,7 +53846,7 @@ int lua_cocos2dx_Label_enableWrap(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -53884,7 +53884,7 @@ int lua_cocos2dx_Label_enableWrap(lua_State* tolua_S) int lua_cocos2dx_Label_setWidth(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -53896,7 +53896,7 @@ int lua_cocos2dx_Label_setWidth(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -53934,7 +53934,7 @@ int lua_cocos2dx_Label_setWidth(lua_State* tolua_S) int lua_cocos2dx_Label_getAdditionalKerning(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -53946,7 +53946,7 @@ int lua_cocos2dx_Label_getAdditionalKerning(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -53981,7 +53981,7 @@ int lua_cocos2dx_Label_getAdditionalKerning(lua_State* tolua_S) int lua_cocos2dx_Label_getBMFontSize(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -53993,7 +53993,7 @@ int lua_cocos2dx_Label_getBMFontSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -54028,7 +54028,7 @@ int lua_cocos2dx_Label_getBMFontSize(lua_State* tolua_S) int lua_cocos2dx_Label_getMaxLineWidth(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -54040,7 +54040,7 @@ int lua_cocos2dx_Label_getMaxLineWidth(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -54075,7 +54075,7 @@ int lua_cocos2dx_Label_getMaxLineWidth(lua_State* tolua_S) int lua_cocos2dx_Label_getHorizontalAlignment(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -54087,7 +54087,7 @@ int lua_cocos2dx_Label_getHorizontalAlignment(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -54122,7 +54122,7 @@ int lua_cocos2dx_Label_getHorizontalAlignment(lua_State* tolua_S) int lua_cocos2dx_Label_getShadowOffset(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -54134,7 +54134,7 @@ int lua_cocos2dx_Label_getShadowOffset(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -54152,7 +54152,7 @@ int lua_cocos2dx_Label_getShadowOffset(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_getShadowOffset'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getShadowOffset(); + axis::Vec2 ret = cobj->getShadowOffset(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -54169,7 +54169,7 @@ int lua_cocos2dx_Label_getShadowOffset(lua_State* tolua_S) int lua_cocos2dx_Label_getLineSpacing(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -54181,7 +54181,7 @@ int lua_cocos2dx_Label_getLineSpacing(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -54216,7 +54216,7 @@ int lua_cocos2dx_Label_getLineSpacing(lua_State* tolua_S) int lua_cocos2dx_Label_setClipMarginEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -54228,7 +54228,7 @@ int lua_cocos2dx_Label_setClipMarginEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -54266,7 +54266,7 @@ int lua_cocos2dx_Label_setClipMarginEnabled(lua_State* tolua_S) int lua_cocos2dx_Label_setString(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -54278,7 +54278,7 @@ int lua_cocos2dx_Label_setString(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -54316,7 +54316,7 @@ int lua_cocos2dx_Label_setString(lua_State* tolua_S) int lua_cocos2dx_Label_setSystemFontName(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -54328,7 +54328,7 @@ int lua_cocos2dx_Label_setSystemFontName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -54366,7 +54366,7 @@ int lua_cocos2dx_Label_setSystemFontName(lua_State* tolua_S) int lua_cocos2dx_Label_isWrapEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -54378,7 +54378,7 @@ int lua_cocos2dx_Label_isWrapEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -54413,7 +54413,7 @@ int lua_cocos2dx_Label_isWrapEnabled(lua_State* tolua_S) int lua_cocos2dx_Label_getOutlineSize(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -54425,7 +54425,7 @@ int lua_cocos2dx_Label_getOutlineSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -54460,7 +54460,7 @@ int lua_cocos2dx_Label_getOutlineSize(lua_State* tolua_S) int lua_cocos2dx_Label_setBMFontFilePath(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -54469,7 +54469,7 @@ int lua_cocos2dx_Label_setBMFontFilePath(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -54484,7 +54484,7 @@ int lua_cocos2dx_Label_setBMFontFilePath(lua_State* tolua_S) ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.Label:setBMFontFilePath"); if (!ok) { break; } - cocos2d::Rect arg1; + axis::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.Label:setBMFontFilePath"); if (!ok) { break; } @@ -54504,7 +54504,7 @@ int lua_cocos2dx_Label_setBMFontFilePath(lua_State* tolua_S) ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.Label:setBMFontFilePath"); if (!ok) { break; } - cocos2d::Rect arg1; + axis::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.Label:setBMFontFilePath"); if (!ok) { break; } @@ -54599,7 +54599,7 @@ int lua_cocos2dx_Label_setBMFontFilePath(lua_State* tolua_S) int lua_cocos2dx_Label_initWithTTF(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -54608,7 +54608,7 @@ int lua_cocos2dx_Label_initWithTTF(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -54619,7 +54619,7 @@ int lua_cocos2dx_Label_initWithTTF(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { - cocos2d::_ttfConfig arg0; + axis::_ttfConfig arg0; ok &= luaval_to_ttfconfig(tolua_S, 2, &arg0, "cc.Label:initWithTTF"); if (!ok) { break; } @@ -54635,7 +54635,7 @@ int lua_cocos2dx_Label_initWithTTF(lua_State* tolua_S) ok = true; do{ if (argc == 3) { - cocos2d::_ttfConfig arg0; + axis::_ttfConfig arg0; ok &= luaval_to_ttfconfig(tolua_S, 2, &arg0, "cc.Label:initWithTTF"); if (!ok) { break; } @@ -54643,7 +54643,7 @@ int lua_cocos2dx_Label_initWithTTF(lua_State* tolua_S) ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "cc.Label:initWithTTF"); if (!ok) { break; } - cocos2d::TextHAlignment arg2; + axis::TextHAlignment arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.Label:initWithTTF"); if (!ok) { break; } @@ -54655,7 +54655,7 @@ int lua_cocos2dx_Label_initWithTTF(lua_State* tolua_S) ok = true; do{ if (argc == 4) { - cocos2d::_ttfConfig arg0; + axis::_ttfConfig arg0; ok &= luaval_to_ttfconfig(tolua_S, 2, &arg0, "cc.Label:initWithTTF"); if (!ok) { break; } @@ -54663,7 +54663,7 @@ int lua_cocos2dx_Label_initWithTTF(lua_State* tolua_S) ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "cc.Label:initWithTTF"); if (!ok) { break; } - cocos2d::TextHAlignment arg2; + axis::TextHAlignment arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.Label:initWithTTF"); if (!ok) { break; } @@ -54711,7 +54711,7 @@ int lua_cocos2dx_Label_initWithTTF(lua_State* tolua_S) ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Label:initWithTTF"); if (!ok) { break; } - cocos2d::Vec2 arg3; + axis::Vec2 arg3; ok &= luaval_to_vec2(tolua_S, 5, &arg3, "cc.Label:initWithTTF"); if (!ok) { break; } @@ -54735,11 +54735,11 @@ int lua_cocos2dx_Label_initWithTTF(lua_State* tolua_S) ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Label:initWithTTF"); if (!ok) { break; } - cocos2d::Vec2 arg3; + axis::Vec2 arg3; ok &= luaval_to_vec2(tolua_S, 5, &arg3, "cc.Label:initWithTTF"); if (!ok) { break; } - cocos2d::TextHAlignment arg4; + axis::TextHAlignment arg4; ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "cc.Label:initWithTTF"); if (!ok) { break; } @@ -54763,15 +54763,15 @@ int lua_cocos2dx_Label_initWithTTF(lua_State* tolua_S) ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Label:initWithTTF"); if (!ok) { break; } - cocos2d::Vec2 arg3; + axis::Vec2 arg3; ok &= luaval_to_vec2(tolua_S, 5, &arg3, "cc.Label:initWithTTF"); if (!ok) { break; } - cocos2d::TextHAlignment arg4; + axis::TextHAlignment arg4; ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "cc.Label:initWithTTF"); if (!ok) { break; } - cocos2d::TextVAlignment arg5; + axis::TextVAlignment arg5; ok &= luaval_to_int32(tolua_S, 7,(int *)&arg5, "cc.Label:initWithTTF"); if (!ok) { break; } @@ -54794,7 +54794,7 @@ int lua_cocos2dx_Label_initWithTTF(lua_State* tolua_S) int lua_cocos2dx_Label_getFontAtlas(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -54806,7 +54806,7 @@ int lua_cocos2dx_Label_getFontAtlas(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -54824,8 +54824,8 @@ int lua_cocos2dx_Label_getFontAtlas(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_getFontAtlas'", nullptr); return 0; } - cocos2d::FontAtlas* ret = cobj->getFontAtlas(); - object_to_luaval(tolua_S, "cc.FontAtlas",(cocos2d::FontAtlas*)ret); + axis::FontAtlas* ret = cobj->getFontAtlas(); + object_to_luaval(tolua_S, "cc.FontAtlas",(axis::FontAtlas*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getFontAtlas",argc, 0); @@ -54841,7 +54841,7 @@ int lua_cocos2dx_Label_getFontAtlas(lua_State* tolua_S) int lua_cocos2dx_Label_setLineHeight(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -54853,7 +54853,7 @@ int lua_cocos2dx_Label_setLineHeight(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -54891,7 +54891,7 @@ int lua_cocos2dx_Label_setLineHeight(lua_State* tolua_S) int lua_cocos2dx_Label_setSystemFontSize(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -54903,7 +54903,7 @@ int lua_cocos2dx_Label_setSystemFontSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -54941,7 +54941,7 @@ int lua_cocos2dx_Label_setSystemFontSize(lua_State* tolua_S) int lua_cocos2dx_Label_setOverflow(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -54953,7 +54953,7 @@ int lua_cocos2dx_Label_setOverflow(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -54966,7 +54966,7 @@ int lua_cocos2dx_Label_setOverflow(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Label::Overflow arg0; + axis::Label::Overflow arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Label:setOverflow"); if(!ok) @@ -54991,7 +54991,7 @@ int lua_cocos2dx_Label_setOverflow(lua_State* tolua_S) int lua_cocos2dx_Label_enableStrikethrough(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -55003,7 +55003,7 @@ int lua_cocos2dx_Label_enableStrikethrough(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -55038,7 +55038,7 @@ int lua_cocos2dx_Label_enableStrikethrough(lua_State* tolua_S) int lua_cocos2dx_Label_updateContent(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -55050,7 +55050,7 @@ int lua_cocos2dx_Label_updateContent(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -55085,7 +55085,7 @@ int lua_cocos2dx_Label_updateContent(lua_State* tolua_S) int lua_cocos2dx_Label_getStringLength(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -55097,7 +55097,7 @@ int lua_cocos2dx_Label_getStringLength(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -55132,7 +55132,7 @@ int lua_cocos2dx_Label_getStringLength(lua_State* tolua_S) int lua_cocos2dx_Label_setLineBreakWithoutSpace(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -55144,7 +55144,7 @@ int lua_cocos2dx_Label_setLineBreakWithoutSpace(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -55182,7 +55182,7 @@ int lua_cocos2dx_Label_setLineBreakWithoutSpace(lua_State* tolua_S) int lua_cocos2dx_Label_getStringNumLines(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -55194,7 +55194,7 @@ int lua_cocos2dx_Label_getStringNumLines(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -55229,7 +55229,7 @@ int lua_cocos2dx_Label_getStringNumLines(lua_State* tolua_S) int lua_cocos2dx_Label_enableOutline(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -55241,7 +55241,7 @@ int lua_cocos2dx_Label_enableOutline(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -55254,7 +55254,7 @@ int lua_cocos2dx_Label_enableOutline(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Color4B arg0; + axis::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.Label:enableOutline"); if(!ok) @@ -55268,7 +55268,7 @@ int lua_cocos2dx_Label_enableOutline(lua_State* tolua_S) } if (argc == 2) { - cocos2d::Color4B arg0; + axis::Color4B arg0; int arg1; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.Label:enableOutline"); @@ -55296,7 +55296,7 @@ int lua_cocos2dx_Label_enableOutline(lua_State* tolua_S) int lua_cocos2dx_Label_getShadowBlurRadius(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -55308,7 +55308,7 @@ int lua_cocos2dx_Label_getShadowBlurRadius(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -55343,7 +55343,7 @@ int lua_cocos2dx_Label_getShadowBlurRadius(lua_State* tolua_S) int lua_cocos2dx_Label_getEffectColor(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -55355,7 +55355,7 @@ int lua_cocos2dx_Label_getEffectColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -55373,7 +55373,7 @@ int lua_cocos2dx_Label_getEffectColor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_getEffectColor'", nullptr); return 0; } - cocos2d::Color4F ret = cobj->getEffectColor(); + axis::Color4F ret = cobj->getEffectColor(); color4f_to_luaval(tolua_S, ret); return 1; } @@ -55390,7 +55390,7 @@ int lua_cocos2dx_Label_getEffectColor(lua_State* tolua_S) int lua_cocos2dx_Label_removeAllChildrenWithCleanup(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -55402,7 +55402,7 @@ int lua_cocos2dx_Label_removeAllChildrenWithCleanup(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -55440,7 +55440,7 @@ int lua_cocos2dx_Label_removeAllChildrenWithCleanup(lua_State* tolua_S) int lua_cocos2dx_Label_setCharMap(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -55449,7 +55449,7 @@ int lua_cocos2dx_Label_setCharMap(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -55460,8 +55460,8 @@ int lua_cocos2dx_Label_setCharMap(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 4) { - cocos2d::Texture2D* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.Label:setCharMap"); + axis::Texture2D* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.Label:setCharMap"); if (!ok) { break; } int arg1; @@ -55531,7 +55531,7 @@ int lua_cocos2dx_Label_setCharMap(lua_State* tolua_S) int lua_cocos2dx_Label_getDimensions(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -55543,7 +55543,7 @@ int lua_cocos2dx_Label_getDimensions(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -55561,7 +55561,7 @@ int lua_cocos2dx_Label_getDimensions(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_getDimensions'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getDimensions(); + const axis::Vec2& ret = cobj->getDimensions(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -55578,7 +55578,7 @@ int lua_cocos2dx_Label_getDimensions(lua_State* tolua_S) int lua_cocos2dx_Label_setMaxLineWidth(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -55590,7 +55590,7 @@ int lua_cocos2dx_Label_setMaxLineWidth(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -55628,7 +55628,7 @@ int lua_cocos2dx_Label_setMaxLineWidth(lua_State* tolua_S) int lua_cocos2dx_Label_getSystemFontName(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -55640,7 +55640,7 @@ int lua_cocos2dx_Label_getSystemFontName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -55675,7 +55675,7 @@ int lua_cocos2dx_Label_getSystemFontName(lua_State* tolua_S) int lua_cocos2dx_Label_setVerticalAlignment(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -55687,7 +55687,7 @@ int lua_cocos2dx_Label_setVerticalAlignment(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -55700,7 +55700,7 @@ int lua_cocos2dx_Label_setVerticalAlignment(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::TextVAlignment arg0; + axis::TextVAlignment arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Label:setVerticalAlignment"); if(!ok) @@ -55725,7 +55725,7 @@ int lua_cocos2dx_Label_setVerticalAlignment(lua_State* tolua_S) int lua_cocos2dx_Label_setLineSpacing(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -55737,7 +55737,7 @@ int lua_cocos2dx_Label_setLineSpacing(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -55775,7 +55775,7 @@ int lua_cocos2dx_Label_setLineSpacing(lua_State* tolua_S) int lua_cocos2dx_Label_getRenderingFontSize(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -55787,7 +55787,7 @@ int lua_cocos2dx_Label_getRenderingFontSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -55822,7 +55822,7 @@ int lua_cocos2dx_Label_getRenderingFontSize(lua_State* tolua_S) int lua_cocos2dx_Label_getLineHeight(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -55834,7 +55834,7 @@ int lua_cocos2dx_Label_getLineHeight(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -55869,7 +55869,7 @@ int lua_cocos2dx_Label_getLineHeight(lua_State* tolua_S) int lua_cocos2dx_Label_getShadowColor(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -55881,7 +55881,7 @@ int lua_cocos2dx_Label_getShadowColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -55899,7 +55899,7 @@ int lua_cocos2dx_Label_getShadowColor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_getShadowColor'", nullptr); return 0; } - cocos2d::Color4F ret = cobj->getShadowColor(); + axis::Color4F ret = cobj->getShadowColor(); color4f_to_luaval(tolua_S, ret); return 1; } @@ -55916,7 +55916,7 @@ int lua_cocos2dx_Label_getShadowColor(lua_State* tolua_S) int lua_cocos2dx_Label_getTTFConfig(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -55928,7 +55928,7 @@ int lua_cocos2dx_Label_getTTFConfig(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -55946,7 +55946,7 @@ int lua_cocos2dx_Label_getTTFConfig(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_getTTFConfig'", nullptr); return 0; } - const cocos2d::_ttfConfig& ret = cobj->getTTFConfig(); + const axis::_ttfConfig& ret = cobj->getTTFConfig(); ttfconfig_to_luaval(tolua_S, ret); return 1; } @@ -55963,7 +55963,7 @@ int lua_cocos2dx_Label_getTTFConfig(lua_State* tolua_S) int lua_cocos2dx_Label_enableItalics(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -55975,7 +55975,7 @@ int lua_cocos2dx_Label_enableItalics(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -56010,7 +56010,7 @@ int lua_cocos2dx_Label_enableItalics(lua_State* tolua_S) int lua_cocos2dx_Label_setTextColor(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -56022,7 +56022,7 @@ int lua_cocos2dx_Label_setTextColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -56035,7 +56035,7 @@ int lua_cocos2dx_Label_setTextColor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Color4B arg0; + axis::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.Label:setTextColor"); if(!ok) @@ -56060,7 +56060,7 @@ int lua_cocos2dx_Label_setTextColor(lua_State* tolua_S) int lua_cocos2dx_Label_getLetter(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -56072,7 +56072,7 @@ int lua_cocos2dx_Label_getLetter(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -56093,8 +56093,8 @@ int lua_cocos2dx_Label_getLetter(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_getLetter'", nullptr); return 0; } - cocos2d::Sprite* ret = cobj->getLetter(arg0); - object_to_luaval(tolua_S, "cc.Sprite",(cocos2d::Sprite*)ret); + axis::Sprite* ret = cobj->getLetter(arg0); + object_to_luaval(tolua_S, "cc.Sprite",(axis::Sprite*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Label:getLetter",argc, 1); @@ -56110,7 +56110,7 @@ int lua_cocos2dx_Label_getLetter(lua_State* tolua_S) int lua_cocos2dx_Label_setHeight(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -56122,7 +56122,7 @@ int lua_cocos2dx_Label_setHeight(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -56160,7 +56160,7 @@ int lua_cocos2dx_Label_setHeight(lua_State* tolua_S) int lua_cocos2dx_Label_isShadowEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -56172,7 +56172,7 @@ int lua_cocos2dx_Label_isShadowEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -56207,7 +56207,7 @@ int lua_cocos2dx_Label_isShadowEnabled(lua_State* tolua_S) int lua_cocos2dx_Label_enableGlow(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -56219,7 +56219,7 @@ int lua_cocos2dx_Label_enableGlow(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -56232,7 +56232,7 @@ int lua_cocos2dx_Label_enableGlow(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Color4B arg0; + axis::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.Label:enableGlow"); if(!ok) @@ -56257,7 +56257,7 @@ int lua_cocos2dx_Label_enableGlow(lua_State* tolua_S) int lua_cocos2dx_Label_getOverflow(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -56269,7 +56269,7 @@ int lua_cocos2dx_Label_getOverflow(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -56304,7 +56304,7 @@ int lua_cocos2dx_Label_getOverflow(lua_State* tolua_S) int lua_cocos2dx_Label_getVerticalAlignment(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -56316,7 +56316,7 @@ int lua_cocos2dx_Label_getVerticalAlignment(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -56351,7 +56351,7 @@ int lua_cocos2dx_Label_getVerticalAlignment(lua_State* tolua_S) int lua_cocos2dx_Label_setAdditionalKerning(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -56363,7 +56363,7 @@ int lua_cocos2dx_Label_setAdditionalKerning(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -56401,7 +56401,7 @@ int lua_cocos2dx_Label_setAdditionalKerning(lua_State* tolua_S) int lua_cocos2dx_Label_getSystemFontSize(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -56413,7 +56413,7 @@ int lua_cocos2dx_Label_getSystemFontSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -56448,7 +56448,7 @@ int lua_cocos2dx_Label_getSystemFontSize(lua_State* tolua_S) int lua_cocos2dx_Label_setBlendFunc(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -56460,7 +56460,7 @@ int lua_cocos2dx_Label_setBlendFunc(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -56473,7 +56473,7 @@ int lua_cocos2dx_Label_setBlendFunc(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::BlendFunc arg0; + axis::BlendFunc arg0; ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "cc.Label:setBlendFunc"); if(!ok) @@ -56498,7 +56498,7 @@ int lua_cocos2dx_Label_setBlendFunc(lua_State* tolua_S) int lua_cocos2dx_Label_getTextAlignment(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -56510,7 +56510,7 @@ int lua_cocos2dx_Label_getTextAlignment(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -56545,7 +56545,7 @@ int lua_cocos2dx_Label_getTextAlignment(lua_State* tolua_S) int lua_cocos2dx_Label_getBMFontFilePath(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -56557,7 +56557,7 @@ int lua_cocos2dx_Label_getBMFontFilePath(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -56592,7 +56592,7 @@ int lua_cocos2dx_Label_getBMFontFilePath(lua_State* tolua_S) int lua_cocos2dx_Label_setHorizontalAlignment(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -56604,7 +56604,7 @@ int lua_cocos2dx_Label_setHorizontalAlignment(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -56617,7 +56617,7 @@ int lua_cocos2dx_Label_setHorizontalAlignment(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::TextHAlignment arg0; + axis::TextHAlignment arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Label:setHorizontalAlignment"); if(!ok) @@ -56642,7 +56642,7 @@ int lua_cocos2dx_Label_setHorizontalAlignment(lua_State* tolua_S) int lua_cocos2dx_Label_enableBold(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -56654,7 +56654,7 @@ int lua_cocos2dx_Label_enableBold(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -56689,7 +56689,7 @@ int lua_cocos2dx_Label_enableBold(lua_State* tolua_S) int lua_cocos2dx_Label_enableUnderline(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -56701,7 +56701,7 @@ int lua_cocos2dx_Label_enableUnderline(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -56736,7 +56736,7 @@ int lua_cocos2dx_Label_enableUnderline(lua_State* tolua_S) int lua_cocos2dx_Label_getLabelEffectType(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -56748,7 +56748,7 @@ int lua_cocos2dx_Label_getLabelEffectType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -56783,7 +56783,7 @@ int lua_cocos2dx_Label_getLabelEffectType(lua_State* tolua_S) int lua_cocos2dx_Label_setAlignment(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -56792,7 +56792,7 @@ int lua_cocos2dx_Label_setAlignment(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -56803,11 +56803,11 @@ int lua_cocos2dx_Label_setAlignment(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { - cocos2d::TextHAlignment arg0; + axis::TextHAlignment arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Label:setAlignment"); if (!ok) { break; } - cocos2d::TextVAlignment arg1; + axis::TextVAlignment arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Label:setAlignment"); if (!ok) { break; } @@ -56819,7 +56819,7 @@ int lua_cocos2dx_Label_setAlignment(lua_State* tolua_S) ok = true; do{ if (argc == 1) { - cocos2d::TextHAlignment arg0; + axis::TextHAlignment arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Label:setAlignment"); if (!ok) { break; } @@ -56842,7 +56842,7 @@ int lua_cocos2dx_Label_setAlignment(lua_State* tolua_S) int lua_cocos2dx_Label_requestSystemFontRefresh(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -56854,7 +56854,7 @@ int lua_cocos2dx_Label_requestSystemFontRefresh(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -56889,7 +56889,7 @@ int lua_cocos2dx_Label_requestSystemFontRefresh(lua_State* tolua_S) int lua_cocos2dx_Label_setBMFontSize(lua_State* tolua_S) { int argc = 0; - cocos2d::Label* cobj = nullptr; + axis::Label* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -56901,7 +56901,7 @@ int lua_cocos2dx_Label_setBMFontSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Label",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Label*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Label*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -56960,20 +56960,20 @@ int lua_cocos2dx_Label_createWithBMFont(lua_State* tolua_S) std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "cc.Label:createWithBMFont"); if (!ok) { break; } - cocos2d::TextHAlignment arg2; + axis::TextHAlignment arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.Label:createWithBMFont"); if (!ok) { break; } int arg3; ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.Label:createWithBMFont"); if (!ok) { break; } - cocos2d::Rect arg4; + axis::Rect arg4; ok &= luaval_to_rect(tolua_S, 6, &arg4, "cc.Label:createWithBMFont"); if (!ok) { break; } bool arg5; ok &= luaval_to_boolean(tolua_S, 7,&arg5, "cc.Label:createWithBMFont"); if (!ok) { break; } - cocos2d::Label* ret = cocos2d::Label::createWithBMFont(arg0, arg1, arg2, arg3, arg4, arg5); - object_to_luaval(tolua_S, "cc.Label",(cocos2d::Label*)ret); + axis::Label* ret = axis::Label::createWithBMFont(arg0, arg1, arg2, arg3, arg4, arg5); + object_to_luaval(tolua_S, "cc.Label",(axis::Label*)ret); return 1; } } while (0); @@ -56988,8 +56988,8 @@ int lua_cocos2dx_Label_createWithBMFont(lua_State* tolua_S) std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "cc.Label:createWithBMFont"); if (!ok) { break; } - cocos2d::Label* ret = cocos2d::Label::createWithBMFont(arg0, arg1); - object_to_luaval(tolua_S, "cc.Label",(cocos2d::Label*)ret); + axis::Label* ret = axis::Label::createWithBMFont(arg0, arg1); + object_to_luaval(tolua_S, "cc.Label",(axis::Label*)ret); return 1; } } while (0); @@ -57004,11 +57004,11 @@ int lua_cocos2dx_Label_createWithBMFont(lua_State* tolua_S) std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "cc.Label:createWithBMFont"); if (!ok) { break; } - cocos2d::TextHAlignment arg2; + axis::TextHAlignment arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.Label:createWithBMFont"); if (!ok) { break; } - cocos2d::Label* ret = cocos2d::Label::createWithBMFont(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.Label",(cocos2d::Label*)ret); + axis::Label* ret = axis::Label::createWithBMFont(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.Label",(axis::Label*)ret); return 1; } } while (0); @@ -57023,14 +57023,14 @@ int lua_cocos2dx_Label_createWithBMFont(lua_State* tolua_S) std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "cc.Label:createWithBMFont"); if (!ok) { break; } - cocos2d::TextHAlignment arg2; + axis::TextHAlignment arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.Label:createWithBMFont"); if (!ok) { break; } int arg3; ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.Label:createWithBMFont"); if (!ok) { break; } - cocos2d::Label* ret = cocos2d::Label::createWithBMFont(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.Label",(cocos2d::Label*)ret); + axis::Label* ret = axis::Label::createWithBMFont(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.Label",(axis::Label*)ret); return 1; } } while (0); @@ -57045,7 +57045,7 @@ int lua_cocos2dx_Label_createWithBMFont(lua_State* tolua_S) std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "cc.Label:createWithBMFont"); if (!ok) { break; } - cocos2d::TextHAlignment arg2; + axis::TextHAlignment arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.Label:createWithBMFont"); if (!ok) { break; } int arg3; @@ -57054,8 +57054,8 @@ int lua_cocos2dx_Label_createWithBMFont(lua_State* tolua_S) std::string_view arg4; ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "cc.Label:createWithBMFont"); if (!ok) { break; } - cocos2d::Label* ret = cocos2d::Label::createWithBMFont(arg0, arg1, arg2, arg3, arg4); - object_to_luaval(tolua_S, "cc.Label",(cocos2d::Label*)ret); + axis::Label* ret = axis::Label::createWithBMFont(arg0, arg1, arg2, arg3, arg4); + object_to_luaval(tolua_S, "cc.Label",(axis::Label*)ret); return 1; } } while (0); @@ -57090,8 +57090,8 @@ int lua_cocos2dx_Label_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_create'", nullptr); return 0; } - cocos2d::Label* ret = cocos2d::Label::create(); - object_to_luaval(tolua_S, "cc.Label",(cocos2d::Label*)ret); + axis::Label* ret = axis::Label::create(); + object_to_luaval(tolua_S, "cc.Label",(axis::Label*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Label:create",argc, 0); @@ -57120,8 +57120,8 @@ int lua_cocos2dx_Label_createWithCharMap(lua_State* tolua_S) { if (argc == 4) { - cocos2d::Texture2D* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.Label:createWithCharMap"); + axis::Texture2D* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.Label:createWithCharMap"); if (!ok) { break; } int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Label:createWithCharMap"); @@ -57132,8 +57132,8 @@ int lua_cocos2dx_Label_createWithCharMap(lua_State* tolua_S) int arg3; ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.Label:createWithCharMap"); if (!ok) { break; } - cocos2d::Label* ret = cocos2d::Label::createWithCharMap(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.Label",(cocos2d::Label*)ret); + axis::Label* ret = axis::Label::createWithCharMap(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.Label",(axis::Label*)ret); return 1; } } while (0); @@ -57154,8 +57154,8 @@ int lua_cocos2dx_Label_createWithCharMap(lua_State* tolua_S) int arg3; ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.Label:createWithCharMap"); if (!ok) { break; } - cocos2d::Label* ret = cocos2d::Label::createWithCharMap(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.Label",(cocos2d::Label*)ret); + axis::Label* ret = axis::Label::createWithCharMap(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.Label",(axis::Label*)ret); return 1; } } while (0); @@ -57167,8 +57167,8 @@ int lua_cocos2dx_Label_createWithCharMap(lua_State* tolua_S) std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.Label:createWithCharMap"); if (!ok) { break; } - cocos2d::Label* ret = cocos2d::Label::createWithCharMap(arg0); - object_to_luaval(tolua_S, "cc.Label",(cocos2d::Label*)ret); + axis::Label* ret = axis::Label::createWithCharMap(arg0); + object_to_luaval(tolua_S, "cc.Label",(axis::Label*)ret); return 1; } } while (0); @@ -57209,8 +57209,8 @@ int lua_cocos2dx_Label_createWithSystemFont(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_createWithSystemFont'", nullptr); return 0; } - cocos2d::Label* ret = cocos2d::Label::createWithSystemFont(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.Label",(cocos2d::Label*)ret); + axis::Label* ret = axis::Label::createWithSystemFont(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.Label",(axis::Label*)ret); return 1; } if (argc == 4) @@ -57218,7 +57218,7 @@ int lua_cocos2dx_Label_createWithSystemFont(lua_State* tolua_S) std::string_view arg0; std::string_view arg1; double arg2; - cocos2d::Vec2 arg3; + axis::Vec2 arg3; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.Label:createWithSystemFont"); ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "cc.Label:createWithSystemFont"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Label:createWithSystemFont"); @@ -57228,8 +57228,8 @@ int lua_cocos2dx_Label_createWithSystemFont(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_createWithSystemFont'", nullptr); return 0; } - cocos2d::Label* ret = cocos2d::Label::createWithSystemFont(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.Label",(cocos2d::Label*)ret); + axis::Label* ret = axis::Label::createWithSystemFont(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.Label",(axis::Label*)ret); return 1; } if (argc == 5) @@ -57237,8 +57237,8 @@ int lua_cocos2dx_Label_createWithSystemFont(lua_State* tolua_S) std::string_view arg0; std::string_view arg1; double arg2; - cocos2d::Vec2 arg3; - cocos2d::TextHAlignment arg4; + axis::Vec2 arg3; + axis::TextHAlignment arg4; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.Label:createWithSystemFont"); ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "cc.Label:createWithSystemFont"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Label:createWithSystemFont"); @@ -57249,8 +57249,8 @@ int lua_cocos2dx_Label_createWithSystemFont(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_createWithSystemFont'", nullptr); return 0; } - cocos2d::Label* ret = cocos2d::Label::createWithSystemFont(arg0, arg1, arg2, arg3, arg4); - object_to_luaval(tolua_S, "cc.Label",(cocos2d::Label*)ret); + axis::Label* ret = axis::Label::createWithSystemFont(arg0, arg1, arg2, arg3, arg4); + object_to_luaval(tolua_S, "cc.Label",(axis::Label*)ret); return 1; } if (argc == 6) @@ -57258,9 +57258,9 @@ int lua_cocos2dx_Label_createWithSystemFont(lua_State* tolua_S) std::string_view arg0; std::string_view arg1; double arg2; - cocos2d::Vec2 arg3; - cocos2d::TextHAlignment arg4; - cocos2d::TextVAlignment arg5; + axis::Vec2 arg3; + axis::TextHAlignment arg4; + axis::TextVAlignment arg5; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.Label:createWithSystemFont"); ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "cc.Label:createWithSystemFont"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.Label:createWithSystemFont"); @@ -57272,8 +57272,8 @@ int lua_cocos2dx_Label_createWithSystemFont(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Label_createWithSystemFont'", nullptr); return 0; } - cocos2d::Label* ret = cocos2d::Label::createWithSystemFont(arg0, arg1, arg2, arg3, arg4, arg5); - object_to_luaval(tolua_S, "cc.Label",(cocos2d::Label*)ret); + axis::Label* ret = axis::Label::createWithSystemFont(arg0, arg1, arg2, arg3, arg4, arg5); + object_to_luaval(tolua_S, "cc.Label",(axis::Label*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Label:createWithSystemFont",argc, 3); @@ -57370,7 +57370,7 @@ int lua_register_cocos2dx_Label(lua_State* tolua_S) tolua_function(tolua_S,"createWithCharMap", lua_cocos2dx_Label_createWithCharMap); tolua_function(tolua_S,"createWithSystemFont", lua_cocos2dx_Label_createWithSystemFont); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Label).name(); // rtti is literal storage + auto typeName = typeid(axis::Label).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Label"; g_typeCast[typeName] = "cc.Label"; return 1; @@ -57379,7 +57379,7 @@ int lua_register_cocos2dx_Label(lua_State* tolua_S) int lua_cocos2dx_LabelAtlas_setString(lua_State* tolua_S) { int argc = 0; - cocos2d::LabelAtlas* cobj = nullptr; + axis::LabelAtlas* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -57391,7 +57391,7 @@ int lua_cocos2dx_LabelAtlas_setString(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.LabelAtlas",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LabelAtlas*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LabelAtlas*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -57429,7 +57429,7 @@ int lua_cocos2dx_LabelAtlas_setString(lua_State* tolua_S) int lua_cocos2dx_LabelAtlas_initWithString(lua_State* tolua_S) { int argc = 0; - cocos2d::LabelAtlas* cobj = nullptr; + axis::LabelAtlas* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -57438,7 +57438,7 @@ int lua_cocos2dx_LabelAtlas_initWithString(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LabelAtlas",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LabelAtlas*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LabelAtlas*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -57497,8 +57497,8 @@ int lua_cocos2dx_LabelAtlas_initWithString(lua_State* tolua_S) ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.LabelAtlas:initWithString"); if (!ok) { break; } - cocos2d::Texture2D* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Texture2D",&arg1, "cc.LabelAtlas:initWithString"); + axis::Texture2D* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Texture2D",&arg1, "cc.LabelAtlas:initWithString"); if (!ok) { break; } int arg2; @@ -57532,7 +57532,7 @@ int lua_cocos2dx_LabelAtlas_initWithString(lua_State* tolua_S) int lua_cocos2dx_LabelAtlas_getString(lua_State* tolua_S) { int argc = 0; - cocos2d::LabelAtlas* cobj = nullptr; + axis::LabelAtlas* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -57544,7 +57544,7 @@ int lua_cocos2dx_LabelAtlas_getString(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.LabelAtlas",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LabelAtlas*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LabelAtlas*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -57600,8 +57600,8 @@ int lua_cocos2dx_LabelAtlas_create(lua_State* tolua_S) std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "cc.LabelAtlas:create"); if (!ok) { break; } - cocos2d::LabelAtlas* ret = cocos2d::LabelAtlas::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.LabelAtlas",(cocos2d::LabelAtlas*)ret); + axis::LabelAtlas* ret = axis::LabelAtlas::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.LabelAtlas",(axis::LabelAtlas*)ret); return 1; } } while (0); @@ -57625,8 +57625,8 @@ int lua_cocos2dx_LabelAtlas_create(lua_State* tolua_S) int arg4; ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "cc.LabelAtlas:create"); if (!ok) { break; } - cocos2d::LabelAtlas* ret = cocos2d::LabelAtlas::create(arg0, arg1, arg2, arg3, arg4); - object_to_luaval(tolua_S, "cc.LabelAtlas",(cocos2d::LabelAtlas*)ret); + axis::LabelAtlas* ret = axis::LabelAtlas::create(arg0, arg1, arg2, arg3, arg4); + object_to_luaval(tolua_S, "cc.LabelAtlas",(axis::LabelAtlas*)ret); return 1; } } while (0); @@ -57638,8 +57638,8 @@ int lua_cocos2dx_LabelAtlas_create(lua_State* tolua_S) std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.LabelAtlas:create"); if (!ok) { break; } - cocos2d::Texture2D* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Texture2D",&arg1, "cc.LabelAtlas:create"); + axis::Texture2D* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Texture2D",&arg1, "cc.LabelAtlas:create"); if (!ok) { break; } int arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.LabelAtlas:create"); @@ -57650,8 +57650,8 @@ int lua_cocos2dx_LabelAtlas_create(lua_State* tolua_S) int arg4; ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "cc.LabelAtlas:create"); if (!ok) { break; } - cocos2d::LabelAtlas* ret = cocos2d::LabelAtlas::create(arg0, arg1, arg2, arg3, arg4); - object_to_luaval(tolua_S, "cc.LabelAtlas",(cocos2d::LabelAtlas*)ret); + axis::LabelAtlas* ret = axis::LabelAtlas::create(arg0, arg1, arg2, arg3, arg4); + object_to_luaval(tolua_S, "cc.LabelAtlas",(axis::LabelAtlas*)ret); return 1; } } while (0); @@ -57667,7 +57667,7 @@ int lua_cocos2dx_LabelAtlas_create(lua_State* tolua_S) int lua_cocos2dx_LabelAtlas_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::LabelAtlas* cobj = nullptr; + axis::LabelAtlas* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -57684,7 +57684,7 @@ int lua_cocos2dx_LabelAtlas_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LabelAtlas_constructor'", nullptr); return 0; } - cobj = new cocos2d::LabelAtlas(); + cobj = new axis::LabelAtlas(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -57719,7 +57719,7 @@ int lua_register_cocos2dx_LabelAtlas(lua_State* tolua_S) tolua_function(tolua_S,"getString",lua_cocos2dx_LabelAtlas_getString); tolua_function(tolua_S,"_create", lua_cocos2dx_LabelAtlas_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::LabelAtlas).name(); // rtti is literal storage + auto typeName = typeid(axis::LabelAtlas).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.LabelAtlas"; g_typeCast[typeName] = "cc.LabelAtlas"; return 1; @@ -57728,7 +57728,7 @@ int lua_register_cocos2dx_LabelAtlas(lua_State* tolua_S) int lua_cocos2dx_Sprite_setSpriteFrame(lua_State* tolua_S) { int argc = 0; - cocos2d::Sprite* cobj = nullptr; + axis::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -57737,7 +57737,7 @@ int lua_cocos2dx_Sprite_setSpriteFrame(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -57748,8 +57748,8 @@ int lua_cocos2dx_Sprite_setSpriteFrame(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { - cocos2d::SpriteFrame* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.Sprite:setSpriteFrame"); + axis::SpriteFrame* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.Sprite:setSpriteFrame"); if (!ok) { break; } cobj->setSpriteFrame(arg0); @@ -57783,7 +57783,7 @@ int lua_cocos2dx_Sprite_setSpriteFrame(lua_State* tolua_S) int lua_cocos2dx_Sprite_setTexture(lua_State* tolua_S) { int argc = 0; - cocos2d::Sprite* cobj = nullptr; + axis::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -57792,7 +57792,7 @@ int lua_cocos2dx_Sprite_setTexture(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -57803,8 +57803,8 @@ int lua_cocos2dx_Sprite_setTexture(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { - cocos2d::Texture2D* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.Sprite:setTexture"); + axis::Texture2D* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.Sprite:setTexture"); if (!ok) { break; } cobj->setTexture(arg0); @@ -57838,7 +57838,7 @@ int lua_cocos2dx_Sprite_setTexture(lua_State* tolua_S) int lua_cocos2dx_Sprite_getTexture(lua_State* tolua_S) { int argc = 0; - cocos2d::Sprite* cobj = nullptr; + axis::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -57850,7 +57850,7 @@ int lua_cocos2dx_Sprite_getTexture(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -57868,8 +57868,8 @@ int lua_cocos2dx_Sprite_getTexture(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_getTexture'", nullptr); return 0; } - cocos2d::Texture2D* ret = cobj->getTexture(); - object_to_luaval(tolua_S, "cc.Texture2D",(cocos2d::Texture2D*)ret); + axis::Texture2D* ret = cobj->getTexture(); + object_to_luaval(tolua_S, "cc.Texture2D",(axis::Texture2D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:getTexture",argc, 0); @@ -57885,7 +57885,7 @@ int lua_cocos2dx_Sprite_getTexture(lua_State* tolua_S) int lua_cocos2dx_Sprite_setFlippedY(lua_State* tolua_S) { int argc = 0; - cocos2d::Sprite* cobj = nullptr; + axis::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -57897,7 +57897,7 @@ int lua_cocos2dx_Sprite_setFlippedY(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -57935,7 +57935,7 @@ int lua_cocos2dx_Sprite_setFlippedY(lua_State* tolua_S) int lua_cocos2dx_Sprite_setFlippedX(lua_State* tolua_S) { int argc = 0; - cocos2d::Sprite* cobj = nullptr; + axis::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -57947,7 +57947,7 @@ int lua_cocos2dx_Sprite_setFlippedX(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -57985,7 +57985,7 @@ int lua_cocos2dx_Sprite_setFlippedX(lua_State* tolua_S) int lua_cocos2dx_Sprite_getResourceType(lua_State* tolua_S) { int argc = 0; - cocos2d::Sprite* cobj = nullptr; + axis::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -57997,7 +57997,7 @@ int lua_cocos2dx_Sprite_getResourceType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -58032,7 +58032,7 @@ int lua_cocos2dx_Sprite_getResourceType(lua_State* tolua_S) int lua_cocos2dx_Sprite_setDisplayFrameWithAnimationName(lua_State* tolua_S) { int argc = 0; - cocos2d::Sprite* cobj = nullptr; + axis::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -58044,7 +58044,7 @@ int lua_cocos2dx_Sprite_setDisplayFrameWithAnimationName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -58085,7 +58085,7 @@ int lua_cocos2dx_Sprite_setDisplayFrameWithAnimationName(lua_State* tolua_S) int lua_cocos2dx_Sprite_getBatchNode(lua_State* tolua_S) { int argc = 0; - cocos2d::Sprite* cobj = nullptr; + axis::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -58097,7 +58097,7 @@ int lua_cocos2dx_Sprite_getBatchNode(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -58115,8 +58115,8 @@ int lua_cocos2dx_Sprite_getBatchNode(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_getBatchNode'", nullptr); return 0; } - cocos2d::SpriteBatchNode* ret = cobj->getBatchNode(); - object_to_luaval(tolua_S, "cc.SpriteBatchNode",(cocos2d::SpriteBatchNode*)ret); + axis::SpriteBatchNode* ret = cobj->getBatchNode(); + object_to_luaval(tolua_S, "cc.SpriteBatchNode",(axis::SpriteBatchNode*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:getBatchNode",argc, 0); @@ -58132,7 +58132,7 @@ int lua_cocos2dx_Sprite_getBatchNode(lua_State* tolua_S) int lua_cocos2dx_Sprite_getOffsetPosition(lua_State* tolua_S) { int argc = 0; - cocos2d::Sprite* cobj = nullptr; + axis::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -58144,7 +58144,7 @@ int lua_cocos2dx_Sprite_getOffsetPosition(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -58162,7 +58162,7 @@ int lua_cocos2dx_Sprite_getOffsetPosition(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_getOffsetPosition'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getOffsetPosition(); + const axis::Vec2& ret = cobj->getOffsetPosition(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -58179,7 +58179,7 @@ int lua_cocos2dx_Sprite_getOffsetPosition(lua_State* tolua_S) int lua_cocos2dx_Sprite_getCenterRect(lua_State* tolua_S) { int argc = 0; - cocos2d::Sprite* cobj = nullptr; + axis::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -58191,7 +58191,7 @@ int lua_cocos2dx_Sprite_getCenterRect(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -58209,7 +58209,7 @@ int lua_cocos2dx_Sprite_getCenterRect(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_getCenterRect'", nullptr); return 0; } - cocos2d::Rect ret = cobj->getCenterRect(); + axis::Rect ret = cobj->getCenterRect(); rect_to_luaval(tolua_S, ret); return 1; } @@ -58226,7 +58226,7 @@ int lua_cocos2dx_Sprite_getCenterRect(lua_State* tolua_S) int lua_cocos2dx_Sprite_setCenterRectNormalized(lua_State* tolua_S) { int argc = 0; - cocos2d::Sprite* cobj = nullptr; + axis::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -58238,7 +58238,7 @@ int lua_cocos2dx_Sprite_setCenterRectNormalized(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -58251,7 +58251,7 @@ int lua_cocos2dx_Sprite_setCenterRectNormalized(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Rect arg0; + axis::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "cc.Sprite:setCenterRectNormalized"); if(!ok) @@ -58276,7 +58276,7 @@ int lua_cocos2dx_Sprite_setCenterRectNormalized(lua_State* tolua_S) int lua_cocos2dx_Sprite_isStretchEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::Sprite* cobj = nullptr; + axis::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -58288,7 +58288,7 @@ int lua_cocos2dx_Sprite_isStretchEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -58323,7 +58323,7 @@ int lua_cocos2dx_Sprite_isStretchEnabled(lua_State* tolua_S) int lua_cocos2dx_Sprite_setTextureRect(lua_State* tolua_S) { int argc = 0; - cocos2d::Sprite* cobj = nullptr; + axis::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -58332,7 +58332,7 @@ int lua_cocos2dx_Sprite_setTextureRect(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -58343,7 +58343,7 @@ int lua_cocos2dx_Sprite_setTextureRect(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 3) { - cocos2d::Rect arg0; + axis::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "cc.Sprite:setTextureRect"); if (!ok) { break; } @@ -58351,7 +58351,7 @@ int lua_cocos2dx_Sprite_setTextureRect(lua_State* tolua_S) ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.Sprite:setTextureRect"); if (!ok) { break; } - cocos2d::Vec2 arg2; + axis::Vec2 arg2; ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.Sprite:setTextureRect"); if (!ok) { break; } @@ -58363,7 +58363,7 @@ int lua_cocos2dx_Sprite_setTextureRect(lua_State* tolua_S) ok = true; do{ if (argc == 1) { - cocos2d::Rect arg0; + axis::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "cc.Sprite:setTextureRect"); if (!ok) { break; } @@ -58386,7 +58386,7 @@ int lua_cocos2dx_Sprite_setTextureRect(lua_State* tolua_S) int lua_cocos2dx_Sprite_initWithSpriteFrameName(lua_State* tolua_S) { int argc = 0; - cocos2d::Sprite* cobj = nullptr; + axis::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -58398,7 +58398,7 @@ int lua_cocos2dx_Sprite_initWithSpriteFrameName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -58436,7 +58436,7 @@ int lua_cocos2dx_Sprite_initWithSpriteFrameName(lua_State* tolua_S) int lua_cocos2dx_Sprite_setStretchEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::Sprite* cobj = nullptr; + axis::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -58448,7 +58448,7 @@ int lua_cocos2dx_Sprite_setStretchEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -58486,7 +58486,7 @@ int lua_cocos2dx_Sprite_setStretchEnabled(lua_State* tolua_S) int lua_cocos2dx_Sprite_isFrameDisplayed(lua_State* tolua_S) { int argc = 0; - cocos2d::Sprite* cobj = nullptr; + axis::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -58498,7 +58498,7 @@ int lua_cocos2dx_Sprite_isFrameDisplayed(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -58511,9 +58511,9 @@ int lua_cocos2dx_Sprite_isFrameDisplayed(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::SpriteFrame* arg0; + axis::SpriteFrame* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.Sprite:isFrameDisplayed"); + ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.Sprite:isFrameDisplayed"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_isFrameDisplayed'", nullptr); @@ -58536,7 +58536,7 @@ int lua_cocos2dx_Sprite_isFrameDisplayed(lua_State* tolua_S) int lua_cocos2dx_Sprite_getAtlasIndex(lua_State* tolua_S) { int argc = 0; - cocos2d::Sprite* cobj = nullptr; + axis::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -58548,7 +58548,7 @@ int lua_cocos2dx_Sprite_getAtlasIndex(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -58583,7 +58583,7 @@ int lua_cocos2dx_Sprite_getAtlasIndex(lua_State* tolua_S) int lua_cocos2dx_Sprite_setTextureAtlas(lua_State* tolua_S) { int argc = 0; - cocos2d::Sprite* cobj = nullptr; + axis::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -58595,7 +58595,7 @@ int lua_cocos2dx_Sprite_setTextureAtlas(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -58608,9 +58608,9 @@ int lua_cocos2dx_Sprite_setTextureAtlas(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::TextureAtlas* arg0; + axis::TextureAtlas* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.TextureAtlas",&arg0, "cc.Sprite:setTextureAtlas"); + ok &= luaval_to_object(tolua_S, 2, "cc.TextureAtlas",&arg0, "cc.Sprite:setTextureAtlas"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_setTextureAtlas'", nullptr); @@ -58633,7 +58633,7 @@ int lua_cocos2dx_Sprite_setTextureAtlas(lua_State* tolua_S) int lua_cocos2dx_Sprite_setBatchNode(lua_State* tolua_S) { int argc = 0; - cocos2d::Sprite* cobj = nullptr; + axis::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -58645,7 +58645,7 @@ int lua_cocos2dx_Sprite_setBatchNode(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -58658,9 +58658,9 @@ int lua_cocos2dx_Sprite_setBatchNode(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::SpriteBatchNode* arg0; + axis::SpriteBatchNode* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.SpriteBatchNode",&arg0, "cc.Sprite:setBatchNode"); + ok &= luaval_to_object(tolua_S, 2, "cc.SpriteBatchNode",&arg0, "cc.Sprite:setBatchNode"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_setBatchNode'", nullptr); @@ -58683,7 +58683,7 @@ int lua_cocos2dx_Sprite_setBatchNode(lua_State* tolua_S) int lua_cocos2dx_Sprite_getBlendFunc(lua_State* tolua_S) { int argc = 0; - cocos2d::Sprite* cobj = nullptr; + axis::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -58695,7 +58695,7 @@ int lua_cocos2dx_Sprite_getBlendFunc(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -58713,7 +58713,7 @@ int lua_cocos2dx_Sprite_getBlendFunc(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_getBlendFunc'", nullptr); return 0; } - const cocos2d::BlendFunc& ret = cobj->getBlendFunc(); + const axis::BlendFunc& ret = cobj->getBlendFunc(); blendfunc_to_luaval(tolua_S, ret); return 1; } @@ -58730,7 +58730,7 @@ int lua_cocos2dx_Sprite_getBlendFunc(lua_State* tolua_S) int lua_cocos2dx_Sprite_setCenterRect(lua_State* tolua_S) { int argc = 0; - cocos2d::Sprite* cobj = nullptr; + axis::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -58742,7 +58742,7 @@ int lua_cocos2dx_Sprite_setCenterRect(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -58755,7 +58755,7 @@ int lua_cocos2dx_Sprite_setCenterRect(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Rect arg0; + axis::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "cc.Sprite:setCenterRect"); if(!ok) @@ -58780,7 +58780,7 @@ int lua_cocos2dx_Sprite_setCenterRect(lua_State* tolua_S) int lua_cocos2dx_Sprite_getSpriteFrame(lua_State* tolua_S) { int argc = 0; - cocos2d::Sprite* cobj = nullptr; + axis::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -58792,7 +58792,7 @@ int lua_cocos2dx_Sprite_getSpriteFrame(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -58810,8 +58810,8 @@ int lua_cocos2dx_Sprite_getSpriteFrame(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_getSpriteFrame'", nullptr); return 0; } - cocos2d::SpriteFrame* ret = cobj->getSpriteFrame(); - object_to_luaval(tolua_S, "cc.SpriteFrame",(cocos2d::SpriteFrame*)ret); + axis::SpriteFrame* ret = cobj->getSpriteFrame(); + object_to_luaval(tolua_S, "cc.SpriteFrame",(axis::SpriteFrame*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:getSpriteFrame",argc, 0); @@ -58827,7 +58827,7 @@ int lua_cocos2dx_Sprite_getSpriteFrame(lua_State* tolua_S) int lua_cocos2dx_Sprite_setVertexLayout(lua_State* tolua_S) { int argc = 0; - cocos2d::Sprite* cobj = nullptr; + axis::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -58839,7 +58839,7 @@ int lua_cocos2dx_Sprite_setVertexLayout(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -58874,7 +58874,7 @@ int lua_cocos2dx_Sprite_setVertexLayout(lua_State* tolua_S) int lua_cocos2dx_Sprite_removeAllChildrenWithCleanup(lua_State* tolua_S) { int argc = 0; - cocos2d::Sprite* cobj = nullptr; + axis::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -58886,7 +58886,7 @@ int lua_cocos2dx_Sprite_removeAllChildrenWithCleanup(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -58924,7 +58924,7 @@ int lua_cocos2dx_Sprite_removeAllChildrenWithCleanup(lua_State* tolua_S) int lua_cocos2dx_Sprite_getResourceName(lua_State* tolua_S) { int argc = 0; - cocos2d::Sprite* cobj = nullptr; + axis::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -58936,7 +58936,7 @@ int lua_cocos2dx_Sprite_getResourceName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -58971,7 +58971,7 @@ int lua_cocos2dx_Sprite_getResourceName(lua_State* tolua_S) int lua_cocos2dx_Sprite_isDirty(lua_State* tolua_S) { int argc = 0; - cocos2d::Sprite* cobj = nullptr; + axis::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -58983,7 +58983,7 @@ int lua_cocos2dx_Sprite_isDirty(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -59018,7 +59018,7 @@ int lua_cocos2dx_Sprite_isDirty(lua_State* tolua_S) int lua_cocos2dx_Sprite_getCenterRectNormalized(lua_State* tolua_S) { int argc = 0; - cocos2d::Sprite* cobj = nullptr; + axis::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -59030,7 +59030,7 @@ int lua_cocos2dx_Sprite_getCenterRectNormalized(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -59048,7 +59048,7 @@ int lua_cocos2dx_Sprite_getCenterRectNormalized(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_getCenterRectNormalized'", nullptr); return 0; } - cocos2d::Rect ret = cobj->getCenterRectNormalized(); + axis::Rect ret = cobj->getCenterRectNormalized(); rect_to_luaval(tolua_S, ret); return 1; } @@ -59065,7 +59065,7 @@ int lua_cocos2dx_Sprite_getCenterRectNormalized(lua_State* tolua_S) int lua_cocos2dx_Sprite_setAtlasIndex(lua_State* tolua_S) { int argc = 0; - cocos2d::Sprite* cobj = nullptr; + axis::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -59077,7 +59077,7 @@ int lua_cocos2dx_Sprite_setAtlasIndex(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -59115,7 +59115,7 @@ int lua_cocos2dx_Sprite_setAtlasIndex(lua_State* tolua_S) int lua_cocos2dx_Sprite_initWithTexture(lua_State* tolua_S) { int argc = 0; - cocos2d::Sprite* cobj = nullptr; + axis::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -59124,7 +59124,7 @@ int lua_cocos2dx_Sprite_initWithTexture(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -59135,11 +59135,11 @@ int lua_cocos2dx_Sprite_initWithTexture(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { - cocos2d::Texture2D* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.Sprite:initWithTexture"); + axis::Texture2D* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.Sprite:initWithTexture"); if (!ok) { break; } - cocos2d::Rect arg1; + axis::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.Sprite:initWithTexture"); if (!ok) { break; } @@ -59151,8 +59151,8 @@ int lua_cocos2dx_Sprite_initWithTexture(lua_State* tolua_S) ok = true; do{ if (argc == 1) { - cocos2d::Texture2D* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.Sprite:initWithTexture"); + axis::Texture2D* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.Sprite:initWithTexture"); if (!ok) { break; } bool ret = cobj->initWithTexture(arg0); @@ -59163,11 +59163,11 @@ int lua_cocos2dx_Sprite_initWithTexture(lua_State* tolua_S) ok = true; do{ if (argc == 3) { - cocos2d::Texture2D* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.Sprite:initWithTexture"); + axis::Texture2D* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.Sprite:initWithTexture"); if (!ok) { break; } - cocos2d::Rect arg1; + axis::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.Sprite:initWithTexture"); if (!ok) { break; } @@ -59194,7 +59194,7 @@ int lua_cocos2dx_Sprite_initWithTexture(lua_State* tolua_S) int lua_cocos2dx_Sprite_setDirty(lua_State* tolua_S) { int argc = 0; - cocos2d::Sprite* cobj = nullptr; + axis::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -59206,7 +59206,7 @@ int lua_cocos2dx_Sprite_setDirty(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -59244,7 +59244,7 @@ int lua_cocos2dx_Sprite_setDirty(lua_State* tolua_S) int lua_cocos2dx_Sprite_isTextureRectRotated(lua_State* tolua_S) { int argc = 0; - cocos2d::Sprite* cobj = nullptr; + axis::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -59256,7 +59256,7 @@ int lua_cocos2dx_Sprite_isTextureRectRotated(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -59291,7 +59291,7 @@ int lua_cocos2dx_Sprite_isTextureRectRotated(lua_State* tolua_S) int lua_cocos2dx_Sprite_getTextureRect(lua_State* tolua_S) { int argc = 0; - cocos2d::Sprite* cobj = nullptr; + axis::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -59303,7 +59303,7 @@ int lua_cocos2dx_Sprite_getTextureRect(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -59321,7 +59321,7 @@ int lua_cocos2dx_Sprite_getTextureRect(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_getTextureRect'", nullptr); return 0; } - const cocos2d::Rect& ret = cobj->getTextureRect(); + const axis::Rect& ret = cobj->getTextureRect(); rect_to_luaval(tolua_S, ret); return 1; } @@ -59338,7 +59338,7 @@ int lua_cocos2dx_Sprite_getTextureRect(lua_State* tolua_S) int lua_cocos2dx_Sprite_initWithFile(lua_State* tolua_S) { int argc = 0; - cocos2d::Sprite* cobj = nullptr; + axis::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -59347,7 +59347,7 @@ int lua_cocos2dx_Sprite_initWithFile(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -59362,7 +59362,7 @@ int lua_cocos2dx_Sprite_initWithFile(lua_State* tolua_S) ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.Sprite:initWithFile"); if (!ok) { break; } - cocos2d::backend::PixelFormat arg1; + axis::backend::PixelFormat arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Sprite:initWithFile"); if (!ok) { break; } @@ -59390,7 +59390,7 @@ int lua_cocos2dx_Sprite_initWithFile(lua_State* tolua_S) ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.Sprite:initWithFile"); if (!ok) { break; } - cocos2d::Rect arg1; + axis::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.Sprite:initWithFile"); if (!ok) { break; } @@ -59413,7 +59413,7 @@ int lua_cocos2dx_Sprite_initWithFile(lua_State* tolua_S) int lua_cocos2dx_Sprite_setBlendFunc(lua_State* tolua_S) { int argc = 0; - cocos2d::Sprite* cobj = nullptr; + axis::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -59425,7 +59425,7 @@ int lua_cocos2dx_Sprite_setBlendFunc(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -59438,7 +59438,7 @@ int lua_cocos2dx_Sprite_setBlendFunc(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::BlendFunc arg0; + axis::BlendFunc arg0; ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "cc.Sprite:setBlendFunc"); if(!ok) @@ -59463,7 +59463,7 @@ int lua_cocos2dx_Sprite_setBlendFunc(lua_State* tolua_S) int lua_cocos2dx_Sprite_getTextureAtlas(lua_State* tolua_S) { int argc = 0; - cocos2d::Sprite* cobj = nullptr; + axis::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -59475,7 +59475,7 @@ int lua_cocos2dx_Sprite_getTextureAtlas(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -59493,8 +59493,8 @@ int lua_cocos2dx_Sprite_getTextureAtlas(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_getTextureAtlas'", nullptr); return 0; } - cocos2d::TextureAtlas* ret = cobj->getTextureAtlas(); - object_to_luaval(tolua_S, "cc.TextureAtlas",(cocos2d::TextureAtlas*)ret); + axis::TextureAtlas* ret = cobj->getTextureAtlas(); + object_to_luaval(tolua_S, "cc.TextureAtlas",(axis::TextureAtlas*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Sprite:getTextureAtlas",argc, 0); @@ -59510,7 +59510,7 @@ int lua_cocos2dx_Sprite_getTextureAtlas(lua_State* tolua_S) int lua_cocos2dx_Sprite_initWithSpriteFrame(lua_State* tolua_S) { int argc = 0; - cocos2d::Sprite* cobj = nullptr; + axis::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -59522,7 +59522,7 @@ int lua_cocos2dx_Sprite_initWithSpriteFrame(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -59535,9 +59535,9 @@ int lua_cocos2dx_Sprite_initWithSpriteFrame(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::SpriteFrame* arg0; + axis::SpriteFrame* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.Sprite:initWithSpriteFrame"); + ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.Sprite:initWithSpriteFrame"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_initWithSpriteFrame'", nullptr); @@ -59560,7 +59560,7 @@ int lua_cocos2dx_Sprite_initWithSpriteFrame(lua_State* tolua_S) int lua_cocos2dx_Sprite_isFlippedX(lua_State* tolua_S) { int argc = 0; - cocos2d::Sprite* cobj = nullptr; + axis::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -59572,7 +59572,7 @@ int lua_cocos2dx_Sprite_isFlippedX(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -59607,7 +59607,7 @@ int lua_cocos2dx_Sprite_isFlippedX(lua_State* tolua_S) int lua_cocos2dx_Sprite_isFlippedY(lua_State* tolua_S) { int argc = 0; - cocos2d::Sprite* cobj = nullptr; + axis::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -59619,7 +59619,7 @@ int lua_cocos2dx_Sprite_isFlippedY(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -59654,7 +59654,7 @@ int lua_cocos2dx_Sprite_isFlippedY(lua_State* tolua_S) int lua_cocos2dx_Sprite_setVertexRect(lua_State* tolua_S) { int argc = 0; - cocos2d::Sprite* cobj = nullptr; + axis::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -59666,7 +59666,7 @@ int lua_cocos2dx_Sprite_setVertexRect(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -59679,7 +59679,7 @@ int lua_cocos2dx_Sprite_setVertexRect(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Rect arg0; + axis::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "cc.Sprite:setVertexRect"); if(!ok) @@ -59719,14 +59719,14 @@ int lua_cocos2dx_Sprite_createWithTexture(lua_State* tolua_S) { if (argc == 2) { - cocos2d::Texture2D* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.Sprite:createWithTexture"); + axis::Texture2D* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.Sprite:createWithTexture"); if (!ok) { break; } - cocos2d::Rect arg1; + axis::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.Sprite:createWithTexture"); if (!ok) { break; } - cocos2d::Sprite* ret = cocos2d::Sprite::createWithTexture(arg0, arg1); - object_to_luaval(tolua_S, "cc.Sprite",(cocos2d::Sprite*)ret); + axis::Sprite* ret = axis::Sprite::createWithTexture(arg0, arg1); + object_to_luaval(tolua_S, "cc.Sprite",(axis::Sprite*)ret); return 1; } } while (0); @@ -59735,17 +59735,17 @@ int lua_cocos2dx_Sprite_createWithTexture(lua_State* tolua_S) { if (argc == 3) { - cocos2d::Texture2D* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.Sprite:createWithTexture"); + axis::Texture2D* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.Sprite:createWithTexture"); if (!ok) { break; } - cocos2d::Rect arg1; + axis::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.Sprite:createWithTexture"); if (!ok) { break; } bool arg2; ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.Sprite:createWithTexture"); if (!ok) { break; } - cocos2d::Sprite* ret = cocos2d::Sprite::createWithTexture(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.Sprite",(cocos2d::Sprite*)ret); + axis::Sprite* ret = axis::Sprite::createWithTexture(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.Sprite",(axis::Sprite*)ret); return 1; } } while (0); @@ -59754,11 +59754,11 @@ int lua_cocos2dx_Sprite_createWithTexture(lua_State* tolua_S) { if (argc == 1) { - cocos2d::Texture2D* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.Sprite:createWithTexture"); + axis::Texture2D* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.Sprite:createWithTexture"); if (!ok) { break; } - cocos2d::Sprite* ret = cocos2d::Sprite::createWithTexture(arg0); - object_to_luaval(tolua_S, "cc.Sprite",(cocos2d::Sprite*)ret); + axis::Sprite* ret = axis::Sprite::createWithTexture(arg0); + object_to_luaval(tolua_S, "cc.Sprite",(axis::Sprite*)ret); return 1; } } while (0); @@ -59795,8 +59795,8 @@ int lua_cocos2dx_Sprite_createWithSpriteFrameName(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_createWithSpriteFrameName'", nullptr); return 0; } - cocos2d::Sprite* ret = cocos2d::Sprite::createWithSpriteFrameName(arg0); - object_to_luaval(tolua_S, "cc.Sprite",(cocos2d::Sprite*)ret); + axis::Sprite* ret = axis::Sprite::createWithSpriteFrameName(arg0); + object_to_luaval(tolua_S, "cc.Sprite",(axis::Sprite*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Sprite:createWithSpriteFrameName",argc, 1); @@ -59824,15 +59824,15 @@ int lua_cocos2dx_Sprite_createWithSpriteFrame(lua_State* tolua_S) if (argc == 1) { - cocos2d::SpriteFrame* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.Sprite:createWithSpriteFrame"); + axis::SpriteFrame* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.Sprite:createWithSpriteFrame"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_createWithSpriteFrame'", nullptr); return 0; } - cocos2d::Sprite* ret = cocos2d::Sprite::createWithSpriteFrame(arg0); - object_to_luaval(tolua_S, "cc.Sprite",(cocos2d::Sprite*)ret); + axis::Sprite* ret = axis::Sprite::createWithSpriteFrame(arg0); + object_to_luaval(tolua_S, "cc.Sprite",(axis::Sprite*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Sprite:createWithSpriteFrame",argc, 1); @@ -59846,7 +59846,7 @@ int lua_cocos2dx_Sprite_createWithSpriteFrame(lua_State* tolua_S) int lua_cocos2dx_Sprite_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Sprite* cobj = nullptr; + axis::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -59863,7 +59863,7 @@ int lua_cocos2dx_Sprite_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Sprite_constructor'", nullptr); return 0; } - cobj = new cocos2d::Sprite(); + cobj = new axis::Sprite(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -59936,7 +59936,7 @@ int lua_register_cocos2dx_Sprite(lua_State* tolua_S) tolua_function(tolua_S,"createWithSpriteFrameName", lua_cocos2dx_Sprite_createWithSpriteFrameName); tolua_function(tolua_S,"createWithSpriteFrame", lua_cocos2dx_Sprite_createWithSpriteFrame); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Sprite).name(); // rtti is literal storage + auto typeName = typeid(axis::Sprite).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Sprite"; g_typeCast[typeName] = "cc.Sprite"; return 1; @@ -59964,8 +59964,8 @@ int lua_cocos2dx_Layer_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Layer_create'", nullptr); return 0; } - cocos2d::Layer* ret = cocos2d::Layer::create(); - object_to_luaval(tolua_S, "cc.Layer",(cocos2d::Layer*)ret); + axis::Layer* ret = axis::Layer::create(); + object_to_luaval(tolua_S, "cc.Layer",(axis::Layer*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Layer:create",argc, 0); @@ -59990,7 +59990,7 @@ int lua_register_cocos2dx_Layer(lua_State* tolua_S) tolua_beginmodule(tolua_S,"Layer"); tolua_function(tolua_S,"create", lua_cocos2dx_Layer_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Layer).name(); // rtti is literal storage + auto typeName = typeid(axis::Layer).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Layer"; g_typeCast[typeName] = "cc.Layer"; return 1; @@ -59999,7 +59999,7 @@ int lua_register_cocos2dx_Layer(lua_State* tolua_S) int lua_cocos2dx_LayerColor_changeWidthAndHeight(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerColor* cobj = nullptr; + axis::LayerColor* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -60011,7 +60011,7 @@ int lua_cocos2dx_LayerColor_changeWidthAndHeight(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.LayerColor",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LayerColor*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LayerColor*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -60052,7 +60052,7 @@ int lua_cocos2dx_LayerColor_changeWidthAndHeight(lua_State* tolua_S) int lua_cocos2dx_LayerColor_changeHeight(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerColor* cobj = nullptr; + axis::LayerColor* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -60064,7 +60064,7 @@ int lua_cocos2dx_LayerColor_changeHeight(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.LayerColor",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LayerColor*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LayerColor*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -60102,7 +60102,7 @@ int lua_cocos2dx_LayerColor_changeHeight(lua_State* tolua_S) int lua_cocos2dx_LayerColor_initWithColor(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerColor* cobj = nullptr; + axis::LayerColor* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -60111,7 +60111,7 @@ int lua_cocos2dx_LayerColor_initWithColor(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerColor",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LayerColor*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LayerColor*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -60122,7 +60122,7 @@ int lua_cocos2dx_LayerColor_initWithColor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { - cocos2d::Color4B arg0; + axis::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.LayerColor:initWithColor"); if (!ok) { break; } @@ -60134,7 +60134,7 @@ int lua_cocos2dx_LayerColor_initWithColor(lua_State* tolua_S) ok = true; do{ if (argc == 3) { - cocos2d::Color4B arg0; + axis::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.LayerColor:initWithColor"); if (!ok) { break; } @@ -60165,7 +60165,7 @@ int lua_cocos2dx_LayerColor_initWithColor(lua_State* tolua_S) int lua_cocos2dx_LayerColor_changeWidth(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerColor* cobj = nullptr; + axis::LayerColor* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -60177,7 +60177,7 @@ int lua_cocos2dx_LayerColor_changeWidth(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.LayerColor",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LayerColor*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LayerColor*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -60230,7 +60230,7 @@ int lua_cocos2dx_LayerColor_create(lua_State* tolua_S) { if (argc == 3) { - cocos2d::Color4B arg0; + axis::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.LayerColor:create"); if (!ok) { break; } double arg1; @@ -60239,8 +60239,8 @@ int lua_cocos2dx_LayerColor_create(lua_State* tolua_S) double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.LayerColor:create"); if (!ok) { break; } - cocos2d::LayerColor* ret = cocos2d::LayerColor::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.LayerColor",(cocos2d::LayerColor*)ret); + axis::LayerColor* ret = axis::LayerColor::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.LayerColor",(axis::LayerColor*)ret); return 1; } } while (0); @@ -60249,8 +60249,8 @@ int lua_cocos2dx_LayerColor_create(lua_State* tolua_S) { if (argc == 0) { - cocos2d::LayerColor* ret = cocos2d::LayerColor::create(); - object_to_luaval(tolua_S, "cc.LayerColor",(cocos2d::LayerColor*)ret); + axis::LayerColor* ret = axis::LayerColor::create(); + object_to_luaval(tolua_S, "cc.LayerColor",(axis::LayerColor*)ret); return 1; } } while (0); @@ -60259,11 +60259,11 @@ int lua_cocos2dx_LayerColor_create(lua_State* tolua_S) { if (argc == 1) { - cocos2d::Color4B arg0; + axis::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.LayerColor:create"); if (!ok) { break; } - cocos2d::LayerColor* ret = cocos2d::LayerColor::create(arg0); - object_to_luaval(tolua_S, "cc.LayerColor",(cocos2d::LayerColor*)ret); + axis::LayerColor* ret = axis::LayerColor::create(arg0); + object_to_luaval(tolua_S, "cc.LayerColor",(axis::LayerColor*)ret); return 1; } } while (0); @@ -60279,7 +60279,7 @@ int lua_cocos2dx_LayerColor_create(lua_State* tolua_S) int lua_cocos2dx_LayerColor_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerColor* cobj = nullptr; + axis::LayerColor* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -60296,7 +60296,7 @@ int lua_cocos2dx_LayerColor_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerColor_constructor'", nullptr); return 0; } - cobj = new cocos2d::LayerColor(); + cobj = new axis::LayerColor(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -60332,7 +60332,7 @@ int lua_register_cocos2dx_LayerColor(lua_State* tolua_S) tolua_function(tolua_S,"changeWidth",lua_cocos2dx_LayerColor_changeWidth); tolua_function(tolua_S,"create", lua_cocos2dx_LayerColor_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::LayerColor).name(); // rtti is literal storage + auto typeName = typeid(axis::LayerColor).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.LayerColor"; g_typeCast[typeName] = "cc.LayerColor"; return 1; @@ -60341,7 +60341,7 @@ int lua_register_cocos2dx_LayerColor(lua_State* tolua_S) int lua_cocos2dx_LayerGradient_getStartColor(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerGradient* cobj = nullptr; + axis::LayerGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -60353,7 +60353,7 @@ int lua_cocos2dx_LayerGradient_getStartColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LayerGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -60371,7 +60371,7 @@ int lua_cocos2dx_LayerGradient_getStartColor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerGradient_getStartColor'", nullptr); return 0; } - const cocos2d::Color3B& ret = cobj->getStartColor(); + const axis::Color3B& ret = cobj->getStartColor(); color3b_to_luaval(tolua_S, ret); return 1; } @@ -60388,7 +60388,7 @@ int lua_cocos2dx_LayerGradient_getStartColor(lua_State* tolua_S) int lua_cocos2dx_LayerGradient_isCompressedInterpolation(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerGradient* cobj = nullptr; + axis::LayerGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -60400,7 +60400,7 @@ int lua_cocos2dx_LayerGradient_isCompressedInterpolation(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LayerGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -60435,7 +60435,7 @@ int lua_cocos2dx_LayerGradient_isCompressedInterpolation(lua_State* tolua_S) int lua_cocos2dx_LayerGradient_getStartOpacity(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerGradient* cobj = nullptr; + axis::LayerGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -60447,7 +60447,7 @@ int lua_cocos2dx_LayerGradient_getStartOpacity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LayerGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -60482,7 +60482,7 @@ int lua_cocos2dx_LayerGradient_getStartOpacity(lua_State* tolua_S) int lua_cocos2dx_LayerGradient_setVector(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerGradient* cobj = nullptr; + axis::LayerGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -60494,7 +60494,7 @@ int lua_cocos2dx_LayerGradient_setVector(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LayerGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -60507,7 +60507,7 @@ int lua_cocos2dx_LayerGradient_setVector(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.LayerGradient:setVector"); if(!ok) @@ -60532,7 +60532,7 @@ int lua_cocos2dx_LayerGradient_setVector(lua_State* tolua_S) int lua_cocos2dx_LayerGradient_setStartOpacity(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerGradient* cobj = nullptr; + axis::LayerGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -60544,7 +60544,7 @@ int lua_cocos2dx_LayerGradient_setStartOpacity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LayerGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -60582,7 +60582,7 @@ int lua_cocos2dx_LayerGradient_setStartOpacity(lua_State* tolua_S) int lua_cocos2dx_LayerGradient_setCompressedInterpolation(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerGradient* cobj = nullptr; + axis::LayerGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -60594,7 +60594,7 @@ int lua_cocos2dx_LayerGradient_setCompressedInterpolation(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LayerGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -60632,7 +60632,7 @@ int lua_cocos2dx_LayerGradient_setCompressedInterpolation(lua_State* tolua_S) int lua_cocos2dx_LayerGradient_setEndOpacity(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerGradient* cobj = nullptr; + axis::LayerGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -60644,7 +60644,7 @@ int lua_cocos2dx_LayerGradient_setEndOpacity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LayerGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -60682,7 +60682,7 @@ int lua_cocos2dx_LayerGradient_setEndOpacity(lua_State* tolua_S) int lua_cocos2dx_LayerGradient_getVector(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerGradient* cobj = nullptr; + axis::LayerGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -60694,7 +60694,7 @@ int lua_cocos2dx_LayerGradient_getVector(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LayerGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -60712,7 +60712,7 @@ int lua_cocos2dx_LayerGradient_getVector(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerGradient_getVector'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getVector(); + const axis::Vec2& ret = cobj->getVector(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -60729,7 +60729,7 @@ int lua_cocos2dx_LayerGradient_getVector(lua_State* tolua_S) int lua_cocos2dx_LayerGradient_setEndColor(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerGradient* cobj = nullptr; + axis::LayerGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -60741,7 +60741,7 @@ int lua_cocos2dx_LayerGradient_setEndColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LayerGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -60754,7 +60754,7 @@ int lua_cocos2dx_LayerGradient_setEndColor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Color3B arg0; + axis::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "cc.LayerGradient:setEndColor"); if(!ok) @@ -60779,7 +60779,7 @@ int lua_cocos2dx_LayerGradient_setEndColor(lua_State* tolua_S) int lua_cocos2dx_LayerGradient_initWithColor(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerGradient* cobj = nullptr; + axis::LayerGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -60788,7 +60788,7 @@ int lua_cocos2dx_LayerGradient_initWithColor(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LayerGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -60799,15 +60799,15 @@ int lua_cocos2dx_LayerGradient_initWithColor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 3) { - cocos2d::Color4B arg0; + axis::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.LayerGradient:initWithColor"); if (!ok) { break; } - cocos2d::Color4B arg1; + axis::Color4B arg1; ok &=luaval_to_color4b(tolua_S, 3, &arg1, "cc.LayerGradient:initWithColor"); if (!ok) { break; } - cocos2d::Vec2 arg2; + axis::Vec2 arg2; ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.LayerGradient:initWithColor"); if (!ok) { break; } @@ -60819,11 +60819,11 @@ int lua_cocos2dx_LayerGradient_initWithColor(lua_State* tolua_S) ok = true; do{ if (argc == 2) { - cocos2d::Color4B arg0; + axis::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.LayerGradient:initWithColor"); if (!ok) { break; } - cocos2d::Color4B arg1; + axis::Color4B arg1; ok &=luaval_to_color4b(tolua_S, 3, &arg1, "cc.LayerGradient:initWithColor"); if (!ok) { break; } @@ -60846,7 +60846,7 @@ int lua_cocos2dx_LayerGradient_initWithColor(lua_State* tolua_S) int lua_cocos2dx_LayerGradient_getEndColor(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerGradient* cobj = nullptr; + axis::LayerGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -60858,7 +60858,7 @@ int lua_cocos2dx_LayerGradient_getEndColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LayerGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -60876,7 +60876,7 @@ int lua_cocos2dx_LayerGradient_getEndColor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerGradient_getEndColor'", nullptr); return 0; } - const cocos2d::Color3B& ret = cobj->getEndColor(); + const axis::Color3B& ret = cobj->getEndColor(); color3b_to_luaval(tolua_S, ret); return 1; } @@ -60893,7 +60893,7 @@ int lua_cocos2dx_LayerGradient_getEndColor(lua_State* tolua_S) int lua_cocos2dx_LayerGradient_getEndOpacity(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerGradient* cobj = nullptr; + axis::LayerGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -60905,7 +60905,7 @@ int lua_cocos2dx_LayerGradient_getEndOpacity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LayerGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -60940,7 +60940,7 @@ int lua_cocos2dx_LayerGradient_getEndOpacity(lua_State* tolua_S) int lua_cocos2dx_LayerGradient_setStartColor(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerGradient* cobj = nullptr; + axis::LayerGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -60952,7 +60952,7 @@ int lua_cocos2dx_LayerGradient_setStartColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.LayerGradient",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LayerGradient*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LayerGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -60965,7 +60965,7 @@ int lua_cocos2dx_LayerGradient_setStartColor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Color3B arg0; + axis::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "cc.LayerGradient:setStartColor"); if(!ok) @@ -61005,14 +61005,14 @@ int lua_cocos2dx_LayerGradient_create(lua_State* tolua_S) { if (argc == 2) { - cocos2d::Color4B arg0; + axis::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.LayerGradient:create"); if (!ok) { break; } - cocos2d::Color4B arg1; + axis::Color4B arg1; ok &=luaval_to_color4b(tolua_S, 3, &arg1, "cc.LayerGradient:create"); if (!ok) { break; } - cocos2d::LayerGradient* ret = cocos2d::LayerGradient::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.LayerGradient",(cocos2d::LayerGradient*)ret); + axis::LayerGradient* ret = axis::LayerGradient::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.LayerGradient",(axis::LayerGradient*)ret); return 1; } } while (0); @@ -61021,8 +61021,8 @@ int lua_cocos2dx_LayerGradient_create(lua_State* tolua_S) { if (argc == 0) { - cocos2d::LayerGradient* ret = cocos2d::LayerGradient::create(); - object_to_luaval(tolua_S, "cc.LayerGradient",(cocos2d::LayerGradient*)ret); + axis::LayerGradient* ret = axis::LayerGradient::create(); + object_to_luaval(tolua_S, "cc.LayerGradient",(axis::LayerGradient*)ret); return 1; } } while (0); @@ -61031,17 +61031,17 @@ int lua_cocos2dx_LayerGradient_create(lua_State* tolua_S) { if (argc == 3) { - cocos2d::Color4B arg0; + axis::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.LayerGradient:create"); if (!ok) { break; } - cocos2d::Color4B arg1; + axis::Color4B arg1; ok &=luaval_to_color4b(tolua_S, 3, &arg1, "cc.LayerGradient:create"); if (!ok) { break; } - cocos2d::Vec2 arg2; + axis::Vec2 arg2; ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.LayerGradient:create"); if (!ok) { break; } - cocos2d::LayerGradient* ret = cocos2d::LayerGradient::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.LayerGradient",(cocos2d::LayerGradient*)ret); + axis::LayerGradient* ret = axis::LayerGradient::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.LayerGradient",(axis::LayerGradient*)ret); return 1; } } while (0); @@ -61057,7 +61057,7 @@ int lua_cocos2dx_LayerGradient_create(lua_State* tolua_S) int lua_cocos2dx_LayerGradient_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerGradient* cobj = nullptr; + axis::LayerGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -61074,7 +61074,7 @@ int lua_cocos2dx_LayerGradient_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerGradient_constructor'", nullptr); return 0; } - cobj = new cocos2d::LayerGradient(); + cobj = new axis::LayerGradient(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -61119,7 +61119,7 @@ int lua_register_cocos2dx_LayerGradient(lua_State* tolua_S) tolua_function(tolua_S,"setStartColor",lua_cocos2dx_LayerGradient_setStartColor); tolua_function(tolua_S,"create", lua_cocos2dx_LayerGradient_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::LayerGradient).name(); // rtti is literal storage + auto typeName = typeid(axis::LayerGradient).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.LayerGradient"; g_typeCast[typeName] = "cc.LayerGradient"; return 1; @@ -61128,7 +61128,7 @@ int lua_register_cocos2dx_LayerGradient(lua_State* tolua_S) int lua_cocos2dx_LayerRadialGradient_getStartColor(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerRadialGradient* cobj = nullptr; + axis::LayerRadialGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -61140,7 +61140,7 @@ int lua_cocos2dx_LayerRadialGradient_getStartColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -61158,7 +61158,7 @@ int lua_cocos2dx_LayerRadialGradient_getStartColor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerRadialGradient_getStartColor'", nullptr); return 0; } - cocos2d::Color4B ret = cobj->getStartColor(); + axis::Color4B ret = cobj->getStartColor(); color4b_to_luaval(tolua_S, ret); return 1; } @@ -61175,7 +61175,7 @@ int lua_cocos2dx_LayerRadialGradient_getStartColor(lua_State* tolua_S) int lua_cocos2dx_LayerRadialGradient_getBlendFunc(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerRadialGradient* cobj = nullptr; + axis::LayerRadialGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -61187,7 +61187,7 @@ int lua_cocos2dx_LayerRadialGradient_getBlendFunc(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -61205,7 +61205,7 @@ int lua_cocos2dx_LayerRadialGradient_getBlendFunc(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerRadialGradient_getBlendFunc'", nullptr); return 0; } - const cocos2d::BlendFunc& ret = cobj->getBlendFunc(); + const axis::BlendFunc& ret = cobj->getBlendFunc(); blendfunc_to_luaval(tolua_S, ret); return 1; } @@ -61222,7 +61222,7 @@ int lua_cocos2dx_LayerRadialGradient_getBlendFunc(lua_State* tolua_S) int lua_cocos2dx_LayerRadialGradient_getStartColor3B(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerRadialGradient* cobj = nullptr; + axis::LayerRadialGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -61234,7 +61234,7 @@ int lua_cocos2dx_LayerRadialGradient_getStartColor3B(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -61252,7 +61252,7 @@ int lua_cocos2dx_LayerRadialGradient_getStartColor3B(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerRadialGradient_getStartColor3B'", nullptr); return 0; } - cocos2d::Color3B ret = cobj->getStartColor3B(); + axis::Color3B ret = cobj->getStartColor3B(); color3b_to_luaval(tolua_S, ret); return 1; } @@ -61269,7 +61269,7 @@ int lua_cocos2dx_LayerRadialGradient_getStartColor3B(lua_State* tolua_S) int lua_cocos2dx_LayerRadialGradient_getStartOpacity(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerRadialGradient* cobj = nullptr; + axis::LayerRadialGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -61281,7 +61281,7 @@ int lua_cocos2dx_LayerRadialGradient_getStartOpacity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -61316,7 +61316,7 @@ int lua_cocos2dx_LayerRadialGradient_getStartOpacity(lua_State* tolua_S) int lua_cocos2dx_LayerRadialGradient_setCenter(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerRadialGradient* cobj = nullptr; + axis::LayerRadialGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -61328,7 +61328,7 @@ int lua_cocos2dx_LayerRadialGradient_setCenter(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -61341,7 +61341,7 @@ int lua_cocos2dx_LayerRadialGradient_setCenter(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.LayerRadialGradient:setCenter"); if(!ok) @@ -61366,7 +61366,7 @@ int lua_cocos2dx_LayerRadialGradient_setCenter(lua_State* tolua_S) int lua_cocos2dx_LayerRadialGradient_getEndColor(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerRadialGradient* cobj = nullptr; + axis::LayerRadialGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -61378,7 +61378,7 @@ int lua_cocos2dx_LayerRadialGradient_getEndColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -61396,7 +61396,7 @@ int lua_cocos2dx_LayerRadialGradient_getEndColor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerRadialGradient_getEndColor'", nullptr); return 0; } - cocos2d::Color4B ret = cobj->getEndColor(); + axis::Color4B ret = cobj->getEndColor(); color4b_to_luaval(tolua_S, ret); return 1; } @@ -61413,7 +61413,7 @@ int lua_cocos2dx_LayerRadialGradient_getEndColor(lua_State* tolua_S) int lua_cocos2dx_LayerRadialGradient_setStartOpacity(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerRadialGradient* cobj = nullptr; + axis::LayerRadialGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -61425,7 +61425,7 @@ int lua_cocos2dx_LayerRadialGradient_setStartOpacity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -61463,7 +61463,7 @@ int lua_cocos2dx_LayerRadialGradient_setStartOpacity(lua_State* tolua_S) int lua_cocos2dx_LayerRadialGradient_getCenter(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerRadialGradient* cobj = nullptr; + axis::LayerRadialGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -61475,7 +61475,7 @@ int lua_cocos2dx_LayerRadialGradient_getCenter(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -61493,7 +61493,7 @@ int lua_cocos2dx_LayerRadialGradient_getCenter(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerRadialGradient_getCenter'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getCenter(); + axis::Vec2 ret = cobj->getCenter(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -61510,7 +61510,7 @@ int lua_cocos2dx_LayerRadialGradient_getCenter(lua_State* tolua_S) int lua_cocos2dx_LayerRadialGradient_setEndOpacity(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerRadialGradient* cobj = nullptr; + axis::LayerRadialGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -61522,7 +61522,7 @@ int lua_cocos2dx_LayerRadialGradient_setEndOpacity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -61560,7 +61560,7 @@ int lua_cocos2dx_LayerRadialGradient_setEndOpacity(lua_State* tolua_S) int lua_cocos2dx_LayerRadialGradient_setExpand(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerRadialGradient* cobj = nullptr; + axis::LayerRadialGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -61572,7 +61572,7 @@ int lua_cocos2dx_LayerRadialGradient_setExpand(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -61610,7 +61610,7 @@ int lua_cocos2dx_LayerRadialGradient_setExpand(lua_State* tolua_S) int lua_cocos2dx_LayerRadialGradient_getEndOpacity(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerRadialGradient* cobj = nullptr; + axis::LayerRadialGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -61622,7 +61622,7 @@ int lua_cocos2dx_LayerRadialGradient_getEndOpacity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -61657,7 +61657,7 @@ int lua_cocos2dx_LayerRadialGradient_getEndOpacity(lua_State* tolua_S) int lua_cocos2dx_LayerRadialGradient_initWithColor(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerRadialGradient* cobj = nullptr; + axis::LayerRadialGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -61669,7 +61669,7 @@ int lua_cocos2dx_LayerRadialGradient_initWithColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -61682,10 +61682,10 @@ int lua_cocos2dx_LayerRadialGradient_initWithColor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 5) { - cocos2d::Color4B arg0; - cocos2d::Color4B arg1; + axis::Color4B arg0; + axis::Color4B arg1; double arg2; - cocos2d::Vec2 arg3; + axis::Vec2 arg3; double arg4; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.LayerRadialGradient:initWithColor"); @@ -61719,7 +61719,7 @@ int lua_cocos2dx_LayerRadialGradient_initWithColor(lua_State* tolua_S) int lua_cocos2dx_LayerRadialGradient_setEndColor(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerRadialGradient* cobj = nullptr; + axis::LayerRadialGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -61728,7 +61728,7 @@ int lua_cocos2dx_LayerRadialGradient_setEndColor(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -61739,7 +61739,7 @@ int lua_cocos2dx_LayerRadialGradient_setEndColor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { - cocos2d::Color4B arg0; + axis::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.LayerRadialGradient:setEndColor"); if (!ok) { break; } @@ -61751,7 +61751,7 @@ int lua_cocos2dx_LayerRadialGradient_setEndColor(lua_State* tolua_S) ok = true; do{ if (argc == 1) { - cocos2d::Color3B arg0; + axis::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "cc.LayerRadialGradient:setEndColor"); if (!ok) { break; } @@ -61774,7 +61774,7 @@ int lua_cocos2dx_LayerRadialGradient_setEndColor(lua_State* tolua_S) int lua_cocos2dx_LayerRadialGradient_getEndColor3B(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerRadialGradient* cobj = nullptr; + axis::LayerRadialGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -61786,7 +61786,7 @@ int lua_cocos2dx_LayerRadialGradient_getEndColor3B(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -61804,7 +61804,7 @@ int lua_cocos2dx_LayerRadialGradient_getEndColor3B(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerRadialGradient_getEndColor3B'", nullptr); return 0; } - cocos2d::Color3B ret = cobj->getEndColor3B(); + axis::Color3B ret = cobj->getEndColor3B(); color3b_to_luaval(tolua_S, ret); return 1; } @@ -61821,7 +61821,7 @@ int lua_cocos2dx_LayerRadialGradient_getEndColor3B(lua_State* tolua_S) int lua_cocos2dx_LayerRadialGradient_setRadius(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerRadialGradient* cobj = nullptr; + axis::LayerRadialGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -61833,7 +61833,7 @@ int lua_cocos2dx_LayerRadialGradient_setRadius(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -61871,7 +61871,7 @@ int lua_cocos2dx_LayerRadialGradient_setRadius(lua_State* tolua_S) int lua_cocos2dx_LayerRadialGradient_setStartColor(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerRadialGradient* cobj = nullptr; + axis::LayerRadialGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -61880,7 +61880,7 @@ int lua_cocos2dx_LayerRadialGradient_setStartColor(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -61891,7 +61891,7 @@ int lua_cocos2dx_LayerRadialGradient_setStartColor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { - cocos2d::Color4B arg0; + axis::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.LayerRadialGradient:setStartColor"); if (!ok) { break; } @@ -61903,7 +61903,7 @@ int lua_cocos2dx_LayerRadialGradient_setStartColor(lua_State* tolua_S) ok = true; do{ if (argc == 1) { - cocos2d::Color3B arg0; + axis::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "cc.LayerRadialGradient:setStartColor"); if (!ok) { break; } @@ -61926,7 +61926,7 @@ int lua_cocos2dx_LayerRadialGradient_setStartColor(lua_State* tolua_S) int lua_cocos2dx_LayerRadialGradient_getExpand(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerRadialGradient* cobj = nullptr; + axis::LayerRadialGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -61938,7 +61938,7 @@ int lua_cocos2dx_LayerRadialGradient_getExpand(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -61973,7 +61973,7 @@ int lua_cocos2dx_LayerRadialGradient_getExpand(lua_State* tolua_S) int lua_cocos2dx_LayerRadialGradient_setBlendFunc(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerRadialGradient* cobj = nullptr; + axis::LayerRadialGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -61985,7 +61985,7 @@ int lua_cocos2dx_LayerRadialGradient_setBlendFunc(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -61998,7 +61998,7 @@ int lua_cocos2dx_LayerRadialGradient_setBlendFunc(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::BlendFunc arg0; + axis::BlendFunc arg0; ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "cc.LayerRadialGradient:setBlendFunc"); if(!ok) @@ -62023,7 +62023,7 @@ int lua_cocos2dx_LayerRadialGradient_setBlendFunc(lua_State* tolua_S) int lua_cocos2dx_LayerRadialGradient_getRadius(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerRadialGradient* cobj = nullptr; + axis::LayerRadialGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -62035,7 +62035,7 @@ int lua_cocos2dx_LayerRadialGradient_getRadius(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.LayerRadialGradient",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LayerRadialGradient*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -62085,8 +62085,8 @@ int lua_cocos2dx_LayerRadialGradient_create(lua_State* tolua_S) { if (argc == 0) { - cocos2d::LayerRadialGradient* ret = cocos2d::LayerRadialGradient::create(); - object_to_luaval(tolua_S, "cc.LayerRadialGradient",(cocos2d::LayerRadialGradient*)ret); + axis::LayerRadialGradient* ret = axis::LayerRadialGradient::create(); + object_to_luaval(tolua_S, "cc.LayerRadialGradient",(axis::LayerRadialGradient*)ret); return 1; } } while (0); @@ -62095,23 +62095,23 @@ int lua_cocos2dx_LayerRadialGradient_create(lua_State* tolua_S) { if (argc == 5) { - cocos2d::Color4B arg0; + axis::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "cc.LayerRadialGradient:create"); if (!ok) { break; } - cocos2d::Color4B arg1; + axis::Color4B arg1; ok &=luaval_to_color4b(tolua_S, 3, &arg1, "cc.LayerRadialGradient:create"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.LayerRadialGradient:create"); if (!ok) { break; } - cocos2d::Vec2 arg3; + axis::Vec2 arg3; ok &= luaval_to_vec2(tolua_S, 5, &arg3, "cc.LayerRadialGradient:create"); if (!ok) { break; } double arg4; ok &= luaval_to_number(tolua_S, 6,&arg4, "cc.LayerRadialGradient:create"); if (!ok) { break; } - cocos2d::LayerRadialGradient* ret = cocos2d::LayerRadialGradient::create(arg0, arg1, arg2, arg3, arg4); - object_to_luaval(tolua_S, "cc.LayerRadialGradient",(cocos2d::LayerRadialGradient*)ret); + axis::LayerRadialGradient* ret = axis::LayerRadialGradient::create(arg0, arg1, arg2, arg3, arg4); + object_to_luaval(tolua_S, "cc.LayerRadialGradient",(axis::LayerRadialGradient*)ret); return 1; } } while (0); @@ -62127,7 +62127,7 @@ int lua_cocos2dx_LayerRadialGradient_create(lua_State* tolua_S) int lua_cocos2dx_LayerRadialGradient_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerRadialGradient* cobj = nullptr; + axis::LayerRadialGradient* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -62144,7 +62144,7 @@ int lua_cocos2dx_LayerRadialGradient_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerRadialGradient_constructor'", nullptr); return 0; } - cobj = new cocos2d::LayerRadialGradient(); + cobj = new axis::LayerRadialGradient(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -62195,7 +62195,7 @@ int lua_register_cocos2dx_LayerRadialGradient(lua_State* tolua_S) tolua_function(tolua_S,"getRadius",lua_cocos2dx_LayerRadialGradient_getRadius); tolua_function(tolua_S,"create", lua_cocos2dx_LayerRadialGradient_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::LayerRadialGradient).name(); // rtti is literal storage + auto typeName = typeid(axis::LayerRadialGradient).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.LayerRadialGradient"; g_typeCast[typeName] = "cc.LayerRadialGradient"; return 1; @@ -62204,7 +62204,7 @@ int lua_register_cocos2dx_LayerRadialGradient(lua_State* tolua_S) int lua_cocos2dx_LayerMultiplex_initWithArray(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerMultiplex* cobj = nullptr; + axis::LayerMultiplex* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -62216,7 +62216,7 @@ int lua_cocos2dx_LayerMultiplex_initWithArray(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.LayerMultiplex",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LayerMultiplex*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LayerMultiplex*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -62229,7 +62229,7 @@ int lua_cocos2dx_LayerMultiplex_initWithArray(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vector arg0; + axis::Vector arg0; ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.LayerMultiplex:initWithArray"); if(!ok) @@ -62254,7 +62254,7 @@ int lua_cocos2dx_LayerMultiplex_initWithArray(lua_State* tolua_S) int lua_cocos2dx_LayerMultiplex_switchToAndReleaseMe(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerMultiplex* cobj = nullptr; + axis::LayerMultiplex* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -62266,7 +62266,7 @@ int lua_cocos2dx_LayerMultiplex_switchToAndReleaseMe(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.LayerMultiplex",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LayerMultiplex*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LayerMultiplex*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -62304,7 +62304,7 @@ int lua_cocos2dx_LayerMultiplex_switchToAndReleaseMe(lua_State* tolua_S) int lua_cocos2dx_LayerMultiplex_addLayer(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerMultiplex* cobj = nullptr; + axis::LayerMultiplex* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -62316,7 +62316,7 @@ int lua_cocos2dx_LayerMultiplex_addLayer(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.LayerMultiplex",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LayerMultiplex*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LayerMultiplex*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -62329,9 +62329,9 @@ int lua_cocos2dx_LayerMultiplex_addLayer(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Node* arg0; + axis::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.LayerMultiplex:addLayer"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.LayerMultiplex:addLayer"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerMultiplex_addLayer'", nullptr); @@ -62354,7 +62354,7 @@ int lua_cocos2dx_LayerMultiplex_addLayer(lua_State* tolua_S) int lua_cocos2dx_LayerMultiplex_switchTo(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerMultiplex* cobj = nullptr; + axis::LayerMultiplex* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -62363,7 +62363,7 @@ int lua_cocos2dx_LayerMultiplex_switchTo(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.LayerMultiplex",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::LayerMultiplex*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::LayerMultiplex*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -62413,7 +62413,7 @@ int lua_cocos2dx_LayerMultiplex_switchTo(lua_State* tolua_S) int lua_cocos2dx_LayerMultiplex_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::LayerMultiplex* cobj = nullptr; + axis::LayerMultiplex* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -62430,7 +62430,7 @@ int lua_cocos2dx_LayerMultiplex_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_LayerMultiplex_constructor'", nullptr); return 0; } - cobj = new cocos2d::LayerMultiplex(); + cobj = new axis::LayerMultiplex(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -62465,7 +62465,7 @@ int lua_register_cocos2dx_LayerMultiplex(lua_State* tolua_S) tolua_function(tolua_S,"addLayer",lua_cocos2dx_LayerMultiplex_addLayer); tolua_function(tolua_S,"switchTo",lua_cocos2dx_LayerMultiplex_switchTo); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::LayerMultiplex).name(); // rtti is literal storage + auto typeName = typeid(axis::LayerMultiplex).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.LayerMultiplex"; g_typeCast[typeName] = "cc.LayerMultiplex"; return 1; @@ -62474,7 +62474,7 @@ int lua_register_cocos2dx_LayerMultiplex(lua_State* tolua_S) int lua_cocos2dx_MenuItem_setEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItem* cobj = nullptr; + axis::MenuItem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -62486,7 +62486,7 @@ int lua_cocos2dx_MenuItem_setEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MenuItem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MenuItem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MenuItem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -62524,7 +62524,7 @@ int lua_cocos2dx_MenuItem_setEnabled(lua_State* tolua_S) int lua_cocos2dx_MenuItem_activate(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItem* cobj = nullptr; + axis::MenuItem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -62536,7 +62536,7 @@ int lua_cocos2dx_MenuItem_activate(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MenuItem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MenuItem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MenuItem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -62571,7 +62571,7 @@ int lua_cocos2dx_MenuItem_activate(lua_State* tolua_S) int lua_cocos2dx_MenuItem_isEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItem* cobj = nullptr; + axis::MenuItem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -62583,7 +62583,7 @@ int lua_cocos2dx_MenuItem_isEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MenuItem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MenuItem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MenuItem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -62618,7 +62618,7 @@ int lua_cocos2dx_MenuItem_isEnabled(lua_State* tolua_S) int lua_cocos2dx_MenuItem_selected(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItem* cobj = nullptr; + axis::MenuItem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -62630,7 +62630,7 @@ int lua_cocos2dx_MenuItem_selected(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MenuItem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MenuItem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MenuItem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -62665,7 +62665,7 @@ int lua_cocos2dx_MenuItem_selected(lua_State* tolua_S) int lua_cocos2dx_MenuItem_isSelected(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItem* cobj = nullptr; + axis::MenuItem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -62677,7 +62677,7 @@ int lua_cocos2dx_MenuItem_isSelected(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MenuItem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MenuItem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MenuItem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -62712,7 +62712,7 @@ int lua_cocos2dx_MenuItem_isSelected(lua_State* tolua_S) int lua_cocos2dx_MenuItem_unselected(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItem* cobj = nullptr; + axis::MenuItem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -62724,7 +62724,7 @@ int lua_cocos2dx_MenuItem_unselected(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MenuItem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MenuItem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MenuItem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -62759,7 +62759,7 @@ int lua_cocos2dx_MenuItem_unselected(lua_State* tolua_S) int lua_cocos2dx_MenuItem_rect(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItem* cobj = nullptr; + axis::MenuItem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -62771,7 +62771,7 @@ int lua_cocos2dx_MenuItem_rect(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MenuItem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MenuItem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MenuItem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -62789,7 +62789,7 @@ int lua_cocos2dx_MenuItem_rect(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItem_rect'", nullptr); return 0; } - cocos2d::Rect ret = cobj->rect(); + axis::Rect ret = cobj->rect(); rect_to_luaval(tolua_S, ret); return 1; } @@ -62806,7 +62806,7 @@ int lua_cocos2dx_MenuItem_rect(lua_State* tolua_S) int lua_cocos2dx_MenuItem_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItem* cobj = nullptr; + axis::MenuItem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -62823,7 +62823,7 @@ int lua_cocos2dx_MenuItem_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItem_constructor'", nullptr); return 0; } - cobj = new cocos2d::MenuItem(); + cobj = new axis::MenuItem(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -62861,7 +62861,7 @@ int lua_register_cocos2dx_MenuItem(lua_State* tolua_S) tolua_function(tolua_S,"unselected",lua_cocos2dx_MenuItem_unselected); tolua_function(tolua_S,"rect",lua_cocos2dx_MenuItem_rect); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::MenuItem).name(); // rtti is literal storage + auto typeName = typeid(axis::MenuItem).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.MenuItem"; g_typeCast[typeName] = "cc.MenuItem"; return 1; @@ -62870,7 +62870,7 @@ int lua_register_cocos2dx_MenuItem(lua_State* tolua_S) int lua_cocos2dx_MenuItemLabel_setLabel(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItemLabel* cobj = nullptr; + axis::MenuItemLabel* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -62882,7 +62882,7 @@ int lua_cocos2dx_MenuItemLabel_setLabel(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MenuItemLabel",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MenuItemLabel*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MenuItemLabel*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -62895,9 +62895,9 @@ int lua_cocos2dx_MenuItemLabel_setLabel(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Node* arg0; + axis::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.MenuItemLabel:setLabel"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.MenuItemLabel:setLabel"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemLabel_setLabel'", nullptr); @@ -62920,7 +62920,7 @@ int lua_cocos2dx_MenuItemLabel_setLabel(lua_State* tolua_S) int lua_cocos2dx_MenuItemLabel_getString(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItemLabel* cobj = nullptr; + axis::MenuItemLabel* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -62932,7 +62932,7 @@ int lua_cocos2dx_MenuItemLabel_getString(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MenuItemLabel",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MenuItemLabel*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MenuItemLabel*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -62967,7 +62967,7 @@ int lua_cocos2dx_MenuItemLabel_getString(lua_State* tolua_S) int lua_cocos2dx_MenuItemLabel_getDisabledColor(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItemLabel* cobj = nullptr; + axis::MenuItemLabel* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -62979,7 +62979,7 @@ int lua_cocos2dx_MenuItemLabel_getDisabledColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MenuItemLabel",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MenuItemLabel*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MenuItemLabel*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -62997,7 +62997,7 @@ int lua_cocos2dx_MenuItemLabel_getDisabledColor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemLabel_getDisabledColor'", nullptr); return 0; } - const cocos2d::Color3B& ret = cobj->getDisabledColor(); + const axis::Color3B& ret = cobj->getDisabledColor(); color3b_to_luaval(tolua_S, ret); return 1; } @@ -63014,7 +63014,7 @@ int lua_cocos2dx_MenuItemLabel_getDisabledColor(lua_State* tolua_S) int lua_cocos2dx_MenuItemLabel_setString(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItemLabel* cobj = nullptr; + axis::MenuItemLabel* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -63026,7 +63026,7 @@ int lua_cocos2dx_MenuItemLabel_setString(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MenuItemLabel",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MenuItemLabel*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MenuItemLabel*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -63064,7 +63064,7 @@ int lua_cocos2dx_MenuItemLabel_setString(lua_State* tolua_S) int lua_cocos2dx_MenuItemLabel_initWithLabel(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItemLabel* cobj = nullptr; + axis::MenuItemLabel* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -63076,7 +63076,7 @@ int lua_cocos2dx_MenuItemLabel_initWithLabel(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MenuItemLabel",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MenuItemLabel*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MenuItemLabel*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -63089,10 +63089,10 @@ int lua_cocos2dx_MenuItemLabel_initWithLabel(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::Node* arg0; - std::function arg1; + axis::Node* arg0; + std::function arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.MenuItemLabel:initWithLabel"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.MenuItemLabel:initWithLabel"); do { // Lambda binding for lua is not supported. @@ -63121,7 +63121,7 @@ int lua_cocos2dx_MenuItemLabel_initWithLabel(lua_State* tolua_S) int lua_cocos2dx_MenuItemLabel_setDisabledColor(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItemLabel* cobj = nullptr; + axis::MenuItemLabel* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -63133,7 +63133,7 @@ int lua_cocos2dx_MenuItemLabel_setDisabledColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MenuItemLabel",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MenuItemLabel*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MenuItemLabel*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -63146,7 +63146,7 @@ int lua_cocos2dx_MenuItemLabel_setDisabledColor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Color3B arg0; + axis::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "cc.MenuItemLabel:setDisabledColor"); if(!ok) @@ -63171,7 +63171,7 @@ int lua_cocos2dx_MenuItemLabel_setDisabledColor(lua_State* tolua_S) int lua_cocos2dx_MenuItemLabel_getLabel(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItemLabel* cobj = nullptr; + axis::MenuItemLabel* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -63183,7 +63183,7 @@ int lua_cocos2dx_MenuItemLabel_getLabel(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MenuItemLabel",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MenuItemLabel*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MenuItemLabel*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -63201,8 +63201,8 @@ int lua_cocos2dx_MenuItemLabel_getLabel(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemLabel_getLabel'", nullptr); return 0; } - cocos2d::Node* ret = cobj->getLabel(); - object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + axis::Node* ret = cobj->getLabel(); + object_to_luaval(tolua_S, "cc.Node",(axis::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemLabel:getLabel",argc, 0); @@ -63218,7 +63218,7 @@ int lua_cocos2dx_MenuItemLabel_getLabel(lua_State* tolua_S) int lua_cocos2dx_MenuItemLabel_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItemLabel* cobj = nullptr; + axis::MenuItemLabel* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -63235,7 +63235,7 @@ int lua_cocos2dx_MenuItemLabel_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemLabel_constructor'", nullptr); return 0; } - cobj = new cocos2d::MenuItemLabel(); + cobj = new axis::MenuItemLabel(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -63273,7 +63273,7 @@ int lua_register_cocos2dx_MenuItemLabel(lua_State* tolua_S) tolua_function(tolua_S,"setDisabledColor",lua_cocos2dx_MenuItemLabel_setDisabledColor); tolua_function(tolua_S,"getLabel",lua_cocos2dx_MenuItemLabel_getLabel); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::MenuItemLabel).name(); // rtti is literal storage + auto typeName = typeid(axis::MenuItemLabel).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.MenuItemLabel"; g_typeCast[typeName] = "cc.MenuItemLabel"; return 1; @@ -63282,7 +63282,7 @@ int lua_register_cocos2dx_MenuItemLabel(lua_State* tolua_S) int lua_cocos2dx_MenuItemAtlasFont_initWithString(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItemAtlasFont* cobj = nullptr; + axis::MenuItemAtlasFont* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -63294,7 +63294,7 @@ int lua_cocos2dx_MenuItemAtlasFont_initWithString(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MenuItemAtlasFont",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MenuItemAtlasFont*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MenuItemAtlasFont*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -63312,7 +63312,7 @@ int lua_cocos2dx_MenuItemAtlasFont_initWithString(lua_State* tolua_S) int arg2; int arg3; int32_t arg4; - std::function arg5; + std::function arg5; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.MenuItemAtlasFont:initWithString"); @@ -63351,7 +63351,7 @@ int lua_cocos2dx_MenuItemAtlasFont_initWithString(lua_State* tolua_S) int lua_cocos2dx_MenuItemAtlasFont_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItemAtlasFont* cobj = nullptr; + axis::MenuItemAtlasFont* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -63368,7 +63368,7 @@ int lua_cocos2dx_MenuItemAtlasFont_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemAtlasFont_constructor'", nullptr); return 0; } - cobj = new cocos2d::MenuItemAtlasFont(); + cobj = new axis::MenuItemAtlasFont(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -63400,7 +63400,7 @@ int lua_register_cocos2dx_MenuItemAtlasFont(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_MenuItemAtlasFont_constructor); tolua_function(tolua_S,"initWithString",lua_cocos2dx_MenuItemAtlasFont_initWithString); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::MenuItemAtlasFont).name(); // rtti is literal storage + auto typeName = typeid(axis::MenuItemAtlasFont).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.MenuItemAtlasFont"; g_typeCast[typeName] = "cc.MenuItemAtlasFont"; return 1; @@ -63409,7 +63409,7 @@ int lua_register_cocos2dx_MenuItemAtlasFont(lua_State* tolua_S) int lua_cocos2dx_MenuItemFont_getFontNameObj(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItemFont* cobj = nullptr; + axis::MenuItemFont* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -63421,7 +63421,7 @@ int lua_cocos2dx_MenuItemFont_getFontNameObj(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MenuItemFont",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MenuItemFont*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MenuItemFont*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -63456,7 +63456,7 @@ int lua_cocos2dx_MenuItemFont_getFontNameObj(lua_State* tolua_S) int lua_cocos2dx_MenuItemFont_setFontNameObj(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItemFont* cobj = nullptr; + axis::MenuItemFont* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -63468,7 +63468,7 @@ int lua_cocos2dx_MenuItemFont_setFontNameObj(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MenuItemFont",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MenuItemFont*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MenuItemFont*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -63506,7 +63506,7 @@ int lua_cocos2dx_MenuItemFont_setFontNameObj(lua_State* tolua_S) int lua_cocos2dx_MenuItemFont_initWithString(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItemFont* cobj = nullptr; + axis::MenuItemFont* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -63518,7 +63518,7 @@ int lua_cocos2dx_MenuItemFont_initWithString(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MenuItemFont",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MenuItemFont*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MenuItemFont*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -63532,7 +63532,7 @@ int lua_cocos2dx_MenuItemFont_initWithString(lua_State* tolua_S) if (argc == 2) { std::string_view arg0; - std::function arg1; + std::function arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.MenuItemFont:initWithString"); @@ -63563,7 +63563,7 @@ int lua_cocos2dx_MenuItemFont_initWithString(lua_State* tolua_S) int lua_cocos2dx_MenuItemFont_getFontSizeObj(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItemFont* cobj = nullptr; + axis::MenuItemFont* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -63575,7 +63575,7 @@ int lua_cocos2dx_MenuItemFont_getFontSizeObj(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MenuItemFont",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MenuItemFont*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MenuItemFont*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -63610,7 +63610,7 @@ int lua_cocos2dx_MenuItemFont_getFontSizeObj(lua_State* tolua_S) int lua_cocos2dx_MenuItemFont_setFontSizeObj(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItemFont* cobj = nullptr; + axis::MenuItemFont* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -63622,7 +63622,7 @@ int lua_cocos2dx_MenuItemFont_setFontSizeObj(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MenuItemFont",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MenuItemFont*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MenuItemFont*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -63681,7 +63681,7 @@ int lua_cocos2dx_MenuItemFont_setFontName(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemFont_setFontName'", nullptr); return 0; } - cocos2d::MenuItemFont::setFontName(arg0); + axis::MenuItemFont::setFontName(arg0); lua_settop(tolua_S, 1); return 1; } @@ -63715,7 +63715,7 @@ int lua_cocos2dx_MenuItemFont_getFontSize(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemFont_getFontSize'", nullptr); return 0; } - int ret = cocos2d::MenuItemFont::getFontSize(); + int ret = axis::MenuItemFont::getFontSize(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } @@ -63749,7 +63749,7 @@ int lua_cocos2dx_MenuItemFont_getFontName(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemFont_getFontName'", nullptr); return 0; } - std::string_view ret = cocos2d::MenuItemFont::getFontName(); + std::string_view ret = axis::MenuItemFont::getFontName(); lua_pushlstring(tolua_S,ret.data(),ret.length()); return 1; } @@ -63785,7 +63785,7 @@ int lua_cocos2dx_MenuItemFont_setFontSize(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemFont_setFontSize'", nullptr); return 0; } - cocos2d::MenuItemFont::setFontSize(arg0); + axis::MenuItemFont::setFontSize(arg0); lua_settop(tolua_S, 1); return 1; } @@ -63800,7 +63800,7 @@ int lua_cocos2dx_MenuItemFont_setFontSize(lua_State* tolua_S) int lua_cocos2dx_MenuItemFont_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItemFont* cobj = nullptr; + axis::MenuItemFont* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -63817,7 +63817,7 @@ int lua_cocos2dx_MenuItemFont_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemFont_constructor'", nullptr); return 0; } - cobj = new cocos2d::MenuItemFont(); + cobj = new axis::MenuItemFont(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -63857,7 +63857,7 @@ int lua_register_cocos2dx_MenuItemFont(lua_State* tolua_S) tolua_function(tolua_S,"getFontName", lua_cocos2dx_MenuItemFont_getFontName); tolua_function(tolua_S,"setFontSize", lua_cocos2dx_MenuItemFont_setFontSize); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::MenuItemFont).name(); // rtti is literal storage + auto typeName = typeid(axis::MenuItemFont).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.MenuItemFont"; g_typeCast[typeName] = "cc.MenuItemFont"; return 1; @@ -63866,7 +63866,7 @@ int lua_register_cocos2dx_MenuItemFont(lua_State* tolua_S) int lua_cocos2dx_MenuItemSprite_setEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItemSprite* cobj = nullptr; + axis::MenuItemSprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -63878,7 +63878,7 @@ int lua_cocos2dx_MenuItemSprite_setEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MenuItemSprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -63916,7 +63916,7 @@ int lua_cocos2dx_MenuItemSprite_setEnabled(lua_State* tolua_S) int lua_cocos2dx_MenuItemSprite_selected(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItemSprite* cobj = nullptr; + axis::MenuItemSprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -63928,7 +63928,7 @@ int lua_cocos2dx_MenuItemSprite_selected(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MenuItemSprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -63963,7 +63963,7 @@ int lua_cocos2dx_MenuItemSprite_selected(lua_State* tolua_S) int lua_cocos2dx_MenuItemSprite_setNormalImage(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItemSprite* cobj = nullptr; + axis::MenuItemSprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -63975,7 +63975,7 @@ int lua_cocos2dx_MenuItemSprite_setNormalImage(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MenuItemSprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -63988,9 +63988,9 @@ int lua_cocos2dx_MenuItemSprite_setNormalImage(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Node* arg0; + axis::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.MenuItemSprite:setNormalImage"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.MenuItemSprite:setNormalImage"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemSprite_setNormalImage'", nullptr); @@ -64013,7 +64013,7 @@ int lua_cocos2dx_MenuItemSprite_setNormalImage(lua_State* tolua_S) int lua_cocos2dx_MenuItemSprite_setDisabledImage(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItemSprite* cobj = nullptr; + axis::MenuItemSprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -64025,7 +64025,7 @@ int lua_cocos2dx_MenuItemSprite_setDisabledImage(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MenuItemSprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -64038,9 +64038,9 @@ int lua_cocos2dx_MenuItemSprite_setDisabledImage(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Node* arg0; + axis::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.MenuItemSprite:setDisabledImage"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.MenuItemSprite:setDisabledImage"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemSprite_setDisabledImage'", nullptr); @@ -64063,7 +64063,7 @@ int lua_cocos2dx_MenuItemSprite_setDisabledImage(lua_State* tolua_S) int lua_cocos2dx_MenuItemSprite_initWithNormalSprite(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItemSprite* cobj = nullptr; + axis::MenuItemSprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -64075,7 +64075,7 @@ int lua_cocos2dx_MenuItemSprite_initWithNormalSprite(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MenuItemSprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -64088,16 +64088,16 @@ int lua_cocos2dx_MenuItemSprite_initWithNormalSprite(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 4) { - cocos2d::Node* arg0; - cocos2d::Node* arg1; - cocos2d::Node* arg2; - std::function arg3; + axis::Node* arg0; + axis::Node* arg1; + axis::Node* arg2; + std::function arg3; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.MenuItemSprite:initWithNormalSprite"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.MenuItemSprite:initWithNormalSprite"); - ok &= luaval_to_object(tolua_S, 3, "cc.Node",&arg1, "cc.MenuItemSprite:initWithNormalSprite"); + ok &= luaval_to_object(tolua_S, 3, "cc.Node",&arg1, "cc.MenuItemSprite:initWithNormalSprite"); - ok &= luaval_to_object(tolua_S, 4, "cc.Node",&arg2, "cc.MenuItemSprite:initWithNormalSprite"); + ok &= luaval_to_object(tolua_S, 4, "cc.Node",&arg2, "cc.MenuItemSprite:initWithNormalSprite"); do { // Lambda binding for lua is not supported. @@ -64126,7 +64126,7 @@ int lua_cocos2dx_MenuItemSprite_initWithNormalSprite(lua_State* tolua_S) int lua_cocos2dx_MenuItemSprite_setSelectedImage(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItemSprite* cobj = nullptr; + axis::MenuItemSprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -64138,7 +64138,7 @@ int lua_cocos2dx_MenuItemSprite_setSelectedImage(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MenuItemSprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -64151,9 +64151,9 @@ int lua_cocos2dx_MenuItemSprite_setSelectedImage(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Node* arg0; + axis::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.MenuItemSprite:setSelectedImage"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.MenuItemSprite:setSelectedImage"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemSprite_setSelectedImage'", nullptr); @@ -64176,7 +64176,7 @@ int lua_cocos2dx_MenuItemSprite_setSelectedImage(lua_State* tolua_S) int lua_cocos2dx_MenuItemSprite_getDisabledImage(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItemSprite* cobj = nullptr; + axis::MenuItemSprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -64188,7 +64188,7 @@ int lua_cocos2dx_MenuItemSprite_getDisabledImage(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MenuItemSprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -64206,8 +64206,8 @@ int lua_cocos2dx_MenuItemSprite_getDisabledImage(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemSprite_getDisabledImage'", nullptr); return 0; } - cocos2d::Node* ret = cobj->getDisabledImage(); - object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + axis::Node* ret = cobj->getDisabledImage(); + object_to_luaval(tolua_S, "cc.Node",(axis::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemSprite:getDisabledImage",argc, 0); @@ -64223,7 +64223,7 @@ int lua_cocos2dx_MenuItemSprite_getDisabledImage(lua_State* tolua_S) int lua_cocos2dx_MenuItemSprite_getSelectedImage(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItemSprite* cobj = nullptr; + axis::MenuItemSprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -64235,7 +64235,7 @@ int lua_cocos2dx_MenuItemSprite_getSelectedImage(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MenuItemSprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -64253,8 +64253,8 @@ int lua_cocos2dx_MenuItemSprite_getSelectedImage(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemSprite_getSelectedImage'", nullptr); return 0; } - cocos2d::Node* ret = cobj->getSelectedImage(); - object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + axis::Node* ret = cobj->getSelectedImage(); + object_to_luaval(tolua_S, "cc.Node",(axis::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemSprite:getSelectedImage",argc, 0); @@ -64270,7 +64270,7 @@ int lua_cocos2dx_MenuItemSprite_getSelectedImage(lua_State* tolua_S) int lua_cocos2dx_MenuItemSprite_getNormalImage(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItemSprite* cobj = nullptr; + axis::MenuItemSprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -64282,7 +64282,7 @@ int lua_cocos2dx_MenuItemSprite_getNormalImage(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MenuItemSprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -64300,8 +64300,8 @@ int lua_cocos2dx_MenuItemSprite_getNormalImage(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemSprite_getNormalImage'", nullptr); return 0; } - cocos2d::Node* ret = cobj->getNormalImage(); - object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + axis::Node* ret = cobj->getNormalImage(); + object_to_luaval(tolua_S, "cc.Node",(axis::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemSprite:getNormalImage",argc, 0); @@ -64317,7 +64317,7 @@ int lua_cocos2dx_MenuItemSprite_getNormalImage(lua_State* tolua_S) int lua_cocos2dx_MenuItemSprite_unselected(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItemSprite* cobj = nullptr; + axis::MenuItemSprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -64329,7 +64329,7 @@ int lua_cocos2dx_MenuItemSprite_unselected(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MenuItemSprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MenuItemSprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -64364,7 +64364,7 @@ int lua_cocos2dx_MenuItemSprite_unselected(lua_State* tolua_S) int lua_cocos2dx_MenuItemSprite_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItemSprite* cobj = nullptr; + axis::MenuItemSprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -64381,7 +64381,7 @@ int lua_cocos2dx_MenuItemSprite_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemSprite_constructor'", nullptr); return 0; } - cobj = new cocos2d::MenuItemSprite(); + cobj = new axis::MenuItemSprite(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -64422,7 +64422,7 @@ int lua_register_cocos2dx_MenuItemSprite(lua_State* tolua_S) tolua_function(tolua_S,"getNormalImage",lua_cocos2dx_MenuItemSprite_getNormalImage); tolua_function(tolua_S,"unselected",lua_cocos2dx_MenuItemSprite_unselected); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::MenuItemSprite).name(); // rtti is literal storage + auto typeName = typeid(axis::MenuItemSprite).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.MenuItemSprite"; g_typeCast[typeName] = "cc.MenuItemSprite"; return 1; @@ -64431,7 +64431,7 @@ int lua_register_cocos2dx_MenuItemSprite(lua_State* tolua_S) int lua_cocos2dx_MenuItemImage_setDisabledSpriteFrame(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItemImage* cobj = nullptr; + axis::MenuItemImage* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -64443,7 +64443,7 @@ int lua_cocos2dx_MenuItemImage_setDisabledSpriteFrame(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MenuItemImage",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MenuItemImage*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MenuItemImage*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -64456,9 +64456,9 @@ int lua_cocos2dx_MenuItemImage_setDisabledSpriteFrame(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::SpriteFrame* arg0; + axis::SpriteFrame* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.MenuItemImage:setDisabledSpriteFrame"); + ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.MenuItemImage:setDisabledSpriteFrame"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemImage_setDisabledSpriteFrame'", nullptr); @@ -64481,7 +64481,7 @@ int lua_cocos2dx_MenuItemImage_setDisabledSpriteFrame(lua_State* tolua_S) int lua_cocos2dx_MenuItemImage_setSelectedSpriteFrame(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItemImage* cobj = nullptr; + axis::MenuItemImage* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -64493,7 +64493,7 @@ int lua_cocos2dx_MenuItemImage_setSelectedSpriteFrame(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MenuItemImage",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MenuItemImage*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MenuItemImage*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -64506,9 +64506,9 @@ int lua_cocos2dx_MenuItemImage_setSelectedSpriteFrame(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::SpriteFrame* arg0; + axis::SpriteFrame* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.MenuItemImage:setSelectedSpriteFrame"); + ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.MenuItemImage:setSelectedSpriteFrame"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemImage_setSelectedSpriteFrame'", nullptr); @@ -64531,7 +64531,7 @@ int lua_cocos2dx_MenuItemImage_setSelectedSpriteFrame(lua_State* tolua_S) int lua_cocos2dx_MenuItemImage_setNormalSpriteFrame(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItemImage* cobj = nullptr; + axis::MenuItemImage* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -64543,7 +64543,7 @@ int lua_cocos2dx_MenuItemImage_setNormalSpriteFrame(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MenuItemImage",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MenuItemImage*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MenuItemImage*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -64556,9 +64556,9 @@ int lua_cocos2dx_MenuItemImage_setNormalSpriteFrame(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::SpriteFrame* arg0; + axis::SpriteFrame* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.MenuItemImage:setNormalSpriteFrame"); + ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.MenuItemImage:setNormalSpriteFrame"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemImage_setNormalSpriteFrame'", nullptr); @@ -64581,7 +64581,7 @@ int lua_cocos2dx_MenuItemImage_setNormalSpriteFrame(lua_State* tolua_S) int lua_cocos2dx_MenuItemImage_init(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItemImage* cobj = nullptr; + axis::MenuItemImage* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -64593,7 +64593,7 @@ int lua_cocos2dx_MenuItemImage_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MenuItemImage",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MenuItemImage*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MenuItemImage*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -64628,7 +64628,7 @@ int lua_cocos2dx_MenuItemImage_init(lua_State* tolua_S) int lua_cocos2dx_MenuItemImage_initWithNormalImage(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItemImage* cobj = nullptr; + axis::MenuItemImage* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -64640,7 +64640,7 @@ int lua_cocos2dx_MenuItemImage_initWithNormalImage(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MenuItemImage",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MenuItemImage*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MenuItemImage*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -64656,7 +64656,7 @@ int lua_cocos2dx_MenuItemImage_initWithNormalImage(lua_State* tolua_S) std::string_view arg0; std::string_view arg1; std::string_view arg2; - std::function arg3; + std::function arg3; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.MenuItemImage:initWithNormalImage"); @@ -64691,7 +64691,7 @@ int lua_cocos2dx_MenuItemImage_initWithNormalImage(lua_State* tolua_S) int lua_cocos2dx_MenuItemImage_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItemImage* cobj = nullptr; + axis::MenuItemImage* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -64708,7 +64708,7 @@ int lua_cocos2dx_MenuItemImage_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemImage_constructor'", nullptr); return 0; } - cobj = new cocos2d::MenuItemImage(); + cobj = new axis::MenuItemImage(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -64744,7 +64744,7 @@ int lua_register_cocos2dx_MenuItemImage(lua_State* tolua_S) tolua_function(tolua_S,"init",lua_cocos2dx_MenuItemImage_init); tolua_function(tolua_S,"initWithNormalImage",lua_cocos2dx_MenuItemImage_initWithNormalImage); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::MenuItemImage).name(); // rtti is literal storage + auto typeName = typeid(axis::MenuItemImage).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.MenuItemImage"; g_typeCast[typeName] = "cc.MenuItemImage"; return 1; @@ -64753,7 +64753,7 @@ int lua_register_cocos2dx_MenuItemImage(lua_State* tolua_S) int lua_cocos2dx_MenuItemToggle_setSubItems(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItemToggle* cobj = nullptr; + axis::MenuItemToggle* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -64765,7 +64765,7 @@ int lua_cocos2dx_MenuItemToggle_setSubItems(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MenuItemToggle",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MenuItemToggle*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MenuItemToggle*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -64778,7 +64778,7 @@ int lua_cocos2dx_MenuItemToggle_setSubItems(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vector arg0; + axis::Vector arg0; ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.MenuItemToggle:setSubItems"); if(!ok) @@ -64803,7 +64803,7 @@ int lua_cocos2dx_MenuItemToggle_setSubItems(lua_State* tolua_S) int lua_cocos2dx_MenuItemToggle_initWithItem(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItemToggle* cobj = nullptr; + axis::MenuItemToggle* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -64815,7 +64815,7 @@ int lua_cocos2dx_MenuItemToggle_initWithItem(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MenuItemToggle",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MenuItemToggle*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MenuItemToggle*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -64828,9 +64828,9 @@ int lua_cocos2dx_MenuItemToggle_initWithItem(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::MenuItem* arg0; + axis::MenuItem* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.MenuItem",&arg0, "cc.MenuItemToggle:initWithItem"); + ok &= luaval_to_object(tolua_S, 2, "cc.MenuItem",&arg0, "cc.MenuItemToggle:initWithItem"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemToggle_initWithItem'", nullptr); @@ -64853,7 +64853,7 @@ int lua_cocos2dx_MenuItemToggle_initWithItem(lua_State* tolua_S) int lua_cocos2dx_MenuItemToggle_getSelectedIndex(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItemToggle* cobj = nullptr; + axis::MenuItemToggle* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -64865,7 +64865,7 @@ int lua_cocos2dx_MenuItemToggle_getSelectedIndex(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MenuItemToggle",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MenuItemToggle*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MenuItemToggle*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -64900,7 +64900,7 @@ int lua_cocos2dx_MenuItemToggle_getSelectedIndex(lua_State* tolua_S) int lua_cocos2dx_MenuItemToggle_addSubItem(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItemToggle* cobj = nullptr; + axis::MenuItemToggle* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -64912,7 +64912,7 @@ int lua_cocos2dx_MenuItemToggle_addSubItem(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MenuItemToggle",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MenuItemToggle*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MenuItemToggle*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -64925,9 +64925,9 @@ int lua_cocos2dx_MenuItemToggle_addSubItem(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::MenuItem* arg0; + axis::MenuItem* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.MenuItem",&arg0, "cc.MenuItemToggle:addSubItem"); + ok &= luaval_to_object(tolua_S, 2, "cc.MenuItem",&arg0, "cc.MenuItemToggle:addSubItem"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemToggle_addSubItem'", nullptr); @@ -64950,7 +64950,7 @@ int lua_cocos2dx_MenuItemToggle_addSubItem(lua_State* tolua_S) int lua_cocos2dx_MenuItemToggle_getSelectedItem(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItemToggle* cobj = nullptr; + axis::MenuItemToggle* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -64962,7 +64962,7 @@ int lua_cocos2dx_MenuItemToggle_getSelectedItem(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MenuItemToggle",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MenuItemToggle*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MenuItemToggle*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -64980,8 +64980,8 @@ int lua_cocos2dx_MenuItemToggle_getSelectedItem(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemToggle_getSelectedItem'", nullptr); return 0; } - cocos2d::MenuItem* ret = cobj->getSelectedItem(); - object_to_luaval(tolua_S, "cc.MenuItem",(cocos2d::MenuItem*)ret); + axis::MenuItem* ret = cobj->getSelectedItem(); + object_to_luaval(tolua_S, "cc.MenuItem",(axis::MenuItem*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MenuItemToggle:getSelectedItem",argc, 0); @@ -64997,7 +64997,7 @@ int lua_cocos2dx_MenuItemToggle_getSelectedItem(lua_State* tolua_S) int lua_cocos2dx_MenuItemToggle_setSelectedIndex(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItemToggle* cobj = nullptr; + axis::MenuItemToggle* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -65009,7 +65009,7 @@ int lua_cocos2dx_MenuItemToggle_setSelectedIndex(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MenuItemToggle",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MenuItemToggle*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MenuItemToggle*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -65047,7 +65047,7 @@ int lua_cocos2dx_MenuItemToggle_setSelectedIndex(lua_State* tolua_S) int lua_cocos2dx_MenuItemToggle_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::MenuItemToggle* cobj = nullptr; + axis::MenuItemToggle* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -65064,7 +65064,7 @@ int lua_cocos2dx_MenuItemToggle_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MenuItemToggle_constructor'", nullptr); return 0; } - cobj = new cocos2d::MenuItemToggle(); + cobj = new axis::MenuItemToggle(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -65101,7 +65101,7 @@ int lua_register_cocos2dx_MenuItemToggle(lua_State* tolua_S) tolua_function(tolua_S,"getSelectedItem",lua_cocos2dx_MenuItemToggle_getSelectedItem); tolua_function(tolua_S,"setSelectedIndex",lua_cocos2dx_MenuItemToggle_setSelectedIndex); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::MenuItemToggle).name(); // rtti is literal storage + auto typeName = typeid(axis::MenuItemToggle).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.MenuItemToggle"; g_typeCast[typeName] = "cc.MenuItemToggle"; return 1; @@ -65110,7 +65110,7 @@ int lua_register_cocos2dx_MenuItemToggle(lua_State* tolua_S) int lua_cocos2dx_Menu_initWithArray(lua_State* tolua_S) { int argc = 0; - cocos2d::Menu* cobj = nullptr; + axis::Menu* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -65122,7 +65122,7 @@ int lua_cocos2dx_Menu_initWithArray(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Menu",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Menu*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Menu*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -65135,7 +65135,7 @@ int lua_cocos2dx_Menu_initWithArray(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vector arg0; + axis::Vector arg0; ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.Menu:initWithArray"); if(!ok) @@ -65160,7 +65160,7 @@ int lua_cocos2dx_Menu_initWithArray(lua_State* tolua_S) int lua_cocos2dx_Menu_setEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::Menu* cobj = nullptr; + axis::Menu* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -65172,7 +65172,7 @@ int lua_cocos2dx_Menu_setEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Menu",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Menu*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Menu*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -65210,7 +65210,7 @@ int lua_cocos2dx_Menu_setEnabled(lua_State* tolua_S) int lua_cocos2dx_Menu_alignItemsVertically(lua_State* tolua_S) { int argc = 0; - cocos2d::Menu* cobj = nullptr; + axis::Menu* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -65222,7 +65222,7 @@ int lua_cocos2dx_Menu_alignItemsVertically(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Menu",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Menu*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Menu*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -65257,7 +65257,7 @@ int lua_cocos2dx_Menu_alignItemsVertically(lua_State* tolua_S) int lua_cocos2dx_Menu_isEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::Menu* cobj = nullptr; + axis::Menu* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -65269,7 +65269,7 @@ int lua_cocos2dx_Menu_isEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Menu",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Menu*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Menu*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -65304,7 +65304,7 @@ int lua_cocos2dx_Menu_isEnabled(lua_State* tolua_S) int lua_cocos2dx_Menu_alignItemsHorizontally(lua_State* tolua_S) { int argc = 0; - cocos2d::Menu* cobj = nullptr; + axis::Menu* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -65316,7 +65316,7 @@ int lua_cocos2dx_Menu_alignItemsHorizontally(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Menu",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Menu*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Menu*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -65351,7 +65351,7 @@ int lua_cocos2dx_Menu_alignItemsHorizontally(lua_State* tolua_S) int lua_cocos2dx_Menu_alignItemsHorizontallyWithPadding(lua_State* tolua_S) { int argc = 0; - cocos2d::Menu* cobj = nullptr; + axis::Menu* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -65363,7 +65363,7 @@ int lua_cocos2dx_Menu_alignItemsHorizontallyWithPadding(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Menu",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Menu*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Menu*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -65401,7 +65401,7 @@ int lua_cocos2dx_Menu_alignItemsHorizontallyWithPadding(lua_State* tolua_S) int lua_cocos2dx_Menu_alignItemsVerticallyWithPadding(lua_State* tolua_S) { int argc = 0; - cocos2d::Menu* cobj = nullptr; + axis::Menu* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -65413,7 +65413,7 @@ int lua_cocos2dx_Menu_alignItemsVerticallyWithPadding(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Menu",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Menu*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Menu*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -65451,7 +65451,7 @@ int lua_cocos2dx_Menu_alignItemsVerticallyWithPadding(lua_State* tolua_S) int lua_cocos2dx_Menu_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Menu* cobj = nullptr; + axis::Menu* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -65468,7 +65468,7 @@ int lua_cocos2dx_Menu_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Menu_constructor'", nullptr); return 0; } - cobj = new cocos2d::Menu(); + cobj = new axis::Menu(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -65506,7 +65506,7 @@ int lua_register_cocos2dx_Menu(lua_State* tolua_S) tolua_function(tolua_S,"alignItemsHorizontallyWithPadding",lua_cocos2dx_Menu_alignItemsHorizontallyWithPadding); tolua_function(tolua_S,"alignItemsVerticallyWithPadding",lua_cocos2dx_Menu_alignItemsVerticallyWithPadding); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Menu).name(); // rtti is literal storage + auto typeName = typeid(axis::Menu).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Menu"; g_typeCast[typeName] = "cc.Menu"; return 1; @@ -65515,7 +65515,7 @@ int lua_register_cocos2dx_Menu(lua_State* tolua_S) int lua_cocos2dx_MotionStreak_reset(lua_State* tolua_S) { int argc = 0; - cocos2d::MotionStreak* cobj = nullptr; + axis::MotionStreak* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -65527,7 +65527,7 @@ int lua_cocos2dx_MotionStreak_reset(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MotionStreak*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MotionStreak*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -65562,7 +65562,7 @@ int lua_cocos2dx_MotionStreak_reset(lua_State* tolua_S) int lua_cocos2dx_MotionStreak_getBlendFunc(lua_State* tolua_S) { int argc = 0; - cocos2d::MotionStreak* cobj = nullptr; + axis::MotionStreak* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -65574,7 +65574,7 @@ int lua_cocos2dx_MotionStreak_getBlendFunc(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MotionStreak*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MotionStreak*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -65592,7 +65592,7 @@ int lua_cocos2dx_MotionStreak_getBlendFunc(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MotionStreak_getBlendFunc'", nullptr); return 0; } - const cocos2d::BlendFunc& ret = cobj->getBlendFunc(); + const axis::BlendFunc& ret = cobj->getBlendFunc(); blendfunc_to_luaval(tolua_S, ret); return 1; } @@ -65609,7 +65609,7 @@ int lua_cocos2dx_MotionStreak_getBlendFunc(lua_State* tolua_S) int lua_cocos2dx_MotionStreak_setBlendFunc(lua_State* tolua_S) { int argc = 0; - cocos2d::MotionStreak* cobj = nullptr; + axis::MotionStreak* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -65621,7 +65621,7 @@ int lua_cocos2dx_MotionStreak_setBlendFunc(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MotionStreak*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MotionStreak*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -65634,7 +65634,7 @@ int lua_cocos2dx_MotionStreak_setBlendFunc(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::BlendFunc arg0; + axis::BlendFunc arg0; ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "cc.MotionStreak:setBlendFunc"); if(!ok) @@ -65659,7 +65659,7 @@ int lua_cocos2dx_MotionStreak_setBlendFunc(lua_State* tolua_S) int lua_cocos2dx_MotionStreak_tintWithColor(lua_State* tolua_S) { int argc = 0; - cocos2d::MotionStreak* cobj = nullptr; + axis::MotionStreak* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -65671,7 +65671,7 @@ int lua_cocos2dx_MotionStreak_tintWithColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MotionStreak*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MotionStreak*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -65684,7 +65684,7 @@ int lua_cocos2dx_MotionStreak_tintWithColor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Color3B arg0; + axis::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "cc.MotionStreak:tintWithColor"); if(!ok) @@ -65709,7 +65709,7 @@ int lua_cocos2dx_MotionStreak_tintWithColor(lua_State* tolua_S) int lua_cocos2dx_MotionStreak_getTexture(lua_State* tolua_S) { int argc = 0; - cocos2d::MotionStreak* cobj = nullptr; + axis::MotionStreak* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -65721,7 +65721,7 @@ int lua_cocos2dx_MotionStreak_getTexture(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MotionStreak*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MotionStreak*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -65739,8 +65739,8 @@ int lua_cocos2dx_MotionStreak_getTexture(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MotionStreak_getTexture'", nullptr); return 0; } - cocos2d::Texture2D* ret = cobj->getTexture(); - object_to_luaval(tolua_S, "cc.Texture2D",(cocos2d::Texture2D*)ret); + axis::Texture2D* ret = cobj->getTexture(); + object_to_luaval(tolua_S, "cc.Texture2D",(axis::Texture2D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak:getTexture",argc, 0); @@ -65756,7 +65756,7 @@ int lua_cocos2dx_MotionStreak_getTexture(lua_State* tolua_S) int lua_cocos2dx_MotionStreak_setStartingPositionInitialized(lua_State* tolua_S) { int argc = 0; - cocos2d::MotionStreak* cobj = nullptr; + axis::MotionStreak* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -65768,7 +65768,7 @@ int lua_cocos2dx_MotionStreak_setStartingPositionInitialized(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MotionStreak*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MotionStreak*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -65806,7 +65806,7 @@ int lua_cocos2dx_MotionStreak_setStartingPositionInitialized(lua_State* tolua_S) int lua_cocos2dx_MotionStreak_setTexture(lua_State* tolua_S) { int argc = 0; - cocos2d::MotionStreak* cobj = nullptr; + axis::MotionStreak* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -65818,7 +65818,7 @@ int lua_cocos2dx_MotionStreak_setTexture(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MotionStreak*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MotionStreak*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -65831,9 +65831,9 @@ int lua_cocos2dx_MotionStreak_setTexture(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Texture2D* arg0; + axis::Texture2D* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.MotionStreak:setTexture"); + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.MotionStreak:setTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MotionStreak_setTexture'", nullptr); @@ -65856,7 +65856,7 @@ int lua_cocos2dx_MotionStreak_setTexture(lua_State* tolua_S) int lua_cocos2dx_MotionStreak_isStartingPositionInitialized(lua_State* tolua_S) { int argc = 0; - cocos2d::MotionStreak* cobj = nullptr; + axis::MotionStreak* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -65868,7 +65868,7 @@ int lua_cocos2dx_MotionStreak_isStartingPositionInitialized(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MotionStreak*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MotionStreak*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -65903,7 +65903,7 @@ int lua_cocos2dx_MotionStreak_isStartingPositionInitialized(lua_State* tolua_S) int lua_cocos2dx_MotionStreak_isFastMode(lua_State* tolua_S) { int argc = 0; - cocos2d::MotionStreak* cobj = nullptr; + axis::MotionStreak* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -65915,7 +65915,7 @@ int lua_cocos2dx_MotionStreak_isFastMode(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MotionStreak*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MotionStreak*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -65950,7 +65950,7 @@ int lua_cocos2dx_MotionStreak_isFastMode(lua_State* tolua_S) int lua_cocos2dx_MotionStreak_getStroke(lua_State* tolua_S) { int argc = 0; - cocos2d::MotionStreak* cobj = nullptr; + axis::MotionStreak* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -65962,7 +65962,7 @@ int lua_cocos2dx_MotionStreak_getStroke(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MotionStreak*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MotionStreak*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -65997,7 +65997,7 @@ int lua_cocos2dx_MotionStreak_getStroke(lua_State* tolua_S) int lua_cocos2dx_MotionStreak_initWithFade(lua_State* tolua_S) { int argc = 0; - cocos2d::MotionStreak* cobj = nullptr; + axis::MotionStreak* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -66006,7 +66006,7 @@ int lua_cocos2dx_MotionStreak_initWithFade(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MotionStreak*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MotionStreak*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -66029,12 +66029,12 @@ int lua_cocos2dx_MotionStreak_initWithFade(lua_State* tolua_S) ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.MotionStreak:initWithFade"); if (!ok) { break; } - cocos2d::Color3B arg3; + axis::Color3B arg3; ok &= luaval_to_color3b(tolua_S, 5, &arg3, "cc.MotionStreak:initWithFade"); if (!ok) { break; } - cocos2d::Texture2D* arg4; - ok &= luaval_to_object(tolua_S, 6, "cc.Texture2D",&arg4, "cc.MotionStreak:initWithFade"); + axis::Texture2D* arg4; + ok &= luaval_to_object(tolua_S, 6, "cc.Texture2D",&arg4, "cc.MotionStreak:initWithFade"); if (!ok) { break; } bool ret = cobj->initWithFade(arg0, arg1, arg2, arg3, arg4); @@ -66057,7 +66057,7 @@ int lua_cocos2dx_MotionStreak_initWithFade(lua_State* tolua_S) ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.MotionStreak:initWithFade"); if (!ok) { break; } - cocos2d::Color3B arg3; + axis::Color3B arg3; ok &= luaval_to_color3b(tolua_S, 5, &arg3, "cc.MotionStreak:initWithFade"); if (!ok) { break; } @@ -66084,7 +66084,7 @@ int lua_cocos2dx_MotionStreak_initWithFade(lua_State* tolua_S) int lua_cocos2dx_MotionStreak_setFastMode(lua_State* tolua_S) { int argc = 0; - cocos2d::MotionStreak* cobj = nullptr; + axis::MotionStreak* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -66096,7 +66096,7 @@ int lua_cocos2dx_MotionStreak_setFastMode(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MotionStreak*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MotionStreak*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -66134,7 +66134,7 @@ int lua_cocos2dx_MotionStreak_setFastMode(lua_State* tolua_S) int lua_cocos2dx_MotionStreak_setStroke(lua_State* tolua_S) { int argc = 0; - cocos2d::MotionStreak* cobj = nullptr; + axis::MotionStreak* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -66146,7 +66146,7 @@ int lua_cocos2dx_MotionStreak_setStroke(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MotionStreak*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MotionStreak*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -66208,14 +66208,14 @@ int lua_cocos2dx_MotionStreak_create(lua_State* tolua_S) double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.MotionStreak:create"); if (!ok) { break; } - cocos2d::Color3B arg3; + axis::Color3B arg3; ok &= luaval_to_color3b(tolua_S, 5, &arg3, "cc.MotionStreak:create"); if (!ok) { break; } - cocos2d::Texture2D* arg4; - ok &= luaval_to_object(tolua_S, 6, "cc.Texture2D",&arg4, "cc.MotionStreak:create"); + axis::Texture2D* arg4; + ok &= luaval_to_object(tolua_S, 6, "cc.Texture2D",&arg4, "cc.MotionStreak:create"); if (!ok) { break; } - cocos2d::MotionStreak* ret = cocos2d::MotionStreak::create(arg0, arg1, arg2, arg3, arg4); - object_to_luaval(tolua_S, "cc.MotionStreak",(cocos2d::MotionStreak*)ret); + axis::MotionStreak* ret = axis::MotionStreak::create(arg0, arg1, arg2, arg3, arg4); + object_to_luaval(tolua_S, "cc.MotionStreak",(axis::MotionStreak*)ret); return 1; } } while (0); @@ -66233,14 +66233,14 @@ int lua_cocos2dx_MotionStreak_create(lua_State* tolua_S) double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.MotionStreak:create"); if (!ok) { break; } - cocos2d::Color3B arg3; + axis::Color3B arg3; ok &= luaval_to_color3b(tolua_S, 5, &arg3, "cc.MotionStreak:create"); if (!ok) { break; } std::string_view arg4; ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "cc.MotionStreak:create"); if (!ok) { break; } - cocos2d::MotionStreak* ret = cocos2d::MotionStreak::create(arg0, arg1, arg2, arg3, arg4); - object_to_luaval(tolua_S, "cc.MotionStreak",(cocos2d::MotionStreak*)ret); + axis::MotionStreak* ret = axis::MotionStreak::create(arg0, arg1, arg2, arg3, arg4); + object_to_luaval(tolua_S, "cc.MotionStreak",(axis::MotionStreak*)ret); return 1; } } while (0); @@ -66256,7 +66256,7 @@ int lua_cocos2dx_MotionStreak_create(lua_State* tolua_S) int lua_cocos2dx_MotionStreak_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::MotionStreak* cobj = nullptr; + axis::MotionStreak* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -66273,7 +66273,7 @@ int lua_cocos2dx_MotionStreak_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MotionStreak_constructor'", nullptr); return 0; } - cobj = new cocos2d::MotionStreak(); + cobj = new axis::MotionStreak(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -66318,7 +66318,7 @@ int lua_register_cocos2dx_MotionStreak(lua_State* tolua_S) tolua_function(tolua_S,"setStroke",lua_cocos2dx_MotionStreak_setStroke); tolua_function(tolua_S,"create", lua_cocos2dx_MotionStreak_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::MotionStreak).name(); // rtti is literal storage + auto typeName = typeid(axis::MotionStreak).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.MotionStreak"; g_typeCast[typeName] = "cc.MotionStreak"; return 1; @@ -66327,7 +66327,7 @@ int lua_register_cocos2dx_MotionStreak(lua_State* tolua_S) int lua_cocos2dx_NodeGrid_setGridRect(lua_State* tolua_S) { int argc = 0; - cocos2d::NodeGrid* cobj = nullptr; + axis::NodeGrid* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -66339,7 +66339,7 @@ int lua_cocos2dx_NodeGrid_setGridRect(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NodeGrid",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NodeGrid*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NodeGrid*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -66352,7 +66352,7 @@ int lua_cocos2dx_NodeGrid_setGridRect(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Rect arg0; + axis::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "cc.NodeGrid:setGridRect"); if(!ok) @@ -66377,7 +66377,7 @@ int lua_cocos2dx_NodeGrid_setGridRect(lua_State* tolua_S) int lua_cocos2dx_NodeGrid_setTarget(lua_State* tolua_S) { int argc = 0; - cocos2d::NodeGrid* cobj = nullptr; + axis::NodeGrid* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -66389,7 +66389,7 @@ int lua_cocos2dx_NodeGrid_setTarget(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NodeGrid",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NodeGrid*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NodeGrid*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -66402,9 +66402,9 @@ int lua_cocos2dx_NodeGrid_setTarget(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Node* arg0; + axis::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.NodeGrid:setTarget"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.NodeGrid:setTarget"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_NodeGrid_setTarget'", nullptr); @@ -66427,7 +66427,7 @@ int lua_cocos2dx_NodeGrid_setTarget(lua_State* tolua_S) int lua_cocos2dx_NodeGrid_setGrid(lua_State* tolua_S) { int argc = 0; - cocos2d::NodeGrid* cobj = nullptr; + axis::NodeGrid* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -66439,7 +66439,7 @@ int lua_cocos2dx_NodeGrid_setGrid(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NodeGrid",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NodeGrid*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NodeGrid*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -66452,9 +66452,9 @@ int lua_cocos2dx_NodeGrid_setGrid(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::GridBase* arg0; + axis::GridBase* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.GridBase",&arg0, "cc.NodeGrid:setGrid"); + ok &= luaval_to_object(tolua_S, 2, "cc.GridBase",&arg0, "cc.NodeGrid:setGrid"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_NodeGrid_setGrid'", nullptr); @@ -66477,7 +66477,7 @@ int lua_cocos2dx_NodeGrid_setGrid(lua_State* tolua_S) int lua_cocos2dx_NodeGrid_getGrid(lua_State* tolua_S) { int argc = 0; - cocos2d::NodeGrid* cobj = nullptr; + axis::NodeGrid* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -66486,7 +66486,7 @@ int lua_cocos2dx_NodeGrid_getGrid(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.NodeGrid",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NodeGrid*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NodeGrid*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -66497,16 +66497,16 @@ int lua_cocos2dx_NodeGrid_getGrid(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 0) { - const cocos2d::GridBase* ret = cobj->getGrid(); - object_to_luaval(tolua_S, "cc.GridBase",(cocos2d::GridBase*)ret); + const axis::GridBase* ret = cobj->getGrid(); + object_to_luaval(tolua_S, "cc.GridBase",(axis::GridBase*)ret); return 1; } }while(0); ok = true; do{ if (argc == 0) { - cocos2d::GridBase* ret = cobj->getGrid(); - object_to_luaval(tolua_S, "cc.GridBase",(cocos2d::GridBase*)ret); + axis::GridBase* ret = cobj->getGrid(); + object_to_luaval(tolua_S, "cc.GridBase",(axis::GridBase*)ret); return 1; } }while(0); @@ -66524,7 +66524,7 @@ int lua_cocos2dx_NodeGrid_getGrid(lua_State* tolua_S) int lua_cocos2dx_NodeGrid_getGridRect(lua_State* tolua_S) { int argc = 0; - cocos2d::NodeGrid* cobj = nullptr; + axis::NodeGrid* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -66536,7 +66536,7 @@ int lua_cocos2dx_NodeGrid_getGridRect(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NodeGrid",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NodeGrid*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NodeGrid*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -66554,7 +66554,7 @@ int lua_cocos2dx_NodeGrid_getGridRect(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_NodeGrid_getGridRect'", nullptr); return 0; } - const cocos2d::Rect& ret = cobj->getGridRect(); + const axis::Rect& ret = cobj->getGridRect(); rect_to_luaval(tolua_S, ret); return 1; } @@ -66586,11 +66586,11 @@ int lua_cocos2dx_NodeGrid_create(lua_State* tolua_S) { if (argc == 1) { - cocos2d::Rect arg0; + axis::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "cc.NodeGrid:create"); if (!ok) { break; } - cocos2d::NodeGrid* ret = cocos2d::NodeGrid::create(arg0); - object_to_luaval(tolua_S, "cc.NodeGrid",(cocos2d::NodeGrid*)ret); + axis::NodeGrid* ret = axis::NodeGrid::create(arg0); + object_to_luaval(tolua_S, "cc.NodeGrid",(axis::NodeGrid*)ret); return 1; } } while (0); @@ -66599,8 +66599,8 @@ int lua_cocos2dx_NodeGrid_create(lua_State* tolua_S) { if (argc == 0) { - cocos2d::NodeGrid* ret = cocos2d::NodeGrid::create(); - object_to_luaval(tolua_S, "cc.NodeGrid",(cocos2d::NodeGrid*)ret); + axis::NodeGrid* ret = axis::NodeGrid::create(); + object_to_luaval(tolua_S, "cc.NodeGrid",(axis::NodeGrid*)ret); return 1; } } while (0); @@ -66616,7 +66616,7 @@ int lua_cocos2dx_NodeGrid_create(lua_State* tolua_S) int lua_cocos2dx_NodeGrid_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::NodeGrid* cobj = nullptr; + axis::NodeGrid* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -66633,7 +66633,7 @@ int lua_cocos2dx_NodeGrid_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_NodeGrid_constructor'", nullptr); return 0; } - cobj = new cocos2d::NodeGrid(); + cobj = new axis::NodeGrid(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -66670,7 +66670,7 @@ int lua_register_cocos2dx_NodeGrid(lua_State* tolua_S) tolua_function(tolua_S,"getGridRect",lua_cocos2dx_NodeGrid_getGridRect); tolua_function(tolua_S,"create", lua_cocos2dx_NodeGrid_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::NodeGrid).name(); // rtti is literal storage + auto typeName = typeid(axis::NodeGrid).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.NodeGrid"; g_typeCast[typeName] = "cc.NodeGrid"; return 1; @@ -66679,7 +66679,7 @@ int lua_register_cocos2dx_NodeGrid(lua_State* tolua_S) int lua_cocos2dx_ParticleBatchNode_setTexture(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleBatchNode* cobj = nullptr; + axis::ParticleBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -66691,7 +66691,7 @@ int lua_cocos2dx_ParticleBatchNode_setTexture(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -66704,9 +66704,9 @@ int lua_cocos2dx_ParticleBatchNode_setTexture(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Texture2D* arg0; + axis::Texture2D* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.ParticleBatchNode:setTexture"); + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.ParticleBatchNode:setTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleBatchNode_setTexture'", nullptr); @@ -66729,7 +66729,7 @@ int lua_cocos2dx_ParticleBatchNode_setTexture(lua_State* tolua_S) int lua_cocos2dx_ParticleBatchNode_initWithTexture(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleBatchNode* cobj = nullptr; + axis::ParticleBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -66741,7 +66741,7 @@ int lua_cocos2dx_ParticleBatchNode_initWithTexture(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -66754,10 +66754,10 @@ int lua_cocos2dx_ParticleBatchNode_initWithTexture(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::Texture2D* arg0; + axis::Texture2D* arg0; int arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.ParticleBatchNode:initWithTexture"); + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.ParticleBatchNode:initWithTexture"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.ParticleBatchNode:initWithTexture"); if(!ok) @@ -66782,7 +66782,7 @@ int lua_cocos2dx_ParticleBatchNode_initWithTexture(lua_State* tolua_S) int lua_cocos2dx_ParticleBatchNode_disableParticle(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleBatchNode* cobj = nullptr; + axis::ParticleBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -66794,7 +66794,7 @@ int lua_cocos2dx_ParticleBatchNode_disableParticle(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -66832,7 +66832,7 @@ int lua_cocos2dx_ParticleBatchNode_disableParticle(lua_State* tolua_S) int lua_cocos2dx_ParticleBatchNode_getTexture(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleBatchNode* cobj = nullptr; + axis::ParticleBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -66844,7 +66844,7 @@ int lua_cocos2dx_ParticleBatchNode_getTexture(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -66862,8 +66862,8 @@ int lua_cocos2dx_ParticleBatchNode_getTexture(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleBatchNode_getTexture'", nullptr); return 0; } - cocos2d::Texture2D* ret = cobj->getTexture(); - object_to_luaval(tolua_S, "cc.Texture2D",(cocos2d::Texture2D*)ret); + axis::Texture2D* ret = cobj->getTexture(); + object_to_luaval(tolua_S, "cc.Texture2D",(axis::Texture2D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleBatchNode:getTexture",argc, 0); @@ -66879,7 +66879,7 @@ int lua_cocos2dx_ParticleBatchNode_getTexture(lua_State* tolua_S) int lua_cocos2dx_ParticleBatchNode_setTextureAtlas(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleBatchNode* cobj = nullptr; + axis::ParticleBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -66891,7 +66891,7 @@ int lua_cocos2dx_ParticleBatchNode_setTextureAtlas(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -66904,9 +66904,9 @@ int lua_cocos2dx_ParticleBatchNode_setTextureAtlas(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::TextureAtlas* arg0; + axis::TextureAtlas* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.TextureAtlas",&arg0, "cc.ParticleBatchNode:setTextureAtlas"); + ok &= luaval_to_object(tolua_S, 2, "cc.TextureAtlas",&arg0, "cc.ParticleBatchNode:setTextureAtlas"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleBatchNode_setTextureAtlas'", nullptr); @@ -66929,7 +66929,7 @@ int lua_cocos2dx_ParticleBatchNode_setTextureAtlas(lua_State* tolua_S) int lua_cocos2dx_ParticleBatchNode_initWithFile(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleBatchNode* cobj = nullptr; + axis::ParticleBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -66941,7 +66941,7 @@ int lua_cocos2dx_ParticleBatchNode_initWithFile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -66982,7 +66982,7 @@ int lua_cocos2dx_ParticleBatchNode_initWithFile(lua_State* tolua_S) int lua_cocos2dx_ParticleBatchNode_setBlendFunc(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleBatchNode* cobj = nullptr; + axis::ParticleBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -66994,7 +66994,7 @@ int lua_cocos2dx_ParticleBatchNode_setBlendFunc(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -67007,7 +67007,7 @@ int lua_cocos2dx_ParticleBatchNode_setBlendFunc(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::BlendFunc arg0; + axis::BlendFunc arg0; ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "cc.ParticleBatchNode:setBlendFunc"); if(!ok) @@ -67032,7 +67032,7 @@ int lua_cocos2dx_ParticleBatchNode_setBlendFunc(lua_State* tolua_S) int lua_cocos2dx_ParticleBatchNode_removeAllChildrenWithCleanup(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleBatchNode* cobj = nullptr; + axis::ParticleBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -67044,7 +67044,7 @@ int lua_cocos2dx_ParticleBatchNode_removeAllChildrenWithCleanup(lua_State* tolua if (!tolua_isusertype(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -67082,7 +67082,7 @@ int lua_cocos2dx_ParticleBatchNode_removeAllChildrenWithCleanup(lua_State* tolua int lua_cocos2dx_ParticleBatchNode_getTextureAtlas(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleBatchNode* cobj = nullptr; + axis::ParticleBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -67094,7 +67094,7 @@ int lua_cocos2dx_ParticleBatchNode_getTextureAtlas(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -67112,8 +67112,8 @@ int lua_cocos2dx_ParticleBatchNode_getTextureAtlas(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleBatchNode_getTextureAtlas'", nullptr); return 0; } - cocos2d::TextureAtlas* ret = cobj->getTextureAtlas(); - object_to_luaval(tolua_S, "cc.TextureAtlas",(cocos2d::TextureAtlas*)ret); + axis::TextureAtlas* ret = cobj->getTextureAtlas(); + object_to_luaval(tolua_S, "cc.TextureAtlas",(axis::TextureAtlas*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleBatchNode:getTextureAtlas",argc, 0); @@ -67129,7 +67129,7 @@ int lua_cocos2dx_ParticleBatchNode_getTextureAtlas(lua_State* tolua_S) int lua_cocos2dx_ParticleBatchNode_getBlendFunc(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleBatchNode* cobj = nullptr; + axis::ParticleBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -67141,7 +67141,7 @@ int lua_cocos2dx_ParticleBatchNode_getBlendFunc(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -67159,7 +67159,7 @@ int lua_cocos2dx_ParticleBatchNode_getBlendFunc(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleBatchNode_getBlendFunc'", nullptr); return 0; } - const cocos2d::BlendFunc& ret = cobj->getBlendFunc(); + const axis::BlendFunc& ret = cobj->getBlendFunc(); blendfunc_to_luaval(tolua_S, ret); return 1; } @@ -67176,7 +67176,7 @@ int lua_cocos2dx_ParticleBatchNode_getBlendFunc(lua_State* tolua_S) int lua_cocos2dx_ParticleBatchNode_insertChild(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleBatchNode* cobj = nullptr; + axis::ParticleBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -67188,7 +67188,7 @@ int lua_cocos2dx_ParticleBatchNode_insertChild(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -67201,10 +67201,10 @@ int lua_cocos2dx_ParticleBatchNode_insertChild(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::ParticleSystem* arg0; + axis::ParticleSystem* arg0; int arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.ParticleSystem",&arg0, "cc.ParticleBatchNode:insertChild"); + ok &= luaval_to_object(tolua_S, 2, "cc.ParticleSystem",&arg0, "cc.ParticleBatchNode:insertChild"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.ParticleBatchNode:insertChild"); if(!ok) @@ -67229,7 +67229,7 @@ int lua_cocos2dx_ParticleBatchNode_insertChild(lua_State* tolua_S) int lua_cocos2dx_ParticleBatchNode_removeChildAtIndex(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleBatchNode* cobj = nullptr; + axis::ParticleBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -67241,7 +67241,7 @@ int lua_cocos2dx_ParticleBatchNode_removeChildAtIndex(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -67303,8 +67303,8 @@ int lua_cocos2dx_ParticleBatchNode_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleBatchNode_create'", nullptr); return 0; } - cocos2d::ParticleBatchNode* ret = cocos2d::ParticleBatchNode::create(arg0); - object_to_luaval(tolua_S, "cc.ParticleBatchNode",(cocos2d::ParticleBatchNode*)ret); + axis::ParticleBatchNode* ret = axis::ParticleBatchNode::create(arg0); + object_to_luaval(tolua_S, "cc.ParticleBatchNode",(axis::ParticleBatchNode*)ret); return 1; } if (argc == 2) @@ -67318,8 +67318,8 @@ int lua_cocos2dx_ParticleBatchNode_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleBatchNode_create'", nullptr); return 0; } - cocos2d::ParticleBatchNode* ret = cocos2d::ParticleBatchNode::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.ParticleBatchNode",(cocos2d::ParticleBatchNode*)ret); + axis::ParticleBatchNode* ret = axis::ParticleBatchNode::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.ParticleBatchNode",(axis::ParticleBatchNode*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleBatchNode:create",argc, 1); @@ -67347,30 +67347,30 @@ int lua_cocos2dx_ParticleBatchNode_createWithTexture(lua_State* tolua_S) if (argc == 1) { - cocos2d::Texture2D* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.ParticleBatchNode:createWithTexture"); + axis::Texture2D* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.ParticleBatchNode:createWithTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleBatchNode_createWithTexture'", nullptr); return 0; } - cocos2d::ParticleBatchNode* ret = cocos2d::ParticleBatchNode::createWithTexture(arg0); - object_to_luaval(tolua_S, "cc.ParticleBatchNode",(cocos2d::ParticleBatchNode*)ret); + axis::ParticleBatchNode* ret = axis::ParticleBatchNode::createWithTexture(arg0); + object_to_luaval(tolua_S, "cc.ParticleBatchNode",(axis::ParticleBatchNode*)ret); return 1; } if (argc == 2) { - cocos2d::Texture2D* arg0; + axis::Texture2D* arg0; int arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.ParticleBatchNode:createWithTexture"); + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.ParticleBatchNode:createWithTexture"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.ParticleBatchNode:createWithTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleBatchNode_createWithTexture'", nullptr); return 0; } - cocos2d::ParticleBatchNode* ret = cocos2d::ParticleBatchNode::createWithTexture(arg0, arg1); - object_to_luaval(tolua_S, "cc.ParticleBatchNode",(cocos2d::ParticleBatchNode*)ret); + axis::ParticleBatchNode* ret = axis::ParticleBatchNode::createWithTexture(arg0, arg1); + object_to_luaval(tolua_S, "cc.ParticleBatchNode",(axis::ParticleBatchNode*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleBatchNode:createWithTexture",argc, 1); @@ -67384,7 +67384,7 @@ int lua_cocos2dx_ParticleBatchNode_createWithTexture(lua_State* tolua_S) int lua_cocos2dx_ParticleBatchNode_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleBatchNode* cobj = nullptr; + axis::ParticleBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -67401,7 +67401,7 @@ int lua_cocos2dx_ParticleBatchNode_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleBatchNode_constructor'", nullptr); return 0; } - cobj = new cocos2d::ParticleBatchNode(); + cobj = new axis::ParticleBatchNode(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -67446,7 +67446,7 @@ int lua_register_cocos2dx_ParticleBatchNode(lua_State* tolua_S) tolua_function(tolua_S,"create", lua_cocos2dx_ParticleBatchNode_create); tolua_function(tolua_S,"createWithTexture", lua_cocos2dx_ParticleBatchNode_createWithTexture); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ParticleBatchNode).name(); // rtti is literal storage + auto typeName = typeid(axis::ParticleBatchNode).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.ParticleBatchNode"; g_typeCast[typeName] = "cc.ParticleBatchNode"; return 1; @@ -67465,7 +67465,7 @@ int lua_register_cocos2dx_SpriteSheet(lua_State* tolua_S) tolua_beginmodule(tolua_S,"SpriteSheet"); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::SpriteSheet).name(); // rtti is literal storage + auto typeName = typeid(axis::SpriteSheet).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.SpriteSheet"; g_typeCast[typeName] = "cc.SpriteSheet"; return 1; @@ -67474,7 +67474,7 @@ int lua_register_cocos2dx_SpriteSheet(lua_State* tolua_S) int lua_cocos2dx_SpriteFrameCache_reloadTexture(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrameCache* cobj = nullptr; + axis::SpriteFrameCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -67486,7 +67486,7 @@ int lua_cocos2dx_SpriteFrameCache_reloadTexture(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -67524,7 +67524,7 @@ int lua_cocos2dx_SpriteFrameCache_reloadTexture(lua_State* tolua_S) int lua_cocos2dx_SpriteFrameCache_getSpriteSheetLoader(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrameCache* cobj = nullptr; + axis::SpriteFrameCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -67536,7 +67536,7 @@ int lua_cocos2dx_SpriteFrameCache_getSpriteSheetLoader(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -67557,8 +67557,8 @@ int lua_cocos2dx_SpriteFrameCache_getSpriteSheetLoader(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrameCache_getSpriteSheetLoader'", nullptr); return 0; } - cocos2d::ISpriteSheetLoader* ret = cobj->getSpriteSheetLoader(arg0); - object_to_luaval(tolua_S, "cc.ISpriteSheetLoader",(cocos2d::ISpriteSheetLoader*)ret); + axis::ISpriteSheetLoader* ret = cobj->getSpriteSheetLoader(arg0); + object_to_luaval(tolua_S, "cc.ISpriteSheetLoader",(axis::ISpriteSheetLoader*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrameCache:getSpriteSheetLoader",argc, 1); @@ -67574,7 +67574,7 @@ int lua_cocos2dx_SpriteFrameCache_getSpriteSheetLoader(lua_State* tolua_S) int lua_cocos2dx_SpriteFrameCache_addSpriteFrame(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrameCache* cobj = nullptr; + axis::SpriteFrameCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -67586,7 +67586,7 @@ int lua_cocos2dx_SpriteFrameCache_addSpriteFrame(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -67599,10 +67599,10 @@ int lua_cocos2dx_SpriteFrameCache_addSpriteFrame(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::SpriteFrame* arg0; + axis::SpriteFrame* arg0; std::string_view arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.SpriteFrameCache:addSpriteFrame"); + ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.SpriteFrameCache:addSpriteFrame"); ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "cc.SpriteFrameCache:addSpriteFrame"); if(!ok) @@ -67627,7 +67627,7 @@ int lua_cocos2dx_SpriteFrameCache_addSpriteFrame(lua_State* tolua_S) int lua_cocos2dx_SpriteFrameCache_findFrame(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrameCache* cobj = nullptr; + axis::SpriteFrameCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -67639,7 +67639,7 @@ int lua_cocos2dx_SpriteFrameCache_findFrame(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -67660,8 +67660,8 @@ int lua_cocos2dx_SpriteFrameCache_findFrame(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrameCache_findFrame'", nullptr); return 0; } - cocos2d::SpriteFrame* ret = cobj->findFrame(arg0); - object_to_luaval(tolua_S, "cc.SpriteFrame",(cocos2d::SpriteFrame*)ret); + axis::SpriteFrame* ret = cobj->findFrame(arg0); + object_to_luaval(tolua_S, "cc.SpriteFrame",(axis::SpriteFrame*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrameCache:findFrame",argc, 1); @@ -67677,7 +67677,7 @@ int lua_cocos2dx_SpriteFrameCache_findFrame(lua_State* tolua_S) int lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFile(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrameCache* cobj = nullptr; + axis::SpriteFrameCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -67686,7 +67686,7 @@ int lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFile(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -67765,8 +67765,8 @@ int lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFile(lua_State* tolua_S) ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.SpriteFrameCache:addSpriteFramesWithFile"); if (!ok) { break; } - cocos2d::Texture2D* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Texture2D",&arg1, "cc.SpriteFrameCache:addSpriteFramesWithFile"); + axis::Texture2D* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Texture2D",&arg1, "cc.SpriteFrameCache:addSpriteFramesWithFile"); if (!ok) { break; } cobj->addSpriteFramesWithFile(arg0, arg1); @@ -67781,8 +67781,8 @@ int lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFile(lua_State* tolua_S) ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.SpriteFrameCache:addSpriteFramesWithFile"); if (!ok) { break; } - cocos2d::Texture2D* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Texture2D",&arg1, "cc.SpriteFrameCache:addSpriteFramesWithFile"); + axis::Texture2D* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Texture2D",&arg1, "cc.SpriteFrameCache:addSpriteFramesWithFile"); if (!ok) { break; } unsigned int arg2; @@ -67808,7 +67808,7 @@ int lua_cocos2dx_SpriteFrameCache_addSpriteFramesWithFile(lua_State* tolua_S) int lua_cocos2dx_SpriteFrameCache_getSpriteFrameByName(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrameCache* cobj = nullptr; + axis::SpriteFrameCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -67820,7 +67820,7 @@ int lua_cocos2dx_SpriteFrameCache_getSpriteFrameByName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -67841,8 +67841,8 @@ int lua_cocos2dx_SpriteFrameCache_getSpriteFrameByName(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrameCache_getSpriteFrameByName'", nullptr); return 0; } - cocos2d::SpriteFrame* ret = cobj->getSpriteFrameByName(arg0); - object_to_luaval(tolua_S, "cc.SpriteFrame",(cocos2d::SpriteFrame*)ret); + axis::SpriteFrame* ret = cobj->getSpriteFrameByName(arg0); + object_to_luaval(tolua_S, "cc.SpriteFrame",(axis::SpriteFrame*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteFrameCache:getSpriteFrameByName",argc, 1); @@ -67858,7 +67858,7 @@ int lua_cocos2dx_SpriteFrameCache_getSpriteFrameByName(lua_State* tolua_S) int lua_cocos2dx_SpriteFrameCache_addSpriteFrameCapInset(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrameCache* cobj = nullptr; + axis::SpriteFrameCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -67870,7 +67870,7 @@ int lua_cocos2dx_SpriteFrameCache_addSpriteFrameCapInset(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -67883,15 +67883,15 @@ int lua_cocos2dx_SpriteFrameCache_addSpriteFrameCapInset(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 3) { - cocos2d::SpriteFrame* arg0; - cocos2d::Rect arg1; - cocos2d::Texture2D* arg2; + axis::SpriteFrame* arg0; + axis::Rect arg1; + axis::Texture2D* arg2; - ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.SpriteFrameCache:addSpriteFrameCapInset"); + ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.SpriteFrameCache:addSpriteFrameCapInset"); ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.SpriteFrameCache:addSpriteFrameCapInset"); - ok &= luaval_to_object(tolua_S, 4, "cc.Texture2D",&arg2, "cc.SpriteFrameCache:addSpriteFrameCapInset"); + ok &= luaval_to_object(tolua_S, 4, "cc.Texture2D",&arg2, "cc.SpriteFrameCache:addSpriteFrameCapInset"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrameCache_addSpriteFrameCapInset'", nullptr); @@ -67914,7 +67914,7 @@ int lua_cocos2dx_SpriteFrameCache_addSpriteFrameCapInset(lua_State* tolua_S) int lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFile(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrameCache* cobj = nullptr; + axis::SpriteFrameCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -67926,7 +67926,7 @@ int lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -67964,7 +67964,7 @@ int lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFile(lua_State* tolua_S) int lua_cocos2dx_SpriteFrameCache_init(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrameCache* cobj = nullptr; + axis::SpriteFrameCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -67976,7 +67976,7 @@ int lua_cocos2dx_SpriteFrameCache_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -68011,7 +68011,7 @@ int lua_cocos2dx_SpriteFrameCache_init(lua_State* tolua_S) int lua_cocos2dx_SpriteFrameCache_removeSpriteFrames(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrameCache* cobj = nullptr; + axis::SpriteFrameCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -68023,7 +68023,7 @@ int lua_cocos2dx_SpriteFrameCache_removeSpriteFrames(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -68058,7 +68058,7 @@ int lua_cocos2dx_SpriteFrameCache_removeSpriteFrames(lua_State* tolua_S) int lua_cocos2dx_SpriteFrameCache_deregisterSpriteSheetLoader(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrameCache* cobj = nullptr; + axis::SpriteFrameCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -68070,7 +68070,7 @@ int lua_cocos2dx_SpriteFrameCache_deregisterSpriteSheetLoader(lua_State* tolua_S if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -68108,7 +68108,7 @@ int lua_cocos2dx_SpriteFrameCache_deregisterSpriteSheetLoader(lua_State* tolua_S int lua_cocos2dx_SpriteFrameCache_removeUnusedSpriteFrames(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrameCache* cobj = nullptr; + axis::SpriteFrameCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -68120,7 +68120,7 @@ int lua_cocos2dx_SpriteFrameCache_removeUnusedSpriteFrames(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -68155,7 +68155,7 @@ int lua_cocos2dx_SpriteFrameCache_removeUnusedSpriteFrames(lua_State* tolua_S) int lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFileContent(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrameCache* cobj = nullptr; + axis::SpriteFrameCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -68167,7 +68167,7 @@ int lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFileContent(lua_State* t if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -68205,7 +68205,7 @@ int lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromFileContent(lua_State* t int lua_cocos2dx_SpriteFrameCache_removeSpriteFrameByName(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrameCache* cobj = nullptr; + axis::SpriteFrameCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -68217,7 +68217,7 @@ int lua_cocos2dx_SpriteFrameCache_removeSpriteFrameByName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -68255,7 +68255,7 @@ int lua_cocos2dx_SpriteFrameCache_removeSpriteFrameByName(lua_State* tolua_S) int lua_cocos2dx_SpriteFrameCache_eraseFrame(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrameCache* cobj = nullptr; + axis::SpriteFrameCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -68267,7 +68267,7 @@ int lua_cocos2dx_SpriteFrameCache_eraseFrame(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -68305,7 +68305,7 @@ int lua_cocos2dx_SpriteFrameCache_eraseFrame(lua_State* tolua_S) int lua_cocos2dx_SpriteFrameCache_isSpriteFramesWithFileLoaded(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrameCache* cobj = nullptr; + axis::SpriteFrameCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -68317,7 +68317,7 @@ int lua_cocos2dx_SpriteFrameCache_isSpriteFramesWithFileLoaded(lua_State* tolua_ if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -68355,7 +68355,7 @@ int lua_cocos2dx_SpriteFrameCache_isSpriteFramesWithFileLoaded(lua_State* tolua_ int lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromTexture(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteFrameCache* cobj = nullptr; + axis::SpriteFrameCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -68367,7 +68367,7 @@ int lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromTexture(lua_State* tolua if (!tolua_isusertype(tolua_S,1,"cc.SpriteFrameCache",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteFrameCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -68380,9 +68380,9 @@ int lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromTexture(lua_State* tolua argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Texture2D* arg0; + axis::Texture2D* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.SpriteFrameCache:removeSpriteFramesFromTexture"); + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.SpriteFrameCache:removeSpriteFramesFromTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrameCache_removeSpriteFramesFromTexture'", nullptr); @@ -68424,7 +68424,7 @@ int lua_cocos2dx_SpriteFrameCache_destroyInstance(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrameCache_destroyInstance'", nullptr); return 0; } - cocos2d::SpriteFrameCache::destroyInstance(); + axis::SpriteFrameCache::destroyInstance(); lua_settop(tolua_S, 1); return 1; } @@ -68458,8 +68458,8 @@ int lua_cocos2dx_SpriteFrameCache_getInstance(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteFrameCache_getInstance'", nullptr); return 0; } - cocos2d::SpriteFrameCache* ret = cocos2d::SpriteFrameCache::getInstance(); - object_to_luaval(tolua_S, "cc.SpriteFrameCache",(cocos2d::SpriteFrameCache*)ret); + axis::SpriteFrameCache* ret = axis::SpriteFrameCache::getInstance(); + object_to_luaval(tolua_S, "cc.SpriteFrameCache",(axis::SpriteFrameCache*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.SpriteFrameCache:getInstance",argc, 0); @@ -68502,7 +68502,7 @@ int lua_register_cocos2dx_SpriteFrameCache(lua_State* tolua_S) tolua_function(tolua_S,"destroyInstance", lua_cocos2dx_SpriteFrameCache_destroyInstance); tolua_function(tolua_S,"getInstance", lua_cocos2dx_SpriteFrameCache_getInstance); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::SpriteFrameCache).name(); // rtti is literal storage + auto typeName = typeid(axis::SpriteFrameCache).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.SpriteFrameCache"; g_typeCast[typeName] = "cc.SpriteFrameCache"; return 1; @@ -68511,7 +68511,7 @@ int lua_register_cocos2dx_SpriteFrameCache(lua_State* tolua_S) int lua_cocos2dx_ParticleData_release(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleData* cobj = nullptr; + axis::ParticleData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -68523,7 +68523,7 @@ int lua_cocos2dx_ParticleData_release(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleData",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleData*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleData*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -68558,7 +68558,7 @@ int lua_cocos2dx_ParticleData_release(lua_State* tolua_S) int lua_cocos2dx_ParticleData_getMaxCount(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleData* cobj = nullptr; + axis::ParticleData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -68570,7 +68570,7 @@ int lua_cocos2dx_ParticleData_getMaxCount(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleData",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleData*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleData*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -68605,7 +68605,7 @@ int lua_cocos2dx_ParticleData_getMaxCount(lua_State* tolua_S) int lua_cocos2dx_ParticleData_init(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleData* cobj = nullptr; + axis::ParticleData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -68617,7 +68617,7 @@ int lua_cocos2dx_ParticleData_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleData",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleData*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleData*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -68655,7 +68655,7 @@ int lua_cocos2dx_ParticleData_init(lua_State* tolua_S) int lua_cocos2dx_ParticleData_copyParticle(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleData* cobj = nullptr; + axis::ParticleData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -68667,7 +68667,7 @@ int lua_cocos2dx_ParticleData_copyParticle(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleData",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleData*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleData*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -68708,7 +68708,7 @@ int lua_cocos2dx_ParticleData_copyParticle(lua_State* tolua_S) int lua_cocos2dx_ParticleData_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleData* cobj = nullptr; + axis::ParticleData* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -68725,7 +68725,7 @@ int lua_cocos2dx_ParticleData_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleData_constructor'", nullptr); return 0; } - cobj = new cocos2d::ParticleData(); + cobj = new axis::ParticleData(); tolua_pushusertype(tolua_S,(void*)cobj,"cc.ParticleData"); tolua_register_gc(tolua_S,lua_gettop(tolua_S)); return 1; @@ -68758,7 +68758,7 @@ int lua_register_cocos2dx_ParticleData(lua_State* tolua_S) tolua_function(tolua_S,"init",lua_cocos2dx_ParticleData_init); tolua_function(tolua_S,"copyParticle",lua_cocos2dx_ParticleData_copyParticle); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ParticleData).name(); // rtti is literal storage + auto typeName = typeid(axis::ParticleData).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.ParticleData"; g_typeCast[typeName] = "cc.ParticleData"; return 1; @@ -68767,7 +68767,7 @@ int lua_register_cocos2dx_ParticleData(lua_State* tolua_S) int lua_cocos2dx_ParticleEmissionMaskCache_bakeEmissionMask(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleEmissionMaskCache* cobj = nullptr; + axis::ParticleEmissionMaskCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -68776,7 +68776,7 @@ int lua_cocos2dx_ParticleEmissionMaskCache_bakeEmissionMask(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleEmissionMaskCache",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleEmissionMaskCache*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleEmissionMaskCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -68791,8 +68791,8 @@ int lua_cocos2dx_ParticleEmissionMaskCache_bakeEmissionMask(lua_State* tolua_S) ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.ParticleEmissionMaskCache:bakeEmissionMask"); if (!ok) { break; } - cocos2d::Image* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Image",&arg1, "cc.ParticleEmissionMaskCache:bakeEmissionMask"); + axis::Image* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Image",&arg1, "cc.ParticleEmissionMaskCache:bakeEmissionMask"); if (!ok) { break; } cobj->bakeEmissionMask(arg0, arg1); @@ -68807,8 +68807,8 @@ int lua_cocos2dx_ParticleEmissionMaskCache_bakeEmissionMask(lua_State* tolua_S) ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.ParticleEmissionMaskCache:bakeEmissionMask"); if (!ok) { break; } - cocos2d::Image* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Image",&arg1, "cc.ParticleEmissionMaskCache:bakeEmissionMask"); + axis::Image* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Image",&arg1, "cc.ParticleEmissionMaskCache:bakeEmissionMask"); if (!ok) { break; } double arg2; @@ -68827,8 +68827,8 @@ int lua_cocos2dx_ParticleEmissionMaskCache_bakeEmissionMask(lua_State* tolua_S) ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.ParticleEmissionMaskCache:bakeEmissionMask"); if (!ok) { break; } - cocos2d::Image* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Image",&arg1, "cc.ParticleEmissionMaskCache:bakeEmissionMask"); + axis::Image* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Image",&arg1, "cc.ParticleEmissionMaskCache:bakeEmissionMask"); if (!ok) { break; } double arg2; @@ -68851,8 +68851,8 @@ int lua_cocos2dx_ParticleEmissionMaskCache_bakeEmissionMask(lua_State* tolua_S) ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.ParticleEmissionMaskCache:bakeEmissionMask"); if (!ok) { break; } - cocos2d::Image* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Image",&arg1, "cc.ParticleEmissionMaskCache:bakeEmissionMask"); + axis::Image* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Image",&arg1, "cc.ParticleEmissionMaskCache:bakeEmissionMask"); if (!ok) { break; } double arg2; @@ -68974,7 +68974,7 @@ int lua_cocos2dx_ParticleEmissionMaskCache_bakeEmissionMask(lua_State* tolua_S) int lua_cocos2dx_ParticleEmissionMaskCache_removeMask(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleEmissionMaskCache* cobj = nullptr; + axis::ParticleEmissionMaskCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -68986,7 +68986,7 @@ int lua_cocos2dx_ParticleEmissionMaskCache_removeMask(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleEmissionMaskCache",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleEmissionMaskCache*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleEmissionMaskCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -69024,7 +69024,7 @@ int lua_cocos2dx_ParticleEmissionMaskCache_removeMask(lua_State* tolua_S) int lua_cocos2dx_ParticleEmissionMaskCache_getEmissionMask(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleEmissionMaskCache* cobj = nullptr; + axis::ParticleEmissionMaskCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -69033,7 +69033,7 @@ int lua_cocos2dx_ParticleEmissionMaskCache_getEmissionMask(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleEmissionMaskCache",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleEmissionMaskCache*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleEmissionMaskCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -69048,7 +69048,7 @@ int lua_cocos2dx_ParticleEmissionMaskCache_getEmissionMask(lua_State* tolua_S) ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.ParticleEmissionMaskCache:getEmissionMask"); if (!ok) { break; } - const cocos2d::ParticleEmissionMaskDescriptor& ret = cobj->getEmissionMask(arg0); + const axis::ParticleEmissionMaskDescriptor& ret = cobj->getEmissionMask(arg0); #pragma warning NO CONVERSION FROM NATIVE FOR ParticleEmissionMaskDescriptor; return 1; } @@ -69060,7 +69060,7 @@ int lua_cocos2dx_ParticleEmissionMaskCache_getEmissionMask(lua_State* tolua_S) ok &= luaval_to_uint32(tolua_S, 2,&arg0, "cc.ParticleEmissionMaskCache:getEmissionMask"); if (!ok) { break; } - const cocos2d::ParticleEmissionMaskDescriptor& ret = cobj->getEmissionMask(arg0); + const axis::ParticleEmissionMaskDescriptor& ret = cobj->getEmissionMask(arg0); #pragma warning NO CONVERSION FROM NATIVE FOR ParticleEmissionMaskDescriptor; return 1; } @@ -69079,7 +69079,7 @@ int lua_cocos2dx_ParticleEmissionMaskCache_getEmissionMask(lua_State* tolua_S) int lua_cocos2dx_ParticleEmissionMaskCache_removeAllMasks(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleEmissionMaskCache* cobj = nullptr; + axis::ParticleEmissionMaskCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -69091,7 +69091,7 @@ int lua_cocos2dx_ParticleEmissionMaskCache_removeAllMasks(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleEmissionMaskCache",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleEmissionMaskCache*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleEmissionMaskCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -69145,8 +69145,8 @@ int lua_cocos2dx_ParticleEmissionMaskCache_getInstance(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleEmissionMaskCache_getInstance'", nullptr); return 0; } - cocos2d::ParticleEmissionMaskCache* ret = cocos2d::ParticleEmissionMaskCache::getInstance(); - object_to_luaval(tolua_S, "cc.ParticleEmissionMaskCache",(cocos2d::ParticleEmissionMaskCache*)ret); + axis::ParticleEmissionMaskCache* ret = axis::ParticleEmissionMaskCache::getInstance(); + object_to_luaval(tolua_S, "cc.ParticleEmissionMaskCache",(axis::ParticleEmissionMaskCache*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleEmissionMaskCache:getInstance",argc, 0); @@ -69175,7 +69175,7 @@ int lua_register_cocos2dx_ParticleEmissionMaskCache(lua_State* tolua_S) tolua_function(tolua_S,"removeAllMasks",lua_cocos2dx_ParticleEmissionMaskCache_removeAllMasks); tolua_function(tolua_S,"getInstance", lua_cocos2dx_ParticleEmissionMaskCache_getInstance); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ParticleEmissionMaskCache).name(); // rtti is literal storage + auto typeName = typeid(axis::ParticleEmissionMaskCache).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.ParticleEmissionMaskCache"; g_typeCast[typeName] = "cc.ParticleEmissionMaskCache"; return 1; @@ -69184,7 +69184,7 @@ int lua_register_cocos2dx_ParticleEmissionMaskCache(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getStartSizeVar(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -69196,7 +69196,7 @@ int lua_cocos2dx_ParticleSystem_getStartSizeVar(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -69231,7 +69231,7 @@ int lua_cocos2dx_ParticleSystem_getStartSizeVar(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setAnimationDescriptor(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -69240,7 +69240,7 @@ int lua_cocos2dx_ParticleSystem_setAnimationDescriptor(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -69342,7 +69342,7 @@ int lua_cocos2dx_ParticleSystem_setAnimationDescriptor(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getTexture(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -69354,7 +69354,7 @@ int lua_cocos2dx_ParticleSystem_getTexture(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -69372,8 +69372,8 @@ int lua_cocos2dx_ParticleSystem_getTexture(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getTexture'", nullptr); return 0; } - cocos2d::Texture2D* ret = cobj->getTexture(); - object_to_luaval(tolua_S, "cc.Texture2D",(cocos2d::Texture2D*)ret); + axis::Texture2D* ret = cobj->getTexture(); + object_to_luaval(tolua_S, "cc.Texture2D",(axis::Texture2D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getTexture",argc, 0); @@ -69389,7 +69389,7 @@ int lua_cocos2dx_ParticleSystem_getTexture(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_isFull(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -69401,7 +69401,7 @@ int lua_cocos2dx_ParticleSystem_isFull(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -69436,7 +69436,7 @@ int lua_cocos2dx_ParticleSystem_isFull(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getBatchNode(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -69448,7 +69448,7 @@ int lua_cocos2dx_ParticleSystem_getBatchNode(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -69466,8 +69466,8 @@ int lua_cocos2dx_ParticleSystem_getBatchNode(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getBatchNode'", nullptr); return 0; } - cocos2d::ParticleBatchNode* ret = cobj->getBatchNode(); - object_to_luaval(tolua_S, "cc.ParticleBatchNode",(cocos2d::ParticleBatchNode*)ret); + axis::ParticleBatchNode* ret = cobj->getBatchNode(); + object_to_luaval(tolua_S, "cc.ParticleBatchNode",(axis::ParticleBatchNode*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem:getBatchNode",argc, 0); @@ -69483,7 +69483,7 @@ int lua_cocos2dx_ParticleSystem_getBatchNode(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getStartColor(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -69495,7 +69495,7 @@ int lua_cocos2dx_ParticleSystem_getStartColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -69513,7 +69513,7 @@ int lua_cocos2dx_ParticleSystem_getStartColor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getStartColor'", nullptr); return 0; } - const cocos2d::Color4F& ret = cobj->getStartColor(); + const axis::Color4F& ret = cobj->getStartColor(); color4f_to_luaval(tolua_S, ret); return 1; } @@ -69530,7 +69530,7 @@ int lua_cocos2dx_ParticleSystem_getStartColor(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getPositionType(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -69542,7 +69542,7 @@ int lua_cocos2dx_ParticleSystem_getPositionType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -69577,7 +69577,7 @@ int lua_cocos2dx_ParticleSystem_getPositionType(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getSpawnAngle(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -69589,7 +69589,7 @@ int lua_cocos2dx_ParticleSystem_getSpawnAngle(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -69624,7 +69624,7 @@ int lua_cocos2dx_ParticleSystem_getSpawnAngle(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setPosVar(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -69636,7 +69636,7 @@ int lua_cocos2dx_ParticleSystem_setPosVar(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -69649,7 +69649,7 @@ int lua_cocos2dx_ParticleSystem_setPosVar(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.ParticleSystem:setPosVar"); if(!ok) @@ -69674,7 +69674,7 @@ int lua_cocos2dx_ParticleSystem_setPosVar(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getEndSpin(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -69686,7 +69686,7 @@ int lua_cocos2dx_ParticleSystem_getEndSpin(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -69721,7 +69721,7 @@ int lua_cocos2dx_ParticleSystem_getEndSpin(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getSpawnScaleInVar(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -69733,7 +69733,7 @@ int lua_cocos2dx_ParticleSystem_getSpawnScaleInVar(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -69768,7 +69768,7 @@ int lua_cocos2dx_ParticleSystem_getSpawnScaleInVar(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setRotatePerSecondVar(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -69780,7 +69780,7 @@ int lua_cocos2dx_ParticleSystem_setRotatePerSecondVar(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -69818,7 +69818,7 @@ int lua_cocos2dx_ParticleSystem_setRotatePerSecondVar(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setSourcePositionCompatible(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -69830,7 +69830,7 @@ int lua_cocos2dx_ParticleSystem_setSourcePositionCompatible(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -69868,7 +69868,7 @@ int lua_cocos2dx_ParticleSystem_setSourcePositionCompatible(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getStartSpinVar(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -69880,7 +69880,7 @@ int lua_cocos2dx_ParticleSystem_getStartSpinVar(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -69915,7 +69915,7 @@ int lua_cocos2dx_ParticleSystem_getStartSpinVar(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getRadialAccelVar(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -69927,7 +69927,7 @@ int lua_cocos2dx_ParticleSystem_getRadialAccelVar(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -69962,7 +69962,7 @@ int lua_cocos2dx_ParticleSystem_getRadialAccelVar(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getEndSizeVar(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -69974,7 +69974,7 @@ int lua_cocos2dx_ParticleSystem_getEndSizeVar(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -70009,7 +70009,7 @@ int lua_cocos2dx_ParticleSystem_getEndSizeVar(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_resetAnimationIndices(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -70021,7 +70021,7 @@ int lua_cocos2dx_ParticleSystem_resetAnimationIndices(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -70056,7 +70056,7 @@ int lua_cocos2dx_ParticleSystem_resetAnimationIndices(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setTangentialAccel(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -70068,7 +70068,7 @@ int lua_cocos2dx_ParticleSystem_setTangentialAccel(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -70106,7 +70106,7 @@ int lua_cocos2dx_ParticleSystem_setTangentialAccel(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getTotalAnimationIndices(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -70118,7 +70118,7 @@ int lua_cocos2dx_ParticleSystem_getTotalAnimationIndices(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -70153,7 +70153,7 @@ int lua_cocos2dx_ParticleSystem_getTotalAnimationIndices(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getRadialAccel(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -70165,7 +70165,7 @@ int lua_cocos2dx_ParticleSystem_getRadialAccel(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -70200,7 +70200,7 @@ int lua_cocos2dx_ParticleSystem_getRadialAccel(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getHue(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -70212,7 +70212,7 @@ int lua_cocos2dx_ParticleSystem_getHue(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -70247,7 +70247,7 @@ int lua_cocos2dx_ParticleSystem_getHue(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setRotatePerSecond(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -70259,7 +70259,7 @@ int lua_cocos2dx_ParticleSystem_setRotatePerSecond(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -70297,7 +70297,7 @@ int lua_cocos2dx_ParticleSystem_setRotatePerSecond(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setEndSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -70309,7 +70309,7 @@ int lua_cocos2dx_ParticleSystem_setEndSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -70347,7 +70347,7 @@ int lua_cocos2dx_ParticleSystem_setEndSize(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_isAnimationSpeedTimescaleIndependent(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -70359,7 +70359,7 @@ int lua_cocos2dx_ParticleSystem_isAnimationSpeedTimescaleIndependent(lua_State* if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -70394,7 +70394,7 @@ int lua_cocos2dx_ParticleSystem_isAnimationSpeedTimescaleIndependent(lua_State* int lua_cocos2dx_ParticleSystem_setHSVVar(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -70406,7 +70406,7 @@ int lua_cocos2dx_ParticleSystem_setHSVVar(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -70419,7 +70419,7 @@ int lua_cocos2dx_ParticleSystem_setHSVVar(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::HSV arg0; + axis::HSV arg0; #pragma warning NO CONVERSION TO NATIVE FOR HSV ok = false; @@ -70445,7 +70445,7 @@ int lua_cocos2dx_ParticleSystem_setHSVVar(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getGravity(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -70457,7 +70457,7 @@ int lua_cocos2dx_ParticleSystem_getGravity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -70475,7 +70475,7 @@ int lua_cocos2dx_ParticleSystem_getGravity(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getGravity'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getGravity(); + const axis::Vec2& ret = cobj->getGravity(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -70492,7 +70492,7 @@ int lua_cocos2dx_ParticleSystem_getGravity(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_resumeEmissions(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -70504,7 +70504,7 @@ int lua_cocos2dx_ParticleSystem_resumeEmissions(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -70539,7 +70539,7 @@ int lua_cocos2dx_ParticleSystem_resumeEmissions(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getTangentialAccel(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -70551,7 +70551,7 @@ int lua_cocos2dx_ParticleSystem_getTangentialAccel(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -70586,7 +70586,7 @@ int lua_cocos2dx_ParticleSystem_getTangentialAccel(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setEndRadius(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -70598,7 +70598,7 @@ int lua_cocos2dx_ParticleSystem_setEndRadius(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -70636,7 +70636,7 @@ int lua_cocos2dx_ParticleSystem_setEndRadius(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getSpeed(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -70648,7 +70648,7 @@ int lua_cocos2dx_ParticleSystem_getSpeed(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -70683,7 +70683,7 @@ int lua_cocos2dx_ParticleSystem_getSpeed(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_pauseEmissions(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -70695,7 +70695,7 @@ int lua_cocos2dx_ParticleSystem_pauseEmissions(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -70730,7 +70730,7 @@ int lua_cocos2dx_ParticleSystem_pauseEmissions(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getAngle(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -70742,7 +70742,7 @@ int lua_cocos2dx_ParticleSystem_getAngle(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -70777,7 +70777,7 @@ int lua_cocos2dx_ParticleSystem_getAngle(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_isLoopAnimated(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -70789,7 +70789,7 @@ int lua_cocos2dx_ParticleSystem_isLoopAnimated(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -70824,7 +70824,7 @@ int lua_cocos2dx_ParticleSystem_isLoopAnimated(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setLifeAnimation(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -70836,7 +70836,7 @@ int lua_cocos2dx_ParticleSystem_setLifeAnimation(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -70874,7 +70874,7 @@ int lua_cocos2dx_ParticleSystem_setLifeAnimation(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setEndColor(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -70886,7 +70886,7 @@ int lua_cocos2dx_ParticleSystem_setEndColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -70899,7 +70899,7 @@ int lua_cocos2dx_ParticleSystem_setEndColor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Color4F arg0; + axis::Color4F arg0; ok &=luaval_to_color4f(tolua_S, 2, &arg0, "cc.ParticleSystem:setEndColor"); if(!ok) @@ -70924,7 +70924,7 @@ int lua_cocos2dx_ParticleSystem_setEndColor(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setStartSpin(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -70936,7 +70936,7 @@ int lua_cocos2dx_ParticleSystem_setStartSpin(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -70974,7 +70974,7 @@ int lua_cocos2dx_ParticleSystem_setStartSpin(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -70986,7 +70986,7 @@ int lua_cocos2dx_ParticleSystem_setDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -71024,7 +71024,7 @@ int lua_cocos2dx_ParticleSystem_setDuration(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_addAnimationIndex(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -71033,7 +71033,7 @@ int lua_cocos2dx_ParticleSystem_addAnimationIndex(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -71072,8 +71072,8 @@ int lua_cocos2dx_ParticleSystem_addAnimationIndex(lua_State* tolua_S) ok = true; do{ if (argc == 1) { - cocos2d::SpriteFrame* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.ParticleSystem:addAnimationIndex"); + axis::SpriteFrame* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.ParticleSystem:addAnimationIndex"); if (!ok) { break; } bool ret = cobj->addAnimationIndex(arg0); @@ -71088,8 +71088,8 @@ int lua_cocos2dx_ParticleSystem_addAnimationIndex(lua_State* tolua_S) ok &= luaval_to_ushort(tolua_S, 2, &arg0, "cc.ParticleSystem:addAnimationIndex"); if (!ok) { break; } - cocos2d::SpriteFrame* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.SpriteFrame",&arg1, "cc.ParticleSystem:addAnimationIndex"); + axis::SpriteFrame* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.SpriteFrame",&arg1, "cc.ParticleSystem:addAnimationIndex"); if (!ok) { break; } bool ret = cobj->addAnimationIndex(arg0, arg1); @@ -71104,7 +71104,7 @@ int lua_cocos2dx_ParticleSystem_addAnimationIndex(lua_State* tolua_S) ok &= luaval_to_ushort(tolua_S, 2, &arg0, "cc.ParticleSystem:addAnimationIndex"); if (!ok) { break; } - cocos2d::Rect arg1; + axis::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.ParticleSystem:addAnimationIndex"); if (!ok) { break; } @@ -71120,7 +71120,7 @@ int lua_cocos2dx_ParticleSystem_addAnimationIndex(lua_State* tolua_S) ok &= luaval_to_ushort(tolua_S, 2, &arg0, "cc.ParticleSystem:addAnimationIndex"); if (!ok) { break; } - cocos2d::Rect arg1; + axis::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.ParticleSystem:addAnimationIndex"); if (!ok) { break; } @@ -71147,7 +71147,7 @@ int lua_cocos2dx_ParticleSystem_addAnimationIndex(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_initWithTotalParticles(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -71159,7 +71159,7 @@ int lua_cocos2dx_ParticleSystem_initWithTotalParticles(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -71197,7 +71197,7 @@ int lua_cocos2dx_ParticleSystem_initWithTotalParticles(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_addParticles(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -71209,7 +71209,7 @@ int lua_cocos2dx_ParticleSystem_addParticles(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -71284,7 +71284,7 @@ int lua_cocos2dx_ParticleSystem_addParticles(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setTexture(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -71296,7 +71296,7 @@ int lua_cocos2dx_ParticleSystem_setTexture(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -71309,9 +71309,9 @@ int lua_cocos2dx_ParticleSystem_setTexture(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Texture2D* arg0; + axis::Texture2D* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.ParticleSystem:setTexture"); + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.ParticleSystem:setTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setTexture'", nullptr); @@ -71334,7 +71334,7 @@ int lua_cocos2dx_ParticleSystem_setTexture(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setSpawnFadeInVar(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -71346,7 +71346,7 @@ int lua_cocos2dx_ParticleSystem_setSpawnFadeInVar(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -71384,7 +71384,7 @@ int lua_cocos2dx_ParticleSystem_setSpawnFadeInVar(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getPosVar(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -71396,7 +71396,7 @@ int lua_cocos2dx_ParticleSystem_getPosVar(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -71414,7 +71414,7 @@ int lua_cocos2dx_ParticleSystem_getPosVar(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getPosVar'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getPosVar(); + const axis::Vec2& ret = cobj->getPosVar(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -71431,7 +71431,7 @@ int lua_cocos2dx_ParticleSystem_getPosVar(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_updateWithNoTime(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -71443,7 +71443,7 @@ int lua_cocos2dx_ParticleSystem_updateWithNoTime(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -71478,7 +71478,7 @@ int lua_cocos2dx_ParticleSystem_updateWithNoTime(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_isBlendAdditive(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -71490,7 +71490,7 @@ int lua_cocos2dx_ParticleSystem_isBlendAdditive(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -71525,7 +71525,7 @@ int lua_cocos2dx_ParticleSystem_isBlendAdditive(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getSpeedVar(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -71537,7 +71537,7 @@ int lua_cocos2dx_ParticleSystem_getSpeedVar(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -71572,7 +71572,7 @@ int lua_cocos2dx_ParticleSystem_getSpeedVar(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setPositionType(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -71584,7 +71584,7 @@ int lua_cocos2dx_ParticleSystem_setPositionType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -71597,7 +71597,7 @@ int lua_cocos2dx_ParticleSystem_setPositionType(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ParticleSystem::PositionType arg0; + axis::ParticleSystem::PositionType arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleSystem:setPositionType"); if(!ok) @@ -71622,7 +71622,7 @@ int lua_cocos2dx_ParticleSystem_setPositionType(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_stopSystem(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -71634,7 +71634,7 @@ int lua_cocos2dx_ParticleSystem_stopSystem(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -71669,7 +71669,7 @@ int lua_cocos2dx_ParticleSystem_stopSystem(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getSourcePosition(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -71681,7 +71681,7 @@ int lua_cocos2dx_ParticleSystem_getSourcePosition(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -71699,7 +71699,7 @@ int lua_cocos2dx_ParticleSystem_getSourcePosition(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getSourcePosition'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getSourcePosition(); + const axis::Vec2& ret = cobj->getSourcePosition(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -71716,7 +71716,7 @@ int lua_cocos2dx_ParticleSystem_getSourcePosition(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setLifeVar(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -71728,7 +71728,7 @@ int lua_cocos2dx_ParticleSystem_setLifeVar(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -71766,7 +71766,7 @@ int lua_cocos2dx_ParticleSystem_setLifeVar(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setHue(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -71778,7 +71778,7 @@ int lua_cocos2dx_ParticleSystem_setHue(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -71816,7 +71816,7 @@ int lua_cocos2dx_ParticleSystem_setHue(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_useHSV(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -71828,7 +71828,7 @@ int lua_cocos2dx_ParticleSystem_useHSV(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -71866,7 +71866,7 @@ int lua_cocos2dx_ParticleSystem_useHSV(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setEmitterAnimation(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -71878,7 +71878,7 @@ int lua_cocos2dx_ParticleSystem_setEmitterAnimation(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -71916,7 +71916,7 @@ int lua_cocos2dx_ParticleSystem_setEmitterAnimation(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setEndColorVar(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -71928,7 +71928,7 @@ int lua_cocos2dx_ParticleSystem_setEndColorVar(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -71941,7 +71941,7 @@ int lua_cocos2dx_ParticleSystem_setEndColorVar(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Color4F arg0; + axis::Color4F arg0; ok &=luaval_to_color4f(tolua_S, 2, &arg0, "cc.ParticleSystem:setEndColorVar"); if(!ok) @@ -71966,7 +71966,7 @@ int lua_cocos2dx_ParticleSystem_setEndColorVar(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getAtlasIndex(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -71978,7 +71978,7 @@ int lua_cocos2dx_ParticleSystem_getAtlasIndex(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -72013,7 +72013,7 @@ int lua_cocos2dx_ParticleSystem_getAtlasIndex(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getStartSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -72025,7 +72025,7 @@ int lua_cocos2dx_ParticleSystem_getStartSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -72060,7 +72060,7 @@ int lua_cocos2dx_ParticleSystem_getStartSize(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setEmissionShape(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -72072,7 +72072,7 @@ int lua_cocos2dx_ParticleSystem_setEmissionShape(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -72086,7 +72086,7 @@ int lua_cocos2dx_ParticleSystem_setEmissionShape(lua_State* tolua_S) if (argc == 2) { unsigned short arg0; - cocos2d::EmissionShape arg1; + axis::EmissionShape arg1; ok &= luaval_to_ushort(tolua_S, 2, &arg0, "cc.ParticleSystem:setEmissionShape"); @@ -72114,7 +72114,7 @@ int lua_cocos2dx_ParticleSystem_setEmissionShape(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setStartSpinVar(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -72126,7 +72126,7 @@ int lua_cocos2dx_ParticleSystem_setStartSpinVar(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -72164,7 +72164,7 @@ int lua_cocos2dx_ParticleSystem_setStartSpinVar(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getHueVar(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -72176,7 +72176,7 @@ int lua_cocos2dx_ParticleSystem_getHueVar(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -72211,7 +72211,7 @@ int lua_cocos2dx_ParticleSystem_getHueVar(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setSpawnAngle(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -72223,7 +72223,7 @@ int lua_cocos2dx_ParticleSystem_setSpawnAngle(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -72261,7 +72261,7 @@ int lua_cocos2dx_ParticleSystem_setSpawnAngle(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_resetSystem(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -72273,7 +72273,7 @@ int lua_cocos2dx_ParticleSystem_resetSystem(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -72308,7 +72308,7 @@ int lua_cocos2dx_ParticleSystem_resetSystem(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setAtlasIndex(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -72320,7 +72320,7 @@ int lua_cocos2dx_ParticleSystem_setAtlasIndex(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -72358,7 +72358,7 @@ int lua_cocos2dx_ParticleSystem_setAtlasIndex(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setTangentialAccelVar(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -72370,7 +72370,7 @@ int lua_cocos2dx_ParticleSystem_setTangentialAccelVar(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -72408,7 +72408,7 @@ int lua_cocos2dx_ParticleSystem_setTangentialAccelVar(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setEndRadiusVar(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -72420,7 +72420,7 @@ int lua_cocos2dx_ParticleSystem_setEndRadiusVar(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -72458,7 +72458,7 @@ int lua_cocos2dx_ParticleSystem_setEndRadiusVar(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getEndRadius(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -72470,7 +72470,7 @@ int lua_cocos2dx_ParticleSystem_getEndRadius(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -72505,7 +72505,7 @@ int lua_cocos2dx_ParticleSystem_getEndRadius(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setRectForUndefinedIndices(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -72517,7 +72517,7 @@ int lua_cocos2dx_ParticleSystem_setRectForUndefinedIndices(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -72530,7 +72530,7 @@ int lua_cocos2dx_ParticleSystem_setRectForUndefinedIndices(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Rect arg0; + axis::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "cc.ParticleSystem:setRectForUndefinedIndices"); if(!ok) @@ -72555,7 +72555,7 @@ int lua_cocos2dx_ParticleSystem_setRectForUndefinedIndices(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_isActive(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -72567,7 +72567,7 @@ int lua_cocos2dx_ParticleSystem_isActive(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -72602,7 +72602,7 @@ int lua_cocos2dx_ParticleSystem_isActive(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getTimeScale(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -72614,7 +72614,7 @@ int lua_cocos2dx_ParticleSystem_getTimeScale(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -72649,7 +72649,7 @@ int lua_cocos2dx_ParticleSystem_getTimeScale(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setRadialAccelVar(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -72661,7 +72661,7 @@ int lua_cocos2dx_ParticleSystem_setRadialAccelVar(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -72699,7 +72699,7 @@ int lua_cocos2dx_ParticleSystem_setRadialAccelVar(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setSpawnAngleVar(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -72711,7 +72711,7 @@ int lua_cocos2dx_ParticleSystem_setSpawnAngleVar(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -72749,7 +72749,7 @@ int lua_cocos2dx_ParticleSystem_setSpawnAngleVar(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setStartSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -72761,7 +72761,7 @@ int lua_cocos2dx_ParticleSystem_setStartSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -72799,7 +72799,7 @@ int lua_cocos2dx_ParticleSystem_setStartSize(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setSpeed(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -72811,7 +72811,7 @@ int lua_cocos2dx_ParticleSystem_setSpeed(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -72849,7 +72849,7 @@ int lua_cocos2dx_ParticleSystem_setSpeed(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getStartSpin(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -72861,7 +72861,7 @@ int lua_cocos2dx_ParticleSystem_getStartSpin(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -72896,7 +72896,7 @@ int lua_cocos2dx_ParticleSystem_getStartSpin(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setAnimationSpeedTimescaleIndependent(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -72908,7 +72908,7 @@ int lua_cocos2dx_ParticleSystem_setAnimationSpeedTimescaleIndependent(lua_State* if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -72946,7 +72946,7 @@ int lua_cocos2dx_ParticleSystem_setAnimationSpeedTimescaleIndependent(lua_State* int lua_cocos2dx_ParticleSystem_getHSVVar(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -72958,7 +72958,7 @@ int lua_cocos2dx_ParticleSystem_getHSVVar(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -72976,7 +72976,7 @@ int lua_cocos2dx_ParticleSystem_getHSVVar(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getHSVVar'", nullptr); return 0; } - const cocos2d::HSV& ret = cobj->getHSVVar(); + const axis::HSV& ret = cobj->getHSVVar(); #pragma warning NO CONVERSION FROM NATIVE FOR HSV; return 1; } @@ -72993,7 +72993,7 @@ int lua_cocos2dx_ParticleSystem_getHSVVar(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setStartRadius(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -73005,7 +73005,7 @@ int lua_cocos2dx_ParticleSystem_setStartRadius(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -73043,7 +73043,7 @@ int lua_cocos2dx_ParticleSystem_setStartRadius(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getResourceFile(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -73055,7 +73055,7 @@ int lua_cocos2dx_ParticleSystem_getResourceFile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -73090,7 +73090,7 @@ int lua_cocos2dx_ParticleSystem_getResourceFile(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getRotatePerSecond(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -73102,7 +73102,7 @@ int lua_cocos2dx_ParticleSystem_getRotatePerSecond(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -73137,7 +73137,7 @@ int lua_cocos2dx_ParticleSystem_getRotatePerSecond(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_resetEmissionShapes(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -73149,7 +73149,7 @@ int lua_cocos2dx_ParticleSystem_resetEmissionShapes(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -73184,7 +73184,7 @@ int lua_cocos2dx_ParticleSystem_resetEmissionShapes(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setEmitterMode(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -73196,7 +73196,7 @@ int lua_cocos2dx_ParticleSystem_setEmitterMode(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -73209,7 +73209,7 @@ int lua_cocos2dx_ParticleSystem_setEmitterMode(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ParticleSystem::Mode arg0; + axis::ParticleSystem::Mode arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ParticleSystem:setEmitterMode"); if(!ok) @@ -73234,7 +73234,7 @@ int lua_cocos2dx_ParticleSystem_setEmitterMode(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -73246,7 +73246,7 @@ int lua_cocos2dx_ParticleSystem_getDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -73281,7 +73281,7 @@ int lua_cocos2dx_ParticleSystem_getDuration(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getHSV(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -73293,7 +73293,7 @@ int lua_cocos2dx_ParticleSystem_getHSV(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -73311,7 +73311,7 @@ int lua_cocos2dx_ParticleSystem_getHSV(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getHSV'", nullptr); return 0; } - const cocos2d::HSV& ret = cobj->getHSV(); + const axis::HSV& ret = cobj->getHSV(); #pragma warning NO CONVERSION FROM NATIVE FOR HSV; return 1; } @@ -73328,7 +73328,7 @@ int lua_cocos2dx_ParticleSystem_getHSV(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setSourcePosition(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -73340,7 +73340,7 @@ int lua_cocos2dx_ParticleSystem_setSourcePosition(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -73353,7 +73353,7 @@ int lua_cocos2dx_ParticleSystem_setSourcePosition(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.ParticleSystem:setSourcePosition"); if(!ok) @@ -73378,7 +73378,7 @@ int lua_cocos2dx_ParticleSystem_setSourcePosition(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_stop(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -73390,7 +73390,7 @@ int lua_cocos2dx_ParticleSystem_stop(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -73425,7 +73425,7 @@ int lua_cocos2dx_ParticleSystem_stop(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_isEmitterAnimated(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -73437,7 +73437,7 @@ int lua_cocos2dx_ParticleSystem_isEmitterAnimated(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -73472,7 +73472,7 @@ int lua_cocos2dx_ParticleSystem_isEmitterAnimated(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setTimeScale(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -73484,7 +73484,7 @@ int lua_cocos2dx_ParticleSystem_setTimeScale(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -73533,7 +73533,7 @@ int lua_cocos2dx_ParticleSystem_setTimeScale(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_updateParticleQuads(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -73545,7 +73545,7 @@ int lua_cocos2dx_ParticleSystem_updateParticleQuads(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -73580,7 +73580,7 @@ int lua_cocos2dx_ParticleSystem_updateParticleQuads(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getEndSpinVar(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -73592,7 +73592,7 @@ int lua_cocos2dx_ParticleSystem_getEndSpinVar(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -73627,7 +73627,7 @@ int lua_cocos2dx_ParticleSystem_getEndSpinVar(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_resetAnimationDescriptors(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -73639,7 +73639,7 @@ int lua_cocos2dx_ParticleSystem_resetAnimationDescriptors(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -73674,7 +73674,7 @@ int lua_cocos2dx_ParticleSystem_resetAnimationDescriptors(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setBlendAdditive(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -73686,7 +73686,7 @@ int lua_cocos2dx_ParticleSystem_setBlendAdditive(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -73724,7 +73724,7 @@ int lua_cocos2dx_ParticleSystem_setBlendAdditive(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setLife(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -73736,7 +73736,7 @@ int lua_cocos2dx_ParticleSystem_setLife(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -73774,7 +73774,7 @@ int lua_cocos2dx_ParticleSystem_setLife(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setAngleVar(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -73786,7 +73786,7 @@ int lua_cocos2dx_ParticleSystem_setAngleVar(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -73824,7 +73824,7 @@ int lua_cocos2dx_ParticleSystem_setAngleVar(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setAnimationIndicesAtlas(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -73833,7 +73833,7 @@ int lua_cocos2dx_ParticleSystem_setAnimationIndicesAtlas(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -73860,7 +73860,7 @@ int lua_cocos2dx_ParticleSystem_setAnimationIndicesAtlas(lua_State* tolua_S) ok &= luaval_to_uint32(tolua_S, 2,&arg0, "cc.ParticleSystem:setAnimationIndicesAtlas"); if (!ok) { break; } - cocos2d::ParticleSystem::TexAnimDir arg1; + axis::ParticleSystem::TexAnimDir arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.ParticleSystem:setAnimationIndicesAtlas"); if (!ok) { break; } @@ -73891,7 +73891,7 @@ int lua_cocos2dx_ParticleSystem_setAnimationIndicesAtlas(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setSpawnFadeIn(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -73903,7 +73903,7 @@ int lua_cocos2dx_ParticleSystem_setSpawnFadeIn(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -73941,7 +73941,7 @@ int lua_cocos2dx_ParticleSystem_setSpawnFadeIn(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setRotationIsDir(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -73953,7 +73953,7 @@ int lua_cocos2dx_ParticleSystem_setRotationIsDir(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -73991,7 +73991,7 @@ int lua_cocos2dx_ParticleSystem_setRotationIsDir(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_start(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -74003,7 +74003,7 @@ int lua_cocos2dx_ParticleSystem_start(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -74038,7 +74038,7 @@ int lua_cocos2dx_ParticleSystem_start(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setEndSizeVar(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -74050,7 +74050,7 @@ int lua_cocos2dx_ParticleSystem_setEndSizeVar(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -74088,7 +74088,7 @@ int lua_cocos2dx_ParticleSystem_setEndSizeVar(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_isLifeAnimated(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -74100,7 +74100,7 @@ int lua_cocos2dx_ParticleSystem_isLifeAnimated(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -74135,7 +74135,7 @@ int lua_cocos2dx_ParticleSystem_isLifeAnimated(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setAngle(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -74147,7 +74147,7 @@ int lua_cocos2dx_ParticleSystem_setAngle(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -74185,7 +74185,7 @@ int lua_cocos2dx_ParticleSystem_setAngle(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setBatchNode(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -74197,7 +74197,7 @@ int lua_cocos2dx_ParticleSystem_setBatchNode(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -74210,9 +74210,9 @@ int lua_cocos2dx_ParticleSystem_setBatchNode(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ParticleBatchNode* arg0; + axis::ParticleBatchNode* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ParticleBatchNode",&arg0, "cc.ParticleSystem:setBatchNode"); + ok &= luaval_to_object(tolua_S, 2, "cc.ParticleBatchNode",&arg0, "cc.ParticleSystem:setBatchNode"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_setBatchNode'", nullptr); @@ -74235,7 +74235,7 @@ int lua_cocos2dx_ParticleSystem_setBatchNode(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getTangentialAccelVar(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -74247,7 +74247,7 @@ int lua_cocos2dx_ParticleSystem_getTangentialAccelVar(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -74282,7 +74282,7 @@ int lua_cocos2dx_ParticleSystem_getTangentialAccelVar(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_addEmissionShape(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -74294,7 +74294,7 @@ int lua_cocos2dx_ParticleSystem_addEmissionShape(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -74307,7 +74307,7 @@ int lua_cocos2dx_ParticleSystem_addEmissionShape(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::EmissionShape arg0; + axis::EmissionShape arg0; #pragma warning NO CONVERSION TO NATIVE FOR EmissionShape ok = false; @@ -74333,7 +74333,7 @@ int lua_cocos2dx_ParticleSystem_addEmissionShape(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getEmitterMode(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -74345,7 +74345,7 @@ int lua_cocos2dx_ParticleSystem_getEmitterMode(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -74380,7 +74380,7 @@ int lua_cocos2dx_ParticleSystem_getEmitterMode(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setEndSpinVar(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -74392,7 +74392,7 @@ int lua_cocos2dx_ParticleSystem_setEndSpinVar(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -74430,7 +74430,7 @@ int lua_cocos2dx_ParticleSystem_setEndSpinVar(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getSpawnFadeIn(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -74442,7 +74442,7 @@ int lua_cocos2dx_ParticleSystem_getSpawnFadeIn(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -74477,7 +74477,7 @@ int lua_cocos2dx_ParticleSystem_getSpawnFadeIn(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getSpawnFadeInVar(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -74489,7 +74489,7 @@ int lua_cocos2dx_ParticleSystem_getSpawnFadeInVar(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -74524,7 +74524,7 @@ int lua_cocos2dx_ParticleSystem_getSpawnFadeInVar(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_simulate(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -74536,7 +74536,7 @@ int lua_cocos2dx_ParticleSystem_simulate(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -74602,7 +74602,7 @@ int lua_cocos2dx_ParticleSystem_simulate(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_initWithFile(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -74614,7 +74614,7 @@ int lua_cocos2dx_ParticleSystem_initWithFile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -74652,7 +74652,7 @@ int lua_cocos2dx_ParticleSystem_initWithFile(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getAngleVar(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -74664,7 +74664,7 @@ int lua_cocos2dx_ParticleSystem_getAngleVar(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -74699,7 +74699,7 @@ int lua_cocos2dx_ParticleSystem_getAngleVar(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setStartColor(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -74711,7 +74711,7 @@ int lua_cocos2dx_ParticleSystem_setStartColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -74724,7 +74724,7 @@ int lua_cocos2dx_ParticleSystem_setStartColor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Color4F arg0; + axis::Color4F arg0; ok &=luaval_to_color4f(tolua_S, 2, &arg0, "cc.ParticleSystem:setStartColor"); if(!ok) @@ -74749,7 +74749,7 @@ int lua_cocos2dx_ParticleSystem_setStartColor(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getRotatePerSecondVar(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -74761,7 +74761,7 @@ int lua_cocos2dx_ParticleSystem_getRotatePerSecondVar(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -74796,7 +74796,7 @@ int lua_cocos2dx_ParticleSystem_getRotatePerSecondVar(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setHueVar(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -74808,7 +74808,7 @@ int lua_cocos2dx_ParticleSystem_setHueVar(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -74846,7 +74846,7 @@ int lua_cocos2dx_ParticleSystem_setHueVar(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getEndSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -74858,7 +74858,7 @@ int lua_cocos2dx_ParticleSystem_getEndSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -74893,7 +74893,7 @@ int lua_cocos2dx_ParticleSystem_getEndSize(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_isAnimationReversed(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -74905,7 +74905,7 @@ int lua_cocos2dx_ParticleSystem_isAnimationReversed(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -74940,7 +74940,7 @@ int lua_cocos2dx_ParticleSystem_isAnimationReversed(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getLife(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -74952,7 +74952,7 @@ int lua_cocos2dx_ParticleSystem_getLife(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -74987,7 +74987,7 @@ int lua_cocos2dx_ParticleSystem_getLife(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_isPaused(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -74999,7 +74999,7 @@ int lua_cocos2dx_ParticleSystem_isPaused(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -75034,7 +75034,7 @@ int lua_cocos2dx_ParticleSystem_isPaused(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getSpawnScaleIn(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -75046,7 +75046,7 @@ int lua_cocos2dx_ParticleSystem_getSpawnScaleIn(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -75081,7 +75081,7 @@ int lua_cocos2dx_ParticleSystem_getSpawnScaleIn(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setFixedFPS(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -75093,7 +75093,7 @@ int lua_cocos2dx_ParticleSystem_setFixedFPS(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -75142,7 +75142,7 @@ int lua_cocos2dx_ParticleSystem_setFixedFPS(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_isHSV(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -75154,7 +75154,7 @@ int lua_cocos2dx_ParticleSystem_isHSV(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -75189,7 +75189,7 @@ int lua_cocos2dx_ParticleSystem_isHSV(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setSpeedVar(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -75201,7 +75201,7 @@ int lua_cocos2dx_ParticleSystem_setSpeedVar(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -75239,7 +75239,7 @@ int lua_cocos2dx_ParticleSystem_setSpeedVar(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setAutoRemoveOnFinish(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -75251,7 +75251,7 @@ int lua_cocos2dx_ParticleSystem_setAutoRemoveOnFinish(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -75289,7 +75289,7 @@ int lua_cocos2dx_ParticleSystem_setAutoRemoveOnFinish(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setGravity(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -75301,7 +75301,7 @@ int lua_cocos2dx_ParticleSystem_setGravity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -75314,7 +75314,7 @@ int lua_cocos2dx_ParticleSystem_setGravity(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.ParticleSystem:setGravity"); if(!ok) @@ -75339,7 +75339,7 @@ int lua_cocos2dx_ParticleSystem_setGravity(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_postStep(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -75351,7 +75351,7 @@ int lua_cocos2dx_ParticleSystem_postStep(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -75386,7 +75386,7 @@ int lua_cocos2dx_ParticleSystem_postStep(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_isEmissionShapes(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -75398,7 +75398,7 @@ int lua_cocos2dx_ParticleSystem_isEmissionShapes(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -75433,7 +75433,7 @@ int lua_cocos2dx_ParticleSystem_isEmissionShapes(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setLoopAnimation(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -75445,7 +75445,7 @@ int lua_cocos2dx_ParticleSystem_setLoopAnimation(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -75483,7 +75483,7 @@ int lua_cocos2dx_ParticleSystem_setLoopAnimation(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setEmissionRate(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -75495,7 +75495,7 @@ int lua_cocos2dx_ParticleSystem_setEmissionRate(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -75533,7 +75533,7 @@ int lua_cocos2dx_ParticleSystem_setEmissionRate(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getEndColorVar(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -75545,7 +75545,7 @@ int lua_cocos2dx_ParticleSystem_getEndColorVar(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -75563,7 +75563,7 @@ int lua_cocos2dx_ParticleSystem_getEndColorVar(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getEndColorVar'", nullptr); return 0; } - const cocos2d::Color4F& ret = cobj->getEndColorVar(); + const axis::Color4F& ret = cobj->getEndColorVar(); color4f_to_luaval(tolua_S, ret); return 1; } @@ -75580,7 +75580,7 @@ int lua_cocos2dx_ParticleSystem_getEndColorVar(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getRotationIsDir(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -75592,7 +75592,7 @@ int lua_cocos2dx_ParticleSystem_getRotationIsDir(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -75627,7 +75627,7 @@ int lua_cocos2dx_ParticleSystem_getRotationIsDir(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setSpawnScaleIn(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -75639,7 +75639,7 @@ int lua_cocos2dx_ParticleSystem_setSpawnScaleIn(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -75677,7 +75677,7 @@ int lua_cocos2dx_ParticleSystem_setSpawnScaleIn(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getEmissionRate(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -75689,7 +75689,7 @@ int lua_cocos2dx_ParticleSystem_getEmissionRate(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -75724,7 +75724,7 @@ int lua_cocos2dx_ParticleSystem_getEmissionRate(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setSpawnScaleInVar(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -75736,7 +75736,7 @@ int lua_cocos2dx_ParticleSystem_setSpawnScaleInVar(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -75774,7 +75774,7 @@ int lua_cocos2dx_ParticleSystem_setSpawnScaleInVar(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getEndColor(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -75786,7 +75786,7 @@ int lua_cocos2dx_ParticleSystem_getEndColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -75804,7 +75804,7 @@ int lua_cocos2dx_ParticleSystem_getEndColor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getEndColor'", nullptr); return 0; } - const cocos2d::Color4F& ret = cobj->getEndColor(); + const axis::Color4F& ret = cobj->getEndColor(); color4f_to_luaval(tolua_S, ret); return 1; } @@ -75821,7 +75821,7 @@ int lua_cocos2dx_ParticleSystem_getEndColor(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setEmissionShapes(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -75833,7 +75833,7 @@ int lua_cocos2dx_ParticleSystem_setEmissionShapes(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -75871,7 +75871,7 @@ int lua_cocos2dx_ParticleSystem_setEmissionShapes(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getLifeVar(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -75883,7 +75883,7 @@ int lua_cocos2dx_ParticleSystem_getLifeVar(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -75918,7 +75918,7 @@ int lua_cocos2dx_ParticleSystem_getLifeVar(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setStartSizeVar(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -75930,7 +75930,7 @@ int lua_cocos2dx_ParticleSystem_setStartSizeVar(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -75968,7 +75968,7 @@ int lua_cocos2dx_ParticleSystem_setStartSizeVar(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setMultiAnimationRandomSpecific(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -75980,7 +75980,7 @@ int lua_cocos2dx_ParticleSystem_setMultiAnimationRandomSpecific(lua_State* tolua if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -76018,7 +76018,7 @@ int lua_cocos2dx_ParticleSystem_setMultiAnimationRandomSpecific(lua_State* tolua int lua_cocos2dx_ParticleSystem_setHSV(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -76030,7 +76030,7 @@ int lua_cocos2dx_ParticleSystem_setHSV(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -76043,7 +76043,7 @@ int lua_cocos2dx_ParticleSystem_setHSV(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::HSV arg0; + axis::HSV arg0; #pragma warning NO CONVERSION TO NATIVE FOR HSV ok = false; @@ -76069,7 +76069,7 @@ int lua_cocos2dx_ParticleSystem_setHSV(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_resimulate(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -76081,7 +76081,7 @@ int lua_cocos2dx_ParticleSystem_resimulate(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -76147,7 +76147,7 @@ int lua_cocos2dx_ParticleSystem_resimulate(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setMultiAnimationRandom(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -76159,7 +76159,7 @@ int lua_cocos2dx_ParticleSystem_setMultiAnimationRandom(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -76194,7 +76194,7 @@ int lua_cocos2dx_ParticleSystem_setMultiAnimationRandom(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getStartRadius(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -76206,7 +76206,7 @@ int lua_cocos2dx_ParticleSystem_getStartRadius(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -76241,7 +76241,7 @@ int lua_cocos2dx_ParticleSystem_getStartRadius(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getParticleCount(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -76253,7 +76253,7 @@ int lua_cocos2dx_ParticleSystem_getParticleCount(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -76288,7 +76288,7 @@ int lua_cocos2dx_ParticleSystem_getParticleCount(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getStartRadiusVar(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -76300,7 +76300,7 @@ int lua_cocos2dx_ParticleSystem_getStartRadiusVar(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -76335,7 +76335,7 @@ int lua_cocos2dx_ParticleSystem_getStartRadiusVar(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getBlendFunc(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -76347,7 +76347,7 @@ int lua_cocos2dx_ParticleSystem_getBlendFunc(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -76365,7 +76365,7 @@ int lua_cocos2dx_ParticleSystem_getBlendFunc(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getBlendFunc'", nullptr); return 0; } - const cocos2d::BlendFunc& ret = cobj->getBlendFunc(); + const axis::BlendFunc& ret = cobj->getBlendFunc(); blendfunc_to_luaval(tolua_S, ret); return 1; } @@ -76382,7 +76382,7 @@ int lua_cocos2dx_ParticleSystem_getBlendFunc(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setStartColorVar(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -76394,7 +76394,7 @@ int lua_cocos2dx_ParticleSystem_setStartColorVar(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -76407,7 +76407,7 @@ int lua_cocos2dx_ParticleSystem_setStartColorVar(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Color4F arg0; + axis::Color4F arg0; ok &=luaval_to_color4f(tolua_S, 2, &arg0, "cc.ParticleSystem:setStartColorVar"); if(!ok) @@ -76432,7 +76432,7 @@ int lua_cocos2dx_ParticleSystem_setStartColorVar(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setEndSpin(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -76444,7 +76444,7 @@ int lua_cocos2dx_ParticleSystem_setEndSpin(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -76482,7 +76482,7 @@ int lua_cocos2dx_ParticleSystem_setEndSpin(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setRadialAccel(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -76494,7 +76494,7 @@ int lua_cocos2dx_ParticleSystem_setRadialAccel(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -76532,7 +76532,7 @@ int lua_cocos2dx_ParticleSystem_setRadialAccel(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setAnimationReverse(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -76544,7 +76544,7 @@ int lua_cocos2dx_ParticleSystem_setAnimationReverse(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -76582,7 +76582,7 @@ int lua_cocos2dx_ParticleSystem_setAnimationReverse(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_initWithDictionary(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -76591,7 +76591,7 @@ int lua_cocos2dx_ParticleSystem_initWithDictionary(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -76602,7 +76602,7 @@ int lua_cocos2dx_ParticleSystem_initWithDictionary(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { - cocos2d::ValueMap arg0; + axis::ValueMap arg0; ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.ParticleSystem:initWithDictionary"); if (!ok) { break; } @@ -76618,7 +76618,7 @@ int lua_cocos2dx_ParticleSystem_initWithDictionary(lua_State* tolua_S) ok = true; do{ if (argc == 1) { - cocos2d::ValueMap arg0; + axis::ValueMap arg0; ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.ParticleSystem:initWithDictionary"); if (!ok) { break; } @@ -76641,7 +76641,7 @@ int lua_cocos2dx_ParticleSystem_initWithDictionary(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_isAutoRemoveOnFinish(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -76653,7 +76653,7 @@ int lua_cocos2dx_ParticleSystem_isAutoRemoveOnFinish(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -76688,7 +76688,7 @@ int lua_cocos2dx_ParticleSystem_isAutoRemoveOnFinish(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_isSourcePositionCompatible(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -76700,7 +76700,7 @@ int lua_cocos2dx_ParticleSystem_isSourcePositionCompatible(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -76735,7 +76735,7 @@ int lua_cocos2dx_ParticleSystem_isSourcePositionCompatible(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getTotalParticles(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -76747,7 +76747,7 @@ int lua_cocos2dx_ParticleSystem_getTotalParticles(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -76782,7 +76782,7 @@ int lua_cocos2dx_ParticleSystem_getTotalParticles(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setStartRadiusVar(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -76794,7 +76794,7 @@ int lua_cocos2dx_ParticleSystem_setStartRadiusVar(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -76832,7 +76832,7 @@ int lua_cocos2dx_ParticleSystem_setStartRadiusVar(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setTotalParticles(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -76844,7 +76844,7 @@ int lua_cocos2dx_ParticleSystem_setTotalParticles(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -76882,7 +76882,7 @@ int lua_cocos2dx_ParticleSystem_setTotalParticles(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_setBlendFunc(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -76894,7 +76894,7 @@ int lua_cocos2dx_ParticleSystem_setBlendFunc(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -76907,7 +76907,7 @@ int lua_cocos2dx_ParticleSystem_setBlendFunc(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::BlendFunc arg0; + axis::BlendFunc arg0; ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "cc.ParticleSystem:setBlendFunc"); if(!ok) @@ -76932,7 +76932,7 @@ int lua_cocos2dx_ParticleSystem_setBlendFunc(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getEndRadiusVar(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -76944,7 +76944,7 @@ int lua_cocos2dx_ParticleSystem_getEndRadiusVar(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -76979,7 +76979,7 @@ int lua_cocos2dx_ParticleSystem_getEndRadiusVar(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getSpawnAngleVar(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -76991,7 +76991,7 @@ int lua_cocos2dx_ParticleSystem_getSpawnAngleVar(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -77026,7 +77026,7 @@ int lua_cocos2dx_ParticleSystem_getSpawnAngleVar(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getFixedFPS(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -77038,7 +77038,7 @@ int lua_cocos2dx_ParticleSystem_getFixedFPS(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -77073,7 +77073,7 @@ int lua_cocos2dx_ParticleSystem_getFixedFPS(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_getStartColorVar(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -77085,7 +77085,7 @@ int lua_cocos2dx_ParticleSystem_getStartColorVar(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -77103,7 +77103,7 @@ int lua_cocos2dx_ParticleSystem_getStartColorVar(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getStartColorVar'", nullptr); return 0; } - const cocos2d::Color4F& ret = cobj->getStartColorVar(); + const axis::Color4F& ret = cobj->getStartColorVar(); color4f_to_luaval(tolua_S, ret); return 1; } @@ -77134,9 +77134,9 @@ int lua_cocos2dx_ParticleSystem_createRectTorusShape(lua_State* tolua_S) if (argc == 3) { - cocos2d::Vec2 arg0; - cocos2d::Size arg1; - cocos2d::Size arg2; + axis::Vec2 arg0; + axis::Size arg1; + axis::Size arg2; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.ParticleSystem:createRectTorusShape"); ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.ParticleSystem:createRectTorusShape"); ok &= luaval_to_size(tolua_S, 4, &arg2, "cc.ParticleSystem:createRectTorusShape"); @@ -77145,7 +77145,7 @@ int lua_cocos2dx_ParticleSystem_createRectTorusShape(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_createRectTorusShape'", nullptr); return 0; } - cocos2d::EmissionShape ret = cocos2d::ParticleSystem::createRectTorusShape(arg0, arg1, arg2); + axis::EmissionShape ret = axis::ParticleSystem::createRectTorusShape(arg0, arg1, arg2); #pragma warning NO CONVERSION FROM NATIVE FOR EmissionShape; return 1; } @@ -77174,7 +77174,7 @@ int lua_cocos2dx_ParticleSystem_createTorusShape(lua_State* tolua_S) if (argc == 3) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; double arg1; double arg2; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.ParticleSystem:createTorusShape"); @@ -77185,13 +77185,13 @@ int lua_cocos2dx_ParticleSystem_createTorusShape(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_createTorusShape'", nullptr); return 0; } - cocos2d::EmissionShape ret = cocos2d::ParticleSystem::createTorusShape(arg0, arg1, arg2); + axis::EmissionShape ret = axis::ParticleSystem::createTorusShape(arg0, arg1, arg2); #pragma warning NO CONVERSION FROM NATIVE FOR EmissionShape; return 1; } if (argc == 4) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; double arg1; double arg2; double arg3; @@ -77204,7 +77204,7 @@ int lua_cocos2dx_ParticleSystem_createTorusShape(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_createTorusShape'", nullptr); return 0; } - cocos2d::EmissionShape ret = cocos2d::ParticleSystem::createTorusShape(arg0, arg1, arg2, arg3); + axis::EmissionShape ret = axis::ParticleSystem::createTorusShape(arg0, arg1, arg2, arg3); #pragma warning NO CONVERSION FROM NATIVE FOR EmissionShape; return 1; } @@ -77233,7 +77233,7 @@ int lua_cocos2dx_ParticleSystem_createConeShape(lua_State* tolua_S) if (argc == 4) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; double arg1; double arg2; double arg3; @@ -77246,13 +77246,13 @@ int lua_cocos2dx_ParticleSystem_createConeShape(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_createConeShape'", nullptr); return 0; } - cocos2d::EmissionShape ret = cocos2d::ParticleSystem::createConeShape(arg0, arg1, arg2, arg3); + axis::EmissionShape ret = axis::ParticleSystem::createConeShape(arg0, arg1, arg2, arg3); #pragma warning NO CONVERSION FROM NATIVE FOR EmissionShape; return 1; } if (argc == 5) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; double arg1; double arg2; double arg3; @@ -77267,7 +77267,7 @@ int lua_cocos2dx_ParticleSystem_createConeShape(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_createConeShape'", nullptr); return 0; } - cocos2d::EmissionShape ret = cocos2d::ParticleSystem::createConeShape(arg0, arg1, arg2, arg3, arg4); + axis::EmissionShape ret = axis::ParticleSystem::createConeShape(arg0, arg1, arg2, arg3, arg4); #pragma warning NO CONVERSION FROM NATIVE FOR EmissionShape; return 1; } @@ -77303,8 +77303,8 @@ int lua_cocos2dx_ParticleSystem_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_create'", nullptr); return 0; } - cocos2d::ParticleSystem* ret = cocos2d::ParticleSystem::create(arg0); - object_to_luaval(tolua_S, "cc.ParticleSystem",(cocos2d::ParticleSystem*)ret); + axis::ParticleSystem* ret = axis::ParticleSystem::create(arg0); + object_to_luaval(tolua_S, "cc.ParticleSystem",(axis::ParticleSystem*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSystem:create",argc, 1); @@ -77339,8 +77339,8 @@ int lua_cocos2dx_ParticleSystem_createWithTotalParticles(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_createWithTotalParticles'", nullptr); return 0; } - cocos2d::ParticleSystem* ret = cocos2d::ParticleSystem::createWithTotalParticles(arg0); - object_to_luaval(tolua_S, "cc.ParticleSystem",(cocos2d::ParticleSystem*)ret); + axis::ParticleSystem* ret = axis::ParticleSystem::createWithTotalParticles(arg0); + object_to_luaval(tolua_S, "cc.ParticleSystem",(axis::ParticleSystem*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSystem:createWithTotalParticles",argc, 1); @@ -77368,14 +77368,14 @@ int lua_cocos2dx_ParticleSystem_createPointShape(lua_State* tolua_S) if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.ParticleSystem:createPointShape"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_createPointShape'", nullptr); return 0; } - cocos2d::EmissionShape ret = cocos2d::ParticleSystem::createPointShape(arg0); + axis::EmissionShape ret = axis::ParticleSystem::createPointShape(arg0); #pragma warning NO CONVERSION FROM NATIVE FOR EmissionShape; return 1; } @@ -77404,7 +77404,7 @@ int lua_cocos2dx_ParticleSystem_createCircleShape(lua_State* tolua_S) if (argc == 2) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; double arg1; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.ParticleSystem:createCircleShape"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.ParticleSystem:createCircleShape"); @@ -77413,13 +77413,13 @@ int lua_cocos2dx_ParticleSystem_createCircleShape(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_createCircleShape'", nullptr); return 0; } - cocos2d::EmissionShape ret = cocos2d::ParticleSystem::createCircleShape(arg0, arg1); + axis::EmissionShape ret = axis::ParticleSystem::createCircleShape(arg0, arg1); #pragma warning NO CONVERSION FROM NATIVE FOR EmissionShape; return 1; } if (argc == 3) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; double arg1; double arg2; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.ParticleSystem:createCircleShape"); @@ -77430,7 +77430,7 @@ int lua_cocos2dx_ParticleSystem_createCircleShape(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_createCircleShape'", nullptr); return 0; } - cocos2d::EmissionShape ret = cocos2d::ParticleSystem::createCircleShape(arg0, arg1, arg2); + axis::EmissionShape ret = axis::ParticleSystem::createCircleShape(arg0, arg1, arg2); #pragma warning NO CONVERSION FROM NATIVE FOR EmissionShape; return 1; } @@ -77466,14 +77466,14 @@ int lua_cocos2dx_ParticleSystem_createMaskShape(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_createMaskShape'", nullptr); return 0; } - cocos2d::EmissionShape ret = cocos2d::ParticleSystem::createMaskShape(arg0); + axis::EmissionShape ret = axis::ParticleSystem::createMaskShape(arg0); #pragma warning NO CONVERSION FROM NATIVE FOR EmissionShape; return 1; } if (argc == 2) { std::string_view arg0; - cocos2d::Vec2 arg1; + axis::Vec2 arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.ParticleSystem:createMaskShape"); ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.ParticleSystem:createMaskShape"); if(!ok) @@ -77481,15 +77481,15 @@ int lua_cocos2dx_ParticleSystem_createMaskShape(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_createMaskShape'", nullptr); return 0; } - cocos2d::EmissionShape ret = cocos2d::ParticleSystem::createMaskShape(arg0, arg1); + axis::EmissionShape ret = axis::ParticleSystem::createMaskShape(arg0, arg1); #pragma warning NO CONVERSION FROM NATIVE FOR EmissionShape; return 1; } if (argc == 3) { std::string_view arg0; - cocos2d::Vec2 arg1; - cocos2d::Vec2 arg2; + axis::Vec2 arg1; + axis::Vec2 arg2; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.ParticleSystem:createMaskShape"); ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.ParticleSystem:createMaskShape"); ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.ParticleSystem:createMaskShape"); @@ -77498,16 +77498,16 @@ int lua_cocos2dx_ParticleSystem_createMaskShape(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_createMaskShape'", nullptr); return 0; } - cocos2d::EmissionShape ret = cocos2d::ParticleSystem::createMaskShape(arg0, arg1, arg2); + axis::EmissionShape ret = axis::ParticleSystem::createMaskShape(arg0, arg1, arg2); #pragma warning NO CONVERSION FROM NATIVE FOR EmissionShape; return 1; } if (argc == 4) { std::string_view arg0; - cocos2d::Vec2 arg1; - cocos2d::Vec2 arg2; - cocos2d::Vec2 arg3; + axis::Vec2 arg1; + axis::Vec2 arg2; + axis::Vec2 arg3; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.ParticleSystem:createMaskShape"); ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.ParticleSystem:createMaskShape"); ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.ParticleSystem:createMaskShape"); @@ -77517,16 +77517,16 @@ int lua_cocos2dx_ParticleSystem_createMaskShape(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_createMaskShape'", nullptr); return 0; } - cocos2d::EmissionShape ret = cocos2d::ParticleSystem::createMaskShape(arg0, arg1, arg2, arg3); + axis::EmissionShape ret = axis::ParticleSystem::createMaskShape(arg0, arg1, arg2, arg3); #pragma warning NO CONVERSION FROM NATIVE FOR EmissionShape; return 1; } if (argc == 5) { std::string_view arg0; - cocos2d::Vec2 arg1; - cocos2d::Vec2 arg2; - cocos2d::Vec2 arg3; + axis::Vec2 arg1; + axis::Vec2 arg2; + axis::Vec2 arg3; double arg4; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.ParticleSystem:createMaskShape"); ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.ParticleSystem:createMaskShape"); @@ -77538,7 +77538,7 @@ int lua_cocos2dx_ParticleSystem_createMaskShape(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_createMaskShape'", nullptr); return 0; } - cocos2d::EmissionShape ret = cocos2d::ParticleSystem::createMaskShape(arg0, arg1, arg2, arg3, arg4); + axis::EmissionShape ret = axis::ParticleSystem::createMaskShape(arg0, arg1, arg2, arg3, arg4); #pragma warning NO CONVERSION FROM NATIVE FOR EmissionShape; return 1; } @@ -77567,8 +77567,8 @@ int lua_cocos2dx_ParticleSystem_createRectShape(lua_State* tolua_S) if (argc == 2) { - cocos2d::Vec2 arg0; - cocos2d::Size arg1; + axis::Vec2 arg0; + axis::Size arg1; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.ParticleSystem:createRectShape"); ok &= luaval_to_size(tolua_S, 3, &arg1, "cc.ParticleSystem:createRectShape"); if(!ok) @@ -77576,7 +77576,7 @@ int lua_cocos2dx_ParticleSystem_createRectShape(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_createRectShape'", nullptr); return 0; } - cocos2d::EmissionShape ret = cocos2d::ParticleSystem::createRectShape(arg0, arg1); + axis::EmissionShape ret = axis::ParticleSystem::createRectShape(arg0, arg1); #pragma warning NO CONVERSION FROM NATIVE FOR EmissionShape; return 1; } @@ -77610,7 +77610,7 @@ int lua_cocos2dx_ParticleSystem_getAllParticleSystems(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_getAllParticleSystems'", nullptr); return 0; } - cocos2d::Vector& ret = cocos2d::ParticleSystem::getAllParticleSystems(); + axis::Vector& ret = axis::ParticleSystem::getAllParticleSystems(); ccvector_to_luaval(tolua_S, ret); return 1; } @@ -77639,7 +77639,7 @@ int lua_cocos2dx_ParticleSystem_createConeTorusShape(lua_State* tolua_S) if (argc == 5) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; double arg1; double arg2; double arg3; @@ -77654,13 +77654,13 @@ int lua_cocos2dx_ParticleSystem_createConeTorusShape(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_createConeTorusShape'", nullptr); return 0; } - cocos2d::EmissionShape ret = cocos2d::ParticleSystem::createConeTorusShape(arg0, arg1, arg2, arg3, arg4); + axis::EmissionShape ret = axis::ParticleSystem::createConeTorusShape(arg0, arg1, arg2, arg3, arg4); #pragma warning NO CONVERSION FROM NATIVE FOR EmissionShape; return 1; } if (argc == 6) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; double arg1; double arg2; double arg3; @@ -77677,7 +77677,7 @@ int lua_cocos2dx_ParticleSystem_createConeTorusShape(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_createConeTorusShape'", nullptr); return 0; } - cocos2d::EmissionShape ret = cocos2d::ParticleSystem::createConeTorusShape(arg0, arg1, arg2, arg3, arg4, arg5); + axis::EmissionShape ret = axis::ParticleSystem::createConeTorusShape(arg0, arg1, arg2, arg3, arg4, arg5); #pragma warning NO CONVERSION FROM NATIVE FOR EmissionShape; return 1; } @@ -77692,7 +77692,7 @@ int lua_cocos2dx_ParticleSystem_createConeTorusShape(lua_State* tolua_S) int lua_cocos2dx_ParticleSystem_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem* cobj = nullptr; + axis::ParticleSystem* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -77709,7 +77709,7 @@ int lua_cocos2dx_ParticleSystem_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystem_constructor'", nullptr); return 0; } - cobj = new cocos2d::ParticleSystem(); + cobj = new axis::ParticleSystem(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -77909,7 +77909,7 @@ int lua_register_cocos2dx_ParticleSystem(lua_State* tolua_S) tolua_function(tolua_S,"getAllParticleSystems", lua_cocos2dx_ParticleSystem_getAllParticleSystems); tolua_function(tolua_S,"createConeTorusShape", lua_cocos2dx_ParticleSystem_createConeTorusShape); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ParticleSystem).name(); // rtti is literal storage + auto typeName = typeid(axis::ParticleSystem).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.ParticleSystem"; g_typeCast[typeName] = "cc.ParticleSystem"; return 1; @@ -77918,7 +77918,7 @@ int lua_register_cocos2dx_ParticleSystem(lua_State* tolua_S) int lua_cocos2dx_ParticleSystemQuad_setDisplayFrame(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystemQuad* cobj = nullptr; + axis::ParticleSystemQuad* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -77930,7 +77930,7 @@ int lua_cocos2dx_ParticleSystemQuad_setDisplayFrame(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystemQuad",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystemQuad*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystemQuad*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -77943,9 +77943,9 @@ int lua_cocos2dx_ParticleSystemQuad_setDisplayFrame(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::SpriteFrame* arg0; + axis::SpriteFrame* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.ParticleSystemQuad:setDisplayFrame"); + ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0, "cc.ParticleSystemQuad:setDisplayFrame"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystemQuad_setDisplayFrame'", nullptr); @@ -77968,7 +77968,7 @@ int lua_cocos2dx_ParticleSystemQuad_setDisplayFrame(lua_State* tolua_S) int lua_cocos2dx_ParticleSystemQuad_setTextureWithRect(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystemQuad* cobj = nullptr; + axis::ParticleSystemQuad* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -77980,7 +77980,7 @@ int lua_cocos2dx_ParticleSystemQuad_setTextureWithRect(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystemQuad",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystemQuad*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystemQuad*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -77993,10 +77993,10 @@ int lua_cocos2dx_ParticleSystemQuad_setTextureWithRect(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::Texture2D* arg0; - cocos2d::Rect arg1; + axis::Texture2D* arg0; + axis::Rect arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.ParticleSystemQuad:setTextureWithRect"); + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.ParticleSystemQuad:setTextureWithRect"); ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.ParticleSystemQuad:setTextureWithRect"); if(!ok) @@ -78021,7 +78021,7 @@ int lua_cocos2dx_ParticleSystemQuad_setTextureWithRect(lua_State* tolua_S) int lua_cocos2dx_ParticleSystemQuad_listenRendererRecreated(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystemQuad* cobj = nullptr; + axis::ParticleSystemQuad* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -78033,7 +78033,7 @@ int lua_cocos2dx_ParticleSystemQuad_listenRendererRecreated(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystemQuad",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystemQuad*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystemQuad*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -78046,9 +78046,9 @@ int lua_cocos2dx_ParticleSystemQuad_listenRendererRecreated(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::EventCustom* arg0; + axis::EventCustom* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.EventCustom",&arg0, "cc.ParticleSystemQuad:listenRendererRecreated"); + ok &= luaval_to_object(tolua_S, 2, "cc.EventCustom",&arg0, "cc.ParticleSystemQuad:listenRendererRecreated"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystemQuad_listenRendererRecreated'", nullptr); @@ -78089,8 +78089,8 @@ int lua_cocos2dx_ParticleSystemQuad_create(lua_State* tolua_S) std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.ParticleSystemQuad:create"); if (!ok) { break; } - cocos2d::ParticleSystemQuad* ret = cocos2d::ParticleSystemQuad::create(arg0); - object_to_luaval(tolua_S, "cc.ParticleSystemQuad",(cocos2d::ParticleSystemQuad*)ret); + axis::ParticleSystemQuad* ret = axis::ParticleSystemQuad::create(arg0); + object_to_luaval(tolua_S, "cc.ParticleSystemQuad",(axis::ParticleSystemQuad*)ret); return 1; } } while (0); @@ -78099,8 +78099,8 @@ int lua_cocos2dx_ParticleSystemQuad_create(lua_State* tolua_S) { if (argc == 0) { - cocos2d::ParticleSystemQuad* ret = cocos2d::ParticleSystemQuad::create(); - object_to_luaval(tolua_S, "cc.ParticleSystemQuad",(cocos2d::ParticleSystemQuad*)ret); + axis::ParticleSystemQuad* ret = axis::ParticleSystemQuad::create(); + object_to_luaval(tolua_S, "cc.ParticleSystemQuad",(axis::ParticleSystemQuad*)ret); return 1; } } while (0); @@ -78109,11 +78109,11 @@ int lua_cocos2dx_ParticleSystemQuad_create(lua_State* tolua_S) { if (argc == 1) { - cocos2d::ValueMap arg0; + axis::ValueMap arg0; ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.ParticleSystemQuad:create"); if (!ok) { break; } - cocos2d::ParticleSystemQuad* ret = cocos2d::ParticleSystemQuad::create(arg0); - object_to_luaval(tolua_S, "cc.ParticleSystemQuad",(cocos2d::ParticleSystemQuad*)ret); + axis::ParticleSystemQuad* ret = axis::ParticleSystemQuad::create(arg0); + object_to_luaval(tolua_S, "cc.ParticleSystemQuad",(axis::ParticleSystemQuad*)ret); return 1; } } while (0); @@ -78150,8 +78150,8 @@ int lua_cocos2dx_ParticleSystemQuad_createWithTotalParticles(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystemQuad_createWithTotalParticles'", nullptr); return 0; } - cocos2d::ParticleSystemQuad* ret = cocos2d::ParticleSystemQuad::createWithTotalParticles(arg0); - object_to_luaval(tolua_S, "cc.ParticleSystemQuad",(cocos2d::ParticleSystemQuad*)ret); + axis::ParticleSystemQuad* ret = axis::ParticleSystemQuad::createWithTotalParticles(arg0); + object_to_luaval(tolua_S, "cc.ParticleSystemQuad",(axis::ParticleSystemQuad*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSystemQuad:createWithTotalParticles",argc, 1); @@ -78165,7 +78165,7 @@ int lua_cocos2dx_ParticleSystemQuad_createWithTotalParticles(lua_State* tolua_S) int lua_cocos2dx_ParticleSystemQuad_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystemQuad* cobj = nullptr; + axis::ParticleSystemQuad* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -78182,7 +78182,7 @@ int lua_cocos2dx_ParticleSystemQuad_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSystemQuad_constructor'", nullptr); return 0; } - cobj = new cocos2d::ParticleSystemQuad(); + cobj = new axis::ParticleSystemQuad(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -78218,7 +78218,7 @@ int lua_register_cocos2dx_ParticleSystemQuad(lua_State* tolua_S) tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSystemQuad_create); tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleSystemQuad_createWithTotalParticles); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ParticleSystemQuad).name(); // rtti is literal storage + auto typeName = typeid(axis::ParticleSystemQuad).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.ParticleSystemQuad"; g_typeCast[typeName] = "cc.ParticleSystemQuad"; return 1; @@ -78246,8 +78246,8 @@ int lua_cocos2dx_ParticleFire_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleFire_create'", nullptr); return 0; } - cocos2d::ParticleFire* ret = cocos2d::ParticleFire::create(); - object_to_luaval(tolua_S, "cc.ParticleFire",(cocos2d::ParticleFire*)ret); + axis::ParticleFire* ret = axis::ParticleFire::create(); + object_to_luaval(tolua_S, "cc.ParticleFire",(axis::ParticleFire*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleFire:create",argc, 0); @@ -78282,8 +78282,8 @@ int lua_cocos2dx_ParticleFire_createWithTotalParticles(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleFire_createWithTotalParticles'", nullptr); return 0; } - cocos2d::ParticleFire* ret = cocos2d::ParticleFire::createWithTotalParticles(arg0); - object_to_luaval(tolua_S, "cc.ParticleFire",(cocos2d::ParticleFire*)ret); + axis::ParticleFire* ret = axis::ParticleFire::createWithTotalParticles(arg0); + object_to_luaval(tolua_S, "cc.ParticleFire",(axis::ParticleFire*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleFire:createWithTotalParticles",argc, 1); @@ -78297,7 +78297,7 @@ int lua_cocos2dx_ParticleFire_createWithTotalParticles(lua_State* tolua_S) int lua_cocos2dx_ParticleFire_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleFire* cobj = nullptr; + axis::ParticleFire* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -78314,7 +78314,7 @@ int lua_cocos2dx_ParticleFire_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleFire_constructor'", nullptr); return 0; } - cobj = new cocos2d::ParticleFire(); + cobj = new axis::ParticleFire(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -78347,7 +78347,7 @@ int lua_register_cocos2dx_ParticleFire(lua_State* tolua_S) tolua_function(tolua_S,"create", lua_cocos2dx_ParticleFire_create); tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleFire_createWithTotalParticles); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ParticleFire).name(); // rtti is literal storage + auto typeName = typeid(axis::ParticleFire).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.ParticleFire"; g_typeCast[typeName] = "cc.ParticleFire"; return 1; @@ -78356,7 +78356,7 @@ int lua_register_cocos2dx_ParticleFire(lua_State* tolua_S) int lua_cocos2dx_ParticleFireworks_init(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleFireworks* cobj = nullptr; + axis::ParticleFireworks* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -78368,7 +78368,7 @@ int lua_cocos2dx_ParticleFireworks_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleFireworks",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleFireworks*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleFireworks*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -78403,7 +78403,7 @@ int lua_cocos2dx_ParticleFireworks_init(lua_State* tolua_S) int lua_cocos2dx_ParticleFireworks_initWithTotalParticles(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleFireworks* cobj = nullptr; + axis::ParticleFireworks* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -78415,7 +78415,7 @@ int lua_cocos2dx_ParticleFireworks_initWithTotalParticles(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleFireworks",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleFireworks*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleFireworks*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -78472,8 +78472,8 @@ int lua_cocos2dx_ParticleFireworks_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleFireworks_create'", nullptr); return 0; } - cocos2d::ParticleFireworks* ret = cocos2d::ParticleFireworks::create(); - object_to_luaval(tolua_S, "cc.ParticleFireworks",(cocos2d::ParticleFireworks*)ret); + axis::ParticleFireworks* ret = axis::ParticleFireworks::create(); + object_to_luaval(tolua_S, "cc.ParticleFireworks",(axis::ParticleFireworks*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleFireworks:create",argc, 0); @@ -78508,8 +78508,8 @@ int lua_cocos2dx_ParticleFireworks_createWithTotalParticles(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleFireworks_createWithTotalParticles'", nullptr); return 0; } - cocos2d::ParticleFireworks* ret = cocos2d::ParticleFireworks::createWithTotalParticles(arg0); - object_to_luaval(tolua_S, "cc.ParticleFireworks",(cocos2d::ParticleFireworks*)ret); + axis::ParticleFireworks* ret = axis::ParticleFireworks::createWithTotalParticles(arg0); + object_to_luaval(tolua_S, "cc.ParticleFireworks",(axis::ParticleFireworks*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleFireworks:createWithTotalParticles",argc, 1); @@ -78523,7 +78523,7 @@ int lua_cocos2dx_ParticleFireworks_createWithTotalParticles(lua_State* tolua_S) int lua_cocos2dx_ParticleFireworks_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleFireworks* cobj = nullptr; + axis::ParticleFireworks* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -78540,7 +78540,7 @@ int lua_cocos2dx_ParticleFireworks_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleFireworks_constructor'", nullptr); return 0; } - cobj = new cocos2d::ParticleFireworks(); + cobj = new axis::ParticleFireworks(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -78575,7 +78575,7 @@ int lua_register_cocos2dx_ParticleFireworks(lua_State* tolua_S) tolua_function(tolua_S,"create", lua_cocos2dx_ParticleFireworks_create); tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleFireworks_createWithTotalParticles); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ParticleFireworks).name(); // rtti is literal storage + auto typeName = typeid(axis::ParticleFireworks).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.ParticleFireworks"; g_typeCast[typeName] = "cc.ParticleFireworks"; return 1; @@ -78584,7 +78584,7 @@ int lua_register_cocos2dx_ParticleFireworks(lua_State* tolua_S) int lua_cocos2dx_ParticleSun_init(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSun* cobj = nullptr; + axis::ParticleSun* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -78596,7 +78596,7 @@ int lua_cocos2dx_ParticleSun_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSun",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSun*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSun*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -78631,7 +78631,7 @@ int lua_cocos2dx_ParticleSun_init(lua_State* tolua_S) int lua_cocos2dx_ParticleSun_initWithTotalParticles(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSun* cobj = nullptr; + axis::ParticleSun* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -78643,7 +78643,7 @@ int lua_cocos2dx_ParticleSun_initWithTotalParticles(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSun",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSun*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSun*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -78700,8 +78700,8 @@ int lua_cocos2dx_ParticleSun_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSun_create'", nullptr); return 0; } - cocos2d::ParticleSun* ret = cocos2d::ParticleSun::create(); - object_to_luaval(tolua_S, "cc.ParticleSun",(cocos2d::ParticleSun*)ret); + axis::ParticleSun* ret = axis::ParticleSun::create(); + object_to_luaval(tolua_S, "cc.ParticleSun",(axis::ParticleSun*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSun:create",argc, 0); @@ -78736,8 +78736,8 @@ int lua_cocos2dx_ParticleSun_createWithTotalParticles(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSun_createWithTotalParticles'", nullptr); return 0; } - cocos2d::ParticleSun* ret = cocos2d::ParticleSun::createWithTotalParticles(arg0); - object_to_luaval(tolua_S, "cc.ParticleSun",(cocos2d::ParticleSun*)ret); + axis::ParticleSun* ret = axis::ParticleSun::createWithTotalParticles(arg0); + object_to_luaval(tolua_S, "cc.ParticleSun",(axis::ParticleSun*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSun:createWithTotalParticles",argc, 1); @@ -78751,7 +78751,7 @@ int lua_cocos2dx_ParticleSun_createWithTotalParticles(lua_State* tolua_S) int lua_cocos2dx_ParticleSun_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSun* cobj = nullptr; + axis::ParticleSun* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -78768,7 +78768,7 @@ int lua_cocos2dx_ParticleSun_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSun_constructor'", nullptr); return 0; } - cobj = new cocos2d::ParticleSun(); + cobj = new axis::ParticleSun(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -78803,7 +78803,7 @@ int lua_register_cocos2dx_ParticleSun(lua_State* tolua_S) tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSun_create); tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleSun_createWithTotalParticles); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ParticleSun).name(); // rtti is literal storage + auto typeName = typeid(axis::ParticleSun).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.ParticleSun"; g_typeCast[typeName] = "cc.ParticleSun"; return 1; @@ -78812,7 +78812,7 @@ int lua_register_cocos2dx_ParticleSun(lua_State* tolua_S) int lua_cocos2dx_ParticleGalaxy_init(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleGalaxy* cobj = nullptr; + axis::ParticleGalaxy* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -78824,7 +78824,7 @@ int lua_cocos2dx_ParticleGalaxy_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleGalaxy",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleGalaxy*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleGalaxy*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -78859,7 +78859,7 @@ int lua_cocos2dx_ParticleGalaxy_init(lua_State* tolua_S) int lua_cocos2dx_ParticleGalaxy_initWithTotalParticles(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleGalaxy* cobj = nullptr; + axis::ParticleGalaxy* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -78871,7 +78871,7 @@ int lua_cocos2dx_ParticleGalaxy_initWithTotalParticles(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleGalaxy",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleGalaxy*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleGalaxy*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -78928,8 +78928,8 @@ int lua_cocos2dx_ParticleGalaxy_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleGalaxy_create'", nullptr); return 0; } - cocos2d::ParticleGalaxy* ret = cocos2d::ParticleGalaxy::create(); - object_to_luaval(tolua_S, "cc.ParticleGalaxy",(cocos2d::ParticleGalaxy*)ret); + axis::ParticleGalaxy* ret = axis::ParticleGalaxy::create(); + object_to_luaval(tolua_S, "cc.ParticleGalaxy",(axis::ParticleGalaxy*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleGalaxy:create",argc, 0); @@ -78964,8 +78964,8 @@ int lua_cocos2dx_ParticleGalaxy_createWithTotalParticles(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleGalaxy_createWithTotalParticles'", nullptr); return 0; } - cocos2d::ParticleGalaxy* ret = cocos2d::ParticleGalaxy::createWithTotalParticles(arg0); - object_to_luaval(tolua_S, "cc.ParticleGalaxy",(cocos2d::ParticleGalaxy*)ret); + axis::ParticleGalaxy* ret = axis::ParticleGalaxy::createWithTotalParticles(arg0); + object_to_luaval(tolua_S, "cc.ParticleGalaxy",(axis::ParticleGalaxy*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleGalaxy:createWithTotalParticles",argc, 1); @@ -78979,7 +78979,7 @@ int lua_cocos2dx_ParticleGalaxy_createWithTotalParticles(lua_State* tolua_S) int lua_cocos2dx_ParticleGalaxy_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleGalaxy* cobj = nullptr; + axis::ParticleGalaxy* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -78996,7 +78996,7 @@ int lua_cocos2dx_ParticleGalaxy_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleGalaxy_constructor'", nullptr); return 0; } - cobj = new cocos2d::ParticleGalaxy(); + cobj = new axis::ParticleGalaxy(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -79031,7 +79031,7 @@ int lua_register_cocos2dx_ParticleGalaxy(lua_State* tolua_S) tolua_function(tolua_S,"create", lua_cocos2dx_ParticleGalaxy_create); tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleGalaxy_createWithTotalParticles); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ParticleGalaxy).name(); // rtti is literal storage + auto typeName = typeid(axis::ParticleGalaxy).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.ParticleGalaxy"; g_typeCast[typeName] = "cc.ParticleGalaxy"; return 1; @@ -79040,7 +79040,7 @@ int lua_register_cocos2dx_ParticleGalaxy(lua_State* tolua_S) int lua_cocos2dx_ParticleFlower_init(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleFlower* cobj = nullptr; + axis::ParticleFlower* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -79052,7 +79052,7 @@ int lua_cocos2dx_ParticleFlower_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleFlower",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleFlower*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleFlower*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -79087,7 +79087,7 @@ int lua_cocos2dx_ParticleFlower_init(lua_State* tolua_S) int lua_cocos2dx_ParticleFlower_initWithTotalParticles(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleFlower* cobj = nullptr; + axis::ParticleFlower* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -79099,7 +79099,7 @@ int lua_cocos2dx_ParticleFlower_initWithTotalParticles(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleFlower",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleFlower*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleFlower*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -79156,8 +79156,8 @@ int lua_cocos2dx_ParticleFlower_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleFlower_create'", nullptr); return 0; } - cocos2d::ParticleFlower* ret = cocos2d::ParticleFlower::create(); - object_to_luaval(tolua_S, "cc.ParticleFlower",(cocos2d::ParticleFlower*)ret); + axis::ParticleFlower* ret = axis::ParticleFlower::create(); + object_to_luaval(tolua_S, "cc.ParticleFlower",(axis::ParticleFlower*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleFlower:create",argc, 0); @@ -79192,8 +79192,8 @@ int lua_cocos2dx_ParticleFlower_createWithTotalParticles(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleFlower_createWithTotalParticles'", nullptr); return 0; } - cocos2d::ParticleFlower* ret = cocos2d::ParticleFlower::createWithTotalParticles(arg0); - object_to_luaval(tolua_S, "cc.ParticleFlower",(cocos2d::ParticleFlower*)ret); + axis::ParticleFlower* ret = axis::ParticleFlower::createWithTotalParticles(arg0); + object_to_luaval(tolua_S, "cc.ParticleFlower",(axis::ParticleFlower*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleFlower:createWithTotalParticles",argc, 1); @@ -79207,7 +79207,7 @@ int lua_cocos2dx_ParticleFlower_createWithTotalParticles(lua_State* tolua_S) int lua_cocos2dx_ParticleFlower_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleFlower* cobj = nullptr; + axis::ParticleFlower* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -79224,7 +79224,7 @@ int lua_cocos2dx_ParticleFlower_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleFlower_constructor'", nullptr); return 0; } - cobj = new cocos2d::ParticleFlower(); + cobj = new axis::ParticleFlower(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -79259,7 +79259,7 @@ int lua_register_cocos2dx_ParticleFlower(lua_State* tolua_S) tolua_function(tolua_S,"create", lua_cocos2dx_ParticleFlower_create); tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleFlower_createWithTotalParticles); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ParticleFlower).name(); // rtti is literal storage + auto typeName = typeid(axis::ParticleFlower).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.ParticleFlower"; g_typeCast[typeName] = "cc.ParticleFlower"; return 1; @@ -79268,7 +79268,7 @@ int lua_register_cocos2dx_ParticleFlower(lua_State* tolua_S) int lua_cocos2dx_ParticleMeteor_init(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleMeteor* cobj = nullptr; + axis::ParticleMeteor* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -79280,7 +79280,7 @@ int lua_cocos2dx_ParticleMeteor_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleMeteor",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleMeteor*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleMeteor*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -79315,7 +79315,7 @@ int lua_cocos2dx_ParticleMeteor_init(lua_State* tolua_S) int lua_cocos2dx_ParticleMeteor_initWithTotalParticles(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleMeteor* cobj = nullptr; + axis::ParticleMeteor* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -79327,7 +79327,7 @@ int lua_cocos2dx_ParticleMeteor_initWithTotalParticles(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleMeteor",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleMeteor*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleMeteor*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -79384,8 +79384,8 @@ int lua_cocos2dx_ParticleMeteor_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleMeteor_create'", nullptr); return 0; } - cocos2d::ParticleMeteor* ret = cocos2d::ParticleMeteor::create(); - object_to_luaval(tolua_S, "cc.ParticleMeteor",(cocos2d::ParticleMeteor*)ret); + axis::ParticleMeteor* ret = axis::ParticleMeteor::create(); + object_to_luaval(tolua_S, "cc.ParticleMeteor",(axis::ParticleMeteor*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleMeteor:create",argc, 0); @@ -79420,8 +79420,8 @@ int lua_cocos2dx_ParticleMeteor_createWithTotalParticles(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleMeteor_createWithTotalParticles'", nullptr); return 0; } - cocos2d::ParticleMeteor* ret = cocos2d::ParticleMeteor::createWithTotalParticles(arg0); - object_to_luaval(tolua_S, "cc.ParticleMeteor",(cocos2d::ParticleMeteor*)ret); + axis::ParticleMeteor* ret = axis::ParticleMeteor::createWithTotalParticles(arg0); + object_to_luaval(tolua_S, "cc.ParticleMeteor",(axis::ParticleMeteor*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleMeteor:createWithTotalParticles",argc, 1); @@ -79435,7 +79435,7 @@ int lua_cocos2dx_ParticleMeteor_createWithTotalParticles(lua_State* tolua_S) int lua_cocos2dx_ParticleMeteor_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleMeteor* cobj = nullptr; + axis::ParticleMeteor* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -79452,7 +79452,7 @@ int lua_cocos2dx_ParticleMeteor_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleMeteor_constructor'", nullptr); return 0; } - cobj = new cocos2d::ParticleMeteor(); + cobj = new axis::ParticleMeteor(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -79487,7 +79487,7 @@ int lua_register_cocos2dx_ParticleMeteor(lua_State* tolua_S) tolua_function(tolua_S,"create", lua_cocos2dx_ParticleMeteor_create); tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleMeteor_createWithTotalParticles); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ParticleMeteor).name(); // rtti is literal storage + auto typeName = typeid(axis::ParticleMeteor).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.ParticleMeteor"; g_typeCast[typeName] = "cc.ParticleMeteor"; return 1; @@ -79496,7 +79496,7 @@ int lua_register_cocos2dx_ParticleMeteor(lua_State* tolua_S) int lua_cocos2dx_ParticleSpiral_init(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSpiral* cobj = nullptr; + axis::ParticleSpiral* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -79508,7 +79508,7 @@ int lua_cocos2dx_ParticleSpiral_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSpiral",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSpiral*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSpiral*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -79543,7 +79543,7 @@ int lua_cocos2dx_ParticleSpiral_init(lua_State* tolua_S) int lua_cocos2dx_ParticleSpiral_initWithTotalParticles(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSpiral* cobj = nullptr; + axis::ParticleSpiral* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -79555,7 +79555,7 @@ int lua_cocos2dx_ParticleSpiral_initWithTotalParticles(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSpiral",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSpiral*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSpiral*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -79612,8 +79612,8 @@ int lua_cocos2dx_ParticleSpiral_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSpiral_create'", nullptr); return 0; } - cocos2d::ParticleSpiral* ret = cocos2d::ParticleSpiral::create(); - object_to_luaval(tolua_S, "cc.ParticleSpiral",(cocos2d::ParticleSpiral*)ret); + axis::ParticleSpiral* ret = axis::ParticleSpiral::create(); + object_to_luaval(tolua_S, "cc.ParticleSpiral",(axis::ParticleSpiral*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSpiral:create",argc, 0); @@ -79648,8 +79648,8 @@ int lua_cocos2dx_ParticleSpiral_createWithTotalParticles(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSpiral_createWithTotalParticles'", nullptr); return 0; } - cocos2d::ParticleSpiral* ret = cocos2d::ParticleSpiral::createWithTotalParticles(arg0); - object_to_luaval(tolua_S, "cc.ParticleSpiral",(cocos2d::ParticleSpiral*)ret); + axis::ParticleSpiral* ret = axis::ParticleSpiral::createWithTotalParticles(arg0); + object_to_luaval(tolua_S, "cc.ParticleSpiral",(axis::ParticleSpiral*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSpiral:createWithTotalParticles",argc, 1); @@ -79663,7 +79663,7 @@ int lua_cocos2dx_ParticleSpiral_createWithTotalParticles(lua_State* tolua_S) int lua_cocos2dx_ParticleSpiral_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSpiral* cobj = nullptr; + axis::ParticleSpiral* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -79680,7 +79680,7 @@ int lua_cocos2dx_ParticleSpiral_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSpiral_constructor'", nullptr); return 0; } - cobj = new cocos2d::ParticleSpiral(); + cobj = new axis::ParticleSpiral(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -79715,7 +79715,7 @@ int lua_register_cocos2dx_ParticleSpiral(lua_State* tolua_S) tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSpiral_create); tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleSpiral_createWithTotalParticles); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ParticleSpiral).name(); // rtti is literal storage + auto typeName = typeid(axis::ParticleSpiral).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.ParticleSpiral"; g_typeCast[typeName] = "cc.ParticleSpiral"; return 1; @@ -79724,7 +79724,7 @@ int lua_register_cocos2dx_ParticleSpiral(lua_State* tolua_S) int lua_cocos2dx_ParticleExplosion_init(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleExplosion* cobj = nullptr; + axis::ParticleExplosion* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -79736,7 +79736,7 @@ int lua_cocos2dx_ParticleExplosion_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleExplosion",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleExplosion*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleExplosion*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -79771,7 +79771,7 @@ int lua_cocos2dx_ParticleExplosion_init(lua_State* tolua_S) int lua_cocos2dx_ParticleExplosion_initWithTotalParticles(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleExplosion* cobj = nullptr; + axis::ParticleExplosion* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -79783,7 +79783,7 @@ int lua_cocos2dx_ParticleExplosion_initWithTotalParticles(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleExplosion",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleExplosion*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleExplosion*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -79840,8 +79840,8 @@ int lua_cocos2dx_ParticleExplosion_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleExplosion_create'", nullptr); return 0; } - cocos2d::ParticleExplosion* ret = cocos2d::ParticleExplosion::create(); - object_to_luaval(tolua_S, "cc.ParticleExplosion",(cocos2d::ParticleExplosion*)ret); + axis::ParticleExplosion* ret = axis::ParticleExplosion::create(); + object_to_luaval(tolua_S, "cc.ParticleExplosion",(axis::ParticleExplosion*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleExplosion:create",argc, 0); @@ -79876,8 +79876,8 @@ int lua_cocos2dx_ParticleExplosion_createWithTotalParticles(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleExplosion_createWithTotalParticles'", nullptr); return 0; } - cocos2d::ParticleExplosion* ret = cocos2d::ParticleExplosion::createWithTotalParticles(arg0); - object_to_luaval(tolua_S, "cc.ParticleExplosion",(cocos2d::ParticleExplosion*)ret); + axis::ParticleExplosion* ret = axis::ParticleExplosion::createWithTotalParticles(arg0); + object_to_luaval(tolua_S, "cc.ParticleExplosion",(axis::ParticleExplosion*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleExplosion:createWithTotalParticles",argc, 1); @@ -79891,7 +79891,7 @@ int lua_cocos2dx_ParticleExplosion_createWithTotalParticles(lua_State* tolua_S) int lua_cocos2dx_ParticleExplosion_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleExplosion* cobj = nullptr; + axis::ParticleExplosion* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -79908,7 +79908,7 @@ int lua_cocos2dx_ParticleExplosion_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleExplosion_constructor'", nullptr); return 0; } - cobj = new cocos2d::ParticleExplosion(); + cobj = new axis::ParticleExplosion(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -79943,7 +79943,7 @@ int lua_register_cocos2dx_ParticleExplosion(lua_State* tolua_S) tolua_function(tolua_S,"create", lua_cocos2dx_ParticleExplosion_create); tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleExplosion_createWithTotalParticles); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ParticleExplosion).name(); // rtti is literal storage + auto typeName = typeid(axis::ParticleExplosion).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.ParticleExplosion"; g_typeCast[typeName] = "cc.ParticleExplosion"; return 1; @@ -79952,7 +79952,7 @@ int lua_register_cocos2dx_ParticleExplosion(lua_State* tolua_S) int lua_cocos2dx_ParticleSmoke_init(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSmoke* cobj = nullptr; + axis::ParticleSmoke* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -79964,7 +79964,7 @@ int lua_cocos2dx_ParticleSmoke_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSmoke",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSmoke*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSmoke*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -79999,7 +79999,7 @@ int lua_cocos2dx_ParticleSmoke_init(lua_State* tolua_S) int lua_cocos2dx_ParticleSmoke_initWithTotalParticles(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSmoke* cobj = nullptr; + axis::ParticleSmoke* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -80011,7 +80011,7 @@ int lua_cocos2dx_ParticleSmoke_initWithTotalParticles(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSmoke",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSmoke*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSmoke*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -80068,8 +80068,8 @@ int lua_cocos2dx_ParticleSmoke_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSmoke_create'", nullptr); return 0; } - cocos2d::ParticleSmoke* ret = cocos2d::ParticleSmoke::create(); - object_to_luaval(tolua_S, "cc.ParticleSmoke",(cocos2d::ParticleSmoke*)ret); + axis::ParticleSmoke* ret = axis::ParticleSmoke::create(); + object_to_luaval(tolua_S, "cc.ParticleSmoke",(axis::ParticleSmoke*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSmoke:create",argc, 0); @@ -80104,8 +80104,8 @@ int lua_cocos2dx_ParticleSmoke_createWithTotalParticles(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSmoke_createWithTotalParticles'", nullptr); return 0; } - cocos2d::ParticleSmoke* ret = cocos2d::ParticleSmoke::createWithTotalParticles(arg0); - object_to_luaval(tolua_S, "cc.ParticleSmoke",(cocos2d::ParticleSmoke*)ret); + axis::ParticleSmoke* ret = axis::ParticleSmoke::createWithTotalParticles(arg0); + object_to_luaval(tolua_S, "cc.ParticleSmoke",(axis::ParticleSmoke*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSmoke:createWithTotalParticles",argc, 1); @@ -80119,7 +80119,7 @@ int lua_cocos2dx_ParticleSmoke_createWithTotalParticles(lua_State* tolua_S) int lua_cocos2dx_ParticleSmoke_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSmoke* cobj = nullptr; + axis::ParticleSmoke* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -80136,7 +80136,7 @@ int lua_cocos2dx_ParticleSmoke_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSmoke_constructor'", nullptr); return 0; } - cobj = new cocos2d::ParticleSmoke(); + cobj = new axis::ParticleSmoke(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -80171,7 +80171,7 @@ int lua_register_cocos2dx_ParticleSmoke(lua_State* tolua_S) tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSmoke_create); tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleSmoke_createWithTotalParticles); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ParticleSmoke).name(); // rtti is literal storage + auto typeName = typeid(axis::ParticleSmoke).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.ParticleSmoke"; g_typeCast[typeName] = "cc.ParticleSmoke"; return 1; @@ -80180,7 +80180,7 @@ int lua_register_cocos2dx_ParticleSmoke(lua_State* tolua_S) int lua_cocos2dx_ParticleSnow_init(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSnow* cobj = nullptr; + axis::ParticleSnow* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -80192,7 +80192,7 @@ int lua_cocos2dx_ParticleSnow_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSnow",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSnow*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSnow*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -80227,7 +80227,7 @@ int lua_cocos2dx_ParticleSnow_init(lua_State* tolua_S) int lua_cocos2dx_ParticleSnow_initWithTotalParticles(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSnow* cobj = nullptr; + axis::ParticleSnow* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -80239,7 +80239,7 @@ int lua_cocos2dx_ParticleSnow_initWithTotalParticles(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSnow",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSnow*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSnow*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -80296,8 +80296,8 @@ int lua_cocos2dx_ParticleSnow_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSnow_create'", nullptr); return 0; } - cocos2d::ParticleSnow* ret = cocos2d::ParticleSnow::create(); - object_to_luaval(tolua_S, "cc.ParticleSnow",(cocos2d::ParticleSnow*)ret); + axis::ParticleSnow* ret = axis::ParticleSnow::create(); + object_to_luaval(tolua_S, "cc.ParticleSnow",(axis::ParticleSnow*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSnow:create",argc, 0); @@ -80332,8 +80332,8 @@ int lua_cocos2dx_ParticleSnow_createWithTotalParticles(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSnow_createWithTotalParticles'", nullptr); return 0; } - cocos2d::ParticleSnow* ret = cocos2d::ParticleSnow::createWithTotalParticles(arg0); - object_to_luaval(tolua_S, "cc.ParticleSnow",(cocos2d::ParticleSnow*)ret); + axis::ParticleSnow* ret = axis::ParticleSnow::createWithTotalParticles(arg0); + object_to_luaval(tolua_S, "cc.ParticleSnow",(axis::ParticleSnow*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleSnow:createWithTotalParticles",argc, 1); @@ -80347,7 +80347,7 @@ int lua_cocos2dx_ParticleSnow_createWithTotalParticles(lua_State* tolua_S) int lua_cocos2dx_ParticleSnow_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSnow* cobj = nullptr; + axis::ParticleSnow* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -80364,7 +80364,7 @@ int lua_cocos2dx_ParticleSnow_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleSnow_constructor'", nullptr); return 0; } - cobj = new cocos2d::ParticleSnow(); + cobj = new axis::ParticleSnow(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -80399,7 +80399,7 @@ int lua_register_cocos2dx_ParticleSnow(lua_State* tolua_S) tolua_function(tolua_S,"create", lua_cocos2dx_ParticleSnow_create); tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleSnow_createWithTotalParticles); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ParticleSnow).name(); // rtti is literal storage + auto typeName = typeid(axis::ParticleSnow).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.ParticleSnow"; g_typeCast[typeName] = "cc.ParticleSnow"; return 1; @@ -80408,7 +80408,7 @@ int lua_register_cocos2dx_ParticleSnow(lua_State* tolua_S) int lua_cocos2dx_ParticleRain_init(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleRain* cobj = nullptr; + axis::ParticleRain* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -80420,7 +80420,7 @@ int lua_cocos2dx_ParticleRain_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleRain",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleRain*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleRain*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -80455,7 +80455,7 @@ int lua_cocos2dx_ParticleRain_init(lua_State* tolua_S) int lua_cocos2dx_ParticleRain_initWithTotalParticles(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleRain* cobj = nullptr; + axis::ParticleRain* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -80467,7 +80467,7 @@ int lua_cocos2dx_ParticleRain_initWithTotalParticles(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleRain",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleRain*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleRain*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -80524,8 +80524,8 @@ int lua_cocos2dx_ParticleRain_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleRain_create'", nullptr); return 0; } - cocos2d::ParticleRain* ret = cocos2d::ParticleRain::create(); - object_to_luaval(tolua_S, "cc.ParticleRain",(cocos2d::ParticleRain*)ret); + axis::ParticleRain* ret = axis::ParticleRain::create(); + object_to_luaval(tolua_S, "cc.ParticleRain",(axis::ParticleRain*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleRain:create",argc, 0); @@ -80560,8 +80560,8 @@ int lua_cocos2dx_ParticleRain_createWithTotalParticles(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleRain_createWithTotalParticles'", nullptr); return 0; } - cocos2d::ParticleRain* ret = cocos2d::ParticleRain::createWithTotalParticles(arg0); - object_to_luaval(tolua_S, "cc.ParticleRain",(cocos2d::ParticleRain*)ret); + axis::ParticleRain* ret = axis::ParticleRain::createWithTotalParticles(arg0); + object_to_luaval(tolua_S, "cc.ParticleRain",(axis::ParticleRain*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParticleRain:createWithTotalParticles",argc, 1); @@ -80575,7 +80575,7 @@ int lua_cocos2dx_ParticleRain_createWithTotalParticles(lua_State* tolua_S) int lua_cocos2dx_ParticleRain_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleRain* cobj = nullptr; + axis::ParticleRain* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -80592,7 +80592,7 @@ int lua_cocos2dx_ParticleRain_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParticleRain_constructor'", nullptr); return 0; } - cobj = new cocos2d::ParticleRain(); + cobj = new axis::ParticleRain(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -80627,7 +80627,7 @@ int lua_register_cocos2dx_ParticleRain(lua_State* tolua_S) tolua_function(tolua_S,"create", lua_cocos2dx_ParticleRain_create); tolua_function(tolua_S,"createWithTotalParticles", lua_cocos2dx_ParticleRain_createWithTotalParticles); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ParticleRain).name(); // rtti is literal storage + auto typeName = typeid(axis::ParticleRain).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.ParticleRain"; g_typeCast[typeName] = "cc.ParticleRain"; return 1; @@ -80636,7 +80636,7 @@ int lua_register_cocos2dx_ParticleRain(lua_State* tolua_S) int lua_cocos2dx_ProgressTimer_initWithSprite(lua_State* tolua_S) { int argc = 0; - cocos2d::ProgressTimer* cobj = nullptr; + axis::ProgressTimer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -80648,7 +80648,7 @@ int lua_cocos2dx_ProgressTimer_initWithSprite(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ProgressTimer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -80661,9 +80661,9 @@ int lua_cocos2dx_ProgressTimer_initWithSprite(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Sprite* arg0; + axis::Sprite* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0, "cc.ProgressTimer:initWithSprite"); + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0, "cc.ProgressTimer:initWithSprite"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProgressTimer_initWithSprite'", nullptr); @@ -80686,7 +80686,7 @@ int lua_cocos2dx_ProgressTimer_initWithSprite(lua_State* tolua_S) int lua_cocos2dx_ProgressTimer_isReverseDirection(lua_State* tolua_S) { int argc = 0; - cocos2d::ProgressTimer* cobj = nullptr; + axis::ProgressTimer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -80698,7 +80698,7 @@ int lua_cocos2dx_ProgressTimer_isReverseDirection(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ProgressTimer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -80733,7 +80733,7 @@ int lua_cocos2dx_ProgressTimer_isReverseDirection(lua_State* tolua_S) int lua_cocos2dx_ProgressTimer_setBarChangeRate(lua_State* tolua_S) { int argc = 0; - cocos2d::ProgressTimer* cobj = nullptr; + axis::ProgressTimer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -80745,7 +80745,7 @@ int lua_cocos2dx_ProgressTimer_setBarChangeRate(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ProgressTimer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -80758,7 +80758,7 @@ int lua_cocos2dx_ProgressTimer_setBarChangeRate(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.ProgressTimer:setBarChangeRate"); if(!ok) @@ -80783,7 +80783,7 @@ int lua_cocos2dx_ProgressTimer_setBarChangeRate(lua_State* tolua_S) int lua_cocos2dx_ProgressTimer_getPercentage(lua_State* tolua_S) { int argc = 0; - cocos2d::ProgressTimer* cobj = nullptr; + axis::ProgressTimer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -80795,7 +80795,7 @@ int lua_cocos2dx_ProgressTimer_getPercentage(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ProgressTimer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -80830,7 +80830,7 @@ int lua_cocos2dx_ProgressTimer_getPercentage(lua_State* tolua_S) int lua_cocos2dx_ProgressTimer_setSprite(lua_State* tolua_S) { int argc = 0; - cocos2d::ProgressTimer* cobj = nullptr; + axis::ProgressTimer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -80842,7 +80842,7 @@ int lua_cocos2dx_ProgressTimer_setSprite(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ProgressTimer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -80855,9 +80855,9 @@ int lua_cocos2dx_ProgressTimer_setSprite(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Sprite* arg0; + axis::Sprite* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0, "cc.ProgressTimer:setSprite"); + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0, "cc.ProgressTimer:setSprite"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProgressTimer_setSprite'", nullptr); @@ -80880,7 +80880,7 @@ int lua_cocos2dx_ProgressTimer_setSprite(lua_State* tolua_S) int lua_cocos2dx_ProgressTimer_getType(lua_State* tolua_S) { int argc = 0; - cocos2d::ProgressTimer* cobj = nullptr; + axis::ProgressTimer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -80892,7 +80892,7 @@ int lua_cocos2dx_ProgressTimer_getType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ProgressTimer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -80927,7 +80927,7 @@ int lua_cocos2dx_ProgressTimer_getType(lua_State* tolua_S) int lua_cocos2dx_ProgressTimer_getSprite(lua_State* tolua_S) { int argc = 0; - cocos2d::ProgressTimer* cobj = nullptr; + axis::ProgressTimer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -80939,7 +80939,7 @@ int lua_cocos2dx_ProgressTimer_getSprite(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ProgressTimer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -80957,8 +80957,8 @@ int lua_cocos2dx_ProgressTimer_getSprite(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProgressTimer_getSprite'", nullptr); return 0; } - cocos2d::Sprite* ret = cobj->getSprite(); - object_to_luaval(tolua_S, "cc.Sprite",(cocos2d::Sprite*)ret); + axis::Sprite* ret = cobj->getSprite(); + object_to_luaval(tolua_S, "cc.Sprite",(axis::Sprite*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProgressTimer:getSprite",argc, 0); @@ -80974,7 +80974,7 @@ int lua_cocos2dx_ProgressTimer_getSprite(lua_State* tolua_S) int lua_cocos2dx_ProgressTimer_setMidpoint(lua_State* tolua_S) { int argc = 0; - cocos2d::ProgressTimer* cobj = nullptr; + axis::ProgressTimer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -80986,7 +80986,7 @@ int lua_cocos2dx_ProgressTimer_setMidpoint(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ProgressTimer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -80999,7 +80999,7 @@ int lua_cocos2dx_ProgressTimer_setMidpoint(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.ProgressTimer:setMidpoint"); if(!ok) @@ -81024,7 +81024,7 @@ int lua_cocos2dx_ProgressTimer_setMidpoint(lua_State* tolua_S) int lua_cocos2dx_ProgressTimer_getBarChangeRate(lua_State* tolua_S) { int argc = 0; - cocos2d::ProgressTimer* cobj = nullptr; + axis::ProgressTimer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -81036,7 +81036,7 @@ int lua_cocos2dx_ProgressTimer_getBarChangeRate(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ProgressTimer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -81054,7 +81054,7 @@ int lua_cocos2dx_ProgressTimer_getBarChangeRate(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProgressTimer_getBarChangeRate'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getBarChangeRate(); + axis::Vec2 ret = cobj->getBarChangeRate(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -81071,7 +81071,7 @@ int lua_cocos2dx_ProgressTimer_getBarChangeRate(lua_State* tolua_S) int lua_cocos2dx_ProgressTimer_setReverseDirection(lua_State* tolua_S) { int argc = 0; - cocos2d::ProgressTimer* cobj = nullptr; + axis::ProgressTimer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -81083,7 +81083,7 @@ int lua_cocos2dx_ProgressTimer_setReverseDirection(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ProgressTimer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -81121,7 +81121,7 @@ int lua_cocos2dx_ProgressTimer_setReverseDirection(lua_State* tolua_S) int lua_cocos2dx_ProgressTimer_getMidpoint(lua_State* tolua_S) { int argc = 0; - cocos2d::ProgressTimer* cobj = nullptr; + axis::ProgressTimer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -81133,7 +81133,7 @@ int lua_cocos2dx_ProgressTimer_getMidpoint(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ProgressTimer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -81151,7 +81151,7 @@ int lua_cocos2dx_ProgressTimer_getMidpoint(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProgressTimer_getMidpoint'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getMidpoint(); + axis::Vec2 ret = cobj->getMidpoint(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -81168,7 +81168,7 @@ int lua_cocos2dx_ProgressTimer_getMidpoint(lua_State* tolua_S) int lua_cocos2dx_ProgressTimer_setPercentage(lua_State* tolua_S) { int argc = 0; - cocos2d::ProgressTimer* cobj = nullptr; + axis::ProgressTimer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -81180,7 +81180,7 @@ int lua_cocos2dx_ProgressTimer_setPercentage(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ProgressTimer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -81218,7 +81218,7 @@ int lua_cocos2dx_ProgressTimer_setPercentage(lua_State* tolua_S) int lua_cocos2dx_ProgressTimer_setType(lua_State* tolua_S) { int argc = 0; - cocos2d::ProgressTimer* cobj = nullptr; + axis::ProgressTimer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -81230,7 +81230,7 @@ int lua_cocos2dx_ProgressTimer_setType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ProgressTimer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ProgressTimer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ProgressTimer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -81243,7 +81243,7 @@ int lua_cocos2dx_ProgressTimer_setType(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ProgressTimer::Type arg0; + axis::ProgressTimer::Type arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.ProgressTimer:setType"); if(!ok) @@ -81282,15 +81282,15 @@ int lua_cocos2dx_ProgressTimer_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::Sprite* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0, "cc.ProgressTimer:create"); + axis::Sprite* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0, "cc.ProgressTimer:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProgressTimer_create'", nullptr); return 0; } - cocos2d::ProgressTimer* ret = cocos2d::ProgressTimer::create(arg0); - object_to_luaval(tolua_S, "cc.ProgressTimer",(cocos2d::ProgressTimer*)ret); + axis::ProgressTimer* ret = axis::ProgressTimer::create(arg0); + object_to_luaval(tolua_S, "cc.ProgressTimer",(axis::ProgressTimer*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ProgressTimer:create",argc, 1); @@ -81304,7 +81304,7 @@ int lua_cocos2dx_ProgressTimer_create(lua_State* tolua_S) int lua_cocos2dx_ProgressTimer_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ProgressTimer* cobj = nullptr; + axis::ProgressTimer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -81321,7 +81321,7 @@ int lua_cocos2dx_ProgressTimer_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProgressTimer_constructor'", nullptr); return 0; } - cobj = new cocos2d::ProgressTimer(); + cobj = new axis::ProgressTimer(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -81366,7 +81366,7 @@ int lua_register_cocos2dx_ProgressTimer(lua_State* tolua_S) tolua_function(tolua_S,"setType",lua_cocos2dx_ProgressTimer_setType); tolua_function(tolua_S,"create", lua_cocos2dx_ProgressTimer_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ProgressTimer).name(); // rtti is literal storage + auto typeName = typeid(axis::ProgressTimer).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.ProgressTimer"; g_typeCast[typeName] = "cc.ProgressTimer"; return 1; @@ -81375,7 +81375,7 @@ int lua_register_cocos2dx_ProgressTimer(lua_State* tolua_S) int lua_cocos2dx_ProtectedNode_addProtectedChild(lua_State* tolua_S) { int argc = 0; - cocos2d::ProtectedNode* cobj = nullptr; + axis::ProtectedNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -81384,7 +81384,7 @@ int lua_cocos2dx_ProtectedNode_addProtectedChild(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ProtectedNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ProtectedNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -81395,8 +81395,8 @@ int lua_cocos2dx_ProtectedNode_addProtectedChild(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { - cocos2d::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.ProtectedNode:addProtectedChild"); + axis::Node* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.ProtectedNode:addProtectedChild"); if (!ok) { break; } int arg1; @@ -81411,8 +81411,8 @@ int lua_cocos2dx_ProtectedNode_addProtectedChild(lua_State* tolua_S) ok = true; do{ if (argc == 1) { - cocos2d::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.ProtectedNode:addProtectedChild"); + axis::Node* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.ProtectedNode:addProtectedChild"); if (!ok) { break; } cobj->addProtectedChild(arg0); @@ -81423,8 +81423,8 @@ int lua_cocos2dx_ProtectedNode_addProtectedChild(lua_State* tolua_S) ok = true; do{ if (argc == 3) { - cocos2d::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.ProtectedNode:addProtectedChild"); + axis::Node* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.ProtectedNode:addProtectedChild"); if (!ok) { break; } int arg1; @@ -81454,7 +81454,7 @@ int lua_cocos2dx_ProtectedNode_addProtectedChild(lua_State* tolua_S) int lua_cocos2dx_ProtectedNode_disableCascadeColor(lua_State* tolua_S) { int argc = 0; - cocos2d::ProtectedNode* cobj = nullptr; + axis::ProtectedNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -81466,7 +81466,7 @@ int lua_cocos2dx_ProtectedNode_disableCascadeColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ProtectedNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ProtectedNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -81501,7 +81501,7 @@ int lua_cocos2dx_ProtectedNode_disableCascadeColor(lua_State* tolua_S) int lua_cocos2dx_ProtectedNode_removeProtectedChildByTag(lua_State* tolua_S) { int argc = 0; - cocos2d::ProtectedNode* cobj = nullptr; + axis::ProtectedNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -81513,7 +81513,7 @@ int lua_cocos2dx_ProtectedNode_removeProtectedChildByTag(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ProtectedNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ProtectedNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -81568,7 +81568,7 @@ int lua_cocos2dx_ProtectedNode_removeProtectedChildByTag(lua_State* tolua_S) int lua_cocos2dx_ProtectedNode_reorderProtectedChild(lua_State* tolua_S) { int argc = 0; - cocos2d::ProtectedNode* cobj = nullptr; + axis::ProtectedNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -81580,7 +81580,7 @@ int lua_cocos2dx_ProtectedNode_reorderProtectedChild(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ProtectedNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ProtectedNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -81593,10 +81593,10 @@ int lua_cocos2dx_ProtectedNode_reorderProtectedChild(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::Node* arg0; + axis::Node* arg0; int arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.ProtectedNode:reorderProtectedChild"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.ProtectedNode:reorderProtectedChild"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.ProtectedNode:reorderProtectedChild"); if(!ok) @@ -81621,7 +81621,7 @@ int lua_cocos2dx_ProtectedNode_reorderProtectedChild(lua_State* tolua_S) int lua_cocos2dx_ProtectedNode_removeAllProtectedChildrenWithCleanup(lua_State* tolua_S) { int argc = 0; - cocos2d::ProtectedNode* cobj = nullptr; + axis::ProtectedNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -81633,7 +81633,7 @@ int lua_cocos2dx_ProtectedNode_removeAllProtectedChildrenWithCleanup(lua_State* if (!tolua_isusertype(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ProtectedNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ProtectedNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -81671,7 +81671,7 @@ int lua_cocos2dx_ProtectedNode_removeAllProtectedChildrenWithCleanup(lua_State* int lua_cocos2dx_ProtectedNode_disableCascadeOpacity(lua_State* tolua_S) { int argc = 0; - cocos2d::ProtectedNode* cobj = nullptr; + axis::ProtectedNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -81683,7 +81683,7 @@ int lua_cocos2dx_ProtectedNode_disableCascadeOpacity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ProtectedNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ProtectedNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -81718,7 +81718,7 @@ int lua_cocos2dx_ProtectedNode_disableCascadeOpacity(lua_State* tolua_S) int lua_cocos2dx_ProtectedNode_sortAllProtectedChildren(lua_State* tolua_S) { int argc = 0; - cocos2d::ProtectedNode* cobj = nullptr; + axis::ProtectedNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -81730,7 +81730,7 @@ int lua_cocos2dx_ProtectedNode_sortAllProtectedChildren(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ProtectedNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ProtectedNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -81765,7 +81765,7 @@ int lua_cocos2dx_ProtectedNode_sortAllProtectedChildren(lua_State* tolua_S) int lua_cocos2dx_ProtectedNode_getProtectedChildByTag(lua_State* tolua_S) { int argc = 0; - cocos2d::ProtectedNode* cobj = nullptr; + axis::ProtectedNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -81777,7 +81777,7 @@ int lua_cocos2dx_ProtectedNode_getProtectedChildByTag(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ProtectedNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ProtectedNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -81798,8 +81798,8 @@ int lua_cocos2dx_ProtectedNode_getProtectedChildByTag(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProtectedNode_getProtectedChildByTag'", nullptr); return 0; } - cocos2d::Node* ret = cobj->getProtectedChildByTag(arg0); - object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + axis::Node* ret = cobj->getProtectedChildByTag(arg0); + object_to_luaval(tolua_S, "cc.Node",(axis::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ProtectedNode:getProtectedChildByTag",argc, 1); @@ -81815,7 +81815,7 @@ int lua_cocos2dx_ProtectedNode_getProtectedChildByTag(lua_State* tolua_S) int lua_cocos2dx_ProtectedNode_removeProtectedChild(lua_State* tolua_S) { int argc = 0; - cocos2d::ProtectedNode* cobj = nullptr; + axis::ProtectedNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -81827,7 +81827,7 @@ int lua_cocos2dx_ProtectedNode_removeProtectedChild(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ProtectedNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ProtectedNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -81840,9 +81840,9 @@ int lua_cocos2dx_ProtectedNode_removeProtectedChild(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Node* arg0; + axis::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.ProtectedNode:removeProtectedChild"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.ProtectedNode:removeProtectedChild"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProtectedNode_removeProtectedChild'", nullptr); @@ -81854,10 +81854,10 @@ int lua_cocos2dx_ProtectedNode_removeProtectedChild(lua_State* tolua_S) } if (argc == 2) { - cocos2d::Node* arg0; + axis::Node* arg0; bool arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.ProtectedNode:removeProtectedChild"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.ProtectedNode:removeProtectedChild"); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.ProtectedNode:removeProtectedChild"); if(!ok) @@ -81882,7 +81882,7 @@ int lua_cocos2dx_ProtectedNode_removeProtectedChild(lua_State* tolua_S) int lua_cocos2dx_ProtectedNode_removeAllProtectedChildren(lua_State* tolua_S) { int argc = 0; - cocos2d::ProtectedNode* cobj = nullptr; + axis::ProtectedNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -81894,7 +81894,7 @@ int lua_cocos2dx_ProtectedNode_removeAllProtectedChildren(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ProtectedNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ProtectedNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ProtectedNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -81948,8 +81948,8 @@ int lua_cocos2dx_ProtectedNode_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProtectedNode_create'", nullptr); return 0; } - cocos2d::ProtectedNode* ret = cocos2d::ProtectedNode::create(); - object_to_luaval(tolua_S, "cc.ProtectedNode",(cocos2d::ProtectedNode*)ret); + axis::ProtectedNode* ret = axis::ProtectedNode::create(); + object_to_luaval(tolua_S, "cc.ProtectedNode",(axis::ProtectedNode*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ProtectedNode:create",argc, 0); @@ -81963,7 +81963,7 @@ int lua_cocos2dx_ProtectedNode_create(lua_State* tolua_S) int lua_cocos2dx_ProtectedNode_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ProtectedNode* cobj = nullptr; + axis::ProtectedNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -81980,7 +81980,7 @@ int lua_cocos2dx_ProtectedNode_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ProtectedNode_constructor'", nullptr); return 0; } - cobj = new cocos2d::ProtectedNode(); + cobj = new axis::ProtectedNode(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -82022,7 +82022,7 @@ int lua_register_cocos2dx_ProtectedNode(lua_State* tolua_S) tolua_function(tolua_S,"removeAllProtectedChildren",lua_cocos2dx_ProtectedNode_removeAllProtectedChildren); tolua_function(tolua_S,"create", lua_cocos2dx_ProtectedNode_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ProtectedNode).name(); // rtti is literal storage + auto typeName = typeid(axis::ProtectedNode).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.ProtectedNode"; g_typeCast[typeName] = "cc.ProtectedNode"; return 1; @@ -82031,7 +82031,7 @@ int lua_register_cocos2dx_ProtectedNode(lua_State* tolua_S) int lua_cocos2dx_RenderTexture_setVirtualViewport(lua_State* tolua_S) { int argc = 0; - cocos2d::RenderTexture* cobj = nullptr; + axis::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -82043,7 +82043,7 @@ int lua_cocos2dx_RenderTexture_setVirtualViewport(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -82056,9 +82056,9 @@ int lua_cocos2dx_RenderTexture_setVirtualViewport(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 3) { - cocos2d::Vec2 arg0; - cocos2d::Rect arg1; - cocos2d::Rect arg2; + axis::Vec2 arg0; + axis::Rect arg1; + axis::Rect arg2; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.RenderTexture:setVirtualViewport"); @@ -82087,7 +82087,7 @@ int lua_cocos2dx_RenderTexture_setVirtualViewport(lua_State* tolua_S) int lua_cocos2dx_RenderTexture_clearStencil(lua_State* tolua_S) { int argc = 0; - cocos2d::RenderTexture* cobj = nullptr; + axis::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -82099,7 +82099,7 @@ int lua_cocos2dx_RenderTexture_clearStencil(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -82137,7 +82137,7 @@ int lua_cocos2dx_RenderTexture_clearStencil(lua_State* tolua_S) int lua_cocos2dx_RenderTexture_getClearDepth(lua_State* tolua_S) { int argc = 0; - cocos2d::RenderTexture* cobj = nullptr; + axis::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -82149,7 +82149,7 @@ int lua_cocos2dx_RenderTexture_getClearDepth(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -82184,7 +82184,7 @@ int lua_cocos2dx_RenderTexture_getClearDepth(lua_State* tolua_S) int lua_cocos2dx_RenderTexture_getClearStencil(lua_State* tolua_S) { int argc = 0; - cocos2d::RenderTexture* cobj = nullptr; + axis::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -82196,7 +82196,7 @@ int lua_cocos2dx_RenderTexture_getClearStencil(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -82231,7 +82231,7 @@ int lua_cocos2dx_RenderTexture_getClearStencil(lua_State* tolua_S) int lua_cocos2dx_RenderTexture_setClearStencil(lua_State* tolua_S) { int argc = 0; - cocos2d::RenderTexture* cobj = nullptr; + axis::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -82243,7 +82243,7 @@ int lua_cocos2dx_RenderTexture_setClearStencil(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -82281,7 +82281,7 @@ int lua_cocos2dx_RenderTexture_setClearStencil(lua_State* tolua_S) int lua_cocos2dx_RenderTexture_getRenderTarget(lua_State* tolua_S) { int argc = 0; - cocos2d::RenderTexture* cobj = nullptr; + axis::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -82293,7 +82293,7 @@ int lua_cocos2dx_RenderTexture_getRenderTarget(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -82311,8 +82311,8 @@ int lua_cocos2dx_RenderTexture_getRenderTarget(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RenderTexture_getRenderTarget'", nullptr); return 0; } - cocos2d::backend::RenderTarget* ret = cobj->getRenderTarget(); - object_to_luaval(tolua_S, "ccb.RenderTarget",(cocos2d::backend::RenderTarget*)ret); + axis::backend::RenderTarget* ret = cobj->getRenderTarget(); + object_to_luaval(tolua_S, "ccb.RenderTarget",(axis::backend::RenderTarget*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:getRenderTarget",argc, 0); @@ -82328,7 +82328,7 @@ int lua_cocos2dx_RenderTexture_getRenderTarget(lua_State* tolua_S) int lua_cocos2dx_RenderTexture_setSprite(lua_State* tolua_S) { int argc = 0; - cocos2d::RenderTexture* cobj = nullptr; + axis::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -82340,7 +82340,7 @@ int lua_cocos2dx_RenderTexture_setSprite(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -82353,9 +82353,9 @@ int lua_cocos2dx_RenderTexture_setSprite(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Sprite* arg0; + axis::Sprite* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0, "cc.RenderTexture:setSprite"); + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0, "cc.RenderTexture:setSprite"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RenderTexture_setSprite'", nullptr); @@ -82378,7 +82378,7 @@ int lua_cocos2dx_RenderTexture_setSprite(lua_State* tolua_S) int lua_cocos2dx_RenderTexture_getSprite(lua_State* tolua_S) { int argc = 0; - cocos2d::RenderTexture* cobj = nullptr; + axis::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -82390,7 +82390,7 @@ int lua_cocos2dx_RenderTexture_getSprite(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -82408,8 +82408,8 @@ int lua_cocos2dx_RenderTexture_getSprite(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RenderTexture_getSprite'", nullptr); return 0; } - cocos2d::Sprite* ret = cobj->getSprite(); - object_to_luaval(tolua_S, "cc.Sprite",(cocos2d::Sprite*)ret); + axis::Sprite* ret = cobj->getSprite(); + object_to_luaval(tolua_S, "cc.Sprite",(axis::Sprite*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.RenderTexture:getSprite",argc, 0); @@ -82425,7 +82425,7 @@ int lua_cocos2dx_RenderTexture_getSprite(lua_State* tolua_S) int lua_cocos2dx_RenderTexture_isAutoDraw(lua_State* tolua_S) { int argc = 0; - cocos2d::RenderTexture* cobj = nullptr; + axis::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -82437,7 +82437,7 @@ int lua_cocos2dx_RenderTexture_isAutoDraw(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -82472,7 +82472,7 @@ int lua_cocos2dx_RenderTexture_isAutoDraw(lua_State* tolua_S) int lua_cocos2dx_RenderTexture_saveToFileAsNonPMA(lua_State* tolua_S) { int argc = 0; - cocos2d::RenderTexture* cobj = nullptr; + axis::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -82481,7 +82481,7 @@ int lua_cocos2dx_RenderTexture_saveToFileAsNonPMA(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -82496,7 +82496,7 @@ int lua_cocos2dx_RenderTexture_saveToFileAsNonPMA(lua_State* tolua_S) ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.RenderTexture:saveToFileAsNonPMA"); if (!ok) { break; } - cocos2d::Image::Format arg1; + axis::Image::Format arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.RenderTexture:saveToFileAsNonPMA"); if (!ok) { break; } @@ -82504,7 +82504,7 @@ int lua_cocos2dx_RenderTexture_saveToFileAsNonPMA(lua_State* tolua_S) ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.RenderTexture:saveToFileAsNonPMA"); if (!ok) { break; } - std::function arg3; + std::function arg3; do { // Lambda binding for lua is not supported. assert(false); @@ -82556,7 +82556,7 @@ int lua_cocos2dx_RenderTexture_saveToFileAsNonPMA(lua_State* tolua_S) ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.RenderTexture:saveToFileAsNonPMA"); if (!ok) { break; } - std::function arg2; + std::function arg2; do { // Lambda binding for lua is not supported. assert(false); @@ -82583,7 +82583,7 @@ int lua_cocos2dx_RenderTexture_saveToFileAsNonPMA(lua_State* tolua_S) int lua_cocos2dx_RenderTexture_setKeepMatrix(lua_State* tolua_S) { int argc = 0; - cocos2d::RenderTexture* cobj = nullptr; + axis::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -82595,7 +82595,7 @@ int lua_cocos2dx_RenderTexture_setKeepMatrix(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -82633,7 +82633,7 @@ int lua_cocos2dx_RenderTexture_setKeepMatrix(lua_State* tolua_S) int lua_cocos2dx_RenderTexture_setClearFlags(lua_State* tolua_S) { int argc = 0; - cocos2d::RenderTexture* cobj = nullptr; + axis::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -82645,7 +82645,7 @@ int lua_cocos2dx_RenderTexture_setClearFlags(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -82658,7 +82658,7 @@ int lua_cocos2dx_RenderTexture_setClearFlags(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::backend::TargetBufferFlags arg0; + axis::backend::TargetBufferFlags arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.RenderTexture:setClearFlags"); if(!ok) @@ -82683,7 +82683,7 @@ int lua_cocos2dx_RenderTexture_setClearFlags(lua_State* tolua_S) int lua_cocos2dx_RenderTexture_begin(lua_State* tolua_S) { int argc = 0; - cocos2d::RenderTexture* cobj = nullptr; + axis::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -82695,7 +82695,7 @@ int lua_cocos2dx_RenderTexture_begin(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -82730,7 +82730,7 @@ int lua_cocos2dx_RenderTexture_begin(lua_State* tolua_S) int lua_cocos2dx_RenderTexture_saveToFile(lua_State* tolua_S) { int argc = 0; - cocos2d::RenderTexture* cobj = nullptr; + axis::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -82739,7 +82739,7 @@ int lua_cocos2dx_RenderTexture_saveToFile(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -82754,7 +82754,7 @@ int lua_cocos2dx_RenderTexture_saveToFile(lua_State* tolua_S) ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.RenderTexture:saveToFile"); if (!ok) { break; } - cocos2d::Image::Format arg1; + axis::Image::Format arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.RenderTexture:saveToFile"); if (!ok) { break; } @@ -82770,7 +82770,7 @@ int lua_cocos2dx_RenderTexture_saveToFile(lua_State* tolua_S) ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.RenderTexture:saveToFile"); if (!ok) { break; } - cocos2d::Image::Format arg1; + axis::Image::Format arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.RenderTexture:saveToFile"); if (!ok) { break; } @@ -82790,7 +82790,7 @@ int lua_cocos2dx_RenderTexture_saveToFile(lua_State* tolua_S) ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.RenderTexture:saveToFile"); if (!ok) { break; } - cocos2d::Image::Format arg1; + axis::Image::Format arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.RenderTexture:saveToFile"); if (!ok) { break; } @@ -82798,7 +82798,7 @@ int lua_cocos2dx_RenderTexture_saveToFile(lua_State* tolua_S) ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.RenderTexture:saveToFile"); if (!ok) { break; } - std::function arg3; + std::function arg3; do { // Lambda binding for lua is not supported. assert(false); @@ -82850,7 +82850,7 @@ int lua_cocos2dx_RenderTexture_saveToFile(lua_State* tolua_S) ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.RenderTexture:saveToFile"); if (!ok) { break; } - std::function arg2; + std::function arg2; do { // Lambda binding for lua is not supported. assert(false); @@ -82877,7 +82877,7 @@ int lua_cocos2dx_RenderTexture_saveToFile(lua_State* tolua_S) int lua_cocos2dx_RenderTexture_setAutoDraw(lua_State* tolua_S) { int argc = 0; - cocos2d::RenderTexture* cobj = nullptr; + axis::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -82889,7 +82889,7 @@ int lua_cocos2dx_RenderTexture_setAutoDraw(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -82927,7 +82927,7 @@ int lua_cocos2dx_RenderTexture_setAutoDraw(lua_State* tolua_S) int lua_cocos2dx_RenderTexture_setClearColor(lua_State* tolua_S) { int argc = 0; - cocos2d::RenderTexture* cobj = nullptr; + axis::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -82939,7 +82939,7 @@ int lua_cocos2dx_RenderTexture_setClearColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -82952,7 +82952,7 @@ int lua_cocos2dx_RenderTexture_setClearColor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Color4F arg0; + axis::Color4F arg0; ok &=luaval_to_color4f(tolua_S, 2, &arg0, "cc.RenderTexture:setClearColor"); if(!ok) @@ -82977,7 +82977,7 @@ int lua_cocos2dx_RenderTexture_setClearColor(lua_State* tolua_S) int lua_cocos2dx_RenderTexture_end(lua_State* tolua_S) { int argc = 0; - cocos2d::RenderTexture* cobj = nullptr; + axis::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -82989,7 +82989,7 @@ int lua_cocos2dx_RenderTexture_end(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -83024,7 +83024,7 @@ int lua_cocos2dx_RenderTexture_end(lua_State* tolua_S) int lua_cocos2dx_RenderTexture_beginWithClear(lua_State* tolua_S) { int argc = 0; - cocos2d::RenderTexture* cobj = nullptr; + axis::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -83033,7 +83033,7 @@ int lua_cocos2dx_RenderTexture_beginWithClear(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -83139,7 +83139,7 @@ int lua_cocos2dx_RenderTexture_beginWithClear(lua_State* tolua_S) int lua_cocos2dx_RenderTexture_clearDepth(lua_State* tolua_S) { int argc = 0; - cocos2d::RenderTexture* cobj = nullptr; + axis::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -83151,7 +83151,7 @@ int lua_cocos2dx_RenderTexture_clearDepth(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -83189,7 +83189,7 @@ int lua_cocos2dx_RenderTexture_clearDepth(lua_State* tolua_S) int lua_cocos2dx_RenderTexture_getClearColor(lua_State* tolua_S) { int argc = 0; - cocos2d::RenderTexture* cobj = nullptr; + axis::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -83201,7 +83201,7 @@ int lua_cocos2dx_RenderTexture_getClearColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -83219,7 +83219,7 @@ int lua_cocos2dx_RenderTexture_getClearColor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RenderTexture_getClearColor'", nullptr); return 0; } - const cocos2d::Color4F& ret = cobj->getClearColor(); + const axis::Color4F& ret = cobj->getClearColor(); color4f_to_luaval(tolua_S, ret); return 1; } @@ -83236,7 +83236,7 @@ int lua_cocos2dx_RenderTexture_getClearColor(lua_State* tolua_S) int lua_cocos2dx_RenderTexture_clear(lua_State* tolua_S) { int argc = 0; - cocos2d::RenderTexture* cobj = nullptr; + axis::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -83248,7 +83248,7 @@ int lua_cocos2dx_RenderTexture_clear(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -83295,7 +83295,7 @@ int lua_cocos2dx_RenderTexture_clear(lua_State* tolua_S) int lua_cocos2dx_RenderTexture_isSharedRenderTarget(lua_State* tolua_S) { int argc = 0; - cocos2d::RenderTexture* cobj = nullptr; + axis::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -83307,7 +83307,7 @@ int lua_cocos2dx_RenderTexture_isSharedRenderTarget(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -83342,7 +83342,7 @@ int lua_cocos2dx_RenderTexture_isSharedRenderTarget(lua_State* tolua_S) int lua_cocos2dx_RenderTexture_getClearFlags(lua_State* tolua_S) { int argc = 0; - cocos2d::RenderTexture* cobj = nullptr; + axis::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -83354,7 +83354,7 @@ int lua_cocos2dx_RenderTexture_getClearFlags(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -83389,7 +83389,7 @@ int lua_cocos2dx_RenderTexture_getClearFlags(lua_State* tolua_S) int lua_cocos2dx_RenderTexture_setClearDepth(lua_State* tolua_S) { int argc = 0; - cocos2d::RenderTexture* cobj = nullptr; + axis::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -83401,7 +83401,7 @@ int lua_cocos2dx_RenderTexture_setClearDepth(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -83439,7 +83439,7 @@ int lua_cocos2dx_RenderTexture_setClearDepth(lua_State* tolua_S) int lua_cocos2dx_RenderTexture_initWithWidthAndHeight(lua_State* tolua_S) { int argc = 0; - cocos2d::RenderTexture* cobj = nullptr; + axis::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -83448,7 +83448,7 @@ int lua_cocos2dx_RenderTexture_initWithWidthAndHeight(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.RenderTexture",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::RenderTexture*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -83467,11 +83467,11 @@ int lua_cocos2dx_RenderTexture_initWithWidthAndHeight(lua_State* tolua_S) ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.RenderTexture:initWithWidthAndHeight"); if (!ok) { break; } - cocos2d::backend::PixelFormat arg2; + axis::backend::PixelFormat arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.RenderTexture:initWithWidthAndHeight"); if (!ok) { break; } - cocos2d::backend::PixelFormat arg3; + axis::backend::PixelFormat arg3; ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.RenderTexture:initWithWidthAndHeight"); if (!ok) { break; } @@ -83491,11 +83491,11 @@ int lua_cocos2dx_RenderTexture_initWithWidthAndHeight(lua_State* tolua_S) ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.RenderTexture:initWithWidthAndHeight"); if (!ok) { break; } - cocos2d::backend::PixelFormat arg2; + axis::backend::PixelFormat arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.RenderTexture:initWithWidthAndHeight"); if (!ok) { break; } - cocos2d::backend::PixelFormat arg3; + axis::backend::PixelFormat arg3; ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.RenderTexture:initWithWidthAndHeight"); if (!ok) { break; } @@ -83519,7 +83519,7 @@ int lua_cocos2dx_RenderTexture_initWithWidthAndHeight(lua_State* tolua_S) ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.RenderTexture:initWithWidthAndHeight"); if (!ok) { break; } - cocos2d::backend::PixelFormat arg2; + axis::backend::PixelFormat arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.RenderTexture:initWithWidthAndHeight"); if (!ok) { break; } @@ -83539,7 +83539,7 @@ int lua_cocos2dx_RenderTexture_initWithWidthAndHeight(lua_State* tolua_S) ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.RenderTexture:initWithWidthAndHeight"); if (!ok) { break; } - cocos2d::backend::PixelFormat arg2; + axis::backend::PixelFormat arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.RenderTexture:initWithWidthAndHeight"); if (!ok) { break; } @@ -83587,11 +83587,11 @@ int lua_cocos2dx_RenderTexture_create(lua_State* tolua_S) int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.RenderTexture:create"); if (!ok) { break; } - cocos2d::backend::PixelFormat arg2; + axis::backend::PixelFormat arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.RenderTexture:create"); if (!ok) { break; } - cocos2d::RenderTexture* ret = cocos2d::RenderTexture::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.RenderTexture",(cocos2d::RenderTexture*)ret); + axis::RenderTexture* ret = axis::RenderTexture::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.RenderTexture",(axis::RenderTexture*)ret); return 1; } } while (0); @@ -83606,14 +83606,14 @@ int lua_cocos2dx_RenderTexture_create(lua_State* tolua_S) int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.RenderTexture:create"); if (!ok) { break; } - cocos2d::backend::PixelFormat arg2; + axis::backend::PixelFormat arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.RenderTexture:create"); if (!ok) { break; } bool arg3; ok &= luaval_to_boolean(tolua_S, 5,&arg3, "cc.RenderTexture:create"); if (!ok) { break; } - cocos2d::RenderTexture* ret = cocos2d::RenderTexture::create(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.RenderTexture",(cocos2d::RenderTexture*)ret); + axis::RenderTexture* ret = axis::RenderTexture::create(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.RenderTexture",(axis::RenderTexture*)ret); return 1; } } while (0); @@ -83628,14 +83628,14 @@ int lua_cocos2dx_RenderTexture_create(lua_State* tolua_S) int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.RenderTexture:create"); if (!ok) { break; } - cocos2d::backend::PixelFormat arg2; + axis::backend::PixelFormat arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.RenderTexture:create"); if (!ok) { break; } - cocos2d::backend::PixelFormat arg3; + axis::backend::PixelFormat arg3; ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.RenderTexture:create"); if (!ok) { break; } - cocos2d::RenderTexture* ret = cocos2d::RenderTexture::create(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.RenderTexture",(cocos2d::RenderTexture*)ret); + axis::RenderTexture* ret = axis::RenderTexture::create(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.RenderTexture",(axis::RenderTexture*)ret); return 1; } } while (0); @@ -83650,17 +83650,17 @@ int lua_cocos2dx_RenderTexture_create(lua_State* tolua_S) int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.RenderTexture:create"); if (!ok) { break; } - cocos2d::backend::PixelFormat arg2; + axis::backend::PixelFormat arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.RenderTexture:create"); if (!ok) { break; } - cocos2d::backend::PixelFormat arg3; + axis::backend::PixelFormat arg3; ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "cc.RenderTexture:create"); if (!ok) { break; } bool arg4; ok &= luaval_to_boolean(tolua_S, 6,&arg4, "cc.RenderTexture:create"); if (!ok) { break; } - cocos2d::RenderTexture* ret = cocos2d::RenderTexture::create(arg0, arg1, arg2, arg3, arg4); - object_to_luaval(tolua_S, "cc.RenderTexture",(cocos2d::RenderTexture*)ret); + axis::RenderTexture* ret = axis::RenderTexture::create(arg0, arg1, arg2, arg3, arg4); + object_to_luaval(tolua_S, "cc.RenderTexture",(axis::RenderTexture*)ret); return 1; } } while (0); @@ -83675,8 +83675,8 @@ int lua_cocos2dx_RenderTexture_create(lua_State* tolua_S) int arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.RenderTexture:create"); if (!ok) { break; } - cocos2d::RenderTexture* ret = cocos2d::RenderTexture::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.RenderTexture",(cocos2d::RenderTexture*)ret); + axis::RenderTexture* ret = axis::RenderTexture::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.RenderTexture",(axis::RenderTexture*)ret); return 1; } } while (0); @@ -83694,8 +83694,8 @@ int lua_cocos2dx_RenderTexture_create(lua_State* tolua_S) bool arg2; ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.RenderTexture:create"); if (!ok) { break; } - cocos2d::RenderTexture* ret = cocos2d::RenderTexture::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.RenderTexture",(cocos2d::RenderTexture*)ret); + axis::RenderTexture* ret = axis::RenderTexture::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.RenderTexture",(axis::RenderTexture*)ret); return 1; } } while (0); @@ -83711,7 +83711,7 @@ int lua_cocos2dx_RenderTexture_create(lua_State* tolua_S) int lua_cocos2dx_RenderTexture_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::RenderTexture* cobj = nullptr; + axis::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -83728,7 +83728,7 @@ int lua_cocos2dx_RenderTexture_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RenderTexture_constructor'", nullptr); return 0; } - cobj = new cocos2d::RenderTexture(); + cobj = new axis::RenderTexture(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -83785,7 +83785,7 @@ int lua_register_cocos2dx_RenderTexture(lua_State* tolua_S) tolua_function(tolua_S,"initWithWidthAndHeight",lua_cocos2dx_RenderTexture_initWithWidthAndHeight); tolua_function(tolua_S,"create", lua_cocos2dx_RenderTexture_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::RenderTexture).name(); // rtti is literal storage + auto typeName = typeid(axis::RenderTexture).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.RenderTexture"; g_typeCast[typeName] = "cc.RenderTexture"; return 1; @@ -83794,7 +83794,7 @@ int lua_register_cocos2dx_RenderTexture(lua_State* tolua_S) int lua_cocos2dx_TransitionEaseScene_easeActionWithAction(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionEaseScene* cobj = nullptr; + axis::TransitionEaseScene* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -83806,7 +83806,7 @@ int lua_cocos2dx_TransitionEaseScene_easeActionWithAction(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TransitionEaseScene",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TransitionEaseScene*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TransitionEaseScene*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -83819,16 +83819,16 @@ int lua_cocos2dx_TransitionEaseScene_easeActionWithAction(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ActionInterval* arg0; + axis::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.TransitionEaseScene:easeActionWithAction"); + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.TransitionEaseScene:easeActionWithAction"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionEaseScene_easeActionWithAction'", nullptr); return 0; } - cocos2d::ActionInterval* ret = cobj->easeActionWithAction(arg0); - object_to_luaval(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); + axis::ActionInterval* ret = cobj->easeActionWithAction(arg0); + object_to_luaval(tolua_S, "cc.ActionInterval",(axis::ActionInterval*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionEaseScene:easeActionWithAction",argc, 1); @@ -83855,7 +83855,7 @@ int lua_register_cocos2dx_TransitionEaseScene(lua_State* tolua_S) tolua_beginmodule(tolua_S,"TransitionEaseScene"); tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionEaseScene_easeActionWithAction); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TransitionEaseScene).name(); // rtti is literal storage + auto typeName = typeid(axis::TransitionEaseScene).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TransitionEaseScene"; g_typeCast[typeName] = "cc.TransitionEaseScene"; return 1; @@ -83864,7 +83864,7 @@ int lua_register_cocos2dx_TransitionEaseScene(lua_State* tolua_S) int lua_cocos2dx_TransitionScene_getInScene(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionScene* cobj = nullptr; + axis::TransitionScene* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -83876,7 +83876,7 @@ int lua_cocos2dx_TransitionScene_getInScene(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TransitionScene",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TransitionScene*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TransitionScene*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -83894,8 +83894,8 @@ int lua_cocos2dx_TransitionScene_getInScene(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionScene_getInScene'", nullptr); return 0; } - cocos2d::Scene* ret = cobj->getInScene(); - object_to_luaval(tolua_S, "cc.Scene",(cocos2d::Scene*)ret); + axis::Scene* ret = cobj->getInScene(); + object_to_luaval(tolua_S, "cc.Scene",(axis::Scene*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionScene:getInScene",argc, 0); @@ -83911,7 +83911,7 @@ int lua_cocos2dx_TransitionScene_getInScene(lua_State* tolua_S) int lua_cocos2dx_TransitionScene_finish(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionScene* cobj = nullptr; + axis::TransitionScene* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -83923,7 +83923,7 @@ int lua_cocos2dx_TransitionScene_finish(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TransitionScene",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TransitionScene*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TransitionScene*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -83958,7 +83958,7 @@ int lua_cocos2dx_TransitionScene_finish(lua_State* tolua_S) int lua_cocos2dx_TransitionScene_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionScene* cobj = nullptr; + axis::TransitionScene* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -83970,7 +83970,7 @@ int lua_cocos2dx_TransitionScene_initWithDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TransitionScene",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TransitionScene*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TransitionScene*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -83984,11 +83984,11 @@ int lua_cocos2dx_TransitionScene_initWithDuration(lua_State* tolua_S) if (argc == 2) { double arg0; - cocos2d::Scene* arg1; + axis::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionScene:initWithDuration"); - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionScene:initWithDuration"); + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionScene:initWithDuration"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionScene_initWithDuration'", nullptr); @@ -84011,7 +84011,7 @@ int lua_cocos2dx_TransitionScene_initWithDuration(lua_State* tolua_S) int lua_cocos2dx_TransitionScene_getDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionScene* cobj = nullptr; + axis::TransitionScene* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -84023,7 +84023,7 @@ int lua_cocos2dx_TransitionScene_getDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TransitionScene",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TransitionScene*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TransitionScene*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -84058,7 +84058,7 @@ int lua_cocos2dx_TransitionScene_getDuration(lua_State* tolua_S) int lua_cocos2dx_TransitionScene_hideOutShowIn(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionScene* cobj = nullptr; + axis::TransitionScene* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -84070,7 +84070,7 @@ int lua_cocos2dx_TransitionScene_hideOutShowIn(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TransitionScene",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TransitionScene*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TransitionScene*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -84120,16 +84120,16 @@ int lua_cocos2dx_TransitionScene_create(lua_State* tolua_S) if (argc == 2) { double arg0; - cocos2d::Scene* arg1; + axis::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionScene:create"); - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionScene:create"); + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionScene:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionScene_create'", nullptr); return 0; } - cocos2d::TransitionScene* ret = cocos2d::TransitionScene::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.TransitionScene",(cocos2d::TransitionScene*)ret); + axis::TransitionScene* ret = axis::TransitionScene::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.TransitionScene",(axis::TransitionScene*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionScene:create",argc, 2); @@ -84143,7 +84143,7 @@ int lua_cocos2dx_TransitionScene_create(lua_State* tolua_S) int lua_cocos2dx_TransitionScene_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionScene* cobj = nullptr; + axis::TransitionScene* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -84160,7 +84160,7 @@ int lua_cocos2dx_TransitionScene_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionScene_constructor'", nullptr); return 0; } - cobj = new cocos2d::TransitionScene(); + cobj = new axis::TransitionScene(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -84197,7 +84197,7 @@ int lua_register_cocos2dx_TransitionScene(lua_State* tolua_S) tolua_function(tolua_S,"hideOutShowIn",lua_cocos2dx_TransitionScene_hideOutShowIn); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionScene_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TransitionScene).name(); // rtti is literal storage + auto typeName = typeid(axis::TransitionScene).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TransitionScene"; g_typeCast[typeName] = "cc.TransitionScene"; return 1; @@ -84206,7 +84206,7 @@ int lua_register_cocos2dx_TransitionScene(lua_State* tolua_S) int lua_cocos2dx_TransitionSceneOriented_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionSceneOriented* cobj = nullptr; + axis::TransitionSceneOriented* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -84218,7 +84218,7 @@ int lua_cocos2dx_TransitionSceneOriented_initWithDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TransitionSceneOriented",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TransitionSceneOriented*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TransitionSceneOriented*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -84232,12 +84232,12 @@ int lua_cocos2dx_TransitionSceneOriented_initWithDuration(lua_State* tolua_S) if (argc == 3) { double arg0; - cocos2d::Scene* arg1; - cocos2d::TransitionScene::Orientation arg2; + axis::Scene* arg1; + axis::TransitionScene::Orientation arg2; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionSceneOriented:initWithDuration"); - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionSceneOriented:initWithDuration"); + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionSceneOriented:initWithDuration"); ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.TransitionSceneOriented:initWithDuration"); if(!ok) @@ -84277,18 +84277,18 @@ int lua_cocos2dx_TransitionSceneOriented_create(lua_State* tolua_S) if (argc == 3) { double arg0; - cocos2d::Scene* arg1; - cocos2d::TransitionScene::Orientation arg2; + axis::Scene* arg1; + axis::TransitionScene::Orientation arg2; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionSceneOriented:create"); - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionSceneOriented:create"); + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionSceneOriented:create"); ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.TransitionSceneOriented:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSceneOriented_create'", nullptr); return 0; } - cocos2d::TransitionSceneOriented* ret = cocos2d::TransitionSceneOriented::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.TransitionSceneOriented",(cocos2d::TransitionSceneOriented*)ret); + axis::TransitionSceneOriented* ret = axis::TransitionSceneOriented::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.TransitionSceneOriented",(axis::TransitionSceneOriented*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionSceneOriented:create",argc, 3); @@ -84302,7 +84302,7 @@ int lua_cocos2dx_TransitionSceneOriented_create(lua_State* tolua_S) int lua_cocos2dx_TransitionSceneOriented_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionSceneOriented* cobj = nullptr; + axis::TransitionSceneOriented* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -84319,7 +84319,7 @@ int lua_cocos2dx_TransitionSceneOriented_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSceneOriented_constructor'", nullptr); return 0; } - cobj = new cocos2d::TransitionSceneOriented(); + cobj = new axis::TransitionSceneOriented(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -84352,7 +84352,7 @@ int lua_register_cocos2dx_TransitionSceneOriented(lua_State* tolua_S) tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_TransitionSceneOriented_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSceneOriented_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TransitionSceneOriented).name(); // rtti is literal storage + auto typeName = typeid(axis::TransitionSceneOriented).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TransitionSceneOriented"; g_typeCast[typeName] = "cc.TransitionSceneOriented"; return 1; @@ -84376,16 +84376,16 @@ int lua_cocos2dx_TransitionRotoZoom_create(lua_State* tolua_S) if (argc == 2) { double arg0; - cocos2d::Scene* arg1; + axis::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionRotoZoom:create"); - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionRotoZoom:create"); + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionRotoZoom:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionRotoZoom_create'", nullptr); return 0; } - cocos2d::TransitionRotoZoom* ret = cocos2d::TransitionRotoZoom::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.TransitionRotoZoom",(cocos2d::TransitionRotoZoom*)ret); + axis::TransitionRotoZoom* ret = axis::TransitionRotoZoom::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.TransitionRotoZoom",(axis::TransitionRotoZoom*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionRotoZoom:create",argc, 2); @@ -84399,7 +84399,7 @@ int lua_cocos2dx_TransitionRotoZoom_create(lua_State* tolua_S) int lua_cocos2dx_TransitionRotoZoom_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionRotoZoom* cobj = nullptr; + axis::TransitionRotoZoom* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -84416,7 +84416,7 @@ int lua_cocos2dx_TransitionRotoZoom_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionRotoZoom_constructor'", nullptr); return 0; } - cobj = new cocos2d::TransitionRotoZoom(); + cobj = new axis::TransitionRotoZoom(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -84448,7 +84448,7 @@ int lua_register_cocos2dx_TransitionRotoZoom(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_TransitionRotoZoom_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionRotoZoom_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TransitionRotoZoom).name(); // rtti is literal storage + auto typeName = typeid(axis::TransitionRotoZoom).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TransitionRotoZoom"; g_typeCast[typeName] = "cc.TransitionRotoZoom"; return 1; @@ -84472,16 +84472,16 @@ int lua_cocos2dx_TransitionJumpZoom_create(lua_State* tolua_S) if (argc == 2) { double arg0; - cocos2d::Scene* arg1; + axis::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionJumpZoom:create"); - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionJumpZoom:create"); + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionJumpZoom:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionJumpZoom_create'", nullptr); return 0; } - cocos2d::TransitionJumpZoom* ret = cocos2d::TransitionJumpZoom::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.TransitionJumpZoom",(cocos2d::TransitionJumpZoom*)ret); + axis::TransitionJumpZoom* ret = axis::TransitionJumpZoom::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.TransitionJumpZoom",(axis::TransitionJumpZoom*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionJumpZoom:create",argc, 2); @@ -84495,7 +84495,7 @@ int lua_cocos2dx_TransitionJumpZoom_create(lua_State* tolua_S) int lua_cocos2dx_TransitionJumpZoom_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionJumpZoom* cobj = nullptr; + axis::TransitionJumpZoom* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -84512,7 +84512,7 @@ int lua_cocos2dx_TransitionJumpZoom_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionJumpZoom_constructor'", nullptr); return 0; } - cobj = new cocos2d::TransitionJumpZoom(); + cobj = new axis::TransitionJumpZoom(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -84544,7 +84544,7 @@ int lua_register_cocos2dx_TransitionJumpZoom(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_TransitionJumpZoom_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionJumpZoom_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TransitionJumpZoom).name(); // rtti is literal storage + auto typeName = typeid(axis::TransitionJumpZoom).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TransitionJumpZoom"; g_typeCast[typeName] = "cc.TransitionJumpZoom"; return 1; @@ -84553,7 +84553,7 @@ int lua_register_cocos2dx_TransitionJumpZoom(lua_State* tolua_S) int lua_cocos2dx_TransitionMoveInL_action(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionMoveInL* cobj = nullptr; + axis::TransitionMoveInL* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -84565,7 +84565,7 @@ int lua_cocos2dx_TransitionMoveInL_action(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TransitionMoveInL",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TransitionMoveInL*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TransitionMoveInL*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -84583,8 +84583,8 @@ int lua_cocos2dx_TransitionMoveInL_action(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionMoveInL_action'", nullptr); return 0; } - cocos2d::ActionInterval* ret = cobj->action(); - object_to_luaval(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); + axis::ActionInterval* ret = cobj->action(); + object_to_luaval(tolua_S, "cc.ActionInterval",(axis::ActionInterval*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionMoveInL:action",argc, 0); @@ -84600,7 +84600,7 @@ int lua_cocos2dx_TransitionMoveInL_action(lua_State* tolua_S) int lua_cocos2dx_TransitionMoveInL_easeActionWithAction(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionMoveInL* cobj = nullptr; + axis::TransitionMoveInL* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -84612,7 +84612,7 @@ int lua_cocos2dx_TransitionMoveInL_easeActionWithAction(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TransitionMoveInL",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TransitionMoveInL*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TransitionMoveInL*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -84625,16 +84625,16 @@ int lua_cocos2dx_TransitionMoveInL_easeActionWithAction(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ActionInterval* arg0; + axis::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.TransitionMoveInL:easeActionWithAction"); + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.TransitionMoveInL:easeActionWithAction"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionMoveInL_easeActionWithAction'", nullptr); return 0; } - cocos2d::ActionInterval* ret = cobj->easeActionWithAction(arg0); - object_to_luaval(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); + axis::ActionInterval* ret = cobj->easeActionWithAction(arg0); + object_to_luaval(tolua_S, "cc.ActionInterval",(axis::ActionInterval*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionMoveInL:easeActionWithAction",argc, 1); @@ -84665,16 +84665,16 @@ int lua_cocos2dx_TransitionMoveInL_create(lua_State* tolua_S) if (argc == 2) { double arg0; - cocos2d::Scene* arg1; + axis::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionMoveInL:create"); - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionMoveInL:create"); + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionMoveInL:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionMoveInL_create'", nullptr); return 0; } - cocos2d::TransitionMoveInL* ret = cocos2d::TransitionMoveInL::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.TransitionMoveInL",(cocos2d::TransitionMoveInL*)ret); + axis::TransitionMoveInL* ret = axis::TransitionMoveInL::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.TransitionMoveInL",(axis::TransitionMoveInL*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionMoveInL:create",argc, 2); @@ -84688,7 +84688,7 @@ int lua_cocos2dx_TransitionMoveInL_create(lua_State* tolua_S) int lua_cocos2dx_TransitionMoveInL_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionMoveInL* cobj = nullptr; + axis::TransitionMoveInL* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -84705,7 +84705,7 @@ int lua_cocos2dx_TransitionMoveInL_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionMoveInL_constructor'", nullptr); return 0; } - cobj = new cocos2d::TransitionMoveInL(); + cobj = new axis::TransitionMoveInL(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -84739,7 +84739,7 @@ int lua_register_cocos2dx_TransitionMoveInL(lua_State* tolua_S) tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionMoveInL_easeActionWithAction); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionMoveInL_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TransitionMoveInL).name(); // rtti is literal storage + auto typeName = typeid(axis::TransitionMoveInL).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TransitionMoveInL"; g_typeCast[typeName] = "cc.TransitionMoveInL"; return 1; @@ -84763,16 +84763,16 @@ int lua_cocos2dx_TransitionMoveInR_create(lua_State* tolua_S) if (argc == 2) { double arg0; - cocos2d::Scene* arg1; + axis::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionMoveInR:create"); - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionMoveInR:create"); + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionMoveInR:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionMoveInR_create'", nullptr); return 0; } - cocos2d::TransitionMoveInR* ret = cocos2d::TransitionMoveInR::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.TransitionMoveInR",(cocos2d::TransitionMoveInR*)ret); + axis::TransitionMoveInR* ret = axis::TransitionMoveInR::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.TransitionMoveInR",(axis::TransitionMoveInR*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionMoveInR:create",argc, 2); @@ -84786,7 +84786,7 @@ int lua_cocos2dx_TransitionMoveInR_create(lua_State* tolua_S) int lua_cocos2dx_TransitionMoveInR_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionMoveInR* cobj = nullptr; + axis::TransitionMoveInR* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -84803,7 +84803,7 @@ int lua_cocos2dx_TransitionMoveInR_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionMoveInR_constructor'", nullptr); return 0; } - cobj = new cocos2d::TransitionMoveInR(); + cobj = new axis::TransitionMoveInR(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -84835,7 +84835,7 @@ int lua_register_cocos2dx_TransitionMoveInR(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_TransitionMoveInR_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionMoveInR_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TransitionMoveInR).name(); // rtti is literal storage + auto typeName = typeid(axis::TransitionMoveInR).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TransitionMoveInR"; g_typeCast[typeName] = "cc.TransitionMoveInR"; return 1; @@ -84859,16 +84859,16 @@ int lua_cocos2dx_TransitionMoveInT_create(lua_State* tolua_S) if (argc == 2) { double arg0; - cocos2d::Scene* arg1; + axis::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionMoveInT:create"); - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionMoveInT:create"); + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionMoveInT:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionMoveInT_create'", nullptr); return 0; } - cocos2d::TransitionMoveInT* ret = cocos2d::TransitionMoveInT::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.TransitionMoveInT",(cocos2d::TransitionMoveInT*)ret); + axis::TransitionMoveInT* ret = axis::TransitionMoveInT::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.TransitionMoveInT",(axis::TransitionMoveInT*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionMoveInT:create",argc, 2); @@ -84882,7 +84882,7 @@ int lua_cocos2dx_TransitionMoveInT_create(lua_State* tolua_S) int lua_cocos2dx_TransitionMoveInT_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionMoveInT* cobj = nullptr; + axis::TransitionMoveInT* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -84899,7 +84899,7 @@ int lua_cocos2dx_TransitionMoveInT_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionMoveInT_constructor'", nullptr); return 0; } - cobj = new cocos2d::TransitionMoveInT(); + cobj = new axis::TransitionMoveInT(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -84931,7 +84931,7 @@ int lua_register_cocos2dx_TransitionMoveInT(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_TransitionMoveInT_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionMoveInT_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TransitionMoveInT).name(); // rtti is literal storage + auto typeName = typeid(axis::TransitionMoveInT).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TransitionMoveInT"; g_typeCast[typeName] = "cc.TransitionMoveInT"; return 1; @@ -84955,16 +84955,16 @@ int lua_cocos2dx_TransitionMoveInB_create(lua_State* tolua_S) if (argc == 2) { double arg0; - cocos2d::Scene* arg1; + axis::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionMoveInB:create"); - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionMoveInB:create"); + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionMoveInB:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionMoveInB_create'", nullptr); return 0; } - cocos2d::TransitionMoveInB* ret = cocos2d::TransitionMoveInB::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.TransitionMoveInB",(cocos2d::TransitionMoveInB*)ret); + axis::TransitionMoveInB* ret = axis::TransitionMoveInB::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.TransitionMoveInB",(axis::TransitionMoveInB*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionMoveInB:create",argc, 2); @@ -84978,7 +84978,7 @@ int lua_cocos2dx_TransitionMoveInB_create(lua_State* tolua_S) int lua_cocos2dx_TransitionMoveInB_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionMoveInB* cobj = nullptr; + axis::TransitionMoveInB* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -84995,7 +84995,7 @@ int lua_cocos2dx_TransitionMoveInB_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionMoveInB_constructor'", nullptr); return 0; } - cobj = new cocos2d::TransitionMoveInB(); + cobj = new axis::TransitionMoveInB(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -85027,7 +85027,7 @@ int lua_register_cocos2dx_TransitionMoveInB(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_TransitionMoveInB_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionMoveInB_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TransitionMoveInB).name(); // rtti is literal storage + auto typeName = typeid(axis::TransitionMoveInB).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TransitionMoveInB"; g_typeCast[typeName] = "cc.TransitionMoveInB"; return 1; @@ -85036,7 +85036,7 @@ int lua_register_cocos2dx_TransitionMoveInB(lua_State* tolua_S) int lua_cocos2dx_TransitionSlideInL_action(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionSlideInL* cobj = nullptr; + axis::TransitionSlideInL* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -85048,7 +85048,7 @@ int lua_cocos2dx_TransitionSlideInL_action(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TransitionSlideInL",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TransitionSlideInL*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TransitionSlideInL*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -85066,8 +85066,8 @@ int lua_cocos2dx_TransitionSlideInL_action(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSlideInL_action'", nullptr); return 0; } - cocos2d::ActionInterval* ret = cobj->action(); - object_to_luaval(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); + axis::ActionInterval* ret = cobj->action(); + object_to_luaval(tolua_S, "cc.ActionInterval",(axis::ActionInterval*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionSlideInL:action",argc, 0); @@ -85083,7 +85083,7 @@ int lua_cocos2dx_TransitionSlideInL_action(lua_State* tolua_S) int lua_cocos2dx_TransitionSlideInL_easeActionWithAction(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionSlideInL* cobj = nullptr; + axis::TransitionSlideInL* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -85095,7 +85095,7 @@ int lua_cocos2dx_TransitionSlideInL_easeActionWithAction(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TransitionSlideInL",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TransitionSlideInL*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TransitionSlideInL*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -85108,16 +85108,16 @@ int lua_cocos2dx_TransitionSlideInL_easeActionWithAction(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ActionInterval* arg0; + axis::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.TransitionSlideInL:easeActionWithAction"); + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.TransitionSlideInL:easeActionWithAction"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSlideInL_easeActionWithAction'", nullptr); return 0; } - cocos2d::ActionInterval* ret = cobj->easeActionWithAction(arg0); - object_to_luaval(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); + axis::ActionInterval* ret = cobj->easeActionWithAction(arg0); + object_to_luaval(tolua_S, "cc.ActionInterval",(axis::ActionInterval*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionSlideInL:easeActionWithAction",argc, 1); @@ -85148,16 +85148,16 @@ int lua_cocos2dx_TransitionSlideInL_create(lua_State* tolua_S) if (argc == 2) { double arg0; - cocos2d::Scene* arg1; + axis::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionSlideInL:create"); - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionSlideInL:create"); + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionSlideInL:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSlideInL_create'", nullptr); return 0; } - cocos2d::TransitionSlideInL* ret = cocos2d::TransitionSlideInL::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.TransitionSlideInL",(cocos2d::TransitionSlideInL*)ret); + axis::TransitionSlideInL* ret = axis::TransitionSlideInL::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.TransitionSlideInL",(axis::TransitionSlideInL*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionSlideInL:create",argc, 2); @@ -85171,7 +85171,7 @@ int lua_cocos2dx_TransitionSlideInL_create(lua_State* tolua_S) int lua_cocos2dx_TransitionSlideInL_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionSlideInL* cobj = nullptr; + axis::TransitionSlideInL* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -85188,7 +85188,7 @@ int lua_cocos2dx_TransitionSlideInL_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSlideInL_constructor'", nullptr); return 0; } - cobj = new cocos2d::TransitionSlideInL(); + cobj = new axis::TransitionSlideInL(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -85222,7 +85222,7 @@ int lua_register_cocos2dx_TransitionSlideInL(lua_State* tolua_S) tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionSlideInL_easeActionWithAction); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSlideInL_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TransitionSlideInL).name(); // rtti is literal storage + auto typeName = typeid(axis::TransitionSlideInL).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TransitionSlideInL"; g_typeCast[typeName] = "cc.TransitionSlideInL"; return 1; @@ -85246,16 +85246,16 @@ int lua_cocos2dx_TransitionSlideInR_create(lua_State* tolua_S) if (argc == 2) { double arg0; - cocos2d::Scene* arg1; + axis::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionSlideInR:create"); - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionSlideInR:create"); + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionSlideInR:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSlideInR_create'", nullptr); return 0; } - cocos2d::TransitionSlideInR* ret = cocos2d::TransitionSlideInR::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.TransitionSlideInR",(cocos2d::TransitionSlideInR*)ret); + axis::TransitionSlideInR* ret = axis::TransitionSlideInR::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.TransitionSlideInR",(axis::TransitionSlideInR*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionSlideInR:create",argc, 2); @@ -85269,7 +85269,7 @@ int lua_cocos2dx_TransitionSlideInR_create(lua_State* tolua_S) int lua_cocos2dx_TransitionSlideInR_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionSlideInR* cobj = nullptr; + axis::TransitionSlideInR* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -85286,7 +85286,7 @@ int lua_cocos2dx_TransitionSlideInR_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSlideInR_constructor'", nullptr); return 0; } - cobj = new cocos2d::TransitionSlideInR(); + cobj = new axis::TransitionSlideInR(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -85318,7 +85318,7 @@ int lua_register_cocos2dx_TransitionSlideInR(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_TransitionSlideInR_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSlideInR_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TransitionSlideInR).name(); // rtti is literal storage + auto typeName = typeid(axis::TransitionSlideInR).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TransitionSlideInR"; g_typeCast[typeName] = "cc.TransitionSlideInR"; return 1; @@ -85342,16 +85342,16 @@ int lua_cocos2dx_TransitionSlideInB_create(lua_State* tolua_S) if (argc == 2) { double arg0; - cocos2d::Scene* arg1; + axis::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionSlideInB:create"); - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionSlideInB:create"); + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionSlideInB:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSlideInB_create'", nullptr); return 0; } - cocos2d::TransitionSlideInB* ret = cocos2d::TransitionSlideInB::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.TransitionSlideInB",(cocos2d::TransitionSlideInB*)ret); + axis::TransitionSlideInB* ret = axis::TransitionSlideInB::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.TransitionSlideInB",(axis::TransitionSlideInB*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionSlideInB:create",argc, 2); @@ -85365,7 +85365,7 @@ int lua_cocos2dx_TransitionSlideInB_create(lua_State* tolua_S) int lua_cocos2dx_TransitionSlideInB_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionSlideInB* cobj = nullptr; + axis::TransitionSlideInB* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -85382,7 +85382,7 @@ int lua_cocos2dx_TransitionSlideInB_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSlideInB_constructor'", nullptr); return 0; } - cobj = new cocos2d::TransitionSlideInB(); + cobj = new axis::TransitionSlideInB(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -85414,7 +85414,7 @@ int lua_register_cocos2dx_TransitionSlideInB(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_TransitionSlideInB_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSlideInB_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TransitionSlideInB).name(); // rtti is literal storage + auto typeName = typeid(axis::TransitionSlideInB).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TransitionSlideInB"; g_typeCast[typeName] = "cc.TransitionSlideInB"; return 1; @@ -85438,16 +85438,16 @@ int lua_cocos2dx_TransitionSlideInT_create(lua_State* tolua_S) if (argc == 2) { double arg0; - cocos2d::Scene* arg1; + axis::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionSlideInT:create"); - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionSlideInT:create"); + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionSlideInT:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSlideInT_create'", nullptr); return 0; } - cocos2d::TransitionSlideInT* ret = cocos2d::TransitionSlideInT::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.TransitionSlideInT",(cocos2d::TransitionSlideInT*)ret); + axis::TransitionSlideInT* ret = axis::TransitionSlideInT::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.TransitionSlideInT",(axis::TransitionSlideInT*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionSlideInT:create",argc, 2); @@ -85461,7 +85461,7 @@ int lua_cocos2dx_TransitionSlideInT_create(lua_State* tolua_S) int lua_cocos2dx_TransitionSlideInT_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionSlideInT* cobj = nullptr; + axis::TransitionSlideInT* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -85478,7 +85478,7 @@ int lua_cocos2dx_TransitionSlideInT_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSlideInT_constructor'", nullptr); return 0; } - cobj = new cocos2d::TransitionSlideInT(); + cobj = new axis::TransitionSlideInT(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -85510,7 +85510,7 @@ int lua_register_cocos2dx_TransitionSlideInT(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_TransitionSlideInT_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSlideInT_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TransitionSlideInT).name(); // rtti is literal storage + auto typeName = typeid(axis::TransitionSlideInT).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TransitionSlideInT"; g_typeCast[typeName] = "cc.TransitionSlideInT"; return 1; @@ -85519,7 +85519,7 @@ int lua_register_cocos2dx_TransitionSlideInT(lua_State* tolua_S) int lua_cocos2dx_TransitionShrinkGrow_easeActionWithAction(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionShrinkGrow* cobj = nullptr; + axis::TransitionShrinkGrow* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -85531,7 +85531,7 @@ int lua_cocos2dx_TransitionShrinkGrow_easeActionWithAction(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TransitionShrinkGrow",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TransitionShrinkGrow*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TransitionShrinkGrow*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -85544,16 +85544,16 @@ int lua_cocos2dx_TransitionShrinkGrow_easeActionWithAction(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ActionInterval* arg0; + axis::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.TransitionShrinkGrow:easeActionWithAction"); + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.TransitionShrinkGrow:easeActionWithAction"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionShrinkGrow_easeActionWithAction'", nullptr); return 0; } - cocos2d::ActionInterval* ret = cobj->easeActionWithAction(arg0); - object_to_luaval(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); + axis::ActionInterval* ret = cobj->easeActionWithAction(arg0); + object_to_luaval(tolua_S, "cc.ActionInterval",(axis::ActionInterval*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionShrinkGrow:easeActionWithAction",argc, 1); @@ -85584,16 +85584,16 @@ int lua_cocos2dx_TransitionShrinkGrow_create(lua_State* tolua_S) if (argc == 2) { double arg0; - cocos2d::Scene* arg1; + axis::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionShrinkGrow:create"); - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionShrinkGrow:create"); + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionShrinkGrow:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionShrinkGrow_create'", nullptr); return 0; } - cocos2d::TransitionShrinkGrow* ret = cocos2d::TransitionShrinkGrow::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.TransitionShrinkGrow",(cocos2d::TransitionShrinkGrow*)ret); + axis::TransitionShrinkGrow* ret = axis::TransitionShrinkGrow::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.TransitionShrinkGrow",(axis::TransitionShrinkGrow*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionShrinkGrow:create",argc, 2); @@ -85607,7 +85607,7 @@ int lua_cocos2dx_TransitionShrinkGrow_create(lua_State* tolua_S) int lua_cocos2dx_TransitionShrinkGrow_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionShrinkGrow* cobj = nullptr; + axis::TransitionShrinkGrow* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -85624,7 +85624,7 @@ int lua_cocos2dx_TransitionShrinkGrow_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionShrinkGrow_constructor'", nullptr); return 0; } - cobj = new cocos2d::TransitionShrinkGrow(); + cobj = new axis::TransitionShrinkGrow(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -85657,7 +85657,7 @@ int lua_register_cocos2dx_TransitionShrinkGrow(lua_State* tolua_S) tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionShrinkGrow_easeActionWithAction); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionShrinkGrow_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TransitionShrinkGrow).name(); // rtti is literal storage + auto typeName = typeid(axis::TransitionShrinkGrow).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TransitionShrinkGrow"; g_typeCast[typeName] = "cc.TransitionShrinkGrow"; return 1; @@ -85684,11 +85684,11 @@ int lua_cocos2dx_TransitionFlipX_create(lua_State* tolua_S) double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionFlipX:create"); if (!ok) { break; } - cocos2d::Scene* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionFlipX:create"); + axis::Scene* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionFlipX:create"); if (!ok) { break; } - cocos2d::TransitionFlipX* ret = cocos2d::TransitionFlipX::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.TransitionFlipX",(cocos2d::TransitionFlipX*)ret); + axis::TransitionFlipX* ret = axis::TransitionFlipX::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.TransitionFlipX",(axis::TransitionFlipX*)ret); return 1; } } while (0); @@ -85700,14 +85700,14 @@ int lua_cocos2dx_TransitionFlipX_create(lua_State* tolua_S) double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionFlipX:create"); if (!ok) { break; } - cocos2d::Scene* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionFlipX:create"); + axis::Scene* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionFlipX:create"); if (!ok) { break; } - cocos2d::TransitionScene::Orientation arg2; + axis::TransitionScene::Orientation arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.TransitionFlipX:create"); if (!ok) { break; } - cocos2d::TransitionFlipX* ret = cocos2d::TransitionFlipX::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.TransitionFlipX",(cocos2d::TransitionFlipX*)ret); + axis::TransitionFlipX* ret = axis::TransitionFlipX::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.TransitionFlipX",(axis::TransitionFlipX*)ret); return 1; } } while (0); @@ -85723,7 +85723,7 @@ int lua_cocos2dx_TransitionFlipX_create(lua_State* tolua_S) int lua_cocos2dx_TransitionFlipX_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionFlipX* cobj = nullptr; + axis::TransitionFlipX* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -85740,7 +85740,7 @@ int lua_cocos2dx_TransitionFlipX_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionFlipX_constructor'", nullptr); return 0; } - cobj = new cocos2d::TransitionFlipX(); + cobj = new axis::TransitionFlipX(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -85772,7 +85772,7 @@ int lua_register_cocos2dx_TransitionFlipX(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_TransitionFlipX_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFlipX_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TransitionFlipX).name(); // rtti is literal storage + auto typeName = typeid(axis::TransitionFlipX).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TransitionFlipX"; g_typeCast[typeName] = "cc.TransitionFlipX"; return 1; @@ -85799,11 +85799,11 @@ int lua_cocos2dx_TransitionFlipY_create(lua_State* tolua_S) double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionFlipY:create"); if (!ok) { break; } - cocos2d::Scene* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionFlipY:create"); + axis::Scene* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionFlipY:create"); if (!ok) { break; } - cocos2d::TransitionFlipY* ret = cocos2d::TransitionFlipY::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.TransitionFlipY",(cocos2d::TransitionFlipY*)ret); + axis::TransitionFlipY* ret = axis::TransitionFlipY::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.TransitionFlipY",(axis::TransitionFlipY*)ret); return 1; } } while (0); @@ -85815,14 +85815,14 @@ int lua_cocos2dx_TransitionFlipY_create(lua_State* tolua_S) double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionFlipY:create"); if (!ok) { break; } - cocos2d::Scene* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionFlipY:create"); + axis::Scene* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionFlipY:create"); if (!ok) { break; } - cocos2d::TransitionScene::Orientation arg2; + axis::TransitionScene::Orientation arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.TransitionFlipY:create"); if (!ok) { break; } - cocos2d::TransitionFlipY* ret = cocos2d::TransitionFlipY::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.TransitionFlipY",(cocos2d::TransitionFlipY*)ret); + axis::TransitionFlipY* ret = axis::TransitionFlipY::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.TransitionFlipY",(axis::TransitionFlipY*)ret); return 1; } } while (0); @@ -85838,7 +85838,7 @@ int lua_cocos2dx_TransitionFlipY_create(lua_State* tolua_S) int lua_cocos2dx_TransitionFlipY_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionFlipY* cobj = nullptr; + axis::TransitionFlipY* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -85855,7 +85855,7 @@ int lua_cocos2dx_TransitionFlipY_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionFlipY_constructor'", nullptr); return 0; } - cobj = new cocos2d::TransitionFlipY(); + cobj = new axis::TransitionFlipY(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -85887,7 +85887,7 @@ int lua_register_cocos2dx_TransitionFlipY(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_TransitionFlipY_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFlipY_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TransitionFlipY).name(); // rtti is literal storage + auto typeName = typeid(axis::TransitionFlipY).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TransitionFlipY"; g_typeCast[typeName] = "cc.TransitionFlipY"; return 1; @@ -85914,11 +85914,11 @@ int lua_cocos2dx_TransitionFlipAngular_create(lua_State* tolua_S) double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionFlipAngular:create"); if (!ok) { break; } - cocos2d::Scene* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionFlipAngular:create"); + axis::Scene* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionFlipAngular:create"); if (!ok) { break; } - cocos2d::TransitionFlipAngular* ret = cocos2d::TransitionFlipAngular::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.TransitionFlipAngular",(cocos2d::TransitionFlipAngular*)ret); + axis::TransitionFlipAngular* ret = axis::TransitionFlipAngular::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.TransitionFlipAngular",(axis::TransitionFlipAngular*)ret); return 1; } } while (0); @@ -85930,14 +85930,14 @@ int lua_cocos2dx_TransitionFlipAngular_create(lua_State* tolua_S) double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionFlipAngular:create"); if (!ok) { break; } - cocos2d::Scene* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionFlipAngular:create"); + axis::Scene* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionFlipAngular:create"); if (!ok) { break; } - cocos2d::TransitionScene::Orientation arg2; + axis::TransitionScene::Orientation arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.TransitionFlipAngular:create"); if (!ok) { break; } - cocos2d::TransitionFlipAngular* ret = cocos2d::TransitionFlipAngular::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.TransitionFlipAngular",(cocos2d::TransitionFlipAngular*)ret); + axis::TransitionFlipAngular* ret = axis::TransitionFlipAngular::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.TransitionFlipAngular",(axis::TransitionFlipAngular*)ret); return 1; } } while (0); @@ -85953,7 +85953,7 @@ int lua_cocos2dx_TransitionFlipAngular_create(lua_State* tolua_S) int lua_cocos2dx_TransitionFlipAngular_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionFlipAngular* cobj = nullptr; + axis::TransitionFlipAngular* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -85970,7 +85970,7 @@ int lua_cocos2dx_TransitionFlipAngular_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionFlipAngular_constructor'", nullptr); return 0; } - cobj = new cocos2d::TransitionFlipAngular(); + cobj = new axis::TransitionFlipAngular(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -86002,7 +86002,7 @@ int lua_register_cocos2dx_TransitionFlipAngular(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_TransitionFlipAngular_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFlipAngular_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TransitionFlipAngular).name(); // rtti is literal storage + auto typeName = typeid(axis::TransitionFlipAngular).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TransitionFlipAngular"; g_typeCast[typeName] = "cc.TransitionFlipAngular"; return 1; @@ -86029,11 +86029,11 @@ int lua_cocos2dx_TransitionZoomFlipX_create(lua_State* tolua_S) double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionZoomFlipX:create"); if (!ok) { break; } - cocos2d::Scene* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionZoomFlipX:create"); + axis::Scene* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionZoomFlipX:create"); if (!ok) { break; } - cocos2d::TransitionZoomFlipX* ret = cocos2d::TransitionZoomFlipX::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.TransitionZoomFlipX",(cocos2d::TransitionZoomFlipX*)ret); + axis::TransitionZoomFlipX* ret = axis::TransitionZoomFlipX::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.TransitionZoomFlipX",(axis::TransitionZoomFlipX*)ret); return 1; } } while (0); @@ -86045,14 +86045,14 @@ int lua_cocos2dx_TransitionZoomFlipX_create(lua_State* tolua_S) double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionZoomFlipX:create"); if (!ok) { break; } - cocos2d::Scene* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionZoomFlipX:create"); + axis::Scene* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionZoomFlipX:create"); if (!ok) { break; } - cocos2d::TransitionScene::Orientation arg2; + axis::TransitionScene::Orientation arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.TransitionZoomFlipX:create"); if (!ok) { break; } - cocos2d::TransitionZoomFlipX* ret = cocos2d::TransitionZoomFlipX::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.TransitionZoomFlipX",(cocos2d::TransitionZoomFlipX*)ret); + axis::TransitionZoomFlipX* ret = axis::TransitionZoomFlipX::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.TransitionZoomFlipX",(axis::TransitionZoomFlipX*)ret); return 1; } } while (0); @@ -86068,7 +86068,7 @@ int lua_cocos2dx_TransitionZoomFlipX_create(lua_State* tolua_S) int lua_cocos2dx_TransitionZoomFlipX_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionZoomFlipX* cobj = nullptr; + axis::TransitionZoomFlipX* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -86085,7 +86085,7 @@ int lua_cocos2dx_TransitionZoomFlipX_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionZoomFlipX_constructor'", nullptr); return 0; } - cobj = new cocos2d::TransitionZoomFlipX(); + cobj = new axis::TransitionZoomFlipX(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -86117,7 +86117,7 @@ int lua_register_cocos2dx_TransitionZoomFlipX(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_TransitionZoomFlipX_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionZoomFlipX_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TransitionZoomFlipX).name(); // rtti is literal storage + auto typeName = typeid(axis::TransitionZoomFlipX).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TransitionZoomFlipX"; g_typeCast[typeName] = "cc.TransitionZoomFlipX"; return 1; @@ -86144,11 +86144,11 @@ int lua_cocos2dx_TransitionZoomFlipY_create(lua_State* tolua_S) double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionZoomFlipY:create"); if (!ok) { break; } - cocos2d::Scene* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionZoomFlipY:create"); + axis::Scene* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionZoomFlipY:create"); if (!ok) { break; } - cocos2d::TransitionZoomFlipY* ret = cocos2d::TransitionZoomFlipY::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.TransitionZoomFlipY",(cocos2d::TransitionZoomFlipY*)ret); + axis::TransitionZoomFlipY* ret = axis::TransitionZoomFlipY::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.TransitionZoomFlipY",(axis::TransitionZoomFlipY*)ret); return 1; } } while (0); @@ -86160,14 +86160,14 @@ int lua_cocos2dx_TransitionZoomFlipY_create(lua_State* tolua_S) double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionZoomFlipY:create"); if (!ok) { break; } - cocos2d::Scene* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionZoomFlipY:create"); + axis::Scene* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionZoomFlipY:create"); if (!ok) { break; } - cocos2d::TransitionScene::Orientation arg2; + axis::TransitionScene::Orientation arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.TransitionZoomFlipY:create"); if (!ok) { break; } - cocos2d::TransitionZoomFlipY* ret = cocos2d::TransitionZoomFlipY::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.TransitionZoomFlipY",(cocos2d::TransitionZoomFlipY*)ret); + axis::TransitionZoomFlipY* ret = axis::TransitionZoomFlipY::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.TransitionZoomFlipY",(axis::TransitionZoomFlipY*)ret); return 1; } } while (0); @@ -86183,7 +86183,7 @@ int lua_cocos2dx_TransitionZoomFlipY_create(lua_State* tolua_S) int lua_cocos2dx_TransitionZoomFlipY_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionZoomFlipY* cobj = nullptr; + axis::TransitionZoomFlipY* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -86200,7 +86200,7 @@ int lua_cocos2dx_TransitionZoomFlipY_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionZoomFlipY_constructor'", nullptr); return 0; } - cobj = new cocos2d::TransitionZoomFlipY(); + cobj = new axis::TransitionZoomFlipY(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -86232,7 +86232,7 @@ int lua_register_cocos2dx_TransitionZoomFlipY(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_TransitionZoomFlipY_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionZoomFlipY_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TransitionZoomFlipY).name(); // rtti is literal storage + auto typeName = typeid(axis::TransitionZoomFlipY).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TransitionZoomFlipY"; g_typeCast[typeName] = "cc.TransitionZoomFlipY"; return 1; @@ -86259,11 +86259,11 @@ int lua_cocos2dx_TransitionZoomFlipAngular_create(lua_State* tolua_S) double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionZoomFlipAngular:create"); if (!ok) { break; } - cocos2d::Scene* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionZoomFlipAngular:create"); + axis::Scene* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionZoomFlipAngular:create"); if (!ok) { break; } - cocos2d::TransitionZoomFlipAngular* ret = cocos2d::TransitionZoomFlipAngular::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.TransitionZoomFlipAngular",(cocos2d::TransitionZoomFlipAngular*)ret); + axis::TransitionZoomFlipAngular* ret = axis::TransitionZoomFlipAngular::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.TransitionZoomFlipAngular",(axis::TransitionZoomFlipAngular*)ret); return 1; } } while (0); @@ -86275,14 +86275,14 @@ int lua_cocos2dx_TransitionZoomFlipAngular_create(lua_State* tolua_S) double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionZoomFlipAngular:create"); if (!ok) { break; } - cocos2d::Scene* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionZoomFlipAngular:create"); + axis::Scene* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionZoomFlipAngular:create"); if (!ok) { break; } - cocos2d::TransitionScene::Orientation arg2; + axis::TransitionScene::Orientation arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.TransitionZoomFlipAngular:create"); if (!ok) { break; } - cocos2d::TransitionZoomFlipAngular* ret = cocos2d::TransitionZoomFlipAngular::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.TransitionZoomFlipAngular",(cocos2d::TransitionZoomFlipAngular*)ret); + axis::TransitionZoomFlipAngular* ret = axis::TransitionZoomFlipAngular::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.TransitionZoomFlipAngular",(axis::TransitionZoomFlipAngular*)ret); return 1; } } while (0); @@ -86298,7 +86298,7 @@ int lua_cocos2dx_TransitionZoomFlipAngular_create(lua_State* tolua_S) int lua_cocos2dx_TransitionZoomFlipAngular_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionZoomFlipAngular* cobj = nullptr; + axis::TransitionZoomFlipAngular* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -86315,7 +86315,7 @@ int lua_cocos2dx_TransitionZoomFlipAngular_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionZoomFlipAngular_constructor'", nullptr); return 0; } - cobj = new cocos2d::TransitionZoomFlipAngular(); + cobj = new axis::TransitionZoomFlipAngular(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -86347,7 +86347,7 @@ int lua_register_cocos2dx_TransitionZoomFlipAngular(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_TransitionZoomFlipAngular_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionZoomFlipAngular_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TransitionZoomFlipAngular).name(); // rtti is literal storage + auto typeName = typeid(axis::TransitionZoomFlipAngular).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TransitionZoomFlipAngular"; g_typeCast[typeName] = "cc.TransitionZoomFlipAngular"; return 1; @@ -86356,7 +86356,7 @@ int lua_register_cocos2dx_TransitionZoomFlipAngular(lua_State* tolua_S) int lua_cocos2dx_TransitionFade_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionFade* cobj = nullptr; + axis::TransitionFade* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -86365,7 +86365,7 @@ int lua_cocos2dx_TransitionFade_initWithDuration(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TransitionFade",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TransitionFade*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TransitionFade*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -86380,8 +86380,8 @@ int lua_cocos2dx_TransitionFade_initWithDuration(lua_State* tolua_S) ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionFade:initWithDuration"); if (!ok) { break; } - cocos2d::Scene* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionFade:initWithDuration"); + axis::Scene* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionFade:initWithDuration"); if (!ok) { break; } bool ret = cobj->initWithDuration(arg0, arg1); @@ -86396,11 +86396,11 @@ int lua_cocos2dx_TransitionFade_initWithDuration(lua_State* tolua_S) ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionFade:initWithDuration"); if (!ok) { break; } - cocos2d::Scene* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionFade:initWithDuration"); + axis::Scene* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionFade:initWithDuration"); if (!ok) { break; } - cocos2d::Color3B arg2; + axis::Color3B arg2; ok &= luaval_to_color3b(tolua_S, 4, &arg2, "cc.TransitionFade:initWithDuration"); if (!ok) { break; } @@ -86441,11 +86441,11 @@ int lua_cocos2dx_TransitionFade_create(lua_State* tolua_S) double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionFade:create"); if (!ok) { break; } - cocos2d::Scene* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionFade:create"); + axis::Scene* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionFade:create"); if (!ok) { break; } - cocos2d::TransitionFade* ret = cocos2d::TransitionFade::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.TransitionFade",(cocos2d::TransitionFade*)ret); + axis::TransitionFade* ret = axis::TransitionFade::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.TransitionFade",(axis::TransitionFade*)ret); return 1; } } while (0); @@ -86457,14 +86457,14 @@ int lua_cocos2dx_TransitionFade_create(lua_State* tolua_S) double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionFade:create"); if (!ok) { break; } - cocos2d::Scene* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionFade:create"); + axis::Scene* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionFade:create"); if (!ok) { break; } - cocos2d::Color3B arg2; + axis::Color3B arg2; ok &= luaval_to_color3b(tolua_S, 4, &arg2, "cc.TransitionFade:create"); if (!ok) { break; } - cocos2d::TransitionFade* ret = cocos2d::TransitionFade::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.TransitionFade",(cocos2d::TransitionFade*)ret); + axis::TransitionFade* ret = axis::TransitionFade::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.TransitionFade",(axis::TransitionFade*)ret); return 1; } } while (0); @@ -86480,7 +86480,7 @@ int lua_cocos2dx_TransitionFade_create(lua_State* tolua_S) int lua_cocos2dx_TransitionFade_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionFade* cobj = nullptr; + axis::TransitionFade* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -86497,7 +86497,7 @@ int lua_cocos2dx_TransitionFade_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionFade_constructor'", nullptr); return 0; } - cobj = new cocos2d::TransitionFade(); + cobj = new axis::TransitionFade(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -86530,7 +86530,7 @@ int lua_register_cocos2dx_TransitionFade(lua_State* tolua_S) tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_TransitionFade_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFade_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TransitionFade).name(); // rtti is literal storage + auto typeName = typeid(axis::TransitionFade).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TransitionFade"; g_typeCast[typeName] = "cc.TransitionFade"; return 1; @@ -86554,16 +86554,16 @@ int lua_cocos2dx_TransitionCrossFade_create(lua_State* tolua_S) if (argc == 2) { double arg0; - cocos2d::Scene* arg1; + axis::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionCrossFade:create"); - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionCrossFade:create"); + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionCrossFade:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionCrossFade_create'", nullptr); return 0; } - cocos2d::TransitionCrossFade* ret = cocos2d::TransitionCrossFade::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.TransitionCrossFade",(cocos2d::TransitionCrossFade*)ret); + axis::TransitionCrossFade* ret = axis::TransitionCrossFade::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.TransitionCrossFade",(axis::TransitionCrossFade*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionCrossFade:create",argc, 2); @@ -86577,7 +86577,7 @@ int lua_cocos2dx_TransitionCrossFade_create(lua_State* tolua_S) int lua_cocos2dx_TransitionCrossFade_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionCrossFade* cobj = nullptr; + axis::TransitionCrossFade* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -86594,7 +86594,7 @@ int lua_cocos2dx_TransitionCrossFade_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionCrossFade_constructor'", nullptr); return 0; } - cobj = new cocos2d::TransitionCrossFade(); + cobj = new axis::TransitionCrossFade(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -86626,7 +86626,7 @@ int lua_register_cocos2dx_TransitionCrossFade(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_TransitionCrossFade_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionCrossFade_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TransitionCrossFade).name(); // rtti is literal storage + auto typeName = typeid(axis::TransitionCrossFade).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TransitionCrossFade"; g_typeCast[typeName] = "cc.TransitionCrossFade"; return 1; @@ -86635,7 +86635,7 @@ int lua_register_cocos2dx_TransitionCrossFade(lua_State* tolua_S) int lua_cocos2dx_TransitionTurnOffTiles_easeActionWithAction(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionTurnOffTiles* cobj = nullptr; + axis::TransitionTurnOffTiles* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -86647,7 +86647,7 @@ int lua_cocos2dx_TransitionTurnOffTiles_easeActionWithAction(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TransitionTurnOffTiles",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TransitionTurnOffTiles*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TransitionTurnOffTiles*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -86660,16 +86660,16 @@ int lua_cocos2dx_TransitionTurnOffTiles_easeActionWithAction(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ActionInterval* arg0; + axis::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.TransitionTurnOffTiles:easeActionWithAction"); + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.TransitionTurnOffTiles:easeActionWithAction"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionTurnOffTiles_easeActionWithAction'", nullptr); return 0; } - cocos2d::ActionInterval* ret = cobj->easeActionWithAction(arg0); - object_to_luaval(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); + axis::ActionInterval* ret = cobj->easeActionWithAction(arg0); + object_to_luaval(tolua_S, "cc.ActionInterval",(axis::ActionInterval*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionTurnOffTiles:easeActionWithAction",argc, 1); @@ -86700,16 +86700,16 @@ int lua_cocos2dx_TransitionTurnOffTiles_create(lua_State* tolua_S) if (argc == 2) { double arg0; - cocos2d::Scene* arg1; + axis::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionTurnOffTiles:create"); - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionTurnOffTiles:create"); + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionTurnOffTiles:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionTurnOffTiles_create'", nullptr); return 0; } - cocos2d::TransitionTurnOffTiles* ret = cocos2d::TransitionTurnOffTiles::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.TransitionTurnOffTiles",(cocos2d::TransitionTurnOffTiles*)ret); + axis::TransitionTurnOffTiles* ret = axis::TransitionTurnOffTiles::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.TransitionTurnOffTiles",(axis::TransitionTurnOffTiles*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionTurnOffTiles:create",argc, 2); @@ -86723,7 +86723,7 @@ int lua_cocos2dx_TransitionTurnOffTiles_create(lua_State* tolua_S) int lua_cocos2dx_TransitionTurnOffTiles_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionTurnOffTiles* cobj = nullptr; + axis::TransitionTurnOffTiles* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -86740,7 +86740,7 @@ int lua_cocos2dx_TransitionTurnOffTiles_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionTurnOffTiles_constructor'", nullptr); return 0; } - cobj = new cocos2d::TransitionTurnOffTiles(); + cobj = new axis::TransitionTurnOffTiles(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -86773,7 +86773,7 @@ int lua_register_cocos2dx_TransitionTurnOffTiles(lua_State* tolua_S) tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionTurnOffTiles_easeActionWithAction); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionTurnOffTiles_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TransitionTurnOffTiles).name(); // rtti is literal storage + auto typeName = typeid(axis::TransitionTurnOffTiles).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TransitionTurnOffTiles"; g_typeCast[typeName] = "cc.TransitionTurnOffTiles"; return 1; @@ -86782,7 +86782,7 @@ int lua_register_cocos2dx_TransitionTurnOffTiles(lua_State* tolua_S) int lua_cocos2dx_TransitionSplitCols_action(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionSplitCols* cobj = nullptr; + axis::TransitionSplitCols* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -86794,7 +86794,7 @@ int lua_cocos2dx_TransitionSplitCols_action(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TransitionSplitCols",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TransitionSplitCols*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TransitionSplitCols*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -86812,8 +86812,8 @@ int lua_cocos2dx_TransitionSplitCols_action(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSplitCols_action'", nullptr); return 0; } - cocos2d::ActionInterval* ret = cobj->action(); - object_to_luaval(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); + axis::ActionInterval* ret = cobj->action(); + object_to_luaval(tolua_S, "cc.ActionInterval",(axis::ActionInterval*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionSplitCols:action",argc, 0); @@ -86829,7 +86829,7 @@ int lua_cocos2dx_TransitionSplitCols_action(lua_State* tolua_S) int lua_cocos2dx_TransitionSplitCols_easeActionWithAction(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionSplitCols* cobj = nullptr; + axis::TransitionSplitCols* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -86841,7 +86841,7 @@ int lua_cocos2dx_TransitionSplitCols_easeActionWithAction(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TransitionSplitCols",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TransitionSplitCols*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TransitionSplitCols*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -86854,16 +86854,16 @@ int lua_cocos2dx_TransitionSplitCols_easeActionWithAction(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ActionInterval* arg0; + axis::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.TransitionSplitCols:easeActionWithAction"); + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.TransitionSplitCols:easeActionWithAction"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSplitCols_easeActionWithAction'", nullptr); return 0; } - cocos2d::ActionInterval* ret = cobj->easeActionWithAction(arg0); - object_to_luaval(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); + axis::ActionInterval* ret = cobj->easeActionWithAction(arg0); + object_to_luaval(tolua_S, "cc.ActionInterval",(axis::ActionInterval*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionSplitCols:easeActionWithAction",argc, 1); @@ -86894,16 +86894,16 @@ int lua_cocos2dx_TransitionSplitCols_create(lua_State* tolua_S) if (argc == 2) { double arg0; - cocos2d::Scene* arg1; + axis::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionSplitCols:create"); - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionSplitCols:create"); + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionSplitCols:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSplitCols_create'", nullptr); return 0; } - cocos2d::TransitionSplitCols* ret = cocos2d::TransitionSplitCols::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.TransitionSplitCols",(cocos2d::TransitionSplitCols*)ret); + axis::TransitionSplitCols* ret = axis::TransitionSplitCols::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.TransitionSplitCols",(axis::TransitionSplitCols*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionSplitCols:create",argc, 2); @@ -86917,7 +86917,7 @@ int lua_cocos2dx_TransitionSplitCols_create(lua_State* tolua_S) int lua_cocos2dx_TransitionSplitCols_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionSplitCols* cobj = nullptr; + axis::TransitionSplitCols* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -86934,7 +86934,7 @@ int lua_cocos2dx_TransitionSplitCols_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSplitCols_constructor'", nullptr); return 0; } - cobj = new cocos2d::TransitionSplitCols(); + cobj = new axis::TransitionSplitCols(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -86968,7 +86968,7 @@ int lua_register_cocos2dx_TransitionSplitCols(lua_State* tolua_S) tolua_function(tolua_S,"easeActionWithAction",lua_cocos2dx_TransitionSplitCols_easeActionWithAction); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSplitCols_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TransitionSplitCols).name(); // rtti is literal storage + auto typeName = typeid(axis::TransitionSplitCols).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TransitionSplitCols"; g_typeCast[typeName] = "cc.TransitionSplitCols"; return 1; @@ -86992,16 +86992,16 @@ int lua_cocos2dx_TransitionSplitRows_create(lua_State* tolua_S) if (argc == 2) { double arg0; - cocos2d::Scene* arg1; + axis::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionSplitRows:create"); - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionSplitRows:create"); + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionSplitRows:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSplitRows_create'", nullptr); return 0; } - cocos2d::TransitionSplitRows* ret = cocos2d::TransitionSplitRows::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.TransitionSplitRows",(cocos2d::TransitionSplitRows*)ret); + axis::TransitionSplitRows* ret = axis::TransitionSplitRows::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.TransitionSplitRows",(axis::TransitionSplitRows*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionSplitRows:create",argc, 2); @@ -87015,7 +87015,7 @@ int lua_cocos2dx_TransitionSplitRows_create(lua_State* tolua_S) int lua_cocos2dx_TransitionSplitRows_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionSplitRows* cobj = nullptr; + axis::TransitionSplitRows* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -87032,7 +87032,7 @@ int lua_cocos2dx_TransitionSplitRows_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionSplitRows_constructor'", nullptr); return 0; } - cobj = new cocos2d::TransitionSplitRows(); + cobj = new axis::TransitionSplitRows(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -87064,7 +87064,7 @@ int lua_register_cocos2dx_TransitionSplitRows(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_TransitionSplitRows_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionSplitRows_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TransitionSplitRows).name(); // rtti is literal storage + auto typeName = typeid(axis::TransitionSplitRows).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TransitionSplitRows"; g_typeCast[typeName] = "cc.TransitionSplitRows"; return 1; @@ -87073,7 +87073,7 @@ int lua_register_cocos2dx_TransitionSplitRows(lua_State* tolua_S) int lua_cocos2dx_TransitionFadeTR_easeActionWithAction(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionFadeTR* cobj = nullptr; + axis::TransitionFadeTR* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -87085,7 +87085,7 @@ int lua_cocos2dx_TransitionFadeTR_easeActionWithAction(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TransitionFadeTR",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TransitionFadeTR*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TransitionFadeTR*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -87098,16 +87098,16 @@ int lua_cocos2dx_TransitionFadeTR_easeActionWithAction(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ActionInterval* arg0; + axis::ActionInterval* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.TransitionFadeTR:easeActionWithAction"); + ok &= luaval_to_object(tolua_S, 2, "cc.ActionInterval",&arg0, "cc.TransitionFadeTR:easeActionWithAction"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionFadeTR_easeActionWithAction'", nullptr); return 0; } - cocos2d::ActionInterval* ret = cobj->easeActionWithAction(arg0); - object_to_luaval(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); + axis::ActionInterval* ret = cobj->easeActionWithAction(arg0); + object_to_luaval(tolua_S, "cc.ActionInterval",(axis::ActionInterval*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionFadeTR:easeActionWithAction",argc, 1); @@ -87123,7 +87123,7 @@ int lua_cocos2dx_TransitionFadeTR_easeActionWithAction(lua_State* tolua_S) int lua_cocos2dx_TransitionFadeTR_actionWithSize(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionFadeTR* cobj = nullptr; + axis::TransitionFadeTR* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -87135,7 +87135,7 @@ int lua_cocos2dx_TransitionFadeTR_actionWithSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TransitionFadeTR",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TransitionFadeTR*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TransitionFadeTR*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -87148,7 +87148,7 @@ int lua_cocos2dx_TransitionFadeTR_actionWithSize(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.TransitionFadeTR:actionWithSize"); if(!ok) @@ -87156,8 +87156,8 @@ int lua_cocos2dx_TransitionFadeTR_actionWithSize(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionFadeTR_actionWithSize'", nullptr); return 0; } - cocos2d::ActionInterval* ret = cobj->actionWithSize(arg0); - object_to_luaval(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); + axis::ActionInterval* ret = cobj->actionWithSize(arg0); + object_to_luaval(tolua_S, "cc.ActionInterval",(axis::ActionInterval*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionFadeTR:actionWithSize",argc, 1); @@ -87188,16 +87188,16 @@ int lua_cocos2dx_TransitionFadeTR_create(lua_State* tolua_S) if (argc == 2) { double arg0; - cocos2d::Scene* arg1; + axis::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionFadeTR:create"); - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionFadeTR:create"); + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionFadeTR:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionFadeTR_create'", nullptr); return 0; } - cocos2d::TransitionFadeTR* ret = cocos2d::TransitionFadeTR::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.TransitionFadeTR",(cocos2d::TransitionFadeTR*)ret); + axis::TransitionFadeTR* ret = axis::TransitionFadeTR::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.TransitionFadeTR",(axis::TransitionFadeTR*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionFadeTR:create",argc, 2); @@ -87211,7 +87211,7 @@ int lua_cocos2dx_TransitionFadeTR_create(lua_State* tolua_S) int lua_cocos2dx_TransitionFadeTR_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionFadeTR* cobj = nullptr; + axis::TransitionFadeTR* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -87228,7 +87228,7 @@ int lua_cocos2dx_TransitionFadeTR_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionFadeTR_constructor'", nullptr); return 0; } - cobj = new cocos2d::TransitionFadeTR(); + cobj = new axis::TransitionFadeTR(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -87262,7 +87262,7 @@ int lua_register_cocos2dx_TransitionFadeTR(lua_State* tolua_S) tolua_function(tolua_S,"actionWithSize",lua_cocos2dx_TransitionFadeTR_actionWithSize); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFadeTR_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TransitionFadeTR).name(); // rtti is literal storage + auto typeName = typeid(axis::TransitionFadeTR).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TransitionFadeTR"; g_typeCast[typeName] = "cc.TransitionFadeTR"; return 1; @@ -87286,16 +87286,16 @@ int lua_cocos2dx_TransitionFadeBL_create(lua_State* tolua_S) if (argc == 2) { double arg0; - cocos2d::Scene* arg1; + axis::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionFadeBL:create"); - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionFadeBL:create"); + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionFadeBL:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionFadeBL_create'", nullptr); return 0; } - cocos2d::TransitionFadeBL* ret = cocos2d::TransitionFadeBL::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.TransitionFadeBL",(cocos2d::TransitionFadeBL*)ret); + axis::TransitionFadeBL* ret = axis::TransitionFadeBL::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.TransitionFadeBL",(axis::TransitionFadeBL*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionFadeBL:create",argc, 2); @@ -87309,7 +87309,7 @@ int lua_cocos2dx_TransitionFadeBL_create(lua_State* tolua_S) int lua_cocos2dx_TransitionFadeBL_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionFadeBL* cobj = nullptr; + axis::TransitionFadeBL* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -87326,7 +87326,7 @@ int lua_cocos2dx_TransitionFadeBL_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionFadeBL_constructor'", nullptr); return 0; } - cobj = new cocos2d::TransitionFadeBL(); + cobj = new axis::TransitionFadeBL(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -87358,7 +87358,7 @@ int lua_register_cocos2dx_TransitionFadeBL(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_TransitionFadeBL_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFadeBL_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TransitionFadeBL).name(); // rtti is literal storage + auto typeName = typeid(axis::TransitionFadeBL).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TransitionFadeBL"; g_typeCast[typeName] = "cc.TransitionFadeBL"; return 1; @@ -87382,16 +87382,16 @@ int lua_cocos2dx_TransitionFadeUp_create(lua_State* tolua_S) if (argc == 2) { double arg0; - cocos2d::Scene* arg1; + axis::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionFadeUp:create"); - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionFadeUp:create"); + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionFadeUp:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionFadeUp_create'", nullptr); return 0; } - cocos2d::TransitionFadeUp* ret = cocos2d::TransitionFadeUp::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.TransitionFadeUp",(cocos2d::TransitionFadeUp*)ret); + axis::TransitionFadeUp* ret = axis::TransitionFadeUp::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.TransitionFadeUp",(axis::TransitionFadeUp*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionFadeUp:create",argc, 2); @@ -87405,7 +87405,7 @@ int lua_cocos2dx_TransitionFadeUp_create(lua_State* tolua_S) int lua_cocos2dx_TransitionFadeUp_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionFadeUp* cobj = nullptr; + axis::TransitionFadeUp* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -87422,7 +87422,7 @@ int lua_cocos2dx_TransitionFadeUp_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionFadeUp_constructor'", nullptr); return 0; } - cobj = new cocos2d::TransitionFadeUp(); + cobj = new axis::TransitionFadeUp(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -87454,7 +87454,7 @@ int lua_register_cocos2dx_TransitionFadeUp(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_TransitionFadeUp_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFadeUp_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TransitionFadeUp).name(); // rtti is literal storage + auto typeName = typeid(axis::TransitionFadeUp).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TransitionFadeUp"; g_typeCast[typeName] = "cc.TransitionFadeUp"; return 1; @@ -87478,16 +87478,16 @@ int lua_cocos2dx_TransitionFadeDown_create(lua_State* tolua_S) if (argc == 2) { double arg0; - cocos2d::Scene* arg1; + axis::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionFadeDown:create"); - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionFadeDown:create"); + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionFadeDown:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionFadeDown_create'", nullptr); return 0; } - cocos2d::TransitionFadeDown* ret = cocos2d::TransitionFadeDown::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.TransitionFadeDown",(cocos2d::TransitionFadeDown*)ret); + axis::TransitionFadeDown* ret = axis::TransitionFadeDown::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.TransitionFadeDown",(axis::TransitionFadeDown*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionFadeDown:create",argc, 2); @@ -87501,7 +87501,7 @@ int lua_cocos2dx_TransitionFadeDown_create(lua_State* tolua_S) int lua_cocos2dx_TransitionFadeDown_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionFadeDown* cobj = nullptr; + axis::TransitionFadeDown* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -87518,7 +87518,7 @@ int lua_cocos2dx_TransitionFadeDown_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionFadeDown_constructor'", nullptr); return 0; } - cobj = new cocos2d::TransitionFadeDown(); + cobj = new axis::TransitionFadeDown(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -87550,7 +87550,7 @@ int lua_register_cocos2dx_TransitionFadeDown(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_TransitionFadeDown_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionFadeDown_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TransitionFadeDown).name(); // rtti is literal storage + auto typeName = typeid(axis::TransitionFadeDown).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TransitionFadeDown"; g_typeCast[typeName] = "cc.TransitionFadeDown"; return 1; @@ -87559,7 +87559,7 @@ int lua_register_cocos2dx_TransitionFadeDown(lua_State* tolua_S) int lua_cocos2dx_TransitionPageTurn_actionWithSize(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionPageTurn* cobj = nullptr; + axis::TransitionPageTurn* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -87571,7 +87571,7 @@ int lua_cocos2dx_TransitionPageTurn_actionWithSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TransitionPageTurn",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TransitionPageTurn*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TransitionPageTurn*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -87584,7 +87584,7 @@ int lua_cocos2dx_TransitionPageTurn_actionWithSize(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.TransitionPageTurn:actionWithSize"); if(!ok) @@ -87592,8 +87592,8 @@ int lua_cocos2dx_TransitionPageTurn_actionWithSize(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionPageTurn_actionWithSize'", nullptr); return 0; } - cocos2d::ActionInterval* ret = cobj->actionWithSize(arg0); - object_to_luaval(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); + axis::ActionInterval* ret = cobj->actionWithSize(arg0); + object_to_luaval(tolua_S, "cc.ActionInterval",(axis::ActionInterval*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TransitionPageTurn:actionWithSize",argc, 1); @@ -87609,7 +87609,7 @@ int lua_cocos2dx_TransitionPageTurn_actionWithSize(lua_State* tolua_S) int lua_cocos2dx_TransitionPageTurn_initWithDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionPageTurn* cobj = nullptr; + axis::TransitionPageTurn* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -87621,7 +87621,7 @@ int lua_cocos2dx_TransitionPageTurn_initWithDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TransitionPageTurn",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TransitionPageTurn*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TransitionPageTurn*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -87635,12 +87635,12 @@ int lua_cocos2dx_TransitionPageTurn_initWithDuration(lua_State* tolua_S) if (argc == 3) { double arg0; - cocos2d::Scene* arg1; + axis::Scene* arg1; bool arg2; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionPageTurn:initWithDuration"); - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionPageTurn:initWithDuration"); + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionPageTurn:initWithDuration"); ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.TransitionPageTurn:initWithDuration"); if(!ok) @@ -87680,18 +87680,18 @@ int lua_cocos2dx_TransitionPageTurn_create(lua_State* tolua_S) if (argc == 3) { double arg0; - cocos2d::Scene* arg1; + axis::Scene* arg1; bool arg2; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionPageTurn:create"); - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionPageTurn:create"); + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionPageTurn:create"); ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.TransitionPageTurn:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionPageTurn_create'", nullptr); return 0; } - cocos2d::TransitionPageTurn* ret = cocos2d::TransitionPageTurn::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.TransitionPageTurn",(cocos2d::TransitionPageTurn*)ret); + axis::TransitionPageTurn* ret = axis::TransitionPageTurn::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.TransitionPageTurn",(axis::TransitionPageTurn*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionPageTurn:create",argc, 3); @@ -87705,7 +87705,7 @@ int lua_cocos2dx_TransitionPageTurn_create(lua_State* tolua_S) int lua_cocos2dx_TransitionPageTurn_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionPageTurn* cobj = nullptr; + axis::TransitionPageTurn* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -87722,7 +87722,7 @@ int lua_cocos2dx_TransitionPageTurn_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionPageTurn_constructor'", nullptr); return 0; } - cobj = new cocos2d::TransitionPageTurn(); + cobj = new axis::TransitionPageTurn(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -87756,7 +87756,7 @@ int lua_register_cocos2dx_TransitionPageTurn(lua_State* tolua_S) tolua_function(tolua_S,"initWithDuration",lua_cocos2dx_TransitionPageTurn_initWithDuration); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionPageTurn_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TransitionPageTurn).name(); // rtti is literal storage + auto typeName = typeid(axis::TransitionPageTurn).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TransitionPageTurn"; g_typeCast[typeName] = "cc.TransitionPageTurn"; return 1; @@ -87780,16 +87780,16 @@ int lua_cocos2dx_TransitionProgress_create(lua_State* tolua_S) if (argc == 2) { double arg0; - cocos2d::Scene* arg1; + axis::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionProgress:create"); - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionProgress:create"); + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionProgress:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionProgress_create'", nullptr); return 0; } - cocos2d::TransitionProgress* ret = cocos2d::TransitionProgress::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.TransitionProgress",(cocos2d::TransitionProgress*)ret); + axis::TransitionProgress* ret = axis::TransitionProgress::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.TransitionProgress",(axis::TransitionProgress*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionProgress:create",argc, 2); @@ -87803,7 +87803,7 @@ int lua_cocos2dx_TransitionProgress_create(lua_State* tolua_S) int lua_cocos2dx_TransitionProgress_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionProgress* cobj = nullptr; + axis::TransitionProgress* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -87820,7 +87820,7 @@ int lua_cocos2dx_TransitionProgress_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionProgress_constructor'", nullptr); return 0; } - cobj = new cocos2d::TransitionProgress(); + cobj = new axis::TransitionProgress(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -87852,7 +87852,7 @@ int lua_register_cocos2dx_TransitionProgress(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_TransitionProgress_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgress_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TransitionProgress).name(); // rtti is literal storage + auto typeName = typeid(axis::TransitionProgress).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TransitionProgress"; g_typeCast[typeName] = "cc.TransitionProgress"; return 1; @@ -87876,16 +87876,16 @@ int lua_cocos2dx_TransitionProgressRadialCCW_create(lua_State* tolua_S) if (argc == 2) { double arg0; - cocos2d::Scene* arg1; + axis::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionProgressRadialCCW:create"); - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionProgressRadialCCW:create"); + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionProgressRadialCCW:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionProgressRadialCCW_create'", nullptr); return 0; } - cocos2d::TransitionProgressRadialCCW* ret = cocos2d::TransitionProgressRadialCCW::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.TransitionProgressRadialCCW",(cocos2d::TransitionProgressRadialCCW*)ret); + axis::TransitionProgressRadialCCW* ret = axis::TransitionProgressRadialCCW::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.TransitionProgressRadialCCW",(axis::TransitionProgressRadialCCW*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionProgressRadialCCW:create",argc, 2); @@ -87899,7 +87899,7 @@ int lua_cocos2dx_TransitionProgressRadialCCW_create(lua_State* tolua_S) int lua_cocos2dx_TransitionProgressRadialCCW_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionProgressRadialCCW* cobj = nullptr; + axis::TransitionProgressRadialCCW* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -87916,7 +87916,7 @@ int lua_cocos2dx_TransitionProgressRadialCCW_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionProgressRadialCCW_constructor'", nullptr); return 0; } - cobj = new cocos2d::TransitionProgressRadialCCW(); + cobj = new axis::TransitionProgressRadialCCW(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -87948,7 +87948,7 @@ int lua_register_cocos2dx_TransitionProgressRadialCCW(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_TransitionProgressRadialCCW_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressRadialCCW_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TransitionProgressRadialCCW).name(); // rtti is literal storage + auto typeName = typeid(axis::TransitionProgressRadialCCW).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TransitionProgressRadialCCW"; g_typeCast[typeName] = "cc.TransitionProgressRadialCCW"; return 1; @@ -87972,16 +87972,16 @@ int lua_cocos2dx_TransitionProgressRadialCW_create(lua_State* tolua_S) if (argc == 2) { double arg0; - cocos2d::Scene* arg1; + axis::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionProgressRadialCW:create"); - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionProgressRadialCW:create"); + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionProgressRadialCW:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionProgressRadialCW_create'", nullptr); return 0; } - cocos2d::TransitionProgressRadialCW* ret = cocos2d::TransitionProgressRadialCW::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.TransitionProgressRadialCW",(cocos2d::TransitionProgressRadialCW*)ret); + axis::TransitionProgressRadialCW* ret = axis::TransitionProgressRadialCW::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.TransitionProgressRadialCW",(axis::TransitionProgressRadialCW*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionProgressRadialCW:create",argc, 2); @@ -87995,7 +87995,7 @@ int lua_cocos2dx_TransitionProgressRadialCW_create(lua_State* tolua_S) int lua_cocos2dx_TransitionProgressRadialCW_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionProgressRadialCW* cobj = nullptr; + axis::TransitionProgressRadialCW* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -88012,7 +88012,7 @@ int lua_cocos2dx_TransitionProgressRadialCW_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionProgressRadialCW_constructor'", nullptr); return 0; } - cobj = new cocos2d::TransitionProgressRadialCW(); + cobj = new axis::TransitionProgressRadialCW(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -88044,7 +88044,7 @@ int lua_register_cocos2dx_TransitionProgressRadialCW(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_TransitionProgressRadialCW_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressRadialCW_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TransitionProgressRadialCW).name(); // rtti is literal storage + auto typeName = typeid(axis::TransitionProgressRadialCW).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TransitionProgressRadialCW"; g_typeCast[typeName] = "cc.TransitionProgressRadialCW"; return 1; @@ -88068,16 +88068,16 @@ int lua_cocos2dx_TransitionProgressHorizontal_create(lua_State* tolua_S) if (argc == 2) { double arg0; - cocos2d::Scene* arg1; + axis::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionProgressHorizontal:create"); - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionProgressHorizontal:create"); + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionProgressHorizontal:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionProgressHorizontal_create'", nullptr); return 0; } - cocos2d::TransitionProgressHorizontal* ret = cocos2d::TransitionProgressHorizontal::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.TransitionProgressHorizontal",(cocos2d::TransitionProgressHorizontal*)ret); + axis::TransitionProgressHorizontal* ret = axis::TransitionProgressHorizontal::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.TransitionProgressHorizontal",(axis::TransitionProgressHorizontal*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionProgressHorizontal:create",argc, 2); @@ -88091,7 +88091,7 @@ int lua_cocos2dx_TransitionProgressHorizontal_create(lua_State* tolua_S) int lua_cocos2dx_TransitionProgressHorizontal_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionProgressHorizontal* cobj = nullptr; + axis::TransitionProgressHorizontal* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -88108,7 +88108,7 @@ int lua_cocos2dx_TransitionProgressHorizontal_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionProgressHorizontal_constructor'", nullptr); return 0; } - cobj = new cocos2d::TransitionProgressHorizontal(); + cobj = new axis::TransitionProgressHorizontal(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -88140,7 +88140,7 @@ int lua_register_cocos2dx_TransitionProgressHorizontal(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_TransitionProgressHorizontal_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressHorizontal_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TransitionProgressHorizontal).name(); // rtti is literal storage + auto typeName = typeid(axis::TransitionProgressHorizontal).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TransitionProgressHorizontal"; g_typeCast[typeName] = "cc.TransitionProgressHorizontal"; return 1; @@ -88164,16 +88164,16 @@ int lua_cocos2dx_TransitionProgressVertical_create(lua_State* tolua_S) if (argc == 2) { double arg0; - cocos2d::Scene* arg1; + axis::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionProgressVertical:create"); - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionProgressVertical:create"); + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionProgressVertical:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionProgressVertical_create'", nullptr); return 0; } - cocos2d::TransitionProgressVertical* ret = cocos2d::TransitionProgressVertical::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.TransitionProgressVertical",(cocos2d::TransitionProgressVertical*)ret); + axis::TransitionProgressVertical* ret = axis::TransitionProgressVertical::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.TransitionProgressVertical",(axis::TransitionProgressVertical*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionProgressVertical:create",argc, 2); @@ -88187,7 +88187,7 @@ int lua_cocos2dx_TransitionProgressVertical_create(lua_State* tolua_S) int lua_cocos2dx_TransitionProgressVertical_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionProgressVertical* cobj = nullptr; + axis::TransitionProgressVertical* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -88204,7 +88204,7 @@ int lua_cocos2dx_TransitionProgressVertical_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionProgressVertical_constructor'", nullptr); return 0; } - cobj = new cocos2d::TransitionProgressVertical(); + cobj = new axis::TransitionProgressVertical(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -88236,7 +88236,7 @@ int lua_register_cocos2dx_TransitionProgressVertical(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_TransitionProgressVertical_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressVertical_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TransitionProgressVertical).name(); // rtti is literal storage + auto typeName = typeid(axis::TransitionProgressVertical).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TransitionProgressVertical"; g_typeCast[typeName] = "cc.TransitionProgressVertical"; return 1; @@ -88260,16 +88260,16 @@ int lua_cocos2dx_TransitionProgressInOut_create(lua_State* tolua_S) if (argc == 2) { double arg0; - cocos2d::Scene* arg1; + axis::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionProgressInOut:create"); - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionProgressInOut:create"); + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionProgressInOut:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionProgressInOut_create'", nullptr); return 0; } - cocos2d::TransitionProgressInOut* ret = cocos2d::TransitionProgressInOut::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.TransitionProgressInOut",(cocos2d::TransitionProgressInOut*)ret); + axis::TransitionProgressInOut* ret = axis::TransitionProgressInOut::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.TransitionProgressInOut",(axis::TransitionProgressInOut*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionProgressInOut:create",argc, 2); @@ -88283,7 +88283,7 @@ int lua_cocos2dx_TransitionProgressInOut_create(lua_State* tolua_S) int lua_cocos2dx_TransitionProgressInOut_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionProgressInOut* cobj = nullptr; + axis::TransitionProgressInOut* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -88300,7 +88300,7 @@ int lua_cocos2dx_TransitionProgressInOut_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionProgressInOut_constructor'", nullptr); return 0; } - cobj = new cocos2d::TransitionProgressInOut(); + cobj = new axis::TransitionProgressInOut(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -88332,7 +88332,7 @@ int lua_register_cocos2dx_TransitionProgressInOut(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_TransitionProgressInOut_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressInOut_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TransitionProgressInOut).name(); // rtti is literal storage + auto typeName = typeid(axis::TransitionProgressInOut).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TransitionProgressInOut"; g_typeCast[typeName] = "cc.TransitionProgressInOut"; return 1; @@ -88356,16 +88356,16 @@ int lua_cocos2dx_TransitionProgressOutIn_create(lua_State* tolua_S) if (argc == 2) { double arg0; - cocos2d::Scene* arg1; + axis::Scene* arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.TransitionProgressOutIn:create"); - ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionProgressOutIn:create"); + ok &= luaval_to_object(tolua_S, 3, "cc.Scene",&arg1, "cc.TransitionProgressOutIn:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionProgressOutIn_create'", nullptr); return 0; } - cocos2d::TransitionProgressOutIn* ret = cocos2d::TransitionProgressOutIn::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.TransitionProgressOutIn",(cocos2d::TransitionProgressOutIn*)ret); + axis::TransitionProgressOutIn* ret = axis::TransitionProgressOutIn::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.TransitionProgressOutIn",(axis::TransitionProgressOutIn*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TransitionProgressOutIn:create",argc, 2); @@ -88379,7 +88379,7 @@ int lua_cocos2dx_TransitionProgressOutIn_create(lua_State* tolua_S) int lua_cocos2dx_TransitionProgressOutIn_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TransitionProgressOutIn* cobj = nullptr; + axis::TransitionProgressOutIn* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -88396,7 +88396,7 @@ int lua_cocos2dx_TransitionProgressOutIn_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TransitionProgressOutIn_constructor'", nullptr); return 0; } - cobj = new cocos2d::TransitionProgressOutIn(); + cobj = new axis::TransitionProgressOutIn(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -88428,7 +88428,7 @@ int lua_register_cocos2dx_TransitionProgressOutIn(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_TransitionProgressOutIn_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_TransitionProgressOutIn_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TransitionProgressOutIn).name(); // rtti is literal storage + auto typeName = typeid(axis::TransitionProgressOutIn).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TransitionProgressOutIn"; g_typeCast[typeName] = "cc.TransitionProgressOutIn"; return 1; @@ -88437,7 +88437,7 @@ int lua_register_cocos2dx_TransitionProgressOutIn(lua_State* tolua_S) int lua_cocos2dx_Camera_getDepth(lua_State* tolua_S) { int argc = 0; - cocos2d::Camera* cobj = nullptr; + axis::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -88449,7 +88449,7 @@ int lua_cocos2dx_Camera_getDepth(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -88484,7 +88484,7 @@ int lua_cocos2dx_Camera_getDepth(lua_State* tolua_S) int lua_cocos2dx_Camera_getViewProjectionMatrix(lua_State* tolua_S) { int argc = 0; - cocos2d::Camera* cobj = nullptr; + axis::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -88496,7 +88496,7 @@ int lua_cocos2dx_Camera_getViewProjectionMatrix(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -88514,7 +88514,7 @@ int lua_cocos2dx_Camera_getViewProjectionMatrix(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_getViewProjectionMatrix'", nullptr); return 0; } - const cocos2d::Mat4& ret = cobj->getViewProjectionMatrix(); + const axis::Mat4& ret = cobj->getViewProjectionMatrix(); mat4_to_luaval(tolua_S, ret); return 1; } @@ -88531,7 +88531,7 @@ int lua_cocos2dx_Camera_getViewProjectionMatrix(lua_State* tolua_S) int lua_cocos2dx_Camera_applyViewport(lua_State* tolua_S) { int argc = 0; - cocos2d::Camera* cobj = nullptr; + axis::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -88543,7 +88543,7 @@ int lua_cocos2dx_Camera_applyViewport(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -88578,7 +88578,7 @@ int lua_cocos2dx_Camera_applyViewport(lua_State* tolua_S) int lua_cocos2dx_Camera_setBackgroundBrush(lua_State* tolua_S) { int argc = 0; - cocos2d::Camera* cobj = nullptr; + axis::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -88590,7 +88590,7 @@ int lua_cocos2dx_Camera_setBackgroundBrush(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -88603,9 +88603,9 @@ int lua_cocos2dx_Camera_setBackgroundBrush(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::CameraBackgroundBrush* arg0; + axis::CameraBackgroundBrush* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.CameraBackgroundBrush",&arg0, "cc.Camera:setBackgroundBrush"); + ok &= luaval_to_object(tolua_S, 2, "cc.CameraBackgroundBrush",&arg0, "cc.Camera:setBackgroundBrush"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_setBackgroundBrush'", nullptr); @@ -88628,7 +88628,7 @@ int lua_cocos2dx_Camera_setBackgroundBrush(lua_State* tolua_S) int lua_cocos2dx_Camera_getZoom(lua_State* tolua_S) { int argc = 0; - cocos2d::Camera* cobj = nullptr; + axis::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -88640,7 +88640,7 @@ int lua_cocos2dx_Camera_getZoom(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -88675,7 +88675,7 @@ int lua_cocos2dx_Camera_getZoom(lua_State* tolua_S) int lua_cocos2dx_Camera_lookAt(lua_State* tolua_S) { int argc = 0; - cocos2d::Camera* cobj = nullptr; + axis::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -88687,7 +88687,7 @@ int lua_cocos2dx_Camera_lookAt(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -88700,7 +88700,7 @@ int lua_cocos2dx_Camera_lookAt(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec3 arg0; + axis::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.Camera:lookAt"); if(!ok) @@ -88714,8 +88714,8 @@ int lua_cocos2dx_Camera_lookAt(lua_State* tolua_S) } if (argc == 2) { - cocos2d::Vec3 arg0; - cocos2d::Vec3 arg1; + axis::Vec3 arg0; + axis::Vec3 arg1; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.Camera:lookAt"); @@ -88742,7 +88742,7 @@ int lua_cocos2dx_Camera_lookAt(lua_State* tolua_S) int lua_cocos2dx_Camera_apply(lua_State* tolua_S) { int argc = 0; - cocos2d::Camera* cobj = nullptr; + axis::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -88754,7 +88754,7 @@ int lua_cocos2dx_Camera_apply(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -88789,7 +88789,7 @@ int lua_cocos2dx_Camera_apply(lua_State* tolua_S) int lua_cocos2dx_Camera_getBackgroundBrush(lua_State* tolua_S) { int argc = 0; - cocos2d::Camera* cobj = nullptr; + axis::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -88801,7 +88801,7 @@ int lua_cocos2dx_Camera_getBackgroundBrush(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -88819,8 +88819,8 @@ int lua_cocos2dx_Camera_getBackgroundBrush(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_getBackgroundBrush'", nullptr); return 0; } - cocos2d::CameraBackgroundBrush* ret = cobj->getBackgroundBrush(); - object_to_luaval(tolua_S, "cc.CameraBackgroundBrush",(cocos2d::CameraBackgroundBrush*)ret); + axis::CameraBackgroundBrush* ret = cobj->getBackgroundBrush(); + object_to_luaval(tolua_S, "cc.CameraBackgroundBrush",(axis::CameraBackgroundBrush*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Camera:getBackgroundBrush",argc, 0); @@ -88836,7 +88836,7 @@ int lua_cocos2dx_Camera_getBackgroundBrush(lua_State* tolua_S) int lua_cocos2dx_Camera_setAspectRatio(lua_State* tolua_S) { int argc = 0; - cocos2d::Camera* cobj = nullptr; + axis::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -88848,7 +88848,7 @@ int lua_cocos2dx_Camera_setAspectRatio(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -88886,7 +88886,7 @@ int lua_cocos2dx_Camera_setAspectRatio(lua_State* tolua_S) int lua_cocos2dx_Camera_setFarPlane(lua_State* tolua_S) { int argc = 0; - cocos2d::Camera* cobj = nullptr; + axis::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -88898,7 +88898,7 @@ int lua_cocos2dx_Camera_setFarPlane(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -88936,7 +88936,7 @@ int lua_cocos2dx_Camera_setFarPlane(lua_State* tolua_S) int lua_cocos2dx_Camera_getProjectionMatrix(lua_State* tolua_S) { int argc = 0; - cocos2d::Camera* cobj = nullptr; + axis::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -88948,7 +88948,7 @@ int lua_cocos2dx_Camera_getProjectionMatrix(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -88966,7 +88966,7 @@ int lua_cocos2dx_Camera_getProjectionMatrix(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_getProjectionMatrix'", nullptr); return 0; } - const cocos2d::Mat4& ret = cobj->getProjectionMatrix(); + const axis::Mat4& ret = cobj->getProjectionMatrix(); mat4_to_luaval(tolua_S, ret); return 1; } @@ -88983,7 +88983,7 @@ int lua_cocos2dx_Camera_getProjectionMatrix(lua_State* tolua_S) int lua_cocos2dx_Camera_isBrushValid(lua_State* tolua_S) { int argc = 0; - cocos2d::Camera* cobj = nullptr; + axis::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -88995,7 +88995,7 @@ int lua_cocos2dx_Camera_isBrushValid(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -89030,7 +89030,7 @@ int lua_cocos2dx_Camera_isBrushValid(lua_State* tolua_S) int lua_cocos2dx_Camera_getDepthInView(lua_State* tolua_S) { int argc = 0; - cocos2d::Camera* cobj = nullptr; + axis::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -89042,7 +89042,7 @@ int lua_cocos2dx_Camera_getDepthInView(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -89055,7 +89055,7 @@ int lua_cocos2dx_Camera_getDepthInView(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Mat4 arg0; + axis::Mat4 arg0; ok &= luaval_to_mat4(tolua_S, 2, &arg0, "cc.Camera:getDepthInView"); if(!ok) @@ -89080,7 +89080,7 @@ int lua_cocos2dx_Camera_getDepthInView(lua_State* tolua_S) int lua_cocos2dx_Camera_clearBackground(lua_State* tolua_S) { int argc = 0; - cocos2d::Camera* cobj = nullptr; + axis::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -89092,7 +89092,7 @@ int lua_cocos2dx_Camera_clearBackground(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -89127,7 +89127,7 @@ int lua_cocos2dx_Camera_clearBackground(lua_State* tolua_S) int lua_cocos2dx_Camera_setAdditionalProjection(lua_State* tolua_S) { int argc = 0; - cocos2d::Camera* cobj = nullptr; + axis::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -89139,7 +89139,7 @@ int lua_cocos2dx_Camera_setAdditionalProjection(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -89152,7 +89152,7 @@ int lua_cocos2dx_Camera_setAdditionalProjection(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Mat4 arg0; + axis::Mat4 arg0; ok &= luaval_to_mat4(tolua_S, 2, &arg0, "cc.Camera:setAdditionalProjection"); if(!ok) @@ -89177,7 +89177,7 @@ int lua_cocos2dx_Camera_setAdditionalProjection(lua_State* tolua_S) int lua_cocos2dx_Camera_initDefault(lua_State* tolua_S) { int argc = 0; - cocos2d::Camera* cobj = nullptr; + axis::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -89189,7 +89189,7 @@ int lua_cocos2dx_Camera_initDefault(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -89224,7 +89224,7 @@ int lua_cocos2dx_Camera_initDefault(lua_State* tolua_S) int lua_cocos2dx_Camera_setNearPlane(lua_State* tolua_S) { int argc = 0; - cocos2d::Camera* cobj = nullptr; + axis::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -89236,7 +89236,7 @@ int lua_cocos2dx_Camera_setNearPlane(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -89274,7 +89274,7 @@ int lua_cocos2dx_Camera_setNearPlane(lua_State* tolua_S) int lua_cocos2dx_Camera_getAspectRatio(lua_State* tolua_S) { int argc = 0; - cocos2d::Camera* cobj = nullptr; + axis::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -89286,7 +89286,7 @@ int lua_cocos2dx_Camera_getAspectRatio(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -89321,7 +89321,7 @@ int lua_cocos2dx_Camera_getAspectRatio(lua_State* tolua_S) int lua_cocos2dx_Camera_applyZoom(lua_State* tolua_S) { int argc = 0; - cocos2d::Camera* cobj = nullptr; + axis::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -89333,7 +89333,7 @@ int lua_cocos2dx_Camera_applyZoom(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -89368,7 +89368,7 @@ int lua_cocos2dx_Camera_applyZoom(lua_State* tolua_S) int lua_cocos2dx_Camera_setFOV(lua_State* tolua_S) { int argc = 0; - cocos2d::Camera* cobj = nullptr; + axis::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -89380,7 +89380,7 @@ int lua_cocos2dx_Camera_setFOV(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -89418,7 +89418,7 @@ int lua_cocos2dx_Camera_setFOV(lua_State* tolua_S) int lua_cocos2dx_Camera_getCameraFlag(lua_State* tolua_S) { int argc = 0; - cocos2d::Camera* cobj = nullptr; + axis::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -89430,7 +89430,7 @@ int lua_cocos2dx_Camera_getCameraFlag(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -89465,7 +89465,7 @@ int lua_cocos2dx_Camera_getCameraFlag(lua_State* tolua_S) int lua_cocos2dx_Camera_getType(lua_State* tolua_S) { int argc = 0; - cocos2d::Camera* cobj = nullptr; + axis::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -89477,7 +89477,7 @@ int lua_cocos2dx_Camera_getType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -89512,7 +89512,7 @@ int lua_cocos2dx_Camera_getType(lua_State* tolua_S) int lua_cocos2dx_Camera_setZoom(lua_State* tolua_S) { int argc = 0; - cocos2d::Camera* cobj = nullptr; + axis::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -89524,7 +89524,7 @@ int lua_cocos2dx_Camera_setZoom(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -89562,7 +89562,7 @@ int lua_cocos2dx_Camera_setZoom(lua_State* tolua_S) int lua_cocos2dx_Camera_initOrthographic(lua_State* tolua_S) { int argc = 0; - cocos2d::Camera* cobj = nullptr; + axis::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -89574,7 +89574,7 @@ int lua_cocos2dx_Camera_initOrthographic(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -89621,7 +89621,7 @@ int lua_cocos2dx_Camera_initOrthographic(lua_State* tolua_S) int lua_cocos2dx_Camera_getRenderOrder(lua_State* tolua_S) { int argc = 0; - cocos2d::Camera* cobj = nullptr; + axis::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -89633,7 +89633,7 @@ int lua_cocos2dx_Camera_getRenderOrder(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -89668,7 +89668,7 @@ int lua_cocos2dx_Camera_getRenderOrder(lua_State* tolua_S) int lua_cocos2dx_Camera_projectGL(lua_State* tolua_S) { int argc = 0; - cocos2d::Camera* cobj = nullptr; + axis::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -89680,7 +89680,7 @@ int lua_cocos2dx_Camera_projectGL(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -89693,7 +89693,7 @@ int lua_cocos2dx_Camera_projectGL(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec3 arg0; + axis::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.Camera:projectGL"); if(!ok) @@ -89701,7 +89701,7 @@ int lua_cocos2dx_Camera_projectGL(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_projectGL'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->projectGL(arg0); + axis::Vec2 ret = cobj->projectGL(arg0); vec2_to_luaval(tolua_S, ret); return 1; } @@ -89718,7 +89718,7 @@ int lua_cocos2dx_Camera_projectGL(lua_State* tolua_S) int lua_cocos2dx_Camera_isVisibleInFrustum(lua_State* tolua_S) { int argc = 0; - cocos2d::Camera* cobj = nullptr; + axis::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -89730,7 +89730,7 @@ int lua_cocos2dx_Camera_isVisibleInFrustum(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -89743,9 +89743,9 @@ int lua_cocos2dx_Camera_isVisibleInFrustum(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - const cocos2d::AABB* arg0; + const axis::AABB* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.AABB",&arg0, "cc.Camera:isVisibleInFrustum"); + ok &= luaval_to_object(tolua_S, 2, "cc.AABB",&arg0, "cc.Camera:isVisibleInFrustum"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_isVisibleInFrustum'", nullptr); @@ -89768,7 +89768,7 @@ int lua_cocos2dx_Camera_isVisibleInFrustum(lua_State* tolua_S) int lua_cocos2dx_Camera_applyCustomProperties(lua_State* tolua_S) { int argc = 0; - cocos2d::Camera* cobj = nullptr; + axis::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -89780,7 +89780,7 @@ int lua_cocos2dx_Camera_applyCustomProperties(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -89815,7 +89815,7 @@ int lua_cocos2dx_Camera_applyCustomProperties(lua_State* tolua_S) int lua_cocos2dx_Camera_setDepth(lua_State* tolua_S) { int argc = 0; - cocos2d::Camera* cobj = nullptr; + axis::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -89827,7 +89827,7 @@ int lua_cocos2dx_Camera_setDepth(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -89865,7 +89865,7 @@ int lua_cocos2dx_Camera_setDepth(lua_State* tolua_S) int lua_cocos2dx_Camera_setScene(lua_State* tolua_S) { int argc = 0; - cocos2d::Camera* cobj = nullptr; + axis::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -89877,7 +89877,7 @@ int lua_cocos2dx_Camera_setScene(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -89890,9 +89890,9 @@ int lua_cocos2dx_Camera_setScene(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Scene* arg0; + axis::Scene* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Scene",&arg0, "cc.Camera:setScene"); + ok &= luaval_to_object(tolua_S, 2, "cc.Scene",&arg0, "cc.Camera:setScene"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_setScene'", nullptr); @@ -89915,7 +89915,7 @@ int lua_cocos2dx_Camera_setScene(lua_State* tolua_S) int lua_cocos2dx_Camera_getFOV(lua_State* tolua_S) { int argc = 0; - cocos2d::Camera* cobj = nullptr; + axis::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -89927,7 +89927,7 @@ int lua_cocos2dx_Camera_getFOV(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -89962,7 +89962,7 @@ int lua_cocos2dx_Camera_getFOV(lua_State* tolua_S) int lua_cocos2dx_Camera_getViewMatrix(lua_State* tolua_S) { int argc = 0; - cocos2d::Camera* cobj = nullptr; + axis::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -89974,7 +89974,7 @@ int lua_cocos2dx_Camera_getViewMatrix(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -89992,7 +89992,7 @@ int lua_cocos2dx_Camera_getViewMatrix(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_getViewMatrix'", nullptr); return 0; } - const cocos2d::Mat4& ret = cobj->getViewMatrix(); + const axis::Mat4& ret = cobj->getViewMatrix(); mat4_to_luaval(tolua_S, ret); return 1; } @@ -90009,7 +90009,7 @@ int lua_cocos2dx_Camera_getViewMatrix(lua_State* tolua_S) int lua_cocos2dx_Camera_getNearPlane(lua_State* tolua_S) { int argc = 0; - cocos2d::Camera* cobj = nullptr; + axis::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -90021,7 +90021,7 @@ int lua_cocos2dx_Camera_getNearPlane(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -90056,7 +90056,7 @@ int lua_cocos2dx_Camera_getNearPlane(lua_State* tolua_S) int lua_cocos2dx_Camera_project(lua_State* tolua_S) { int argc = 0; - cocos2d::Camera* cobj = nullptr; + axis::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -90068,7 +90068,7 @@ int lua_cocos2dx_Camera_project(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -90081,7 +90081,7 @@ int lua_cocos2dx_Camera_project(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec3 arg0; + axis::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.Camera:project"); if(!ok) @@ -90089,7 +90089,7 @@ int lua_cocos2dx_Camera_project(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_project'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->project(arg0); + axis::Vec2 ret = cobj->project(arg0); vec2_to_luaval(tolua_S, ret); return 1; } @@ -90106,7 +90106,7 @@ int lua_cocos2dx_Camera_project(lua_State* tolua_S) int lua_cocos2dx_Camera_setCameraFlag(lua_State* tolua_S) { int argc = 0; - cocos2d::Camera* cobj = nullptr; + axis::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -90118,7 +90118,7 @@ int lua_cocos2dx_Camera_setCameraFlag(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -90131,7 +90131,7 @@ int lua_cocos2dx_Camera_setCameraFlag(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::CameraFlag arg0; + axis::CameraFlag arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Camera:setCameraFlag"); if(!ok) @@ -90156,7 +90156,7 @@ int lua_cocos2dx_Camera_setCameraFlag(lua_State* tolua_S) int lua_cocos2dx_Camera_getFarPlane(lua_State* tolua_S) { int argc = 0; - cocos2d::Camera* cobj = nullptr; + axis::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -90168,7 +90168,7 @@ int lua_cocos2dx_Camera_getFarPlane(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -90203,7 +90203,7 @@ int lua_cocos2dx_Camera_getFarPlane(lua_State* tolua_S) int lua_cocos2dx_Camera_isViewProjectionUpdated(lua_State* tolua_S) { int argc = 0; - cocos2d::Camera* cobj = nullptr; + axis::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -90215,7 +90215,7 @@ int lua_cocos2dx_Camera_isViewProjectionUpdated(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -90250,7 +90250,7 @@ int lua_cocos2dx_Camera_isViewProjectionUpdated(lua_State* tolua_S) int lua_cocos2dx_Camera_initPerspective(lua_State* tolua_S) { int argc = 0; - cocos2d::Camera* cobj = nullptr; + axis::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -90262,7 +90262,7 @@ int lua_cocos2dx_Camera_initPerspective(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Camera",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Camera*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -90336,8 +90336,8 @@ int lua_cocos2dx_Camera_createOrthographic(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_createOrthographic'", nullptr); return 0; } - cocos2d::Camera* ret = cocos2d::Camera::createOrthographic(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.Camera",(cocos2d::Camera*)ret); + axis::Camera* ret = axis::Camera::createOrthographic(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.Camera",(axis::Camera*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Camera:createOrthographic",argc, 4); @@ -90370,8 +90370,8 @@ int lua_cocos2dx_Camera_getVisitingCamera(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_getVisitingCamera'", nullptr); return 0; } - const cocos2d::Camera* ret = cocos2d::Camera::getVisitingCamera(); - object_to_luaval(tolua_S, "cc.Camera",(cocos2d::Camera*)ret); + const axis::Camera* ret = axis::Camera::getVisitingCamera(); + object_to_luaval(tolua_S, "cc.Camera",(axis::Camera*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Camera:getVisitingCamera",argc, 0); @@ -90404,8 +90404,8 @@ int lua_cocos2dx_Camera_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_create'", nullptr); return 0; } - cocos2d::Camera* ret = cocos2d::Camera::create(); - object_to_luaval(tolua_S, "cc.Camera",(cocos2d::Camera*)ret); + axis::Camera* ret = axis::Camera::create(); + object_to_luaval(tolua_S, "cc.Camera",(axis::Camera*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Camera:create",argc, 0); @@ -90446,8 +90446,8 @@ int lua_cocos2dx_Camera_createPerspective(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_createPerspective'", nullptr); return 0; } - cocos2d::Camera* ret = cocos2d::Camera::createPerspective(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.Camera",(cocos2d::Camera*)ret); + axis::Camera* ret = axis::Camera::createPerspective(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.Camera",(axis::Camera*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Camera:createPerspective",argc, 4); @@ -90480,7 +90480,7 @@ int lua_cocos2dx_Camera_getDefaultViewport(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_getDefaultViewport'", nullptr); return 0; } - const cocos2d::Viewport& ret = cocos2d::Camera::getDefaultViewport(); + const axis::Viewport& ret = axis::Camera::getDefaultViewport(); #pragma warning NO CONVERSION FROM NATIVE FOR Viewport; return 1; } @@ -90509,7 +90509,7 @@ int lua_cocos2dx_Camera_setDefaultViewport(lua_State* tolua_S) if (argc == 1) { - cocos2d::Viewport arg0; + axis::Viewport arg0; #pragma warning NO CONVERSION TO NATIVE FOR Viewport ok = false; if(!ok) @@ -90517,7 +90517,7 @@ int lua_cocos2dx_Camera_setDefaultViewport(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_setDefaultViewport'", nullptr); return 0; } - cocos2d::Camera::setDefaultViewport(arg0); + axis::Camera::setDefaultViewport(arg0); lua_settop(tolua_S, 1); return 1; } @@ -90551,8 +90551,8 @@ int lua_cocos2dx_Camera_getDefaultCamera(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_getDefaultCamera'", nullptr); return 0; } - cocos2d::Camera* ret = cocos2d::Camera::getDefaultCamera(); - object_to_luaval(tolua_S, "cc.Camera",(cocos2d::Camera*)ret); + axis::Camera* ret = axis::Camera::getDefaultCamera(); + object_to_luaval(tolua_S, "cc.Camera",(axis::Camera*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Camera:getDefaultCamera",argc, 0); @@ -90566,7 +90566,7 @@ int lua_cocos2dx_Camera_getDefaultCamera(lua_State* tolua_S) int lua_cocos2dx_Camera_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Camera* cobj = nullptr; + axis::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -90583,7 +90583,7 @@ int lua_cocos2dx_Camera_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Camera_constructor'", nullptr); return 0; } - cobj = new cocos2d::Camera(); + cobj = new axis::Camera(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -90659,7 +90659,7 @@ int lua_register_cocos2dx_Camera(lua_State* tolua_S) tolua_function(tolua_S,"setDefaultViewport", lua_cocos2dx_Camera_setDefaultViewport); tolua_function(tolua_S,"getDefaultCamera", lua_cocos2dx_Camera_getDefaultCamera); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Camera).name(); // rtti is literal storage + auto typeName = typeid(axis::Camera).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Camera"; g_typeCast[typeName] = "cc.Camera"; return 1; @@ -90668,7 +90668,7 @@ int lua_register_cocos2dx_Camera(lua_State* tolua_S) int lua_cocos2dx_CameraBackgroundBrush_getBrushType(lua_State* tolua_S) { int argc = 0; - cocos2d::CameraBackgroundBrush* cobj = nullptr; + axis::CameraBackgroundBrush* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -90680,7 +90680,7 @@ int lua_cocos2dx_CameraBackgroundBrush_getBrushType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.CameraBackgroundBrush",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::CameraBackgroundBrush*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::CameraBackgroundBrush*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -90715,7 +90715,7 @@ int lua_cocos2dx_CameraBackgroundBrush_getBrushType(lua_State* tolua_S) int lua_cocos2dx_CameraBackgroundBrush_drawBackground(lua_State* tolua_S) { int argc = 0; - cocos2d::CameraBackgroundBrush* cobj = nullptr; + axis::CameraBackgroundBrush* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -90727,7 +90727,7 @@ int lua_cocos2dx_CameraBackgroundBrush_drawBackground(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.CameraBackgroundBrush",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::CameraBackgroundBrush*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::CameraBackgroundBrush*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -90740,9 +90740,9 @@ int lua_cocos2dx_CameraBackgroundBrush_drawBackground(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Camera* arg0; + axis::Camera* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Camera",&arg0, "cc.CameraBackgroundBrush:drawBackground"); + ok &= luaval_to_object(tolua_S, 2, "cc.Camera",&arg0, "cc.CameraBackgroundBrush:drawBackground"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CameraBackgroundBrush_drawBackground'", nullptr); @@ -90765,7 +90765,7 @@ int lua_cocos2dx_CameraBackgroundBrush_drawBackground(lua_State* tolua_S) int lua_cocos2dx_CameraBackgroundBrush_init(lua_State* tolua_S) { int argc = 0; - cocos2d::CameraBackgroundBrush* cobj = nullptr; + axis::CameraBackgroundBrush* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -90777,7 +90777,7 @@ int lua_cocos2dx_CameraBackgroundBrush_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.CameraBackgroundBrush",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::CameraBackgroundBrush*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::CameraBackgroundBrush*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -90812,7 +90812,7 @@ int lua_cocos2dx_CameraBackgroundBrush_init(lua_State* tolua_S) int lua_cocos2dx_CameraBackgroundBrush_isValid(lua_State* tolua_S) { int argc = 0; - cocos2d::CameraBackgroundBrush* cobj = nullptr; + axis::CameraBackgroundBrush* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -90824,7 +90824,7 @@ int lua_cocos2dx_CameraBackgroundBrush_isValid(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.CameraBackgroundBrush",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::CameraBackgroundBrush*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::CameraBackgroundBrush*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -90890,8 +90890,8 @@ int lua_cocos2dx_CameraBackgroundBrush_createSkyboxBrush(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CameraBackgroundBrush_createSkyboxBrush'", nullptr); return 0; } - cocos2d::CameraBackgroundSkyBoxBrush* ret = cocos2d::CameraBackgroundBrush::createSkyboxBrush(arg0, arg1, arg2, arg3, arg4, arg5); - object_to_luaval(tolua_S, "cc.CameraBackgroundSkyBoxBrush",(cocos2d::CameraBackgroundSkyBoxBrush*)ret); + axis::CameraBackgroundSkyBoxBrush* ret = axis::CameraBackgroundBrush::createSkyboxBrush(arg0, arg1, arg2, arg3, arg4, arg5); + object_to_luaval(tolua_S, "cc.CameraBackgroundSkyBoxBrush",(axis::CameraBackgroundSkyBoxBrush*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.CameraBackgroundBrush:createSkyboxBrush",argc, 6); @@ -90919,7 +90919,7 @@ int lua_cocos2dx_CameraBackgroundBrush_createColorBrush(lua_State* tolua_S) if (argc == 2) { - cocos2d::Color4F arg0; + axis::Color4F arg0; double arg1; ok &=luaval_to_color4f(tolua_S, 2, &arg0, "cc.CameraBackgroundBrush:createColorBrush"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.CameraBackgroundBrush:createColorBrush"); @@ -90928,8 +90928,8 @@ int lua_cocos2dx_CameraBackgroundBrush_createColorBrush(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CameraBackgroundBrush_createColorBrush'", nullptr); return 0; } - cocos2d::CameraBackgroundColorBrush* ret = cocos2d::CameraBackgroundBrush::createColorBrush(arg0, arg1); - object_to_luaval(tolua_S, "cc.CameraBackgroundColorBrush",(cocos2d::CameraBackgroundColorBrush*)ret); + axis::CameraBackgroundColorBrush* ret = axis::CameraBackgroundBrush::createColorBrush(arg0, arg1); + object_to_luaval(tolua_S, "cc.CameraBackgroundColorBrush",(axis::CameraBackgroundColorBrush*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.CameraBackgroundBrush:createColorBrush",argc, 2); @@ -90962,8 +90962,8 @@ int lua_cocos2dx_CameraBackgroundBrush_createNoneBrush(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CameraBackgroundBrush_createNoneBrush'", nullptr); return 0; } - cocos2d::CameraBackgroundBrush* ret = cocos2d::CameraBackgroundBrush::createNoneBrush(); - object_to_luaval(tolua_S, "cc.CameraBackgroundBrush",(cocos2d::CameraBackgroundBrush*)ret); + axis::CameraBackgroundBrush* ret = axis::CameraBackgroundBrush::createNoneBrush(); + object_to_luaval(tolua_S, "cc.CameraBackgroundBrush",(axis::CameraBackgroundBrush*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.CameraBackgroundBrush:createNoneBrush",argc, 0); @@ -90996,8 +90996,8 @@ int lua_cocos2dx_CameraBackgroundBrush_createDepthBrush(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CameraBackgroundBrush_createDepthBrush'", nullptr); return 0; } - cocos2d::CameraBackgroundDepthBrush* ret = cocos2d::CameraBackgroundBrush::createDepthBrush(); - object_to_luaval(tolua_S, "cc.CameraBackgroundDepthBrush",(cocos2d::CameraBackgroundDepthBrush*)ret); + axis::CameraBackgroundDepthBrush* ret = axis::CameraBackgroundBrush::createDepthBrush(); + object_to_luaval(tolua_S, "cc.CameraBackgroundDepthBrush",(axis::CameraBackgroundDepthBrush*)ret); return 1; } if (argc == 1) @@ -91009,8 +91009,8 @@ int lua_cocos2dx_CameraBackgroundBrush_createDepthBrush(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CameraBackgroundBrush_createDepthBrush'", nullptr); return 0; } - cocos2d::CameraBackgroundDepthBrush* ret = cocos2d::CameraBackgroundBrush::createDepthBrush(arg0); - object_to_luaval(tolua_S, "cc.CameraBackgroundDepthBrush",(cocos2d::CameraBackgroundDepthBrush*)ret); + axis::CameraBackgroundDepthBrush* ret = axis::CameraBackgroundBrush::createDepthBrush(arg0); + object_to_luaval(tolua_S, "cc.CameraBackgroundDepthBrush",(axis::CameraBackgroundDepthBrush*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.CameraBackgroundBrush:createDepthBrush",argc, 0); @@ -91024,7 +91024,7 @@ int lua_cocos2dx_CameraBackgroundBrush_createDepthBrush(lua_State* tolua_S) int lua_cocos2dx_CameraBackgroundBrush_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::CameraBackgroundBrush* cobj = nullptr; + axis::CameraBackgroundBrush* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -91041,7 +91041,7 @@ int lua_cocos2dx_CameraBackgroundBrush_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CameraBackgroundBrush_constructor'", nullptr); return 0; } - cobj = new cocos2d::CameraBackgroundBrush(); + cobj = new axis::CameraBackgroundBrush(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -91080,7 +91080,7 @@ int lua_register_cocos2dx_CameraBackgroundBrush(lua_State* tolua_S) tolua_function(tolua_S,"createNoneBrush", lua_cocos2dx_CameraBackgroundBrush_createNoneBrush); tolua_function(tolua_S,"createDepthBrush", lua_cocos2dx_CameraBackgroundBrush_createDepthBrush); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::CameraBackgroundBrush).name(); // rtti is literal storage + auto typeName = typeid(axis::CameraBackgroundBrush).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.CameraBackgroundBrush"; g_typeCast[typeName] = "cc.CameraBackgroundBrush"; return 1; @@ -91089,7 +91089,7 @@ int lua_register_cocos2dx_CameraBackgroundBrush(lua_State* tolua_S) int lua_cocos2dx_CameraBackgroundDepthBrush_setDepth(lua_State* tolua_S) { int argc = 0; - cocos2d::CameraBackgroundDepthBrush* cobj = nullptr; + axis::CameraBackgroundDepthBrush* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -91101,7 +91101,7 @@ int lua_cocos2dx_CameraBackgroundDepthBrush_setDepth(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.CameraBackgroundDepthBrush",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::CameraBackgroundDepthBrush*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::CameraBackgroundDepthBrush*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -91160,8 +91160,8 @@ int lua_cocos2dx_CameraBackgroundDepthBrush_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CameraBackgroundDepthBrush_create'", nullptr); return 0; } - cocos2d::CameraBackgroundDepthBrush* ret = cocos2d::CameraBackgroundDepthBrush::create(arg0); - object_to_luaval(tolua_S, "cc.CameraBackgroundDepthBrush",(cocos2d::CameraBackgroundDepthBrush*)ret); + axis::CameraBackgroundDepthBrush* ret = axis::CameraBackgroundDepthBrush::create(arg0); + object_to_luaval(tolua_S, "cc.CameraBackgroundDepthBrush",(axis::CameraBackgroundDepthBrush*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.CameraBackgroundDepthBrush:create",argc, 1); @@ -91175,7 +91175,7 @@ int lua_cocos2dx_CameraBackgroundDepthBrush_create(lua_State* tolua_S) int lua_cocos2dx_CameraBackgroundDepthBrush_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::CameraBackgroundDepthBrush* cobj = nullptr; + axis::CameraBackgroundDepthBrush* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -91192,7 +91192,7 @@ int lua_cocos2dx_CameraBackgroundDepthBrush_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CameraBackgroundDepthBrush_constructor'", nullptr); return 0; } - cobj = new cocos2d::CameraBackgroundDepthBrush(); + cobj = new axis::CameraBackgroundDepthBrush(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -91225,7 +91225,7 @@ int lua_register_cocos2dx_CameraBackgroundDepthBrush(lua_State* tolua_S) tolua_function(tolua_S,"setDepth",lua_cocos2dx_CameraBackgroundDepthBrush_setDepth); tolua_function(tolua_S,"create", lua_cocos2dx_CameraBackgroundDepthBrush_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::CameraBackgroundDepthBrush).name(); // rtti is literal storage + auto typeName = typeid(axis::CameraBackgroundDepthBrush).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.CameraBackgroundDepthBrush"; g_typeCast[typeName] = "cc.CameraBackgroundDepthBrush"; return 1; @@ -91234,7 +91234,7 @@ int lua_register_cocos2dx_CameraBackgroundDepthBrush(lua_State* tolua_S) int lua_cocos2dx_CameraBackgroundColorBrush_setColor(lua_State* tolua_S) { int argc = 0; - cocos2d::CameraBackgroundColorBrush* cobj = nullptr; + axis::CameraBackgroundColorBrush* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -91246,7 +91246,7 @@ int lua_cocos2dx_CameraBackgroundColorBrush_setColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.CameraBackgroundColorBrush",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::CameraBackgroundColorBrush*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::CameraBackgroundColorBrush*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -91259,7 +91259,7 @@ int lua_cocos2dx_CameraBackgroundColorBrush_setColor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Color4F arg0; + axis::Color4F arg0; ok &=luaval_to_color4f(tolua_S, 2, &arg0, "cc.CameraBackgroundColorBrush:setColor"); if(!ok) @@ -91298,7 +91298,7 @@ int lua_cocos2dx_CameraBackgroundColorBrush_create(lua_State* tolua_S) if (argc == 2) { - cocos2d::Color4F arg0; + axis::Color4F arg0; double arg1; ok &=luaval_to_color4f(tolua_S, 2, &arg0, "cc.CameraBackgroundColorBrush:create"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.CameraBackgroundColorBrush:create"); @@ -91307,8 +91307,8 @@ int lua_cocos2dx_CameraBackgroundColorBrush_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CameraBackgroundColorBrush_create'", nullptr); return 0; } - cocos2d::CameraBackgroundColorBrush* ret = cocos2d::CameraBackgroundColorBrush::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.CameraBackgroundColorBrush",(cocos2d::CameraBackgroundColorBrush*)ret); + axis::CameraBackgroundColorBrush* ret = axis::CameraBackgroundColorBrush::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.CameraBackgroundColorBrush",(axis::CameraBackgroundColorBrush*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.CameraBackgroundColorBrush:create",argc, 2); @@ -91322,7 +91322,7 @@ int lua_cocos2dx_CameraBackgroundColorBrush_create(lua_State* tolua_S) int lua_cocos2dx_CameraBackgroundColorBrush_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::CameraBackgroundColorBrush* cobj = nullptr; + axis::CameraBackgroundColorBrush* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -91339,7 +91339,7 @@ int lua_cocos2dx_CameraBackgroundColorBrush_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CameraBackgroundColorBrush_constructor'", nullptr); return 0; } - cobj = new cocos2d::CameraBackgroundColorBrush(); + cobj = new axis::CameraBackgroundColorBrush(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -91372,7 +91372,7 @@ int lua_register_cocos2dx_CameraBackgroundColorBrush(lua_State* tolua_S) tolua_function(tolua_S,"setColor",lua_cocos2dx_CameraBackgroundColorBrush_setColor); tolua_function(tolua_S,"create", lua_cocos2dx_CameraBackgroundColorBrush_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::CameraBackgroundColorBrush).name(); // rtti is literal storage + auto typeName = typeid(axis::CameraBackgroundColorBrush).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.CameraBackgroundColorBrush"; g_typeCast[typeName] = "cc.CameraBackgroundColorBrush"; return 1; @@ -91381,7 +91381,7 @@ int lua_register_cocos2dx_CameraBackgroundColorBrush(lua_State* tolua_S) int lua_cocos2dx_CameraBackgroundSkyBoxBrush_setTexture(lua_State* tolua_S) { int argc = 0; - cocos2d::CameraBackgroundSkyBoxBrush* cobj = nullptr; + axis::CameraBackgroundSkyBoxBrush* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -91393,7 +91393,7 @@ int lua_cocos2dx_CameraBackgroundSkyBoxBrush_setTexture(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.CameraBackgroundSkyBoxBrush",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::CameraBackgroundSkyBoxBrush*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::CameraBackgroundSkyBoxBrush*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -91406,9 +91406,9 @@ int lua_cocos2dx_CameraBackgroundSkyBoxBrush_setTexture(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::TextureCube* arg0; + axis::TextureCube* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.TextureCube",&arg0, "cc.CameraBackgroundSkyBoxBrush:setTexture"); + ok &= luaval_to_object(tolua_S, 2, "cc.TextureCube",&arg0, "cc.CameraBackgroundSkyBoxBrush:setTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CameraBackgroundSkyBoxBrush_setTexture'", nullptr); @@ -91431,7 +91431,7 @@ int lua_cocos2dx_CameraBackgroundSkyBoxBrush_setTexture(lua_State* tolua_S) int lua_cocos2dx_CameraBackgroundSkyBoxBrush_getTexture(lua_State* tolua_S) { int argc = 0; - cocos2d::CameraBackgroundSkyBoxBrush* cobj = nullptr; + axis::CameraBackgroundSkyBoxBrush* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -91443,7 +91443,7 @@ int lua_cocos2dx_CameraBackgroundSkyBoxBrush_getTexture(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.CameraBackgroundSkyBoxBrush",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::CameraBackgroundSkyBoxBrush*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::CameraBackgroundSkyBoxBrush*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -91461,8 +91461,8 @@ int lua_cocos2dx_CameraBackgroundSkyBoxBrush_getTexture(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CameraBackgroundSkyBoxBrush_getTexture'", nullptr); return 0; } - cocos2d::TextureCube* ret = cobj->getTexture(); - object_to_luaval(tolua_S, "cc.TextureCube",(cocos2d::TextureCube*)ret); + axis::TextureCube* ret = cobj->getTexture(); + object_to_luaval(tolua_S, "cc.TextureCube",(axis::TextureCube*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CameraBackgroundSkyBoxBrush:getTexture",argc, 0); @@ -91478,7 +91478,7 @@ int lua_cocos2dx_CameraBackgroundSkyBoxBrush_getTexture(lua_State* tolua_S) int lua_cocos2dx_CameraBackgroundSkyBoxBrush_isActived(lua_State* tolua_S) { int argc = 0; - cocos2d::CameraBackgroundSkyBoxBrush* cobj = nullptr; + axis::CameraBackgroundSkyBoxBrush* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -91490,7 +91490,7 @@ int lua_cocos2dx_CameraBackgroundSkyBoxBrush_isActived(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.CameraBackgroundSkyBoxBrush",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::CameraBackgroundSkyBoxBrush*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::CameraBackgroundSkyBoxBrush*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -91525,7 +91525,7 @@ int lua_cocos2dx_CameraBackgroundSkyBoxBrush_isActived(lua_State* tolua_S) int lua_cocos2dx_CameraBackgroundSkyBoxBrush_setTextureValid(lua_State* tolua_S) { int argc = 0; - cocos2d::CameraBackgroundSkyBoxBrush* cobj = nullptr; + axis::CameraBackgroundSkyBoxBrush* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -91537,7 +91537,7 @@ int lua_cocos2dx_CameraBackgroundSkyBoxBrush_setTextureValid(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.CameraBackgroundSkyBoxBrush",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::CameraBackgroundSkyBoxBrush*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::CameraBackgroundSkyBoxBrush*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -91575,7 +91575,7 @@ int lua_cocos2dx_CameraBackgroundSkyBoxBrush_setTextureValid(lua_State* tolua_S) int lua_cocos2dx_CameraBackgroundSkyBoxBrush_setActived(lua_State* tolua_S) { int argc = 0; - cocos2d::CameraBackgroundSkyBoxBrush* cobj = nullptr; + axis::CameraBackgroundSkyBoxBrush* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -91587,7 +91587,7 @@ int lua_cocos2dx_CameraBackgroundSkyBoxBrush_setActived(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.CameraBackgroundSkyBoxBrush",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::CameraBackgroundSkyBoxBrush*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::CameraBackgroundSkyBoxBrush*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -91640,8 +91640,8 @@ int lua_cocos2dx_CameraBackgroundSkyBoxBrush_create(lua_State* tolua_S) { if (argc == 0) { - cocos2d::CameraBackgroundSkyBoxBrush* ret = cocos2d::CameraBackgroundSkyBoxBrush::create(); - object_to_luaval(tolua_S, "cc.CameraBackgroundSkyBoxBrush",(cocos2d::CameraBackgroundSkyBoxBrush*)ret); + axis::CameraBackgroundSkyBoxBrush* ret = axis::CameraBackgroundSkyBoxBrush::create(); + object_to_luaval(tolua_S, "cc.CameraBackgroundSkyBoxBrush",(axis::CameraBackgroundSkyBoxBrush*)ret); return 1; } } while (0); @@ -91668,8 +91668,8 @@ int lua_cocos2dx_CameraBackgroundSkyBoxBrush_create(lua_State* tolua_S) std::string_view arg5; ok &= luaval_to_std_string_view(tolua_S, 7,&arg5, "cc.CameraBackgroundSkyBoxBrush:create"); if (!ok) { break; } - cocos2d::CameraBackgroundSkyBoxBrush* ret = cocos2d::CameraBackgroundSkyBoxBrush::create(arg0, arg1, arg2, arg3, arg4, arg5); - object_to_luaval(tolua_S, "cc.CameraBackgroundSkyBoxBrush",(cocos2d::CameraBackgroundSkyBoxBrush*)ret); + axis::CameraBackgroundSkyBoxBrush* ret = axis::CameraBackgroundSkyBoxBrush::create(arg0, arg1, arg2, arg3, arg4, arg5); + object_to_luaval(tolua_S, "cc.CameraBackgroundSkyBoxBrush",(axis::CameraBackgroundSkyBoxBrush*)ret); return 1; } } while (0); @@ -91685,7 +91685,7 @@ int lua_cocos2dx_CameraBackgroundSkyBoxBrush_create(lua_State* tolua_S) int lua_cocos2dx_CameraBackgroundSkyBoxBrush_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::CameraBackgroundSkyBoxBrush* cobj = nullptr; + axis::CameraBackgroundSkyBoxBrush* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -91702,7 +91702,7 @@ int lua_cocos2dx_CameraBackgroundSkyBoxBrush_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_CameraBackgroundSkyBoxBrush_constructor'", nullptr); return 0; } - cobj = new cocos2d::CameraBackgroundSkyBoxBrush(); + cobj = new axis::CameraBackgroundSkyBoxBrush(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -91739,7 +91739,7 @@ int lua_register_cocos2dx_CameraBackgroundSkyBoxBrush(lua_State* tolua_S) tolua_function(tolua_S,"setActived",lua_cocos2dx_CameraBackgroundSkyBoxBrush_setActived); tolua_function(tolua_S,"create", lua_cocos2dx_CameraBackgroundSkyBoxBrush_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::CameraBackgroundSkyBoxBrush).name(); // rtti is literal storage + auto typeName = typeid(axis::CameraBackgroundSkyBoxBrush).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.CameraBackgroundSkyBoxBrush"; g_typeCast[typeName] = "cc.CameraBackgroundSkyBoxBrush"; return 1; @@ -91748,7 +91748,7 @@ int lua_register_cocos2dx_CameraBackgroundSkyBoxBrush(lua_State* tolua_S) int lua_cocos2dx_GridBase_setGridSize(lua_State* tolua_S) { int argc = 0; - cocos2d::GridBase* cobj = nullptr; + axis::GridBase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -91760,7 +91760,7 @@ int lua_cocos2dx_GridBase_setGridSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GridBase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -91773,7 +91773,7 @@ int lua_cocos2dx_GridBase_setGridSize(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.GridBase:setGridSize"); if(!ok) @@ -91798,7 +91798,7 @@ int lua_cocos2dx_GridBase_setGridSize(lua_State* tolua_S) int lua_cocos2dx_GridBase_setGridRect(lua_State* tolua_S) { int argc = 0; - cocos2d::GridBase* cobj = nullptr; + axis::GridBase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -91810,7 +91810,7 @@ int lua_cocos2dx_GridBase_setGridRect(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GridBase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -91823,7 +91823,7 @@ int lua_cocos2dx_GridBase_setGridRect(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Rect arg0; + axis::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "cc.GridBase:setGridRect"); if(!ok) @@ -91848,7 +91848,7 @@ int lua_cocos2dx_GridBase_setGridRect(lua_State* tolua_S) int lua_cocos2dx_GridBase_calculateVertexPoints(lua_State* tolua_S) { int argc = 0; - cocos2d::GridBase* cobj = nullptr; + axis::GridBase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -91860,7 +91860,7 @@ int lua_cocos2dx_GridBase_calculateVertexPoints(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GridBase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -91895,7 +91895,7 @@ int lua_cocos2dx_GridBase_calculateVertexPoints(lua_State* tolua_S) int lua_cocos2dx_GridBase_reuse(lua_State* tolua_S) { int argc = 0; - cocos2d::GridBase* cobj = nullptr; + axis::GridBase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -91907,7 +91907,7 @@ int lua_cocos2dx_GridBase_reuse(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GridBase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -91942,7 +91942,7 @@ int lua_cocos2dx_GridBase_reuse(lua_State* tolua_S) int lua_cocos2dx_GridBase_beforeDraw(lua_State* tolua_S) { int argc = 0; - cocos2d::GridBase* cobj = nullptr; + axis::GridBase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -91954,7 +91954,7 @@ int lua_cocos2dx_GridBase_beforeDraw(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GridBase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -91989,7 +91989,7 @@ int lua_cocos2dx_GridBase_beforeDraw(lua_State* tolua_S) int lua_cocos2dx_GridBase_getGridRect(lua_State* tolua_S) { int argc = 0; - cocos2d::GridBase* cobj = nullptr; + axis::GridBase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -92001,7 +92001,7 @@ int lua_cocos2dx_GridBase_getGridRect(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GridBase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -92019,7 +92019,7 @@ int lua_cocos2dx_GridBase_getGridRect(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GridBase_getGridRect'", nullptr); return 0; } - const cocos2d::Rect& ret = cobj->getGridRect(); + const axis::Rect& ret = cobj->getGridRect(); rect_to_luaval(tolua_S, ret); return 1; } @@ -92036,7 +92036,7 @@ int lua_cocos2dx_GridBase_getGridRect(lua_State* tolua_S) int lua_cocos2dx_GridBase_isTextureFlipped(lua_State* tolua_S) { int argc = 0; - cocos2d::GridBase* cobj = nullptr; + axis::GridBase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -92048,7 +92048,7 @@ int lua_cocos2dx_GridBase_isTextureFlipped(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GridBase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -92083,7 +92083,7 @@ int lua_cocos2dx_GridBase_isTextureFlipped(lua_State* tolua_S) int lua_cocos2dx_GridBase_getGridSize(lua_State* tolua_S) { int argc = 0; - cocos2d::GridBase* cobj = nullptr; + axis::GridBase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -92095,7 +92095,7 @@ int lua_cocos2dx_GridBase_getGridSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GridBase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -92113,7 +92113,7 @@ int lua_cocos2dx_GridBase_getGridSize(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GridBase_getGridSize'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getGridSize(); + const axis::Vec2& ret = cobj->getGridSize(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -92130,7 +92130,7 @@ int lua_cocos2dx_GridBase_getGridSize(lua_State* tolua_S) int lua_cocos2dx_GridBase_afterBlit(lua_State* tolua_S) { int argc = 0; - cocos2d::GridBase* cobj = nullptr; + axis::GridBase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -92142,7 +92142,7 @@ int lua_cocos2dx_GridBase_afterBlit(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GridBase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -92177,7 +92177,7 @@ int lua_cocos2dx_GridBase_afterBlit(lua_State* tolua_S) int lua_cocos2dx_GridBase_set2DProjection(lua_State* tolua_S) { int argc = 0; - cocos2d::GridBase* cobj = nullptr; + axis::GridBase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -92189,7 +92189,7 @@ int lua_cocos2dx_GridBase_set2DProjection(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GridBase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -92224,7 +92224,7 @@ int lua_cocos2dx_GridBase_set2DProjection(lua_State* tolua_S) int lua_cocos2dx_GridBase_getStep(lua_State* tolua_S) { int argc = 0; - cocos2d::GridBase* cobj = nullptr; + axis::GridBase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -92236,7 +92236,7 @@ int lua_cocos2dx_GridBase_getStep(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GridBase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -92254,7 +92254,7 @@ int lua_cocos2dx_GridBase_getStep(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GridBase_getStep'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getStep(); + const axis::Vec2& ret = cobj->getStep(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -92271,7 +92271,7 @@ int lua_cocos2dx_GridBase_getStep(lua_State* tolua_S) int lua_cocos2dx_GridBase_setStep(lua_State* tolua_S) { int argc = 0; - cocos2d::GridBase* cobj = nullptr; + axis::GridBase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -92283,7 +92283,7 @@ int lua_cocos2dx_GridBase_setStep(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GridBase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -92296,7 +92296,7 @@ int lua_cocos2dx_GridBase_setStep(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.GridBase:setStep"); if(!ok) @@ -92321,7 +92321,7 @@ int lua_cocos2dx_GridBase_setStep(lua_State* tolua_S) int lua_cocos2dx_GridBase_setTextureFlipped(lua_State* tolua_S) { int argc = 0; - cocos2d::GridBase* cobj = nullptr; + axis::GridBase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -92333,7 +92333,7 @@ int lua_cocos2dx_GridBase_setTextureFlipped(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GridBase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -92371,7 +92371,7 @@ int lua_cocos2dx_GridBase_setTextureFlipped(lua_State* tolua_S) int lua_cocos2dx_GridBase_blit(lua_State* tolua_S) { int argc = 0; - cocos2d::GridBase* cobj = nullptr; + axis::GridBase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -92383,7 +92383,7 @@ int lua_cocos2dx_GridBase_blit(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GridBase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -92418,7 +92418,7 @@ int lua_cocos2dx_GridBase_blit(lua_State* tolua_S) int lua_cocos2dx_GridBase_setActive(lua_State* tolua_S) { int argc = 0; - cocos2d::GridBase* cobj = nullptr; + axis::GridBase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -92430,7 +92430,7 @@ int lua_cocos2dx_GridBase_setActive(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GridBase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -92468,7 +92468,7 @@ int lua_cocos2dx_GridBase_setActive(lua_State* tolua_S) int lua_cocos2dx_GridBase_getReuseGrid(lua_State* tolua_S) { int argc = 0; - cocos2d::GridBase* cobj = nullptr; + axis::GridBase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -92480,7 +92480,7 @@ int lua_cocos2dx_GridBase_getReuseGrid(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GridBase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -92515,7 +92515,7 @@ int lua_cocos2dx_GridBase_getReuseGrid(lua_State* tolua_S) int lua_cocos2dx_GridBase_initWithSize(lua_State* tolua_S) { int argc = 0; - cocos2d::GridBase* cobj = nullptr; + axis::GridBase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -92524,7 +92524,7 @@ int lua_cocos2dx_GridBase_initWithSize(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GridBase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -92535,11 +92535,11 @@ int lua_cocos2dx_GridBase_initWithSize(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.GridBase:initWithSize"); if (!ok) { break; } - cocos2d::Rect arg1; + axis::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.GridBase:initWithSize"); if (!ok) { break; } @@ -92551,7 +92551,7 @@ int lua_cocos2dx_GridBase_initWithSize(lua_State* tolua_S) ok = true; do{ if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.GridBase:initWithSize"); if (!ok) { break; } @@ -92563,12 +92563,12 @@ int lua_cocos2dx_GridBase_initWithSize(lua_State* tolua_S) ok = true; do{ if (argc == 3) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.GridBase:initWithSize"); if (!ok) { break; } - cocos2d::Texture2D* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Texture2D",&arg1, "cc.GridBase:initWithSize"); + axis::Texture2D* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Texture2D",&arg1, "cc.GridBase:initWithSize"); if (!ok) { break; } bool arg2; @@ -92583,19 +92583,19 @@ int lua_cocos2dx_GridBase_initWithSize(lua_State* tolua_S) ok = true; do{ if (argc == 4) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.GridBase:initWithSize"); if (!ok) { break; } - cocos2d::Texture2D* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Texture2D",&arg1, "cc.GridBase:initWithSize"); + axis::Texture2D* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Texture2D",&arg1, "cc.GridBase:initWithSize"); if (!ok) { break; } bool arg2; ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.GridBase:initWithSize"); if (!ok) { break; } - cocos2d::Rect arg3; + axis::Rect arg3; ok &= luaval_to_rect(tolua_S, 5, &arg3, "cc.GridBase:initWithSize"); if (!ok) { break; } @@ -92618,7 +92618,7 @@ int lua_cocos2dx_GridBase_initWithSize(lua_State* tolua_S) int lua_cocos2dx_GridBase_beforeBlit(lua_State* tolua_S) { int argc = 0; - cocos2d::GridBase* cobj = nullptr; + axis::GridBase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -92630,7 +92630,7 @@ int lua_cocos2dx_GridBase_beforeBlit(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GridBase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -92665,7 +92665,7 @@ int lua_cocos2dx_GridBase_beforeBlit(lua_State* tolua_S) int lua_cocos2dx_GridBase_setReuseGrid(lua_State* tolua_S) { int argc = 0; - cocos2d::GridBase* cobj = nullptr; + axis::GridBase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -92677,7 +92677,7 @@ int lua_cocos2dx_GridBase_setReuseGrid(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GridBase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -92715,7 +92715,7 @@ int lua_cocos2dx_GridBase_setReuseGrid(lua_State* tolua_S) int lua_cocos2dx_GridBase_isActive(lua_State* tolua_S) { int argc = 0; - cocos2d::GridBase* cobj = nullptr; + axis::GridBase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -92727,7 +92727,7 @@ int lua_cocos2dx_GridBase_isActive(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GridBase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -92762,7 +92762,7 @@ int lua_cocos2dx_GridBase_isActive(lua_State* tolua_S) int lua_cocos2dx_GridBase_afterDraw(lua_State* tolua_S) { int argc = 0; - cocos2d::GridBase* cobj = nullptr; + axis::GridBase* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -92774,7 +92774,7 @@ int lua_cocos2dx_GridBase_afterDraw(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.GridBase",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::GridBase*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::GridBase*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -92787,9 +92787,9 @@ int lua_cocos2dx_GridBase_afterDraw(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Node* arg0; + axis::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.GridBase:afterDraw"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.GridBase:afterDraw"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GridBase_afterDraw'", nullptr); @@ -92843,7 +92843,7 @@ int lua_register_cocos2dx_GridBase(lua_State* tolua_S) tolua_function(tolua_S,"isActive",lua_cocos2dx_GridBase_isActive); tolua_function(tolua_S,"afterDraw",lua_cocos2dx_GridBase_afterDraw); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::GridBase).name(); // rtti is literal storage + auto typeName = typeid(axis::GridBase).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.GridBase"; g_typeCast[typeName] = "cc.GridBase"; return 1; @@ -92852,7 +92852,7 @@ int lua_register_cocos2dx_GridBase(lua_State* tolua_S) int lua_cocos2dx_Grid3D_getNeedDepthTestForBlit(lua_State* tolua_S) { int argc = 0; - cocos2d::Grid3D* cobj = nullptr; + axis::Grid3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -92864,7 +92864,7 @@ int lua_cocos2dx_Grid3D_getNeedDepthTestForBlit(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Grid3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Grid3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Grid3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -92899,7 +92899,7 @@ int lua_cocos2dx_Grid3D_getNeedDepthTestForBlit(lua_State* tolua_S) int lua_cocos2dx_Grid3D_setNeedDepthTestForBlit(lua_State* tolua_S) { int argc = 0; - cocos2d::Grid3D* cobj = nullptr; + axis::Grid3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -92911,7 +92911,7 @@ int lua_cocos2dx_Grid3D_setNeedDepthTestForBlit(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Grid3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Grid3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Grid3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -92964,14 +92964,14 @@ int lua_cocos2dx_Grid3D_create(lua_State* tolua_S) { if (argc == 2) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Grid3D:create"); if (!ok) { break; } - cocos2d::Rect arg1; + axis::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.Grid3D:create"); if (!ok) { break; } - cocos2d::Grid3D* ret = cocos2d::Grid3D::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.Grid3D",(cocos2d::Grid3D*)ret); + axis::Grid3D* ret = axis::Grid3D::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.Grid3D",(axis::Grid3D*)ret); return 1; } } while (0); @@ -92980,11 +92980,11 @@ int lua_cocos2dx_Grid3D_create(lua_State* tolua_S) { if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Grid3D:create"); if (!ok) { break; } - cocos2d::Grid3D* ret = cocos2d::Grid3D::create(arg0); - object_to_luaval(tolua_S, "cc.Grid3D",(cocos2d::Grid3D*)ret); + axis::Grid3D* ret = axis::Grid3D::create(arg0); + object_to_luaval(tolua_S, "cc.Grid3D",(axis::Grid3D*)ret); return 1; } } while (0); @@ -92993,17 +92993,17 @@ int lua_cocos2dx_Grid3D_create(lua_State* tolua_S) { if (argc == 3) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Grid3D:create"); if (!ok) { break; } - cocos2d::Texture2D* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Texture2D",&arg1, "cc.Grid3D:create"); + axis::Texture2D* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Texture2D",&arg1, "cc.Grid3D:create"); if (!ok) { break; } bool arg2; ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.Grid3D:create"); if (!ok) { break; } - cocos2d::Grid3D* ret = cocos2d::Grid3D::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.Grid3D",(cocos2d::Grid3D*)ret); + axis::Grid3D* ret = axis::Grid3D::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.Grid3D",(axis::Grid3D*)ret); return 1; } } while (0); @@ -93012,20 +93012,20 @@ int lua_cocos2dx_Grid3D_create(lua_State* tolua_S) { if (argc == 4) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.Grid3D:create"); if (!ok) { break; } - cocos2d::Texture2D* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Texture2D",&arg1, "cc.Grid3D:create"); + axis::Texture2D* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Texture2D",&arg1, "cc.Grid3D:create"); if (!ok) { break; } bool arg2; ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.Grid3D:create"); if (!ok) { break; } - cocos2d::Rect arg3; + axis::Rect arg3; ok &= luaval_to_rect(tolua_S, 5, &arg3, "cc.Grid3D:create"); if (!ok) { break; } - cocos2d::Grid3D* ret = cocos2d::Grid3D::create(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.Grid3D",(cocos2d::Grid3D*)ret); + axis::Grid3D* ret = axis::Grid3D::create(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.Grid3D",(axis::Grid3D*)ret); return 1; } } while (0); @@ -93041,7 +93041,7 @@ int lua_cocos2dx_Grid3D_create(lua_State* tolua_S) int lua_cocos2dx_Grid3D_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Grid3D* cobj = nullptr; + axis::Grid3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -93058,7 +93058,7 @@ int lua_cocos2dx_Grid3D_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Grid3D_constructor'", nullptr); return 0; } - cobj = new cocos2d::Grid3D(); + cobj = new axis::Grid3D(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -93092,7 +93092,7 @@ int lua_register_cocos2dx_Grid3D(lua_State* tolua_S) tolua_function(tolua_S,"setNeedDepthTestForBlit",lua_cocos2dx_Grid3D_setNeedDepthTestForBlit); tolua_function(tolua_S,"create", lua_cocos2dx_Grid3D_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Grid3D).name(); // rtti is literal storage + auto typeName = typeid(axis::Grid3D).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Grid3D"; g_typeCast[typeName] = "cc.Grid3D"; return 1; @@ -93116,14 +93116,14 @@ int lua_cocos2dx_TiledGrid3D_create(lua_State* tolua_S) { if (argc == 2) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.TiledGrid3D:create"); if (!ok) { break; } - cocos2d::Rect arg1; + axis::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.TiledGrid3D:create"); if (!ok) { break; } - cocos2d::TiledGrid3D* ret = cocos2d::TiledGrid3D::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.TiledGrid3D",(cocos2d::TiledGrid3D*)ret); + axis::TiledGrid3D* ret = axis::TiledGrid3D::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.TiledGrid3D",(axis::TiledGrid3D*)ret); return 1; } } while (0); @@ -93132,11 +93132,11 @@ int lua_cocos2dx_TiledGrid3D_create(lua_State* tolua_S) { if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.TiledGrid3D:create"); if (!ok) { break; } - cocos2d::TiledGrid3D* ret = cocos2d::TiledGrid3D::create(arg0); - object_to_luaval(tolua_S, "cc.TiledGrid3D",(cocos2d::TiledGrid3D*)ret); + axis::TiledGrid3D* ret = axis::TiledGrid3D::create(arg0); + object_to_luaval(tolua_S, "cc.TiledGrid3D",(axis::TiledGrid3D*)ret); return 1; } } while (0); @@ -93145,17 +93145,17 @@ int lua_cocos2dx_TiledGrid3D_create(lua_State* tolua_S) { if (argc == 3) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.TiledGrid3D:create"); if (!ok) { break; } - cocos2d::Texture2D* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Texture2D",&arg1, "cc.TiledGrid3D:create"); + axis::Texture2D* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Texture2D",&arg1, "cc.TiledGrid3D:create"); if (!ok) { break; } bool arg2; ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.TiledGrid3D:create"); if (!ok) { break; } - cocos2d::TiledGrid3D* ret = cocos2d::TiledGrid3D::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.TiledGrid3D",(cocos2d::TiledGrid3D*)ret); + axis::TiledGrid3D* ret = axis::TiledGrid3D::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.TiledGrid3D",(axis::TiledGrid3D*)ret); return 1; } } while (0); @@ -93164,20 +93164,20 @@ int lua_cocos2dx_TiledGrid3D_create(lua_State* tolua_S) { if (argc == 4) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.TiledGrid3D:create"); if (!ok) { break; } - cocos2d::Texture2D* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Texture2D",&arg1, "cc.TiledGrid3D:create"); + axis::Texture2D* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Texture2D",&arg1, "cc.TiledGrid3D:create"); if (!ok) { break; } bool arg2; ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.TiledGrid3D:create"); if (!ok) { break; } - cocos2d::Rect arg3; + axis::Rect arg3; ok &= luaval_to_rect(tolua_S, 5, &arg3, "cc.TiledGrid3D:create"); if (!ok) { break; } - cocos2d::TiledGrid3D* ret = cocos2d::TiledGrid3D::create(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.TiledGrid3D",(cocos2d::TiledGrid3D*)ret); + axis::TiledGrid3D* ret = axis::TiledGrid3D::create(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.TiledGrid3D",(axis::TiledGrid3D*)ret); return 1; } } while (0); @@ -93204,7 +93204,7 @@ int lua_register_cocos2dx_TiledGrid3D(lua_State* tolua_S) tolua_beginmodule(tolua_S,"TiledGrid3D"); tolua_function(tolua_S,"create", lua_cocos2dx_TiledGrid3D_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TiledGrid3D).name(); // rtti is literal storage + auto typeName = typeid(axis::TiledGrid3D).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TiledGrid3D"; g_typeCast[typeName] = "cc.TiledGrid3D"; return 1; @@ -93213,7 +93213,7 @@ int lua_register_cocos2dx_TiledGrid3D(lua_State* tolua_S) int lua_cocos2dx_BaseLight_setEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::BaseLight* cobj = nullptr; + axis::BaseLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -93225,7 +93225,7 @@ int lua_cocos2dx_BaseLight_setEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.BaseLight",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::BaseLight*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::BaseLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -93263,7 +93263,7 @@ int lua_cocos2dx_BaseLight_setEnabled(lua_State* tolua_S) int lua_cocos2dx_BaseLight_getIntensity(lua_State* tolua_S) { int argc = 0; - cocos2d::BaseLight* cobj = nullptr; + axis::BaseLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -93275,7 +93275,7 @@ int lua_cocos2dx_BaseLight_getIntensity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.BaseLight",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::BaseLight*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::BaseLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -93310,7 +93310,7 @@ int lua_cocos2dx_BaseLight_getIntensity(lua_State* tolua_S) int lua_cocos2dx_BaseLight_isEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::BaseLight* cobj = nullptr; + axis::BaseLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -93322,7 +93322,7 @@ int lua_cocos2dx_BaseLight_isEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.BaseLight",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::BaseLight*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::BaseLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -93357,7 +93357,7 @@ int lua_cocos2dx_BaseLight_isEnabled(lua_State* tolua_S) int lua_cocos2dx_BaseLight_getLightType(lua_State* tolua_S) { int argc = 0; - cocos2d::BaseLight* cobj = nullptr; + axis::BaseLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -93369,7 +93369,7 @@ int lua_cocos2dx_BaseLight_getLightType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.BaseLight",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::BaseLight*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::BaseLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -93404,7 +93404,7 @@ int lua_cocos2dx_BaseLight_getLightType(lua_State* tolua_S) int lua_cocos2dx_BaseLight_setLightFlag(lua_State* tolua_S) { int argc = 0; - cocos2d::BaseLight* cobj = nullptr; + axis::BaseLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -93416,7 +93416,7 @@ int lua_cocos2dx_BaseLight_setLightFlag(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.BaseLight",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::BaseLight*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::BaseLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -93429,7 +93429,7 @@ int lua_cocos2dx_BaseLight_setLightFlag(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::LightFlag arg0; + axis::LightFlag arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.BaseLight:setLightFlag"); if(!ok) @@ -93454,7 +93454,7 @@ int lua_cocos2dx_BaseLight_setLightFlag(lua_State* tolua_S) int lua_cocos2dx_BaseLight_setIntensity(lua_State* tolua_S) { int argc = 0; - cocos2d::BaseLight* cobj = nullptr; + axis::BaseLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -93466,7 +93466,7 @@ int lua_cocos2dx_BaseLight_setIntensity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.BaseLight",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::BaseLight*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::BaseLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -93504,7 +93504,7 @@ int lua_cocos2dx_BaseLight_setIntensity(lua_State* tolua_S) int lua_cocos2dx_BaseLight_getLightFlag(lua_State* tolua_S) { int argc = 0; - cocos2d::BaseLight* cobj = nullptr; + axis::BaseLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -93516,7 +93516,7 @@ int lua_cocos2dx_BaseLight_getLightFlag(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.BaseLight",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::BaseLight*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::BaseLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -93568,7 +93568,7 @@ int lua_register_cocos2dx_BaseLight(lua_State* tolua_S) tolua_function(tolua_S,"setIntensity",lua_cocos2dx_BaseLight_setIntensity); tolua_function(tolua_S,"getLightFlag",lua_cocos2dx_BaseLight_getLightFlag); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::BaseLight).name(); // rtti is literal storage + auto typeName = typeid(axis::BaseLight).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.BaseLight"; g_typeCast[typeName] = "cc.BaseLight"; return 1; @@ -93577,7 +93577,7 @@ int lua_register_cocos2dx_BaseLight(lua_State* tolua_S) int lua_cocos2dx_DirectionLight_getDirection(lua_State* tolua_S) { int argc = 0; - cocos2d::DirectionLight* cobj = nullptr; + axis::DirectionLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -93589,7 +93589,7 @@ int lua_cocos2dx_DirectionLight_getDirection(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.DirectionLight",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::DirectionLight*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::DirectionLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -93607,7 +93607,7 @@ int lua_cocos2dx_DirectionLight_getDirection(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_DirectionLight_getDirection'", nullptr); return 0; } - cocos2d::Vec3 ret = cobj->getDirection(); + axis::Vec3 ret = cobj->getDirection(); vec3_to_luaval(tolua_S, ret); return 1; } @@ -93624,7 +93624,7 @@ int lua_cocos2dx_DirectionLight_getDirection(lua_State* tolua_S) int lua_cocos2dx_DirectionLight_getDirectionInWorld(lua_State* tolua_S) { int argc = 0; - cocos2d::DirectionLight* cobj = nullptr; + axis::DirectionLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -93636,7 +93636,7 @@ int lua_cocos2dx_DirectionLight_getDirectionInWorld(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.DirectionLight",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::DirectionLight*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::DirectionLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -93654,7 +93654,7 @@ int lua_cocos2dx_DirectionLight_getDirectionInWorld(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_DirectionLight_getDirectionInWorld'", nullptr); return 0; } - cocos2d::Vec3 ret = cobj->getDirectionInWorld(); + axis::Vec3 ret = cobj->getDirectionInWorld(); vec3_to_luaval(tolua_S, ret); return 1; } @@ -93671,7 +93671,7 @@ int lua_cocos2dx_DirectionLight_getDirectionInWorld(lua_State* tolua_S) int lua_cocos2dx_DirectionLight_setDirection(lua_State* tolua_S) { int argc = 0; - cocos2d::DirectionLight* cobj = nullptr; + axis::DirectionLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -93683,7 +93683,7 @@ int lua_cocos2dx_DirectionLight_setDirection(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.DirectionLight",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::DirectionLight*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::DirectionLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -93696,7 +93696,7 @@ int lua_cocos2dx_DirectionLight_setDirection(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec3 arg0; + axis::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.DirectionLight:setDirection"); if(!ok) @@ -93735,8 +93735,8 @@ int lua_cocos2dx_DirectionLight_create(lua_State* tolua_S) if (argc == 2) { - cocos2d::Vec3 arg0; - cocos2d::Color3B arg1; + axis::Vec3 arg0; + axis::Color3B arg1; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.DirectionLight:create"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "cc.DirectionLight:create"); if(!ok) @@ -93744,8 +93744,8 @@ int lua_cocos2dx_DirectionLight_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_DirectionLight_create'", nullptr); return 0; } - cocos2d::DirectionLight* ret = cocos2d::DirectionLight::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.DirectionLight",(cocos2d::DirectionLight*)ret); + axis::DirectionLight* ret = axis::DirectionLight::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.DirectionLight",(axis::DirectionLight*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.DirectionLight:create",argc, 2); @@ -93759,7 +93759,7 @@ int lua_cocos2dx_DirectionLight_create(lua_State* tolua_S) int lua_cocos2dx_DirectionLight_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::DirectionLight* cobj = nullptr; + axis::DirectionLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -93776,7 +93776,7 @@ int lua_cocos2dx_DirectionLight_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_DirectionLight_constructor'", nullptr); return 0; } - cobj = new cocos2d::DirectionLight(); + cobj = new axis::DirectionLight(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -93811,7 +93811,7 @@ int lua_register_cocos2dx_DirectionLight(lua_State* tolua_S) tolua_function(tolua_S,"setDirection",lua_cocos2dx_DirectionLight_setDirection); tolua_function(tolua_S,"create", lua_cocos2dx_DirectionLight_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::DirectionLight).name(); // rtti is literal storage + auto typeName = typeid(axis::DirectionLight).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.DirectionLight"; g_typeCast[typeName] = "cc.DirectionLight"; return 1; @@ -93820,7 +93820,7 @@ int lua_register_cocos2dx_DirectionLight(lua_State* tolua_S) int lua_cocos2dx_PointLight_getRange(lua_State* tolua_S) { int argc = 0; - cocos2d::PointLight* cobj = nullptr; + axis::PointLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -93832,7 +93832,7 @@ int lua_cocos2dx_PointLight_getRange(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PointLight",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PointLight*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PointLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -93867,7 +93867,7 @@ int lua_cocos2dx_PointLight_getRange(lua_State* tolua_S) int lua_cocos2dx_PointLight_setRange(lua_State* tolua_S) { int argc = 0; - cocos2d::PointLight* cobj = nullptr; + axis::PointLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -93879,7 +93879,7 @@ int lua_cocos2dx_PointLight_setRange(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PointLight",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PointLight*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PointLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -93931,8 +93931,8 @@ int lua_cocos2dx_PointLight_create(lua_State* tolua_S) if (argc == 3) { - cocos2d::Vec3 arg0; - cocos2d::Color3B arg1; + axis::Vec3 arg0; + axis::Color3B arg1; double arg2; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.PointLight:create"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "cc.PointLight:create"); @@ -93942,8 +93942,8 @@ int lua_cocos2dx_PointLight_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_PointLight_create'", nullptr); return 0; } - cocos2d::PointLight* ret = cocos2d::PointLight::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.PointLight",(cocos2d::PointLight*)ret); + axis::PointLight* ret = axis::PointLight::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.PointLight",(axis::PointLight*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.PointLight:create",argc, 3); @@ -93957,7 +93957,7 @@ int lua_cocos2dx_PointLight_create(lua_State* tolua_S) int lua_cocos2dx_PointLight_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::PointLight* cobj = nullptr; + axis::PointLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -93974,7 +93974,7 @@ int lua_cocos2dx_PointLight_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_PointLight_constructor'", nullptr); return 0; } - cobj = new cocos2d::PointLight(); + cobj = new axis::PointLight(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -94008,7 +94008,7 @@ int lua_register_cocos2dx_PointLight(lua_State* tolua_S) tolua_function(tolua_S,"setRange",lua_cocos2dx_PointLight_setRange); tolua_function(tolua_S,"create", lua_cocos2dx_PointLight_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::PointLight).name(); // rtti is literal storage + auto typeName = typeid(axis::PointLight).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.PointLight"; g_typeCast[typeName] = "cc.PointLight"; return 1; @@ -94017,7 +94017,7 @@ int lua_register_cocos2dx_PointLight(lua_State* tolua_S) int lua_cocos2dx_SpotLight_getRange(lua_State* tolua_S) { int argc = 0; - cocos2d::SpotLight* cobj = nullptr; + axis::SpotLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -94029,7 +94029,7 @@ int lua_cocos2dx_SpotLight_getRange(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpotLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -94064,7 +94064,7 @@ int lua_cocos2dx_SpotLight_getRange(lua_State* tolua_S) int lua_cocos2dx_SpotLight_setDirection(lua_State* tolua_S) { int argc = 0; - cocos2d::SpotLight* cobj = nullptr; + axis::SpotLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -94076,7 +94076,7 @@ int lua_cocos2dx_SpotLight_setDirection(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpotLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -94089,7 +94089,7 @@ int lua_cocos2dx_SpotLight_setDirection(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec3 arg0; + axis::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.SpotLight:setDirection"); if(!ok) @@ -94114,7 +94114,7 @@ int lua_cocos2dx_SpotLight_setDirection(lua_State* tolua_S) int lua_cocos2dx_SpotLight_getCosInnerAngle(lua_State* tolua_S) { int argc = 0; - cocos2d::SpotLight* cobj = nullptr; + axis::SpotLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -94126,7 +94126,7 @@ int lua_cocos2dx_SpotLight_getCosInnerAngle(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpotLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -94161,7 +94161,7 @@ int lua_cocos2dx_SpotLight_getCosInnerAngle(lua_State* tolua_S) int lua_cocos2dx_SpotLight_getOuterAngle(lua_State* tolua_S) { int argc = 0; - cocos2d::SpotLight* cobj = nullptr; + axis::SpotLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -94173,7 +94173,7 @@ int lua_cocos2dx_SpotLight_getOuterAngle(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpotLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -94208,7 +94208,7 @@ int lua_cocos2dx_SpotLight_getOuterAngle(lua_State* tolua_S) int lua_cocos2dx_SpotLight_getInnerAngle(lua_State* tolua_S) { int argc = 0; - cocos2d::SpotLight* cobj = nullptr; + axis::SpotLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -94220,7 +94220,7 @@ int lua_cocos2dx_SpotLight_getInnerAngle(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpotLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -94255,7 +94255,7 @@ int lua_cocos2dx_SpotLight_getInnerAngle(lua_State* tolua_S) int lua_cocos2dx_SpotLight_getDirection(lua_State* tolua_S) { int argc = 0; - cocos2d::SpotLight* cobj = nullptr; + axis::SpotLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -94267,7 +94267,7 @@ int lua_cocos2dx_SpotLight_getDirection(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpotLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -94285,7 +94285,7 @@ int lua_cocos2dx_SpotLight_getDirection(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpotLight_getDirection'", nullptr); return 0; } - cocos2d::Vec3 ret = cobj->getDirection(); + axis::Vec3 ret = cobj->getDirection(); vec3_to_luaval(tolua_S, ret); return 1; } @@ -94302,7 +94302,7 @@ int lua_cocos2dx_SpotLight_getDirection(lua_State* tolua_S) int lua_cocos2dx_SpotLight_getCosOuterAngle(lua_State* tolua_S) { int argc = 0; - cocos2d::SpotLight* cobj = nullptr; + axis::SpotLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -94314,7 +94314,7 @@ int lua_cocos2dx_SpotLight_getCosOuterAngle(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpotLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -94349,7 +94349,7 @@ int lua_cocos2dx_SpotLight_getCosOuterAngle(lua_State* tolua_S) int lua_cocos2dx_SpotLight_setOuterAngle(lua_State* tolua_S) { int argc = 0; - cocos2d::SpotLight* cobj = nullptr; + axis::SpotLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -94361,7 +94361,7 @@ int lua_cocos2dx_SpotLight_setOuterAngle(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpotLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -94399,7 +94399,7 @@ int lua_cocos2dx_SpotLight_setOuterAngle(lua_State* tolua_S) int lua_cocos2dx_SpotLight_setInnerAngle(lua_State* tolua_S) { int argc = 0; - cocos2d::SpotLight* cobj = nullptr; + axis::SpotLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -94411,7 +94411,7 @@ int lua_cocos2dx_SpotLight_setInnerAngle(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpotLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -94449,7 +94449,7 @@ int lua_cocos2dx_SpotLight_setInnerAngle(lua_State* tolua_S) int lua_cocos2dx_SpotLight_getDirectionInWorld(lua_State* tolua_S) { int argc = 0; - cocos2d::SpotLight* cobj = nullptr; + axis::SpotLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -94461,7 +94461,7 @@ int lua_cocos2dx_SpotLight_getDirectionInWorld(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpotLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -94479,7 +94479,7 @@ int lua_cocos2dx_SpotLight_getDirectionInWorld(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpotLight_getDirectionInWorld'", nullptr); return 0; } - cocos2d::Vec3 ret = cobj->getDirectionInWorld(); + axis::Vec3 ret = cobj->getDirectionInWorld(); vec3_to_luaval(tolua_S, ret); return 1; } @@ -94496,7 +94496,7 @@ int lua_cocos2dx_SpotLight_getDirectionInWorld(lua_State* tolua_S) int lua_cocos2dx_SpotLight_setRange(lua_State* tolua_S) { int argc = 0; - cocos2d::SpotLight* cobj = nullptr; + axis::SpotLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -94508,7 +94508,7 @@ int lua_cocos2dx_SpotLight_setRange(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpotLight",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpotLight*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpotLight*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -94560,9 +94560,9 @@ int lua_cocos2dx_SpotLight_create(lua_State* tolua_S) if (argc == 6) { - cocos2d::Vec3 arg0; - cocos2d::Vec3 arg1; - cocos2d::Color3B arg2; + axis::Vec3 arg0; + axis::Vec3 arg1; + axis::Color3B arg2; double arg3; double arg4; double arg5; @@ -94577,8 +94577,8 @@ int lua_cocos2dx_SpotLight_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpotLight_create'", nullptr); return 0; } - cocos2d::SpotLight* ret = cocos2d::SpotLight::create(arg0, arg1, arg2, arg3, arg4, arg5); - object_to_luaval(tolua_S, "cc.SpotLight",(cocos2d::SpotLight*)ret); + axis::SpotLight* ret = axis::SpotLight::create(arg0, arg1, arg2, arg3, arg4, arg5); + object_to_luaval(tolua_S, "cc.SpotLight",(axis::SpotLight*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.SpotLight:create",argc, 6); @@ -94592,7 +94592,7 @@ int lua_cocos2dx_SpotLight_create(lua_State* tolua_S) int lua_cocos2dx_SpotLight_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::SpotLight* cobj = nullptr; + axis::SpotLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -94609,7 +94609,7 @@ int lua_cocos2dx_SpotLight_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpotLight_constructor'", nullptr); return 0; } - cobj = new cocos2d::SpotLight(); + cobj = new axis::SpotLight(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -94652,7 +94652,7 @@ int lua_register_cocos2dx_SpotLight(lua_State* tolua_S) tolua_function(tolua_S,"setRange",lua_cocos2dx_SpotLight_setRange); tolua_function(tolua_S,"create", lua_cocos2dx_SpotLight_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::SpotLight).name(); // rtti is literal storage + auto typeName = typeid(axis::SpotLight).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.SpotLight"; g_typeCast[typeName] = "cc.SpotLight"; return 1; @@ -94675,15 +94675,15 @@ int lua_cocos2dx_AmbientLight_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::Color3B arg0; + axis::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "cc.AmbientLight:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AmbientLight_create'", nullptr); return 0; } - cocos2d::AmbientLight* ret = cocos2d::AmbientLight::create(arg0); - object_to_luaval(tolua_S, "cc.AmbientLight",(cocos2d::AmbientLight*)ret); + axis::AmbientLight* ret = axis::AmbientLight::create(arg0); + object_to_luaval(tolua_S, "cc.AmbientLight",(axis::AmbientLight*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.AmbientLight:create",argc, 1); @@ -94697,7 +94697,7 @@ int lua_cocos2dx_AmbientLight_create(lua_State* tolua_S) int lua_cocos2dx_AmbientLight_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::AmbientLight* cobj = nullptr; + axis::AmbientLight* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -94714,7 +94714,7 @@ int lua_cocos2dx_AmbientLight_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AmbientLight_constructor'", nullptr); return 0; } - cobj = new cocos2d::AmbientLight(); + cobj = new axis::AmbientLight(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -94746,7 +94746,7 @@ int lua_register_cocos2dx_AmbientLight(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_AmbientLight_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_AmbientLight_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::AmbientLight).name(); // rtti is literal storage + auto typeName = typeid(axis::AmbientLight).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.AmbientLight"; g_typeCast[typeName] = "cc.AmbientLight"; return 1; @@ -94755,7 +94755,7 @@ int lua_register_cocos2dx_AmbientLight(lua_State* tolua_S) int lua_cocos2dx_RenderState_getName(lua_State* tolua_S) { int argc = 0; - cocos2d::RenderState* cobj = nullptr; + axis::RenderState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -94767,7 +94767,7 @@ int lua_cocos2dx_RenderState_getName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.RenderState",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::RenderState*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::RenderState*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -94802,7 +94802,7 @@ int lua_cocos2dx_RenderState_getName(lua_State* tolua_S) int lua_cocos2dx_RenderState_bindPass(lua_State* tolua_S) { int argc = 0; - cocos2d::RenderState* cobj = nullptr; + axis::RenderState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -94814,7 +94814,7 @@ int lua_cocos2dx_RenderState_bindPass(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.RenderState",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::RenderState*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::RenderState*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -94827,12 +94827,12 @@ int lua_cocos2dx_RenderState_bindPass(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::Pass* arg0; - cocos2d::MeshCommand* arg1; + axis::Pass* arg0; + axis::MeshCommand* arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.Pass",&arg0, "cc.RenderState:bindPass"); + ok &= luaval_to_object(tolua_S, 2, "cc.Pass",&arg0, "cc.RenderState:bindPass"); - ok &= luaval_to_object(tolua_S, 3, "cc.MeshCommand",&arg1, "cc.RenderState:bindPass"); + ok &= luaval_to_object(tolua_S, 3, "cc.MeshCommand",&arg1, "cc.RenderState:bindPass"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_RenderState_bindPass'", nullptr); @@ -94867,7 +94867,7 @@ int lua_register_cocos2dx_RenderState(lua_State* tolua_S) tolua_function(tolua_S,"getName",lua_cocos2dx_RenderState_getName); tolua_function(tolua_S,"bindPass",lua_cocos2dx_RenderState_bindPass); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::RenderState).name(); // rtti is literal storage + auto typeName = typeid(axis::RenderState).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.RenderState"; g_typeCast[typeName] = "cc.RenderState"; return 1; @@ -94876,7 +94876,7 @@ int lua_register_cocos2dx_RenderState(lua_State* tolua_S) int lua_cocos2dx_Technique_getPassCount(lua_State* tolua_S) { int argc = 0; - cocos2d::Technique* cobj = nullptr; + axis::Technique* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -94888,7 +94888,7 @@ int lua_cocos2dx_Technique_getPassCount(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Technique",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Technique*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Technique*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -94923,7 +94923,7 @@ int lua_cocos2dx_Technique_getPassCount(lua_State* tolua_S) int lua_cocos2dx_Technique_setMaterial(lua_State* tolua_S) { int argc = 0; - cocos2d::Technique* cobj = nullptr; + axis::Technique* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -94935,7 +94935,7 @@ int lua_cocos2dx_Technique_setMaterial(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Technique",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Technique*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Technique*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -94948,9 +94948,9 @@ int lua_cocos2dx_Technique_setMaterial(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Material* arg0; + axis::Material* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Material",&arg0, "cc.Technique:setMaterial"); + ok &= luaval_to_object(tolua_S, 2, "cc.Material",&arg0, "cc.Technique:setMaterial"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Technique_setMaterial'", nullptr); @@ -94973,7 +94973,7 @@ int lua_cocos2dx_Technique_setMaterial(lua_State* tolua_S) int lua_cocos2dx_Technique_clone(lua_State* tolua_S) { int argc = 0; - cocos2d::Technique* cobj = nullptr; + axis::Technique* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -94985,7 +94985,7 @@ int lua_cocos2dx_Technique_clone(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Technique",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Technique*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Technique*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -95003,8 +95003,8 @@ int lua_cocos2dx_Technique_clone(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Technique_clone'", nullptr); return 0; } - cocos2d::Technique* ret = cobj->clone(); - object_to_luaval(tolua_S, "cc.Technique",(cocos2d::Technique*)ret); + axis::Technique* ret = cobj->clone(); + object_to_luaval(tolua_S, "cc.Technique",(axis::Technique*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Technique:clone",argc, 0); @@ -95020,7 +95020,7 @@ int lua_cocos2dx_Technique_clone(lua_State* tolua_S) int lua_cocos2dx_Technique_addPass(lua_State* tolua_S) { int argc = 0; - cocos2d::Technique* cobj = nullptr; + axis::Technique* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -95032,7 +95032,7 @@ int lua_cocos2dx_Technique_addPass(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Technique",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Technique*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Technique*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -95045,9 +95045,9 @@ int lua_cocos2dx_Technique_addPass(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Pass* arg0; + axis::Pass* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Pass",&arg0, "cc.Technique:addPass"); + ok &= luaval_to_object(tolua_S, 2, "cc.Pass",&arg0, "cc.Technique:addPass"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Technique_addPass'", nullptr); @@ -95070,7 +95070,7 @@ int lua_cocos2dx_Technique_addPass(lua_State* tolua_S) int lua_cocos2dx_Technique_getPasses(lua_State* tolua_S) { int argc = 0; - cocos2d::Technique* cobj = nullptr; + axis::Technique* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -95082,7 +95082,7 @@ int lua_cocos2dx_Technique_getPasses(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Technique",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Technique*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Technique*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -95100,7 +95100,7 @@ int lua_cocos2dx_Technique_getPasses(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Technique_getPasses'", nullptr); return 0; } - const cocos2d::Vector& ret = cobj->getPasses(); + const axis::Vector& ret = cobj->getPasses(); ccvector_to_luaval(tolua_S, ret); return 1; } @@ -95117,7 +95117,7 @@ int lua_cocos2dx_Technique_getPasses(lua_State* tolua_S) int lua_cocos2dx_Technique_getName(lua_State* tolua_S) { int argc = 0; - cocos2d::Technique* cobj = nullptr; + axis::Technique* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -95129,7 +95129,7 @@ int lua_cocos2dx_Technique_getName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Technique",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Technique*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Technique*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -95164,7 +95164,7 @@ int lua_cocos2dx_Technique_getName(lua_State* tolua_S) int lua_cocos2dx_Technique_getPassByIndex(lua_State* tolua_S) { int argc = 0; - cocos2d::Technique* cobj = nullptr; + axis::Technique* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -95176,7 +95176,7 @@ int lua_cocos2dx_Technique_getPassByIndex(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Technique",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Technique*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Technique*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -95197,8 +95197,8 @@ int lua_cocos2dx_Technique_getPassByIndex(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Technique_getPassByIndex'", nullptr); return 0; } - cocos2d::Pass* ret = cobj->getPassByIndex(arg0); - object_to_luaval(tolua_S, "cc.Pass",(cocos2d::Pass*)ret); + axis::Pass* ret = cobj->getPassByIndex(arg0); + object_to_luaval(tolua_S, "cc.Pass",(axis::Pass*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Technique:getPassByIndex",argc, 1); @@ -95228,17 +95228,17 @@ int lua_cocos2dx_Technique_createWithProgramState(lua_State* tolua_S) if (argc == 2) { - cocos2d::Material* arg0; - cocos2d::backend::ProgramState* arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.Material",&arg0, "cc.Technique:createWithProgramState"); - ok &= luaval_to_object(tolua_S, 3, "ccb.ProgramState",&arg1, "cc.Technique:createWithProgramState"); + axis::Material* arg0; + axis::backend::ProgramState* arg1; + ok &= luaval_to_object(tolua_S, 2, "cc.Material",&arg0, "cc.Technique:createWithProgramState"); + ok &= luaval_to_object(tolua_S, 3, "ccb.ProgramState",&arg1, "cc.Technique:createWithProgramState"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Technique_createWithProgramState'", nullptr); return 0; } - cocos2d::Technique* ret = cocos2d::Technique::createWithProgramState(arg0, arg1); - object_to_luaval(tolua_S, "cc.Technique",(cocos2d::Technique*)ret); + axis::Technique* ret = axis::Technique::createWithProgramState(arg0, arg1); + object_to_luaval(tolua_S, "cc.Technique",(axis::Technique*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Technique:createWithProgramState",argc, 2); @@ -95266,15 +95266,15 @@ int lua_cocos2dx_Technique_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::Material* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Material",&arg0, "cc.Technique:create"); + axis::Material* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Material",&arg0, "cc.Technique:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Technique_create'", nullptr); return 0; } - cocos2d::Technique* ret = cocos2d::Technique::create(arg0); - object_to_luaval(tolua_S, "cc.Technique",(cocos2d::Technique*)ret); + axis::Technique* ret = axis::Technique::create(arg0); + object_to_luaval(tolua_S, "cc.Technique",(axis::Technique*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Technique:create",argc, 1); @@ -95307,7 +95307,7 @@ int lua_register_cocos2dx_Technique(lua_State* tolua_S) tolua_function(tolua_S,"createWithProgramState", lua_cocos2dx_Technique_createWithProgramState); tolua_function(tolua_S,"create", lua_cocos2dx_Technique_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Technique).name(); // rtti is literal storage + auto typeName = typeid(axis::Technique).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Technique"; g_typeCast[typeName] = "cc.Technique"; return 1; @@ -95316,7 +95316,7 @@ int lua_register_cocos2dx_Technique(lua_State* tolua_S) int lua_cocos2dx_Material_clone(lua_State* tolua_S) { int argc = 0; - cocos2d::Material* cobj = nullptr; + axis::Material* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -95328,7 +95328,7 @@ int lua_cocos2dx_Material_clone(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Material",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Material*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Material*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -95346,8 +95346,8 @@ int lua_cocos2dx_Material_clone(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Material_clone'", nullptr); return 0; } - cocos2d::Material* ret = cobj->clone(); - object_to_luaval(tolua_S, "cc.Material",(cocos2d::Material*)ret); + axis::Material* ret = cobj->clone(); + object_to_luaval(tolua_S, "cc.Material",(axis::Material*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Material:clone",argc, 0); @@ -95363,7 +95363,7 @@ int lua_cocos2dx_Material_clone(lua_State* tolua_S) int lua_cocos2dx_Material_draw(lua_State* tolua_S) { int argc = 0; - cocos2d::Material* cobj = nullptr; + axis::Material* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -95375,7 +95375,7 @@ int lua_cocos2dx_Material_draw(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Material",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Material*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Material*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -95388,22 +95388,22 @@ int lua_cocos2dx_Material_draw(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 8) { - cocos2d::MeshCommand* arg0; + axis::MeshCommand* arg0; double arg1; - cocos2d::backend::Buffer* arg2; - cocos2d::backend::Buffer* arg3; - cocos2d::backend::PrimitiveType arg4; - cocos2d::backend::IndexFormat arg5; + axis::backend::Buffer* arg2; + axis::backend::Buffer* arg3; + axis::backend::PrimitiveType arg4; + axis::backend::IndexFormat arg5; unsigned int arg6; - cocos2d::Mat4 arg7; + axis::Mat4 arg7; - ok &= luaval_to_object(tolua_S, 2, "cc.MeshCommand",&arg0, "cc.Material:draw"); + ok &= luaval_to_object(tolua_S, 2, "cc.MeshCommand",&arg0, "cc.Material:draw"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Material:draw"); - ok &= luaval_to_object(tolua_S, 4, "ccb.Buffer",&arg2, "cc.Material:draw"); + ok &= luaval_to_object(tolua_S, 4, "ccb.Buffer",&arg2, "cc.Material:draw"); - ok &= luaval_to_object(tolua_S, 5, "ccb.Buffer",&arg3, "cc.Material:draw"); + ok &= luaval_to_object(tolua_S, 5, "ccb.Buffer",&arg3, "cc.Material:draw"); ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "cc.Material:draw"); @@ -95434,7 +95434,7 @@ int lua_cocos2dx_Material_draw(lua_State* tolua_S) int lua_cocos2dx_Material_getRenderState(lua_State* tolua_S) { int argc = 0; - cocos2d::Material* cobj = nullptr; + axis::Material* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -95446,7 +95446,7 @@ int lua_cocos2dx_Material_getRenderState(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Material",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Material*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Material*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -95464,8 +95464,8 @@ int lua_cocos2dx_Material_getRenderState(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Material_getRenderState'", nullptr); return 0; } - cocos2d::RenderState* ret = cobj->getRenderState(); - object_to_luaval(tolua_S, "cc.RenderState",(cocos2d::RenderState*)ret); + axis::RenderState* ret = cobj->getRenderState(); + object_to_luaval(tolua_S, "cc.RenderState",(axis::RenderState*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Material:getRenderState",argc, 0); @@ -95481,7 +95481,7 @@ int lua_cocos2dx_Material_getRenderState(lua_State* tolua_S) int lua_cocos2dx_Material_setName(lua_State* tolua_S) { int argc = 0; - cocos2d::Material* cobj = nullptr; + axis::Material* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -95493,7 +95493,7 @@ int lua_cocos2dx_Material_setName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Material",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Material*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Material*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -95531,7 +95531,7 @@ int lua_cocos2dx_Material_setName(lua_State* tolua_S) int lua_cocos2dx_Material_getTechniqueByIndex(lua_State* tolua_S) { int argc = 0; - cocos2d::Material* cobj = nullptr; + axis::Material* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -95543,7 +95543,7 @@ int lua_cocos2dx_Material_getTechniqueByIndex(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Material",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Material*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Material*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -95564,8 +95564,8 @@ int lua_cocos2dx_Material_getTechniqueByIndex(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Material_getTechniqueByIndex'", nullptr); return 0; } - cocos2d::Technique* ret = cobj->getTechniqueByIndex(arg0); - object_to_luaval(tolua_S, "cc.Technique",(cocos2d::Technique*)ret); + axis::Technique* ret = cobj->getTechniqueByIndex(arg0); + object_to_luaval(tolua_S, "cc.Technique",(axis::Technique*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Material:getTechniqueByIndex",argc, 1); @@ -95581,7 +95581,7 @@ int lua_cocos2dx_Material_getTechniqueByIndex(lua_State* tolua_S) int lua_cocos2dx_Material_getName(lua_State* tolua_S) { int argc = 0; - cocos2d::Material* cobj = nullptr; + axis::Material* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -95593,7 +95593,7 @@ int lua_cocos2dx_Material_getName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Material",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Material*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Material*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -95628,7 +95628,7 @@ int lua_cocos2dx_Material_getName(lua_State* tolua_S) int lua_cocos2dx_Material_getTechniques(lua_State* tolua_S) { int argc = 0; - cocos2d::Material* cobj = nullptr; + axis::Material* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -95640,7 +95640,7 @@ int lua_cocos2dx_Material_getTechniques(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Material",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Material*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Material*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -95658,7 +95658,7 @@ int lua_cocos2dx_Material_getTechniques(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Material_getTechniques'", nullptr); return 0; } - const cocos2d::Vector& ret = cobj->getTechniques(); + const axis::Vector& ret = cobj->getTechniques(); ccvector_to_luaval(tolua_S, ret); return 1; } @@ -95675,7 +95675,7 @@ int lua_cocos2dx_Material_getTechniques(lua_State* tolua_S) int lua_cocos2dx_Material_getTechniqueCount(lua_State* tolua_S) { int argc = 0; - cocos2d::Material* cobj = nullptr; + axis::Material* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -95687,7 +95687,7 @@ int lua_cocos2dx_Material_getTechniqueCount(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Material",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Material*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Material*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -95722,7 +95722,7 @@ int lua_cocos2dx_Material_getTechniqueCount(lua_State* tolua_S) int lua_cocos2dx_Material_setTechnique(lua_State* tolua_S) { int argc = 0; - cocos2d::Material* cobj = nullptr; + axis::Material* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -95734,7 +95734,7 @@ int lua_cocos2dx_Material_setTechnique(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Material",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Material*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Material*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -95772,7 +95772,7 @@ int lua_cocos2dx_Material_setTechnique(lua_State* tolua_S) int lua_cocos2dx_Material_getTechniqueByName(lua_State* tolua_S) { int argc = 0; - cocos2d::Material* cobj = nullptr; + axis::Material* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -95784,7 +95784,7 @@ int lua_cocos2dx_Material_getTechniqueByName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Material",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Material*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Material*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -95805,8 +95805,8 @@ int lua_cocos2dx_Material_getTechniqueByName(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Material_getTechniqueByName'", nullptr); return 0; } - cocos2d::Technique* ret = cobj->getTechniqueByName(arg0); - object_to_luaval(tolua_S, "cc.Technique",(cocos2d::Technique*)ret); + axis::Technique* ret = cobj->getTechniqueByName(arg0); + object_to_luaval(tolua_S, "cc.Technique",(axis::Technique*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Material:getTechniqueByName",argc, 1); @@ -95822,7 +95822,7 @@ int lua_cocos2dx_Material_getTechniqueByName(lua_State* tolua_S) int lua_cocos2dx_Material_addTechnique(lua_State* tolua_S) { int argc = 0; - cocos2d::Material* cobj = nullptr; + axis::Material* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -95834,7 +95834,7 @@ int lua_cocos2dx_Material_addTechnique(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Material",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Material*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Material*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -95847,9 +95847,9 @@ int lua_cocos2dx_Material_addTechnique(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Technique* arg0; + axis::Technique* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Technique",&arg0, "cc.Material:addTechnique"); + ok &= luaval_to_object(tolua_S, 2, "cc.Technique",&arg0, "cc.Material:addTechnique"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Material_addTechnique'", nullptr); @@ -95872,7 +95872,7 @@ int lua_cocos2dx_Material_addTechnique(lua_State* tolua_S) int lua_cocos2dx_Material_getTechnique(lua_State* tolua_S) { int argc = 0; - cocos2d::Material* cobj = nullptr; + axis::Material* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -95884,7 +95884,7 @@ int lua_cocos2dx_Material_getTechnique(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Material",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Material*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Material*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -95902,8 +95902,8 @@ int lua_cocos2dx_Material_getTechnique(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Material_getTechnique'", nullptr); return 0; } - cocos2d::Technique* ret = cobj->getTechnique(); - object_to_luaval(tolua_S, "cc.Technique",(cocos2d::Technique*)ret); + axis::Technique* ret = cobj->getTechnique(); + object_to_luaval(tolua_S, "cc.Technique",(axis::Technique*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Material:getTechnique",argc, 0); @@ -95940,8 +95940,8 @@ int lua_cocos2dx_Material_createWithFilename(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Material_createWithFilename'", nullptr); return 0; } - cocos2d::Material* ret = cocos2d::Material::createWithFilename(arg0); - object_to_luaval(tolua_S, "cc.Material",(cocos2d::Material*)ret); + axis::Material* ret = axis::Material::createWithFilename(arg0); + object_to_luaval(tolua_S, "cc.Material",(axis::Material*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Material:createWithFilename",argc, 1); @@ -95969,15 +95969,15 @@ int lua_cocos2dx_Material_createWithProperties(lua_State* tolua_S) if (argc == 1) { - cocos2d::Properties* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Properties",&arg0, "cc.Material:createWithProperties"); + axis::Properties* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Properties",&arg0, "cc.Material:createWithProperties"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Material_createWithProperties'", nullptr); return 0; } - cocos2d::Material* ret = cocos2d::Material::createWithProperties(arg0); - object_to_luaval(tolua_S, "cc.Material",(cocos2d::Material*)ret); + axis::Material* ret = axis::Material::createWithProperties(arg0); + object_to_luaval(tolua_S, "cc.Material",(axis::Material*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Material:createWithProperties",argc, 1); @@ -96005,15 +96005,15 @@ int lua_cocos2dx_Material_createWithProgramState(lua_State* tolua_S) if (argc == 1) { - cocos2d::backend::ProgramState* arg0; - ok &= luaval_to_object(tolua_S, 2, "ccb.ProgramState",&arg0, "cc.Material:createWithProgramState"); + axis::backend::ProgramState* arg0; + ok &= luaval_to_object(tolua_S, 2, "ccb.ProgramState",&arg0, "cc.Material:createWithProgramState"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Material_createWithProgramState'", nullptr); return 0; } - cocos2d::Material* ret = cocos2d::Material::createWithProgramState(arg0); - object_to_luaval(tolua_S, "cc.Material",(cocos2d::Material*)ret); + axis::Material* ret = axis::Material::createWithProgramState(arg0); + object_to_luaval(tolua_S, "cc.Material",(axis::Material*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Material:createWithProgramState",argc, 1); @@ -96052,7 +96052,7 @@ int lua_register_cocos2dx_Material(lua_State* tolua_S) tolua_function(tolua_S,"createWithProperties", lua_cocos2dx_Material_createWithProperties); tolua_function(tolua_S,"createWithProgramState", lua_cocos2dx_Material_createWithProgramState); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Material).name(); // rtti is literal storage + auto typeName = typeid(axis::Material).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Material"; g_typeCast[typeName] = "cc.Material"; return 1; @@ -96061,7 +96061,7 @@ int lua_register_cocos2dx_Material(lua_State* tolua_S) int lua_cocos2dx_Pass_setUniformPointLightPosition(lua_State* tolua_S) { int argc = 0; - cocos2d::Pass* cobj = nullptr; + axis::Pass* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -96073,7 +96073,7 @@ int lua_cocos2dx_Pass_setUniformPointLightPosition(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Pass",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Pass*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Pass*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -96115,7 +96115,7 @@ int lua_cocos2dx_Pass_setUniformPointLightPosition(lua_State* tolua_S) int lua_cocos2dx_Pass_setUniformDirLightDir(lua_State* tolua_S) { int argc = 0; - cocos2d::Pass* cobj = nullptr; + axis::Pass* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -96127,7 +96127,7 @@ int lua_cocos2dx_Pass_setUniformDirLightDir(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Pass",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Pass*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Pass*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -96169,7 +96169,7 @@ int lua_cocos2dx_Pass_setUniformDirLightDir(lua_State* tolua_S) int lua_cocos2dx_Pass_setTechnique(lua_State* tolua_S) { int argc = 0; - cocos2d::Pass* cobj = nullptr; + axis::Pass* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -96181,7 +96181,7 @@ int lua_cocos2dx_Pass_setTechnique(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Pass",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Pass*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Pass*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -96194,9 +96194,9 @@ int lua_cocos2dx_Pass_setTechnique(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Technique* arg0; + axis::Technique* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Technique",&arg0, "cc.Pass:setTechnique"); + ok &= luaval_to_object(tolua_S, 2, "cc.Technique",&arg0, "cc.Pass:setTechnique"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Pass_setTechnique'", nullptr); @@ -96219,7 +96219,7 @@ int lua_cocos2dx_Pass_setTechnique(lua_State* tolua_S) int lua_cocos2dx_Pass_getVertexAttributeBinding(lua_State* tolua_S) { int argc = 0; - cocos2d::Pass* cobj = nullptr; + axis::Pass* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -96231,7 +96231,7 @@ int lua_cocos2dx_Pass_getVertexAttributeBinding(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Pass",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Pass*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Pass*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -96249,8 +96249,8 @@ int lua_cocos2dx_Pass_getVertexAttributeBinding(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Pass_getVertexAttributeBinding'", nullptr); return 0; } - cocos2d::VertexAttribBinding* ret = cobj->getVertexAttributeBinding(); - object_to_luaval(tolua_S, "cc.VertexAttribBinding",(cocos2d::VertexAttribBinding*)ret); + axis::VertexAttribBinding* ret = cobj->getVertexAttributeBinding(); + object_to_luaval(tolua_S, "cc.VertexAttribBinding",(axis::VertexAttribBinding*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Pass:getVertexAttributeBinding",argc, 0); @@ -96266,7 +96266,7 @@ int lua_cocos2dx_Pass_getVertexAttributeBinding(lua_State* tolua_S) int lua_cocos2dx_Pass_setUniformSpotLightOuterAngleCos(lua_State* tolua_S) { int argc = 0; - cocos2d::Pass* cobj = nullptr; + axis::Pass* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -96278,7 +96278,7 @@ int lua_cocos2dx_Pass_setUniformSpotLightOuterAngleCos(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Pass",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Pass*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Pass*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -96320,7 +96320,7 @@ int lua_cocos2dx_Pass_setUniformSpotLightOuterAngleCos(lua_State* tolua_S) int lua_cocos2dx_Pass_setUniformSpotLightDir(lua_State* tolua_S) { int argc = 0; - cocos2d::Pass* cobj = nullptr; + axis::Pass* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -96332,7 +96332,7 @@ int lua_cocos2dx_Pass_setUniformSpotLightDir(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Pass",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Pass*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Pass*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -96374,7 +96374,7 @@ int lua_cocos2dx_Pass_setUniformSpotLightDir(lua_State* tolua_S) int lua_cocos2dx_Pass_setUniformMatrixPalette(lua_State* tolua_S) { int argc = 0; - cocos2d::Pass* cobj = nullptr; + axis::Pass* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -96386,7 +96386,7 @@ int lua_cocos2dx_Pass_setUniformMatrixPalette(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Pass",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Pass*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Pass*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -96428,7 +96428,7 @@ int lua_cocos2dx_Pass_setUniformMatrixPalette(lua_State* tolua_S) int lua_cocos2dx_Pass_setName(lua_State* tolua_S) { int argc = 0; - cocos2d::Pass* cobj = nullptr; + axis::Pass* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -96440,7 +96440,7 @@ int lua_cocos2dx_Pass_setName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Pass",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Pass*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Pass*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -96478,7 +96478,7 @@ int lua_cocos2dx_Pass_setName(lua_State* tolua_S) int lua_cocos2dx_Pass_getName(lua_State* tolua_S) { int argc = 0; - cocos2d::Pass* cobj = nullptr; + axis::Pass* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -96490,7 +96490,7 @@ int lua_cocos2dx_Pass_getName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Pass",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Pass*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Pass*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -96525,7 +96525,7 @@ int lua_cocos2dx_Pass_getName(lua_State* tolua_S) int lua_cocos2dx_Pass_setUniformSpotLightRangeInverse(lua_State* tolua_S) { int argc = 0; - cocos2d::Pass* cobj = nullptr; + axis::Pass* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -96537,7 +96537,7 @@ int lua_cocos2dx_Pass_setUniformSpotLightRangeInverse(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Pass",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Pass*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Pass*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -96579,7 +96579,7 @@ int lua_cocos2dx_Pass_setUniformSpotLightRangeInverse(lua_State* tolua_S) int lua_cocos2dx_Pass_clone(lua_State* tolua_S) { int argc = 0; - cocos2d::Pass* cobj = nullptr; + axis::Pass* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -96591,7 +96591,7 @@ int lua_cocos2dx_Pass_clone(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Pass",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Pass*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Pass*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -96609,8 +96609,8 @@ int lua_cocos2dx_Pass_clone(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Pass_clone'", nullptr); return 0; } - cocos2d::Pass* ret = cobj->clone(); - object_to_luaval(tolua_S, "cc.Pass",(cocos2d::Pass*)ret); + axis::Pass* ret = cobj->clone(); + object_to_luaval(tolua_S, "cc.Pass",(axis::Pass*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Pass:clone",argc, 0); @@ -96626,7 +96626,7 @@ int lua_cocos2dx_Pass_clone(lua_State* tolua_S) int lua_cocos2dx_Pass_draw(lua_State* tolua_S) { int argc = 0; - cocos2d::Pass* cobj = nullptr; + axis::Pass* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -96638,7 +96638,7 @@ int lua_cocos2dx_Pass_draw(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Pass",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Pass*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Pass*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -96651,22 +96651,22 @@ int lua_cocos2dx_Pass_draw(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 8) { - cocos2d::MeshCommand* arg0; + axis::MeshCommand* arg0; double arg1; - cocos2d::backend::Buffer* arg2; - cocos2d::backend::Buffer* arg3; - cocos2d::backend::PrimitiveType arg4; - cocos2d::backend::IndexFormat arg5; + axis::backend::Buffer* arg2; + axis::backend::Buffer* arg3; + axis::backend::PrimitiveType arg4; + axis::backend::IndexFormat arg5; unsigned int arg6; - cocos2d::Mat4 arg7; + axis::Mat4 arg7; - ok &= luaval_to_object(tolua_S, 2, "cc.MeshCommand",&arg0, "cc.Pass:draw"); + ok &= luaval_to_object(tolua_S, 2, "cc.MeshCommand",&arg0, "cc.Pass:draw"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.Pass:draw"); - ok &= luaval_to_object(tolua_S, 4, "ccb.Buffer",&arg2, "cc.Pass:draw"); + ok &= luaval_to_object(tolua_S, 4, "ccb.Buffer",&arg2, "cc.Pass:draw"); - ok &= luaval_to_object(tolua_S, 5, "ccb.Buffer",&arg3, "cc.Pass:draw"); + ok &= luaval_to_object(tolua_S, 5, "ccb.Buffer",&arg3, "cc.Pass:draw"); ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "cc.Pass:draw"); @@ -96697,7 +96697,7 @@ int lua_cocos2dx_Pass_draw(lua_State* tolua_S) int lua_cocos2dx_Pass_setUniformPointLightRangeInverse(lua_State* tolua_S) { int argc = 0; - cocos2d::Pass* cobj = nullptr; + axis::Pass* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -96709,7 +96709,7 @@ int lua_cocos2dx_Pass_setUniformPointLightRangeInverse(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Pass",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Pass*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Pass*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -96751,7 +96751,7 @@ int lua_cocos2dx_Pass_setUniformPointLightRangeInverse(lua_State* tolua_S) int lua_cocos2dx_Pass_setUniformNormTexture(lua_State* tolua_S) { int argc = 0; - cocos2d::Pass* cobj = nullptr; + axis::Pass* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -96763,7 +96763,7 @@ int lua_cocos2dx_Pass_setUniformNormTexture(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Pass",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Pass*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Pass*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -96777,11 +96777,11 @@ int lua_cocos2dx_Pass_setUniformNormTexture(lua_State* tolua_S) if (argc == 2) { unsigned int arg0; - cocos2d::backend::TextureBackend* arg1; + axis::backend::TextureBackend* arg1; ok &= luaval_to_uint32(tolua_S, 2,&arg0, "cc.Pass:setUniformNormTexture"); - ok &= luaval_to_object(tolua_S, 3, "ccb.TextureBackend",&arg1, "cc.Pass:setUniformNormTexture"); + ok &= luaval_to_object(tolua_S, 3, "ccb.TextureBackend",&arg1, "cc.Pass:setUniformNormTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Pass_setUniformNormTexture'", nullptr); @@ -96804,7 +96804,7 @@ int lua_cocos2dx_Pass_setUniformNormTexture(lua_State* tolua_S) int lua_cocos2dx_Pass_updateMVPUniform(lua_State* tolua_S) { int argc = 0; - cocos2d::Pass* cobj = nullptr; + axis::Pass* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -96816,7 +96816,7 @@ int lua_cocos2dx_Pass_updateMVPUniform(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Pass",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Pass*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Pass*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -96829,7 +96829,7 @@ int lua_cocos2dx_Pass_updateMVPUniform(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Mat4 arg0; + axis::Mat4 arg0; ok &= luaval_to_mat4(tolua_S, 2, &arg0, "cc.Pass:updateMVPUniform"); if(!ok) @@ -96854,7 +96854,7 @@ int lua_cocos2dx_Pass_updateMVPUniform(lua_State* tolua_S) int lua_cocos2dx_Pass_getProgramState(lua_State* tolua_S) { int argc = 0; - cocos2d::Pass* cobj = nullptr; + axis::Pass* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -96866,7 +96866,7 @@ int lua_cocos2dx_Pass_getProgramState(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Pass",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Pass*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Pass*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -96884,8 +96884,8 @@ int lua_cocos2dx_Pass_getProgramState(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Pass_getProgramState'", nullptr); return 0; } - cocos2d::backend::ProgramState* ret = cobj->getProgramState(); - object_to_luaval(tolua_S, "ccb.ProgramState",(cocos2d::backend::ProgramState*)ret); + axis::backend::ProgramState* ret = cobj->getProgramState(); + object_to_luaval(tolua_S, "ccb.ProgramState",(axis::backend::ProgramState*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Pass:getProgramState",argc, 0); @@ -96901,7 +96901,7 @@ int lua_cocos2dx_Pass_getProgramState(lua_State* tolua_S) int lua_cocos2dx_Pass_setUniformSpotLightColor(lua_State* tolua_S) { int argc = 0; - cocos2d::Pass* cobj = nullptr; + axis::Pass* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -96913,7 +96913,7 @@ int lua_cocos2dx_Pass_setUniformSpotLightColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Pass",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Pass*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Pass*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -96955,7 +96955,7 @@ int lua_cocos2dx_Pass_setUniformSpotLightColor(lua_State* tolua_S) int lua_cocos2dx_Pass_setUniformAmbientLigthColor(lua_State* tolua_S) { int argc = 0; - cocos2d::Pass* cobj = nullptr; + axis::Pass* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -96967,7 +96967,7 @@ int lua_cocos2dx_Pass_setUniformAmbientLigthColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Pass",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Pass*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Pass*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -97009,7 +97009,7 @@ int lua_cocos2dx_Pass_setUniformAmbientLigthColor(lua_State* tolua_S) int lua_cocos2dx_Pass_setUniformDirLightColor(lua_State* tolua_S) { int argc = 0; - cocos2d::Pass* cobj = nullptr; + axis::Pass* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -97021,7 +97021,7 @@ int lua_cocos2dx_Pass_setUniformDirLightColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Pass",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Pass*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Pass*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -97063,7 +97063,7 @@ int lua_cocos2dx_Pass_setUniformDirLightColor(lua_State* tolua_S) int lua_cocos2dx_Pass_setUniformSpotLightPosition(lua_State* tolua_S) { int argc = 0; - cocos2d::Pass* cobj = nullptr; + axis::Pass* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -97075,7 +97075,7 @@ int lua_cocos2dx_Pass_setUniformSpotLightPosition(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Pass",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Pass*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Pass*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -97117,7 +97117,7 @@ int lua_cocos2dx_Pass_setUniformSpotLightPosition(lua_State* tolua_S) int lua_cocos2dx_Pass_setVertexAttribBinding(lua_State* tolua_S) { int argc = 0; - cocos2d::Pass* cobj = nullptr; + axis::Pass* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -97129,7 +97129,7 @@ int lua_cocos2dx_Pass_setVertexAttribBinding(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Pass",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Pass*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Pass*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -97142,9 +97142,9 @@ int lua_cocos2dx_Pass_setVertexAttribBinding(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::VertexAttribBinding* arg0; + axis::VertexAttribBinding* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.VertexAttribBinding",&arg0, "cc.Pass:setVertexAttribBinding"); + ok &= luaval_to_object(tolua_S, 2, "cc.VertexAttribBinding",&arg0, "cc.Pass:setVertexAttribBinding"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Pass_setVertexAttribBinding'", nullptr); @@ -97167,7 +97167,7 @@ int lua_cocos2dx_Pass_setVertexAttribBinding(lua_State* tolua_S) int lua_cocos2dx_Pass_setUniformTexture(lua_State* tolua_S) { int argc = 0; - cocos2d::Pass* cobj = nullptr; + axis::Pass* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -97179,7 +97179,7 @@ int lua_cocos2dx_Pass_setUniformTexture(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Pass",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Pass*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Pass*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -97193,11 +97193,11 @@ int lua_cocos2dx_Pass_setUniformTexture(lua_State* tolua_S) if (argc == 2) { unsigned int arg0; - cocos2d::backend::TextureBackend* arg1; + axis::backend::TextureBackend* arg1; ok &= luaval_to_uint32(tolua_S, 2,&arg0, "cc.Pass:setUniformTexture"); - ok &= luaval_to_object(tolua_S, 3, "ccb.TextureBackend",&arg1, "cc.Pass:setUniformTexture"); + ok &= luaval_to_object(tolua_S, 3, "ccb.TextureBackend",&arg1, "cc.Pass:setUniformTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Pass_setUniformTexture'", nullptr); @@ -97220,7 +97220,7 @@ int lua_cocos2dx_Pass_setUniformTexture(lua_State* tolua_S) int lua_cocos2dx_Pass_setUniformSpotLightInnerAngleCos(lua_State* tolua_S) { int argc = 0; - cocos2d::Pass* cobj = nullptr; + axis::Pass* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -97232,7 +97232,7 @@ int lua_cocos2dx_Pass_setUniformSpotLightInnerAngleCos(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Pass",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Pass*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Pass*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -97274,7 +97274,7 @@ int lua_cocos2dx_Pass_setUniformSpotLightInnerAngleCos(lua_State* tolua_S) int lua_cocos2dx_Pass_setUniformColor(lua_State* tolua_S) { int argc = 0; - cocos2d::Pass* cobj = nullptr; + axis::Pass* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -97286,7 +97286,7 @@ int lua_cocos2dx_Pass_setUniformColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Pass",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Pass*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Pass*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -97328,7 +97328,7 @@ int lua_cocos2dx_Pass_setUniformColor(lua_State* tolua_S) int lua_cocos2dx_Pass_setUniformPointLightColor(lua_State* tolua_S) { int argc = 0; - cocos2d::Pass* cobj = nullptr; + axis::Pass* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -97340,7 +97340,7 @@ int lua_cocos2dx_Pass_setUniformPointLightColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Pass",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Pass*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Pass*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -97396,17 +97396,17 @@ int lua_cocos2dx_Pass_createWithProgramState(lua_State* tolua_S) if (argc == 2) { - cocos2d::Technique* arg0; - cocos2d::backend::ProgramState* arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.Technique",&arg0, "cc.Pass:createWithProgramState"); - ok &= luaval_to_object(tolua_S, 3, "ccb.ProgramState",&arg1, "cc.Pass:createWithProgramState"); + axis::Technique* arg0; + axis::backend::ProgramState* arg1; + ok &= luaval_to_object(tolua_S, 2, "cc.Technique",&arg0, "cc.Pass:createWithProgramState"); + ok &= luaval_to_object(tolua_S, 3, "ccb.ProgramState",&arg1, "cc.Pass:createWithProgramState"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Pass_createWithProgramState'", nullptr); return 0; } - cocos2d::Pass* ret = cocos2d::Pass::createWithProgramState(arg0, arg1); - object_to_luaval(tolua_S, "cc.Pass",(cocos2d::Pass*)ret); + axis::Pass* ret = axis::Pass::createWithProgramState(arg0, arg1); + object_to_luaval(tolua_S, "cc.Pass",(axis::Pass*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Pass:createWithProgramState",argc, 2); @@ -97434,15 +97434,15 @@ int lua_cocos2dx_Pass_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::Technique* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Technique",&arg0, "cc.Pass:create"); + axis::Technique* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Technique",&arg0, "cc.Pass:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Pass_create'", nullptr); return 0; } - cocos2d::Pass* ret = cocos2d::Pass::create(arg0); - object_to_luaval(tolua_S, "cc.Pass",(cocos2d::Pass*)ret); + axis::Pass* ret = axis::Pass::create(arg0); + object_to_luaval(tolua_S, "cc.Pass",(axis::Pass*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Pass:create",argc, 1); @@ -97493,7 +97493,7 @@ int lua_register_cocos2dx_Pass(lua_State* tolua_S) tolua_function(tolua_S,"createWithProgramState", lua_cocos2dx_Pass_createWithProgramState); tolua_function(tolua_S,"create", lua_cocos2dx_Pass_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Pass).name(); // rtti is literal storage + auto typeName = typeid(axis::Pass).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Pass"; g_typeCast[typeName] = "cc.Pass"; return 1; @@ -97502,7 +97502,7 @@ int lua_register_cocos2dx_Pass(lua_State* tolua_S) int lua_cocos2dx_Renderer_getWinding(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -97514,7 +97514,7 @@ int lua_cocos2dx_Renderer_getWinding(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -97549,7 +97549,7 @@ int lua_cocos2dx_Renderer_getWinding(lua_State* tolua_S) int lua_cocos2dx_Renderer_getDrawnVertices(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -97561,7 +97561,7 @@ int lua_cocos2dx_Renderer_getDrawnVertices(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -97596,7 +97596,7 @@ int lua_cocos2dx_Renderer_getDrawnVertices(lua_State* tolua_S) int lua_cocos2dx_Renderer_render(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -97608,7 +97608,7 @@ int lua_cocos2dx_Renderer_render(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -97643,7 +97643,7 @@ int lua_cocos2dx_Renderer_render(lua_State* tolua_S) int lua_cocos2dx_Renderer_createRenderQueue(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -97655,7 +97655,7 @@ int lua_cocos2dx_Renderer_createRenderQueue(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -97690,7 +97690,7 @@ int lua_cocos2dx_Renderer_createRenderQueue(lua_State* tolua_S) int lua_cocos2dx_Renderer_setDepthStencilDesc(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -97702,7 +97702,7 @@ int lua_cocos2dx_Renderer_setDepthStencilDesc(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -97715,7 +97715,7 @@ int lua_cocos2dx_Renderer_setDepthStencilDesc(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::backend::DepthStencilDescriptor arg0; + axis::backend::DepthStencilDescriptor arg0; #pragma warning NO CONVERSION TO NATIVE FOR DepthStencilDescriptor ok = false; @@ -97741,7 +97741,7 @@ int lua_cocos2dx_Renderer_setDepthStencilDesc(lua_State* tolua_S) int lua_cocos2dx_Renderer_getStencilTest(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -97753,7 +97753,7 @@ int lua_cocos2dx_Renderer_getStencilTest(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -97788,7 +97788,7 @@ int lua_cocos2dx_Renderer_getStencilTest(lua_State* tolua_S) int lua_cocos2dx_Renderer_getRenderTargetFlag(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -97800,7 +97800,7 @@ int lua_cocos2dx_Renderer_getRenderTargetFlag(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -97835,7 +97835,7 @@ int lua_cocos2dx_Renderer_getRenderTargetFlag(lua_State* tolua_S) int lua_cocos2dx_Renderer_getClearFlag(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -97847,7 +97847,7 @@ int lua_cocos2dx_Renderer_getClearFlag(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -97882,7 +97882,7 @@ int lua_cocos2dx_Renderer_getClearFlag(lua_State* tolua_S) int lua_cocos2dx_Renderer_setViewPort(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -97894,7 +97894,7 @@ int lua_cocos2dx_Renderer_setViewPort(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -97941,7 +97941,7 @@ int lua_cocos2dx_Renderer_setViewPort(lua_State* tolua_S) int lua_cocos2dx_Renderer_getStencilReadMask(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -97953,7 +97953,7 @@ int lua_cocos2dx_Renderer_getStencilReadMask(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -97988,7 +97988,7 @@ int lua_cocos2dx_Renderer_getStencilReadMask(lua_State* tolua_S) int lua_cocos2dx_Renderer_getClearDepth(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -98000,7 +98000,7 @@ int lua_cocos2dx_Renderer_getClearDepth(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -98035,7 +98035,7 @@ int lua_cocos2dx_Renderer_getClearDepth(lua_State* tolua_S) int lua_cocos2dx_Renderer_setStencilCompareFunction(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -98047,7 +98047,7 @@ int lua_cocos2dx_Renderer_setStencilCompareFunction(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -98060,7 +98060,7 @@ int lua_cocos2dx_Renderer_setStencilCompareFunction(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 3) { - cocos2d::backend::CompareFunction arg0; + axis::backend::CompareFunction arg0; unsigned int arg1; unsigned int arg2; @@ -98091,7 +98091,7 @@ int lua_cocos2dx_Renderer_setStencilCompareFunction(lua_State* tolua_S) int lua_cocos2dx_Renderer_getViewport(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -98103,7 +98103,7 @@ int lua_cocos2dx_Renderer_getViewport(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -98121,7 +98121,7 @@ int lua_cocos2dx_Renderer_getViewport(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Renderer_getViewport'", nullptr); return 0; } - const cocos2d::Viewport& ret = cobj->getViewport(); + const axis::Viewport& ret = cobj->getViewport(); #pragma warning NO CONVERSION FROM NATIVE FOR Viewport; return 1; } @@ -98138,7 +98138,7 @@ int lua_cocos2dx_Renderer_getViewport(lua_State* tolua_S) int lua_cocos2dx_Renderer_getClearStencil(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -98150,7 +98150,7 @@ int lua_cocos2dx_Renderer_getClearStencil(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -98185,7 +98185,7 @@ int lua_cocos2dx_Renderer_getClearStencil(lua_State* tolua_S) int lua_cocos2dx_Renderer_addCallbackCommand(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -98197,7 +98197,7 @@ int lua_cocos2dx_Renderer_addCallbackCommand(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -98260,7 +98260,7 @@ int lua_cocos2dx_Renderer_addCallbackCommand(lua_State* tolua_S) int lua_cocos2dx_Renderer_setStencilTest(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -98272,7 +98272,7 @@ int lua_cocos2dx_Renderer_setStencilTest(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -98310,7 +98310,7 @@ int lua_cocos2dx_Renderer_setStencilTest(lua_State* tolua_S) int lua_cocos2dx_Renderer_getStencilFailureOperation(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -98322,7 +98322,7 @@ int lua_cocos2dx_Renderer_getStencilFailureOperation(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -98357,7 +98357,7 @@ int lua_cocos2dx_Renderer_getStencilFailureOperation(lua_State* tolua_S) int lua_cocos2dx_Renderer_getRenderTarget(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -98369,7 +98369,7 @@ int lua_cocos2dx_Renderer_getRenderTarget(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -98387,8 +98387,8 @@ int lua_cocos2dx_Renderer_getRenderTarget(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Renderer_getRenderTarget'", nullptr); return 0; } - cocos2d::backend::RenderTarget* ret = cobj->getRenderTarget(); - object_to_luaval(tolua_S, "ccb.RenderTarget",(cocos2d::backend::RenderTarget*)ret); + axis::backend::RenderTarget* ret = cobj->getRenderTarget(); + object_to_luaval(tolua_S, "ccb.RenderTarget",(axis::backend::RenderTarget*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Renderer:getRenderTarget",argc, 0); @@ -98404,7 +98404,7 @@ int lua_cocos2dx_Renderer_getRenderTarget(lua_State* tolua_S) int lua_cocos2dx_Renderer_addCommand(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -98413,7 +98413,7 @@ int lua_cocos2dx_Renderer_addCommand(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -98424,8 +98424,8 @@ int lua_cocos2dx_Renderer_addCommand(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { - cocos2d::RenderCommand* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.RenderCommand",&arg0, "cc.Renderer:addCommand"); + axis::RenderCommand* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.RenderCommand",&arg0, "cc.Renderer:addCommand"); if (!ok) { break; } int arg1; @@ -98440,8 +98440,8 @@ int lua_cocos2dx_Renderer_addCommand(lua_State* tolua_S) ok = true; do{ if (argc == 1) { - cocos2d::RenderCommand* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.RenderCommand",&arg0, "cc.Renderer:addCommand"); + axis::RenderCommand* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.RenderCommand",&arg0, "cc.Renderer:addCommand"); if (!ok) { break; } cobj->addCommand(arg0); @@ -98463,7 +98463,7 @@ int lua_cocos2dx_Renderer_addCommand(lua_State* tolua_S) int lua_cocos2dx_Renderer_setDepthTest(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -98475,7 +98475,7 @@ int lua_cocos2dx_Renderer_setDepthTest(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -98513,7 +98513,7 @@ int lua_cocos2dx_Renderer_setDepthTest(lua_State* tolua_S) int lua_cocos2dx_Renderer_addDrawnVertices(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -98525,7 +98525,7 @@ int lua_cocos2dx_Renderer_addDrawnVertices(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -98563,7 +98563,7 @@ int lua_cocos2dx_Renderer_addDrawnVertices(lua_State* tolua_S) int lua_cocos2dx_Renderer_setScissorRect(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -98575,7 +98575,7 @@ int lua_cocos2dx_Renderer_setScissorRect(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -98622,7 +98622,7 @@ int lua_cocos2dx_Renderer_setScissorRect(lua_State* tolua_S) int lua_cocos2dx_Renderer_getDepthTest(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -98634,7 +98634,7 @@ int lua_cocos2dx_Renderer_getDepthTest(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -98669,7 +98669,7 @@ int lua_cocos2dx_Renderer_getDepthTest(lua_State* tolua_S) int lua_cocos2dx_Renderer_init(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -98681,7 +98681,7 @@ int lua_cocos2dx_Renderer_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -98716,7 +98716,7 @@ int lua_cocos2dx_Renderer_init(lua_State* tolua_S) int lua_cocos2dx_Renderer_setDepthWrite(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -98728,7 +98728,7 @@ int lua_cocos2dx_Renderer_setDepthWrite(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -98766,7 +98766,7 @@ int lua_cocos2dx_Renderer_setDepthWrite(lua_State* tolua_S) int lua_cocos2dx_Renderer_getDepthStencilDesc(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -98778,7 +98778,7 @@ int lua_cocos2dx_Renderer_getDepthStencilDesc(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -98796,7 +98796,7 @@ int lua_cocos2dx_Renderer_getDepthStencilDesc(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Renderer_getDepthStencilDesc'", nullptr); return 0; } - const cocos2d::backend::DepthStencilDescriptor& ret = cobj->getDepthStencilDesc(); + const axis::backend::DepthStencilDescriptor& ret = cobj->getDepthStencilDesc(); #pragma warning NO CONVERSION FROM NATIVE FOR DepthStencilDescriptor; return 1; } @@ -98813,7 +98813,7 @@ int lua_cocos2dx_Renderer_getDepthStencilDesc(lua_State* tolua_S) int lua_cocos2dx_Renderer_getStencilPassDepthFailureOperation(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -98825,7 +98825,7 @@ int lua_cocos2dx_Renderer_getStencilPassDepthFailureOperation(lua_State* tolua_S if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -98860,7 +98860,7 @@ int lua_cocos2dx_Renderer_getStencilPassDepthFailureOperation(lua_State* tolua_S int lua_cocos2dx_Renderer_setCullMode(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -98872,7 +98872,7 @@ int lua_cocos2dx_Renderer_setCullMode(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -98885,7 +98885,7 @@ int lua_cocos2dx_Renderer_setCullMode(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::backend::CullMode arg0; + axis::backend::CullMode arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Renderer:setCullMode"); if(!ok) @@ -98910,7 +98910,7 @@ int lua_cocos2dx_Renderer_setCullMode(lua_State* tolua_S) int lua_cocos2dx_Renderer_popGroup(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -98922,7 +98922,7 @@ int lua_cocos2dx_Renderer_popGroup(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -98957,7 +98957,7 @@ int lua_cocos2dx_Renderer_popGroup(lua_State* tolua_S) int lua_cocos2dx_Renderer_pushGroup(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -98969,7 +98969,7 @@ int lua_cocos2dx_Renderer_pushGroup(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -99007,7 +99007,7 @@ int lua_cocos2dx_Renderer_pushGroup(lua_State* tolua_S) int lua_cocos2dx_Renderer_getScissorRect(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -99019,7 +99019,7 @@ int lua_cocos2dx_Renderer_getScissorRect(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -99037,7 +99037,7 @@ int lua_cocos2dx_Renderer_getScissorRect(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Renderer_getScissorRect'", nullptr); return 0; } - const cocos2d::ScissorRect& ret = cobj->getScissorRect(); + const axis::ScissorRect& ret = cobj->getScissorRect(); #pragma warning NO CONVERSION FROM NATIVE FOR ScissorRect; return 1; } @@ -99054,7 +99054,7 @@ int lua_cocos2dx_Renderer_getScissorRect(lua_State* tolua_S) int lua_cocos2dx_Renderer_getScissorTest(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -99066,7 +99066,7 @@ int lua_cocos2dx_Renderer_getScissorTest(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -99101,7 +99101,7 @@ int lua_cocos2dx_Renderer_getScissorTest(lua_State* tolua_S) int lua_cocos2dx_Renderer_getStencilWriteMask(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -99113,7 +99113,7 @@ int lua_cocos2dx_Renderer_getStencilWriteMask(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -99148,7 +99148,7 @@ int lua_cocos2dx_Renderer_getStencilWriteMask(lua_State* tolua_S) int lua_cocos2dx_Renderer_endRenderPass(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -99160,7 +99160,7 @@ int lua_cocos2dx_Renderer_endRenderPass(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -99195,7 +99195,7 @@ int lua_cocos2dx_Renderer_endRenderPass(lua_State* tolua_S) int lua_cocos2dx_Renderer_addDrawnBatches(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -99207,7 +99207,7 @@ int lua_cocos2dx_Renderer_addDrawnBatches(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -99245,7 +99245,7 @@ int lua_cocos2dx_Renderer_addDrawnBatches(lua_State* tolua_S) int lua_cocos2dx_Renderer_nextCallbackCommand(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -99257,7 +99257,7 @@ int lua_cocos2dx_Renderer_nextCallbackCommand(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -99275,8 +99275,8 @@ int lua_cocos2dx_Renderer_nextCallbackCommand(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Renderer_nextCallbackCommand'", nullptr); return 0; } - cocos2d::CallbackCommand* ret = cobj->nextCallbackCommand(); - object_to_luaval(tolua_S, "cc.CallbackCommand",(cocos2d::CallbackCommand*)ret); + axis::CallbackCommand* ret = cobj->nextCallbackCommand(); + object_to_luaval(tolua_S, "cc.CallbackCommand",(axis::CallbackCommand*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Renderer:nextCallbackCommand",argc, 0); @@ -99292,7 +99292,7 @@ int lua_cocos2dx_Renderer_nextCallbackCommand(lua_State* tolua_S) int lua_cocos2dx_Renderer_checkVisibility(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -99304,7 +99304,7 @@ int lua_cocos2dx_Renderer_checkVisibility(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -99317,8 +99317,8 @@ int lua_cocos2dx_Renderer_checkVisibility(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::Mat4 arg0; - cocos2d::Vec2 arg1; + axis::Mat4 arg0; + axis::Vec2 arg1; ok &= luaval_to_mat4(tolua_S, 2, &arg0, "cc.Renderer:checkVisibility"); @@ -99345,7 +99345,7 @@ int lua_cocos2dx_Renderer_checkVisibility(lua_State* tolua_S) int lua_cocos2dx_Renderer_setStencilOperation(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -99357,7 +99357,7 @@ int lua_cocos2dx_Renderer_setStencilOperation(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -99370,9 +99370,9 @@ int lua_cocos2dx_Renderer_setStencilOperation(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 3) { - cocos2d::backend::StencilOperation arg0; - cocos2d::backend::StencilOperation arg1; - cocos2d::backend::StencilOperation arg2; + axis::backend::StencilOperation arg0; + axis::backend::StencilOperation arg1; + axis::backend::StencilOperation arg2; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Renderer:setStencilOperation"); @@ -99401,7 +99401,7 @@ int lua_cocos2dx_Renderer_setStencilOperation(lua_State* tolua_S) int lua_cocos2dx_Renderer_getDepthWrite(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -99413,7 +99413,7 @@ int lua_cocos2dx_Renderer_getDepthWrite(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -99448,7 +99448,7 @@ int lua_cocos2dx_Renderer_getDepthWrite(lua_State* tolua_S) int lua_cocos2dx_Renderer_getCullMode(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -99460,7 +99460,7 @@ int lua_cocos2dx_Renderer_getCullMode(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -99495,7 +99495,7 @@ int lua_cocos2dx_Renderer_getCullMode(lua_State* tolua_S) int lua_cocos2dx_Renderer_getStencilCompareFunction(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -99507,7 +99507,7 @@ int lua_cocos2dx_Renderer_getStencilCompareFunction(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -99542,7 +99542,7 @@ int lua_cocos2dx_Renderer_getStencilCompareFunction(lua_State* tolua_S) int lua_cocos2dx_Renderer_getClearColor(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -99554,7 +99554,7 @@ int lua_cocos2dx_Renderer_getClearColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -99572,7 +99572,7 @@ int lua_cocos2dx_Renderer_getClearColor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Renderer_getClearColor'", nullptr); return 0; } - const cocos2d::Color4F& ret = cobj->getClearColor(); + const axis::Color4F& ret = cobj->getClearColor(); color4f_to_luaval(tolua_S, ret); return 1; } @@ -99589,7 +99589,7 @@ int lua_cocos2dx_Renderer_getClearColor(lua_State* tolua_S) int lua_cocos2dx_Renderer_setDepthCompareFunction(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -99601,7 +99601,7 @@ int lua_cocos2dx_Renderer_setDepthCompareFunction(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -99614,7 +99614,7 @@ int lua_cocos2dx_Renderer_setDepthCompareFunction(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::backend::CompareFunction arg0; + axis::backend::CompareFunction arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Renderer:setDepthCompareFunction"); if(!ok) @@ -99639,7 +99639,7 @@ int lua_cocos2dx_Renderer_setDepthCompareFunction(lua_State* tolua_S) int lua_cocos2dx_Renderer_setStencilWriteMask(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -99651,7 +99651,7 @@ int lua_cocos2dx_Renderer_setStencilWriteMask(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -99689,7 +99689,7 @@ int lua_cocos2dx_Renderer_setStencilWriteMask(lua_State* tolua_S) int lua_cocos2dx_Renderer_getStencilDepthPassOperation(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -99701,7 +99701,7 @@ int lua_cocos2dx_Renderer_getStencilDepthPassOperation(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -99736,7 +99736,7 @@ int lua_cocos2dx_Renderer_getStencilDepthPassOperation(lua_State* tolua_S) int lua_cocos2dx_Renderer_getOffscreenRenderTarget(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -99748,7 +99748,7 @@ int lua_cocos2dx_Renderer_getOffscreenRenderTarget(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -99766,8 +99766,8 @@ int lua_cocos2dx_Renderer_getOffscreenRenderTarget(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Renderer_getOffscreenRenderTarget'", nullptr); return 0; } - cocos2d::backend::RenderTarget* ret = cobj->getOffscreenRenderTarget(); - object_to_luaval(tolua_S, "ccb.RenderTarget",(cocos2d::backend::RenderTarget*)ret); + axis::backend::RenderTarget* ret = cobj->getOffscreenRenderTarget(); + object_to_luaval(tolua_S, "ccb.RenderTarget",(axis::backend::RenderTarget*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Renderer:getOffscreenRenderTarget",argc, 0); @@ -99783,7 +99783,7 @@ int lua_cocos2dx_Renderer_getOffscreenRenderTarget(lua_State* tolua_S) int lua_cocos2dx_Renderer_setWinding(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -99795,7 +99795,7 @@ int lua_cocos2dx_Renderer_setWinding(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -99808,7 +99808,7 @@ int lua_cocos2dx_Renderer_setWinding(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::backend::Winding arg0; + axis::backend::Winding arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Renderer:setWinding"); if(!ok) @@ -99833,7 +99833,7 @@ int lua_cocos2dx_Renderer_setWinding(lua_State* tolua_S) int lua_cocos2dx_Renderer_clear(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -99845,7 +99845,7 @@ int lua_cocos2dx_Renderer_clear(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -99858,8 +99858,8 @@ int lua_cocos2dx_Renderer_clear(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 5) { - cocos2d::backend::TargetBufferFlags arg0; - cocos2d::Color4F arg1; + axis::backend::TargetBufferFlags arg0; + axis::Color4F arg1; double arg2; unsigned int arg3; double arg4; @@ -99895,7 +99895,7 @@ int lua_cocos2dx_Renderer_clear(lua_State* tolua_S) int lua_cocos2dx_Renderer_setRenderTarget(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -99907,7 +99907,7 @@ int lua_cocos2dx_Renderer_setRenderTarget(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -99920,9 +99920,9 @@ int lua_cocos2dx_Renderer_setRenderTarget(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::backend::RenderTarget* arg0; + axis::backend::RenderTarget* arg0; - ok &= luaval_to_object(tolua_S, 2, "ccb.RenderTarget",&arg0, "cc.Renderer:setRenderTarget"); + ok &= luaval_to_object(tolua_S, 2, "ccb.RenderTarget",&arg0, "cc.Renderer:setRenderTarget"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Renderer_setRenderTarget'", nullptr); @@ -99945,7 +99945,7 @@ int lua_cocos2dx_Renderer_setRenderTarget(lua_State* tolua_S) int lua_cocos2dx_Renderer_readPixels(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -99957,7 +99957,7 @@ int lua_cocos2dx_Renderer_readPixels(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -99970,10 +99970,10 @@ int lua_cocos2dx_Renderer_readPixels(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::backend::RenderTarget* arg0; - std::function arg1; + axis::backend::RenderTarget* arg0; + std::function arg1; - ok &= luaval_to_object(tolua_S, 2, "ccb.RenderTarget",&arg0, "cc.Renderer:readPixels"); + ok &= luaval_to_object(tolua_S, 2, "ccb.RenderTarget",&arg0, "cc.Renderer:readPixels"); do { // Lambda binding for lua is not supported. @@ -100002,7 +100002,7 @@ int lua_cocos2dx_Renderer_readPixels(lua_State* tolua_S) int lua_cocos2dx_Renderer_getStencilReferenceValue(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -100014,7 +100014,7 @@ int lua_cocos2dx_Renderer_getStencilReferenceValue(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -100049,7 +100049,7 @@ int lua_cocos2dx_Renderer_getStencilReferenceValue(lua_State* tolua_S) int lua_cocos2dx_Renderer_beginRenderPass(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -100061,7 +100061,7 @@ int lua_cocos2dx_Renderer_beginRenderPass(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -100096,7 +100096,7 @@ int lua_cocos2dx_Renderer_beginRenderPass(lua_State* tolua_S) int lua_cocos2dx_Renderer_setScissorTest(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -100108,7 +100108,7 @@ int lua_cocos2dx_Renderer_setScissorTest(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -100146,7 +100146,7 @@ int lua_cocos2dx_Renderer_setScissorTest(lua_State* tolua_S) int lua_cocos2dx_Renderer_getDefaultRenderTarget(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -100158,7 +100158,7 @@ int lua_cocos2dx_Renderer_getDefaultRenderTarget(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -100176,8 +100176,8 @@ int lua_cocos2dx_Renderer_getDefaultRenderTarget(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Renderer_getDefaultRenderTarget'", nullptr); return 0; } - cocos2d::backend::RenderTarget* ret = cobj->getDefaultRenderTarget(); - object_to_luaval(tolua_S, "ccb.RenderTarget",(cocos2d::backend::RenderTarget*)ret); + axis::backend::RenderTarget* ret = cobj->getDefaultRenderTarget(); + object_to_luaval(tolua_S, "ccb.RenderTarget",(axis::backend::RenderTarget*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Renderer:getDefaultRenderTarget",argc, 0); @@ -100193,7 +100193,7 @@ int lua_cocos2dx_Renderer_getDefaultRenderTarget(lua_State* tolua_S) int lua_cocos2dx_Renderer_clean(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -100205,7 +100205,7 @@ int lua_cocos2dx_Renderer_clean(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -100240,7 +100240,7 @@ int lua_cocos2dx_Renderer_clean(lua_State* tolua_S) int lua_cocos2dx_Renderer_getDrawnBatches(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -100252,7 +100252,7 @@ int lua_cocos2dx_Renderer_getDrawnBatches(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -100287,7 +100287,7 @@ int lua_cocos2dx_Renderer_getDrawnBatches(lua_State* tolua_S) int lua_cocos2dx_Renderer_clearDrawStats(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -100299,7 +100299,7 @@ int lua_cocos2dx_Renderer_clearDrawStats(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -100334,7 +100334,7 @@ int lua_cocos2dx_Renderer_clearDrawStats(lua_State* tolua_S) int lua_cocos2dx_Renderer_getDepthCompareFunction(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -100346,7 +100346,7 @@ int lua_cocos2dx_Renderer_getDepthCompareFunction(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Renderer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Renderer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Renderer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -100381,7 +100381,7 @@ int lua_cocos2dx_Renderer_getDepthCompareFunction(lua_State* tolua_S) int lua_cocos2dx_Renderer_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Renderer* cobj = nullptr; + axis::Renderer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -100398,7 +100398,7 @@ int lua_cocos2dx_Renderer_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Renderer_constructor'", nullptr); return 0; } - cobj = new cocos2d::Renderer(); + cobj = new axis::Renderer(); tolua_pushusertype(tolua_S,(void*)cobj,"cc.Renderer"); tolua_register_gc(tolua_S,lua_gettop(tolua_S)); return 1; @@ -100485,7 +100485,7 @@ int lua_register_cocos2dx_Renderer(lua_State* tolua_S) tolua_function(tolua_S,"clearDrawStats",lua_cocos2dx_Renderer_clearDrawStats); tolua_function(tolua_S,"getDepthCompareFunction",lua_cocos2dx_Renderer_getDepthCompareFunction); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Renderer).name(); // rtti is literal storage + auto typeName = typeid(axis::Renderer).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Renderer"; g_typeCast[typeName] = "cc.Renderer"; return 1; @@ -100494,7 +100494,7 @@ int lua_register_cocos2dx_Renderer(lua_State* tolua_S) int lua_cocos2dx_TextureCache_reloadTexture(lua_State* tolua_S) { int argc = 0; - cocos2d::TextureCache* cobj = nullptr; + axis::TextureCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -100506,7 +100506,7 @@ int lua_cocos2dx_TextureCache_reloadTexture(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TextureCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -100544,7 +100544,7 @@ int lua_cocos2dx_TextureCache_reloadTexture(lua_State* tolua_S) int lua_cocos2dx_TextureCache_unbindAllImageAsync(lua_State* tolua_S) { int argc = 0; - cocos2d::TextureCache* cobj = nullptr; + axis::TextureCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -100556,7 +100556,7 @@ int lua_cocos2dx_TextureCache_unbindAllImageAsync(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TextureCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -100591,7 +100591,7 @@ int lua_cocos2dx_TextureCache_unbindAllImageAsync(lua_State* tolua_S) int lua_cocos2dx_TextureCache_removeTextureForKey(lua_State* tolua_S) { int argc = 0; - cocos2d::TextureCache* cobj = nullptr; + axis::TextureCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -100603,7 +100603,7 @@ int lua_cocos2dx_TextureCache_removeTextureForKey(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TextureCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -100641,7 +100641,7 @@ int lua_cocos2dx_TextureCache_removeTextureForKey(lua_State* tolua_S) int lua_cocos2dx_TextureCache_removeAllTextures(lua_State* tolua_S) { int argc = 0; - cocos2d::TextureCache* cobj = nullptr; + axis::TextureCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -100653,7 +100653,7 @@ int lua_cocos2dx_TextureCache_removeAllTextures(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TextureCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -100688,7 +100688,7 @@ int lua_cocos2dx_TextureCache_removeAllTextures(lua_State* tolua_S) int lua_cocos2dx_TextureCache_getDescription(lua_State* tolua_S) { int argc = 0; - cocos2d::TextureCache* cobj = nullptr; + axis::TextureCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -100700,7 +100700,7 @@ int lua_cocos2dx_TextureCache_getDescription(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TextureCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -100735,7 +100735,7 @@ int lua_cocos2dx_TextureCache_getDescription(lua_State* tolua_S) int lua_cocos2dx_TextureCache_getCachedTextureInfo(lua_State* tolua_S) { int argc = 0; - cocos2d::TextureCache* cobj = nullptr; + axis::TextureCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -100747,7 +100747,7 @@ int lua_cocos2dx_TextureCache_getCachedTextureInfo(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TextureCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -100782,7 +100782,7 @@ int lua_cocos2dx_TextureCache_getCachedTextureInfo(lua_State* tolua_S) int lua_cocos2dx_TextureCache_addImage(lua_State* tolua_S) { int argc = 0; - cocos2d::TextureCache* cobj = nullptr; + axis::TextureCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -100791,7 +100791,7 @@ int lua_cocos2dx_TextureCache_addImage(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TextureCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -100806,12 +100806,12 @@ int lua_cocos2dx_TextureCache_addImage(lua_State* tolua_S) ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.TextureCache:addImage"); if (!ok) { break; } - cocos2d::backend::PixelFormat arg1; + axis::backend::PixelFormat arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.TextureCache:addImage"); if (!ok) { break; } - cocos2d::Texture2D* ret = cobj->addImage(arg0, arg1); - object_to_luaval(tolua_S, "cc.Texture2D",(cocos2d::Texture2D*)ret); + axis::Texture2D* ret = cobj->addImage(arg0, arg1); + object_to_luaval(tolua_S, "cc.Texture2D",(axis::Texture2D*)ret); return 1; } }while(0); @@ -100822,44 +100822,44 @@ int lua_cocos2dx_TextureCache_addImage(lua_State* tolua_S) ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.TextureCache:addImage"); if (!ok) { break; } - cocos2d::Texture2D* ret = cobj->addImage(arg0); - object_to_luaval(tolua_S, "cc.Texture2D",(cocos2d::Texture2D*)ret); + axis::Texture2D* ret = cobj->addImage(arg0); + object_to_luaval(tolua_S, "cc.Texture2D",(axis::Texture2D*)ret); return 1; } }while(0); ok = true; do{ if (argc == 2) { - cocos2d::Image* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Image",&arg0, "cc.TextureCache:addImage"); + axis::Image* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Image",&arg0, "cc.TextureCache:addImage"); if (!ok) { break; } std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "cc.TextureCache:addImage"); if (!ok) { break; } - cocos2d::Texture2D* ret = cobj->addImage(arg0, arg1); - object_to_luaval(tolua_S, "cc.Texture2D",(cocos2d::Texture2D*)ret); + axis::Texture2D* ret = cobj->addImage(arg0, arg1); + object_to_luaval(tolua_S, "cc.Texture2D",(axis::Texture2D*)ret); return 1; } }while(0); ok = true; do{ if (argc == 3) { - cocos2d::Image* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Image",&arg0, "cc.TextureCache:addImage"); + axis::Image* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Image",&arg0, "cc.TextureCache:addImage"); if (!ok) { break; } std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "cc.TextureCache:addImage"); if (!ok) { break; } - cocos2d::backend::PixelFormat arg2; + axis::backend::PixelFormat arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.TextureCache:addImage"); if (!ok) { break; } - cocos2d::Texture2D* ret = cobj->addImage(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.Texture2D",(cocos2d::Texture2D*)ret); + axis::Texture2D* ret = cobj->addImage(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.Texture2D",(axis::Texture2D*)ret); return 1; } }while(0); @@ -100877,7 +100877,7 @@ int lua_cocos2dx_TextureCache_addImage(lua_State* tolua_S) int lua_cocos2dx_TextureCache_unbindImageAsync(lua_State* tolua_S) { int argc = 0; - cocos2d::TextureCache* cobj = nullptr; + axis::TextureCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -100889,7 +100889,7 @@ int lua_cocos2dx_TextureCache_unbindImageAsync(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TextureCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -100927,7 +100927,7 @@ int lua_cocos2dx_TextureCache_unbindImageAsync(lua_State* tolua_S) int lua_cocos2dx_TextureCache_getTextureForKey(lua_State* tolua_S) { int argc = 0; - cocos2d::TextureCache* cobj = nullptr; + axis::TextureCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -100939,7 +100939,7 @@ int lua_cocos2dx_TextureCache_getTextureForKey(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TextureCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -100960,8 +100960,8 @@ int lua_cocos2dx_TextureCache_getTextureForKey(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TextureCache_getTextureForKey'", nullptr); return 0; } - cocos2d::Texture2D* ret = cobj->getTextureForKey(arg0); - object_to_luaval(tolua_S, "cc.Texture2D",(cocos2d::Texture2D*)ret); + axis::Texture2D* ret = cobj->getTextureForKey(arg0); + object_to_luaval(tolua_S, "cc.Texture2D",(axis::Texture2D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.TextureCache:getTextureForKey",argc, 1); @@ -100977,7 +100977,7 @@ int lua_cocos2dx_TextureCache_getTextureForKey(lua_State* tolua_S) int lua_cocos2dx_TextureCache_getTextureFilePath(lua_State* tolua_S) { int argc = 0; - cocos2d::TextureCache* cobj = nullptr; + axis::TextureCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -100989,7 +100989,7 @@ int lua_cocos2dx_TextureCache_getTextureFilePath(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TextureCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -101002,9 +101002,9 @@ int lua_cocos2dx_TextureCache_getTextureFilePath(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Texture2D* arg0; + axis::Texture2D* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.TextureCache:getTextureFilePath"); + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.TextureCache:getTextureFilePath"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TextureCache_getTextureFilePath'", nullptr); @@ -101027,7 +101027,7 @@ int lua_cocos2dx_TextureCache_getTextureFilePath(lua_State* tolua_S) int lua_cocos2dx_TextureCache_renameTextureWithKey(lua_State* tolua_S) { int argc = 0; - cocos2d::TextureCache* cobj = nullptr; + axis::TextureCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -101039,7 +101039,7 @@ int lua_cocos2dx_TextureCache_renameTextureWithKey(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TextureCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -101080,7 +101080,7 @@ int lua_cocos2dx_TextureCache_renameTextureWithKey(lua_State* tolua_S) int lua_cocos2dx_TextureCache_removeUnusedTextures(lua_State* tolua_S) { int argc = 0; - cocos2d::TextureCache* cobj = nullptr; + axis::TextureCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -101092,7 +101092,7 @@ int lua_cocos2dx_TextureCache_removeUnusedTextures(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TextureCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -101127,7 +101127,7 @@ int lua_cocos2dx_TextureCache_removeUnusedTextures(lua_State* tolua_S) int lua_cocos2dx_TextureCache_removeTexture(lua_State* tolua_S) { int argc = 0; - cocos2d::TextureCache* cobj = nullptr; + axis::TextureCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -101139,7 +101139,7 @@ int lua_cocos2dx_TextureCache_removeTexture(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TextureCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -101152,9 +101152,9 @@ int lua_cocos2dx_TextureCache_removeTexture(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Texture2D* arg0; + axis::Texture2D* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.TextureCache:removeTexture"); + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.TextureCache:removeTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TextureCache_removeTexture'", nullptr); @@ -101177,7 +101177,7 @@ int lua_cocos2dx_TextureCache_removeTexture(lua_State* tolua_S) int lua_cocos2dx_TextureCache_waitForQuit(lua_State* tolua_S) { int argc = 0; - cocos2d::TextureCache* cobj = nullptr; + axis::TextureCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -101189,7 +101189,7 @@ int lua_cocos2dx_TextureCache_waitForQuit(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TextureCache",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TextureCache*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TextureCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -101245,7 +101245,7 @@ int lua_cocos2dx_TextureCache_setETC1AlphaFileSuffix(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TextureCache_setETC1AlphaFileSuffix'", nullptr); return 0; } - cocos2d::TextureCache::setETC1AlphaFileSuffix(arg0); + axis::TextureCache::setETC1AlphaFileSuffix(arg0); lua_settop(tolua_S, 1); return 1; } @@ -101279,7 +101279,7 @@ int lua_cocos2dx_TextureCache_getETC1AlphaFileSuffix(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TextureCache_getETC1AlphaFileSuffix'", nullptr); return 0; } - std::string ret = cocos2d::TextureCache::getETC1AlphaFileSuffix(); + std::string ret = axis::TextureCache::getETC1AlphaFileSuffix(); lua_pushlstring(tolua_S,ret.c_str(),ret.length()); return 1; } @@ -101294,7 +101294,7 @@ int lua_cocos2dx_TextureCache_getETC1AlphaFileSuffix(lua_State* tolua_S) int lua_cocos2dx_TextureCache_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TextureCache* cobj = nullptr; + axis::TextureCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -101311,7 +101311,7 @@ int lua_cocos2dx_TextureCache_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TextureCache_constructor'", nullptr); return 0; } - cobj = new cocos2d::TextureCache(); + cobj = new axis::TextureCache(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -101358,7 +101358,7 @@ int lua_register_cocos2dx_TextureCache(lua_State* tolua_S) tolua_function(tolua_S,"setETC1AlphaFileSuffix", lua_cocos2dx_TextureCache_setETC1AlphaFileSuffix); tolua_function(tolua_S,"getETC1AlphaFileSuffix", lua_cocos2dx_TextureCache_getETC1AlphaFileSuffix); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TextureCache).name(); // rtti is literal storage + auto typeName = typeid(axis::TextureCache).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TextureCache"; g_typeCast[typeName] = "cc.TextureCache"; return 1; @@ -101388,7 +101388,7 @@ int lua_cocos2dx_Device_setAccelerometerEnabled(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Device_setAccelerometerEnabled'", nullptr); return 0; } - cocos2d::Device::setAccelerometerEnabled(arg0); + axis::Device::setAccelerometerEnabled(arg0); lua_settop(tolua_S, 1); return 1; } @@ -101424,7 +101424,7 @@ int lua_cocos2dx_Device_setAccelerometerInterval(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Device_setAccelerometerInterval'", nullptr); return 0; } - cocos2d::Device::setAccelerometerInterval(arg0); + axis::Device::setAccelerometerInterval(arg0); lua_settop(tolua_S, 1); return 1; } @@ -101460,7 +101460,7 @@ int lua_cocos2dx_Device_setKeepScreenOn(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Device_setKeepScreenOn'", nullptr); return 0; } - cocos2d::Device::setKeepScreenOn(arg0); + axis::Device::setKeepScreenOn(arg0); lua_settop(tolua_S, 1); return 1; } @@ -101496,7 +101496,7 @@ int lua_cocos2dx_Device_vibrate(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Device_vibrate'", nullptr); return 0; } - cocos2d::Device::vibrate(arg0); + axis::Device::vibrate(arg0); lua_settop(tolua_S, 1); return 1; } @@ -101530,7 +101530,7 @@ int lua_cocos2dx_Device_getDPI(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Device_getDPI'", nullptr); return 0; } - int ret = cocos2d::Device::getDPI(); + int ret = axis::Device::getDPI(); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } @@ -101560,7 +101560,7 @@ int lua_register_cocos2dx_Device(lua_State* tolua_S) tolua_function(tolua_S,"vibrate", lua_cocos2dx_Device_vibrate); tolua_function(tolua_S,"getDPI", lua_cocos2dx_Device_getDPI); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Device).name(); // rtti is literal storage + auto typeName = typeid(axis::Device).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Device"; g_typeCast[typeName] = "cc.Device"; return 1; @@ -101569,7 +101569,7 @@ int lua_register_cocos2dx_Device(lua_State* tolua_S) int lua_cocos2dx_Application_getTargetPlatform(lua_State* tolua_S) { int argc = 0; - cocos2d::Application* cobj = nullptr; + axis::Application* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -101581,7 +101581,7 @@ int lua_cocos2dx_Application_getTargetPlatform(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Application",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Application*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Application*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -101616,7 +101616,7 @@ int lua_cocos2dx_Application_getTargetPlatform(lua_State* tolua_S) int lua_cocos2dx_Application_getCurrentLanguage(lua_State* tolua_S) { int argc = 0; - cocos2d::Application* cobj = nullptr; + axis::Application* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -101628,7 +101628,7 @@ int lua_cocos2dx_Application_getCurrentLanguage(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Application",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Application*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Application*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -101663,7 +101663,7 @@ int lua_cocos2dx_Application_getCurrentLanguage(lua_State* tolua_S) int lua_cocos2dx_Application_getCurrentLanguageCode(lua_State* tolua_S) { int argc = 0; - cocos2d::Application* cobj = nullptr; + axis::Application* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -101675,7 +101675,7 @@ int lua_cocos2dx_Application_getCurrentLanguageCode(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Application",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Application*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Application*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -101710,7 +101710,7 @@ int lua_cocos2dx_Application_getCurrentLanguageCode(lua_State* tolua_S) int lua_cocos2dx_Application_openURL(lua_State* tolua_S) { int argc = 0; - cocos2d::Application* cobj = nullptr; + axis::Application* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -101722,7 +101722,7 @@ int lua_cocos2dx_Application_openURL(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Application",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Application*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Application*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -101760,7 +101760,7 @@ int lua_cocos2dx_Application_openURL(lua_State* tolua_S) int lua_cocos2dx_Application_getVersion(lua_State* tolua_S) { int argc = 0; - cocos2d::Application* cobj = nullptr; + axis::Application* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -101772,7 +101772,7 @@ int lua_cocos2dx_Application_getVersion(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Application",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Application*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Application*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -101807,7 +101807,7 @@ int lua_cocos2dx_Application_getVersion(lua_State* tolua_S) int lua_cocos2dx_Application_setAnimationInterval(lua_State* tolua_S) { int argc = 0; - cocos2d::Application* cobj = nullptr; + axis::Application* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -101819,7 +101819,7 @@ int lua_cocos2dx_Application_setAnimationInterval(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Application",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Application*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Application*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -101876,8 +101876,8 @@ int lua_cocos2dx_Application_getInstance(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_Application_getInstance'", nullptr); return 0; } - cocos2d::Application* ret = cocos2d::Application::getInstance(); - object_to_luaval(tolua_S, "cc.Application",(cocos2d::Application*)ret); + axis::Application* ret = axis::Application::getInstance(); + object_to_luaval(tolua_S, "cc.Application",(axis::Application*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Application:getInstance",argc, 0); @@ -101908,7 +101908,7 @@ int lua_register_cocos2dx_Application(lua_State* tolua_S) tolua_function(tolua_S,"setAnimationInterval",lua_cocos2dx_Application_setAnimationInterval); tolua_function(tolua_S,"getInstance", lua_cocos2dx_Application_getInstance); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Application).name(); // rtti is literal storage + auto typeName = typeid(axis::Application).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Application"; g_typeCast[typeName] = "cc.Application"; return 1; @@ -101932,7 +101932,7 @@ int lua_cocos2dx_GLViewImpl_createWithRect(lua_State* tolua_S) if (argc == 2) { std::string_view arg0; - cocos2d::Rect arg1; + axis::Rect arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.GLViewImpl:createWithRect"); ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.GLViewImpl:createWithRect"); if(!ok) @@ -101940,14 +101940,14 @@ int lua_cocos2dx_GLViewImpl_createWithRect(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLViewImpl_createWithRect'", nullptr); return 0; } - cocos2d::GLViewImpl* ret = cocos2d::GLViewImpl::createWithRect(arg0, arg1); - object_to_luaval(tolua_S, "cc.GLViewImpl",(cocos2d::GLViewImpl*)ret); + axis::GLViewImpl* ret = axis::GLViewImpl::createWithRect(arg0, arg1); + object_to_luaval(tolua_S, "cc.GLViewImpl",(axis::GLViewImpl*)ret); return 1; } if (argc == 3) { std::string_view arg0; - cocos2d::Rect arg1; + axis::Rect arg1; double arg2; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.GLViewImpl:createWithRect"); ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.GLViewImpl:createWithRect"); @@ -101957,8 +101957,8 @@ int lua_cocos2dx_GLViewImpl_createWithRect(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLViewImpl_createWithRect'", nullptr); return 0; } - cocos2d::GLViewImpl* ret = cocos2d::GLViewImpl::createWithRect(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.GLViewImpl",(cocos2d::GLViewImpl*)ret); + axis::GLViewImpl* ret = axis::GLViewImpl::createWithRect(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.GLViewImpl",(axis::GLViewImpl*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.GLViewImpl:createWithRect",argc, 2); @@ -101993,8 +101993,8 @@ int lua_cocos2dx_GLViewImpl_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLViewImpl_create'", nullptr); return 0; } - cocos2d::GLViewImpl* ret = cocos2d::GLViewImpl::create(arg0); - object_to_luaval(tolua_S, "cc.GLViewImpl",(cocos2d::GLViewImpl*)ret); + axis::GLViewImpl* ret = axis::GLViewImpl::create(arg0); + object_to_luaval(tolua_S, "cc.GLViewImpl",(axis::GLViewImpl*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.GLViewImpl:create",argc, 1); @@ -102029,8 +102029,8 @@ int lua_cocos2dx_GLViewImpl_createWithFullScreen(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_GLViewImpl_createWithFullScreen'", nullptr); return 0; } - cocos2d::GLViewImpl* ret = cocos2d::GLViewImpl::createWithFullScreen(arg0); - object_to_luaval(tolua_S, "cc.GLViewImpl",(cocos2d::GLViewImpl*)ret); + axis::GLViewImpl* ret = axis::GLViewImpl::createWithFullScreen(arg0); + object_to_luaval(tolua_S, "cc.GLViewImpl",(axis::GLViewImpl*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.GLViewImpl:createWithFullScreen",argc, 1); @@ -102057,7 +102057,7 @@ int lua_register_cocos2dx_GLViewImpl(lua_State* tolua_S) tolua_function(tolua_S,"create", lua_cocos2dx_GLViewImpl_create); tolua_function(tolua_S,"createWithFullScreen", lua_cocos2dx_GLViewImpl_createWithFullScreen); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::GLViewImpl).name(); // rtti is literal storage + auto typeName = typeid(axis::GLViewImpl).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.GLViewImpl"; g_typeCast[typeName] = "cc.GLViewImpl"; return 1; @@ -102066,7 +102066,7 @@ int lua_register_cocos2dx_GLViewImpl(lua_State* tolua_S) int lua_cocos2dx_AnimationCache_getAnimation(lua_State* tolua_S) { int argc = 0; - cocos2d::AnimationCache* cobj = nullptr; + axis::AnimationCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -102078,7 +102078,7 @@ int lua_cocos2dx_AnimationCache_getAnimation(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.AnimationCache",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::AnimationCache*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::AnimationCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -102099,8 +102099,8 @@ int lua_cocos2dx_AnimationCache_getAnimation(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AnimationCache_getAnimation'", nullptr); return 0; } - cocos2d::Animation* ret = cobj->getAnimation(arg0); - object_to_luaval(tolua_S, "cc.Animation",(cocos2d::Animation*)ret); + axis::Animation* ret = cobj->getAnimation(arg0); + object_to_luaval(tolua_S, "cc.Animation",(axis::Animation*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AnimationCache:getAnimation",argc, 1); @@ -102116,7 +102116,7 @@ int lua_cocos2dx_AnimationCache_getAnimation(lua_State* tolua_S) int lua_cocos2dx_AnimationCache_addAnimation(lua_State* tolua_S) { int argc = 0; - cocos2d::AnimationCache* cobj = nullptr; + axis::AnimationCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -102128,7 +102128,7 @@ int lua_cocos2dx_AnimationCache_addAnimation(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.AnimationCache",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::AnimationCache*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::AnimationCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -102141,10 +102141,10 @@ int lua_cocos2dx_AnimationCache_addAnimation(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::Animation* arg0; + axis::Animation* arg0; std::string_view arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.Animation",&arg0, "cc.AnimationCache:addAnimation"); + ok &= luaval_to_object(tolua_S, 2, "cc.Animation",&arg0, "cc.AnimationCache:addAnimation"); ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "cc.AnimationCache:addAnimation"); if(!ok) @@ -102169,7 +102169,7 @@ int lua_cocos2dx_AnimationCache_addAnimation(lua_State* tolua_S) int lua_cocos2dx_AnimationCache_init(lua_State* tolua_S) { int argc = 0; - cocos2d::AnimationCache* cobj = nullptr; + axis::AnimationCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -102181,7 +102181,7 @@ int lua_cocos2dx_AnimationCache_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.AnimationCache",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::AnimationCache*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::AnimationCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -102216,7 +102216,7 @@ int lua_cocos2dx_AnimationCache_init(lua_State* tolua_S) int lua_cocos2dx_AnimationCache_addAnimationsWithDictionary(lua_State* tolua_S) { int argc = 0; - cocos2d::AnimationCache* cobj = nullptr; + axis::AnimationCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -102228,7 +102228,7 @@ int lua_cocos2dx_AnimationCache_addAnimationsWithDictionary(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.AnimationCache",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::AnimationCache*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::AnimationCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -102241,7 +102241,7 @@ int lua_cocos2dx_AnimationCache_addAnimationsWithDictionary(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::ValueMap arg0; + axis::ValueMap arg0; std::string_view arg1; ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.AnimationCache:addAnimationsWithDictionary"); @@ -102269,7 +102269,7 @@ int lua_cocos2dx_AnimationCache_addAnimationsWithDictionary(lua_State* tolua_S) int lua_cocos2dx_AnimationCache_removeAnimation(lua_State* tolua_S) { int argc = 0; - cocos2d::AnimationCache* cobj = nullptr; + axis::AnimationCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -102281,7 +102281,7 @@ int lua_cocos2dx_AnimationCache_removeAnimation(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.AnimationCache",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::AnimationCache*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::AnimationCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -102319,7 +102319,7 @@ int lua_cocos2dx_AnimationCache_removeAnimation(lua_State* tolua_S) int lua_cocos2dx_AnimationCache_addAnimationsWithFile(lua_State* tolua_S) { int argc = 0; - cocos2d::AnimationCache* cobj = nullptr; + axis::AnimationCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -102331,7 +102331,7 @@ int lua_cocos2dx_AnimationCache_addAnimationsWithFile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.AnimationCache",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::AnimationCache*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::AnimationCache*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -102388,7 +102388,7 @@ int lua_cocos2dx_AnimationCache_destroyInstance(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AnimationCache_destroyInstance'", nullptr); return 0; } - cocos2d::AnimationCache::destroyInstance(); + axis::AnimationCache::destroyInstance(); lua_settop(tolua_S, 1); return 1; } @@ -102422,8 +102422,8 @@ int lua_cocos2dx_AnimationCache_getInstance(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AnimationCache_getInstance'", nullptr); return 0; } - cocos2d::AnimationCache* ret = cocos2d::AnimationCache::getInstance(); - object_to_luaval(tolua_S, "cc.AnimationCache",(cocos2d::AnimationCache*)ret); + axis::AnimationCache* ret = axis::AnimationCache::getInstance(); + object_to_luaval(tolua_S, "cc.AnimationCache",(axis::AnimationCache*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.AnimationCache:getInstance",argc, 0); @@ -102437,7 +102437,7 @@ int lua_cocos2dx_AnimationCache_getInstance(lua_State* tolua_S) int lua_cocos2dx_AnimationCache_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::AnimationCache* cobj = nullptr; + axis::AnimationCache* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -102454,7 +102454,7 @@ int lua_cocos2dx_AnimationCache_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_AnimationCache_constructor'", nullptr); return 0; } - cobj = new cocos2d::AnimationCache(); + cobj = new axis::AnimationCache(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -102493,7 +102493,7 @@ int lua_register_cocos2dx_AnimationCache(lua_State* tolua_S) tolua_function(tolua_S,"destroyInstance", lua_cocos2dx_AnimationCache_destroyInstance); tolua_function(tolua_S,"getInstance", lua_cocos2dx_AnimationCache_getInstance); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::AnimationCache).name(); // rtti is literal storage + auto typeName = typeid(axis::AnimationCache).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.AnimationCache"; g_typeCast[typeName] = "cc.AnimationCache"; return 1; @@ -102502,7 +102502,7 @@ int lua_register_cocos2dx_AnimationCache(lua_State* tolua_S) int lua_cocos2dx_SpriteBatchNode_appendChild(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteBatchNode* cobj = nullptr; + axis::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -102514,7 +102514,7 @@ int lua_cocos2dx_SpriteBatchNode_appendChild(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -102527,9 +102527,9 @@ int lua_cocos2dx_SpriteBatchNode_appendChild(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Sprite* arg0; + axis::Sprite* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0, "cc.SpriteBatchNode:appendChild"); + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0, "cc.SpriteBatchNode:appendChild"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_appendChild'", nullptr); @@ -102552,7 +102552,7 @@ int lua_cocos2dx_SpriteBatchNode_appendChild(lua_State* tolua_S) int lua_cocos2dx_SpriteBatchNode_reorderBatch(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteBatchNode* cobj = nullptr; + axis::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -102564,7 +102564,7 @@ int lua_cocos2dx_SpriteBatchNode_reorderBatch(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -102602,7 +102602,7 @@ int lua_cocos2dx_SpriteBatchNode_reorderBatch(lua_State* tolua_S) int lua_cocos2dx_SpriteBatchNode_getTexture(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteBatchNode* cobj = nullptr; + axis::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -102614,7 +102614,7 @@ int lua_cocos2dx_SpriteBatchNode_getTexture(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -102632,8 +102632,8 @@ int lua_cocos2dx_SpriteBatchNode_getTexture(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_getTexture'", nullptr); return 0; } - cocos2d::Texture2D* ret = cobj->getTexture(); - object_to_luaval(tolua_S, "cc.Texture2D",(cocos2d::Texture2D*)ret); + axis::Texture2D* ret = cobj->getTexture(); + object_to_luaval(tolua_S, "cc.Texture2D",(axis::Texture2D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:getTexture",argc, 0); @@ -102649,7 +102649,7 @@ int lua_cocos2dx_SpriteBatchNode_getTexture(lua_State* tolua_S) int lua_cocos2dx_SpriteBatchNode_setTexture(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteBatchNode* cobj = nullptr; + axis::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -102661,7 +102661,7 @@ int lua_cocos2dx_SpriteBatchNode_setTexture(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -102674,9 +102674,9 @@ int lua_cocos2dx_SpriteBatchNode_setTexture(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Texture2D* arg0; + axis::Texture2D* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.SpriteBatchNode:setTexture"); + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.SpriteBatchNode:setTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_setTexture'", nullptr); @@ -102699,7 +102699,7 @@ int lua_cocos2dx_SpriteBatchNode_setTexture(lua_State* tolua_S) int lua_cocos2dx_SpriteBatchNode_removeChildAtIndex(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteBatchNode* cobj = nullptr; + axis::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -102711,7 +102711,7 @@ int lua_cocos2dx_SpriteBatchNode_removeChildAtIndex(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -102752,7 +102752,7 @@ int lua_cocos2dx_SpriteBatchNode_removeChildAtIndex(lua_State* tolua_S) int lua_cocos2dx_SpriteBatchNode_removeSpriteFromAtlas(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteBatchNode* cobj = nullptr; + axis::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -102764,7 +102764,7 @@ int lua_cocos2dx_SpriteBatchNode_removeSpriteFromAtlas(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -102777,9 +102777,9 @@ int lua_cocos2dx_SpriteBatchNode_removeSpriteFromAtlas(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Sprite* arg0; + axis::Sprite* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0, "cc.SpriteBatchNode:removeSpriteFromAtlas"); + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0, "cc.SpriteBatchNode:removeSpriteFromAtlas"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_removeSpriteFromAtlas'", nullptr); @@ -102802,7 +102802,7 @@ int lua_cocos2dx_SpriteBatchNode_removeSpriteFromAtlas(lua_State* tolua_S) int lua_cocos2dx_SpriteBatchNode_addSpriteWithoutQuad(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteBatchNode* cobj = nullptr; + axis::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -102814,7 +102814,7 @@ int lua_cocos2dx_SpriteBatchNode_addSpriteWithoutQuad(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -102827,11 +102827,11 @@ int lua_cocos2dx_SpriteBatchNode_addSpriteWithoutQuad(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 3) { - cocos2d::Sprite* arg0; + axis::Sprite* arg0; int arg1; int arg2; - ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0, "cc.SpriteBatchNode:addSpriteWithoutQuad"); + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0, "cc.SpriteBatchNode:addSpriteWithoutQuad"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.SpriteBatchNode:addSpriteWithoutQuad"); @@ -102841,8 +102841,8 @@ int lua_cocos2dx_SpriteBatchNode_addSpriteWithoutQuad(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_addSpriteWithoutQuad'", nullptr); return 0; } - cocos2d::SpriteBatchNode* ret = cobj->addSpriteWithoutQuad(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.SpriteBatchNode",(cocos2d::SpriteBatchNode*)ret); + axis::SpriteBatchNode* ret = cobj->addSpriteWithoutQuad(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.SpriteBatchNode",(axis::SpriteBatchNode*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:addSpriteWithoutQuad",argc, 3); @@ -102858,7 +102858,7 @@ int lua_cocos2dx_SpriteBatchNode_addSpriteWithoutQuad(lua_State* tolua_S) int lua_cocos2dx_SpriteBatchNode_atlasIndexForChild(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteBatchNode* cobj = nullptr; + axis::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -102870,7 +102870,7 @@ int lua_cocos2dx_SpriteBatchNode_atlasIndexForChild(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -102883,10 +102883,10 @@ int lua_cocos2dx_SpriteBatchNode_atlasIndexForChild(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::Sprite* arg0; + axis::Sprite* arg0; int arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0, "cc.SpriteBatchNode:atlasIndexForChild"); + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0, "cc.SpriteBatchNode:atlasIndexForChild"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.SpriteBatchNode:atlasIndexForChild"); if(!ok) @@ -102911,7 +102911,7 @@ int lua_cocos2dx_SpriteBatchNode_atlasIndexForChild(lua_State* tolua_S) int lua_cocos2dx_SpriteBatchNode_increaseAtlasCapacity(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteBatchNode* cobj = nullptr; + axis::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -102923,7 +102923,7 @@ int lua_cocos2dx_SpriteBatchNode_increaseAtlasCapacity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -102958,7 +102958,7 @@ int lua_cocos2dx_SpriteBatchNode_increaseAtlasCapacity(lua_State* tolua_S) int lua_cocos2dx_SpriteBatchNode_lowestAtlasIndexInChild(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteBatchNode* cobj = nullptr; + axis::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -102970,7 +102970,7 @@ int lua_cocos2dx_SpriteBatchNode_lowestAtlasIndexInChild(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -102983,9 +102983,9 @@ int lua_cocos2dx_SpriteBatchNode_lowestAtlasIndexInChild(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Sprite* arg0; + axis::Sprite* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0, "cc.SpriteBatchNode:lowestAtlasIndexInChild"); + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0, "cc.SpriteBatchNode:lowestAtlasIndexInChild"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_lowestAtlasIndexInChild'", nullptr); @@ -103008,7 +103008,7 @@ int lua_cocos2dx_SpriteBatchNode_lowestAtlasIndexInChild(lua_State* tolua_S) int lua_cocos2dx_SpriteBatchNode_getBlendFunc(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteBatchNode* cobj = nullptr; + axis::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -103020,7 +103020,7 @@ int lua_cocos2dx_SpriteBatchNode_getBlendFunc(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -103038,7 +103038,7 @@ int lua_cocos2dx_SpriteBatchNode_getBlendFunc(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_getBlendFunc'", nullptr); return 0; } - const cocos2d::BlendFunc& ret = cobj->getBlendFunc(); + const axis::BlendFunc& ret = cobj->getBlendFunc(); blendfunc_to_luaval(tolua_S, ret); return 1; } @@ -103055,7 +103055,7 @@ int lua_cocos2dx_SpriteBatchNode_getBlendFunc(lua_State* tolua_S) int lua_cocos2dx_SpriteBatchNode_initWithTexture(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteBatchNode* cobj = nullptr; + axis::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -103067,7 +103067,7 @@ int lua_cocos2dx_SpriteBatchNode_initWithTexture(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -103080,9 +103080,9 @@ int lua_cocos2dx_SpriteBatchNode_initWithTexture(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Texture2D* arg0; + axis::Texture2D* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.SpriteBatchNode:initWithTexture"); + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.SpriteBatchNode:initWithTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_initWithTexture'", nullptr); @@ -103094,10 +103094,10 @@ int lua_cocos2dx_SpriteBatchNode_initWithTexture(lua_State* tolua_S) } if (argc == 2) { - cocos2d::Texture2D* arg0; + axis::Texture2D* arg0; ssize_t arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.SpriteBatchNode:initWithTexture"); + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.SpriteBatchNode:initWithTexture"); ok &= luaval_to_ssize_t(tolua_S, 3, &arg1, "cc.SpriteBatchNode:initWithTexture"); if(!ok) @@ -103122,7 +103122,7 @@ int lua_cocos2dx_SpriteBatchNode_initWithTexture(lua_State* tolua_S) int lua_cocos2dx_SpriteBatchNode_setTextureAtlas(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteBatchNode* cobj = nullptr; + axis::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -103134,7 +103134,7 @@ int lua_cocos2dx_SpriteBatchNode_setTextureAtlas(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -103147,9 +103147,9 @@ int lua_cocos2dx_SpriteBatchNode_setTextureAtlas(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::TextureAtlas* arg0; + axis::TextureAtlas* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.TextureAtlas",&arg0, "cc.SpriteBatchNode:setTextureAtlas"); + ok &= luaval_to_object(tolua_S, 2, "cc.TextureAtlas",&arg0, "cc.SpriteBatchNode:setTextureAtlas"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_setTextureAtlas'", nullptr); @@ -103172,7 +103172,7 @@ int lua_cocos2dx_SpriteBatchNode_setTextureAtlas(lua_State* tolua_S) int lua_cocos2dx_SpriteBatchNode_reserveCapacity(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteBatchNode* cobj = nullptr; + axis::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -103184,7 +103184,7 @@ int lua_cocos2dx_SpriteBatchNode_reserveCapacity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -103222,7 +103222,7 @@ int lua_cocos2dx_SpriteBatchNode_reserveCapacity(lua_State* tolua_S) int lua_cocos2dx_SpriteBatchNode_removeAllChildrenWithCleanup(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteBatchNode* cobj = nullptr; + axis::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -103234,7 +103234,7 @@ int lua_cocos2dx_SpriteBatchNode_removeAllChildrenWithCleanup(lua_State* tolua_S if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -103272,7 +103272,7 @@ int lua_cocos2dx_SpriteBatchNode_removeAllChildrenWithCleanup(lua_State* tolua_S int lua_cocos2dx_SpriteBatchNode_insertQuadFromSprite(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteBatchNode* cobj = nullptr; + axis::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -103284,7 +103284,7 @@ int lua_cocos2dx_SpriteBatchNode_insertQuadFromSprite(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -103297,10 +103297,10 @@ int lua_cocos2dx_SpriteBatchNode_insertQuadFromSprite(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::Sprite* arg0; + axis::Sprite* arg0; ssize_t arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0, "cc.SpriteBatchNode:insertQuadFromSprite"); + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0, "cc.SpriteBatchNode:insertQuadFromSprite"); ok &= luaval_to_ssize_t(tolua_S, 3, &arg1, "cc.SpriteBatchNode:insertQuadFromSprite"); if(!ok) @@ -103325,7 +103325,7 @@ int lua_cocos2dx_SpriteBatchNode_insertQuadFromSprite(lua_State* tolua_S) int lua_cocos2dx_SpriteBatchNode_initWithFile(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteBatchNode* cobj = nullptr; + axis::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -103337,7 +103337,7 @@ int lua_cocos2dx_SpriteBatchNode_initWithFile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -103392,7 +103392,7 @@ int lua_cocos2dx_SpriteBatchNode_initWithFile(lua_State* tolua_S) int lua_cocos2dx_SpriteBatchNode_setBlendFunc(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteBatchNode* cobj = nullptr; + axis::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -103404,7 +103404,7 @@ int lua_cocos2dx_SpriteBatchNode_setBlendFunc(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -103417,7 +103417,7 @@ int lua_cocos2dx_SpriteBatchNode_setBlendFunc(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::BlendFunc arg0; + axis::BlendFunc arg0; ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "cc.SpriteBatchNode:setBlendFunc"); if(!ok) @@ -103442,7 +103442,7 @@ int lua_cocos2dx_SpriteBatchNode_setBlendFunc(lua_State* tolua_S) int lua_cocos2dx_SpriteBatchNode_rebuildIndexInOrder(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteBatchNode* cobj = nullptr; + axis::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -103454,7 +103454,7 @@ int lua_cocos2dx_SpriteBatchNode_rebuildIndexInOrder(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -103467,10 +103467,10 @@ int lua_cocos2dx_SpriteBatchNode_rebuildIndexInOrder(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::Sprite* arg0; + axis::Sprite* arg0; ssize_t arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0, "cc.SpriteBatchNode:rebuildIndexInOrder"); + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0, "cc.SpriteBatchNode:rebuildIndexInOrder"); ok &= luaval_to_ssize_t(tolua_S, 3, &arg1, "cc.SpriteBatchNode:rebuildIndexInOrder"); if(!ok) @@ -103495,7 +103495,7 @@ int lua_cocos2dx_SpriteBatchNode_rebuildIndexInOrder(lua_State* tolua_S) int lua_cocos2dx_SpriteBatchNode_getTextureAtlas(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteBatchNode* cobj = nullptr; + axis::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -103507,7 +103507,7 @@ int lua_cocos2dx_SpriteBatchNode_getTextureAtlas(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -103525,8 +103525,8 @@ int lua_cocos2dx_SpriteBatchNode_getTextureAtlas(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_getTextureAtlas'", nullptr); return 0; } - cocos2d::TextureAtlas* ret = cobj->getTextureAtlas(); - object_to_luaval(tolua_S, "cc.TextureAtlas",(cocos2d::TextureAtlas*)ret); + axis::TextureAtlas* ret = cobj->getTextureAtlas(); + object_to_luaval(tolua_S, "cc.TextureAtlas",(axis::TextureAtlas*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.SpriteBatchNode:getTextureAtlas",argc, 0); @@ -103542,7 +103542,7 @@ int lua_cocos2dx_SpriteBatchNode_getTextureAtlas(lua_State* tolua_S) int lua_cocos2dx_SpriteBatchNode_highestAtlasIndexInChild(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteBatchNode* cobj = nullptr; + axis::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -103554,7 +103554,7 @@ int lua_cocos2dx_SpriteBatchNode_highestAtlasIndexInChild(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.SpriteBatchNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::SpriteBatchNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -103567,9 +103567,9 @@ int lua_cocos2dx_SpriteBatchNode_highestAtlasIndexInChild(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Sprite* arg0; + axis::Sprite* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0, "cc.SpriteBatchNode:highestAtlasIndexInChild"); + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0, "cc.SpriteBatchNode:highestAtlasIndexInChild"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_highestAtlasIndexInChild'", nullptr); @@ -103613,8 +103613,8 @@ int lua_cocos2dx_SpriteBatchNode_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_create'", nullptr); return 0; } - cocos2d::SpriteBatchNode* ret = cocos2d::SpriteBatchNode::create(arg0); - object_to_luaval(tolua_S, "cc.SpriteBatchNode",(cocos2d::SpriteBatchNode*)ret); + axis::SpriteBatchNode* ret = axis::SpriteBatchNode::create(arg0); + object_to_luaval(tolua_S, "cc.SpriteBatchNode",(axis::SpriteBatchNode*)ret); return 1; } if (argc == 2) @@ -103628,8 +103628,8 @@ int lua_cocos2dx_SpriteBatchNode_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_create'", nullptr); return 0; } - cocos2d::SpriteBatchNode* ret = cocos2d::SpriteBatchNode::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.SpriteBatchNode",(cocos2d::SpriteBatchNode*)ret); + axis::SpriteBatchNode* ret = axis::SpriteBatchNode::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.SpriteBatchNode",(axis::SpriteBatchNode*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.SpriteBatchNode:create",argc, 1); @@ -103657,30 +103657,30 @@ int lua_cocos2dx_SpriteBatchNode_createWithTexture(lua_State* tolua_S) if (argc == 1) { - cocos2d::Texture2D* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.SpriteBatchNode:createWithTexture"); + axis::Texture2D* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.SpriteBatchNode:createWithTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_createWithTexture'", nullptr); return 0; } - cocos2d::SpriteBatchNode* ret = cocos2d::SpriteBatchNode::createWithTexture(arg0); - object_to_luaval(tolua_S, "cc.SpriteBatchNode",(cocos2d::SpriteBatchNode*)ret); + axis::SpriteBatchNode* ret = axis::SpriteBatchNode::createWithTexture(arg0); + object_to_luaval(tolua_S, "cc.SpriteBatchNode",(axis::SpriteBatchNode*)ret); return 1; } if (argc == 2) { - cocos2d::Texture2D* arg0; + axis::Texture2D* arg0; ssize_t arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.SpriteBatchNode:createWithTexture"); + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.SpriteBatchNode:createWithTexture"); ok &= luaval_to_ssize_t(tolua_S, 3, &arg1, "cc.SpriteBatchNode:createWithTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_createWithTexture'", nullptr); return 0; } - cocos2d::SpriteBatchNode* ret = cocos2d::SpriteBatchNode::createWithTexture(arg0, arg1); - object_to_luaval(tolua_S, "cc.SpriteBatchNode",(cocos2d::SpriteBatchNode*)ret); + axis::SpriteBatchNode* ret = axis::SpriteBatchNode::createWithTexture(arg0, arg1); + object_to_luaval(tolua_S, "cc.SpriteBatchNode",(axis::SpriteBatchNode*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.SpriteBatchNode:createWithTexture",argc, 1); @@ -103694,7 +103694,7 @@ int lua_cocos2dx_SpriteBatchNode_createWithTexture(lua_State* tolua_S) int lua_cocos2dx_SpriteBatchNode_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::SpriteBatchNode* cobj = nullptr; + axis::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -103711,7 +103711,7 @@ int lua_cocos2dx_SpriteBatchNode_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_SpriteBatchNode_constructor'", nullptr); return 0; } - cobj = new cocos2d::SpriteBatchNode(); + cobj = new axis::SpriteBatchNode(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -103765,7 +103765,7 @@ int lua_register_cocos2dx_SpriteBatchNode(lua_State* tolua_S) tolua_function(tolua_S,"create", lua_cocos2dx_SpriteBatchNode_create); tolua_function(tolua_S,"createWithTexture", lua_cocos2dx_SpriteBatchNode_createWithTexture); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::SpriteBatchNode).name(); // rtti is literal storage + auto typeName = typeid(axis::SpriteBatchNode).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.SpriteBatchNode"; g_typeCast[typeName] = "cc.SpriteBatchNode"; return 1; @@ -103774,7 +103774,7 @@ int lua_register_cocos2dx_SpriteBatchNode(lua_State* tolua_S) int lua_cocos2dx_ParallaxNode_addChild(lua_State* tolua_S) { int argc = 0; - cocos2d::ParallaxNode* cobj = nullptr; + axis::ParallaxNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -103786,7 +103786,7 @@ int lua_cocos2dx_ParallaxNode_addChild(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParallaxNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParallaxNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParallaxNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -103799,12 +103799,12 @@ int lua_cocos2dx_ParallaxNode_addChild(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 4) { - cocos2d::Node* arg0; + axis::Node* arg0; int arg1; - cocos2d::Vec2 arg2; - cocos2d::Vec2 arg3; + axis::Vec2 arg2; + axis::Vec2 arg3; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.ParallaxNode:addChild"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "cc.ParallaxNode:addChild"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.ParallaxNode:addChild"); @@ -103833,7 +103833,7 @@ int lua_cocos2dx_ParallaxNode_addChild(lua_State* tolua_S) int lua_cocos2dx_ParallaxNode_removeAllChildrenWithCleanup(lua_State* tolua_S) { int argc = 0; - cocos2d::ParallaxNode* cobj = nullptr; + axis::ParallaxNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -103845,7 +103845,7 @@ int lua_cocos2dx_ParallaxNode_removeAllChildrenWithCleanup(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParallaxNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParallaxNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParallaxNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -103902,8 +103902,8 @@ int lua_cocos2dx_ParallaxNode_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParallaxNode_create'", nullptr); return 0; } - cocos2d::ParallaxNode* ret = cocos2d::ParallaxNode::create(); - object_to_luaval(tolua_S, "cc.ParallaxNode",(cocos2d::ParallaxNode*)ret); + axis::ParallaxNode* ret = axis::ParallaxNode::create(); + object_to_luaval(tolua_S, "cc.ParallaxNode",(axis::ParallaxNode*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ParallaxNode:create",argc, 0); @@ -103917,7 +103917,7 @@ int lua_cocos2dx_ParallaxNode_create(lua_State* tolua_S) int lua_cocos2dx_ParallaxNode_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ParallaxNode* cobj = nullptr; + axis::ParallaxNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -103934,7 +103934,7 @@ int lua_cocos2dx_ParallaxNode_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ParallaxNode_constructor'", nullptr); return 0; } - cobj = new cocos2d::ParallaxNode(); + cobj = new axis::ParallaxNode(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -103968,7 +103968,7 @@ int lua_register_cocos2dx_ParallaxNode(lua_State* tolua_S) tolua_function(tolua_S,"removeAllChildrenWithCleanup",lua_cocos2dx_ParallaxNode_removeAllChildrenWithCleanup); tolua_function(tolua_S,"create", lua_cocos2dx_ParallaxNode_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ParallaxNode).name(); // rtti is literal storage + auto typeName = typeid(axis::ParallaxNode).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.ParallaxNode"; g_typeCast[typeName] = "cc.ParallaxNode"; return 1; @@ -103977,7 +103977,7 @@ int lua_register_cocos2dx_ParallaxNode(lua_State* tolua_S) int lua_cocos2dx_TMXObjectGroup_setPositionOffset(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXObjectGroup* cobj = nullptr; + axis::TMXObjectGroup* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -103989,7 +103989,7 @@ int lua_cocos2dx_TMXObjectGroup_setPositionOffset(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -104002,7 +104002,7 @@ int lua_cocos2dx_TMXObjectGroup_setPositionOffset(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.TMXObjectGroup:setPositionOffset"); if(!ok) @@ -104027,7 +104027,7 @@ int lua_cocos2dx_TMXObjectGroup_setPositionOffset(lua_State* tolua_S) int lua_cocos2dx_TMXObjectGroup_getProperty(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXObjectGroup* cobj = nullptr; + axis::TMXObjectGroup* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -104039,7 +104039,7 @@ int lua_cocos2dx_TMXObjectGroup_getProperty(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -104060,7 +104060,7 @@ int lua_cocos2dx_TMXObjectGroup_getProperty(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXObjectGroup_getProperty'", nullptr); return 0; } - cocos2d::Value ret = cobj->getProperty(arg0); + axis::Value ret = cobj->getProperty(arg0); ccvalue_to_luaval(tolua_S, ret); return 1; } @@ -104077,7 +104077,7 @@ int lua_cocos2dx_TMXObjectGroup_getProperty(lua_State* tolua_S) int lua_cocos2dx_TMXObjectGroup_getPositionOffset(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXObjectGroup* cobj = nullptr; + axis::TMXObjectGroup* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -104089,7 +104089,7 @@ int lua_cocos2dx_TMXObjectGroup_getPositionOffset(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -104107,7 +104107,7 @@ int lua_cocos2dx_TMXObjectGroup_getPositionOffset(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXObjectGroup_getPositionOffset'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getPositionOffset(); + const axis::Vec2& ret = cobj->getPositionOffset(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -104124,7 +104124,7 @@ int lua_cocos2dx_TMXObjectGroup_getPositionOffset(lua_State* tolua_S) int lua_cocos2dx_TMXObjectGroup_getObject(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXObjectGroup* cobj = nullptr; + axis::TMXObjectGroup* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -104136,7 +104136,7 @@ int lua_cocos2dx_TMXObjectGroup_getObject(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -104157,7 +104157,7 @@ int lua_cocos2dx_TMXObjectGroup_getObject(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXObjectGroup_getObject'", nullptr); return 0; } - cocos2d::ValueMap ret = cobj->getObject(arg0); + axis::ValueMap ret = cobj->getObject(arg0); ccvaluemap_to_luaval(tolua_S, ret); return 1; } @@ -104174,7 +104174,7 @@ int lua_cocos2dx_TMXObjectGroup_getObject(lua_State* tolua_S) int lua_cocos2dx_TMXObjectGroup_getObjects(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXObjectGroup* cobj = nullptr; + axis::TMXObjectGroup* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -104183,7 +104183,7 @@ int lua_cocos2dx_TMXObjectGroup_getObjects(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -104194,7 +104194,7 @@ int lua_cocos2dx_TMXObjectGroup_getObjects(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 0) { - cocos2d::ValueVector& ret = cobj->getObjects(); + axis::ValueVector& ret = cobj->getObjects(); ccvaluevector_to_luaval(tolua_S, ret); return 1; } @@ -104202,7 +104202,7 @@ int lua_cocos2dx_TMXObjectGroup_getObjects(lua_State* tolua_S) ok = true; do{ if (argc == 0) { - const cocos2d::ValueVector& ret = cobj->getObjects(); + const axis::ValueVector& ret = cobj->getObjects(); ccvaluevector_to_luaval(tolua_S, ret); return 1; } @@ -104221,7 +104221,7 @@ int lua_cocos2dx_TMXObjectGroup_getObjects(lua_State* tolua_S) int lua_cocos2dx_TMXObjectGroup_setGroupName(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXObjectGroup* cobj = nullptr; + axis::TMXObjectGroup* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -104233,7 +104233,7 @@ int lua_cocos2dx_TMXObjectGroup_setGroupName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -104271,7 +104271,7 @@ int lua_cocos2dx_TMXObjectGroup_setGroupName(lua_State* tolua_S) int lua_cocos2dx_TMXObjectGroup_getProperties(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXObjectGroup* cobj = nullptr; + axis::TMXObjectGroup* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -104280,7 +104280,7 @@ int lua_cocos2dx_TMXObjectGroup_getProperties(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -104291,7 +104291,7 @@ int lua_cocos2dx_TMXObjectGroup_getProperties(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 0) { - cocos2d::ValueMap& ret = cobj->getProperties(); + axis::ValueMap& ret = cobj->getProperties(); ccvaluemap_to_luaval(tolua_S, ret); return 1; } @@ -104299,7 +104299,7 @@ int lua_cocos2dx_TMXObjectGroup_getProperties(lua_State* tolua_S) ok = true; do{ if (argc == 0) { - const cocos2d::ValueMap& ret = cobj->getProperties(); + const axis::ValueMap& ret = cobj->getProperties(); ccvaluemap_to_luaval(tolua_S, ret); return 1; } @@ -104318,7 +104318,7 @@ int lua_cocos2dx_TMXObjectGroup_getProperties(lua_State* tolua_S) int lua_cocos2dx_TMXObjectGroup_getGroupName(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXObjectGroup* cobj = nullptr; + axis::TMXObjectGroup* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -104330,7 +104330,7 @@ int lua_cocos2dx_TMXObjectGroup_getGroupName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -104365,7 +104365,7 @@ int lua_cocos2dx_TMXObjectGroup_getGroupName(lua_State* tolua_S) int lua_cocos2dx_TMXObjectGroup_setProperties(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXObjectGroup* cobj = nullptr; + axis::TMXObjectGroup* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -104377,7 +104377,7 @@ int lua_cocos2dx_TMXObjectGroup_setProperties(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -104390,7 +104390,7 @@ int lua_cocos2dx_TMXObjectGroup_setProperties(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ValueMap arg0; + axis::ValueMap arg0; ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.TMXObjectGroup:setProperties"); if(!ok) @@ -104415,7 +104415,7 @@ int lua_cocos2dx_TMXObjectGroup_setProperties(lua_State* tolua_S) int lua_cocos2dx_TMXObjectGroup_setObjects(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXObjectGroup* cobj = nullptr; + axis::TMXObjectGroup* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -104427,7 +104427,7 @@ int lua_cocos2dx_TMXObjectGroup_setObjects(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXObjectGroup",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXObjectGroup*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -104440,7 +104440,7 @@ int lua_cocos2dx_TMXObjectGroup_setObjects(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ValueVector arg0; + axis::ValueVector arg0; ok &= luaval_to_ccvaluevector(tolua_S, 2, &arg0, "cc.TMXObjectGroup:setObjects"); if(!ok) @@ -104465,7 +104465,7 @@ int lua_cocos2dx_TMXObjectGroup_setObjects(lua_State* tolua_S) int lua_cocos2dx_TMXObjectGroup_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXObjectGroup* cobj = nullptr; + axis::TMXObjectGroup* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -104482,7 +104482,7 @@ int lua_cocos2dx_TMXObjectGroup_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXObjectGroup_constructor'", nullptr); return 0; } - cobj = new cocos2d::TMXObjectGroup(); + cobj = new axis::TMXObjectGroup(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -104523,7 +104523,7 @@ int lua_register_cocos2dx_TMXObjectGroup(lua_State* tolua_S) tolua_function(tolua_S,"setProperties",lua_cocos2dx_TMXObjectGroup_setProperties); tolua_function(tolua_S,"setObjects",lua_cocos2dx_TMXObjectGroup_setObjects); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TMXObjectGroup).name(); // rtti is literal storage + auto typeName = typeid(axis::TMXObjectGroup).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TMXObjectGroup"; g_typeCast[typeName] = "cc.TMXObjectGroup"; return 1; @@ -104532,7 +104532,7 @@ int lua_register_cocos2dx_TMXObjectGroup(lua_State* tolua_S) int lua_cocos2dx_TMXLayerInfo_setProperties(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXLayerInfo* cobj = nullptr; + axis::TMXLayerInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -104544,7 +104544,7 @@ int lua_cocos2dx_TMXLayerInfo_setProperties(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXLayerInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXLayerInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXLayerInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -104557,7 +104557,7 @@ int lua_cocos2dx_TMXLayerInfo_setProperties(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ValueMap arg0; + axis::ValueMap arg0; ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.TMXLayerInfo:setProperties"); if(!ok) @@ -104582,7 +104582,7 @@ int lua_cocos2dx_TMXLayerInfo_setProperties(lua_State* tolua_S) int lua_cocos2dx_TMXLayerInfo_getProperties(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXLayerInfo* cobj = nullptr; + axis::TMXLayerInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -104594,7 +104594,7 @@ int lua_cocos2dx_TMXLayerInfo_getProperties(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXLayerInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXLayerInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXLayerInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -104612,7 +104612,7 @@ int lua_cocos2dx_TMXLayerInfo_getProperties(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXLayerInfo_getProperties'", nullptr); return 0; } - cocos2d::ValueMap& ret = cobj->getProperties(); + axis::ValueMap& ret = cobj->getProperties(); ccvaluemap_to_luaval(tolua_S, ret); return 1; } @@ -104629,7 +104629,7 @@ int lua_cocos2dx_TMXLayerInfo_getProperties(lua_State* tolua_S) int lua_cocos2dx_TMXLayerInfo_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXLayerInfo* cobj = nullptr; + axis::TMXLayerInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -104646,7 +104646,7 @@ int lua_cocos2dx_TMXLayerInfo_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXLayerInfo_constructor'", nullptr); return 0; } - cobj = new cocos2d::TMXLayerInfo(); + cobj = new axis::TMXLayerInfo(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -104679,7 +104679,7 @@ int lua_register_cocos2dx_TMXLayerInfo(lua_State* tolua_S) tolua_function(tolua_S,"setProperties",lua_cocos2dx_TMXLayerInfo_setProperties); tolua_function(tolua_S,"getProperties",lua_cocos2dx_TMXLayerInfo_getProperties); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TMXLayerInfo).name(); // rtti is literal storage + auto typeName = typeid(axis::TMXLayerInfo).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TMXLayerInfo"; g_typeCast[typeName] = "cc.TMXLayerInfo"; return 1; @@ -104688,7 +104688,7 @@ int lua_register_cocos2dx_TMXLayerInfo(lua_State* tolua_S) int lua_cocos2dx_TMXTilesetInfo_getRectForGID(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXTilesetInfo* cobj = nullptr; + axis::TMXTilesetInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -104700,7 +104700,7 @@ int lua_cocos2dx_TMXTilesetInfo_getRectForGID(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXTilesetInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXTilesetInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXTilesetInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -104721,7 +104721,7 @@ int lua_cocos2dx_TMXTilesetInfo_getRectForGID(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXTilesetInfo_getRectForGID'", nullptr); return 0; } - cocos2d::Rect ret = cobj->getRectForGID(arg0); + axis::Rect ret = cobj->getRectForGID(arg0); rect_to_luaval(tolua_S, ret); return 1; } @@ -104738,7 +104738,7 @@ int lua_cocos2dx_TMXTilesetInfo_getRectForGID(lua_State* tolua_S) int lua_cocos2dx_TMXTilesetInfo_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXTilesetInfo* cobj = nullptr; + axis::TMXTilesetInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -104755,7 +104755,7 @@ int lua_cocos2dx_TMXTilesetInfo_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXTilesetInfo_constructor'", nullptr); return 0; } - cobj = new cocos2d::TMXTilesetInfo(); + cobj = new axis::TMXTilesetInfo(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -104787,7 +104787,7 @@ int lua_register_cocos2dx_TMXTilesetInfo(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_TMXTilesetInfo_constructor); tolua_function(tolua_S,"getRectForGID",lua_cocos2dx_TMXTilesetInfo_getRectForGID); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TMXTilesetInfo).name(); // rtti is literal storage + auto typeName = typeid(axis::TMXTilesetInfo).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TMXTilesetInfo"; g_typeCast[typeName] = "cc.TMXTilesetInfo"; return 1; @@ -104796,7 +104796,7 @@ int lua_register_cocos2dx_TMXTilesetInfo(lua_State* tolua_S) int lua_cocos2dx_TMXMapInfo_setCurrentString(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXMapInfo* cobj = nullptr; + axis::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -104808,7 +104808,7 @@ int lua_cocos2dx_TMXMapInfo_setCurrentString(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -104846,7 +104846,7 @@ int lua_cocos2dx_TMXMapInfo_setCurrentString(lua_State* tolua_S) int lua_cocos2dx_TMXMapInfo_getHexSideLength(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXMapInfo* cobj = nullptr; + axis::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -104858,7 +104858,7 @@ int lua_cocos2dx_TMXMapInfo_getHexSideLength(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -104893,7 +104893,7 @@ int lua_cocos2dx_TMXMapInfo_getHexSideLength(lua_State* tolua_S) int lua_cocos2dx_TMXMapInfo_setTileSize(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXMapInfo* cobj = nullptr; + axis::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -104905,7 +104905,7 @@ int lua_cocos2dx_TMXMapInfo_setTileSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -104918,7 +104918,7 @@ int lua_cocos2dx_TMXMapInfo_setTileSize(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.TMXMapInfo:setTileSize"); if(!ok) @@ -104943,7 +104943,7 @@ int lua_cocos2dx_TMXMapInfo_setTileSize(lua_State* tolua_S) int lua_cocos2dx_TMXMapInfo_getOrientation(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXMapInfo* cobj = nullptr; + axis::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -104955,7 +104955,7 @@ int lua_cocos2dx_TMXMapInfo_getOrientation(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -104990,7 +104990,7 @@ int lua_cocos2dx_TMXMapInfo_getOrientation(lua_State* tolua_S) int lua_cocos2dx_TMXMapInfo_setObjectGroups(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXMapInfo* cobj = nullptr; + axis::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -105002,7 +105002,7 @@ int lua_cocos2dx_TMXMapInfo_setObjectGroups(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -105015,7 +105015,7 @@ int lua_cocos2dx_TMXMapInfo_setObjectGroups(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vector arg0; + axis::Vector arg0; ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.TMXMapInfo:setObjectGroups"); if(!ok) @@ -105040,7 +105040,7 @@ int lua_cocos2dx_TMXMapInfo_setObjectGroups(lua_State* tolua_S) int lua_cocos2dx_TMXMapInfo_setLayers(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXMapInfo* cobj = nullptr; + axis::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -105052,7 +105052,7 @@ int lua_cocos2dx_TMXMapInfo_setLayers(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -105065,7 +105065,7 @@ int lua_cocos2dx_TMXMapInfo_setLayers(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vector arg0; + axis::Vector arg0; ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.TMXMapInfo:setLayers"); if(!ok) @@ -105090,7 +105090,7 @@ int lua_cocos2dx_TMXMapInfo_setLayers(lua_State* tolua_S) int lua_cocos2dx_TMXMapInfo_parseXMLFile(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXMapInfo* cobj = nullptr; + axis::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -105102,7 +105102,7 @@ int lua_cocos2dx_TMXMapInfo_parseXMLFile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -105140,7 +105140,7 @@ int lua_cocos2dx_TMXMapInfo_parseXMLFile(lua_State* tolua_S) int lua_cocos2dx_TMXMapInfo_getParentElement(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXMapInfo* cobj = nullptr; + axis::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -105152,7 +105152,7 @@ int lua_cocos2dx_TMXMapInfo_getParentElement(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -105187,7 +105187,7 @@ int lua_cocos2dx_TMXMapInfo_getParentElement(lua_State* tolua_S) int lua_cocos2dx_TMXMapInfo_setTMXFileName(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXMapInfo* cobj = nullptr; + axis::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -105199,7 +105199,7 @@ int lua_cocos2dx_TMXMapInfo_setTMXFileName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -105237,7 +105237,7 @@ int lua_cocos2dx_TMXMapInfo_setTMXFileName(lua_State* tolua_S) int lua_cocos2dx_TMXMapInfo_parseXMLString(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXMapInfo* cobj = nullptr; + axis::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -105249,7 +105249,7 @@ int lua_cocos2dx_TMXMapInfo_parseXMLString(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -105287,7 +105287,7 @@ int lua_cocos2dx_TMXMapInfo_parseXMLString(lua_State* tolua_S) int lua_cocos2dx_TMXMapInfo_getLayers(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXMapInfo* cobj = nullptr; + axis::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -105296,7 +105296,7 @@ int lua_cocos2dx_TMXMapInfo_getLayers(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -105307,7 +105307,7 @@ int lua_cocos2dx_TMXMapInfo_getLayers(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 0) { - cocos2d::Vector& ret = cobj->getLayers(); + axis::Vector& ret = cobj->getLayers(); ccvector_to_luaval(tolua_S, ret); return 1; } @@ -105315,7 +105315,7 @@ int lua_cocos2dx_TMXMapInfo_getLayers(lua_State* tolua_S) ok = true; do{ if (argc == 0) { - const cocos2d::Vector& ret = cobj->getLayers(); + const axis::Vector& ret = cobj->getLayers(); ccvector_to_luaval(tolua_S, ret); return 1; } @@ -105334,7 +105334,7 @@ int lua_cocos2dx_TMXMapInfo_getLayers(lua_State* tolua_S) int lua_cocos2dx_TMXMapInfo_getStaggerAxis(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXMapInfo* cobj = nullptr; + axis::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -105346,7 +105346,7 @@ int lua_cocos2dx_TMXMapInfo_getStaggerAxis(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -105381,7 +105381,7 @@ int lua_cocos2dx_TMXMapInfo_getStaggerAxis(lua_State* tolua_S) int lua_cocos2dx_TMXMapInfo_setHexSideLength(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXMapInfo* cobj = nullptr; + axis::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -105393,7 +105393,7 @@ int lua_cocos2dx_TMXMapInfo_setHexSideLength(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -105431,7 +105431,7 @@ int lua_cocos2dx_TMXMapInfo_setHexSideLength(lua_State* tolua_S) int lua_cocos2dx_TMXMapInfo_initWithTMXFile(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXMapInfo* cobj = nullptr; + axis::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -105443,7 +105443,7 @@ int lua_cocos2dx_TMXMapInfo_initWithTMXFile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -105481,7 +105481,7 @@ int lua_cocos2dx_TMXMapInfo_initWithTMXFile(lua_State* tolua_S) int lua_cocos2dx_TMXMapInfo_getParentGID(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXMapInfo* cobj = nullptr; + axis::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -105493,7 +105493,7 @@ int lua_cocos2dx_TMXMapInfo_getParentGID(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -105528,7 +105528,7 @@ int lua_cocos2dx_TMXMapInfo_getParentGID(lua_State* tolua_S) int lua_cocos2dx_TMXMapInfo_getTilesets(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXMapInfo* cobj = nullptr; + axis::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -105537,7 +105537,7 @@ int lua_cocos2dx_TMXMapInfo_getTilesets(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -105548,7 +105548,7 @@ int lua_cocos2dx_TMXMapInfo_getTilesets(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 0) { - cocos2d::Vector& ret = cobj->getTilesets(); + axis::Vector& ret = cobj->getTilesets(); ccvector_to_luaval(tolua_S, ret); return 1; } @@ -105556,7 +105556,7 @@ int lua_cocos2dx_TMXMapInfo_getTilesets(lua_State* tolua_S) ok = true; do{ if (argc == 0) { - const cocos2d::Vector& ret = cobj->getTilesets(); + const axis::Vector& ret = cobj->getTilesets(); ccvector_to_luaval(tolua_S, ret); return 1; } @@ -105575,7 +105575,7 @@ int lua_cocos2dx_TMXMapInfo_getTilesets(lua_State* tolua_S) int lua_cocos2dx_TMXMapInfo_setParentElement(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXMapInfo* cobj = nullptr; + axis::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -105587,7 +105587,7 @@ int lua_cocos2dx_TMXMapInfo_setParentElement(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -105625,7 +105625,7 @@ int lua_cocos2dx_TMXMapInfo_setParentElement(lua_State* tolua_S) int lua_cocos2dx_TMXMapInfo_initWithXML(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXMapInfo* cobj = nullptr; + axis::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -105637,7 +105637,7 @@ int lua_cocos2dx_TMXMapInfo_initWithXML(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -105678,7 +105678,7 @@ int lua_cocos2dx_TMXMapInfo_initWithXML(lua_State* tolua_S) int lua_cocos2dx_TMXMapInfo_setParentGID(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXMapInfo* cobj = nullptr; + axis::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -105690,7 +105690,7 @@ int lua_cocos2dx_TMXMapInfo_setParentGID(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -105728,7 +105728,7 @@ int lua_cocos2dx_TMXMapInfo_setParentGID(lua_State* tolua_S) int lua_cocos2dx_TMXMapInfo_getLayerAttribs(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXMapInfo* cobj = nullptr; + axis::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -105740,7 +105740,7 @@ int lua_cocos2dx_TMXMapInfo_getLayerAttribs(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -105775,7 +105775,7 @@ int lua_cocos2dx_TMXMapInfo_getLayerAttribs(lua_State* tolua_S) int lua_cocos2dx_TMXMapInfo_getTileSize(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXMapInfo* cobj = nullptr; + axis::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -105787,7 +105787,7 @@ int lua_cocos2dx_TMXMapInfo_getTileSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -105805,7 +105805,7 @@ int lua_cocos2dx_TMXMapInfo_getTileSize(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_getTileSize'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getTileSize(); + const axis::Vec2& ret = cobj->getTileSize(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -105822,7 +105822,7 @@ int lua_cocos2dx_TMXMapInfo_getTileSize(lua_State* tolua_S) int lua_cocos2dx_TMXMapInfo_getTileProperties(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXMapInfo* cobj = nullptr; + axis::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -105834,7 +105834,7 @@ int lua_cocos2dx_TMXMapInfo_getTileProperties(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -105852,7 +105852,7 @@ int lua_cocos2dx_TMXMapInfo_getTileProperties(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_getTileProperties'", nullptr); return 0; } - cocos2d::ValueMapIntKey& ret = cobj->getTileProperties(); + axis::ValueMapIntKey& ret = cobj->getTileProperties(); ccvaluemapintkey_to_luaval(tolua_S, ret); return 1; } @@ -105869,7 +105869,7 @@ int lua_cocos2dx_TMXMapInfo_getTileProperties(lua_State* tolua_S) int lua_cocos2dx_TMXMapInfo_isStoringCharacters(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXMapInfo* cobj = nullptr; + axis::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -105881,7 +105881,7 @@ int lua_cocos2dx_TMXMapInfo_isStoringCharacters(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -105916,7 +105916,7 @@ int lua_cocos2dx_TMXMapInfo_isStoringCharacters(lua_State* tolua_S) int lua_cocos2dx_TMXMapInfo_getExternalTilesetFileName(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXMapInfo* cobj = nullptr; + axis::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -105928,7 +105928,7 @@ int lua_cocos2dx_TMXMapInfo_getExternalTilesetFileName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -105963,7 +105963,7 @@ int lua_cocos2dx_TMXMapInfo_getExternalTilesetFileName(lua_State* tolua_S) int lua_cocos2dx_TMXMapInfo_getObjectGroups(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXMapInfo* cobj = nullptr; + axis::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -105972,7 +105972,7 @@ int lua_cocos2dx_TMXMapInfo_getObjectGroups(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -105983,7 +105983,7 @@ int lua_cocos2dx_TMXMapInfo_getObjectGroups(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 0) { - cocos2d::Vector& ret = cobj->getObjectGroups(); + axis::Vector& ret = cobj->getObjectGroups(); ccvector_to_luaval(tolua_S, ret); return 1; } @@ -105991,7 +105991,7 @@ int lua_cocos2dx_TMXMapInfo_getObjectGroups(lua_State* tolua_S) ok = true; do{ if (argc == 0) { - const cocos2d::Vector& ret = cobj->getObjectGroups(); + const axis::Vector& ret = cobj->getObjectGroups(); ccvector_to_luaval(tolua_S, ret); return 1; } @@ -106010,7 +106010,7 @@ int lua_cocos2dx_TMXMapInfo_getObjectGroups(lua_State* tolua_S) int lua_cocos2dx_TMXMapInfo_getTMXFileName(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXMapInfo* cobj = nullptr; + axis::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -106022,7 +106022,7 @@ int lua_cocos2dx_TMXMapInfo_getTMXFileName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -106057,7 +106057,7 @@ int lua_cocos2dx_TMXMapInfo_getTMXFileName(lua_State* tolua_S) int lua_cocos2dx_TMXMapInfo_setStaggerIndex(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXMapInfo* cobj = nullptr; + axis::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -106069,7 +106069,7 @@ int lua_cocos2dx_TMXMapInfo_setStaggerIndex(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -106107,7 +106107,7 @@ int lua_cocos2dx_TMXMapInfo_setStaggerIndex(lua_State* tolua_S) int lua_cocos2dx_TMXMapInfo_setProperties(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXMapInfo* cobj = nullptr; + axis::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -106119,7 +106119,7 @@ int lua_cocos2dx_TMXMapInfo_setProperties(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -106132,7 +106132,7 @@ int lua_cocos2dx_TMXMapInfo_setProperties(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ValueMap arg0; + axis::ValueMap arg0; ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.TMXMapInfo:setProperties"); if(!ok) @@ -106157,7 +106157,7 @@ int lua_cocos2dx_TMXMapInfo_setProperties(lua_State* tolua_S) int lua_cocos2dx_TMXMapInfo_setOrientation(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXMapInfo* cobj = nullptr; + axis::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -106169,7 +106169,7 @@ int lua_cocos2dx_TMXMapInfo_setOrientation(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -106207,7 +106207,7 @@ int lua_cocos2dx_TMXMapInfo_setOrientation(lua_State* tolua_S) int lua_cocos2dx_TMXMapInfo_setTileProperties(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXMapInfo* cobj = nullptr; + axis::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -106219,7 +106219,7 @@ int lua_cocos2dx_TMXMapInfo_setTileProperties(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -106232,7 +106232,7 @@ int lua_cocos2dx_TMXMapInfo_setTileProperties(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ValueMapIntKey arg0; + axis::ValueMapIntKey arg0; ok &= luaval_to_ccvaluemapintkey(tolua_S, 2, &arg0, "cc.TMXMapInfo:setTileProperties"); if(!ok) @@ -106257,7 +106257,7 @@ int lua_cocos2dx_TMXMapInfo_setTileProperties(lua_State* tolua_S) int lua_cocos2dx_TMXMapInfo_setMapSize(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXMapInfo* cobj = nullptr; + axis::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -106269,7 +106269,7 @@ int lua_cocos2dx_TMXMapInfo_setMapSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -106282,7 +106282,7 @@ int lua_cocos2dx_TMXMapInfo_setMapSize(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.TMXMapInfo:setMapSize"); if(!ok) @@ -106307,7 +106307,7 @@ int lua_cocos2dx_TMXMapInfo_setMapSize(lua_State* tolua_S) int lua_cocos2dx_TMXMapInfo_getCurrentString(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXMapInfo* cobj = nullptr; + axis::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -106319,7 +106319,7 @@ int lua_cocos2dx_TMXMapInfo_getCurrentString(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -106354,7 +106354,7 @@ int lua_cocos2dx_TMXMapInfo_getCurrentString(lua_State* tolua_S) int lua_cocos2dx_TMXMapInfo_setStoringCharacters(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXMapInfo* cobj = nullptr; + axis::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -106366,7 +106366,7 @@ int lua_cocos2dx_TMXMapInfo_setStoringCharacters(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -106404,7 +106404,7 @@ int lua_cocos2dx_TMXMapInfo_setStoringCharacters(lua_State* tolua_S) int lua_cocos2dx_TMXMapInfo_setStaggerAxis(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXMapInfo* cobj = nullptr; + axis::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -106416,7 +106416,7 @@ int lua_cocos2dx_TMXMapInfo_setStaggerAxis(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -106454,7 +106454,7 @@ int lua_cocos2dx_TMXMapInfo_setStaggerAxis(lua_State* tolua_S) int lua_cocos2dx_TMXMapInfo_getMapSize(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXMapInfo* cobj = nullptr; + axis::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -106466,7 +106466,7 @@ int lua_cocos2dx_TMXMapInfo_getMapSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -106484,7 +106484,7 @@ int lua_cocos2dx_TMXMapInfo_getMapSize(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_getMapSize'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getMapSize(); + const axis::Vec2& ret = cobj->getMapSize(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -106501,7 +106501,7 @@ int lua_cocos2dx_TMXMapInfo_getMapSize(lua_State* tolua_S) int lua_cocos2dx_TMXMapInfo_setTilesets(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXMapInfo* cobj = nullptr; + axis::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -106513,7 +106513,7 @@ int lua_cocos2dx_TMXMapInfo_setTilesets(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -106526,7 +106526,7 @@ int lua_cocos2dx_TMXMapInfo_setTilesets(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vector arg0; + axis::Vector arg0; ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.TMXMapInfo:setTilesets"); if(!ok) @@ -106551,7 +106551,7 @@ int lua_cocos2dx_TMXMapInfo_setTilesets(lua_State* tolua_S) int lua_cocos2dx_TMXMapInfo_getProperties(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXMapInfo* cobj = nullptr; + axis::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -106560,7 +106560,7 @@ int lua_cocos2dx_TMXMapInfo_getProperties(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -106571,7 +106571,7 @@ int lua_cocos2dx_TMXMapInfo_getProperties(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 0) { - cocos2d::ValueMap& ret = cobj->getProperties(); + axis::ValueMap& ret = cobj->getProperties(); ccvaluemap_to_luaval(tolua_S, ret); return 1; } @@ -106579,7 +106579,7 @@ int lua_cocos2dx_TMXMapInfo_getProperties(lua_State* tolua_S) ok = true; do{ if (argc == 0) { - const cocos2d::ValueMap& ret = cobj->getProperties(); + const axis::ValueMap& ret = cobj->getProperties(); ccvaluemap_to_luaval(tolua_S, ret); return 1; } @@ -106598,7 +106598,7 @@ int lua_cocos2dx_TMXMapInfo_getProperties(lua_State* tolua_S) int lua_cocos2dx_TMXMapInfo_getStaggerIndex(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXMapInfo* cobj = nullptr; + axis::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -106610,7 +106610,7 @@ int lua_cocos2dx_TMXMapInfo_getStaggerIndex(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -106645,7 +106645,7 @@ int lua_cocos2dx_TMXMapInfo_getStaggerIndex(lua_State* tolua_S) int lua_cocos2dx_TMXMapInfo_setLayerAttribs(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXMapInfo* cobj = nullptr; + axis::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -106657,7 +106657,7 @@ int lua_cocos2dx_TMXMapInfo_setLayerAttribs(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXMapInfo",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXMapInfo*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -106716,8 +106716,8 @@ int lua_cocos2dx_TMXMapInfo_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_create'", nullptr); return 0; } - cocos2d::TMXMapInfo* ret = cocos2d::TMXMapInfo::create(arg0); - object_to_luaval(tolua_S, "cc.TMXMapInfo",(cocos2d::TMXMapInfo*)ret); + axis::TMXMapInfo* ret = axis::TMXMapInfo::create(arg0); + object_to_luaval(tolua_S, "cc.TMXMapInfo",(axis::TMXMapInfo*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TMXMapInfo:create",argc, 1); @@ -106754,8 +106754,8 @@ int lua_cocos2dx_TMXMapInfo_createWithXML(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_createWithXML'", nullptr); return 0; } - cocos2d::TMXMapInfo* ret = cocos2d::TMXMapInfo::createWithXML(arg0, arg1); - object_to_luaval(tolua_S, "cc.TMXMapInfo",(cocos2d::TMXMapInfo*)ret); + axis::TMXMapInfo* ret = axis::TMXMapInfo::createWithXML(arg0, arg1); + object_to_luaval(tolua_S, "cc.TMXMapInfo",(axis::TMXMapInfo*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TMXMapInfo:createWithXML",argc, 2); @@ -106769,7 +106769,7 @@ int lua_cocos2dx_TMXMapInfo_createWithXML(lua_State* tolua_S) int lua_cocos2dx_TMXMapInfo_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXMapInfo* cobj = nullptr; + axis::TMXMapInfo* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -106786,7 +106786,7 @@ int lua_cocos2dx_TMXMapInfo_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXMapInfo_constructor'", nullptr); return 0; } - cobj = new cocos2d::TMXMapInfo(); + cobj = new axis::TMXMapInfo(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -106858,7 +106858,7 @@ int lua_register_cocos2dx_TMXMapInfo(lua_State* tolua_S) tolua_function(tolua_S,"create", lua_cocos2dx_TMXMapInfo_create); tolua_function(tolua_S,"createWithXML", lua_cocos2dx_TMXMapInfo_createWithXML); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TMXMapInfo).name(); // rtti is literal storage + auto typeName = typeid(axis::TMXMapInfo).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TMXMapInfo"; g_typeCast[typeName] = "cc.TMXMapInfo"; return 1; @@ -106867,7 +106867,7 @@ int lua_register_cocos2dx_TMXMapInfo(lua_State* tolua_S) int lua_cocos2dx_TileMapAtlas_initWithTileFile(lua_State* tolua_S) { int argc = 0; - cocos2d::TileMapAtlas* cobj = nullptr; + axis::TileMapAtlas* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -106879,7 +106879,7 @@ int lua_cocos2dx_TileMapAtlas_initWithTileFile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TileMapAtlas",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TileMapAtlas*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TileMapAtlas*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -106926,7 +106926,7 @@ int lua_cocos2dx_TileMapAtlas_initWithTileFile(lua_State* tolua_S) int lua_cocos2dx_TileMapAtlas_releaseMap(lua_State* tolua_S) { int argc = 0; - cocos2d::TileMapAtlas* cobj = nullptr; + axis::TileMapAtlas* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -106938,7 +106938,7 @@ int lua_cocos2dx_TileMapAtlas_releaseMap(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TileMapAtlas",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TileMapAtlas*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TileMapAtlas*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -106973,7 +106973,7 @@ int lua_cocos2dx_TileMapAtlas_releaseMap(lua_State* tolua_S) int lua_cocos2dx_TileMapAtlas_getTileAt(lua_State* tolua_S) { int argc = 0; - cocos2d::TileMapAtlas* cobj = nullptr; + axis::TileMapAtlas* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -106985,7 +106985,7 @@ int lua_cocos2dx_TileMapAtlas_getTileAt(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TileMapAtlas",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TileMapAtlas*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TileMapAtlas*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -106998,7 +106998,7 @@ int lua_cocos2dx_TileMapAtlas_getTileAt(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.TileMapAtlas:getTileAt"); if(!ok) @@ -107006,7 +107006,7 @@ int lua_cocos2dx_TileMapAtlas_getTileAt(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TileMapAtlas_getTileAt'", nullptr); return 0; } - cocos2d::Color3B ret = cobj->getTileAt(arg0); + axis::Color3B ret = cobj->getTileAt(arg0); color3b_to_luaval(tolua_S, ret); return 1; } @@ -107023,7 +107023,7 @@ int lua_cocos2dx_TileMapAtlas_getTileAt(lua_State* tolua_S) int lua_cocos2dx_TileMapAtlas_setTile(lua_State* tolua_S) { int argc = 0; - cocos2d::TileMapAtlas* cobj = nullptr; + axis::TileMapAtlas* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -107035,7 +107035,7 @@ int lua_cocos2dx_TileMapAtlas_setTile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TileMapAtlas",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TileMapAtlas*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TileMapAtlas*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -107048,8 +107048,8 @@ int lua_cocos2dx_TileMapAtlas_setTile(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::Color3B arg0; - cocos2d::Vec2 arg1; + axis::Color3B arg0; + axis::Vec2 arg1; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "cc.TileMapAtlas:setTile"); @@ -107103,8 +107103,8 @@ int lua_cocos2dx_TileMapAtlas_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TileMapAtlas_create'", nullptr); return 0; } - cocos2d::TileMapAtlas* ret = cocos2d::TileMapAtlas::create(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.TileMapAtlas",(cocos2d::TileMapAtlas*)ret); + axis::TileMapAtlas* ret = axis::TileMapAtlas::create(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.TileMapAtlas",(axis::TileMapAtlas*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TileMapAtlas:create",argc, 4); @@ -107118,7 +107118,7 @@ int lua_cocos2dx_TileMapAtlas_create(lua_State* tolua_S) int lua_cocos2dx_TileMapAtlas_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TileMapAtlas* cobj = nullptr; + axis::TileMapAtlas* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -107135,7 +107135,7 @@ int lua_cocos2dx_TileMapAtlas_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TileMapAtlas_constructor'", nullptr); return 0; } - cobj = new cocos2d::TileMapAtlas(); + cobj = new axis::TileMapAtlas(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -107171,7 +107171,7 @@ int lua_register_cocos2dx_TileMapAtlas(lua_State* tolua_S) tolua_function(tolua_S,"setTile",lua_cocos2dx_TileMapAtlas_setTile); tolua_function(tolua_S,"create", lua_cocos2dx_TileMapAtlas_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TileMapAtlas).name(); // rtti is literal storage + auto typeName = typeid(axis::TileMapAtlas).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TileMapAtlas"; g_typeCast[typeName] = "cc.TileMapAtlas"; return 1; @@ -107180,7 +107180,7 @@ int lua_register_cocos2dx_TileMapAtlas(lua_State* tolua_S) int lua_cocos2dx_FastTMXLayer_getAnimTileCoord(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXLayer* cobj = nullptr; + axis::FastTMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -107192,7 +107192,7 @@ int lua_cocos2dx_FastTMXLayer_getAnimTileCoord(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -107210,8 +107210,8 @@ int lua_cocos2dx_FastTMXLayer_getAnimTileCoord(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FastTMXLayer_getAnimTileCoord'", nullptr); return 0; } - const std::unordered_map>* ret = cobj->getAnimTileCoord(); - object_to_luaval>>(tolua_S, "std::unordered_map>*",(std::unordered_map>*)ret); + const std::unordered_map>* ret = cobj->getAnimTileCoord(); + object_to_luaval>>(tolua_S, "std::unordered_map>*",(std::unordered_map>*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FastTMXLayer:getAnimTileCoord",argc, 0); @@ -107227,7 +107227,7 @@ int lua_cocos2dx_FastTMXLayer_getAnimTileCoord(lua_State* tolua_S) int lua_cocos2dx_FastTMXLayer_getPositionAt(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXLayer* cobj = nullptr; + axis::FastTMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -107239,7 +107239,7 @@ int lua_cocos2dx_FastTMXLayer_getPositionAt(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -107252,7 +107252,7 @@ int lua_cocos2dx_FastTMXLayer_getPositionAt(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.FastTMXLayer:getPositionAt"); if(!ok) @@ -107260,7 +107260,7 @@ int lua_cocos2dx_FastTMXLayer_getPositionAt(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FastTMXLayer_getPositionAt'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getPositionAt(arg0); + axis::Vec2 ret = cobj->getPositionAt(arg0); vec2_to_luaval(tolua_S, ret); return 1; } @@ -107277,7 +107277,7 @@ int lua_cocos2dx_FastTMXLayer_getPositionAt(lua_State* tolua_S) int lua_cocos2dx_FastTMXLayer_setLayerOrientation(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXLayer* cobj = nullptr; + axis::FastTMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -107289,7 +107289,7 @@ int lua_cocos2dx_FastTMXLayer_setLayerOrientation(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -107327,7 +107327,7 @@ int lua_cocos2dx_FastTMXLayer_setLayerOrientation(lua_State* tolua_S) int lua_cocos2dx_FastTMXLayer_initWithTilesetInfo(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXLayer* cobj = nullptr; + axis::FastTMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -107339,7 +107339,7 @@ int lua_cocos2dx_FastTMXLayer_initWithTilesetInfo(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -107352,15 +107352,15 @@ int lua_cocos2dx_FastTMXLayer_initWithTilesetInfo(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 3) { - cocos2d::TMXTilesetInfo* arg0; - cocos2d::TMXLayerInfo* arg1; - cocos2d::TMXMapInfo* arg2; + axis::TMXTilesetInfo* arg0; + axis::TMXLayerInfo* arg1; + axis::TMXMapInfo* arg2; - ok &= luaval_to_object(tolua_S, 2, "cc.TMXTilesetInfo",&arg0, "cc.FastTMXLayer:initWithTilesetInfo"); + ok &= luaval_to_object(tolua_S, 2, "cc.TMXTilesetInfo",&arg0, "cc.FastTMXLayer:initWithTilesetInfo"); - ok &= luaval_to_object(tolua_S, 3, "cc.TMXLayerInfo",&arg1, "cc.FastTMXLayer:initWithTilesetInfo"); + ok &= luaval_to_object(tolua_S, 3, "cc.TMXLayerInfo",&arg1, "cc.FastTMXLayer:initWithTilesetInfo"); - ok &= luaval_to_object(tolua_S, 4, "cc.TMXMapInfo",&arg2, "cc.FastTMXLayer:initWithTilesetInfo"); + ok &= luaval_to_object(tolua_S, 4, "cc.TMXMapInfo",&arg2, "cc.FastTMXLayer:initWithTilesetInfo"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FastTMXLayer_initWithTilesetInfo'", nullptr); @@ -107383,7 +107383,7 @@ int lua_cocos2dx_FastTMXLayer_initWithTilesetInfo(lua_State* tolua_S) int lua_cocos2dx_FastTMXLayer_hasTileAnimation(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXLayer* cobj = nullptr; + axis::FastTMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -107395,7 +107395,7 @@ int lua_cocos2dx_FastTMXLayer_hasTileAnimation(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -107430,7 +107430,7 @@ int lua_cocos2dx_FastTMXLayer_hasTileAnimation(lua_State* tolua_S) int lua_cocos2dx_FastTMXLayer_getLayerSize(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXLayer* cobj = nullptr; + axis::FastTMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -107442,7 +107442,7 @@ int lua_cocos2dx_FastTMXLayer_getLayerSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -107460,7 +107460,7 @@ int lua_cocos2dx_FastTMXLayer_getLayerSize(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FastTMXLayer_getLayerSize'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getLayerSize(); + const axis::Vec2& ret = cobj->getLayerSize(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -107477,7 +107477,7 @@ int lua_cocos2dx_FastTMXLayer_getLayerSize(lua_State* tolua_S) int lua_cocos2dx_FastTMXLayer_setMapTileSize(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXLayer* cobj = nullptr; + axis::FastTMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -107489,7 +107489,7 @@ int lua_cocos2dx_FastTMXLayer_setMapTileSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -107502,7 +107502,7 @@ int lua_cocos2dx_FastTMXLayer_setMapTileSize(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.FastTMXLayer:setMapTileSize"); if(!ok) @@ -107527,7 +107527,7 @@ int lua_cocos2dx_FastTMXLayer_setMapTileSize(lua_State* tolua_S) int lua_cocos2dx_FastTMXLayer_getLayerOrientation(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXLayer* cobj = nullptr; + axis::FastTMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -107539,7 +107539,7 @@ int lua_cocos2dx_FastTMXLayer_getLayerOrientation(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -107574,7 +107574,7 @@ int lua_cocos2dx_FastTMXLayer_getLayerOrientation(lua_State* tolua_S) int lua_cocos2dx_FastTMXLayer_setProperties(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXLayer* cobj = nullptr; + axis::FastTMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -107586,7 +107586,7 @@ int lua_cocos2dx_FastTMXLayer_setProperties(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -107599,7 +107599,7 @@ int lua_cocos2dx_FastTMXLayer_setProperties(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ValueMap arg0; + axis::ValueMap arg0; ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.FastTMXLayer:setProperties"); if(!ok) @@ -107624,7 +107624,7 @@ int lua_cocos2dx_FastTMXLayer_setProperties(lua_State* tolua_S) int lua_cocos2dx_FastTMXLayer_setLayerName(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXLayer* cobj = nullptr; + axis::FastTMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -107636,7 +107636,7 @@ int lua_cocos2dx_FastTMXLayer_setLayerName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -107674,7 +107674,7 @@ int lua_cocos2dx_FastTMXLayer_setLayerName(lua_State* tolua_S) int lua_cocos2dx_FastTMXLayer_removeTileAt(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXLayer* cobj = nullptr; + axis::FastTMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -107686,7 +107686,7 @@ int lua_cocos2dx_FastTMXLayer_removeTileAt(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -107699,7 +107699,7 @@ int lua_cocos2dx_FastTMXLayer_removeTileAt(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.FastTMXLayer:removeTileAt"); if(!ok) @@ -107724,7 +107724,7 @@ int lua_cocos2dx_FastTMXLayer_removeTileAt(lua_State* tolua_S) int lua_cocos2dx_FastTMXLayer_getProperties(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXLayer* cobj = nullptr; + axis::FastTMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -107733,7 +107733,7 @@ int lua_cocos2dx_FastTMXLayer_getProperties(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -107744,7 +107744,7 @@ int lua_cocos2dx_FastTMXLayer_getProperties(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 0) { - cocos2d::ValueMap& ret = cobj->getProperties(); + axis::ValueMap& ret = cobj->getProperties(); ccvaluemap_to_luaval(tolua_S, ret); return 1; } @@ -107752,7 +107752,7 @@ int lua_cocos2dx_FastTMXLayer_getProperties(lua_State* tolua_S) ok = true; do{ if (argc == 0) { - const cocos2d::ValueMap& ret = cobj->getProperties(); + const axis::ValueMap& ret = cobj->getProperties(); ccvaluemap_to_luaval(tolua_S, ret); return 1; } @@ -107771,7 +107771,7 @@ int lua_cocos2dx_FastTMXLayer_getProperties(lua_State* tolua_S) int lua_cocos2dx_FastTMXLayer_setupTiles(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXLayer* cobj = nullptr; + axis::FastTMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -107783,7 +107783,7 @@ int lua_cocos2dx_FastTMXLayer_setupTiles(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -107818,7 +107818,7 @@ int lua_cocos2dx_FastTMXLayer_setupTiles(lua_State* tolua_S) int lua_cocos2dx_FastTMXLayer_setupTileSprite(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXLayer* cobj = nullptr; + axis::FastTMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -107830,7 +107830,7 @@ int lua_cocos2dx_FastTMXLayer_setupTileSprite(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -107843,11 +107843,11 @@ int lua_cocos2dx_FastTMXLayer_setupTileSprite(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 3) { - cocos2d::Sprite* arg0; - cocos2d::Vec2 arg1; + axis::Sprite* arg0; + axis::Vec2 arg1; unsigned int arg2; - ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0, "cc.FastTMXLayer:setupTileSprite"); + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0, "cc.FastTMXLayer:setupTileSprite"); ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.FastTMXLayer:setupTileSprite"); @@ -107874,7 +107874,7 @@ int lua_cocos2dx_FastTMXLayer_setupTileSprite(lua_State* tolua_S) int lua_cocos2dx_FastTMXLayer_setTileGID(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXLayer* cobj = nullptr; + axis::FastTMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -107883,7 +107883,7 @@ int lua_cocos2dx_FastTMXLayer_setTileGID(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -107898,11 +107898,11 @@ int lua_cocos2dx_FastTMXLayer_setTileGID(lua_State* tolua_S) ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.FastTMXLayer:setTileGID"); if (!ok) { break; } - cocos2d::Vec2 arg1; + axis::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.FastTMXLayer:setTileGID"); if (!ok) { break; } - cocos2d::TMXTileFlags_ arg2; + axis::TMXTileFlags_ arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.FastTMXLayer:setTileGID"); if (!ok) { break; } @@ -107918,7 +107918,7 @@ int lua_cocos2dx_FastTMXLayer_setTileGID(lua_State* tolua_S) ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.FastTMXLayer:setTileGID"); if (!ok) { break; } - cocos2d::Vec2 arg1; + axis::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.FastTMXLayer:setTileGID"); if (!ok) { break; } @@ -107941,7 +107941,7 @@ int lua_cocos2dx_FastTMXLayer_setTileGID(lua_State* tolua_S) int lua_cocos2dx_FastTMXLayer_getMapTileSize(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXLayer* cobj = nullptr; + axis::FastTMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -107953,7 +107953,7 @@ int lua_cocos2dx_FastTMXLayer_getMapTileSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -107971,7 +107971,7 @@ int lua_cocos2dx_FastTMXLayer_getMapTileSize(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FastTMXLayer_getMapTileSize'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getMapTileSize(); + const axis::Vec2& ret = cobj->getMapTileSize(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -107988,7 +107988,7 @@ int lua_cocos2dx_FastTMXLayer_getMapTileSize(lua_State* tolua_S) int lua_cocos2dx_FastTMXLayer_getProperty(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXLayer* cobj = nullptr; + axis::FastTMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -108000,7 +108000,7 @@ int lua_cocos2dx_FastTMXLayer_getProperty(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -108021,7 +108021,7 @@ int lua_cocos2dx_FastTMXLayer_getProperty(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FastTMXLayer_getProperty'", nullptr); return 0; } - cocos2d::Value ret = cobj->getProperty(arg0); + axis::Value ret = cobj->getProperty(arg0); ccvalue_to_luaval(tolua_S, ret); return 1; } @@ -108038,7 +108038,7 @@ int lua_cocos2dx_FastTMXLayer_getProperty(lua_State* tolua_S) int lua_cocos2dx_FastTMXLayer_setLayerSize(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXLayer* cobj = nullptr; + axis::FastTMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -108050,7 +108050,7 @@ int lua_cocos2dx_FastTMXLayer_setLayerSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -108063,7 +108063,7 @@ int lua_cocos2dx_FastTMXLayer_setLayerSize(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.FastTMXLayer:setLayerSize"); if(!ok) @@ -108088,7 +108088,7 @@ int lua_cocos2dx_FastTMXLayer_setLayerSize(lua_State* tolua_S) int lua_cocos2dx_FastTMXLayer_getLayerName(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXLayer* cobj = nullptr; + axis::FastTMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -108100,7 +108100,7 @@ int lua_cocos2dx_FastTMXLayer_getLayerName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -108135,7 +108135,7 @@ int lua_cocos2dx_FastTMXLayer_getLayerName(lua_State* tolua_S) int lua_cocos2dx_FastTMXLayer_setTileSet(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXLayer* cobj = nullptr; + axis::FastTMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -108147,7 +108147,7 @@ int lua_cocos2dx_FastTMXLayer_setTileSet(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -108160,9 +108160,9 @@ int lua_cocos2dx_FastTMXLayer_setTileSet(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::TMXTilesetInfo* arg0; + axis::TMXTilesetInfo* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.TMXTilesetInfo",&arg0, "cc.FastTMXLayer:setTileSet"); + ok &= luaval_to_object(tolua_S, 2, "cc.TMXTilesetInfo",&arg0, "cc.FastTMXLayer:setTileSet"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FastTMXLayer_setTileSet'", nullptr); @@ -108185,7 +108185,7 @@ int lua_cocos2dx_FastTMXLayer_setTileSet(lua_State* tolua_S) int lua_cocos2dx_FastTMXLayer_getTileSet(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXLayer* cobj = nullptr; + axis::FastTMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -108197,7 +108197,7 @@ int lua_cocos2dx_FastTMXLayer_getTileSet(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -108215,8 +108215,8 @@ int lua_cocos2dx_FastTMXLayer_getTileSet(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FastTMXLayer_getTileSet'", nullptr); return 0; } - cocos2d::TMXTilesetInfo* ret = cobj->getTileSet(); - object_to_luaval(tolua_S, "cc.TMXTilesetInfo",(cocos2d::TMXTilesetInfo*)ret); + axis::TMXTilesetInfo* ret = cobj->getTileSet(); + object_to_luaval(tolua_S, "cc.TMXTilesetInfo",(axis::TMXTilesetInfo*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FastTMXLayer:getTileSet",argc, 0); @@ -108232,7 +108232,7 @@ int lua_cocos2dx_FastTMXLayer_getTileSet(lua_State* tolua_S) int lua_cocos2dx_FastTMXLayer_getTileAnimManager(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXLayer* cobj = nullptr; + axis::FastTMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -108244,7 +108244,7 @@ int lua_cocos2dx_FastTMXLayer_getTileAnimManager(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -108262,8 +108262,8 @@ int lua_cocos2dx_FastTMXLayer_getTileAnimManager(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FastTMXLayer_getTileAnimManager'", nullptr); return 0; } - cocos2d::TMXTileAnimManager* ret = cobj->getTileAnimManager(); - object_to_luaval(tolua_S, "cc.TMXTileAnimManager",(cocos2d::TMXTileAnimManager*)ret); + axis::TMXTileAnimManager* ret = cobj->getTileAnimManager(); + object_to_luaval(tolua_S, "cc.TMXTileAnimManager",(axis::TMXTileAnimManager*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FastTMXLayer:getTileAnimManager",argc, 0); @@ -108279,7 +108279,7 @@ int lua_cocos2dx_FastTMXLayer_getTileAnimManager(lua_State* tolua_S) int lua_cocos2dx_FastTMXLayer_getTileAt(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXLayer* cobj = nullptr; + axis::FastTMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -108291,7 +108291,7 @@ int lua_cocos2dx_FastTMXLayer_getTileAt(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FastTMXLayer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FastTMXLayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -108304,7 +108304,7 @@ int lua_cocos2dx_FastTMXLayer_getTileAt(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.FastTMXLayer:getTileAt"); if(!ok) @@ -108312,8 +108312,8 @@ int lua_cocos2dx_FastTMXLayer_getTileAt(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FastTMXLayer_getTileAt'", nullptr); return 0; } - cocos2d::Sprite* ret = cobj->getTileAt(arg0); - object_to_luaval(tolua_S, "cc.Sprite",(cocos2d::Sprite*)ret); + axis::Sprite* ret = cobj->getTileAt(arg0); + object_to_luaval(tolua_S, "cc.Sprite",(axis::Sprite*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FastTMXLayer:getTileAt",argc, 1); @@ -108343,19 +108343,19 @@ int lua_cocos2dx_FastTMXLayer_create(lua_State* tolua_S) if (argc == 3) { - cocos2d::TMXTilesetInfo* arg0; - cocos2d::TMXLayerInfo* arg1; - cocos2d::TMXMapInfo* arg2; - ok &= luaval_to_object(tolua_S, 2, "cc.TMXTilesetInfo",&arg0, "cc.FastTMXLayer:create"); - ok &= luaval_to_object(tolua_S, 3, "cc.TMXLayerInfo",&arg1, "cc.FastTMXLayer:create"); - ok &= luaval_to_object(tolua_S, 4, "cc.TMXMapInfo",&arg2, "cc.FastTMXLayer:create"); + axis::TMXTilesetInfo* arg0; + axis::TMXLayerInfo* arg1; + axis::TMXMapInfo* arg2; + ok &= luaval_to_object(tolua_S, 2, "cc.TMXTilesetInfo",&arg0, "cc.FastTMXLayer:create"); + ok &= luaval_to_object(tolua_S, 3, "cc.TMXLayerInfo",&arg1, "cc.FastTMXLayer:create"); + ok &= luaval_to_object(tolua_S, 4, "cc.TMXMapInfo",&arg2, "cc.FastTMXLayer:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FastTMXLayer_create'", nullptr); return 0; } - cocos2d::FastTMXLayer* ret = cocos2d::FastTMXLayer::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.FastTMXLayer",(cocos2d::FastTMXLayer*)ret); + axis::FastTMXLayer* ret = axis::FastTMXLayer::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.FastTMXLayer",(axis::FastTMXLayer*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FastTMXLayer:create",argc, 3); @@ -108369,7 +108369,7 @@ int lua_cocos2dx_FastTMXLayer_create(lua_State* tolua_S) int lua_cocos2dx_FastTMXLayer_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXLayer* cobj = nullptr; + axis::FastTMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -108386,7 +108386,7 @@ int lua_cocos2dx_FastTMXLayer_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FastTMXLayer_constructor'", nullptr); return 0; } - cobj = new cocos2d::FastTMXLayer(); + cobj = new axis::FastTMXLayer(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -108441,7 +108441,7 @@ int lua_register_cocos2dx_FastTMXLayer(lua_State* tolua_S) tolua_function(tolua_S,"getTileAt",lua_cocos2dx_FastTMXLayer_getTileAt); tolua_function(tolua_S,"create", lua_cocos2dx_FastTMXLayer_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::FastTMXLayer).name(); // rtti is literal storage + auto typeName = typeid(axis::FastTMXLayer).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.FastTMXLayer"; g_typeCast[typeName] = "cc.FastTMXLayer"; return 1; @@ -108450,7 +108450,7 @@ int lua_register_cocos2dx_FastTMXLayer(lua_State* tolua_S) int lua_cocos2dx_TMXTileAnimTask_start(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXTileAnimTask* cobj = nullptr; + axis::TMXTileAnimTask* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -108462,7 +108462,7 @@ int lua_cocos2dx_TMXTileAnimTask_start(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXTileAnimTask",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXTileAnimTask*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXTileAnimTask*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -108497,7 +108497,7 @@ int lua_cocos2dx_TMXTileAnimTask_start(lua_State* tolua_S) int lua_cocos2dx_TMXTileAnimTask_stop(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXTileAnimTask* cobj = nullptr; + axis::TMXTileAnimTask* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -108509,7 +108509,7 @@ int lua_cocos2dx_TMXTileAnimTask_stop(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXTileAnimTask",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXTileAnimTask*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXTileAnimTask*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -108544,7 +108544,7 @@ int lua_cocos2dx_TMXTileAnimTask_stop(lua_State* tolua_S) int lua_cocos2dx_TMXTileAnimTask_isRunning(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXTileAnimTask* cobj = nullptr; + axis::TMXTileAnimTask* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -108556,7 +108556,7 @@ int lua_cocos2dx_TMXTileAnimTask_isRunning(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXTileAnimTask",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXTileAnimTask*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXTileAnimTask*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -108605,10 +108605,10 @@ int lua_cocos2dx_TMXTileAnimTask_create(lua_State* tolua_S) if (argc == 3) { - cocos2d::FastTMXLayer* arg0; - cocos2d::TMXTileAnimInfo* arg1; - cocos2d::Vec2 arg2; - ok &= luaval_to_object(tolua_S, 2, "cc.FastTMXLayer",&arg0, "cc.TMXTileAnimTask:create"); + axis::FastTMXLayer* arg0; + axis::TMXTileAnimInfo* arg1; + axis::Vec2 arg2; + ok &= luaval_to_object(tolua_S, 2, "cc.FastTMXLayer",&arg0, "cc.TMXTileAnimTask:create"); #pragma warning NO CONVERSION TO NATIVE FOR TMXTileAnimInfo* ok = false; ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.TMXTileAnimTask:create"); @@ -108617,8 +108617,8 @@ int lua_cocos2dx_TMXTileAnimTask_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXTileAnimTask_create'", nullptr); return 0; } - cocos2d::TMXTileAnimTask* ret = cocos2d::TMXTileAnimTask::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.TMXTileAnimTask",(cocos2d::TMXTileAnimTask*)ret); + axis::TMXTileAnimTask* ret = axis::TMXTileAnimTask::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.TMXTileAnimTask",(axis::TMXTileAnimTask*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TMXTileAnimTask:create",argc, 3); @@ -108632,7 +108632,7 @@ int lua_cocos2dx_TMXTileAnimTask_create(lua_State* tolua_S) int lua_cocos2dx_TMXTileAnimTask_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXTileAnimTask* cobj = nullptr; + axis::TMXTileAnimTask* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -108644,11 +108644,11 @@ int lua_cocos2dx_TMXTileAnimTask_constructor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 3) { - cocos2d::FastTMXLayer* arg0; - cocos2d::TMXTileAnimInfo* arg1; - cocos2d::Vec2 arg2; + axis::FastTMXLayer* arg0; + axis::TMXTileAnimInfo* arg1; + axis::Vec2 arg2; - ok &= luaval_to_object(tolua_S, 2, "cc.FastTMXLayer",&arg0, "cc.TMXTileAnimTask:TMXTileAnimTask"); + ok &= luaval_to_object(tolua_S, 2, "cc.FastTMXLayer",&arg0, "cc.TMXTileAnimTask:TMXTileAnimTask"); #pragma warning NO CONVERSION TO NATIVE FOR TMXTileAnimInfo* ok = false; @@ -108659,7 +108659,7 @@ int lua_cocos2dx_TMXTileAnimTask_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXTileAnimTask_constructor'", nullptr); return 0; } - cobj = new cocos2d::TMXTileAnimTask(arg0, arg1, arg2); + cobj = new axis::TMXTileAnimTask(arg0, arg1, arg2); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -108694,7 +108694,7 @@ int lua_register_cocos2dx_TMXTileAnimTask(lua_State* tolua_S) tolua_function(tolua_S,"isRunning",lua_cocos2dx_TMXTileAnimTask_isRunning); tolua_function(tolua_S,"create", lua_cocos2dx_TMXTileAnimTask_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TMXTileAnimTask).name(); // rtti is literal storage + auto typeName = typeid(axis::TMXTileAnimTask).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TMXTileAnimTask"; g_typeCast[typeName] = "cc.TMXTileAnimTask"; return 1; @@ -108703,7 +108703,7 @@ int lua_register_cocos2dx_TMXTileAnimTask(lua_State* tolua_S) int lua_cocos2dx_TMXTileAnimManager_getTasks(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXTileAnimManager* cobj = nullptr; + axis::TMXTileAnimManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -108715,7 +108715,7 @@ int lua_cocos2dx_TMXTileAnimManager_getTasks(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXTileAnimManager",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXTileAnimManager*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXTileAnimManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -108733,7 +108733,7 @@ int lua_cocos2dx_TMXTileAnimManager_getTasks(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXTileAnimManager_getTasks'", nullptr); return 0; } - const cocos2d::Vector& ret = cobj->getTasks(); + const axis::Vector& ret = cobj->getTasks(); ccvector_to_luaval(tolua_S, ret); return 1; } @@ -108750,7 +108750,7 @@ int lua_cocos2dx_TMXTileAnimManager_getTasks(lua_State* tolua_S) int lua_cocos2dx_TMXTileAnimManager_startAll(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXTileAnimManager* cobj = nullptr; + axis::TMXTileAnimManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -108762,7 +108762,7 @@ int lua_cocos2dx_TMXTileAnimManager_startAll(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXTileAnimManager",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXTileAnimManager*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXTileAnimManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -108797,7 +108797,7 @@ int lua_cocos2dx_TMXTileAnimManager_startAll(lua_State* tolua_S) int lua_cocos2dx_TMXTileAnimManager_stopAll(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXTileAnimManager* cobj = nullptr; + axis::TMXTileAnimManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -108809,7 +108809,7 @@ int lua_cocos2dx_TMXTileAnimManager_stopAll(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.TMXTileAnimManager",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXTileAnimManager*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::TMXTileAnimManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -108858,15 +108858,15 @@ int lua_cocos2dx_TMXTileAnimManager_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::FastTMXLayer* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.FastTMXLayer",&arg0, "cc.TMXTileAnimManager:create"); + axis::FastTMXLayer* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.FastTMXLayer",&arg0, "cc.TMXTileAnimManager:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXTileAnimManager_create'", nullptr); return 0; } - cocos2d::TMXTileAnimManager* ret = cocos2d::TMXTileAnimManager::create(arg0); - object_to_luaval(tolua_S, "cc.TMXTileAnimManager",(cocos2d::TMXTileAnimManager*)ret); + axis::TMXTileAnimManager* ret = axis::TMXTileAnimManager::create(arg0); + object_to_luaval(tolua_S, "cc.TMXTileAnimManager",(axis::TMXTileAnimManager*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.TMXTileAnimManager:create",argc, 1); @@ -108880,7 +108880,7 @@ int lua_cocos2dx_TMXTileAnimManager_create(lua_State* tolua_S) int lua_cocos2dx_TMXTileAnimManager_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXTileAnimManager* cobj = nullptr; + axis::TMXTileAnimManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -108892,15 +108892,15 @@ int lua_cocos2dx_TMXTileAnimManager_constructor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::FastTMXLayer* arg0; + axis::FastTMXLayer* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.FastTMXLayer",&arg0, "cc.TMXTileAnimManager:TMXTileAnimManager"); + ok &= luaval_to_object(tolua_S, 2, "cc.FastTMXLayer",&arg0, "cc.TMXTileAnimManager:TMXTileAnimManager"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_TMXTileAnimManager_constructor'", nullptr); return 0; } - cobj = new cocos2d::TMXTileAnimManager(arg0); + cobj = new axis::TMXTileAnimManager(arg0); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -108935,7 +108935,7 @@ int lua_register_cocos2dx_TMXTileAnimManager(lua_State* tolua_S) tolua_function(tolua_S,"stopAll",lua_cocos2dx_TMXTileAnimManager_stopAll); tolua_function(tolua_S,"create", lua_cocos2dx_TMXTileAnimManager_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::TMXTileAnimManager).name(); // rtti is literal storage + auto typeName = typeid(axis::TMXTileAnimManager).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.TMXTileAnimManager"; g_typeCast[typeName] = "cc.TMXTileAnimManager"; return 1; @@ -108944,7 +108944,7 @@ int lua_register_cocos2dx_TMXTileAnimManager(lua_State* tolua_S) int lua_cocos2dx_FastTMXTiledMap_setObjectGroups(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXTiledMap* cobj = nullptr; + axis::FastTMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -108956,7 +108956,7 @@ int lua_cocos2dx_FastTMXTiledMap_setObjectGroups(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -108969,7 +108969,7 @@ int lua_cocos2dx_FastTMXTiledMap_setObjectGroups(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vector arg0; + axis::Vector arg0; ok &= luaval_to_ccvector(tolua_S, 2, &arg0, "cc.FastTMXTiledMap:setObjectGroups"); if(!ok) @@ -108994,7 +108994,7 @@ int lua_cocos2dx_FastTMXTiledMap_setObjectGroups(lua_State* tolua_S) int lua_cocos2dx_FastTMXTiledMap_getProperty(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXTiledMap* cobj = nullptr; + axis::FastTMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -109006,7 +109006,7 @@ int lua_cocos2dx_FastTMXTiledMap_getProperty(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -109027,7 +109027,7 @@ int lua_cocos2dx_FastTMXTiledMap_getProperty(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FastTMXTiledMap_getProperty'", nullptr); return 0; } - cocos2d::Value ret = cobj->getProperty(arg0); + axis::Value ret = cobj->getProperty(arg0); ccvalue_to_luaval(tolua_S, ret); return 1; } @@ -109044,7 +109044,7 @@ int lua_cocos2dx_FastTMXTiledMap_getProperty(lua_State* tolua_S) int lua_cocos2dx_FastTMXTiledMap_setMapSize(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXTiledMap* cobj = nullptr; + axis::FastTMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -109056,7 +109056,7 @@ int lua_cocos2dx_FastTMXTiledMap_setMapSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -109069,7 +109069,7 @@ int lua_cocos2dx_FastTMXTiledMap_setMapSize(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.FastTMXTiledMap:setMapSize"); if(!ok) @@ -109094,7 +109094,7 @@ int lua_cocos2dx_FastTMXTiledMap_setMapSize(lua_State* tolua_S) int lua_cocos2dx_FastTMXTiledMap_getObjectGroup(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXTiledMap* cobj = nullptr; + axis::FastTMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -109106,7 +109106,7 @@ int lua_cocos2dx_FastTMXTiledMap_getObjectGroup(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -109127,8 +109127,8 @@ int lua_cocos2dx_FastTMXTiledMap_getObjectGroup(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FastTMXTiledMap_getObjectGroup'", nullptr); return 0; } - cocos2d::TMXObjectGroup* ret = cobj->getObjectGroup(arg0); - object_to_luaval(tolua_S, "cc.TMXObjectGroup",(cocos2d::TMXObjectGroup*)ret); + axis::TMXObjectGroup* ret = cobj->getObjectGroup(arg0); + object_to_luaval(tolua_S, "cc.TMXObjectGroup",(axis::TMXObjectGroup*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FastTMXTiledMap:getObjectGroup",argc, 1); @@ -109144,7 +109144,7 @@ int lua_cocos2dx_FastTMXTiledMap_getObjectGroup(lua_State* tolua_S) int lua_cocos2dx_FastTMXTiledMap_getResourceFile(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXTiledMap* cobj = nullptr; + axis::FastTMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -109156,7 +109156,7 @@ int lua_cocos2dx_FastTMXTiledMap_getResourceFile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -109191,7 +109191,7 @@ int lua_cocos2dx_FastTMXTiledMap_getResourceFile(lua_State* tolua_S) int lua_cocos2dx_FastTMXTiledMap_getObjectGroups(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXTiledMap* cobj = nullptr; + axis::FastTMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -109200,7 +109200,7 @@ int lua_cocos2dx_FastTMXTiledMap_getObjectGroups(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -109211,7 +109211,7 @@ int lua_cocos2dx_FastTMXTiledMap_getObjectGroups(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 0) { - cocos2d::Vector& ret = cobj->getObjectGroups(); + axis::Vector& ret = cobj->getObjectGroups(); ccvector_to_luaval(tolua_S, ret); return 1; } @@ -109219,7 +109219,7 @@ int lua_cocos2dx_FastTMXTiledMap_getObjectGroups(lua_State* tolua_S) ok = true; do{ if (argc == 0) { - const cocos2d::Vector& ret = cobj->getObjectGroups(); + const axis::Vector& ret = cobj->getObjectGroups(); ccvector_to_luaval(tolua_S, ret); return 1; } @@ -109238,7 +109238,7 @@ int lua_cocos2dx_FastTMXTiledMap_getObjectGroups(lua_State* tolua_S) int lua_cocos2dx_FastTMXTiledMap_getLayerCount(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXTiledMap* cobj = nullptr; + axis::FastTMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -109250,7 +109250,7 @@ int lua_cocos2dx_FastTMXTiledMap_getLayerCount(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -109285,7 +109285,7 @@ int lua_cocos2dx_FastTMXTiledMap_getLayerCount(lua_State* tolua_S) int lua_cocos2dx_FastTMXTiledMap_initWithTMXFile(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXTiledMap* cobj = nullptr; + axis::FastTMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -109297,7 +109297,7 @@ int lua_cocos2dx_FastTMXTiledMap_initWithTMXFile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -109335,7 +109335,7 @@ int lua_cocos2dx_FastTMXTiledMap_initWithTMXFile(lua_State* tolua_S) int lua_cocos2dx_FastTMXTiledMap_getTileSize(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXTiledMap* cobj = nullptr; + axis::FastTMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -109347,7 +109347,7 @@ int lua_cocos2dx_FastTMXTiledMap_getTileSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -109365,7 +109365,7 @@ int lua_cocos2dx_FastTMXTiledMap_getTileSize(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FastTMXTiledMap_getTileSize'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getTileSize(); + const axis::Vec2& ret = cobj->getTileSize(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -109382,7 +109382,7 @@ int lua_cocos2dx_FastTMXTiledMap_getTileSize(lua_State* tolua_S) int lua_cocos2dx_FastTMXTiledMap_getMapSize(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXTiledMap* cobj = nullptr; + axis::FastTMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -109394,7 +109394,7 @@ int lua_cocos2dx_FastTMXTiledMap_getMapSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -109412,7 +109412,7 @@ int lua_cocos2dx_FastTMXTiledMap_getMapSize(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FastTMXTiledMap_getMapSize'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getMapSize(); + const axis::Vec2& ret = cobj->getMapSize(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -109429,7 +109429,7 @@ int lua_cocos2dx_FastTMXTiledMap_getMapSize(lua_State* tolua_S) int lua_cocos2dx_FastTMXTiledMap_setTileAnimEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXTiledMap* cobj = nullptr; + axis::FastTMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -109441,7 +109441,7 @@ int lua_cocos2dx_FastTMXTiledMap_setTileAnimEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -109479,7 +109479,7 @@ int lua_cocos2dx_FastTMXTiledMap_setTileAnimEnabled(lua_State* tolua_S) int lua_cocos2dx_FastTMXTiledMap_initWithXML(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXTiledMap* cobj = nullptr; + axis::FastTMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -109491,7 +109491,7 @@ int lua_cocos2dx_FastTMXTiledMap_initWithXML(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -109532,7 +109532,7 @@ int lua_cocos2dx_FastTMXTiledMap_initWithXML(lua_State* tolua_S) int lua_cocos2dx_FastTMXTiledMap_getProperties(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXTiledMap* cobj = nullptr; + axis::FastTMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -109544,7 +109544,7 @@ int lua_cocos2dx_FastTMXTiledMap_getProperties(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -109562,7 +109562,7 @@ int lua_cocos2dx_FastTMXTiledMap_getProperties(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FastTMXTiledMap_getProperties'", nullptr); return 0; } - const cocos2d::ValueMap& ret = cobj->getProperties(); + const axis::ValueMap& ret = cobj->getProperties(); ccvaluemap_to_luaval(tolua_S, ret); return 1; } @@ -109579,7 +109579,7 @@ int lua_cocos2dx_FastTMXTiledMap_getProperties(lua_State* tolua_S) int lua_cocos2dx_FastTMXTiledMap_getPropertiesForGID(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXTiledMap* cobj = nullptr; + axis::FastTMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -109591,7 +109591,7 @@ int lua_cocos2dx_FastTMXTiledMap_getPropertiesForGID(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -109612,7 +109612,7 @@ int lua_cocos2dx_FastTMXTiledMap_getPropertiesForGID(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FastTMXTiledMap_getPropertiesForGID'", nullptr); return 0; } - cocos2d::Value ret = cobj->getPropertiesForGID(arg0); + axis::Value ret = cobj->getPropertiesForGID(arg0); ccvalue_to_luaval(tolua_S, ret); return 1; } @@ -109629,7 +109629,7 @@ int lua_cocos2dx_FastTMXTiledMap_getPropertiesForGID(lua_State* tolua_S) int lua_cocos2dx_FastTMXTiledMap_setTileSize(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXTiledMap* cobj = nullptr; + axis::FastTMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -109641,7 +109641,7 @@ int lua_cocos2dx_FastTMXTiledMap_setTileSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -109654,7 +109654,7 @@ int lua_cocos2dx_FastTMXTiledMap_setTileSize(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.FastTMXTiledMap:setTileSize"); if(!ok) @@ -109679,7 +109679,7 @@ int lua_cocos2dx_FastTMXTiledMap_setTileSize(lua_State* tolua_S) int lua_cocos2dx_FastTMXTiledMap_setProperties(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXTiledMap* cobj = nullptr; + axis::FastTMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -109691,7 +109691,7 @@ int lua_cocos2dx_FastTMXTiledMap_setProperties(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -109704,7 +109704,7 @@ int lua_cocos2dx_FastTMXTiledMap_setProperties(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ValueMap arg0; + axis::ValueMap arg0; ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "cc.FastTMXTiledMap:setProperties"); if(!ok) @@ -109729,7 +109729,7 @@ int lua_cocos2dx_FastTMXTiledMap_setProperties(lua_State* tolua_S) int lua_cocos2dx_FastTMXTiledMap_getLayer(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXTiledMap* cobj = nullptr; + axis::FastTMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -109741,7 +109741,7 @@ int lua_cocos2dx_FastTMXTiledMap_getLayer(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -109762,8 +109762,8 @@ int lua_cocos2dx_FastTMXTiledMap_getLayer(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FastTMXTiledMap_getLayer'", nullptr); return 0; } - cocos2d::FastTMXLayer* ret = cobj->getLayer(arg0); - object_to_luaval(tolua_S, "cc.FastTMXLayer",(cocos2d::FastTMXLayer*)ret); + axis::FastTMXLayer* ret = cobj->getLayer(arg0); + object_to_luaval(tolua_S, "cc.FastTMXLayer",(axis::FastTMXLayer*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.FastTMXTiledMap:getLayer",argc, 1); @@ -109779,7 +109779,7 @@ int lua_cocos2dx_FastTMXTiledMap_getLayer(lua_State* tolua_S) int lua_cocos2dx_FastTMXTiledMap_getMapOrientation(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXTiledMap* cobj = nullptr; + axis::FastTMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -109791,7 +109791,7 @@ int lua_cocos2dx_FastTMXTiledMap_getMapOrientation(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -109826,7 +109826,7 @@ int lua_cocos2dx_FastTMXTiledMap_getMapOrientation(lua_State* tolua_S) int lua_cocos2dx_FastTMXTiledMap_setMapOrientation(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXTiledMap* cobj = nullptr; + axis::FastTMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -109838,7 +109838,7 @@ int lua_cocos2dx_FastTMXTiledMap_setMapOrientation(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.FastTMXTiledMap",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::FastTMXTiledMap*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -109897,8 +109897,8 @@ int lua_cocos2dx_FastTMXTiledMap_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FastTMXTiledMap_create'", nullptr); return 0; } - cocos2d::FastTMXTiledMap* ret = cocos2d::FastTMXTiledMap::create(arg0); - object_to_luaval(tolua_S, "cc.FastTMXTiledMap",(cocos2d::FastTMXTiledMap*)ret); + axis::FastTMXTiledMap* ret = axis::FastTMXTiledMap::create(arg0); + object_to_luaval(tolua_S, "cc.FastTMXTiledMap",(axis::FastTMXTiledMap*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FastTMXTiledMap:create",argc, 1); @@ -109935,8 +109935,8 @@ int lua_cocos2dx_FastTMXTiledMap_createWithXML(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FastTMXTiledMap_createWithXML'", nullptr); return 0; } - cocos2d::FastTMXTiledMap* ret = cocos2d::FastTMXTiledMap::createWithXML(arg0, arg1); - object_to_luaval(tolua_S, "cc.FastTMXTiledMap",(cocos2d::FastTMXTiledMap*)ret); + axis::FastTMXTiledMap* ret = axis::FastTMXTiledMap::createWithXML(arg0, arg1); + object_to_luaval(tolua_S, "cc.FastTMXTiledMap",(axis::FastTMXTiledMap*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.FastTMXTiledMap:createWithXML",argc, 2); @@ -109950,7 +109950,7 @@ int lua_cocos2dx_FastTMXTiledMap_createWithXML(lua_State* tolua_S) int lua_cocos2dx_FastTMXTiledMap_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXTiledMap* cobj = nullptr; + axis::FastTMXTiledMap* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -109967,7 +109967,7 @@ int lua_cocos2dx_FastTMXTiledMap_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_FastTMXTiledMap_constructor'", nullptr); return 0; } - cobj = new cocos2d::FastTMXTiledMap(); + cobj = new axis::FastTMXTiledMap(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -110019,7 +110019,7 @@ int lua_register_cocos2dx_FastTMXTiledMap(lua_State* tolua_S) tolua_function(tolua_S,"create", lua_cocos2dx_FastTMXTiledMap_create); tolua_function(tolua_S,"createWithXML", lua_cocos2dx_FastTMXTiledMap_createWithXML); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::FastTMXTiledMap).name(); // rtti is literal storage + auto typeName = typeid(axis::FastTMXTiledMap).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.FastTMXTiledMap"; g_typeCast[typeName] = "cc.FastTMXTiledMap"; return 1; @@ -110028,7 +110028,7 @@ int lua_register_cocos2dx_FastTMXTiledMap(lua_State* tolua_S) int lua_cocos2dx_MotionStreak3D_reset(lua_State* tolua_S) { int argc = 0; - cocos2d::MotionStreak3D* cobj = nullptr; + axis::MotionStreak3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -110040,7 +110040,7 @@ int lua_cocos2dx_MotionStreak3D_reset(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -110075,7 +110075,7 @@ int lua_cocos2dx_MotionStreak3D_reset(lua_State* tolua_S) int lua_cocos2dx_MotionStreak3D_setTexture(lua_State* tolua_S) { int argc = 0; - cocos2d::MotionStreak3D* cobj = nullptr; + axis::MotionStreak3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -110087,7 +110087,7 @@ int lua_cocos2dx_MotionStreak3D_setTexture(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -110100,9 +110100,9 @@ int lua_cocos2dx_MotionStreak3D_setTexture(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Texture2D* arg0; + axis::Texture2D* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.MotionStreak3D:setTexture"); + ok &= luaval_to_object(tolua_S, 2, "cc.Texture2D",&arg0, "cc.MotionStreak3D:setTexture"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MotionStreak3D_setTexture'", nullptr); @@ -110125,7 +110125,7 @@ int lua_cocos2dx_MotionStreak3D_setTexture(lua_State* tolua_S) int lua_cocos2dx_MotionStreak3D_getTexture(lua_State* tolua_S) { int argc = 0; - cocos2d::MotionStreak3D* cobj = nullptr; + axis::MotionStreak3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -110137,7 +110137,7 @@ int lua_cocos2dx_MotionStreak3D_getTexture(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -110155,8 +110155,8 @@ int lua_cocos2dx_MotionStreak3D_getTexture(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MotionStreak3D_getTexture'", nullptr); return 0; } - cocos2d::Texture2D* ret = cobj->getTexture(); - object_to_luaval(tolua_S, "cc.Texture2D",(cocos2d::Texture2D*)ret); + axis::Texture2D* ret = cobj->getTexture(); + object_to_luaval(tolua_S, "cc.Texture2D",(axis::Texture2D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MotionStreak3D:getTexture",argc, 0); @@ -110172,7 +110172,7 @@ int lua_cocos2dx_MotionStreak3D_getTexture(lua_State* tolua_S) int lua_cocos2dx_MotionStreak3D_tintWithColor(lua_State* tolua_S) { int argc = 0; - cocos2d::MotionStreak3D* cobj = nullptr; + axis::MotionStreak3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -110184,7 +110184,7 @@ int lua_cocos2dx_MotionStreak3D_tintWithColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -110197,7 +110197,7 @@ int lua_cocos2dx_MotionStreak3D_tintWithColor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Color3B arg0; + axis::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "cc.MotionStreak3D:tintWithColor"); if(!ok) @@ -110222,7 +110222,7 @@ int lua_cocos2dx_MotionStreak3D_tintWithColor(lua_State* tolua_S) int lua_cocos2dx_MotionStreak3D_getSweepAxis(lua_State* tolua_S) { int argc = 0; - cocos2d::MotionStreak3D* cobj = nullptr; + axis::MotionStreak3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -110234,7 +110234,7 @@ int lua_cocos2dx_MotionStreak3D_getSweepAxis(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -110252,7 +110252,7 @@ int lua_cocos2dx_MotionStreak3D_getSweepAxis(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MotionStreak3D_getSweepAxis'", nullptr); return 0; } - const cocos2d::Vec3& ret = cobj->getSweepAxis(); + const axis::Vec3& ret = cobj->getSweepAxis(); vec3_to_luaval(tolua_S, ret); return 1; } @@ -110269,7 +110269,7 @@ int lua_cocos2dx_MotionStreak3D_getSweepAxis(lua_State* tolua_S) int lua_cocos2dx_MotionStreak3D_setBlendFunc(lua_State* tolua_S) { int argc = 0; - cocos2d::MotionStreak3D* cobj = nullptr; + axis::MotionStreak3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -110281,7 +110281,7 @@ int lua_cocos2dx_MotionStreak3D_setBlendFunc(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -110294,7 +110294,7 @@ int lua_cocos2dx_MotionStreak3D_setBlendFunc(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::BlendFunc arg0; + axis::BlendFunc arg0; ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "cc.MotionStreak3D:setBlendFunc"); if(!ok) @@ -110319,7 +110319,7 @@ int lua_cocos2dx_MotionStreak3D_setBlendFunc(lua_State* tolua_S) int lua_cocos2dx_MotionStreak3D_setStartingPositionInitialized(lua_State* tolua_S) { int argc = 0; - cocos2d::MotionStreak3D* cobj = nullptr; + axis::MotionStreak3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -110331,7 +110331,7 @@ int lua_cocos2dx_MotionStreak3D_setStartingPositionInitialized(lua_State* tolua_ if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -110369,7 +110369,7 @@ int lua_cocos2dx_MotionStreak3D_setStartingPositionInitialized(lua_State* tolua_ int lua_cocos2dx_MotionStreak3D_getBlendFunc(lua_State* tolua_S) { int argc = 0; - cocos2d::MotionStreak3D* cobj = nullptr; + axis::MotionStreak3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -110381,7 +110381,7 @@ int lua_cocos2dx_MotionStreak3D_getBlendFunc(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -110399,7 +110399,7 @@ int lua_cocos2dx_MotionStreak3D_getBlendFunc(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MotionStreak3D_getBlendFunc'", nullptr); return 0; } - const cocos2d::BlendFunc& ret = cobj->getBlendFunc(); + const axis::BlendFunc& ret = cobj->getBlendFunc(); blendfunc_to_luaval(tolua_S, ret); return 1; } @@ -110416,7 +110416,7 @@ int lua_cocos2dx_MotionStreak3D_getBlendFunc(lua_State* tolua_S) int lua_cocos2dx_MotionStreak3D_isStartingPositionInitialized(lua_State* tolua_S) { int argc = 0; - cocos2d::MotionStreak3D* cobj = nullptr; + axis::MotionStreak3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -110428,7 +110428,7 @@ int lua_cocos2dx_MotionStreak3D_isStartingPositionInitialized(lua_State* tolua_S if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -110463,7 +110463,7 @@ int lua_cocos2dx_MotionStreak3D_isStartingPositionInitialized(lua_State* tolua_S int lua_cocos2dx_MotionStreak3D_getStroke(lua_State* tolua_S) { int argc = 0; - cocos2d::MotionStreak3D* cobj = nullptr; + axis::MotionStreak3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -110475,7 +110475,7 @@ int lua_cocos2dx_MotionStreak3D_getStroke(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -110510,7 +110510,7 @@ int lua_cocos2dx_MotionStreak3D_getStroke(lua_State* tolua_S) int lua_cocos2dx_MotionStreak3D_initWithFade(lua_State* tolua_S) { int argc = 0; - cocos2d::MotionStreak3D* cobj = nullptr; + axis::MotionStreak3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -110519,7 +110519,7 @@ int lua_cocos2dx_MotionStreak3D_initWithFade(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -110542,12 +110542,12 @@ int lua_cocos2dx_MotionStreak3D_initWithFade(lua_State* tolua_S) ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.MotionStreak3D:initWithFade"); if (!ok) { break; } - cocos2d::Color3B arg3; + axis::Color3B arg3; ok &= luaval_to_color3b(tolua_S, 5, &arg3, "cc.MotionStreak3D:initWithFade"); if (!ok) { break; } - cocos2d::Texture2D* arg4; - ok &= luaval_to_object(tolua_S, 6, "cc.Texture2D",&arg4, "cc.MotionStreak3D:initWithFade"); + axis::Texture2D* arg4; + ok &= luaval_to_object(tolua_S, 6, "cc.Texture2D",&arg4, "cc.MotionStreak3D:initWithFade"); if (!ok) { break; } bool ret = cobj->initWithFade(arg0, arg1, arg2, arg3, arg4); @@ -110570,7 +110570,7 @@ int lua_cocos2dx_MotionStreak3D_initWithFade(lua_State* tolua_S) ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.MotionStreak3D:initWithFade"); if (!ok) { break; } - cocos2d::Color3B arg3; + axis::Color3B arg3; ok &= luaval_to_color3b(tolua_S, 5, &arg3, "cc.MotionStreak3D:initWithFade"); if (!ok) { break; } @@ -110597,7 +110597,7 @@ int lua_cocos2dx_MotionStreak3D_initWithFade(lua_State* tolua_S) int lua_cocos2dx_MotionStreak3D_setSweepAxis(lua_State* tolua_S) { int argc = 0; - cocos2d::MotionStreak3D* cobj = nullptr; + axis::MotionStreak3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -110609,7 +110609,7 @@ int lua_cocos2dx_MotionStreak3D_setSweepAxis(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -110622,7 +110622,7 @@ int lua_cocos2dx_MotionStreak3D_setSweepAxis(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec3 arg0; + axis::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.MotionStreak3D:setSweepAxis"); if(!ok) @@ -110647,7 +110647,7 @@ int lua_cocos2dx_MotionStreak3D_setSweepAxis(lua_State* tolua_S) int lua_cocos2dx_MotionStreak3D_setStroke(lua_State* tolua_S) { int argc = 0; - cocos2d::MotionStreak3D* cobj = nullptr; + axis::MotionStreak3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -110659,7 +110659,7 @@ int lua_cocos2dx_MotionStreak3D_setStroke(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.MotionStreak3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::MotionStreak3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -110721,14 +110721,14 @@ int lua_cocos2dx_MotionStreak3D_create(lua_State* tolua_S) double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.MotionStreak3D:create"); if (!ok) { break; } - cocos2d::Color3B arg3; + axis::Color3B arg3; ok &= luaval_to_color3b(tolua_S, 5, &arg3, "cc.MotionStreak3D:create"); if (!ok) { break; } - cocos2d::Texture2D* arg4; - ok &= luaval_to_object(tolua_S, 6, "cc.Texture2D",&arg4, "cc.MotionStreak3D:create"); + axis::Texture2D* arg4; + ok &= luaval_to_object(tolua_S, 6, "cc.Texture2D",&arg4, "cc.MotionStreak3D:create"); if (!ok) { break; } - cocos2d::MotionStreak3D* ret = cocos2d::MotionStreak3D::create(arg0, arg1, arg2, arg3, arg4); - object_to_luaval(tolua_S, "cc.MotionStreak3D",(cocos2d::MotionStreak3D*)ret); + axis::MotionStreak3D* ret = axis::MotionStreak3D::create(arg0, arg1, arg2, arg3, arg4); + object_to_luaval(tolua_S, "cc.MotionStreak3D",(axis::MotionStreak3D*)ret); return 1; } } while (0); @@ -110746,14 +110746,14 @@ int lua_cocos2dx_MotionStreak3D_create(lua_State* tolua_S) double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.MotionStreak3D:create"); if (!ok) { break; } - cocos2d::Color3B arg3; + axis::Color3B arg3; ok &= luaval_to_color3b(tolua_S, 5, &arg3, "cc.MotionStreak3D:create"); if (!ok) { break; } std::string_view arg4; ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "cc.MotionStreak3D:create"); if (!ok) { break; } - cocos2d::MotionStreak3D* ret = cocos2d::MotionStreak3D::create(arg0, arg1, arg2, arg3, arg4); - object_to_luaval(tolua_S, "cc.MotionStreak3D",(cocos2d::MotionStreak3D*)ret); + axis::MotionStreak3D* ret = axis::MotionStreak3D::create(arg0, arg1, arg2, arg3, arg4); + object_to_luaval(tolua_S, "cc.MotionStreak3D",(axis::MotionStreak3D*)ret); return 1; } } while (0); @@ -110769,7 +110769,7 @@ int lua_cocos2dx_MotionStreak3D_create(lua_State* tolua_S) int lua_cocos2dx_MotionStreak3D_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::MotionStreak3D* cobj = nullptr; + axis::MotionStreak3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -110786,7 +110786,7 @@ int lua_cocos2dx_MotionStreak3D_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_MotionStreak3D_constructor'", nullptr); return 0; } - cobj = new cocos2d::MotionStreak3D(); + cobj = new axis::MotionStreak3D(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -110831,7 +110831,7 @@ int lua_register_cocos2dx_MotionStreak3D(lua_State* tolua_S) tolua_function(tolua_S,"setStroke",lua_cocos2dx_MotionStreak3D_setStroke); tolua_function(tolua_S,"create", lua_cocos2dx_MotionStreak3D_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::MotionStreak3D).name(); // rtti is literal storage + auto typeName = typeid(axis::MotionStreak3D).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.MotionStreak3D"; g_typeCast[typeName] = "cc.MotionStreak3D"; return 1; @@ -110840,7 +110840,7 @@ int lua_register_cocos2dx_MotionStreak3D(lua_State* tolua_S) int lua_cocos2dx_ComponentLua_getScriptObject(lua_State* tolua_S) { int argc = 0; - cocos2d::ComponentLua* cobj = nullptr; + axis::ComponentLua* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -110852,7 +110852,7 @@ int lua_cocos2dx_ComponentLua_getScriptObject(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ComponentLua",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ComponentLua*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ComponentLua*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -110887,7 +110887,7 @@ int lua_cocos2dx_ComponentLua_getScriptObject(lua_State* tolua_S) int lua_cocos2dx_ComponentLua_update(lua_State* tolua_S) { int argc = 0; - cocos2d::ComponentLua* cobj = nullptr; + axis::ComponentLua* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -110899,7 +110899,7 @@ int lua_cocos2dx_ComponentLua_update(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ComponentLua",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ComponentLua*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ComponentLua*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -110958,8 +110958,8 @@ int lua_cocos2dx_ComponentLua_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ComponentLua_create'", nullptr); return 0; } - cocos2d::ComponentLua* ret = cocos2d::ComponentLua::create(arg0); - object_to_luaval(tolua_S, "cc.ComponentLua",(cocos2d::ComponentLua*)ret); + axis::ComponentLua* ret = axis::ComponentLua::create(arg0); + object_to_luaval(tolua_S, "cc.ComponentLua",(axis::ComponentLua*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ComponentLua:create",argc, 1); @@ -110973,7 +110973,7 @@ int lua_cocos2dx_ComponentLua_create(lua_State* tolua_S) int lua_cocos2dx_ComponentLua_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ComponentLua* cobj = nullptr; + axis::ComponentLua* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -110993,7 +110993,7 @@ int lua_cocos2dx_ComponentLua_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ComponentLua_constructor'", nullptr); return 0; } - cobj = new cocos2d::ComponentLua(arg0); + cobj = new axis::ComponentLua(arg0); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -111027,7 +111027,7 @@ int lua_register_cocos2dx_ComponentLua(lua_State* tolua_S) tolua_function(tolua_S,"update",lua_cocos2dx_ComponentLua_update); tolua_function(tolua_S,"create", lua_cocos2dx_ComponentLua_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ComponentLua).name(); // rtti is literal storage + auto typeName = typeid(axis::ComponentLua).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.ComponentLua"; g_typeCast[typeName] = "cc.ComponentLua"; return 1; diff --git a/extensions/scripting/lua-bindings/auto/lua_cocos2dx_backend_auto.cpp b/extensions/scripting/lua-bindings/auto/lua_cocos2dx_backend_auto.cpp index c7eb8b5166..5ff5a24700 100644 --- a/extensions/scripting/lua-bindings/auto/lua_cocos2dx_backend_auto.cpp +++ b/extensions/scripting/lua-bindings/auto/lua_cocos2dx_backend_auto.cpp @@ -17,7 +17,7 @@ int lua_register_cocos2dx_backend_BufferUsage(lua_State* tolua_S) tolua_constant(tolua_S, "DYNAMIC", 1); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::backend::BufferUsage).name(); // rtti is literal storage + auto typeName = typeid(axis::backend::BufferUsage).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccb.BufferUsage"; g_typeCast[typeName] = "ccb.BufferUsage"; return 1; @@ -32,7 +32,7 @@ int lua_register_cocos2dx_backend_BufferType(lua_State* tolua_S) tolua_constant(tolua_S, "INDEX", 1); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::backend::BufferType).name(); // rtti is literal storage + auto typeName = typeid(axis::backend::BufferType).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccb.BufferType"; g_typeCast[typeName] = "ccb.BufferType"; return 1; @@ -48,7 +48,7 @@ int lua_register_cocos2dx_backend_ShaderStage(lua_State* tolua_S) tolua_constant(tolua_S, "VERTEX_AND_FRAGMENT", 2); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::backend::ShaderStage).name(); // rtti is literal storage + auto typeName = typeid(axis::backend::ShaderStage).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccb.ShaderStage"; g_typeCast[typeName] = "ccb.ShaderStage"; return 1; @@ -72,7 +72,7 @@ int lua_register_cocos2dx_backend_VertexFormat(lua_State* tolua_S) tolua_constant(tolua_S, "UBYTE4", 10); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::backend::VertexFormat).name(); // rtti is literal storage + auto typeName = typeid(axis::backend::VertexFormat).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccb.VertexFormat"; g_typeCast[typeName] = "ccb.VertexFormat"; return 1; @@ -117,7 +117,7 @@ int lua_register_cocos2dx_backend_PixelFormat(lua_State* tolua_S) tolua_constant(tolua_S, "NONE", 65535); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::backend::PixelFormat).name(); // rtti is literal storage + auto typeName = typeid(axis::backend::PixelFormat).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccb.PixelFormat"; g_typeCast[typeName] = "ccb.PixelFormat"; return 1; @@ -133,7 +133,7 @@ int lua_register_cocos2dx_backend_TextureUsage(lua_State* tolua_S) tolua_constant(tolua_S, "RENDER_TARGET", 2); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::backend::TextureUsage).name(); // rtti is literal storage + auto typeName = typeid(axis::backend::TextureUsage).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccb.TextureUsage"; g_typeCast[typeName] = "ccb.TextureUsage"; return 1; @@ -148,7 +148,7 @@ int lua_register_cocos2dx_backend_IndexFormat(lua_State* tolua_S) tolua_constant(tolua_S, "U_INT", 2); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::backend::IndexFormat).name(); // rtti is literal storage + auto typeName = typeid(axis::backend::IndexFormat).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccb.IndexFormat"; g_typeCast[typeName] = "ccb.IndexFormat"; return 1; @@ -163,7 +163,7 @@ int lua_register_cocos2dx_backend_VertexStepMode(lua_State* tolua_S) tolua_constant(tolua_S, "INSTANCE", 1); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::backend::VertexStepMode).name(); // rtti is literal storage + auto typeName = typeid(axis::backend::VertexStepMode).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccb.VertexStepMode"; g_typeCast[typeName] = "ccb.VertexStepMode"; return 1; @@ -181,7 +181,7 @@ int lua_register_cocos2dx_backend_PrimitiveType(lua_State* tolua_S) tolua_constant(tolua_S, "TRIANGLE_STRIP", 4); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::backend::PrimitiveType).name(); // rtti is literal storage + auto typeName = typeid(axis::backend::PrimitiveType).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccb.PrimitiveType"; g_typeCast[typeName] = "ccb.PrimitiveType"; return 1; @@ -196,7 +196,7 @@ int lua_register_cocos2dx_backend_TextureType(lua_State* tolua_S) tolua_constant(tolua_S, "TEXTURE_CUBE", 1); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::backend::TextureType).name(); // rtti is literal storage + auto typeName = typeid(axis::backend::TextureType).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccb.TextureType"; g_typeCast[typeName] = "ccb.TextureType"; return 1; @@ -213,7 +213,7 @@ int lua_register_cocos2dx_backend_SamplerAddressMode(lua_State* tolua_S) tolua_constant(tolua_S, "DONT_CARE", 3); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::backend::SamplerAddressMode).name(); // rtti is literal storage + auto typeName = typeid(axis::backend::SamplerAddressMode).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccb.SamplerAddressMode"; g_typeCast[typeName] = "ccb.SamplerAddressMode"; return 1; @@ -233,7 +233,7 @@ int lua_register_cocos2dx_backend_SamplerFilter(lua_State* tolua_S) tolua_constant(tolua_S, "DONT_CARE", 6); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::backend::SamplerFilter).name(); // rtti is literal storage + auto typeName = typeid(axis::backend::SamplerFilter).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccb.SamplerFilter"; g_typeCast[typeName] = "ccb.SamplerFilter"; return 1; @@ -252,7 +252,7 @@ int lua_register_cocos2dx_backend_StencilOperation(lua_State* tolua_S) tolua_constant(tolua_S, "DECREMENT_WRAP", 5); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::backend::StencilOperation).name(); // rtti is literal storage + auto typeName = typeid(axis::backend::StencilOperation).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccb.StencilOperation"; g_typeCast[typeName] = "ccb.StencilOperation"; return 1; @@ -273,7 +273,7 @@ int lua_register_cocos2dx_backend_CompareFunction(lua_State* tolua_S) tolua_constant(tolua_S, "ALWAYS", 7); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::backend::CompareFunction).name(); // rtti is literal storage + auto typeName = typeid(axis::backend::CompareFunction).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccb.CompareFunction"; g_typeCast[typeName] = "ccb.CompareFunction"; return 1; @@ -289,7 +289,7 @@ int lua_register_cocos2dx_backend_BlendOperation(lua_State* tolua_S) tolua_constant(tolua_S, "RESERVE_SUBTRACT", 2); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::backend::BlendOperation).name(); // rtti is literal storage + auto typeName = typeid(axis::backend::BlendOperation).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccb.BlendOperation"; g_typeCast[typeName] = "ccb.BlendOperation"; return 1; @@ -316,7 +316,7 @@ int lua_register_cocos2dx_backend_BlendFactor(lua_State* tolua_S) tolua_constant(tolua_S, "BLEND_CLOLOR", 13); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::backend::BlendFactor).name(); // rtti is literal storage + auto typeName = typeid(axis::backend::BlendFactor).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccb.BlendFactor"; g_typeCast[typeName] = "ccb.BlendFactor"; return 1; @@ -339,7 +339,7 @@ int lua_register_cocos2dx_backend_ColorWriteMask(lua_State* tolua_S) tolua_constant(tolua_S, "ALL", 15); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::backend::ColorWriteMask).name(); // rtti is literal storage + auto typeName = typeid(axis::backend::ColorWriteMask).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccb.ColorWriteMask"; g_typeCast[typeName] = "ccb.ColorWriteMask"; return 1; @@ -355,7 +355,7 @@ int lua_register_cocos2dx_backend_CullMode(lua_State* tolua_S) tolua_constant(tolua_S, "FRONT", 2); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::backend::CullMode).name(); // rtti is literal storage + auto typeName = typeid(axis::backend::CullMode).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccb.CullMode"; g_typeCast[typeName] = "ccb.CullMode"; return 1; @@ -370,7 +370,7 @@ int lua_register_cocos2dx_backend_Winding(lua_State* tolua_S) tolua_constant(tolua_S, "COUNTER_CLOCK_WISE", 1); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::backend::Winding).name(); // rtti is literal storage + auto typeName = typeid(axis::backend::Winding).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccb.Winding"; g_typeCast[typeName] = "ccb.Winding"; return 1; @@ -389,7 +389,7 @@ int lua_register_cocos2dx_backend_TextureCubeFace(lua_State* tolua_S) tolua_constant(tolua_S, "NEGATIVE_Z", 5); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::backend::TextureCubeFace).name(); // rtti is literal storage + auto typeName = typeid(axis::backend::TextureCubeFace).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccb.TextureCubeFace"; g_typeCast[typeName] = "ccb.TextureCubeFace"; return 1; @@ -398,7 +398,7 @@ int lua_register_cocos2dx_backend_TextureCubeFace(lua_State* tolua_S) int lua_cocos2dx_backend_Program_getMaxVertexLocation(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::Program* cobj = nullptr; + axis::backend::Program* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -410,7 +410,7 @@ int lua_cocos2dx_backend_Program_getMaxVertexLocation(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccb.Program",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::Program*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::Program*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -445,7 +445,7 @@ int lua_cocos2dx_backend_Program_getMaxVertexLocation(lua_State* tolua_S) int lua_cocos2dx_backend_Program_getMaxFragmentLocation(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::Program* cobj = nullptr; + axis::backend::Program* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -457,7 +457,7 @@ int lua_cocos2dx_backend_Program_getMaxFragmentLocation(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccb.Program",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::Program*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::Program*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -492,7 +492,7 @@ int lua_cocos2dx_backend_Program_getMaxFragmentLocation(lua_State* tolua_S) int lua_cocos2dx_backend_Program_setProgramType(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::Program* cobj = nullptr; + axis::backend::Program* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -504,7 +504,7 @@ int lua_cocos2dx_backend_Program_setProgramType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccb.Program",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::Program*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::Program*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -542,7 +542,7 @@ int lua_cocos2dx_backend_Program_setProgramType(lua_State* tolua_S) int lua_cocos2dx_backend_Program_getFragmentShader(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::Program* cobj = nullptr; + axis::backend::Program* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -554,7 +554,7 @@ int lua_cocos2dx_backend_Program_getFragmentShader(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccb.Program",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::Program*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::Program*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -589,7 +589,7 @@ int lua_cocos2dx_backend_Program_getFragmentShader(lua_State* tolua_S) int lua_cocos2dx_backend_Program_getUniformBufferSize(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::Program* cobj = nullptr; + axis::backend::Program* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -601,7 +601,7 @@ int lua_cocos2dx_backend_Program_getUniformBufferSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccb.Program",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::Program*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::Program*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -614,7 +614,7 @@ int lua_cocos2dx_backend_Program_getUniformBufferSize(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::backend::ShaderStage arg0; + axis::backend::ShaderStage arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccb.Program:getUniformBufferSize"); if(!ok) @@ -639,7 +639,7 @@ int lua_cocos2dx_backend_Program_getUniformBufferSize(lua_State* tolua_S) int lua_cocos2dx_backend_Program_getUniformLocation(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::Program* cobj = nullptr; + axis::backend::Program* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -648,7 +648,7 @@ int lua_cocos2dx_backend_Program_getUniformLocation(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccb.Program",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::Program*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::Program*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -659,11 +659,11 @@ int lua_cocos2dx_backend_Program_getUniformLocation(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { - cocos2d::backend::Uniform arg0; + axis::backend::Uniform arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccb.Program:getUniformLocation"); if (!ok) { break; } - cocos2d::backend::UniformLocation ret = cobj->getUniformLocation(arg0); + axis::backend::UniformLocation ret = cobj->getUniformLocation(arg0); uniformLocation_to_luaval(tolua_S, ret); return 1; } @@ -675,7 +675,7 @@ int lua_cocos2dx_backend_Program_getUniformLocation(lua_State* tolua_S) ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccb.Program:getUniformLocation"); if (!ok) { break; } - cocos2d::backend::UniformLocation ret = cobj->getUniformLocation(arg0); + axis::backend::UniformLocation ret = cobj->getUniformLocation(arg0); uniformLocation_to_luaval(tolua_S, ret); return 1; } @@ -694,7 +694,7 @@ int lua_cocos2dx_backend_Program_getUniformLocation(lua_State* tolua_S) int lua_cocos2dx_backend_Program_getProgramType(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::Program* cobj = nullptr; + axis::backend::Program* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -706,7 +706,7 @@ int lua_cocos2dx_backend_Program_getProgramType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccb.Program",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::Program*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::Program*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -741,7 +741,7 @@ int lua_cocos2dx_backend_Program_getProgramType(lua_State* tolua_S) int lua_cocos2dx_backend_Program_getActiveAttributes(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::Program* cobj = nullptr; + axis::backend::Program* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -753,7 +753,7 @@ int lua_cocos2dx_backend_Program_getActiveAttributes(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccb.Program",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::Program*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::Program*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -771,7 +771,7 @@ int lua_cocos2dx_backend_Program_getActiveAttributes(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_backend_Program_getActiveAttributes'", nullptr); return 0; } - tsl::robin_map ret = cobj->getActiveAttributes(); + tsl::robin_map ret = cobj->getActiveAttributes(); program_activeattrs_to_luaval(tolua_S, ret); return 1; } @@ -788,7 +788,7 @@ int lua_cocos2dx_backend_Program_getActiveAttributes(lua_State* tolua_S) int lua_cocos2dx_backend_Program_getAttributeLocation(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::Program* cobj = nullptr; + axis::backend::Program* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -797,7 +797,7 @@ int lua_cocos2dx_backend_Program_getAttributeLocation(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccb.Program",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::Program*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::Program*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -808,7 +808,7 @@ int lua_cocos2dx_backend_Program_getAttributeLocation(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { - cocos2d::backend::Attribute arg0; + axis::backend::Attribute arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccb.Program:getAttributeLocation"); if (!ok) { break; } @@ -843,7 +843,7 @@ int lua_cocos2dx_backend_Program_getAttributeLocation(lua_State* tolua_S) int lua_cocos2dx_backend_Program_getVertexShader(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::Program* cobj = nullptr; + axis::backend::Program* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -855,7 +855,7 @@ int lua_cocos2dx_backend_Program_getVertexShader(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccb.Program",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::Program*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::Program*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -911,8 +911,8 @@ int lua_cocos2dx_backend_Program_getBuiltinProgram(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_backend_Program_getBuiltinProgram'", nullptr); return 0; } - cocos2d::backend::Program* ret = cocos2d::backend::Program::getBuiltinProgram(arg0); - object_to_luaval(tolua_S, "ccb.Program",(cocos2d::backend::Program*)ret); + axis::backend::Program* ret = axis::backend::Program::getBuiltinProgram(arg0); + object_to_luaval(tolua_S, "ccb.Program",(axis::backend::Program*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccb.Program:getBuiltinProgram",argc, 1); @@ -947,7 +947,7 @@ int lua_register_cocos2dx_backend_Program(lua_State* tolua_S) tolua_function(tolua_S,"getVertexShader",lua_cocos2dx_backend_Program_getVertexShader); tolua_function(tolua_S,"getBuiltinProgram", lua_cocos2dx_backend_Program_getBuiltinProgram); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::backend::Program).name(); // rtti is literal storage + auto typeName = typeid(axis::backend::Program).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccb.Program"; g_typeCast[typeName] = "ccb.Program"; return 1; @@ -956,7 +956,7 @@ int lua_register_cocos2dx_backend_Program(lua_State* tolua_S) int lua_cocos2dx_backend_VertexLayout_getVertexStepMode(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::VertexLayout* cobj = nullptr; + axis::backend::VertexLayout* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -968,7 +968,7 @@ int lua_cocos2dx_backend_VertexLayout_getVertexStepMode(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccb.VertexLayout",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::VertexLayout*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::VertexLayout*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1003,7 +1003,7 @@ int lua_cocos2dx_backend_VertexLayout_getVertexStepMode(lua_State* tolua_S) int lua_cocos2dx_backend_VertexLayout_isValid(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::VertexLayout* cobj = nullptr; + axis::backend::VertexLayout* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1015,7 +1015,7 @@ int lua_cocos2dx_backend_VertexLayout_isValid(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccb.VertexLayout",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::VertexLayout*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::VertexLayout*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1050,7 +1050,7 @@ int lua_cocos2dx_backend_VertexLayout_isValid(lua_State* tolua_S) int lua_cocos2dx_backend_VertexLayout_setLayout(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::VertexLayout* cobj = nullptr; + axis::backend::VertexLayout* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1062,7 +1062,7 @@ int lua_cocos2dx_backend_VertexLayout_setLayout(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccb.VertexLayout",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::VertexLayout*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::VertexLayout*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1100,7 +1100,7 @@ int lua_cocos2dx_backend_VertexLayout_setLayout(lua_State* tolua_S) int lua_cocos2dx_backend_VertexLayout_setAttribute(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::VertexLayout* cobj = nullptr; + axis::backend::VertexLayout* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1112,7 +1112,7 @@ int lua_cocos2dx_backend_VertexLayout_setAttribute(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccb.VertexLayout",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::VertexLayout*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::VertexLayout*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1127,7 +1127,7 @@ int lua_cocos2dx_backend_VertexLayout_setAttribute(lua_State* tolua_S) { std::string_view arg0; unsigned int arg1; - cocos2d::backend::VertexFormat arg2; + axis::backend::VertexFormat arg2; unsigned int arg3; bool arg4; @@ -1162,7 +1162,7 @@ int lua_cocos2dx_backend_VertexLayout_setAttribute(lua_State* tolua_S) int lua_cocos2dx_backend_VertexLayout_getStride(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::VertexLayout* cobj = nullptr; + axis::backend::VertexLayout* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1174,7 +1174,7 @@ int lua_cocos2dx_backend_VertexLayout_getStride(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccb.VertexLayout",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::VertexLayout*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::VertexLayout*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1209,7 +1209,7 @@ int lua_cocos2dx_backend_VertexLayout_getStride(lua_State* tolua_S) int lua_cocos2dx_backend_VertexLayout_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::VertexLayout* cobj = nullptr; + axis::backend::VertexLayout* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1226,7 +1226,7 @@ int lua_cocos2dx_backend_VertexLayout_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_backend_VertexLayout_constructor'", nullptr); return 0; } - cobj = new cocos2d::backend::VertexLayout(); + cobj = new axis::backend::VertexLayout(); tolua_pushusertype(tolua_S,(void*)cobj,"ccb.VertexLayout"); tolua_register_gc(tolua_S,lua_gettop(tolua_S)); return 1; @@ -1260,7 +1260,7 @@ int lua_register_cocos2dx_backend_VertexLayout(lua_State* tolua_S) tolua_function(tolua_S,"setAttribute",lua_cocos2dx_backend_VertexLayout_setAttribute); tolua_function(tolua_S,"getStride",lua_cocos2dx_backend_VertexLayout_getStride); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::backend::VertexLayout).name(); // rtti is literal storage + auto typeName = typeid(axis::backend::VertexLayout).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccb.VertexLayout"; g_typeCast[typeName] = "ccb.VertexLayout"; return 1; @@ -1269,7 +1269,7 @@ int lua_register_cocos2dx_backend_VertexLayout(lua_State* tolua_S) int lua_cocos2dx_backend_ProgramState_setTexture(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::ProgramState* cobj = nullptr; + axis::backend::ProgramState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -1278,7 +1278,7 @@ int lua_cocos2dx_backend_ProgramState_setTexture(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccb.ProgramState",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::ProgramState*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::ProgramState*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -1289,7 +1289,7 @@ int lua_cocos2dx_backend_ProgramState_setTexture(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 3) { - cocos2d::backend::UniformLocation arg0; + axis::backend::UniformLocation arg0; ok &= luaval_to_uniformLocation(tolua_S, 2, arg0, "ccb.ProgramState:setTexture"); if (!ok) { break; } @@ -1297,8 +1297,8 @@ int lua_cocos2dx_backend_ProgramState_setTexture(lua_State* tolua_S) ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ccb.ProgramState:setTexture"); if (!ok) { break; } - cocos2d::backend::TextureBackend* arg2; - ok &= luaval_to_object(tolua_S, 4, "ccb.TextureBackend",&arg2, "ccb.ProgramState:setTexture"); + axis::backend::TextureBackend* arg2; + ok &= luaval_to_object(tolua_S, 4, "ccb.TextureBackend",&arg2, "ccb.ProgramState:setTexture"); if (!ok) { break; } cobj->setTexture(arg0, arg1, arg2); @@ -1309,8 +1309,8 @@ int lua_cocos2dx_backend_ProgramState_setTexture(lua_State* tolua_S) ok = true; do{ if (argc == 1) { - cocos2d::backend::TextureBackend* arg0; - ok &= luaval_to_object(tolua_S, 2, "ccb.TextureBackend",&arg0, "ccb.ProgramState:setTexture"); + axis::backend::TextureBackend* arg0; + ok &= luaval_to_object(tolua_S, 2, "ccb.TextureBackend",&arg0, "ccb.ProgramState:setTexture"); if (!ok) { break; } cobj->setTexture(arg0); @@ -1321,7 +1321,7 @@ int lua_cocos2dx_backend_ProgramState_setTexture(lua_State* tolua_S) ok = true; do{ if (argc == 4) { - cocos2d::backend::UniformLocation arg0; + axis::backend::UniformLocation arg0; ok &= luaval_to_uniformLocation(tolua_S, 2, arg0, "ccb.ProgramState:setTexture"); if (!ok) { break; } @@ -1333,8 +1333,8 @@ int lua_cocos2dx_backend_ProgramState_setTexture(lua_State* tolua_S) ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ccb.ProgramState:setTexture"); if (!ok) { break; } - cocos2d::backend::TextureBackend* arg3; - ok &= luaval_to_object(tolua_S, 5, "ccb.TextureBackend",&arg3, "ccb.ProgramState:setTexture"); + axis::backend::TextureBackend* arg3; + ok &= luaval_to_object(tolua_S, 5, "ccb.TextureBackend",&arg3, "ccb.ProgramState:setTexture"); if (!ok) { break; } cobj->setTexture(arg0, arg1, arg2, arg3); @@ -1356,7 +1356,7 @@ int lua_cocos2dx_backend_ProgramState_setTexture(lua_State* tolua_S) int lua_cocos2dx_backend_ProgramState_updateUniformID(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::ProgramState* cobj = nullptr; + axis::backend::ProgramState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1368,7 +1368,7 @@ int lua_cocos2dx_backend_ProgramState_updateUniformID(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccb.ProgramState",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::ProgramState*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::ProgramState*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1417,7 +1417,7 @@ int lua_cocos2dx_backend_ProgramState_updateUniformID(lua_State* tolua_S) int lua_cocos2dx_backend_ProgramState_clone(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::ProgramState* cobj = nullptr; + axis::backend::ProgramState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1429,7 +1429,7 @@ int lua_cocos2dx_backend_ProgramState_clone(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccb.ProgramState",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::ProgramState*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::ProgramState*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1447,8 +1447,8 @@ int lua_cocos2dx_backend_ProgramState_clone(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_backend_ProgramState_clone'", nullptr); return 0; } - cocos2d::backend::ProgramState* ret = cobj->clone(); - object_to_luaval(tolua_S, "ccb.ProgramState",(cocos2d::backend::ProgramState*)ret); + axis::backend::ProgramState* ret = cobj->clone(); + object_to_luaval(tolua_S, "ccb.ProgramState",(axis::backend::ProgramState*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccb.ProgramState:clone",argc, 0); @@ -1464,7 +1464,7 @@ int lua_cocos2dx_backend_ProgramState_clone(lua_State* tolua_S) int lua_cocos2dx_backend_ProgramState_setParameterAutoBinding(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::ProgramState* cobj = nullptr; + axis::backend::ProgramState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1476,7 +1476,7 @@ int lua_cocos2dx_backend_ProgramState_setParameterAutoBinding(lua_State* tolua_S if (!tolua_isusertype(tolua_S,1,"ccb.ProgramState",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::ProgramState*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::ProgramState*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1517,7 +1517,7 @@ int lua_cocos2dx_backend_ProgramState_setParameterAutoBinding(lua_State* tolua_S int lua_cocos2dx_backend_ProgramState_getProgram(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::ProgramState* cobj = nullptr; + axis::backend::ProgramState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1529,7 +1529,7 @@ int lua_cocos2dx_backend_ProgramState_getProgram(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccb.ProgramState",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::ProgramState*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::ProgramState*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1547,8 +1547,8 @@ int lua_cocos2dx_backend_ProgramState_getProgram(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_backend_ProgramState_getProgram'", nullptr); return 0; } - cocos2d::backend::Program* ret = cobj->getProgram(); - object_to_luaval(tolua_S, "ccb.Program",(cocos2d::backend::Program*)ret); + axis::backend::Program* ret = cobj->getProgram(); + object_to_luaval(tolua_S, "ccb.Program",(axis::backend::Program*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccb.ProgramState:getProgram",argc, 0); @@ -1564,7 +1564,7 @@ int lua_cocos2dx_backend_ProgramState_getProgram(lua_State* tolua_S) int lua_cocos2dx_backend_ProgramState_getUniformID(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::ProgramState* cobj = nullptr; + axis::backend::ProgramState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1576,7 +1576,7 @@ int lua_cocos2dx_backend_ProgramState_getUniformID(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccb.ProgramState",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::ProgramState*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::ProgramState*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1611,7 +1611,7 @@ int lua_cocos2dx_backend_ProgramState_getUniformID(lua_State* tolua_S) int lua_cocos2dx_backend_ProgramState_getAttributeLocation(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::ProgramState* cobj = nullptr; + axis::backend::ProgramState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -1620,7 +1620,7 @@ int lua_cocos2dx_backend_ProgramState_getAttributeLocation(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccb.ProgramState",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::ProgramState*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::ProgramState*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -1631,7 +1631,7 @@ int lua_cocos2dx_backend_ProgramState_getAttributeLocation(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { - cocos2d::backend::Attribute arg0; + axis::backend::Attribute arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccb.ProgramState:getAttributeLocation"); if (!ok) { break; } @@ -1666,7 +1666,7 @@ int lua_cocos2dx_backend_ProgramState_getAttributeLocation(lua_State* tolua_S) int lua_cocos2dx_backend_ProgramState_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::ProgramState* cobj = nullptr; + axis::backend::ProgramState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1678,15 +1678,15 @@ int lua_cocos2dx_backend_ProgramState_constructor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::backend::Program* arg0; + axis::backend::Program* arg0; - ok &= luaval_to_object(tolua_S, 2, "ccb.Program",&arg0, "ccb.ProgramState:ProgramState"); + ok &= luaval_to_object(tolua_S, 2, "ccb.Program",&arg0, "ccb.ProgramState:ProgramState"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_backend_ProgramState_constructor'", nullptr); return 0; } - cobj = new cocos2d::backend::ProgramState(arg0); + cobj = new axis::backend::ProgramState(arg0); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -1724,7 +1724,7 @@ int lua_register_cocos2dx_backend_ProgramState(lua_State* tolua_S) tolua_function(tolua_S,"getUniformID",lua_cocos2dx_backend_ProgramState_getUniformID); tolua_function(tolua_S,"getAttributeLocation",lua_cocos2dx_backend_ProgramState_getAttributeLocation); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::backend::ProgramState).name(); // rtti is literal storage + auto typeName = typeid(axis::backend::ProgramState).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccb.ProgramState"; g_typeCast[typeName] = "ccb.ProgramState"; return 1; @@ -1733,7 +1733,7 @@ int lua_register_cocos2dx_backend_ProgramState(lua_State* tolua_S) int lua_cocos2dx_backend_TextureBackend_getTextureFormat(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::TextureBackend* cobj = nullptr; + axis::backend::TextureBackend* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1745,7 +1745,7 @@ int lua_cocos2dx_backend_TextureBackend_getTextureFormat(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccb.TextureBackend",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::TextureBackend*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::TextureBackend*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1780,7 +1780,7 @@ int lua_cocos2dx_backend_TextureBackend_getTextureFormat(lua_State* tolua_S) int lua_cocos2dx_backend_TextureBackend_generateMipmaps(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::TextureBackend* cobj = nullptr; + axis::backend::TextureBackend* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1792,7 +1792,7 @@ int lua_cocos2dx_backend_TextureBackend_generateMipmaps(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccb.TextureBackend",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::TextureBackend*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::TextureBackend*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1827,7 +1827,7 @@ int lua_cocos2dx_backend_TextureBackend_generateMipmaps(lua_State* tolua_S) int lua_cocos2dx_backend_TextureBackend_updateSamplerDescriptor(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::TextureBackend* cobj = nullptr; + axis::backend::TextureBackend* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1839,7 +1839,7 @@ int lua_cocos2dx_backend_TextureBackend_updateSamplerDescriptor(lua_State* tolua if (!tolua_isusertype(tolua_S,1,"ccb.TextureBackend",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::TextureBackend*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::TextureBackend*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1852,7 +1852,7 @@ int lua_cocos2dx_backend_TextureBackend_updateSamplerDescriptor(lua_State* tolua argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::backend::SamplerDescriptor arg0; + axis::backend::SamplerDescriptor arg0; ok &= luaval_to_samplerDescriptor(tolua_S, 2, arg0, "ccb.TextureBackend:updateSamplerDescriptor"); if(!ok) @@ -1877,7 +1877,7 @@ int lua_cocos2dx_backend_TextureBackend_updateSamplerDescriptor(lua_State* tolua int lua_cocos2dx_backend_TextureBackend_getHeight(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::TextureBackend* cobj = nullptr; + axis::backend::TextureBackend* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1889,7 +1889,7 @@ int lua_cocos2dx_backend_TextureBackend_getHeight(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccb.TextureBackend",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::TextureBackend*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::TextureBackend*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1924,7 +1924,7 @@ int lua_cocos2dx_backend_TextureBackend_getHeight(lua_State* tolua_S) int lua_cocos2dx_backend_TextureBackend_updateTextureDescriptor(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::TextureBackend* cobj = nullptr; + axis::backend::TextureBackend* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1936,7 +1936,7 @@ int lua_cocos2dx_backend_TextureBackend_updateTextureDescriptor(lua_State* tolua if (!tolua_isusertype(tolua_S,1,"ccb.TextureBackend",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::TextureBackend*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::TextureBackend*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1949,7 +1949,7 @@ int lua_cocos2dx_backend_TextureBackend_updateTextureDescriptor(lua_State* tolua argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::backend::TextureDescriptor arg0; + axis::backend::TextureDescriptor arg0; #pragma warning NO CONVERSION TO NATIVE FOR TextureDescriptor ok = false; @@ -1964,7 +1964,7 @@ int lua_cocos2dx_backend_TextureBackend_updateTextureDescriptor(lua_State* tolua } if (argc == 2) { - cocos2d::backend::TextureDescriptor arg0; + axis::backend::TextureDescriptor arg0; int arg1; #pragma warning NO CONVERSION TO NATIVE FOR TextureDescriptor @@ -1993,7 +1993,7 @@ int lua_cocos2dx_backend_TextureBackend_updateTextureDescriptor(lua_State* tolua int lua_cocos2dx_backend_TextureBackend_getTextureUsage(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::TextureBackend* cobj = nullptr; + axis::backend::TextureBackend* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2005,7 +2005,7 @@ int lua_cocos2dx_backend_TextureBackend_getTextureUsage(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccb.TextureBackend",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::TextureBackend*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::TextureBackend*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2040,7 +2040,7 @@ int lua_cocos2dx_backend_TextureBackend_getTextureUsage(lua_State* tolua_S) int lua_cocos2dx_backend_TextureBackend_getWidth(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::TextureBackend* cobj = nullptr; + axis::backend::TextureBackend* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2052,7 +2052,7 @@ int lua_cocos2dx_backend_TextureBackend_getWidth(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccb.TextureBackend",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::TextureBackend*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::TextureBackend*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2087,7 +2087,7 @@ int lua_cocos2dx_backend_TextureBackend_getWidth(lua_State* tolua_S) int lua_cocos2dx_backend_TextureBackend_hasMipmaps(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::TextureBackend* cobj = nullptr; + axis::backend::TextureBackend* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2099,7 +2099,7 @@ int lua_cocos2dx_backend_TextureBackend_hasMipmaps(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccb.TextureBackend",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::TextureBackend*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::TextureBackend*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2134,7 +2134,7 @@ int lua_cocos2dx_backend_TextureBackend_hasMipmaps(lua_State* tolua_S) int lua_cocos2dx_backend_TextureBackend_getCount(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::TextureBackend* cobj = nullptr; + axis::backend::TextureBackend* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2146,7 +2146,7 @@ int lua_cocos2dx_backend_TextureBackend_getCount(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccb.TextureBackend",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::TextureBackend*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::TextureBackend*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2181,7 +2181,7 @@ int lua_cocos2dx_backend_TextureBackend_getCount(lua_State* tolua_S) int lua_cocos2dx_backend_TextureBackend_getHandler(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::TextureBackend* cobj = nullptr; + axis::backend::TextureBackend* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2193,7 +2193,7 @@ int lua_cocos2dx_backend_TextureBackend_getHandler(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccb.TextureBackend",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::TextureBackend*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::TextureBackend*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2242,7 +2242,7 @@ int lua_cocos2dx_backend_TextureBackend_getHandler(lua_State* tolua_S) int lua_cocos2dx_backend_TextureBackend_getTextureType(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::TextureBackend* cobj = nullptr; + axis::backend::TextureBackend* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2254,7 +2254,7 @@ int lua_cocos2dx_backend_TextureBackend_getTextureType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccb.TextureBackend",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::TextureBackend*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::TextureBackend*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2310,7 +2310,7 @@ int lua_register_cocos2dx_backend_TextureBackend(lua_State* tolua_S) tolua_function(tolua_S,"getHandler",lua_cocos2dx_backend_TextureBackend_getHandler); tolua_function(tolua_S,"getTextureType",lua_cocos2dx_backend_TextureBackend_getTextureType); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::backend::TextureBackend).name(); // rtti is literal storage + auto typeName = typeid(axis::backend::TextureBackend).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccb.TextureBackend"; g_typeCast[typeName] = "ccb.TextureBackend"; return 1; @@ -2319,7 +2319,7 @@ int lua_register_cocos2dx_backend_TextureBackend(lua_State* tolua_S) int lua_cocos2dx_backend_Texture2DBackend_getHeight(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::Texture2DBackend* cobj = nullptr; + axis::backend::Texture2DBackend* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2331,7 +2331,7 @@ int lua_cocos2dx_backend_Texture2DBackend_getHeight(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccb.Texture2DBackend",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::Texture2DBackend*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::Texture2DBackend*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2366,7 +2366,7 @@ int lua_cocos2dx_backend_Texture2DBackend_getHeight(lua_State* tolua_S) int lua_cocos2dx_backend_Texture2DBackend_getWidth(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::Texture2DBackend* cobj = nullptr; + axis::backend::Texture2DBackend* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2378,7 +2378,7 @@ int lua_cocos2dx_backend_Texture2DBackend_getWidth(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccb.Texture2DBackend",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::Texture2DBackend*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::Texture2DBackend*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2413,7 +2413,7 @@ int lua_cocos2dx_backend_Texture2DBackend_getWidth(lua_State* tolua_S) int lua_cocos2dx_backend_Texture2DBackend_updateData(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::Texture2DBackend* cobj = nullptr; + axis::backend::Texture2DBackend* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2425,7 +2425,7 @@ int lua_cocos2dx_backend_Texture2DBackend_updateData(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccb.Texture2DBackend",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::Texture2DBackend*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::Texture2DBackend*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2500,7 +2500,7 @@ int lua_cocos2dx_backend_Texture2DBackend_updateData(lua_State* tolua_S) int lua_cocos2dx_backend_Texture2DBackend_updateCompressedData(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::Texture2DBackend* cobj = nullptr; + axis::backend::Texture2DBackend* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2512,7 +2512,7 @@ int lua_cocos2dx_backend_Texture2DBackend_updateCompressedData(lua_State* tolua_ if (!tolua_isusertype(tolua_S,1,"ccb.Texture2DBackend",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::Texture2DBackend*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::Texture2DBackend*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2593,7 +2593,7 @@ int lua_cocos2dx_backend_Texture2DBackend_updateCompressedData(lua_State* tolua_ int lua_cocos2dx_backend_Texture2DBackend_updateSubData(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::Texture2DBackend* cobj = nullptr; + axis::backend::Texture2DBackend* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2605,7 +2605,7 @@ int lua_cocos2dx_backend_Texture2DBackend_updateSubData(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccb.Texture2DBackend",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::Texture2DBackend*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::Texture2DBackend*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2692,7 +2692,7 @@ int lua_cocos2dx_backend_Texture2DBackend_updateSubData(lua_State* tolua_S) int lua_cocos2dx_backend_Texture2DBackend_updateCompressedSubData(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::Texture2DBackend* cobj = nullptr; + axis::backend::Texture2DBackend* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2704,7 +2704,7 @@ int lua_cocos2dx_backend_Texture2DBackend_updateCompressedSubData(lua_State* tol if (!tolua_isusertype(tolua_S,1,"ccb.Texture2DBackend",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::Texture2DBackend*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::Texture2DBackend*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2813,7 +2813,7 @@ int lua_register_cocos2dx_backend_Texture2DBackend(lua_State* tolua_S) tolua_function(tolua_S,"updateSubData",lua_cocos2dx_backend_Texture2DBackend_updateSubData); tolua_function(tolua_S,"updateCompressedSubData",lua_cocos2dx_backend_Texture2DBackend_updateCompressedSubData); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::backend::Texture2DBackend).name(); // rtti is literal storage + auto typeName = typeid(axis::backend::Texture2DBackend).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccb.Texture2DBackend"; g_typeCast[typeName] = "ccb.Texture2DBackend"; return 1; @@ -2822,7 +2822,7 @@ int lua_register_cocos2dx_backend_Texture2DBackend(lua_State* tolua_S) int lua_cocos2dx_backend_TextureCubemapBackend_updateFaceData(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::TextureCubemapBackend* cobj = nullptr; + axis::backend::TextureCubemapBackend* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2834,7 +2834,7 @@ int lua_cocos2dx_backend_TextureCubemapBackend_updateFaceData(lua_State* tolua_S if (!tolua_isusertype(tolua_S,1,"ccb.TextureCubemapBackend",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::TextureCubemapBackend*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::TextureCubemapBackend*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2847,7 +2847,7 @@ int lua_cocos2dx_backend_TextureCubemapBackend_updateFaceData(lua_State* tolua_S argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::backend::TextureCubeFace arg0; + axis::backend::TextureCubeFace arg0; void* arg1; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccb.TextureCubemapBackend:updateFaceData"); @@ -2865,7 +2865,7 @@ int lua_cocos2dx_backend_TextureCubemapBackend_updateFaceData(lua_State* tolua_S } if (argc == 3) { - cocos2d::backend::TextureCubeFace arg0; + axis::backend::TextureCubeFace arg0; void* arg1; int arg2; @@ -2908,7 +2908,7 @@ int lua_register_cocos2dx_backend_TextureCubemapBackend(lua_State* tolua_S) tolua_beginmodule(tolua_S,"TextureCubemapBackend"); tolua_function(tolua_S,"updateFaceData",lua_cocos2dx_backend_TextureCubemapBackend_updateFaceData); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::backend::TextureCubemapBackend).name(); // rtti is literal storage + auto typeName = typeid(axis::backend::TextureCubemapBackend).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccb.TextureCubemapBackend"; g_typeCast[typeName] = "ccb.TextureCubemapBackend"; return 1; @@ -2917,7 +2917,7 @@ int lua_register_cocos2dx_backend_TextureCubemapBackend(lua_State* tolua_S) int lua_cocos2dx_backend_Device_newDefaultRenderTarget(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::Device* cobj = nullptr; + axis::backend::Device* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2929,7 +2929,7 @@ int lua_cocos2dx_backend_Device_newDefaultRenderTarget(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccb.Device",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::Device*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::Device*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2942,7 +2942,7 @@ int lua_cocos2dx_backend_Device_newDefaultRenderTarget(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::backend::TargetBufferFlags arg0; + axis::backend::TargetBufferFlags arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccb.Device:newDefaultRenderTarget"); if(!ok) @@ -2950,8 +2950,8 @@ int lua_cocos2dx_backend_Device_newDefaultRenderTarget(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_backend_Device_newDefaultRenderTarget'", nullptr); return 0; } - cocos2d::backend::RenderTarget* ret = cobj->newDefaultRenderTarget(arg0); - object_to_luaval(tolua_S, "ccb.RenderTarget",(cocos2d::backend::RenderTarget*)ret); + axis::backend::RenderTarget* ret = cobj->newDefaultRenderTarget(arg0); + object_to_luaval(tolua_S, "ccb.RenderTarget",(axis::backend::RenderTarget*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccb.Device:newDefaultRenderTarget",argc, 1); @@ -2967,7 +2967,7 @@ int lua_cocos2dx_backend_Device_newDefaultRenderTarget(lua_State* tolua_S) int lua_cocos2dx_backend_Device_newProgram(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::Device* cobj = nullptr; + axis::backend::Device* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2979,7 +2979,7 @@ int lua_cocos2dx_backend_Device_newProgram(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccb.Device",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::Device*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::Device*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3003,8 +3003,8 @@ int lua_cocos2dx_backend_Device_newProgram(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_backend_Device_newProgram'", nullptr); return 0; } - cocos2d::backend::Program* ret = cobj->newProgram(arg0, arg1); - object_to_luaval(tolua_S, "ccb.Program",(cocos2d::backend::Program*)ret); + axis::backend::Program* ret = cobj->newProgram(arg0, arg1); + object_to_luaval(tolua_S, "ccb.Program",(axis::backend::Program*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccb.Device:newProgram",argc, 2); @@ -3020,7 +3020,7 @@ int lua_cocos2dx_backend_Device_newProgram(lua_State* tolua_S) int lua_cocos2dx_backend_Device_newRenderTarget(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::Device* cobj = nullptr; + axis::backend::Device* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3032,7 +3032,7 @@ int lua_cocos2dx_backend_Device_newRenderTarget(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccb.Device",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::Device*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::Device*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3045,7 +3045,7 @@ int lua_cocos2dx_backend_Device_newRenderTarget(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::backend::TargetBufferFlags arg0; + axis::backend::TargetBufferFlags arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccb.Device:newRenderTarget"); if(!ok) @@ -3053,68 +3053,68 @@ int lua_cocos2dx_backend_Device_newRenderTarget(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_backend_Device_newRenderTarget'", nullptr); return 0; } - cocos2d::backend::RenderTarget* ret = cobj->newRenderTarget(arg0); - object_to_luaval(tolua_S, "ccb.RenderTarget",(cocos2d::backend::RenderTarget*)ret); + axis::backend::RenderTarget* ret = cobj->newRenderTarget(arg0); + object_to_luaval(tolua_S, "ccb.RenderTarget",(axis::backend::RenderTarget*)ret); return 1; } if (argc == 2) { - cocos2d::backend::TargetBufferFlags arg0; - cocos2d::backend::TextureBackend* arg1; + axis::backend::TargetBufferFlags arg0; + axis::backend::TextureBackend* arg1; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccb.Device:newRenderTarget"); - ok &= luaval_to_object(tolua_S, 3, "ccb.TextureBackend",&arg1, "ccb.Device:newRenderTarget"); + ok &= luaval_to_object(tolua_S, 3, "ccb.TextureBackend",&arg1, "ccb.Device:newRenderTarget"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_backend_Device_newRenderTarget'", nullptr); return 0; } - cocos2d::backend::RenderTarget* ret = cobj->newRenderTarget(arg0, arg1); - object_to_luaval(tolua_S, "ccb.RenderTarget",(cocos2d::backend::RenderTarget*)ret); + axis::backend::RenderTarget* ret = cobj->newRenderTarget(arg0, arg1); + object_to_luaval(tolua_S, "ccb.RenderTarget",(axis::backend::RenderTarget*)ret); return 1; } if (argc == 3) { - cocos2d::backend::TargetBufferFlags arg0; - cocos2d::backend::TextureBackend* arg1; - cocos2d::backend::TextureBackend* arg2; + axis::backend::TargetBufferFlags arg0; + axis::backend::TextureBackend* arg1; + axis::backend::TextureBackend* arg2; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccb.Device:newRenderTarget"); - ok &= luaval_to_object(tolua_S, 3, "ccb.TextureBackend",&arg1, "ccb.Device:newRenderTarget"); + ok &= luaval_to_object(tolua_S, 3, "ccb.TextureBackend",&arg1, "ccb.Device:newRenderTarget"); - ok &= luaval_to_object(tolua_S, 4, "ccb.TextureBackend",&arg2, "ccb.Device:newRenderTarget"); + ok &= luaval_to_object(tolua_S, 4, "ccb.TextureBackend",&arg2, "ccb.Device:newRenderTarget"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_backend_Device_newRenderTarget'", nullptr); return 0; } - cocos2d::backend::RenderTarget* ret = cobj->newRenderTarget(arg0, arg1, arg2); - object_to_luaval(tolua_S, "ccb.RenderTarget",(cocos2d::backend::RenderTarget*)ret); + axis::backend::RenderTarget* ret = cobj->newRenderTarget(arg0, arg1, arg2); + object_to_luaval(tolua_S, "ccb.RenderTarget",(axis::backend::RenderTarget*)ret); return 1; } if (argc == 4) { - cocos2d::backend::TargetBufferFlags arg0; - cocos2d::backend::TextureBackend* arg1; - cocos2d::backend::TextureBackend* arg2; - cocos2d::backend::TextureBackend* arg3; + axis::backend::TargetBufferFlags arg0; + axis::backend::TextureBackend* arg1; + axis::backend::TextureBackend* arg2; + axis::backend::TextureBackend* arg3; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccb.Device:newRenderTarget"); - ok &= luaval_to_object(tolua_S, 3, "ccb.TextureBackend",&arg1, "ccb.Device:newRenderTarget"); + ok &= luaval_to_object(tolua_S, 3, "ccb.TextureBackend",&arg1, "ccb.Device:newRenderTarget"); - ok &= luaval_to_object(tolua_S, 4, "ccb.TextureBackend",&arg2, "ccb.Device:newRenderTarget"); + ok &= luaval_to_object(tolua_S, 4, "ccb.TextureBackend",&arg2, "ccb.Device:newRenderTarget"); - ok &= luaval_to_object(tolua_S, 5, "ccb.TextureBackend",&arg3, "ccb.Device:newRenderTarget"); + ok &= luaval_to_object(tolua_S, 5, "ccb.TextureBackend",&arg3, "ccb.Device:newRenderTarget"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_backend_Device_newRenderTarget'", nullptr); return 0; } - cocos2d::backend::RenderTarget* ret = cobj->newRenderTarget(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "ccb.RenderTarget",(cocos2d::backend::RenderTarget*)ret); + axis::backend::RenderTarget* ret = cobj->newRenderTarget(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "ccb.RenderTarget",(axis::backend::RenderTarget*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccb.Device:newRenderTarget",argc, 1); @@ -3130,7 +3130,7 @@ int lua_cocos2dx_backend_Device_newRenderTarget(lua_State* tolua_S) int lua_cocos2dx_backend_Device_newDepthStencilState(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::Device* cobj = nullptr; + axis::backend::Device* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3142,7 +3142,7 @@ int lua_cocos2dx_backend_Device_newDepthStencilState(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccb.Device",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::Device*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::backend::Device*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3160,8 +3160,8 @@ int lua_cocos2dx_backend_Device_newDepthStencilState(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_backend_Device_newDepthStencilState'", nullptr); return 0; } - cocos2d::backend::DepthStencilState* ret = cobj->newDepthStencilState(); - object_to_luaval(tolua_S, "ccb.DepthStencilState",(cocos2d::backend::DepthStencilState*)ret); + axis::backend::DepthStencilState* ret = cobj->newDepthStencilState(); + object_to_luaval(tolua_S, "ccb.DepthStencilState",(axis::backend::DepthStencilState*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccb.Device:newDepthStencilState",argc, 0); @@ -3196,8 +3196,8 @@ int lua_cocos2dx_backend_Device_getInstance(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_backend_Device_getInstance'", nullptr); return 0; } - cocos2d::backend::Device* ret = cocos2d::backend::Device::getInstance(); - object_to_luaval(tolua_S, "ccb.Device",(cocos2d::backend::Device*)ret); + axis::backend::Device* ret = axis::backend::Device::getInstance(); + object_to_luaval(tolua_S, "ccb.Device",(axis::backend::Device*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccb.Device:getInstance",argc, 0); @@ -3226,7 +3226,7 @@ int lua_register_cocos2dx_backend_Device(lua_State* tolua_S) tolua_function(tolua_S,"newDepthStencilState",lua_cocos2dx_backend_Device_newDepthStencilState); tolua_function(tolua_S,"getInstance", lua_cocos2dx_backend_Device_getInstance); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::backend::Device).name(); // rtti is literal storage + auto typeName = typeid(axis::backend::Device).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccb.Device"; g_typeCast[typeName] = "ccb.Device"; return 1; diff --git a/extensions/scripting/lua-bindings/auto/lua_cocos2dx_controller_auto.cpp b/extensions/scripting/lua-bindings/auto/lua_cocos2dx_controller_auto.cpp index 589c61ad7f..87fc32e0ba 100644 --- a/extensions/scripting/lua-bindings/auto/lua_cocos2dx_controller_auto.cpp +++ b/extensions/scripting/lua-bindings/auto/lua_cocos2dx_controller_auto.cpp @@ -7,7 +7,7 @@ int lua_cocos2dx_controller_Controller_receiveExternalKeyEvent(lua_State* tolua_S) { int argc = 0; - cocos2d::Controller* cobj = nullptr; + axis::Controller* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -19,7 +19,7 @@ int lua_cocos2dx_controller_Controller_receiveExternalKeyEvent(lua_State* tolua_ if (!tolua_isusertype(tolua_S,1,"cc.Controller",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Controller*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Controller*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -60,7 +60,7 @@ int lua_cocos2dx_controller_Controller_receiveExternalKeyEvent(lua_State* tolua_ int lua_cocos2dx_controller_Controller_getDeviceName(lua_State* tolua_S) { int argc = 0; - cocos2d::Controller* cobj = nullptr; + axis::Controller* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -72,7 +72,7 @@ int lua_cocos2dx_controller_Controller_getDeviceName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Controller",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Controller*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Controller*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -107,7 +107,7 @@ int lua_cocos2dx_controller_Controller_getDeviceName(lua_State* tolua_S) int lua_cocos2dx_controller_Controller_isConnected(lua_State* tolua_S) { int argc = 0; - cocos2d::Controller* cobj = nullptr; + axis::Controller* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -119,7 +119,7 @@ int lua_cocos2dx_controller_Controller_isConnected(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Controller",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Controller*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Controller*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -154,7 +154,7 @@ int lua_cocos2dx_controller_Controller_isConnected(lua_State* tolua_S) int lua_cocos2dx_controller_Controller_getDeviceId(lua_State* tolua_S) { int argc = 0; - cocos2d::Controller* cobj = nullptr; + axis::Controller* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -166,7 +166,7 @@ int lua_cocos2dx_controller_Controller_getDeviceId(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Controller",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Controller*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Controller*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -201,7 +201,7 @@ int lua_cocos2dx_controller_Controller_getDeviceId(lua_State* tolua_S) int lua_cocos2dx_controller_Controller_setTag(lua_State* tolua_S) { int argc = 0; - cocos2d::Controller* cobj = nullptr; + axis::Controller* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -213,7 +213,7 @@ int lua_cocos2dx_controller_Controller_setTag(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Controller",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Controller*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Controller*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -251,7 +251,7 @@ int lua_cocos2dx_controller_Controller_setTag(lua_State* tolua_S) int lua_cocos2dx_controller_Controller_getTag(lua_State* tolua_S) { int argc = 0; - cocos2d::Controller* cobj = nullptr; + axis::Controller* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -263,7 +263,7 @@ int lua_cocos2dx_controller_Controller_getTag(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Controller",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Controller*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Controller*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -317,7 +317,7 @@ int lua_cocos2dx_controller_Controller_startDiscoveryController(lua_State* tolua tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_controller_Controller_startDiscoveryController'", nullptr); return 0; } - cocos2d::Controller::startDiscoveryController(); + axis::Controller::startDiscoveryController(); lua_settop(tolua_S, 1); return 1; } @@ -351,7 +351,7 @@ int lua_cocos2dx_controller_Controller_stopDiscoveryController(lua_State* tolua_ tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_controller_Controller_stopDiscoveryController'", nullptr); return 0; } - cocos2d::Controller::stopDiscoveryController(); + axis::Controller::stopDiscoveryController(); lua_settop(tolua_S, 1); return 1; } @@ -387,8 +387,8 @@ int lua_cocos2dx_controller_Controller_getControllerByDeviceId(lua_State* tolua_ tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_controller_Controller_getControllerByDeviceId'", nullptr); return 0; } - cocos2d::Controller* ret = cocos2d::Controller::getControllerByDeviceId(arg0); - object_to_luaval(tolua_S, "cc.Controller",(cocos2d::Controller*)ret); + axis::Controller* ret = axis::Controller::getControllerByDeviceId(arg0); + object_to_luaval(tolua_S, "cc.Controller",(axis::Controller*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Controller:getControllerByDeviceId",argc, 1); @@ -423,8 +423,8 @@ int lua_cocos2dx_controller_Controller_getControllerByTag(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_controller_Controller_getControllerByTag'", nullptr); return 0; } - cocos2d::Controller* ret = cocos2d::Controller::getControllerByTag(arg0); - object_to_luaval(tolua_S, "cc.Controller",(cocos2d::Controller*)ret); + axis::Controller* ret = axis::Controller::getControllerByTag(arg0); + object_to_luaval(tolua_S, "cc.Controller",(axis::Controller*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Controller:getControllerByTag",argc, 1); @@ -458,7 +458,7 @@ int lua_register_cocos2dx_controller_Controller(lua_State* tolua_S) tolua_function(tolua_S,"getControllerByDeviceId", lua_cocos2dx_controller_Controller_getControllerByDeviceId); tolua_function(tolua_S,"getControllerByTag", lua_cocos2dx_controller_Controller_getControllerByTag); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Controller).name(); // rtti is literal storage + auto typeName = typeid(axis::Controller).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Controller"; g_typeCast[typeName] = "cc.Controller"; return 1; @@ -467,7 +467,7 @@ int lua_register_cocos2dx_controller_Controller(lua_State* tolua_S) int lua_cocos2dx_controller_EventController_getControllerEventType(lua_State* tolua_S) { int argc = 0; - cocos2d::EventController* cobj = nullptr; + axis::EventController* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -479,7 +479,7 @@ int lua_cocos2dx_controller_EventController_getControllerEventType(lua_State* to if (!tolua_isusertype(tolua_S,1,"cc.EventController",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventController*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventController*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -514,7 +514,7 @@ int lua_cocos2dx_controller_EventController_getControllerEventType(lua_State* to int lua_cocos2dx_controller_EventController_setConnectStatus(lua_State* tolua_S) { int argc = 0; - cocos2d::EventController* cobj = nullptr; + axis::EventController* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -526,7 +526,7 @@ int lua_cocos2dx_controller_EventController_setConnectStatus(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventController",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventController*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventController*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -564,7 +564,7 @@ int lua_cocos2dx_controller_EventController_setConnectStatus(lua_State* tolua_S) int lua_cocos2dx_controller_EventController_isConnected(lua_State* tolua_S) { int argc = 0; - cocos2d::EventController* cobj = nullptr; + axis::EventController* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -576,7 +576,7 @@ int lua_cocos2dx_controller_EventController_isConnected(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventController",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventController*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventController*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -611,7 +611,7 @@ int lua_cocos2dx_controller_EventController_isConnected(lua_State* tolua_S) int lua_cocos2dx_controller_EventController_setKeyCode(lua_State* tolua_S) { int argc = 0; - cocos2d::EventController* cobj = nullptr; + axis::EventController* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -623,7 +623,7 @@ int lua_cocos2dx_controller_EventController_setKeyCode(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventController",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventController*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventController*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -661,7 +661,7 @@ int lua_cocos2dx_controller_EventController_setKeyCode(lua_State* tolua_S) int lua_cocos2dx_controller_EventController_getController(lua_State* tolua_S) { int argc = 0; - cocos2d::EventController* cobj = nullptr; + axis::EventController* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -673,7 +673,7 @@ int lua_cocos2dx_controller_EventController_getController(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventController",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventController*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventController*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -691,8 +691,8 @@ int lua_cocos2dx_controller_EventController_getController(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_controller_EventController_getController'", nullptr); return 0; } - cocos2d::Controller* ret = cobj->getController(); - object_to_luaval(tolua_S, "cc.Controller",(cocos2d::Controller*)ret); + axis::Controller* ret = cobj->getController(); + object_to_luaval(tolua_S, "cc.Controller",(axis::Controller*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventController:getController",argc, 0); @@ -708,7 +708,7 @@ int lua_cocos2dx_controller_EventController_getController(lua_State* tolua_S) int lua_cocos2dx_controller_EventController_getKeyCode(lua_State* tolua_S) { int argc = 0; - cocos2d::EventController* cobj = nullptr; + axis::EventController* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -720,7 +720,7 @@ int lua_cocos2dx_controller_EventController_getKeyCode(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventController",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventController*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventController*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -755,7 +755,7 @@ int lua_cocos2dx_controller_EventController_getKeyCode(lua_State* tolua_S) int lua_cocos2dx_controller_EventController_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::EventController* cobj = nullptr; + axis::EventController* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -764,19 +764,19 @@ int lua_cocos2dx_controller_EventController_constructor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 3) { - cocos2d::EventController::ControllerEventType arg0; + axis::EventController::ControllerEventType arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.EventController:EventController"); if (!ok) { break; } - cocos2d::Controller* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Controller",&arg1, "cc.EventController:EventController"); + axis::Controller* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Controller",&arg1, "cc.EventController:EventController"); if (!ok) { break; } bool arg2; ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.EventController:EventController"); if (!ok) { break; } - cobj = new cocos2d::EventController(arg0, arg1, arg2); + cobj = new axis::EventController(arg0, arg1, arg2); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -787,19 +787,19 @@ int lua_cocos2dx_controller_EventController_constructor(lua_State* tolua_S) ok = true; do{ if (argc == 3) { - cocos2d::EventController::ControllerEventType arg0; + axis::EventController::ControllerEventType arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.EventController:EventController"); if (!ok) { break; } - cocos2d::Controller* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Controller",&arg1, "cc.EventController:EventController"); + axis::Controller* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Controller",&arg1, "cc.EventController:EventController"); if (!ok) { break; } int arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.EventController:EventController"); if (!ok) { break; } - cobj = new cocos2d::EventController(arg0, arg1, arg2); + cobj = new axis::EventController(arg0, arg1, arg2); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -838,7 +838,7 @@ int lua_register_cocos2dx_controller_EventController(lua_State* tolua_S) tolua_function(tolua_S,"getController",lua_cocos2dx_controller_EventController_getController); tolua_function(tolua_S,"getKeyCode",lua_cocos2dx_controller_EventController_getKeyCode); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EventController).name(); // rtti is literal storage + auto typeName = typeid(axis::EventController).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EventController"; g_typeCast[typeName] = "cc.EventController"; return 1; @@ -866,8 +866,8 @@ int lua_cocos2dx_controller_EventListenerController_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_controller_EventListenerController_create'", nullptr); return 0; } - cocos2d::EventListenerController* ret = cocos2d::EventListenerController::create(); - object_to_luaval(tolua_S, "cc.EventListenerController",(cocos2d::EventListenerController*)ret); + axis::EventListenerController* ret = axis::EventListenerController::create(); + object_to_luaval(tolua_S, "cc.EventListenerController",(axis::EventListenerController*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EventListenerController:create",argc, 0); @@ -892,7 +892,7 @@ int lua_register_cocos2dx_controller_EventListenerController(lua_State* tolua_S) tolua_beginmodule(tolua_S,"EventListenerController"); tolua_function(tolua_S,"create", lua_cocos2dx_controller_EventListenerController_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EventListenerController).name(); // rtti is literal storage + auto typeName = typeid(axis::EventListenerController).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EventListenerController"; g_typeCast[typeName] = "cc.EventListenerController"; return 1; diff --git a/extensions/scripting/lua-bindings/auto/lua_cocos2dx_csloader_auto.cpp b/extensions/scripting/lua-bindings/auto/lua_cocos2dx_csloader_auto.cpp index 30343b1ce5..b15febc603 100644 --- a/extensions/scripting/lua-bindings/auto/lua_cocos2dx_csloader_auto.cpp +++ b/extensions/scripting/lua-bindings/auto/lua_cocos2dx_csloader_auto.cpp @@ -6,7 +6,7 @@ int lua_cocos2dx_csloader_CSLoader_createNodeFromJson(lua_State* tolua_S) { int argc = 0; - cocos2d::CSLoader* cobj = nullptr; + axis::CSLoader* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -18,7 +18,7 @@ int lua_cocos2dx_csloader_CSLoader_createNodeFromJson(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.CSLoader",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::CSLoader*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::CSLoader*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -39,8 +39,8 @@ int lua_cocos2dx_csloader_CSLoader_createNodeFromJson(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_csloader_CSLoader_createNodeFromJson'", nullptr); return 0; } - cocos2d::Node* ret = cobj->createNodeFromJson(arg0); - object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + axis::Node* ret = cobj->createNodeFromJson(arg0); + object_to_luaval(tolua_S, "cc.Node",(axis::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CSLoader:createNodeFromJson",argc, 1); @@ -56,7 +56,7 @@ int lua_cocos2dx_csloader_CSLoader_createNodeFromJson(lua_State* tolua_S) int lua_cocos2dx_csloader_CSLoader_createNodeWithFlatBuffersFile(lua_State* tolua_S) { int argc = 0; - cocos2d::CSLoader* cobj = nullptr; + axis::CSLoader* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -68,7 +68,7 @@ int lua_cocos2dx_csloader_CSLoader_createNodeWithFlatBuffersFile(lua_State* tolu if (!tolua_isusertype(tolua_S,1,"cc.CSLoader",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::CSLoader*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::CSLoader*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -89,8 +89,8 @@ int lua_cocos2dx_csloader_CSLoader_createNodeWithFlatBuffersFile(lua_State* tolu tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_csloader_CSLoader_createNodeWithFlatBuffersFile'", nullptr); return 0; } - cocos2d::Node* ret = cobj->createNodeWithFlatBuffersFile(arg0); - object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + axis::Node* ret = cobj->createNodeWithFlatBuffersFile(arg0); + object_to_luaval(tolua_S, "cc.Node",(axis::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CSLoader:createNodeWithFlatBuffersFile",argc, 1); @@ -106,7 +106,7 @@ int lua_cocos2dx_csloader_CSLoader_createNodeWithFlatBuffersFile(lua_State* tolu int lua_cocos2dx_csloader_CSLoader_loadNodeWithFile(lua_State* tolua_S) { int argc = 0; - cocos2d::CSLoader* cobj = nullptr; + axis::CSLoader* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -118,7 +118,7 @@ int lua_cocos2dx_csloader_CSLoader_loadNodeWithFile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.CSLoader",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::CSLoader*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::CSLoader*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -139,8 +139,8 @@ int lua_cocos2dx_csloader_CSLoader_loadNodeWithFile(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_csloader_CSLoader_loadNodeWithFile'", nullptr); return 0; } - cocos2d::Node* ret = cobj->loadNodeWithFile(arg0); - object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + axis::Node* ret = cobj->loadNodeWithFile(arg0); + object_to_luaval(tolua_S, "cc.Node",(axis::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CSLoader:loadNodeWithFile",argc, 1); @@ -156,7 +156,7 @@ int lua_cocos2dx_csloader_CSLoader_loadNodeWithFile(lua_State* tolua_S) int lua_cocos2dx_csloader_CSLoader_bindCallback(lua_State* tolua_S) { int argc = 0; - cocos2d::CSLoader* cobj = nullptr; + axis::CSLoader* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -168,7 +168,7 @@ int lua_cocos2dx_csloader_CSLoader_bindCallback(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.CSLoader",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::CSLoader*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::CSLoader*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -183,16 +183,16 @@ int lua_cocos2dx_csloader_CSLoader_bindCallback(lua_State* tolua_S) { std::string_view arg0; std::string_view arg1; - cocos2d::ui::Widget* arg2; - cocos2d::Node* arg3; + axis::ui::Widget* arg2; + axis::Node* arg3; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.CSLoader:bindCallback"); ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "cc.CSLoader:bindCallback"); - ok &= luaval_to_object(tolua_S, 4, "ccui.Widget",&arg2, "cc.CSLoader:bindCallback"); + ok &= luaval_to_object(tolua_S, 4, "ccui.Widget",&arg2, "cc.CSLoader:bindCallback"); - ok &= luaval_to_object(tolua_S, 5, "cc.Node",&arg3, "cc.CSLoader:bindCallback"); + ok &= luaval_to_object(tolua_S, 5, "cc.Node",&arg3, "cc.CSLoader:bindCallback"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_csloader_CSLoader_bindCallback'", nullptr); @@ -215,7 +215,7 @@ int lua_cocos2dx_csloader_CSLoader_bindCallback(lua_State* tolua_S) int lua_cocos2dx_csloader_CSLoader_setJsonPath(lua_State* tolua_S) { int argc = 0; - cocos2d::CSLoader* cobj = nullptr; + axis::CSLoader* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -227,7 +227,7 @@ int lua_cocos2dx_csloader_CSLoader_setJsonPath(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.CSLoader",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::CSLoader*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::CSLoader*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -265,7 +265,7 @@ int lua_cocos2dx_csloader_CSLoader_setJsonPath(lua_State* tolua_S) int lua_cocos2dx_csloader_CSLoader_init(lua_State* tolua_S) { int argc = 0; - cocos2d::CSLoader* cobj = nullptr; + axis::CSLoader* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -277,7 +277,7 @@ int lua_cocos2dx_csloader_CSLoader_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.CSLoader",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::CSLoader*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::CSLoader*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -312,7 +312,7 @@ int lua_cocos2dx_csloader_CSLoader_init(lua_State* tolua_S) int lua_cocos2dx_csloader_CSLoader_loadNodeWithContent(lua_State* tolua_S) { int argc = 0; - cocos2d::CSLoader* cobj = nullptr; + axis::CSLoader* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -324,7 +324,7 @@ int lua_cocos2dx_csloader_CSLoader_loadNodeWithContent(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.CSLoader",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::CSLoader*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::CSLoader*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -345,8 +345,8 @@ int lua_cocos2dx_csloader_CSLoader_loadNodeWithContent(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_csloader_CSLoader_loadNodeWithContent'", nullptr); return 0; } - cocos2d::Node* ret = cobj->loadNodeWithContent(arg0); - object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + axis::Node* ret = cobj->loadNodeWithContent(arg0); + object_to_luaval(tolua_S, "cc.Node",(axis::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CSLoader:loadNodeWithContent",argc, 1); @@ -362,7 +362,7 @@ int lua_cocos2dx_csloader_CSLoader_loadNodeWithContent(lua_State* tolua_S) int lua_cocos2dx_csloader_CSLoader_isRecordJsonPath(lua_State* tolua_S) { int argc = 0; - cocos2d::CSLoader* cobj = nullptr; + axis::CSLoader* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -374,7 +374,7 @@ int lua_cocos2dx_csloader_CSLoader_isRecordJsonPath(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.CSLoader",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::CSLoader*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::CSLoader*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -409,7 +409,7 @@ int lua_cocos2dx_csloader_CSLoader_isRecordJsonPath(lua_State* tolua_S) int lua_cocos2dx_csloader_CSLoader_getJsonPath(lua_State* tolua_S) { int argc = 0; - cocos2d::CSLoader* cobj = nullptr; + axis::CSLoader* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -421,7 +421,7 @@ int lua_cocos2dx_csloader_CSLoader_getJsonPath(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.CSLoader",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::CSLoader*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::CSLoader*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -456,7 +456,7 @@ int lua_cocos2dx_csloader_CSLoader_getJsonPath(lua_State* tolua_S) int lua_cocos2dx_csloader_CSLoader_setRecordJsonPath(lua_State* tolua_S) { int argc = 0; - cocos2d::CSLoader* cobj = nullptr; + axis::CSLoader* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -468,7 +468,7 @@ int lua_cocos2dx_csloader_CSLoader_setRecordJsonPath(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.CSLoader",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::CSLoader*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::CSLoader*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -506,7 +506,7 @@ int lua_cocos2dx_csloader_CSLoader_setRecordJsonPath(lua_State* tolua_S) int lua_cocos2dx_csloader_CSLoader_createNodeWithFlatBuffersForSimulator(lua_State* tolua_S) { int argc = 0; - cocos2d::CSLoader* cobj = nullptr; + axis::CSLoader* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -518,7 +518,7 @@ int lua_cocos2dx_csloader_CSLoader_createNodeWithFlatBuffersForSimulator(lua_Sta if (!tolua_isusertype(tolua_S,1,"cc.CSLoader",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::CSLoader*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::CSLoader*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -539,8 +539,8 @@ int lua_cocos2dx_csloader_CSLoader_createNodeWithFlatBuffersForSimulator(lua_Sta tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_csloader_CSLoader_createNodeWithFlatBuffersForSimulator'", nullptr); return 0; } - cocos2d::Node* ret = cobj->createNodeWithFlatBuffersForSimulator(arg0); - object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + axis::Node* ret = cobj->createNodeWithFlatBuffersForSimulator(arg0); + object_to_luaval(tolua_S, "cc.Node",(axis::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.CSLoader:createNodeWithFlatBuffersForSimulator",argc, 1); @@ -575,7 +575,7 @@ int lua_cocos2dx_csloader_CSLoader_destroyInstance(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_csloader_CSLoader_destroyInstance'", nullptr); return 0; } - cocos2d::CSLoader::destroyInstance(); + axis::CSLoader::destroyInstance(); lua_settop(tolua_S, 1); return 1; } @@ -608,15 +608,15 @@ int lua_cocos2dx_csloader_CSLoader_createNodeWithVisibleSize(lua_State* tolua_S) std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.CSLoader:createNodeWithVisibleSize"); if (!ok) { break; } - std::function arg1; + std::function arg1; do { // Lambda binding for lua is not supported. assert(false); } while(0) ; if (!ok) { break; } - cocos2d::Node* ret = cocos2d::CSLoader::createNodeWithVisibleSize(arg0, arg1); - object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + axis::Node* ret = axis::CSLoader::createNodeWithVisibleSize(arg0, arg1); + object_to_luaval(tolua_S, "cc.Node",(axis::Node*)ret); return 1; } } while (0); @@ -628,8 +628,8 @@ int lua_cocos2dx_csloader_CSLoader_createNodeWithVisibleSize(lua_State* tolua_S) std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.CSLoader:createNodeWithVisibleSize"); if (!ok) { break; } - cocos2d::Node* ret = cocos2d::CSLoader::createNodeWithVisibleSize(arg0); - object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + axis::Node* ret = axis::CSLoader::createNodeWithVisibleSize(arg0); + object_to_luaval(tolua_S, "cc.Node",(axis::Node*)ret); return 1; } } while (0); @@ -664,8 +664,8 @@ int lua_cocos2dx_csloader_CSLoader_getInstance(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_csloader_CSLoader_getInstance'", nullptr); return 0; } - cocos2d::CSLoader* ret = cocos2d::CSLoader::getInstance(); - object_to_luaval(tolua_S, "cc.CSLoader",(cocos2d::CSLoader*)ret); + axis::CSLoader* ret = axis::CSLoader::getInstance(); + object_to_luaval(tolua_S, "cc.CSLoader",(axis::CSLoader*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.CSLoader:getInstance",argc, 0); @@ -679,7 +679,7 @@ int lua_cocos2dx_csloader_CSLoader_getInstance(lua_State* tolua_S) int lua_cocos2dx_csloader_CSLoader_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::CSLoader* cobj = nullptr; + axis::CSLoader* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -696,7 +696,7 @@ int lua_cocos2dx_csloader_CSLoader_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_csloader_CSLoader_constructor'", nullptr); return 0; } - cobj = new cocos2d::CSLoader(); + cobj = new axis::CSLoader(); tolua_pushusertype(tolua_S,(void*)cobj,"cc.CSLoader"); tolua_register_gc(tolua_S,lua_gettop(tolua_S)); return 1; @@ -739,7 +739,7 @@ int lua_register_cocos2dx_csloader_CSLoader(lua_State* tolua_S) tolua_function(tolua_S,"createNodeWithVisibleSize", lua_cocos2dx_csloader_CSLoader_createNodeWithVisibleSize); tolua_function(tolua_S,"getInstance", lua_cocos2dx_csloader_CSLoader_getInstance); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::CSLoader).name(); // rtti is literal storage + auto typeName = typeid(axis::CSLoader).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.CSLoader"; g_typeCast[typeName] = "cc.CSLoader"; return 1; diff --git a/extensions/scripting/lua-bindings/auto/lua_cocos2dx_extension_auto.cpp b/extensions/scripting/lua-bindings/auto/lua_cocos2dx_extension_auto.cpp index 0daaca8566..44ee7098ba 100644 --- a/extensions/scripting/lua-bindings/auto/lua_cocos2dx_extension_auto.cpp +++ b/extensions/scripting/lua-bindings/auto/lua_cocos2dx_extension_auto.cpp @@ -6,7 +6,7 @@ int lua_cocos2dx_extension_AssetsManager_setStoragePath(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::AssetsManager* cobj = nullptr; + axis::extension::AssetsManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -18,7 +18,7 @@ int lua_cocos2dx_extension_AssetsManager_setStoragePath(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.AssetsManager",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -56,7 +56,7 @@ int lua_cocos2dx_extension_AssetsManager_setStoragePath(lua_State* tolua_S) int lua_cocos2dx_extension_AssetsManager_setPackageUrl(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::AssetsManager* cobj = nullptr; + axis::extension::AssetsManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -68,7 +68,7 @@ int lua_cocos2dx_extension_AssetsManager_setPackageUrl(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.AssetsManager",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -106,7 +106,7 @@ int lua_cocos2dx_extension_AssetsManager_setPackageUrl(lua_State* tolua_S) int lua_cocos2dx_extension_AssetsManager_checkUpdate(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::AssetsManager* cobj = nullptr; + axis::extension::AssetsManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -118,7 +118,7 @@ int lua_cocos2dx_extension_AssetsManager_checkUpdate(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.AssetsManager",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -153,7 +153,7 @@ int lua_cocos2dx_extension_AssetsManager_checkUpdate(lua_State* tolua_S) int lua_cocos2dx_extension_AssetsManager_getStoragePath(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::AssetsManager* cobj = nullptr; + axis::extension::AssetsManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -165,7 +165,7 @@ int lua_cocos2dx_extension_AssetsManager_getStoragePath(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.AssetsManager",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -200,7 +200,7 @@ int lua_cocos2dx_extension_AssetsManager_getStoragePath(lua_State* tolua_S) int lua_cocos2dx_extension_AssetsManager_update(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::AssetsManager* cobj = nullptr; + axis::extension::AssetsManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -212,7 +212,7 @@ int lua_cocos2dx_extension_AssetsManager_update(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.AssetsManager",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -247,7 +247,7 @@ int lua_cocos2dx_extension_AssetsManager_update(lua_State* tolua_S) int lua_cocos2dx_extension_AssetsManager_setConnectionTimeout(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::AssetsManager* cobj = nullptr; + axis::extension::AssetsManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -259,7 +259,7 @@ int lua_cocos2dx_extension_AssetsManager_setConnectionTimeout(lua_State* tolua_S if (!tolua_isusertype(tolua_S,1,"cc.AssetsManager",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -297,7 +297,7 @@ int lua_cocos2dx_extension_AssetsManager_setConnectionTimeout(lua_State* tolua_S int lua_cocos2dx_extension_AssetsManager_setVersionFileUrl(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::AssetsManager* cobj = nullptr; + axis::extension::AssetsManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -309,7 +309,7 @@ int lua_cocos2dx_extension_AssetsManager_setVersionFileUrl(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.AssetsManager",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -347,7 +347,7 @@ int lua_cocos2dx_extension_AssetsManager_setVersionFileUrl(lua_State* tolua_S) int lua_cocos2dx_extension_AssetsManager_getPackageUrl(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::AssetsManager* cobj = nullptr; + axis::extension::AssetsManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -359,7 +359,7 @@ int lua_cocos2dx_extension_AssetsManager_getPackageUrl(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.AssetsManager",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -394,7 +394,7 @@ int lua_cocos2dx_extension_AssetsManager_getPackageUrl(lua_State* tolua_S) int lua_cocos2dx_extension_AssetsManager_getConnectionTimeout(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::AssetsManager* cobj = nullptr; + axis::extension::AssetsManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -406,7 +406,7 @@ int lua_cocos2dx_extension_AssetsManager_getConnectionTimeout(lua_State* tolua_S if (!tolua_isusertype(tolua_S,1,"cc.AssetsManager",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -441,7 +441,7 @@ int lua_cocos2dx_extension_AssetsManager_getConnectionTimeout(lua_State* tolua_S int lua_cocos2dx_extension_AssetsManager_getVersion(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::AssetsManager* cobj = nullptr; + axis::extension::AssetsManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -453,7 +453,7 @@ int lua_cocos2dx_extension_AssetsManager_getVersion(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.AssetsManager",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -488,7 +488,7 @@ int lua_cocos2dx_extension_AssetsManager_getVersion(lua_State* tolua_S) int lua_cocos2dx_extension_AssetsManager_getVersionFileUrl(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::AssetsManager* cobj = nullptr; + axis::extension::AssetsManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -500,7 +500,7 @@ int lua_cocos2dx_extension_AssetsManager_getVersionFileUrl(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.AssetsManager",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -535,7 +535,7 @@ int lua_cocos2dx_extension_AssetsManager_getVersionFileUrl(lua_State* tolua_S) int lua_cocos2dx_extension_AssetsManager_deleteVersion(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::AssetsManager* cobj = nullptr; + axis::extension::AssetsManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -547,7 +547,7 @@ int lua_cocos2dx_extension_AssetsManager_deleteVersion(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.AssetsManager",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::extension::AssetsManager*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -625,8 +625,8 @@ int lua_cocos2dx_extension_AssetsManager_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_AssetsManager_create'", nullptr); return 0; } - cocos2d::extension::AssetsManager* ret = cocos2d::extension::AssetsManager::create(arg0, arg1, arg2, arg3, arg4, arg5); - object_to_luaval(tolua_S, "cc.AssetsManager",(cocos2d::extension::AssetsManager*)ret); + axis::extension::AssetsManager* ret = axis::extension::AssetsManager::create(arg0, arg1, arg2, arg3, arg4, arg5); + object_to_luaval(tolua_S, "cc.AssetsManager",(axis::extension::AssetsManager*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.AssetsManager:create",argc, 6); @@ -640,7 +640,7 @@ int lua_cocos2dx_extension_AssetsManager_create(lua_State* tolua_S) int lua_cocos2dx_extension_AssetsManager_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::AssetsManager* cobj = nullptr; + axis::extension::AssetsManager* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -657,7 +657,7 @@ int lua_cocos2dx_extension_AssetsManager_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_AssetsManager_constructor'", nullptr); return 0; } - cobj = new cocos2d::extension::AssetsManager(); + cobj = new axis::extension::AssetsManager(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -674,7 +674,7 @@ int lua_cocos2dx_extension_AssetsManager_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_AssetsManager_constructor'", nullptr); return 0; } - cobj = new cocos2d::extension::AssetsManager(arg0); + cobj = new axis::extension::AssetsManager(arg0); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -694,7 +694,7 @@ int lua_cocos2dx_extension_AssetsManager_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_AssetsManager_constructor'", nullptr); return 0; } - cobj = new cocos2d::extension::AssetsManager(arg0, arg1); + cobj = new axis::extension::AssetsManager(arg0, arg1); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -717,7 +717,7 @@ int lua_cocos2dx_extension_AssetsManager_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_AssetsManager_constructor'", nullptr); return 0; } - cobj = new cocos2d::extension::AssetsManager(arg0, arg1, arg2); + cobj = new axis::extension::AssetsManager(arg0, arg1, arg2); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -761,7 +761,7 @@ int lua_register_cocos2dx_extension_AssetsManager(lua_State* tolua_S) tolua_function(tolua_S,"deleteVersion",lua_cocos2dx_extension_AssetsManager_deleteVersion); tolua_function(tolua_S,"create", lua_cocos2dx_extension_AssetsManager_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::extension::AssetsManager).name(); // rtti is literal storage + auto typeName = typeid(axis::extension::AssetsManager).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.AssetsManager"; g_typeCast[typeName] = "cc.AssetsManager"; return 1; @@ -770,7 +770,7 @@ int lua_register_cocos2dx_extension_AssetsManager(lua_State* tolua_S) int lua_cocos2dx_extension_EventAssetsManagerEx_getAssetsManagerEx(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::EventAssetsManagerEx* cobj = nullptr; + axis::extension::EventAssetsManagerEx* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -782,7 +782,7 @@ int lua_cocos2dx_extension_EventAssetsManagerEx_getAssetsManagerEx(lua_State* to if (!tolua_isusertype(tolua_S,1,"cc.EventAssetsManagerEx",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::extension::EventAssetsManagerEx*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::extension::EventAssetsManagerEx*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -800,8 +800,8 @@ int lua_cocos2dx_extension_EventAssetsManagerEx_getAssetsManagerEx(lua_State* to tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_EventAssetsManagerEx_getAssetsManagerEx'", nullptr); return 0; } - cocos2d::extension::AssetsManagerEx* ret = cobj->getAssetsManagerEx(); - object_to_luaval(tolua_S, "cc.AssetsManagerEx",(cocos2d::extension::AssetsManagerEx*)ret); + axis::extension::AssetsManagerEx* ret = cobj->getAssetsManagerEx(); + object_to_luaval(tolua_S, "cc.AssetsManagerEx",(axis::extension::AssetsManagerEx*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.EventAssetsManagerEx:getAssetsManagerEx",argc, 0); @@ -817,7 +817,7 @@ int lua_cocos2dx_extension_EventAssetsManagerEx_getAssetsManagerEx(lua_State* to int lua_cocos2dx_extension_EventAssetsManagerEx_getAssetId(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::EventAssetsManagerEx* cobj = nullptr; + axis::extension::EventAssetsManagerEx* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -829,7 +829,7 @@ int lua_cocos2dx_extension_EventAssetsManagerEx_getAssetId(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventAssetsManagerEx",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::extension::EventAssetsManagerEx*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::extension::EventAssetsManagerEx*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -864,7 +864,7 @@ int lua_cocos2dx_extension_EventAssetsManagerEx_getAssetId(lua_State* tolua_S) int lua_cocos2dx_extension_EventAssetsManagerEx_getCURLECode(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::EventAssetsManagerEx* cobj = nullptr; + axis::extension::EventAssetsManagerEx* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -876,7 +876,7 @@ int lua_cocos2dx_extension_EventAssetsManagerEx_getCURLECode(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventAssetsManagerEx",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::extension::EventAssetsManagerEx*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::extension::EventAssetsManagerEx*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -911,7 +911,7 @@ int lua_cocos2dx_extension_EventAssetsManagerEx_getCURLECode(lua_State* tolua_S) int lua_cocos2dx_extension_EventAssetsManagerEx_getMessage(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::EventAssetsManagerEx* cobj = nullptr; + axis::extension::EventAssetsManagerEx* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -923,7 +923,7 @@ int lua_cocos2dx_extension_EventAssetsManagerEx_getMessage(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventAssetsManagerEx",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::extension::EventAssetsManagerEx*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::extension::EventAssetsManagerEx*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -958,7 +958,7 @@ int lua_cocos2dx_extension_EventAssetsManagerEx_getMessage(lua_State* tolua_S) int lua_cocos2dx_extension_EventAssetsManagerEx_getCURLMCode(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::EventAssetsManagerEx* cobj = nullptr; + axis::extension::EventAssetsManagerEx* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -970,7 +970,7 @@ int lua_cocos2dx_extension_EventAssetsManagerEx_getCURLMCode(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventAssetsManagerEx",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::extension::EventAssetsManagerEx*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::extension::EventAssetsManagerEx*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1005,7 +1005,7 @@ int lua_cocos2dx_extension_EventAssetsManagerEx_getCURLMCode(lua_State* tolua_S) int lua_cocos2dx_extension_EventAssetsManagerEx_getPercentByFile(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::EventAssetsManagerEx* cobj = nullptr; + axis::extension::EventAssetsManagerEx* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1017,7 +1017,7 @@ int lua_cocos2dx_extension_EventAssetsManagerEx_getPercentByFile(lua_State* tolu if (!tolua_isusertype(tolua_S,1,"cc.EventAssetsManagerEx",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::extension::EventAssetsManagerEx*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::extension::EventAssetsManagerEx*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1052,7 +1052,7 @@ int lua_cocos2dx_extension_EventAssetsManagerEx_getPercentByFile(lua_State* tolu int lua_cocos2dx_extension_EventAssetsManagerEx_getEventCode(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::EventAssetsManagerEx* cobj = nullptr; + axis::extension::EventAssetsManagerEx* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1064,7 +1064,7 @@ int lua_cocos2dx_extension_EventAssetsManagerEx_getEventCode(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventAssetsManagerEx",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::extension::EventAssetsManagerEx*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::extension::EventAssetsManagerEx*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1099,7 +1099,7 @@ int lua_cocos2dx_extension_EventAssetsManagerEx_getEventCode(lua_State* tolua_S) int lua_cocos2dx_extension_EventAssetsManagerEx_getPercent(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::EventAssetsManagerEx* cobj = nullptr; + axis::extension::EventAssetsManagerEx* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1111,7 +1111,7 @@ int lua_cocos2dx_extension_EventAssetsManagerEx_getPercent(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventAssetsManagerEx",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::extension::EventAssetsManagerEx*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::extension::EventAssetsManagerEx*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1146,7 +1146,7 @@ int lua_cocos2dx_extension_EventAssetsManagerEx_getPercent(lua_State* tolua_S) int lua_cocos2dx_extension_EventAssetsManagerEx_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::EventAssetsManagerEx* cobj = nullptr; + axis::extension::EventAssetsManagerEx* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1159,12 +1159,12 @@ int lua_cocos2dx_extension_EventAssetsManagerEx_constructor(lua_State* tolua_S) if (argc == 3) { std::string_view arg0; - cocos2d::extension::AssetsManagerEx* arg1; - cocos2d::extension::EventAssetsManagerEx::EventCode arg2; + axis::extension::AssetsManagerEx* arg1; + axis::extension::EventAssetsManagerEx::EventCode arg2; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); - ok &= luaval_to_object(tolua_S, 3, "cc.AssetsManagerEx",&arg1, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); + ok &= luaval_to_object(tolua_S, 3, "cc.AssetsManagerEx",&arg1, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); if(!ok) @@ -1172,7 +1172,7 @@ int lua_cocos2dx_extension_EventAssetsManagerEx_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_EventAssetsManagerEx_constructor'", nullptr); return 0; } - cobj = new cocos2d::extension::EventAssetsManagerEx(arg0, arg1, arg2); + cobj = new axis::extension::EventAssetsManagerEx(arg0, arg1, arg2); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -1182,13 +1182,13 @@ int lua_cocos2dx_extension_EventAssetsManagerEx_constructor(lua_State* tolua_S) if (argc == 4) { std::string_view arg0; - cocos2d::extension::AssetsManagerEx* arg1; - cocos2d::extension::EventAssetsManagerEx::EventCode arg2; + axis::extension::AssetsManagerEx* arg1; + axis::extension::EventAssetsManagerEx::EventCode arg2; double arg3; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); - ok &= luaval_to_object(tolua_S, 3, "cc.AssetsManagerEx",&arg1, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); + ok &= luaval_to_object(tolua_S, 3, "cc.AssetsManagerEx",&arg1, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); @@ -1198,7 +1198,7 @@ int lua_cocos2dx_extension_EventAssetsManagerEx_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_EventAssetsManagerEx_constructor'", nullptr); return 0; } - cobj = new cocos2d::extension::EventAssetsManagerEx(arg0, arg1, arg2, arg3); + cobj = new axis::extension::EventAssetsManagerEx(arg0, arg1, arg2, arg3); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -1208,14 +1208,14 @@ int lua_cocos2dx_extension_EventAssetsManagerEx_constructor(lua_State* tolua_S) if (argc == 5) { std::string_view arg0; - cocos2d::extension::AssetsManagerEx* arg1; - cocos2d::extension::EventAssetsManagerEx::EventCode arg2; + axis::extension::AssetsManagerEx* arg1; + axis::extension::EventAssetsManagerEx::EventCode arg2; double arg3; double arg4; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); - ok &= luaval_to_object(tolua_S, 3, "cc.AssetsManagerEx",&arg1, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); + ok &= luaval_to_object(tolua_S, 3, "cc.AssetsManagerEx",&arg1, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); @@ -1227,7 +1227,7 @@ int lua_cocos2dx_extension_EventAssetsManagerEx_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_EventAssetsManagerEx_constructor'", nullptr); return 0; } - cobj = new cocos2d::extension::EventAssetsManagerEx(arg0, arg1, arg2, arg3, arg4); + cobj = new axis::extension::EventAssetsManagerEx(arg0, arg1, arg2, arg3, arg4); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -1237,15 +1237,15 @@ int lua_cocos2dx_extension_EventAssetsManagerEx_constructor(lua_State* tolua_S) if (argc == 6) { std::string_view arg0; - cocos2d::extension::AssetsManagerEx* arg1; - cocos2d::extension::EventAssetsManagerEx::EventCode arg2; + axis::extension::AssetsManagerEx* arg1; + axis::extension::EventAssetsManagerEx::EventCode arg2; double arg3; double arg4; std::string_view arg5; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); - ok &= luaval_to_object(tolua_S, 3, "cc.AssetsManagerEx",&arg1, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); + ok &= luaval_to_object(tolua_S, 3, "cc.AssetsManagerEx",&arg1, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); @@ -1259,7 +1259,7 @@ int lua_cocos2dx_extension_EventAssetsManagerEx_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_EventAssetsManagerEx_constructor'", nullptr); return 0; } - cobj = new cocos2d::extension::EventAssetsManagerEx(arg0, arg1, arg2, arg3, arg4, arg5); + cobj = new axis::extension::EventAssetsManagerEx(arg0, arg1, arg2, arg3, arg4, arg5); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -1269,8 +1269,8 @@ int lua_cocos2dx_extension_EventAssetsManagerEx_constructor(lua_State* tolua_S) if (argc == 7) { std::string_view arg0; - cocos2d::extension::AssetsManagerEx* arg1; - cocos2d::extension::EventAssetsManagerEx::EventCode arg2; + axis::extension::AssetsManagerEx* arg1; + axis::extension::EventAssetsManagerEx::EventCode arg2; double arg3; double arg4; std::string_view arg5; @@ -1278,7 +1278,7 @@ int lua_cocos2dx_extension_EventAssetsManagerEx_constructor(lua_State* tolua_S) ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); - ok &= luaval_to_object(tolua_S, 3, "cc.AssetsManagerEx",&arg1, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); + ok &= luaval_to_object(tolua_S, 3, "cc.AssetsManagerEx",&arg1, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); @@ -1294,7 +1294,7 @@ int lua_cocos2dx_extension_EventAssetsManagerEx_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_EventAssetsManagerEx_constructor'", nullptr); return 0; } - cobj = new cocos2d::extension::EventAssetsManagerEx(arg0, arg1, arg2, arg3, arg4, arg5, arg6); + cobj = new axis::extension::EventAssetsManagerEx(arg0, arg1, arg2, arg3, arg4, arg5, arg6); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -1304,8 +1304,8 @@ int lua_cocos2dx_extension_EventAssetsManagerEx_constructor(lua_State* tolua_S) if (argc == 8) { std::string_view arg0; - cocos2d::extension::AssetsManagerEx* arg1; - cocos2d::extension::EventAssetsManagerEx::EventCode arg2; + axis::extension::AssetsManagerEx* arg1; + axis::extension::EventAssetsManagerEx::EventCode arg2; double arg3; double arg4; std::string_view arg5; @@ -1314,7 +1314,7 @@ int lua_cocos2dx_extension_EventAssetsManagerEx_constructor(lua_State* tolua_S) ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); - ok &= luaval_to_object(tolua_S, 3, "cc.AssetsManagerEx",&arg1, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); + ok &= luaval_to_object(tolua_S, 3, "cc.AssetsManagerEx",&arg1, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); @@ -1332,7 +1332,7 @@ int lua_cocos2dx_extension_EventAssetsManagerEx_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_EventAssetsManagerEx_constructor'", nullptr); return 0; } - cobj = new cocos2d::extension::EventAssetsManagerEx(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7); + cobj = new axis::extension::EventAssetsManagerEx(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -1342,8 +1342,8 @@ int lua_cocos2dx_extension_EventAssetsManagerEx_constructor(lua_State* tolua_S) if (argc == 9) { std::string_view arg0; - cocos2d::extension::AssetsManagerEx* arg1; - cocos2d::extension::EventAssetsManagerEx::EventCode arg2; + axis::extension::AssetsManagerEx* arg1; + axis::extension::EventAssetsManagerEx::EventCode arg2; double arg3; double arg4; std::string_view arg5; @@ -1353,7 +1353,7 @@ int lua_cocos2dx_extension_EventAssetsManagerEx_constructor(lua_State* tolua_S) ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); - ok &= luaval_to_object(tolua_S, 3, "cc.AssetsManagerEx",&arg1, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); + ok &= luaval_to_object(tolua_S, 3, "cc.AssetsManagerEx",&arg1, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "cc.EventAssetsManagerEx:EventAssetsManagerEx"); @@ -1373,7 +1373,7 @@ int lua_cocos2dx_extension_EventAssetsManagerEx_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_EventAssetsManagerEx_constructor'", nullptr); return 0; } - cobj = new cocos2d::extension::EventAssetsManagerEx(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); + cobj = new axis::extension::EventAssetsManagerEx(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -1412,7 +1412,7 @@ int lua_register_cocos2dx_extension_EventAssetsManagerEx(lua_State* tolua_S) tolua_function(tolua_S,"getEventCode",lua_cocos2dx_extension_EventAssetsManagerEx_getEventCode); tolua_function(tolua_S,"getPercent",lua_cocos2dx_extension_EventAssetsManagerEx_getPercent); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::extension::EventAssetsManagerEx).name(); // rtti is literal storage + auto typeName = typeid(axis::extension::EventAssetsManagerEx).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EventAssetsManagerEx"; g_typeCast[typeName] = "cc.EventAssetsManagerEx"; return 1; @@ -1421,7 +1421,7 @@ int lua_register_cocos2dx_extension_EventAssetsManagerEx(lua_State* tolua_S) int lua_cocos2dx_extension_Manifest_getManifestFileUrl(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::Manifest* cobj = nullptr; + axis::extension::Manifest* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1433,7 +1433,7 @@ int lua_cocos2dx_extension_Manifest_getManifestFileUrl(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Manifest",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::extension::Manifest*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::extension::Manifest*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1468,7 +1468,7 @@ int lua_cocos2dx_extension_Manifest_getManifestFileUrl(lua_State* tolua_S) int lua_cocos2dx_extension_Manifest_isVersionLoaded(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::Manifest* cobj = nullptr; + axis::extension::Manifest* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1480,7 +1480,7 @@ int lua_cocos2dx_extension_Manifest_isVersionLoaded(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Manifest",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::extension::Manifest*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::extension::Manifest*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1515,7 +1515,7 @@ int lua_cocos2dx_extension_Manifest_isVersionLoaded(lua_State* tolua_S) int lua_cocos2dx_extension_Manifest_isLoaded(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::Manifest* cobj = nullptr; + axis::extension::Manifest* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1527,7 +1527,7 @@ int lua_cocos2dx_extension_Manifest_isLoaded(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Manifest",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::extension::Manifest*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::extension::Manifest*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1562,7 +1562,7 @@ int lua_cocos2dx_extension_Manifest_isLoaded(lua_State* tolua_S) int lua_cocos2dx_extension_Manifest_getPackageUrl(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::Manifest* cobj = nullptr; + axis::extension::Manifest* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1574,7 +1574,7 @@ int lua_cocos2dx_extension_Manifest_getPackageUrl(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Manifest",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::extension::Manifest*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::extension::Manifest*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1609,7 +1609,7 @@ int lua_cocos2dx_extension_Manifest_getPackageUrl(lua_State* tolua_S) int lua_cocos2dx_extension_Manifest_getVersion(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::Manifest* cobj = nullptr; + axis::extension::Manifest* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1621,7 +1621,7 @@ int lua_cocos2dx_extension_Manifest_getVersion(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Manifest",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::extension::Manifest*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::extension::Manifest*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1656,7 +1656,7 @@ int lua_cocos2dx_extension_Manifest_getVersion(lua_State* tolua_S) int lua_cocos2dx_extension_Manifest_getVersionFileUrl(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::Manifest* cobj = nullptr; + axis::extension::Manifest* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1668,7 +1668,7 @@ int lua_cocos2dx_extension_Manifest_getVersionFileUrl(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Manifest",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::extension::Manifest*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::extension::Manifest*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1703,7 +1703,7 @@ int lua_cocos2dx_extension_Manifest_getVersionFileUrl(lua_State* tolua_S) int lua_cocos2dx_extension_Manifest_getSearchPaths(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::Manifest* cobj = nullptr; + axis::extension::Manifest* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1715,7 +1715,7 @@ int lua_cocos2dx_extension_Manifest_getSearchPaths(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Manifest",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::extension::Manifest*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::extension::Manifest*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1767,7 +1767,7 @@ int lua_register_cocos2dx_extension_Manifest(lua_State* tolua_S) tolua_function(tolua_S,"getVersionFileUrl",lua_cocos2dx_extension_Manifest_getVersionFileUrl); tolua_function(tolua_S,"getSearchPaths",lua_cocos2dx_extension_Manifest_getSearchPaths); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::extension::Manifest).name(); // rtti is literal storage + auto typeName = typeid(axis::extension::Manifest).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Manifest"; g_typeCast[typeName] = "cc.Manifest"; return 1; @@ -1776,7 +1776,7 @@ int lua_register_cocos2dx_extension_Manifest(lua_State* tolua_S) int lua_cocos2dx_extension_AssetsManagerEx_getState(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::AssetsManagerEx* cobj = nullptr; + axis::extension::AssetsManagerEx* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1788,7 +1788,7 @@ int lua_cocos2dx_extension_AssetsManagerEx_getState(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.AssetsManagerEx",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1823,7 +1823,7 @@ int lua_cocos2dx_extension_AssetsManagerEx_getState(lua_State* tolua_S) int lua_cocos2dx_extension_AssetsManagerEx_getMaxConcurrentTask(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::AssetsManagerEx* cobj = nullptr; + axis::extension::AssetsManagerEx* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1835,7 +1835,7 @@ int lua_cocos2dx_extension_AssetsManagerEx_getMaxConcurrentTask(lua_State* tolua if (!tolua_isusertype(tolua_S,1,"cc.AssetsManagerEx",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1870,7 +1870,7 @@ int lua_cocos2dx_extension_AssetsManagerEx_getMaxConcurrentTask(lua_State* tolua int lua_cocos2dx_extension_AssetsManagerEx_checkUpdate(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::AssetsManagerEx* cobj = nullptr; + axis::extension::AssetsManagerEx* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1882,7 +1882,7 @@ int lua_cocos2dx_extension_AssetsManagerEx_checkUpdate(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.AssetsManagerEx",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1917,7 +1917,7 @@ int lua_cocos2dx_extension_AssetsManagerEx_checkUpdate(lua_State* tolua_S) int lua_cocos2dx_extension_AssetsManagerEx_setVerifyCallback(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::AssetsManagerEx* cobj = nullptr; + axis::extension::AssetsManagerEx* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1929,7 +1929,7 @@ int lua_cocos2dx_extension_AssetsManagerEx_setVerifyCallback(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.AssetsManagerEx",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1942,7 +1942,7 @@ int lua_cocos2dx_extension_AssetsManagerEx_setVerifyCallback(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - std::function arg0; + std::function arg0; do { // Lambda binding for lua is not supported. @@ -1971,7 +1971,7 @@ int lua_cocos2dx_extension_AssetsManagerEx_setVerifyCallback(lua_State* tolua_S) int lua_cocos2dx_extension_AssetsManagerEx_getStoragePath(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::AssetsManagerEx* cobj = nullptr; + axis::extension::AssetsManagerEx* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1983,7 +1983,7 @@ int lua_cocos2dx_extension_AssetsManagerEx_getStoragePath(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.AssetsManagerEx",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2018,7 +2018,7 @@ int lua_cocos2dx_extension_AssetsManagerEx_getStoragePath(lua_State* tolua_S) int lua_cocos2dx_extension_AssetsManagerEx_update(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::AssetsManagerEx* cobj = nullptr; + axis::extension::AssetsManagerEx* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2030,7 +2030,7 @@ int lua_cocos2dx_extension_AssetsManagerEx_update(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.AssetsManagerEx",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2065,7 +2065,7 @@ int lua_cocos2dx_extension_AssetsManagerEx_update(lua_State* tolua_S) int lua_cocos2dx_extension_AssetsManagerEx_setVersionCompareHandle(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::AssetsManagerEx* cobj = nullptr; + axis::extension::AssetsManagerEx* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2077,7 +2077,7 @@ int lua_cocos2dx_extension_AssetsManagerEx_setVersionCompareHandle(lua_State* to if (!tolua_isusertype(tolua_S,1,"cc.AssetsManagerEx",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2119,7 +2119,7 @@ int lua_cocos2dx_extension_AssetsManagerEx_setVersionCompareHandle(lua_State* to int lua_cocos2dx_extension_AssetsManagerEx_setMaxConcurrentTask(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::AssetsManagerEx* cobj = nullptr; + axis::extension::AssetsManagerEx* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2131,7 +2131,7 @@ int lua_cocos2dx_extension_AssetsManagerEx_setMaxConcurrentTask(lua_State* tolua if (!tolua_isusertype(tolua_S,1,"cc.AssetsManagerEx",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2169,7 +2169,7 @@ int lua_cocos2dx_extension_AssetsManagerEx_setMaxConcurrentTask(lua_State* tolua int lua_cocos2dx_extension_AssetsManagerEx_getLocalManifest(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::AssetsManagerEx* cobj = nullptr; + axis::extension::AssetsManagerEx* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2181,7 +2181,7 @@ int lua_cocos2dx_extension_AssetsManagerEx_getLocalManifest(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.AssetsManagerEx",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2199,8 +2199,8 @@ int lua_cocos2dx_extension_AssetsManagerEx_getLocalManifest(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_AssetsManagerEx_getLocalManifest'", nullptr); return 0; } - const cocos2d::extension::Manifest* ret = cobj->getLocalManifest(); - object_to_luaval(tolua_S, "cc.Manifest",(cocos2d::extension::Manifest*)ret); + const axis::extension::Manifest* ret = cobj->getLocalManifest(); + object_to_luaval(tolua_S, "cc.Manifest",(axis::extension::Manifest*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AssetsManagerEx:getLocalManifest",argc, 0); @@ -2216,7 +2216,7 @@ int lua_cocos2dx_extension_AssetsManagerEx_getLocalManifest(lua_State* tolua_S) int lua_cocos2dx_extension_AssetsManagerEx_getRemoteManifest(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::AssetsManagerEx* cobj = nullptr; + axis::extension::AssetsManagerEx* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2228,7 +2228,7 @@ int lua_cocos2dx_extension_AssetsManagerEx_getRemoteManifest(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.AssetsManagerEx",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2246,8 +2246,8 @@ int lua_cocos2dx_extension_AssetsManagerEx_getRemoteManifest(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_AssetsManagerEx_getRemoteManifest'", nullptr); return 0; } - const cocos2d::extension::Manifest* ret = cobj->getRemoteManifest(); - object_to_luaval(tolua_S, "cc.Manifest",(cocos2d::extension::Manifest*)ret); + const axis::extension::Manifest* ret = cobj->getRemoteManifest(); + object_to_luaval(tolua_S, "cc.Manifest",(axis::extension::Manifest*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.AssetsManagerEx:getRemoteManifest",argc, 0); @@ -2263,7 +2263,7 @@ int lua_cocos2dx_extension_AssetsManagerEx_getRemoteManifest(lua_State* tolua_S) int lua_cocos2dx_extension_AssetsManagerEx_downloadFailedAssets(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::AssetsManagerEx* cobj = nullptr; + axis::extension::AssetsManagerEx* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2275,7 +2275,7 @@ int lua_cocos2dx_extension_AssetsManagerEx_downloadFailedAssets(lua_State* tolua if (!tolua_isusertype(tolua_S,1,"cc.AssetsManagerEx",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::extension::AssetsManagerEx*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2333,8 +2333,8 @@ int lua_cocos2dx_extension_AssetsManagerEx_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_AssetsManagerEx_create'", nullptr); return 0; } - cocos2d::extension::AssetsManagerEx* ret = cocos2d::extension::AssetsManagerEx::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.AssetsManagerEx",(cocos2d::extension::AssetsManagerEx*)ret); + axis::extension::AssetsManagerEx* ret = axis::extension::AssetsManagerEx::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.AssetsManagerEx",(axis::extension::AssetsManagerEx*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.AssetsManagerEx:create",argc, 2); @@ -2348,7 +2348,7 @@ int lua_cocos2dx_extension_AssetsManagerEx_create(lua_State* tolua_S) int lua_cocos2dx_extension_AssetsManagerEx_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::AssetsManagerEx* cobj = nullptr; + axis::extension::AssetsManagerEx* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2371,7 +2371,7 @@ int lua_cocos2dx_extension_AssetsManagerEx_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_AssetsManagerEx_constructor'", nullptr); return 0; } - cobj = new cocos2d::extension::AssetsManagerEx(arg0, arg1); + cobj = new axis::extension::AssetsManagerEx(arg0, arg1); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -2414,7 +2414,7 @@ int lua_register_cocos2dx_extension_AssetsManagerEx(lua_State* tolua_S) tolua_function(tolua_S,"downloadFailedAssets",lua_cocos2dx_extension_AssetsManagerEx_downloadFailedAssets); tolua_function(tolua_S,"create", lua_cocos2dx_extension_AssetsManagerEx_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::extension::AssetsManagerEx).name(); // rtti is literal storage + auto typeName = typeid(axis::extension::AssetsManagerEx).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.AssetsManagerEx"; g_typeCast[typeName] = "cc.AssetsManagerEx"; return 1; @@ -2423,7 +2423,7 @@ int lua_register_cocos2dx_extension_AssetsManagerEx(lua_State* tolua_S) int lua_cocos2dx_extension_EventListenerAssetsManagerEx_init(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::EventListenerAssetsManagerEx* cobj = nullptr; + axis::extension::EventListenerAssetsManagerEx* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2435,7 +2435,7 @@ int lua_cocos2dx_extension_EventListenerAssetsManagerEx_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.EventListenerAssetsManagerEx",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::extension::EventListenerAssetsManagerEx*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::extension::EventListenerAssetsManagerEx*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2448,10 +2448,10 @@ int lua_cocos2dx_extension_EventListenerAssetsManagerEx_init(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - const cocos2d::extension::AssetsManagerEx* arg0; - std::function arg1; + const axis::extension::AssetsManagerEx* arg0; + std::function arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.AssetsManagerEx",&arg0, "cc.EventListenerAssetsManagerEx:init"); + ok &= luaval_to_object(tolua_S, 2, "cc.AssetsManagerEx",&arg0, "cc.EventListenerAssetsManagerEx:init"); do { // Lambda binding for lua is not supported. @@ -2480,7 +2480,7 @@ int lua_cocos2dx_extension_EventListenerAssetsManagerEx_init(lua_State* tolua_S) int lua_cocos2dx_extension_EventListenerAssetsManagerEx_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::extension::EventListenerAssetsManagerEx* cobj = nullptr; + axis::extension::EventListenerAssetsManagerEx* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2497,7 +2497,7 @@ int lua_cocos2dx_extension_EventListenerAssetsManagerEx_constructor(lua_State* t tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_EventListenerAssetsManagerEx_constructor'", nullptr); return 0; } - cobj = new cocos2d::extension::EventListenerAssetsManagerEx(); + cobj = new axis::extension::EventListenerAssetsManagerEx(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -2529,7 +2529,7 @@ int lua_register_cocos2dx_extension_EventListenerAssetsManagerEx(lua_State* tolu tolua_function(tolua_S,"new",lua_cocos2dx_extension_EventListenerAssetsManagerEx_constructor); tolua_function(tolua_S,"init",lua_cocos2dx_extension_EventListenerAssetsManagerEx_init); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::extension::EventListenerAssetsManagerEx).name(); // rtti is literal storage + auto typeName = typeid(axis::extension::EventListenerAssetsManagerEx).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EventListenerAssetsManagerEx"; g_typeCast[typeName] = "cc.EventListenerAssetsManagerEx"; return 1; @@ -2538,7 +2538,7 @@ int lua_register_cocos2dx_extension_EventListenerAssetsManagerEx(lua_State* tolu int lua_cocos2dx_extension_ParticleSystem3D_removeAffector(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem3D* cobj = nullptr; + axis::ParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2550,7 +2550,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_removeAffector(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2588,7 +2588,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_removeAffector(lua_State* tolua_S) int lua_cocos2dx_extension_ParticleSystem3D_resumeParticleSystem(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem3D* cobj = nullptr; + axis::ParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2600,7 +2600,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_resumeParticleSystem(lua_State* tolu if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2635,7 +2635,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_resumeParticleSystem(lua_State* tolu int lua_cocos2dx_extension_ParticleSystem3D_removeAllAffector(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem3D* cobj = nullptr; + axis::ParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2647,7 +2647,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_removeAllAffector(lua_State* tolua_S if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2682,7 +2682,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_removeAllAffector(lua_State* tolua_S int lua_cocos2dx_extension_ParticleSystem3D_addAffector(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem3D* cobj = nullptr; + axis::ParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2694,7 +2694,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_addAffector(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2707,9 +2707,9 @@ int lua_cocos2dx_extension_ParticleSystem3D_addAffector(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Particle3DAffector* arg0; + axis::Particle3DAffector* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Particle3DAffector",&arg0, "cc.ParticleSystem3D:addAffector"); + ok &= luaval_to_object(tolua_S, 2, "cc.Particle3DAffector",&arg0, "cc.ParticleSystem3D:addAffector"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ParticleSystem3D_addAffector'", nullptr); @@ -2732,7 +2732,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_addAffector(lua_State* tolua_S) int lua_cocos2dx_extension_ParticleSystem3D_startParticleSystem(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem3D* cobj = nullptr; + axis::ParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2744,7 +2744,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_startParticleSystem(lua_State* tolua if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2779,7 +2779,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_startParticleSystem(lua_State* tolua int lua_cocos2dx_extension_ParticleSystem3D_isEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem3D* cobj = nullptr; + axis::ParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2791,7 +2791,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_isEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2826,7 +2826,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_isEnabled(lua_State* tolua_S) int lua_cocos2dx_extension_ParticleSystem3D_getRender(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem3D* cobj = nullptr; + axis::ParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2838,7 +2838,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_getRender(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2856,8 +2856,8 @@ int lua_cocos2dx_extension_ParticleSystem3D_getRender(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ParticleSystem3D_getRender'", nullptr); return 0; } - cocos2d::Particle3DRender* ret = cobj->getRender(); - object_to_luaval(tolua_S, "cc.Particle3DRender",(cocos2d::Particle3DRender*)ret); + axis::Particle3DRender* ret = cobj->getRender(); + object_to_luaval(tolua_S, "cc.Particle3DRender",(axis::Particle3DRender*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.ParticleSystem3D:getRender",argc, 0); @@ -2873,7 +2873,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_getRender(lua_State* tolua_S) int lua_cocos2dx_extension_ParticleSystem3D_setEmitter(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem3D* cobj = nullptr; + axis::ParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2885,7 +2885,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_setEmitter(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2898,9 +2898,9 @@ int lua_cocos2dx_extension_ParticleSystem3D_setEmitter(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Particle3DEmitter* arg0; + axis::Particle3DEmitter* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Particle3DEmitter",&arg0, "cc.ParticleSystem3D:setEmitter"); + ok &= luaval_to_object(tolua_S, 2, "cc.Particle3DEmitter",&arg0, "cc.ParticleSystem3D:setEmitter"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ParticleSystem3D_setEmitter'", nullptr); @@ -2923,7 +2923,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_setEmitter(lua_State* tolua_S) int lua_cocos2dx_extension_ParticleSystem3D_isKeepLocal(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem3D* cobj = nullptr; + axis::ParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2935,7 +2935,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_isKeepLocal(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2970,7 +2970,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_isKeepLocal(lua_State* tolua_S) int lua_cocos2dx_extension_ParticleSystem3D_setEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem3D* cobj = nullptr; + axis::ParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2982,7 +2982,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_setEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3020,7 +3020,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_setEnabled(lua_State* tolua_S) int lua_cocos2dx_extension_ParticleSystem3D_getParticleQuota(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem3D* cobj = nullptr; + axis::ParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3032,7 +3032,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_getParticleQuota(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3067,7 +3067,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_getParticleQuota(lua_State* tolua_S) int lua_cocos2dx_extension_ParticleSystem3D_getBlendFunc(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem3D* cobj = nullptr; + axis::ParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3079,7 +3079,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_getBlendFunc(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3097,7 +3097,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_getBlendFunc(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ParticleSystem3D_getBlendFunc'", nullptr); return 0; } - const cocos2d::BlendFunc& ret = cobj->getBlendFunc(); + const axis::BlendFunc& ret = cobj->getBlendFunc(); blendfunc_to_luaval(tolua_S, ret); return 1; } @@ -3114,7 +3114,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_getBlendFunc(lua_State* tolua_S) int lua_cocos2dx_extension_ParticleSystem3D_pauseParticleSystem(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem3D* cobj = nullptr; + axis::ParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3126,7 +3126,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_pauseParticleSystem(lua_State* tolua if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3161,7 +3161,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_pauseParticleSystem(lua_State* tolua int lua_cocos2dx_extension_ParticleSystem3D_getState(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem3D* cobj = nullptr; + axis::ParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3173,7 +3173,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_getState(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3208,7 +3208,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_getState(lua_State* tolua_S) int lua_cocos2dx_extension_ParticleSystem3D_getAliveParticleCount(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem3D* cobj = nullptr; + axis::ParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3220,7 +3220,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_getAliveParticleCount(lua_State* tol if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3255,7 +3255,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_getAliveParticleCount(lua_State* tol int lua_cocos2dx_extension_ParticleSystem3D_setParticleQuota(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem3D* cobj = nullptr; + axis::ParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3267,7 +3267,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_setParticleQuota(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3305,7 +3305,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_setParticleQuota(lua_State* tolua_S) int lua_cocos2dx_extension_ParticleSystem3D_setBlendFunc(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem3D* cobj = nullptr; + axis::ParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3317,7 +3317,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_setBlendFunc(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3330,7 +3330,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_setBlendFunc(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::BlendFunc arg0; + axis::BlendFunc arg0; ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "cc.ParticleSystem3D:setBlendFunc"); if(!ok) @@ -3355,7 +3355,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_setBlendFunc(lua_State* tolua_S) int lua_cocos2dx_extension_ParticleSystem3D_setRender(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem3D* cobj = nullptr; + axis::ParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3367,7 +3367,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_setRender(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3380,9 +3380,9 @@ int lua_cocos2dx_extension_ParticleSystem3D_setRender(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Particle3DRender* arg0; + axis::Particle3DRender* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Particle3DRender",&arg0, "cc.ParticleSystem3D:setRender"); + ok &= luaval_to_object(tolua_S, 2, "cc.Particle3DRender",&arg0, "cc.ParticleSystem3D:setRender"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ParticleSystem3D_setRender'", nullptr); @@ -3405,7 +3405,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_setRender(lua_State* tolua_S) int lua_cocos2dx_extension_ParticleSystem3D_stopParticleSystem(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem3D* cobj = nullptr; + axis::ParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3417,7 +3417,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_stopParticleSystem(lua_State* tolua_ if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3452,7 +3452,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_stopParticleSystem(lua_State* tolua_ int lua_cocos2dx_extension_ParticleSystem3D_setKeepLocal(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem3D* cobj = nullptr; + axis::ParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3464,7 +3464,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_setKeepLocal(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.ParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3502,7 +3502,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_setKeepLocal(lua_State* tolua_S) int lua_cocos2dx_extension_ParticleSystem3D_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem3D* cobj = nullptr; + axis::ParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3519,7 +3519,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_ParticleSystem3D_constructor'", nullptr); return 0; } - cobj = new cocos2d::ParticleSystem3D(); + cobj = new axis::ParticleSystem3D(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -3570,7 +3570,7 @@ int lua_register_cocos2dx_extension_ParticleSystem3D(lua_State* tolua_S) tolua_function(tolua_S,"stopParticleSystem",lua_cocos2dx_extension_ParticleSystem3D_stopParticleSystem); tolua_function(tolua_S,"setKeepLocal",lua_cocos2dx_extension_ParticleSystem3D_setKeepLocal); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ParticleSystem3D).name(); // rtti is literal storage + auto typeName = typeid(axis::ParticleSystem3D).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.ParticleSystem3D"; g_typeCast[typeName] = "cc.ParticleSystem3D"; return 1; @@ -3579,7 +3579,7 @@ int lua_register_cocos2dx_extension_ParticleSystem3D(lua_State* tolua_S) int lua_cocos2dx_extension_PUParticleSystem3D_initWithFilePath(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3591,7 +3591,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_initWithFilePath(lua_State* tolua_ if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3629,7 +3629,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_initWithFilePath(lua_State* tolua_ int lua_cocos2dx_extension_PUParticleSystem3D_getParticleSystemScaleVelocity(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3641,7 +3641,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_getParticleSystemScaleVelocity(lua if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3676,7 +3676,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_getParticleSystemScaleVelocity(lua int lua_cocos2dx_extension_PUParticleSystem3D_setEmittedSystemQuota(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3688,7 +3688,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_setEmittedSystemQuota(lua_State* t if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3726,7 +3726,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_setEmittedSystemQuota(lua_State* t int lua_cocos2dx_extension_PUParticleSystem3D_getDefaultDepth(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3738,7 +3738,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_getDefaultDepth(lua_State* tolua_S if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3773,7 +3773,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_getDefaultDepth(lua_State* tolua_S int lua_cocos2dx_extension_PUParticleSystem3D_getEmittedSystemQuota(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3785,7 +3785,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_getEmittedSystemQuota(lua_State* t if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3820,7 +3820,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_getEmittedSystemQuota(lua_State* t int lua_cocos2dx_extension_PUParticleSystem3D_initWithFilePathAndMaterialPath(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3832,7 +3832,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_initWithFilePathAndMaterialPath(lu if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3873,7 +3873,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_initWithFilePathAndMaterialPath(lu int lua_cocos2dx_extension_PUParticleSystem3D_clearAllParticles(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3885,7 +3885,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_clearAllParticles(lua_State* tolua if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3920,7 +3920,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_clearAllParticles(lua_State* tolua int lua_cocos2dx_extension_PUParticleSystem3D_getMaterialName(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3932,7 +3932,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_getMaterialName(lua_State* tolua_S if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3967,7 +3967,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_getMaterialName(lua_State* tolua_S int lua_cocos2dx_extension_PUParticleSystem3D_calulateRotationOffset(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3979,7 +3979,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_calulateRotationOffset(lua_State* if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4014,7 +4014,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_calulateRotationOffset(lua_State* int lua_cocos2dx_extension_PUParticleSystem3D_getMaxVelocity(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4026,7 +4026,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_getMaxVelocity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4061,7 +4061,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_getMaxVelocity(lua_State* tolua_S) int lua_cocos2dx_extension_PUParticleSystem3D_forceUpdate(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4073,7 +4073,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_forceUpdate(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4111,7 +4111,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_forceUpdate(lua_State* tolua_S) int lua_cocos2dx_extension_PUParticleSystem3D_getTimeElapsedSinceStart(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4123,7 +4123,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_getTimeElapsedSinceStart(lua_State if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4158,7 +4158,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_getTimeElapsedSinceStart(lua_State int lua_cocos2dx_extension_PUParticleSystem3D_removeAllBehaviourTemplate(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4170,7 +4170,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_removeAllBehaviourTemplate(lua_Sta if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4205,7 +4205,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_removeAllBehaviourTemplate(lua_Sta int lua_cocos2dx_extension_PUParticleSystem3D_getEmittedEmitterQuota(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4217,7 +4217,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_getEmittedEmitterQuota(lua_State* if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4252,7 +4252,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_getEmittedEmitterQuota(lua_State* int lua_cocos2dx_extension_PUParticleSystem3D_forceEmission(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4264,7 +4264,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_forceEmission(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4277,10 +4277,10 @@ int lua_cocos2dx_extension_PUParticleSystem3D_forceEmission(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::PUEmitter* arg0; + axis::PUEmitter* arg0; unsigned int arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.PUEmitter",&arg0, "cc.PUParticleSystem3D:forceEmission"); + ok &= luaval_to_object(tolua_S, 2, "cc.PUEmitter",&arg0, "cc.PUParticleSystem3D:forceEmission"); ok &= luaval_to_uint32(tolua_S, 3,&arg1, "cc.PUParticleSystem3D:forceEmission"); if(!ok) @@ -4305,7 +4305,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_forceEmission(lua_State* tolua_S) int lua_cocos2dx_extension_PUParticleSystem3D_addListener(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4317,7 +4317,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_addListener(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4330,9 +4330,9 @@ int lua_cocos2dx_extension_PUParticleSystem3D_addListener(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::PUListener* arg0; + axis::PUListener* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.PUListener",&arg0, "cc.PUParticleSystem3D:addListener"); + ok &= luaval_to_object(tolua_S, 2, "cc.PUListener",&arg0, "cc.PUParticleSystem3D:addListener"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_PUParticleSystem3D_addListener'", nullptr); @@ -4355,7 +4355,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_addListener(lua_State* tolua_S) int lua_cocos2dx_extension_PUParticleSystem3D_isMarkedForEmission(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4367,7 +4367,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_isMarkedForEmission(lua_State* tol if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4402,7 +4402,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_isMarkedForEmission(lua_State* tol int lua_cocos2dx_extension_PUParticleSystem3D_getDefaultWidth(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4414,7 +4414,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_getDefaultWidth(lua_State* tolua_S if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4449,7 +4449,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_getDefaultWidth(lua_State* tolua_S int lua_cocos2dx_extension_PUParticleSystem3D_setEmittedEmitterQuota(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4461,7 +4461,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_setEmittedEmitterQuota(lua_State* if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4499,7 +4499,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_setEmittedEmitterQuota(lua_State* int lua_cocos2dx_extension_PUParticleSystem3D_setMarkedForEmission(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4511,7 +4511,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_setMarkedForEmission(lua_State* to if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4549,7 +4549,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_setMarkedForEmission(lua_State* to int lua_cocos2dx_extension_PUParticleSystem3D_clone(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4561,7 +4561,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_clone(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4579,8 +4579,8 @@ int lua_cocos2dx_extension_PUParticleSystem3D_clone(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_PUParticleSystem3D_clone'", nullptr); return 0; } - cocos2d::PUParticleSystem3D* ret = cobj->clone(); - object_to_luaval(tolua_S, "cc.PUParticleSystem3D",(cocos2d::PUParticleSystem3D*)ret); + axis::PUParticleSystem3D* ret = cobj->clone(); + object_to_luaval(tolua_S, "cc.PUParticleSystem3D",(axis::PUParticleSystem3D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.PUParticleSystem3D:clone",argc, 0); @@ -4596,7 +4596,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_clone(lua_State* tolua_S) int lua_cocos2dx_extension_PUParticleSystem3D_addEmitter(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4608,7 +4608,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_addEmitter(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4621,9 +4621,9 @@ int lua_cocos2dx_extension_PUParticleSystem3D_addEmitter(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::PUEmitter* arg0; + axis::PUEmitter* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.PUEmitter",&arg0, "cc.PUParticleSystem3D:addEmitter"); + ok &= luaval_to_object(tolua_S, 2, "cc.PUEmitter",&arg0, "cc.PUParticleSystem3D:addEmitter"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_PUParticleSystem3D_addEmitter'", nullptr); @@ -4646,7 +4646,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_addEmitter(lua_State* tolua_S) int lua_cocos2dx_extension_PUParticleSystem3D_addBehaviourTemplate(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4658,7 +4658,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_addBehaviourTemplate(lua_State* to if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4671,9 +4671,9 @@ int lua_cocos2dx_extension_PUParticleSystem3D_addBehaviourTemplate(lua_State* to argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::PUBehaviour* arg0; + axis::PUBehaviour* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.PUBehaviour",&arg0, "cc.PUParticleSystem3D:addBehaviourTemplate"); + ok &= luaval_to_object(tolua_S, 2, "cc.PUBehaviour",&arg0, "cc.PUParticleSystem3D:addBehaviourTemplate"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_PUParticleSystem3D_addBehaviourTemplate'", nullptr); @@ -4696,7 +4696,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_addBehaviourTemplate(lua_State* to int lua_cocos2dx_extension_PUParticleSystem3D_setDefaultWidth(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4708,7 +4708,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_setDefaultWidth(lua_State* tolua_S if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4746,7 +4746,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_setDefaultWidth(lua_State* tolua_S int lua_cocos2dx_extension_PUParticleSystem3D_copyAttributesTo(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4758,7 +4758,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_copyAttributesTo(lua_State* tolua_ if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4771,9 +4771,9 @@ int lua_cocos2dx_extension_PUParticleSystem3D_copyAttributesTo(lua_State* tolua_ argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::PUParticleSystem3D* arg0; + axis::PUParticleSystem3D* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.PUParticleSystem3D",&arg0, "cc.PUParticleSystem3D:copyAttributesTo"); + ok &= luaval_to_object(tolua_S, 2, "cc.PUParticleSystem3D",&arg0, "cc.PUParticleSystem3D:copyAttributesTo"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_PUParticleSystem3D_copyAttributesTo'", nullptr); @@ -4796,7 +4796,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_copyAttributesTo(lua_State* tolua_ int lua_cocos2dx_extension_PUParticleSystem3D_setMaterialName(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4808,7 +4808,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_setMaterialName(lua_State* tolua_S if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4846,7 +4846,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_setMaterialName(lua_State* tolua_S int lua_cocos2dx_extension_PUParticleSystem3D_getParentParticleSystem(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4858,7 +4858,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_getParentParticleSystem(lua_State* if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4876,8 +4876,8 @@ int lua_cocos2dx_extension_PUParticleSystem3D_getParentParticleSystem(lua_State* tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_PUParticleSystem3D_getParentParticleSystem'", nullptr); return 0; } - cocos2d::PUParticleSystem3D* ret = cobj->getParentParticleSystem(); - object_to_luaval(tolua_S, "cc.PUParticleSystem3D",(cocos2d::PUParticleSystem3D*)ret); + axis::PUParticleSystem3D* ret = cobj->getParentParticleSystem(); + object_to_luaval(tolua_S, "cc.PUParticleSystem3D",(axis::PUParticleSystem3D*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.PUParticleSystem3D:getParentParticleSystem",argc, 0); @@ -4893,7 +4893,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_getParentParticleSystem(lua_State* int lua_cocos2dx_extension_PUParticleSystem3D_removeListener(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4905,7 +4905,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_removeListener(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4918,9 +4918,9 @@ int lua_cocos2dx_extension_PUParticleSystem3D_removeListener(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::PUListener* arg0; + axis::PUListener* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.PUListener",&arg0, "cc.PUParticleSystem3D:removeListener"); + ok &= luaval_to_object(tolua_S, 2, "cc.PUListener",&arg0, "cc.PUParticleSystem3D:removeListener"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_PUParticleSystem3D_removeListener'", nullptr); @@ -4943,7 +4943,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_removeListener(lua_State* tolua_S) int lua_cocos2dx_extension_PUParticleSystem3D_setMaxVelocity(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4955,7 +4955,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_setMaxVelocity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4993,7 +4993,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_setMaxVelocity(lua_State* tolua_S) int lua_cocos2dx_extension_PUParticleSystem3D_getDefaultHeight(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5005,7 +5005,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_getDefaultHeight(lua_State* tolua_ if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5040,7 +5040,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_getDefaultHeight(lua_State* tolua_ int lua_cocos2dx_extension_PUParticleSystem3D_getDerivedPosition(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5052,7 +5052,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_getDerivedPosition(lua_State* tolu if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5070,7 +5070,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_getDerivedPosition(lua_State* tolu tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_PUParticleSystem3D_getDerivedPosition'", nullptr); return 0; } - cocos2d::Vec3 ret = cobj->getDerivedPosition(); + axis::Vec3 ret = cobj->getDerivedPosition(); vec3_to_luaval(tolua_S, ret); return 1; } @@ -5087,7 +5087,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_getDerivedPosition(lua_State* tolu int lua_cocos2dx_extension_PUParticleSystem3D_rotationOffset(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5099,7 +5099,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_rotationOffset(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5112,7 +5112,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_rotationOffset(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec3 arg0; + axis::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.PUParticleSystem3D:rotationOffset"); if(!ok) @@ -5137,7 +5137,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_rotationOffset(lua_State* tolua_S) int lua_cocos2dx_extension_PUParticleSystem3D_removeAllEmitter(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5149,7 +5149,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_removeAllEmitter(lua_State* tolua_ if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5184,7 +5184,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_removeAllEmitter(lua_State* tolua_ int lua_cocos2dx_extension_PUParticleSystem3D_setParticleSystemScaleVelocity(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5196,7 +5196,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_setParticleSystemScaleVelocity(lua if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5234,7 +5234,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_setParticleSystemScaleVelocity(lua int lua_cocos2dx_extension_PUParticleSystem3D_getDerivedScale(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5246,7 +5246,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_getDerivedScale(lua_State* tolua_S if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5264,7 +5264,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_getDerivedScale(lua_State* tolua_S tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_PUParticleSystem3D_getDerivedScale'", nullptr); return 0; } - cocos2d::Vec3 ret = cobj->getDerivedScale(); + axis::Vec3 ret = cobj->getDerivedScale(); vec3_to_luaval(tolua_S, ret); return 1; } @@ -5281,7 +5281,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_getDerivedScale(lua_State* tolua_S int lua_cocos2dx_extension_PUParticleSystem3D_setDefaultHeight(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5293,7 +5293,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_setDefaultHeight(lua_State* tolua_ if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5331,7 +5331,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_setDefaultHeight(lua_State* tolua_ int lua_cocos2dx_extension_PUParticleSystem3D_removeAllListener(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5343,7 +5343,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_removeAllListener(lua_State* tolua if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5378,7 +5378,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_removeAllListener(lua_State* tolua int lua_cocos2dx_extension_PUParticleSystem3D_initSystem(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5390,7 +5390,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_initSystem(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5428,7 +5428,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_initSystem(lua_State* tolua_S) int lua_cocos2dx_extension_PUParticleSystem3D_makeParticleLocal(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5440,7 +5440,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_makeParticleLocal(lua_State* tolua if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5453,7 +5453,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_makeParticleLocal(lua_State* tolua argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::PUParticle3D* arg0; + axis::PUParticle3D* arg0; #pragma warning NO CONVERSION TO NATIVE FOR PUParticle3D* ok = false; @@ -5479,7 +5479,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_makeParticleLocal(lua_State* tolua int lua_cocos2dx_extension_PUParticleSystem3D_removerAllObserver(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5491,7 +5491,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_removerAllObserver(lua_State* tolu if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5526,7 +5526,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_removerAllObserver(lua_State* tolu int lua_cocos2dx_extension_PUParticleSystem3D_setDefaultDepth(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5538,7 +5538,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_setDefaultDepth(lua_State* tolua_S if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5576,7 +5576,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_setDefaultDepth(lua_State* tolua_S int lua_cocos2dx_extension_PUParticleSystem3D_addObserver(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5588,7 +5588,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_addObserver(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PUParticleSystem3D",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PUParticleSystem3D*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5601,9 +5601,9 @@ int lua_cocos2dx_extension_PUParticleSystem3D_addObserver(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::PUObserver* arg0; + axis::PUObserver* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.PUObserver",&arg0, "cc.PUParticleSystem3D:addObserver"); + ok &= luaval_to_object(tolua_S, 2, "cc.PUObserver",&arg0, "cc.PUParticleSystem3D:addObserver"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_PUParticleSystem3D_addObserver'", nullptr); @@ -5644,8 +5644,8 @@ int lua_cocos2dx_extension_PUParticleSystem3D_create(lua_State* tolua_S) std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "cc.PUParticleSystem3D:create"); if (!ok) { break; } - cocos2d::PUParticleSystem3D* ret = cocos2d::PUParticleSystem3D::create(arg0); - object_to_luaval(tolua_S, "cc.PUParticleSystem3D",(cocos2d::PUParticleSystem3D*)ret); + axis::PUParticleSystem3D* ret = axis::PUParticleSystem3D::create(arg0); + object_to_luaval(tolua_S, "cc.PUParticleSystem3D",(axis::PUParticleSystem3D*)ret); return 1; } } while (0); @@ -5654,8 +5654,8 @@ int lua_cocos2dx_extension_PUParticleSystem3D_create(lua_State* tolua_S) { if (argc == 0) { - cocos2d::PUParticleSystem3D* ret = cocos2d::PUParticleSystem3D::create(); - object_to_luaval(tolua_S, "cc.PUParticleSystem3D",(cocos2d::PUParticleSystem3D*)ret); + axis::PUParticleSystem3D* ret = axis::PUParticleSystem3D::create(); + object_to_luaval(tolua_S, "cc.PUParticleSystem3D",(axis::PUParticleSystem3D*)ret); return 1; } } while (0); @@ -5670,8 +5670,8 @@ int lua_cocos2dx_extension_PUParticleSystem3D_create(lua_State* tolua_S) std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "cc.PUParticleSystem3D:create"); if (!ok) { break; } - cocos2d::PUParticleSystem3D* ret = cocos2d::PUParticleSystem3D::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.PUParticleSystem3D",(cocos2d::PUParticleSystem3D*)ret); + axis::PUParticleSystem3D* ret = axis::PUParticleSystem3D::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.PUParticleSystem3D",(axis::PUParticleSystem3D*)ret); return 1; } } while (0); @@ -5687,7 +5687,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_create(lua_State* tolua_S) int lua_cocos2dx_extension_PUParticleSystem3D_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::PUParticleSystem3D* cobj = nullptr; + axis::PUParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5704,7 +5704,7 @@ int lua_cocos2dx_extension_PUParticleSystem3D_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_extension_PUParticleSystem3D_constructor'", nullptr); return 0; } - cobj = new cocos2d::PUParticleSystem3D(); + cobj = new axis::PUParticleSystem3D(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -5778,7 +5778,7 @@ int lua_register_cocos2dx_extension_PUParticleSystem3D(lua_State* tolua_S) tolua_function(tolua_S,"addObserver",lua_cocos2dx_extension_PUParticleSystem3D_addObserver); tolua_function(tolua_S,"create", lua_cocos2dx_extension_PUParticleSystem3D_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::PUParticleSystem3D).name(); // rtti is literal storage + auto typeName = typeid(axis::PUParticleSystem3D).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.PUParticleSystem3D"; g_typeCast[typeName] = "cc.PUParticleSystem3D"; return 1; diff --git a/extensions/scripting/lua-bindings/auto/lua_cocos2dx_navmesh_auto.cpp b/extensions/scripting/lua-bindings/auto/lua_cocos2dx_navmesh_auto.cpp index abb3bf630a..02d5978f21 100644 --- a/extensions/scripting/lua-bindings/auto/lua_cocos2dx_navmesh_auto.cpp +++ b/extensions/scripting/lua-bindings/auto/lua_cocos2dx_navmesh_auto.cpp @@ -8,7 +8,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_setMaxSpeed(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMeshAgent* cobj = nullptr; + axis::NavMeshAgent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -20,7 +20,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_setMaxSpeed(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -58,7 +58,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_setMaxSpeed(lua_State* tolua_S) int lua_cocos2dx_navmesh_NavMeshAgent_syncToNode(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMeshAgent* cobj = nullptr; + axis::NavMeshAgent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -70,7 +70,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_syncToNode(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -105,7 +105,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_syncToNode(lua_State* tolua_S) int lua_cocos2dx_navmesh_NavMeshAgent_completeOffMeshLink(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMeshAgent* cobj = nullptr; + axis::NavMeshAgent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -117,7 +117,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_completeOffMeshLink(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -152,7 +152,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_completeOffMeshLink(lua_State* tolua_S) int lua_cocos2dx_navmesh_NavMeshAgent_getSeparationWeight(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMeshAgent* cobj = nullptr; + axis::NavMeshAgent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -164,7 +164,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_getSeparationWeight(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -199,7 +199,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_getSeparationWeight(lua_State* tolua_S) int lua_cocos2dx_navmesh_NavMeshAgent_setAutoTraverseOffMeshLink(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMeshAgent* cobj = nullptr; + axis::NavMeshAgent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -211,7 +211,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_setAutoTraverseOffMeshLink(lua_State* tolu if (!tolua_isusertype(tolua_S,1,"cc.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -249,7 +249,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_setAutoTraverseOffMeshLink(lua_State* tolu int lua_cocos2dx_navmesh_NavMeshAgent_getCurrentVelocity(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMeshAgent* cobj = nullptr; + axis::NavMeshAgent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -261,7 +261,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_getCurrentVelocity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -279,7 +279,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_getCurrentVelocity(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_navmesh_NavMeshAgent_getCurrentVelocity'", nullptr); return 0; } - cocos2d::Vec3 ret = cobj->getCurrentVelocity(); + axis::Vec3 ret = cobj->getCurrentVelocity(); vec3_to_luaval(tolua_S, ret); return 1; } @@ -296,7 +296,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_getCurrentVelocity(lua_State* tolua_S) int lua_cocos2dx_navmesh_NavMeshAgent_syncToAgent(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMeshAgent* cobj = nullptr; + axis::NavMeshAgent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -308,7 +308,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_syncToAgent(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -343,7 +343,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_syncToAgent(lua_State* tolua_S) int lua_cocos2dx_navmesh_NavMeshAgent_isOnOffMeshLink(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMeshAgent* cobj = nullptr; + axis::NavMeshAgent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -355,7 +355,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_isOnOffMeshLink(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -390,7 +390,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_isOnOffMeshLink(lua_State* tolua_S) int lua_cocos2dx_navmesh_NavMeshAgent_setSeparationWeight(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMeshAgent* cobj = nullptr; + axis::NavMeshAgent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -402,7 +402,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_setSeparationWeight(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -440,7 +440,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_setSeparationWeight(lua_State* tolua_S) int lua_cocos2dx_navmesh_NavMeshAgent_pause(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMeshAgent* cobj = nullptr; + axis::NavMeshAgent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -452,7 +452,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_pause(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -487,7 +487,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_pause(lua_State* tolua_S) int lua_cocos2dx_navmesh_NavMeshAgent_getUserData(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMeshAgent* cobj = nullptr; + axis::NavMeshAgent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -499,7 +499,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_getUserData(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -534,7 +534,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_getUserData(lua_State* tolua_S) int lua_cocos2dx_navmesh_NavMeshAgent_setAutoOrientation(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMeshAgent* cobj = nullptr; + axis::NavMeshAgent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -546,7 +546,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_setAutoOrientation(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -584,7 +584,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_setAutoOrientation(lua_State* tolua_S) int lua_cocos2dx_navmesh_NavMeshAgent_getHeight(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMeshAgent* cobj = nullptr; + axis::NavMeshAgent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -596,7 +596,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_getHeight(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -631,7 +631,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_getHeight(lua_State* tolua_S) int lua_cocos2dx_navmesh_NavMeshAgent_getMaxSpeed(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMeshAgent* cobj = nullptr; + axis::NavMeshAgent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -643,7 +643,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_getMaxSpeed(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -678,7 +678,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_getMaxSpeed(lua_State* tolua_S) int lua_cocos2dx_navmesh_NavMeshAgent_getCurrentOffMeshLinkData(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMeshAgent* cobj = nullptr; + axis::NavMeshAgent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -690,7 +690,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_getCurrentOffMeshLinkData(lua_State* tolua if (!tolua_isusertype(tolua_S,1,"cc.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -708,7 +708,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_getCurrentOffMeshLinkData(lua_State* tolua tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_navmesh_NavMeshAgent_getCurrentOffMeshLinkData'", nullptr); return 0; } - cocos2d::OffMeshLinkData ret = cobj->getCurrentOffMeshLinkData(); + axis::OffMeshLinkData ret = cobj->getCurrentOffMeshLinkData(); offmeshlinkdata_to_luaval(tolua_S, ret); return 1; } @@ -725,7 +725,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_getCurrentOffMeshLinkData(lua_State* tolua int lua_cocos2dx_navmesh_NavMeshAgent_getRadius(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMeshAgent* cobj = nullptr; + axis::NavMeshAgent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -737,7 +737,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_getRadius(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -772,7 +772,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_getRadius(lua_State* tolua_S) int lua_cocos2dx_navmesh_NavMeshAgent_setSyncFlag(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMeshAgent* cobj = nullptr; + axis::NavMeshAgent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -784,7 +784,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_setSyncFlag(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -797,7 +797,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_setSyncFlag(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::NavMeshAgent::NavMeshAgentSyncFlag arg0; + axis::NavMeshAgent::NavMeshAgentSyncFlag arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.NavMeshAgent:setSyncFlag"); if(!ok) @@ -822,7 +822,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_setSyncFlag(lua_State* tolua_S) int lua_cocos2dx_navmesh_NavMeshAgent_getSyncFlag(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMeshAgent* cobj = nullptr; + axis::NavMeshAgent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -834,7 +834,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_getSyncFlag(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -869,7 +869,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_getSyncFlag(lua_State* tolua_S) int lua_cocos2dx_navmesh_NavMeshAgent_resume(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMeshAgent* cobj = nullptr; + axis::NavMeshAgent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -881,7 +881,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_resume(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -916,7 +916,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_resume(lua_State* tolua_S) int lua_cocos2dx_navmesh_NavMeshAgent_stop(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMeshAgent* cobj = nullptr; + axis::NavMeshAgent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -928,7 +928,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_stop(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -963,7 +963,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_stop(lua_State* tolua_S) int lua_cocos2dx_navmesh_NavMeshAgent_setMaxAcceleration(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMeshAgent* cobj = nullptr; + axis::NavMeshAgent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -975,7 +975,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_setMaxAcceleration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1013,7 +1013,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_setMaxAcceleration(lua_State* tolua_S) int lua_cocos2dx_navmesh_NavMeshAgent_setOrientationRefAxes(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMeshAgent* cobj = nullptr; + axis::NavMeshAgent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1025,7 +1025,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_setOrientationRefAxes(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1038,7 +1038,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_setOrientationRefAxes(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec3 arg0; + axis::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.NavMeshAgent:setOrientationRefAxes"); if(!ok) @@ -1063,7 +1063,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_setOrientationRefAxes(lua_State* tolua_S) int lua_cocos2dx_navmesh_NavMeshAgent_getMaxAcceleration(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMeshAgent* cobj = nullptr; + axis::NavMeshAgent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1075,7 +1075,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_getMaxAcceleration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1110,7 +1110,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_getMaxAcceleration(lua_State* tolua_S) int lua_cocos2dx_navmesh_NavMeshAgent_setHeight(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMeshAgent* cobj = nullptr; + axis::NavMeshAgent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1122,7 +1122,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_setHeight(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1160,7 +1160,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_setHeight(lua_State* tolua_S) int lua_cocos2dx_navmesh_NavMeshAgent_setUserData(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMeshAgent* cobj = nullptr; + axis::NavMeshAgent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1172,7 +1172,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_setUserData(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1211,7 +1211,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_setUserData(lua_State* tolua_S) int lua_cocos2dx_navmesh_NavMeshAgent_getObstacleAvoidanceType(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMeshAgent* cobj = nullptr; + axis::NavMeshAgent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1223,7 +1223,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_getObstacleAvoidanceType(lua_State* tolua_ if (!tolua_isusertype(tolua_S,1,"cc.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1258,7 +1258,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_getObstacleAvoidanceType(lua_State* tolua_ int lua_cocos2dx_navmesh_NavMeshAgent_getVelocity(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMeshAgent* cobj = nullptr; + axis::NavMeshAgent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1270,7 +1270,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_getVelocity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1288,7 +1288,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_getVelocity(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_navmesh_NavMeshAgent_getVelocity'", nullptr); return 0; } - cocos2d::Vec3 ret = cobj->getVelocity(); + axis::Vec3 ret = cobj->getVelocity(); vec3_to_luaval(tolua_S, ret); return 1; } @@ -1305,7 +1305,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_getVelocity(lua_State* tolua_S) int lua_cocos2dx_navmesh_NavMeshAgent_setRadius(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMeshAgent* cobj = nullptr; + axis::NavMeshAgent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1317,7 +1317,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_setRadius(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1355,7 +1355,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_setRadius(lua_State* tolua_S) int lua_cocos2dx_navmesh_NavMeshAgent_setObstacleAvoidanceType(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMeshAgent* cobj = nullptr; + axis::NavMeshAgent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1367,7 +1367,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_setObstacleAvoidanceType(lua_State* tolua_ if (!tolua_isusertype(tolua_S,1,"cc.NavMeshAgent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMeshAgent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1424,7 +1424,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_getNavMeshAgentComponentName(lua_State* to tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_navmesh_NavMeshAgent_getNavMeshAgentComponentName'", nullptr); return 0; } - std::string_view ret = cocos2d::NavMeshAgent::getNavMeshAgentComponentName(); + std::string_view ret = axis::NavMeshAgent::getNavMeshAgentComponentName(); lua_pushlstring(tolua_S,ret.data(),ret.length()); return 1; } @@ -1453,15 +1453,15 @@ int lua_cocos2dx_navmesh_NavMeshAgent_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::NavMeshAgentParam arg0; + axis::NavMeshAgentParam arg0; ok &= luaval_to_navmeshagentparam(tolua_S, 2, &arg0, "cc.NavMeshAgent:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_navmesh_NavMeshAgent_create'", nullptr); return 0; } - cocos2d::NavMeshAgent* ret = cocos2d::NavMeshAgent::create(arg0); - object_to_luaval(tolua_S, "cc.NavMeshAgent",(cocos2d::NavMeshAgent*)ret); + axis::NavMeshAgent* ret = axis::NavMeshAgent::create(arg0); + object_to_luaval(tolua_S, "cc.NavMeshAgent",(axis::NavMeshAgent*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.NavMeshAgent:create",argc, 1); @@ -1475,7 +1475,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_create(lua_State* tolua_S) int lua_cocos2dx_navmesh_NavMeshAgent_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMeshAgent* cobj = nullptr; + axis::NavMeshAgent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1492,7 +1492,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_navmesh_NavMeshAgent_constructor'", nullptr); return 0; } - cobj = new cocos2d::NavMeshAgent(); + cobj = new axis::NavMeshAgent(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -1554,7 +1554,7 @@ int lua_register_cocos2dx_navmesh_NavMeshAgent(lua_State* tolua_S) tolua_function(tolua_S,"getNavMeshAgentComponentName", lua_cocos2dx_navmesh_NavMeshAgent_getNavMeshAgentComponentName); tolua_function(tolua_S,"create", lua_cocos2dx_navmesh_NavMeshAgent_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::NavMeshAgent).name(); // rtti is literal storage + auto typeName = typeid(axis::NavMeshAgent).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.NavMeshAgent"; g_typeCast[typeName] = "cc.NavMeshAgent"; return 1; @@ -1563,7 +1563,7 @@ int lua_register_cocos2dx_navmesh_NavMeshAgent(lua_State* tolua_S) int lua_cocos2dx_navmesh_NavMeshObstacle_getSyncFlag(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMeshObstacle* cobj = nullptr; + axis::NavMeshObstacle* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1575,7 +1575,7 @@ int lua_cocos2dx_navmesh_NavMeshObstacle_getSyncFlag(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NavMeshObstacle",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMeshObstacle*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMeshObstacle*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1610,7 +1610,7 @@ int lua_cocos2dx_navmesh_NavMeshObstacle_getSyncFlag(lua_State* tolua_S) int lua_cocos2dx_navmesh_NavMeshObstacle_initWith(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMeshObstacle* cobj = nullptr; + axis::NavMeshObstacle* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1622,7 +1622,7 @@ int lua_cocos2dx_navmesh_NavMeshObstacle_initWith(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NavMeshObstacle",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMeshObstacle*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMeshObstacle*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1663,7 +1663,7 @@ int lua_cocos2dx_navmesh_NavMeshObstacle_initWith(lua_State* tolua_S) int lua_cocos2dx_navmesh_NavMeshObstacle_syncToObstacle(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMeshObstacle* cobj = nullptr; + axis::NavMeshObstacle* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1675,7 +1675,7 @@ int lua_cocos2dx_navmesh_NavMeshObstacle_syncToObstacle(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NavMeshObstacle",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMeshObstacle*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMeshObstacle*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1710,7 +1710,7 @@ int lua_cocos2dx_navmesh_NavMeshObstacle_syncToObstacle(lua_State* tolua_S) int lua_cocos2dx_navmesh_NavMeshObstacle_syncToNode(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMeshObstacle* cobj = nullptr; + axis::NavMeshObstacle* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1722,7 +1722,7 @@ int lua_cocos2dx_navmesh_NavMeshObstacle_syncToNode(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NavMeshObstacle",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMeshObstacle*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMeshObstacle*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1757,7 +1757,7 @@ int lua_cocos2dx_navmesh_NavMeshObstacle_syncToNode(lua_State* tolua_S) int lua_cocos2dx_navmesh_NavMeshObstacle_getHeight(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMeshObstacle* cobj = nullptr; + axis::NavMeshObstacle* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1769,7 +1769,7 @@ int lua_cocos2dx_navmesh_NavMeshObstacle_getHeight(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NavMeshObstacle",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMeshObstacle*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMeshObstacle*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1804,7 +1804,7 @@ int lua_cocos2dx_navmesh_NavMeshObstacle_getHeight(lua_State* tolua_S) int lua_cocos2dx_navmesh_NavMeshObstacle_setSyncFlag(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMeshObstacle* cobj = nullptr; + axis::NavMeshObstacle* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1816,7 +1816,7 @@ int lua_cocos2dx_navmesh_NavMeshObstacle_setSyncFlag(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NavMeshObstacle",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMeshObstacle*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMeshObstacle*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1829,7 +1829,7 @@ int lua_cocos2dx_navmesh_NavMeshObstacle_setSyncFlag(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::NavMeshObstacle::NavMeshObstacleSyncFlag arg0; + axis::NavMeshObstacle::NavMeshObstacleSyncFlag arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.NavMeshObstacle:setSyncFlag"); if(!ok) @@ -1854,7 +1854,7 @@ int lua_cocos2dx_navmesh_NavMeshObstacle_setSyncFlag(lua_State* tolua_S) int lua_cocos2dx_navmesh_NavMeshObstacle_getRadius(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMeshObstacle* cobj = nullptr; + axis::NavMeshObstacle* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1866,7 +1866,7 @@ int lua_cocos2dx_navmesh_NavMeshObstacle_getRadius(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NavMeshObstacle",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMeshObstacle*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMeshObstacle*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1924,8 +1924,8 @@ int lua_cocos2dx_navmesh_NavMeshObstacle_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_navmesh_NavMeshObstacle_create'", nullptr); return 0; } - cocos2d::NavMeshObstacle* ret = cocos2d::NavMeshObstacle::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.NavMeshObstacle",(cocos2d::NavMeshObstacle*)ret); + axis::NavMeshObstacle* ret = axis::NavMeshObstacle::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.NavMeshObstacle",(axis::NavMeshObstacle*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.NavMeshObstacle:create",argc, 2); @@ -1958,7 +1958,7 @@ int lua_cocos2dx_navmesh_NavMeshObstacle_getNavMeshObstacleComponentName(lua_Sta tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_navmesh_NavMeshObstacle_getNavMeshObstacleComponentName'", nullptr); return 0; } - std::string_view ret = cocos2d::NavMeshObstacle::getNavMeshObstacleComponentName(); + std::string_view ret = axis::NavMeshObstacle::getNavMeshObstacleComponentName(); lua_pushlstring(tolua_S,ret.data(),ret.length()); return 1; } @@ -1973,7 +1973,7 @@ int lua_cocos2dx_navmesh_NavMeshObstacle_getNavMeshObstacleComponentName(lua_Sta int lua_cocos2dx_navmesh_NavMeshObstacle_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMeshObstacle* cobj = nullptr; + axis::NavMeshObstacle* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1990,7 +1990,7 @@ int lua_cocos2dx_navmesh_NavMeshObstacle_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_navmesh_NavMeshObstacle_constructor'", nullptr); return 0; } - cobj = new cocos2d::NavMeshObstacle(); + cobj = new axis::NavMeshObstacle(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -2030,7 +2030,7 @@ int lua_register_cocos2dx_navmesh_NavMeshObstacle(lua_State* tolua_S) tolua_function(tolua_S,"create", lua_cocos2dx_navmesh_NavMeshObstacle_create); tolua_function(tolua_S,"getNavMeshObstacleComponentName", lua_cocos2dx_navmesh_NavMeshObstacle_getNavMeshObstacleComponentName); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::NavMeshObstacle).name(); // rtti is literal storage + auto typeName = typeid(axis::NavMeshObstacle).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.NavMeshObstacle"; g_typeCast[typeName] = "cc.NavMeshObstacle"; return 1; @@ -2039,7 +2039,7 @@ int lua_register_cocos2dx_navmesh_NavMeshObstacle(lua_State* tolua_S) int lua_cocos2dx_navmesh_NavMesh_removeNavMeshObstacle(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMesh* cobj = nullptr; + axis::NavMesh* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2051,7 +2051,7 @@ int lua_cocos2dx_navmesh_NavMesh_removeNavMeshObstacle(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NavMesh",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMesh*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMesh*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2064,9 +2064,9 @@ int lua_cocos2dx_navmesh_NavMesh_removeNavMeshObstacle(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::NavMeshObstacle* arg0; + axis::NavMeshObstacle* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.NavMeshObstacle",&arg0, "cc.NavMesh:removeNavMeshObstacle"); + ok &= luaval_to_object(tolua_S, 2, "cc.NavMeshObstacle",&arg0, "cc.NavMesh:removeNavMeshObstacle"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_navmesh_NavMesh_removeNavMeshObstacle'", nullptr); @@ -2089,7 +2089,7 @@ int lua_cocos2dx_navmesh_NavMesh_removeNavMeshObstacle(lua_State* tolua_S) int lua_cocos2dx_navmesh_NavMesh_removeNavMeshAgent(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMesh* cobj = nullptr; + axis::NavMesh* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2101,7 +2101,7 @@ int lua_cocos2dx_navmesh_NavMesh_removeNavMeshAgent(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NavMesh",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMesh*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMesh*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2114,9 +2114,9 @@ int lua_cocos2dx_navmesh_NavMesh_removeNavMeshAgent(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::NavMeshAgent* arg0; + axis::NavMeshAgent* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.NavMeshAgent",&arg0, "cc.NavMesh:removeNavMeshAgent"); + ok &= luaval_to_object(tolua_S, 2, "cc.NavMeshAgent",&arg0, "cc.NavMesh:removeNavMeshAgent"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_navmesh_NavMesh_removeNavMeshAgent'", nullptr); @@ -2139,7 +2139,7 @@ int lua_cocos2dx_navmesh_NavMesh_removeNavMeshAgent(lua_State* tolua_S) int lua_cocos2dx_navmesh_NavMesh_update(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMesh* cobj = nullptr; + axis::NavMesh* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2151,7 +2151,7 @@ int lua_cocos2dx_navmesh_NavMesh_update(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NavMesh",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMesh*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMesh*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2189,7 +2189,7 @@ int lua_cocos2dx_navmesh_NavMesh_update(lua_State* tolua_S) int lua_cocos2dx_navmesh_NavMesh_isDebugDrawEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMesh* cobj = nullptr; + axis::NavMesh* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2201,7 +2201,7 @@ int lua_cocos2dx_navmesh_NavMesh_isDebugDrawEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NavMesh",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMesh*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMesh*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2236,7 +2236,7 @@ int lua_cocos2dx_navmesh_NavMesh_isDebugDrawEnabled(lua_State* tolua_S) int lua_cocos2dx_navmesh_NavMesh_addNavMeshAgent(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMesh* cobj = nullptr; + axis::NavMesh* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2248,7 +2248,7 @@ int lua_cocos2dx_navmesh_NavMesh_addNavMeshAgent(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NavMesh",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMesh*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMesh*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2261,9 +2261,9 @@ int lua_cocos2dx_navmesh_NavMesh_addNavMeshAgent(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::NavMeshAgent* arg0; + axis::NavMeshAgent* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.NavMeshAgent",&arg0, "cc.NavMesh:addNavMeshAgent"); + ok &= luaval_to_object(tolua_S, 2, "cc.NavMeshAgent",&arg0, "cc.NavMesh:addNavMeshAgent"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_navmesh_NavMesh_addNavMeshAgent'", nullptr); @@ -2286,7 +2286,7 @@ int lua_cocos2dx_navmesh_NavMesh_addNavMeshAgent(lua_State* tolua_S) int lua_cocos2dx_navmesh_NavMesh_addNavMeshObstacle(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMesh* cobj = nullptr; + axis::NavMesh* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2298,7 +2298,7 @@ int lua_cocos2dx_navmesh_NavMesh_addNavMeshObstacle(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NavMesh",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMesh*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMesh*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2311,9 +2311,9 @@ int lua_cocos2dx_navmesh_NavMesh_addNavMeshObstacle(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::NavMeshObstacle* arg0; + axis::NavMeshObstacle* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.NavMeshObstacle",&arg0, "cc.NavMesh:addNavMeshObstacle"); + ok &= luaval_to_object(tolua_S, 2, "cc.NavMeshObstacle",&arg0, "cc.NavMesh:addNavMeshObstacle"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_navmesh_NavMesh_addNavMeshObstacle'", nullptr); @@ -2336,7 +2336,7 @@ int lua_cocos2dx_navmesh_NavMesh_addNavMeshObstacle(lua_State* tolua_S) int lua_cocos2dx_navmesh_NavMesh_setDebugDrawEnable(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMesh* cobj = nullptr; + axis::NavMesh* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2348,7 +2348,7 @@ int lua_cocos2dx_navmesh_NavMesh_setDebugDrawEnable(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NavMesh",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMesh*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMesh*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2386,7 +2386,7 @@ int lua_cocos2dx_navmesh_NavMesh_setDebugDrawEnable(lua_State* tolua_S) int lua_cocos2dx_navmesh_NavMesh_debugDraw(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMesh* cobj = nullptr; + axis::NavMesh* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2398,7 +2398,7 @@ int lua_cocos2dx_navmesh_NavMesh_debugDraw(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.NavMesh",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::NavMesh*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::NavMesh*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2411,9 +2411,9 @@ int lua_cocos2dx_navmesh_NavMesh_debugDraw(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Renderer* arg0; + axis::Renderer* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Renderer",&arg0, "cc.NavMesh:debugDraw"); + ok &= luaval_to_object(tolua_S, 2, "cc.Renderer",&arg0, "cc.NavMesh:debugDraw"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_navmesh_NavMesh_debugDraw'", nullptr); @@ -2459,8 +2459,8 @@ int lua_cocos2dx_navmesh_NavMesh_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_navmesh_NavMesh_create'", nullptr); return 0; } - cocos2d::NavMesh* ret = cocos2d::NavMesh::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.NavMesh",(cocos2d::NavMesh*)ret); + axis::NavMesh* ret = axis::NavMesh::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.NavMesh",(axis::NavMesh*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.NavMesh:create",argc, 2); @@ -2474,7 +2474,7 @@ int lua_cocos2dx_navmesh_NavMesh_create(lua_State* tolua_S) int lua_cocos2dx_navmesh_NavMesh_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMesh* cobj = nullptr; + axis::NavMesh* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2491,7 +2491,7 @@ int lua_cocos2dx_navmesh_NavMesh_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_navmesh_NavMesh_constructor'", nullptr); return 0; } - cobj = new cocos2d::NavMesh(); + cobj = new axis::NavMesh(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -2531,7 +2531,7 @@ int lua_register_cocos2dx_navmesh_NavMesh(lua_State* tolua_S) tolua_function(tolua_S,"debugDraw",lua_cocos2dx_navmesh_NavMesh_debugDraw); tolua_function(tolua_S,"create", lua_cocos2dx_navmesh_NavMesh_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::NavMesh).name(); // rtti is literal storage + auto typeName = typeid(axis::NavMesh).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.NavMesh"; g_typeCast[typeName] = "cc.NavMesh"; return 1; diff --git a/extensions/scripting/lua-bindings/auto/lua_cocos2dx_physics3d_auto.cpp b/extensions/scripting/lua-bindings/auto/lua_cocos2dx_physics3d_auto.cpp index 925f48f84c..7afdd3e105 100644 --- a/extensions/scripting/lua-bindings/auto/lua_cocos2dx_physics3d_auto.cpp +++ b/extensions/scripting/lua-bindings/auto/lua_cocos2dx_physics3d_auto.cpp @@ -7,7 +7,7 @@ int lua_cocos2dx_physics3d_Physics3DShape_getbtShape(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DShape* cobj = nullptr; + axis::Physics3DShape* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -19,7 +19,7 @@ int lua_cocos2dx_physics3d_Physics3DShape_getbtShape(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DShape",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DShape*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DShape*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -54,7 +54,7 @@ int lua_cocos2dx_physics3d_Physics3DShape_getbtShape(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DShape_initSphere(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DShape* cobj = nullptr; + axis::Physics3DShape* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -66,7 +66,7 @@ int lua_cocos2dx_physics3d_Physics3DShape_initSphere(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DShape",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DShape*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DShape*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -104,7 +104,7 @@ int lua_cocos2dx_physics3d_Physics3DShape_initSphere(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DShape_initBox(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DShape* cobj = nullptr; + axis::Physics3DShape* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -116,7 +116,7 @@ int lua_cocos2dx_physics3d_Physics3DShape_initBox(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DShape",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DShape*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DShape*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -129,7 +129,7 @@ int lua_cocos2dx_physics3d_Physics3DShape_initBox(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec3 arg0; + axis::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.Physics3DShape:initBox"); if(!ok) @@ -154,7 +154,7 @@ int lua_cocos2dx_physics3d_Physics3DShape_initBox(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DShape_initCapsule(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DShape* cobj = nullptr; + axis::Physics3DShape* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -166,7 +166,7 @@ int lua_cocos2dx_physics3d_Physics3DShape_initCapsule(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DShape",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DShape*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DShape*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -207,7 +207,7 @@ int lua_cocos2dx_physics3d_Physics3DShape_initCapsule(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DShape_initCylinder(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DShape* cobj = nullptr; + axis::Physics3DShape* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -219,7 +219,7 @@ int lua_cocos2dx_physics3d_Physics3DShape_initCylinder(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DShape",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DShape*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DShape*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -260,7 +260,7 @@ int lua_cocos2dx_physics3d_Physics3DShape_initCylinder(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DShape_getShapeType(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DShape* cobj = nullptr; + axis::Physics3DShape* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -272,7 +272,7 @@ int lua_cocos2dx_physics3d_Physics3DShape_getShapeType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DShape",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DShape*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DShape*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -321,15 +321,15 @@ int lua_cocos2dx_physics3d_Physics3DShape_createBox(lua_State* tolua_S) if (argc == 1) { - cocos2d::Vec3 arg0; + axis::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.Physics3DShape:createBox"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DShape_createBox'", nullptr); return 0; } - cocos2d::Physics3DShape* ret = cocos2d::Physics3DShape::createBox(arg0); - object_to_luaval(tolua_S, "cc.Physics3DShape",(cocos2d::Physics3DShape*)ret); + axis::Physics3DShape* ret = axis::Physics3DShape::createBox(arg0); + object_to_luaval(tolua_S, "cc.Physics3DShape",(axis::Physics3DShape*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Physics3DShape:createBox",argc, 1); @@ -366,8 +366,8 @@ int lua_cocos2dx_physics3d_Physics3DShape_createCylinder(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DShape_createCylinder'", nullptr); return 0; } - cocos2d::Physics3DShape* ret = cocos2d::Physics3DShape::createCylinder(arg0, arg1); - object_to_luaval(tolua_S, "cc.Physics3DShape",(cocos2d::Physics3DShape*)ret); + axis::Physics3DShape* ret = axis::Physics3DShape::createCylinder(arg0, arg1); + object_to_luaval(tolua_S, "cc.Physics3DShape",(axis::Physics3DShape*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Physics3DShape:createCylinder",argc, 2); @@ -395,17 +395,17 @@ int lua_cocos2dx_physics3d_Physics3DShape_createConvexHull(lua_State* tolua_S) if (argc == 2) { - const cocos2d::Vec3* arg0; + const axis::Vec3* arg0; int arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.Vec3",&arg0, "cc.Physics3DShape:createConvexHull"); + ok &= luaval_to_object(tolua_S, 2, "cc.Vec3",&arg0, "cc.Physics3DShape:createConvexHull"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "cc.Physics3DShape:createConvexHull"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DShape_createConvexHull'", nullptr); return 0; } - cocos2d::Physics3DShape* ret = cocos2d::Physics3DShape::createConvexHull(arg0, arg1); - object_to_luaval(tolua_S, "cc.Physics3DShape",(cocos2d::Physics3DShape*)ret); + axis::Physics3DShape* ret = axis::Physics3DShape::createConvexHull(arg0, arg1); + object_to_luaval(tolua_S, "cc.Physics3DShape",(axis::Physics3DShape*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Physics3DShape:createConvexHull",argc, 2); @@ -442,8 +442,8 @@ int lua_cocos2dx_physics3d_Physics3DShape_createCapsule(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DShape_createCapsule'", nullptr); return 0; } - cocos2d::Physics3DShape* ret = cocos2d::Physics3DShape::createCapsule(arg0, arg1); - object_to_luaval(tolua_S, "cc.Physics3DShape",(cocos2d::Physics3DShape*)ret); + axis::Physics3DShape* ret = axis::Physics3DShape::createCapsule(arg0, arg1); + object_to_luaval(tolua_S, "cc.Physics3DShape",(axis::Physics3DShape*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Physics3DShape:createCapsule",argc, 2); @@ -478,8 +478,8 @@ int lua_cocos2dx_physics3d_Physics3DShape_createSphere(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DShape_createSphere'", nullptr); return 0; } - cocos2d::Physics3DShape* ret = cocos2d::Physics3DShape::createSphere(arg0); - object_to_luaval(tolua_S, "cc.Physics3DShape",(cocos2d::Physics3DShape*)ret); + axis::Physics3DShape* ret = axis::Physics3DShape::createSphere(arg0); + object_to_luaval(tolua_S, "cc.Physics3DShape",(axis::Physics3DShape*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Physics3DShape:createSphere",argc, 1); @@ -493,7 +493,7 @@ int lua_cocos2dx_physics3d_Physics3DShape_createSphere(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DShape_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DShape* cobj = nullptr; + axis::Physics3DShape* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -510,7 +510,7 @@ int lua_cocos2dx_physics3d_Physics3DShape_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DShape_constructor'", nullptr); return 0; } - cobj = new cocos2d::Physics3DShape(); + cobj = new axis::Physics3DShape(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -552,7 +552,7 @@ int lua_register_cocos2dx_physics3d_Physics3DShape(lua_State* tolua_S) tolua_function(tolua_S,"createCapsule", lua_cocos2dx_physics3d_Physics3DShape_createCapsule); tolua_function(tolua_S,"createSphere", lua_cocos2dx_physics3d_Physics3DShape_createSphere); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Physics3DShape).name(); // rtti is literal storage + auto typeName = typeid(axis::Physics3DShape).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Physics3DShape"; g_typeCast[typeName] = "cc.Physics3DShape"; return 1; @@ -561,7 +561,7 @@ int lua_register_cocos2dx_physics3d_Physics3DShape(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DObject_setUserData(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DObject* cobj = nullptr; + axis::Physics3DObject* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -573,7 +573,7 @@ int lua_cocos2dx_physics3d_Physics3DObject_setUserData(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DObject",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DObject*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DObject*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -612,7 +612,7 @@ int lua_cocos2dx_physics3d_Physics3DObject_setUserData(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DObject_getUserData(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DObject* cobj = nullptr; + axis::Physics3DObject* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -624,7 +624,7 @@ int lua_cocos2dx_physics3d_Physics3DObject_getUserData(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DObject",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DObject*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DObject*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -659,7 +659,7 @@ int lua_cocos2dx_physics3d_Physics3DObject_getUserData(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DObject_getObjType(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DObject* cobj = nullptr; + axis::Physics3DObject* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -671,7 +671,7 @@ int lua_cocos2dx_physics3d_Physics3DObject_getObjType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DObject",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DObject*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DObject*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -706,7 +706,7 @@ int lua_cocos2dx_physics3d_Physics3DObject_getObjType(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DObject_setPhysicsWorld(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DObject* cobj = nullptr; + axis::Physics3DObject* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -718,7 +718,7 @@ int lua_cocos2dx_physics3d_Physics3DObject_setPhysicsWorld(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DObject",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DObject*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DObject*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -731,9 +731,9 @@ int lua_cocos2dx_physics3d_Physics3DObject_setPhysicsWorld(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Physics3DWorld* arg0; + axis::Physics3DWorld* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DWorld",&arg0, "cc.Physics3DObject:setPhysicsWorld"); + ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DWorld",&arg0, "cc.Physics3DObject:setPhysicsWorld"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DObject_setPhysicsWorld'", nullptr); @@ -756,7 +756,7 @@ int lua_cocos2dx_physics3d_Physics3DObject_setPhysicsWorld(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DObject_getWorldTransform(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DObject* cobj = nullptr; + axis::Physics3DObject* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -768,7 +768,7 @@ int lua_cocos2dx_physics3d_Physics3DObject_getWorldTransform(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DObject",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DObject*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DObject*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -786,7 +786,7 @@ int lua_cocos2dx_physics3d_Physics3DObject_getWorldTransform(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DObject_getWorldTransform'", nullptr); return 0; } - cocos2d::Mat4 ret = cobj->getWorldTransform(); + axis::Mat4 ret = cobj->getWorldTransform(); mat4_to_luaval(tolua_S, ret); return 1; } @@ -803,7 +803,7 @@ int lua_cocos2dx_physics3d_Physics3DObject_getWorldTransform(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DObject_getPhysicsWorld(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DObject* cobj = nullptr; + axis::Physics3DObject* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -815,7 +815,7 @@ int lua_cocos2dx_physics3d_Physics3DObject_getPhysicsWorld(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DObject",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DObject*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DObject*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -833,8 +833,8 @@ int lua_cocos2dx_physics3d_Physics3DObject_getPhysicsWorld(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DObject_getPhysicsWorld'", nullptr); return 0; } - cocos2d::Physics3DWorld* ret = cobj->getPhysicsWorld(); - object_to_luaval(tolua_S, "cc.Physics3DWorld",(cocos2d::Physics3DWorld*)ret); + axis::Physics3DWorld* ret = cobj->getPhysicsWorld(); + object_to_luaval(tolua_S, "cc.Physics3DWorld",(axis::Physics3DWorld*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Physics3DObject:getPhysicsWorld",argc, 0); @@ -850,7 +850,7 @@ int lua_cocos2dx_physics3d_Physics3DObject_getPhysicsWorld(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DObject_setMask(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DObject* cobj = nullptr; + axis::Physics3DObject* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -862,7 +862,7 @@ int lua_cocos2dx_physics3d_Physics3DObject_setMask(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DObject",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DObject*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DObject*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -900,7 +900,7 @@ int lua_cocos2dx_physics3d_Physics3DObject_setMask(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DObject_getCollisionCallback(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DObject* cobj = nullptr; + axis::Physics3DObject* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -912,7 +912,7 @@ int lua_cocos2dx_physics3d_Physics3DObject_getCollisionCallback(lua_State* tolua if (!tolua_isusertype(tolua_S,1,"cc.Physics3DObject",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DObject*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DObject*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -930,7 +930,7 @@ int lua_cocos2dx_physics3d_Physics3DObject_getCollisionCallback(lua_State* tolua tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DObject_getCollisionCallback'", nullptr); return 0; } - const std::function& ret = cobj->getCollisionCallback(); + const std::function& ret = cobj->getCollisionCallback(); #pragma warning NO CONVERSION FROM NATIVE FOR std::function; return 1; } @@ -947,7 +947,7 @@ int lua_cocos2dx_physics3d_Physics3DObject_getCollisionCallback(lua_State* tolua int lua_cocos2dx_physics3d_Physics3DObject_getMask(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DObject* cobj = nullptr; + axis::Physics3DObject* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -959,7 +959,7 @@ int lua_cocos2dx_physics3d_Physics3DObject_getMask(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DObject",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DObject*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DObject*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -994,7 +994,7 @@ int lua_cocos2dx_physics3d_Physics3DObject_getMask(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DObject_needCollisionCallback(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DObject* cobj = nullptr; + axis::Physics3DObject* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1006,7 +1006,7 @@ int lua_cocos2dx_physics3d_Physics3DObject_needCollisionCallback(lua_State* tolu if (!tolua_isusertype(tolua_S,1,"cc.Physics3DObject",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DObject*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DObject*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1061,7 +1061,7 @@ int lua_register_cocos2dx_physics3d_Physics3DObject(lua_State* tolua_S) tolua_function(tolua_S,"getMask",lua_cocos2dx_physics3d_Physics3DObject_getMask); tolua_function(tolua_S,"needCollisionCallback",lua_cocos2dx_physics3d_Physics3DObject_needCollisionCallback); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Physics3DObject).name(); // rtti is literal storage + auto typeName = typeid(axis::Physics3DObject).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Physics3DObject"; g_typeCast[typeName] = "cc.Physics3DObject"; return 1; @@ -1070,7 +1070,7 @@ int lua_register_cocos2dx_physics3d_Physics3DObject(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DRigidBody_setGravity(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1082,7 +1082,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_setGravity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1095,7 +1095,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_setGravity(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec3 arg0; + axis::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.Physics3DRigidBody:setGravity"); if(!ok) @@ -1120,7 +1120,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_setGravity(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DRigidBody_getFriction(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1132,7 +1132,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getFriction(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1167,7 +1167,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getFriction(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DRigidBody_setAngularFactor(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -1176,7 +1176,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_setAngularFactor(lua_State* tolua_ #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -1199,7 +1199,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_setAngularFactor(lua_State* tolua_ ok = true; do{ if (argc == 1) { - cocos2d::Vec3 arg0; + axis::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.Physics3DRigidBody:setAngularFactor"); if (!ok) { break; } @@ -1222,7 +1222,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_setAngularFactor(lua_State* tolua_ int lua_cocos2dx_physics3d_Physics3DRigidBody_addConstraint(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1234,7 +1234,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_addConstraint(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1247,9 +1247,9 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_addConstraint(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Physics3DConstraint* arg0; + axis::Physics3DConstraint* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DConstraint",&arg0, "cc.Physics3DRigidBody:addConstraint"); + ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DConstraint",&arg0, "cc.Physics3DRigidBody:addConstraint"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DRigidBody_addConstraint'", nullptr); @@ -1272,7 +1272,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_addConstraint(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DRigidBody_getRigidBody(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1284,7 +1284,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getRigidBody(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1319,7 +1319,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getRigidBody(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DRigidBody_getTotalForce(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1331,7 +1331,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getTotalForce(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1349,7 +1349,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getTotalForce(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DRigidBody_getTotalForce'", nullptr); return 0; } - cocos2d::Vec3 ret = cobj->getTotalForce(); + axis::Vec3 ret = cobj->getTotalForce(); vec3_to_luaval(tolua_S, ret); return 1; } @@ -1366,7 +1366,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getTotalForce(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DRigidBody_getConstraintCount(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1378,7 +1378,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getConstraintCount(lua_State* tolu if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1413,7 +1413,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getConstraintCount(lua_State* tolu int lua_cocos2dx_physics3d_Physics3DRigidBody_applyCentralForce(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1425,7 +1425,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_applyCentralForce(lua_State* tolua if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1438,7 +1438,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_applyCentralForce(lua_State* tolua argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec3 arg0; + axis::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.Physics3DRigidBody:applyCentralForce"); if(!ok) @@ -1463,7 +1463,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_applyCentralForce(lua_State* tolua int lua_cocos2dx_physics3d_Physics3DRigidBody_setMassProps(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1475,7 +1475,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_setMassProps(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1489,7 +1489,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_setMassProps(lua_State* tolua_S) if (argc == 2) { double arg0; - cocos2d::Vec3 arg1; + axis::Vec3 arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.Physics3DRigidBody:setMassProps"); @@ -1516,7 +1516,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_setMassProps(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DRigidBody_setFriction(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1528,7 +1528,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_setFriction(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1566,7 +1566,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_setFriction(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DRigidBody_setKinematic(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1578,7 +1578,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_setKinematic(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1616,7 +1616,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_setKinematic(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DRigidBody_setDamping(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1628,7 +1628,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_setDamping(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1669,7 +1669,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_setDamping(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DRigidBody_applyImpulse(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1681,7 +1681,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_applyImpulse(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1694,8 +1694,8 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_applyImpulse(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::Vec3 arg0; - cocos2d::Vec3 arg1; + axis::Vec3 arg0; + axis::Vec3 arg1; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.Physics3DRigidBody:applyImpulse"); @@ -1722,7 +1722,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_applyImpulse(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DRigidBody_isKinematic(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1734,7 +1734,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_isKinematic(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1769,7 +1769,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_isKinematic(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DRigidBody_applyTorque(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1781,7 +1781,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_applyTorque(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1794,7 +1794,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_applyTorque(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec3 arg0; + axis::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.Physics3DRigidBody:applyTorque"); if(!ok) @@ -1819,7 +1819,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_applyTorque(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DRigidBody_setCcdMotionThreshold(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1831,7 +1831,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_setCcdMotionThreshold(lua_State* t if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1869,7 +1869,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_setCcdMotionThreshold(lua_State* t int lua_cocos2dx_physics3d_Physics3DRigidBody_setRollingFriction(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1881,7 +1881,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_setRollingFriction(lua_State* tolu if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1919,7 +1919,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_setRollingFriction(lua_State* tolu int lua_cocos2dx_physics3d_Physics3DRigidBody_getCcdMotionThreshold(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1931,7 +1931,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getCcdMotionThreshold(lua_State* t if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1966,7 +1966,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getCcdMotionThreshold(lua_State* t int lua_cocos2dx_physics3d_Physics3DRigidBody_getLinearFactor(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1978,7 +1978,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getLinearFactor(lua_State* tolua_S if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1996,7 +1996,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getLinearFactor(lua_State* tolua_S tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DRigidBody_getLinearFactor'", nullptr); return 0; } - cocos2d::Vec3 ret = cobj->getLinearFactor(); + axis::Vec3 ret = cobj->getLinearFactor(); vec3_to_luaval(tolua_S, ret); return 1; } @@ -2013,7 +2013,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getLinearFactor(lua_State* tolua_S int lua_cocos2dx_physics3d_Physics3DRigidBody_applyDamping(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2025,7 +2025,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_applyDamping(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2063,7 +2063,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_applyDamping(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DRigidBody_getAngularVelocity(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2075,7 +2075,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getAngularVelocity(lua_State* tolu if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2093,7 +2093,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getAngularVelocity(lua_State* tolu tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DRigidBody_getAngularVelocity'", nullptr); return 0; } - cocos2d::Vec3 ret = cobj->getAngularVelocity(); + axis::Vec3 ret = cobj->getAngularVelocity(); vec3_to_luaval(tolua_S, ret); return 1; } @@ -2110,7 +2110,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getAngularVelocity(lua_State* tolu int lua_cocos2dx_physics3d_Physics3DRigidBody_init(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2122,7 +2122,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2135,7 +2135,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_init(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Physics3DRigidBodyDes* arg0; + axis::Physics3DRigidBodyDes* arg0; #pragma warning NO CONVERSION TO NATIVE FOR Physics3DRigidBodyDes* ok = false; @@ -2161,7 +2161,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_init(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DRigidBody_applyTorqueImpulse(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2173,7 +2173,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_applyTorqueImpulse(lua_State* tolu if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2186,7 +2186,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_applyTorqueImpulse(lua_State* tolu argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec3 arg0; + axis::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.Physics3DRigidBody:applyTorqueImpulse"); if(!ok) @@ -2211,7 +2211,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_applyTorqueImpulse(lua_State* tolu int lua_cocos2dx_physics3d_Physics3DRigidBody_setActive(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2223,7 +2223,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_setActive(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2261,7 +2261,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_setActive(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DRigidBody_setLinearFactor(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2273,7 +2273,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_setLinearFactor(lua_State* tolua_S if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2286,7 +2286,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_setLinearFactor(lua_State* tolua_S argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec3 arg0; + axis::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.Physics3DRigidBody:setLinearFactor"); if(!ok) @@ -2311,7 +2311,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_setLinearFactor(lua_State* tolua_S int lua_cocos2dx_physics3d_Physics3DRigidBody_setLinearVelocity(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2323,7 +2323,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_setLinearVelocity(lua_State* tolua if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2336,7 +2336,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_setLinearVelocity(lua_State* tolua argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec3 arg0; + axis::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.Physics3DRigidBody:setLinearVelocity"); if(!ok) @@ -2361,7 +2361,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_setLinearVelocity(lua_State* tolua int lua_cocos2dx_physics3d_Physics3DRigidBody_getLinearVelocity(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2373,7 +2373,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getLinearVelocity(lua_State* tolua if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2391,7 +2391,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getLinearVelocity(lua_State* tolua tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DRigidBody_getLinearVelocity'", nullptr); return 0; } - cocos2d::Vec3 ret = cobj->getLinearVelocity(); + axis::Vec3 ret = cobj->getLinearVelocity(); vec3_to_luaval(tolua_S, ret); return 1; } @@ -2408,7 +2408,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getLinearVelocity(lua_State* tolua int lua_cocos2dx_physics3d_Physics3DRigidBody_setCcdSweptSphereRadius(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2420,7 +2420,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_setCcdSweptSphereRadius(lua_State* if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2458,7 +2458,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_setCcdSweptSphereRadius(lua_State* int lua_cocos2dx_physics3d_Physics3DRigidBody_applyForce(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2470,7 +2470,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_applyForce(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2483,8 +2483,8 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_applyForce(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::Vec3 arg0; - cocos2d::Vec3 arg1; + axis::Vec3 arg0; + axis::Vec3 arg1; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.Physics3DRigidBody:applyForce"); @@ -2511,7 +2511,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_applyForce(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DRigidBody_setAngularVelocity(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2523,7 +2523,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_setAngularVelocity(lua_State* tolu if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2536,7 +2536,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_setAngularVelocity(lua_State* tolu argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec3 arg0; + axis::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.Physics3DRigidBody:setAngularVelocity"); if(!ok) @@ -2561,7 +2561,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_setAngularVelocity(lua_State* tolu int lua_cocos2dx_physics3d_Physics3DRigidBody_applyCentralImpulse(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2573,7 +2573,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_applyCentralImpulse(lua_State* tol if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2586,7 +2586,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_applyCentralImpulse(lua_State* tol argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec3 arg0; + axis::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.Physics3DRigidBody:applyCentralImpulse"); if(!ok) @@ -2611,7 +2611,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_applyCentralImpulse(lua_State* tol int lua_cocos2dx_physics3d_Physics3DRigidBody_getGravity(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2623,7 +2623,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getGravity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2641,7 +2641,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getGravity(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DRigidBody_getGravity'", nullptr); return 0; } - cocos2d::Vec3 ret = cobj->getGravity(); + axis::Vec3 ret = cobj->getGravity(); vec3_to_luaval(tolua_S, ret); return 1; } @@ -2658,7 +2658,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getGravity(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DRigidBody_getRollingFriction(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2670,7 +2670,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getRollingFriction(lua_State* tolu if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2705,7 +2705,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getRollingFriction(lua_State* tolu int lua_cocos2dx_physics3d_Physics3DRigidBody_setCenterOfMassTransform(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2717,7 +2717,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_setCenterOfMassTransform(lua_State if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2730,7 +2730,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_setCenterOfMassTransform(lua_State argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Mat4 arg0; + axis::Mat4 arg0; ok &= luaval_to_mat4(tolua_S, 2, &arg0, "cc.Physics3DRigidBody:setCenterOfMassTransform"); if(!ok) @@ -2755,7 +2755,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_setCenterOfMassTransform(lua_State int lua_cocos2dx_physics3d_Physics3DRigidBody_setInvInertiaDiagLocal(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2767,7 +2767,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_setInvInertiaDiagLocal(lua_State* if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2780,7 +2780,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_setInvInertiaDiagLocal(lua_State* argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec3 arg0; + axis::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.Physics3DRigidBody:setInvInertiaDiagLocal"); if(!ok) @@ -2805,7 +2805,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_setInvInertiaDiagLocal(lua_State* int lua_cocos2dx_physics3d_Physics3DRigidBody_removeConstraint(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -2814,7 +2814,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_removeConstraint(lua_State* tolua_ #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -2837,8 +2837,8 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_removeConstraint(lua_State* tolua_ ok = true; do{ if (argc == 1) { - cocos2d::Physics3DConstraint* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DConstraint",&arg0, "cc.Physics3DRigidBody:removeConstraint"); + axis::Physics3DConstraint* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DConstraint",&arg0, "cc.Physics3DRigidBody:removeConstraint"); if (!ok) { break; } cobj->removeConstraint(arg0); @@ -2860,7 +2860,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_removeConstraint(lua_State* tolua_ int lua_cocos2dx_physics3d_Physics3DRigidBody_getTotalTorque(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2872,7 +2872,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getTotalTorque(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2890,7 +2890,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getTotalTorque(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DRigidBody_getTotalTorque'", nullptr); return 0; } - cocos2d::Vec3 ret = cobj->getTotalTorque(); + axis::Vec3 ret = cobj->getTotalTorque(); vec3_to_luaval(tolua_S, ret); return 1; } @@ -2907,7 +2907,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getTotalTorque(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DRigidBody_getInvMass(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2919,7 +2919,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getInvMass(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2954,7 +2954,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getInvMass(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DRigidBody_getConstraint(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2966,7 +2966,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getConstraint(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2987,8 +2987,8 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getConstraint(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DRigidBody_getConstraint'", nullptr); return 0; } - cocos2d::Physics3DConstraint* ret = cobj->getConstraint(arg0); - object_to_luaval(tolua_S, "cc.Physics3DConstraint",(cocos2d::Physics3DConstraint*)ret); + axis::Physics3DConstraint* ret = cobj->getConstraint(arg0); + object_to_luaval(tolua_S, "cc.Physics3DConstraint",(axis::Physics3DConstraint*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Physics3DRigidBody:getConstraint",argc, 1); @@ -3004,7 +3004,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getConstraint(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DRigidBody_getRestitution(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3016,7 +3016,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getRestitution(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3051,7 +3051,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getRestitution(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DRigidBody_getCcdSweptSphereRadius(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3063,7 +3063,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getCcdSweptSphereRadius(lua_State* if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3098,7 +3098,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getCcdSweptSphereRadius(lua_State* int lua_cocos2dx_physics3d_Physics3DRigidBody_getHitFraction(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3110,7 +3110,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getHitFraction(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3145,7 +3145,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getHitFraction(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DRigidBody_getAngularDamping(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3157,7 +3157,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getAngularDamping(lua_State* tolua if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3192,7 +3192,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getAngularDamping(lua_State* tolua int lua_cocos2dx_physics3d_Physics3DRigidBody_getInvInertiaDiagLocal(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3204,7 +3204,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getInvInertiaDiagLocal(lua_State* if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3222,7 +3222,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getInvInertiaDiagLocal(lua_State* tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DRigidBody_getInvInertiaDiagLocal'", nullptr); return 0; } - cocos2d::Vec3 ret = cobj->getInvInertiaDiagLocal(); + axis::Vec3 ret = cobj->getInvInertiaDiagLocal(); vec3_to_luaval(tolua_S, ret); return 1; } @@ -3239,7 +3239,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getInvInertiaDiagLocal(lua_State* int lua_cocos2dx_physics3d_Physics3DRigidBody_getCenterOfMassTransform(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3251,7 +3251,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getCenterOfMassTransform(lua_State if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3269,7 +3269,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getCenterOfMassTransform(lua_State tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DRigidBody_getCenterOfMassTransform'", nullptr); return 0; } - cocos2d::Mat4 ret = cobj->getCenterOfMassTransform(); + axis::Mat4 ret = cobj->getCenterOfMassTransform(); mat4_to_luaval(tolua_S, ret); return 1; } @@ -3286,7 +3286,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getCenterOfMassTransform(lua_State int lua_cocos2dx_physics3d_Physics3DRigidBody_getAngularFactor(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3298,7 +3298,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getAngularFactor(lua_State* tolua_ if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3316,7 +3316,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getAngularFactor(lua_State* tolua_ tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DRigidBody_getAngularFactor'", nullptr); return 0; } - cocos2d::Vec3 ret = cobj->getAngularFactor(); + axis::Vec3 ret = cobj->getAngularFactor(); vec3_to_luaval(tolua_S, ret); return 1; } @@ -3333,7 +3333,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getAngularFactor(lua_State* tolua_ int lua_cocos2dx_physics3d_Physics3DRigidBody_setRestitution(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3345,7 +3345,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_setRestitution(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3383,7 +3383,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_setRestitution(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DRigidBody_setHitFraction(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3395,7 +3395,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_setHitFraction(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3433,7 +3433,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_setHitFraction(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DRigidBody_getLinearDamping(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3445,7 +3445,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getLinearDamping(lua_State* tolua_ if (!tolua_isusertype(tolua_S,1,"cc.Physics3DRigidBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DRigidBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3480,7 +3480,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_getLinearDamping(lua_State* tolua_ int lua_cocos2dx_physics3d_Physics3DRigidBody_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DRigidBody* cobj = nullptr; + axis::Physics3DRigidBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3497,7 +3497,7 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DRigidBody_constructor'", nullptr); return 0; } - cobj = new cocos2d::Physics3DRigidBody(); + cobj = new axis::Physics3DRigidBody(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -3577,7 +3577,7 @@ int lua_register_cocos2dx_physics3d_Physics3DRigidBody(lua_State* tolua_S) tolua_function(tolua_S,"setHitFraction",lua_cocos2dx_physics3d_Physics3DRigidBody_setHitFraction); tolua_function(tolua_S,"getLinearDamping",lua_cocos2dx_physics3d_Physics3DRigidBody_getLinearDamping); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Physics3DRigidBody).name(); // rtti is literal storage + auto typeName = typeid(axis::Physics3DRigidBody).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Physics3DRigidBody"; g_typeCast[typeName] = "cc.Physics3DRigidBody"; return 1; @@ -3586,7 +3586,7 @@ int lua_register_cocos2dx_physics3d_Physics3DRigidBody(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DComponent_syncNodeToPhysics(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DComponent* cobj = nullptr; + axis::Physics3DComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3598,7 +3598,7 @@ int lua_cocos2dx_physics3d_Physics3DComponent_syncNodeToPhysics(lua_State* tolua if (!tolua_isusertype(tolua_S,1,"cc.Physics3DComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3633,7 +3633,7 @@ int lua_cocos2dx_physics3d_Physics3DComponent_syncNodeToPhysics(lua_State* tolua int lua_cocos2dx_physics3d_Physics3DComponent_addToPhysicsWorld(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DComponent* cobj = nullptr; + axis::Physics3DComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3645,7 +3645,7 @@ int lua_cocos2dx_physics3d_Physics3DComponent_addToPhysicsWorld(lua_State* tolua if (!tolua_isusertype(tolua_S,1,"cc.Physics3DComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3658,9 +3658,9 @@ int lua_cocos2dx_physics3d_Physics3DComponent_addToPhysicsWorld(lua_State* tolua argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Physics3DWorld* arg0; + axis::Physics3DWorld* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DWorld",&arg0, "cc.Physics3DComponent:addToPhysicsWorld"); + ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DWorld",&arg0, "cc.Physics3DComponent:addToPhysicsWorld"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DComponent_addToPhysicsWorld'", nullptr); @@ -3683,7 +3683,7 @@ int lua_cocos2dx_physics3d_Physics3DComponent_addToPhysicsWorld(lua_State* tolua int lua_cocos2dx_physics3d_Physics3DComponent_syncPhysicsToNode(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DComponent* cobj = nullptr; + axis::Physics3DComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3695,7 +3695,7 @@ int lua_cocos2dx_physics3d_Physics3DComponent_syncPhysicsToNode(lua_State* tolua if (!tolua_isusertype(tolua_S,1,"cc.Physics3DComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3730,7 +3730,7 @@ int lua_cocos2dx_physics3d_Physics3DComponent_syncPhysicsToNode(lua_State* tolua int lua_cocos2dx_physics3d_Physics3DComponent_getPhysics3DObject(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DComponent* cobj = nullptr; + axis::Physics3DComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3742,7 +3742,7 @@ int lua_cocos2dx_physics3d_Physics3DComponent_getPhysics3DObject(lua_State* tolu if (!tolua_isusertype(tolua_S,1,"cc.Physics3DComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3760,8 +3760,8 @@ int lua_cocos2dx_physics3d_Physics3DComponent_getPhysics3DObject(lua_State* tolu tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DComponent_getPhysics3DObject'", nullptr); return 0; } - cocos2d::Physics3DObject* ret = cobj->getPhysics3DObject(); - object_to_luaval(tolua_S, "cc.Physics3DObject",(cocos2d::Physics3DObject*)ret); + axis::Physics3DObject* ret = cobj->getPhysics3DObject(); + object_to_luaval(tolua_S, "cc.Physics3DObject",(axis::Physics3DObject*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Physics3DComponent:getPhysics3DObject",argc, 0); @@ -3777,7 +3777,7 @@ int lua_cocos2dx_physics3d_Physics3DComponent_getPhysics3DObject(lua_State* tolu int lua_cocos2dx_physics3d_Physics3DComponent_setPhysics3DObject(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DComponent* cobj = nullptr; + axis::Physics3DComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3789,7 +3789,7 @@ int lua_cocos2dx_physics3d_Physics3DComponent_setPhysics3DObject(lua_State* tolu if (!tolua_isusertype(tolua_S,1,"cc.Physics3DComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3802,9 +3802,9 @@ int lua_cocos2dx_physics3d_Physics3DComponent_setPhysics3DObject(lua_State* tolu argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Physics3DObject* arg0; + axis::Physics3DObject* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DObject",&arg0, "cc.Physics3DComponent:setPhysics3DObject"); + ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DObject",&arg0, "cc.Physics3DComponent:setPhysics3DObject"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DComponent_setPhysics3DObject'", nullptr); @@ -3827,7 +3827,7 @@ int lua_cocos2dx_physics3d_Physics3DComponent_setPhysics3DObject(lua_State* tolu int lua_cocos2dx_physics3d_Physics3DComponent_setSyncFlag(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DComponent* cobj = nullptr; + axis::Physics3DComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3839,7 +3839,7 @@ int lua_cocos2dx_physics3d_Physics3DComponent_setSyncFlag(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3852,7 +3852,7 @@ int lua_cocos2dx_physics3d_Physics3DComponent_setSyncFlag(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Physics3DComponent::PhysicsSyncFlag arg0; + axis::Physics3DComponent::PhysicsSyncFlag arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "cc.Physics3DComponent:setSyncFlag"); if(!ok) @@ -3896,7 +3896,7 @@ int lua_cocos2dx_physics3d_Physics3DComponent_getPhysics3DComponentName(lua_Stat tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DComponent_getPhysics3DComponentName'", nullptr); return 0; } - std::string& ret = cocos2d::Physics3DComponent::getPhysics3DComponentName(); + std::string& ret = axis::Physics3DComponent::getPhysics3DComponentName(); lua_pushlstring(tolua_S,ret.c_str(),ret.length()); return 1; } @@ -3911,7 +3911,7 @@ int lua_cocos2dx_physics3d_Physics3DComponent_getPhysics3DComponentName(lua_Stat int lua_cocos2dx_physics3d_Physics3DComponent_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DComponent* cobj = nullptr; + axis::Physics3DComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3928,7 +3928,7 @@ int lua_cocos2dx_physics3d_Physics3DComponent_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DComponent_constructor'", nullptr); return 0; } - cobj = new cocos2d::Physics3DComponent(); + cobj = new axis::Physics3DComponent(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -3966,7 +3966,7 @@ int lua_register_cocos2dx_physics3d_Physics3DComponent(lua_State* tolua_S) tolua_function(tolua_S,"setSyncFlag",lua_cocos2dx_physics3d_Physics3DComponent_setSyncFlag); tolua_function(tolua_S,"getPhysics3DComponentName", lua_cocos2dx_physics3d_Physics3DComponent_getPhysics3DComponentName); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Physics3DComponent).name(); // rtti is literal storage + auto typeName = typeid(axis::Physics3DComponent).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Physics3DComponent"; g_typeCast[typeName] = "cc.Physics3DComponent"; return 1; @@ -3975,7 +3975,7 @@ int lua_register_cocos2dx_physics3d_Physics3DComponent(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DWorld_setGravity(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DWorld* cobj = nullptr; + axis::Physics3DWorld* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3987,7 +3987,7 @@ int lua_cocos2dx_physics3d_Physics3DWorld_setGravity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DWorld",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4000,7 +4000,7 @@ int lua_cocos2dx_physics3d_Physics3DWorld_setGravity(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec3 arg0; + axis::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.Physics3DWorld:setGravity"); if(!ok) @@ -4025,7 +4025,7 @@ int lua_cocos2dx_physics3d_Physics3DWorld_setGravity(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DWorld_stepSimulate(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DWorld* cobj = nullptr; + axis::Physics3DWorld* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4037,7 +4037,7 @@ int lua_cocos2dx_physics3d_Physics3DWorld_stepSimulate(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DWorld",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4075,7 +4075,7 @@ int lua_cocos2dx_physics3d_Physics3DWorld_stepSimulate(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DWorld_needCollisionChecking(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DWorld* cobj = nullptr; + axis::Physics3DWorld* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4087,7 +4087,7 @@ int lua_cocos2dx_physics3d_Physics3DWorld_needCollisionChecking(lua_State* tolua if (!tolua_isusertype(tolua_S,1,"cc.Physics3DWorld",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4122,7 +4122,7 @@ int lua_cocos2dx_physics3d_Physics3DWorld_needCollisionChecking(lua_State* tolua int lua_cocos2dx_physics3d_Physics3DWorld_collisionChecking(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DWorld* cobj = nullptr; + axis::Physics3DWorld* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4134,7 +4134,7 @@ int lua_cocos2dx_physics3d_Physics3DWorld_collisionChecking(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DWorld",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4169,7 +4169,7 @@ int lua_cocos2dx_physics3d_Physics3DWorld_collisionChecking(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DWorld_setGhostPairCallback(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DWorld* cobj = nullptr; + axis::Physics3DWorld* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4181,7 +4181,7 @@ int lua_cocos2dx_physics3d_Physics3DWorld_setGhostPairCallback(lua_State* tolua_ if (!tolua_isusertype(tolua_S,1,"cc.Physics3DWorld",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4216,7 +4216,7 @@ int lua_cocos2dx_physics3d_Physics3DWorld_setGhostPairCallback(lua_State* tolua_ int lua_cocos2dx_physics3d_Physics3DWorld_removeAllPhysics3DObjects(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DWorld* cobj = nullptr; + axis::Physics3DWorld* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4228,7 +4228,7 @@ int lua_cocos2dx_physics3d_Physics3DWorld_removeAllPhysics3DObjects(lua_State* t if (!tolua_isusertype(tolua_S,1,"cc.Physics3DWorld",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4263,7 +4263,7 @@ int lua_cocos2dx_physics3d_Physics3DWorld_removeAllPhysics3DObjects(lua_State* t int lua_cocos2dx_physics3d_Physics3DWorld_isDebugDrawEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DWorld* cobj = nullptr; + axis::Physics3DWorld* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4275,7 +4275,7 @@ int lua_cocos2dx_physics3d_Physics3DWorld_isDebugDrawEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DWorld",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4310,7 +4310,7 @@ int lua_cocos2dx_physics3d_Physics3DWorld_isDebugDrawEnabled(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DWorld_removeAllPhysics3DConstraints(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DWorld* cobj = nullptr; + axis::Physics3DWorld* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4322,7 +4322,7 @@ int lua_cocos2dx_physics3d_Physics3DWorld_removeAllPhysics3DConstraints(lua_Stat if (!tolua_isusertype(tolua_S,1,"cc.Physics3DWorld",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4357,7 +4357,7 @@ int lua_cocos2dx_physics3d_Physics3DWorld_removeAllPhysics3DConstraints(lua_Stat int lua_cocos2dx_physics3d_Physics3DWorld_getGravity(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DWorld* cobj = nullptr; + axis::Physics3DWorld* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4369,7 +4369,7 @@ int lua_cocos2dx_physics3d_Physics3DWorld_getGravity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DWorld",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4387,7 +4387,7 @@ int lua_cocos2dx_physics3d_Physics3DWorld_getGravity(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DWorld_getGravity'", nullptr); return 0; } - cocos2d::Vec3 ret = cobj->getGravity(); + axis::Vec3 ret = cobj->getGravity(); vec3_to_luaval(tolua_S, ret); return 1; } @@ -4404,7 +4404,7 @@ int lua_cocos2dx_physics3d_Physics3DWorld_getGravity(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DWorld_removePhysics3DConstraint(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DWorld* cobj = nullptr; + axis::Physics3DWorld* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4416,7 +4416,7 @@ int lua_cocos2dx_physics3d_Physics3DWorld_removePhysics3DConstraint(lua_State* t if (!tolua_isusertype(tolua_S,1,"cc.Physics3DWorld",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4429,9 +4429,9 @@ int lua_cocos2dx_physics3d_Physics3DWorld_removePhysics3DConstraint(lua_State* t argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Physics3DConstraint* arg0; + axis::Physics3DConstraint* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DConstraint",&arg0, "cc.Physics3DWorld:removePhysics3DConstraint"); + ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DConstraint",&arg0, "cc.Physics3DWorld:removePhysics3DConstraint"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DWorld_removePhysics3DConstraint'", nullptr); @@ -4454,7 +4454,7 @@ int lua_cocos2dx_physics3d_Physics3DWorld_removePhysics3DConstraint(lua_State* t int lua_cocos2dx_physics3d_Physics3DWorld_addPhysics3DObject(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DWorld* cobj = nullptr; + axis::Physics3DWorld* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4466,7 +4466,7 @@ int lua_cocos2dx_physics3d_Physics3DWorld_addPhysics3DObject(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DWorld",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4479,9 +4479,9 @@ int lua_cocos2dx_physics3d_Physics3DWorld_addPhysics3DObject(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Physics3DObject* arg0; + axis::Physics3DObject* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DObject",&arg0, "cc.Physics3DWorld:addPhysics3DObject"); + ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DObject",&arg0, "cc.Physics3DWorld:addPhysics3DObject"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DWorld_addPhysics3DObject'", nullptr); @@ -4504,7 +4504,7 @@ int lua_cocos2dx_physics3d_Physics3DWorld_addPhysics3DObject(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DWorld_setDebugDrawEnable(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DWorld* cobj = nullptr; + axis::Physics3DWorld* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4516,7 +4516,7 @@ int lua_cocos2dx_physics3d_Physics3DWorld_setDebugDrawEnable(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DWorld",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4554,7 +4554,7 @@ int lua_cocos2dx_physics3d_Physics3DWorld_setDebugDrawEnable(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DWorld_removePhysics3DObject(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DWorld* cobj = nullptr; + axis::Physics3DWorld* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4566,7 +4566,7 @@ int lua_cocos2dx_physics3d_Physics3DWorld_removePhysics3DObject(lua_State* tolua if (!tolua_isusertype(tolua_S,1,"cc.Physics3DWorld",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4579,9 +4579,9 @@ int lua_cocos2dx_physics3d_Physics3DWorld_removePhysics3DObject(lua_State* tolua argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Physics3DObject* arg0; + axis::Physics3DObject* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DObject",&arg0, "cc.Physics3DWorld:removePhysics3DObject"); + ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DObject",&arg0, "cc.Physics3DWorld:removePhysics3DObject"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DWorld_removePhysics3DObject'", nullptr); @@ -4604,7 +4604,7 @@ int lua_cocos2dx_physics3d_Physics3DWorld_removePhysics3DObject(lua_State* tolua int lua_cocos2dx_physics3d_Physics3DWorld_addPhysics3DConstraint(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DWorld* cobj = nullptr; + axis::Physics3DWorld* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4616,7 +4616,7 @@ int lua_cocos2dx_physics3d_Physics3DWorld_addPhysics3DConstraint(lua_State* tolu if (!tolua_isusertype(tolua_S,1,"cc.Physics3DWorld",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4629,9 +4629,9 @@ int lua_cocos2dx_physics3d_Physics3DWorld_addPhysics3DConstraint(lua_State* tolu argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Physics3DConstraint* arg0; + axis::Physics3DConstraint* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DConstraint",&arg0, "cc.Physics3DWorld:addPhysics3DConstraint"); + ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DConstraint",&arg0, "cc.Physics3DWorld:addPhysics3DConstraint"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DWorld_addPhysics3DConstraint'", nullptr); @@ -4643,10 +4643,10 @@ int lua_cocos2dx_physics3d_Physics3DWorld_addPhysics3DConstraint(lua_State* tolu } if (argc == 2) { - cocos2d::Physics3DConstraint* arg0; + axis::Physics3DConstraint* arg0; bool arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DConstraint",&arg0, "cc.Physics3DWorld:addPhysics3DConstraint"); + ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DConstraint",&arg0, "cc.Physics3DWorld:addPhysics3DConstraint"); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.Physics3DWorld:addPhysics3DConstraint"); if(!ok) @@ -4671,7 +4671,7 @@ int lua_cocos2dx_physics3d_Physics3DWorld_addPhysics3DConstraint(lua_State* tolu int lua_cocos2dx_physics3d_Physics3DWorld_debugDraw(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DWorld* cobj = nullptr; + axis::Physics3DWorld* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4683,7 +4683,7 @@ int lua_cocos2dx_physics3d_Physics3DWorld_debugDraw(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DWorld",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DWorld*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4696,9 +4696,9 @@ int lua_cocos2dx_physics3d_Physics3DWorld_debugDraw(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Renderer* arg0; + axis::Renderer* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Renderer",&arg0, "cc.Physics3DWorld:debugDraw"); + ok &= luaval_to_object(tolua_S, 2, "cc.Renderer",&arg0, "cc.Physics3DWorld:debugDraw"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DWorld_debugDraw'", nullptr); @@ -4721,7 +4721,7 @@ int lua_cocos2dx_physics3d_Physics3DWorld_debugDraw(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DWorld_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DWorld* cobj = nullptr; + axis::Physics3DWorld* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4738,7 +4738,7 @@ int lua_cocos2dx_physics3d_Physics3DWorld_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DWorld_constructor'", nullptr); return 0; } - cobj = new cocos2d::Physics3DWorld(); + cobj = new axis::Physics3DWorld(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -4784,7 +4784,7 @@ int lua_register_cocos2dx_physics3d_Physics3DWorld(lua_State* tolua_S) tolua_function(tolua_S,"addPhysics3DConstraint",lua_cocos2dx_physics3d_Physics3DWorld_addPhysics3DConstraint); tolua_function(tolua_S,"debugDraw",lua_cocos2dx_physics3d_Physics3DWorld_debugDraw); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Physics3DWorld).name(); // rtti is literal storage + auto typeName = typeid(axis::Physics3DWorld).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Physics3DWorld"; g_typeCast[typeName] = "cc.Physics3DWorld"; return 1; @@ -4793,7 +4793,7 @@ int lua_register_cocos2dx_physics3d_Physics3DWorld(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DConstraint_setEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DConstraint* cobj = nullptr; + axis::Physics3DConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4805,7 +4805,7 @@ int lua_cocos2dx_physics3d_Physics3DConstraint_setEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4843,7 +4843,7 @@ int lua_cocos2dx_physics3d_Physics3DConstraint_setEnabled(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DConstraint_setBreakingImpulse(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DConstraint* cobj = nullptr; + axis::Physics3DConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4855,7 +4855,7 @@ int lua_cocos2dx_physics3d_Physics3DConstraint_setBreakingImpulse(lua_State* tol if (!tolua_isusertype(tolua_S,1,"cc.Physics3DConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4893,7 +4893,7 @@ int lua_cocos2dx_physics3d_Physics3DConstraint_setBreakingImpulse(lua_State* tol int lua_cocos2dx_physics3d_Physics3DConstraint_getUserData(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DConstraint* cobj = nullptr; + axis::Physics3DConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4905,7 +4905,7 @@ int lua_cocos2dx_physics3d_Physics3DConstraint_getUserData(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4940,7 +4940,7 @@ int lua_cocos2dx_physics3d_Physics3DConstraint_getUserData(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DConstraint_getBreakingImpulse(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DConstraint* cobj = nullptr; + axis::Physics3DConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4952,7 +4952,7 @@ int lua_cocos2dx_physics3d_Physics3DConstraint_getBreakingImpulse(lua_State* tol if (!tolua_isusertype(tolua_S,1,"cc.Physics3DConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4987,7 +4987,7 @@ int lua_cocos2dx_physics3d_Physics3DConstraint_getBreakingImpulse(lua_State* tol int lua_cocos2dx_physics3d_Physics3DConstraint_getBodyA(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DConstraint* cobj = nullptr; + axis::Physics3DConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4999,7 +4999,7 @@ int lua_cocos2dx_physics3d_Physics3DConstraint_getBodyA(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5017,8 +5017,8 @@ int lua_cocos2dx_physics3d_Physics3DConstraint_getBodyA(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DConstraint_getBodyA'", nullptr); return 0; } - cocos2d::Physics3DRigidBody* ret = cobj->getBodyA(); - object_to_luaval(tolua_S, "cc.Physics3DRigidBody",(cocos2d::Physics3DRigidBody*)ret); + axis::Physics3DRigidBody* ret = cobj->getBodyA(); + object_to_luaval(tolua_S, "cc.Physics3DRigidBody",(axis::Physics3DRigidBody*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Physics3DConstraint:getBodyA",argc, 0); @@ -5034,7 +5034,7 @@ int lua_cocos2dx_physics3d_Physics3DConstraint_getBodyA(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DConstraint_isEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DConstraint* cobj = nullptr; + axis::Physics3DConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5046,7 +5046,7 @@ int lua_cocos2dx_physics3d_Physics3DConstraint_isEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5081,7 +5081,7 @@ int lua_cocos2dx_physics3d_Physics3DConstraint_isEnabled(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DConstraint_getOverrideNumSolverIterations(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DConstraint* cobj = nullptr; + axis::Physics3DConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5093,7 +5093,7 @@ int lua_cocos2dx_physics3d_Physics3DConstraint_getOverrideNumSolverIterations(lu if (!tolua_isusertype(tolua_S,1,"cc.Physics3DConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5128,7 +5128,7 @@ int lua_cocos2dx_physics3d_Physics3DConstraint_getOverrideNumSolverIterations(lu int lua_cocos2dx_physics3d_Physics3DConstraint_getBodyB(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DConstraint* cobj = nullptr; + axis::Physics3DConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5140,7 +5140,7 @@ int lua_cocos2dx_physics3d_Physics3DConstraint_getBodyB(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5158,8 +5158,8 @@ int lua_cocos2dx_physics3d_Physics3DConstraint_getBodyB(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DConstraint_getBodyB'", nullptr); return 0; } - cocos2d::Physics3DRigidBody* ret = cobj->getBodyB(); - object_to_luaval(tolua_S, "cc.Physics3DRigidBody",(cocos2d::Physics3DRigidBody*)ret); + axis::Physics3DRigidBody* ret = cobj->getBodyB(); + object_to_luaval(tolua_S, "cc.Physics3DRigidBody",(axis::Physics3DRigidBody*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Physics3DConstraint:getBodyB",argc, 0); @@ -5175,7 +5175,7 @@ int lua_cocos2dx_physics3d_Physics3DConstraint_getBodyB(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DConstraint_setOverrideNumSolverIterations(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DConstraint* cobj = nullptr; + axis::Physics3DConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5187,7 +5187,7 @@ int lua_cocos2dx_physics3d_Physics3DConstraint_setOverrideNumSolverIterations(lu if (!tolua_isusertype(tolua_S,1,"cc.Physics3DConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5225,7 +5225,7 @@ int lua_cocos2dx_physics3d_Physics3DConstraint_setOverrideNumSolverIterations(lu int lua_cocos2dx_physics3d_Physics3DConstraint_getConstraintType(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DConstraint* cobj = nullptr; + axis::Physics3DConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5237,7 +5237,7 @@ int lua_cocos2dx_physics3d_Physics3DConstraint_getConstraintType(lua_State* tolu if (!tolua_isusertype(tolua_S,1,"cc.Physics3DConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5272,7 +5272,7 @@ int lua_cocos2dx_physics3d_Physics3DConstraint_getConstraintType(lua_State* tolu int lua_cocos2dx_physics3d_Physics3DConstraint_setUserData(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DConstraint* cobj = nullptr; + axis::Physics3DConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5284,7 +5284,7 @@ int lua_cocos2dx_physics3d_Physics3DConstraint_setUserData(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5323,7 +5323,7 @@ int lua_cocos2dx_physics3d_Physics3DConstraint_setUserData(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DConstraint_getbtContraint(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DConstraint* cobj = nullptr; + axis::Physics3DConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5335,7 +5335,7 @@ int lua_cocos2dx_physics3d_Physics3DConstraint_getbtContraint(lua_State* tolua_S if (!tolua_isusertype(tolua_S,1,"cc.Physics3DConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5392,7 +5392,7 @@ int lua_register_cocos2dx_physics3d_Physics3DConstraint(lua_State* tolua_S) tolua_function(tolua_S,"setUserData",lua_cocos2dx_physics3d_Physics3DConstraint_setUserData); tolua_function(tolua_S,"getbtContraint",lua_cocos2dx_physics3d_Physics3DConstraint_getbtContraint); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Physics3DConstraint).name(); // rtti is literal storage + auto typeName = typeid(axis::Physics3DConstraint).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Physics3DConstraint"; g_typeCast[typeName] = "cc.Physics3DConstraint"; return 1; @@ -5401,7 +5401,7 @@ int lua_register_cocos2dx_physics3d_Physics3DConstraint(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DPointToPointConstraint_getPivotPointInA(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DPointToPointConstraint* cobj = nullptr; + axis::Physics3DPointToPointConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5413,7 +5413,7 @@ int lua_cocos2dx_physics3d_Physics3DPointToPointConstraint_getPivotPointInA(lua_ if (!tolua_isusertype(tolua_S,1,"cc.Physics3DPointToPointConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DPointToPointConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DPointToPointConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5431,7 +5431,7 @@ int lua_cocos2dx_physics3d_Physics3DPointToPointConstraint_getPivotPointInA(lua_ tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DPointToPointConstraint_getPivotPointInA'", nullptr); return 0; } - cocos2d::Vec3 ret = cobj->getPivotPointInA(); + axis::Vec3 ret = cobj->getPivotPointInA(); vec3_to_luaval(tolua_S, ret); return 1; } @@ -5448,7 +5448,7 @@ int lua_cocos2dx_physics3d_Physics3DPointToPointConstraint_getPivotPointInA(lua_ int lua_cocos2dx_physics3d_Physics3DPointToPointConstraint_getPivotPointInB(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DPointToPointConstraint* cobj = nullptr; + axis::Physics3DPointToPointConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5460,7 +5460,7 @@ int lua_cocos2dx_physics3d_Physics3DPointToPointConstraint_getPivotPointInB(lua_ if (!tolua_isusertype(tolua_S,1,"cc.Physics3DPointToPointConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DPointToPointConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DPointToPointConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5478,7 +5478,7 @@ int lua_cocos2dx_physics3d_Physics3DPointToPointConstraint_getPivotPointInB(lua_ tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DPointToPointConstraint_getPivotPointInB'", nullptr); return 0; } - cocos2d::Vec3 ret = cobj->getPivotPointInB(); + axis::Vec3 ret = cobj->getPivotPointInB(); vec3_to_luaval(tolua_S, ret); return 1; } @@ -5495,7 +5495,7 @@ int lua_cocos2dx_physics3d_Physics3DPointToPointConstraint_getPivotPointInB(lua_ int lua_cocos2dx_physics3d_Physics3DPointToPointConstraint_init(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DPointToPointConstraint* cobj = nullptr; + axis::Physics3DPointToPointConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -5504,7 +5504,7 @@ int lua_cocos2dx_physics3d_Physics3DPointToPointConstraint_init(lua_State* tolua #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Physics3DPointToPointConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DPointToPointConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DPointToPointConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -5515,19 +5515,19 @@ int lua_cocos2dx_physics3d_Physics3DPointToPointConstraint_init(lua_State* tolua argc = lua_gettop(tolua_S)-1; do{ if (argc == 4) { - cocos2d::Physics3DRigidBody* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DRigidBody",&arg0, "cc.Physics3DPointToPointConstraint:init"); + axis::Physics3DRigidBody* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DRigidBody",&arg0, "cc.Physics3DPointToPointConstraint:init"); if (!ok) { break; } - cocos2d::Physics3DRigidBody* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Physics3DRigidBody",&arg1, "cc.Physics3DPointToPointConstraint:init"); + axis::Physics3DRigidBody* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Physics3DRigidBody",&arg1, "cc.Physics3DPointToPointConstraint:init"); if (!ok) { break; } - cocos2d::Vec3 arg2; + axis::Vec3 arg2; ok &= luaval_to_vec3(tolua_S, 4, &arg2, "cc.Physics3DPointToPointConstraint:init"); if (!ok) { break; } - cocos2d::Vec3 arg3; + axis::Vec3 arg3; ok &= luaval_to_vec3(tolua_S, 5, &arg3, "cc.Physics3DPointToPointConstraint:init"); if (!ok) { break; } @@ -5539,11 +5539,11 @@ int lua_cocos2dx_physics3d_Physics3DPointToPointConstraint_init(lua_State* tolua ok = true; do{ if (argc == 2) { - cocos2d::Physics3DRigidBody* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DRigidBody",&arg0, "cc.Physics3DPointToPointConstraint:init"); + axis::Physics3DRigidBody* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DRigidBody",&arg0, "cc.Physics3DPointToPointConstraint:init"); if (!ok) { break; } - cocos2d::Vec3 arg1; + axis::Vec3 arg1; ok &= luaval_to_vec3(tolua_S, 3, &arg1, "cc.Physics3DPointToPointConstraint:init"); if (!ok) { break; } @@ -5566,7 +5566,7 @@ int lua_cocos2dx_physics3d_Physics3DPointToPointConstraint_init(lua_State* tolua int lua_cocos2dx_physics3d_Physics3DPointToPointConstraint_setPivotPointInA(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DPointToPointConstraint* cobj = nullptr; + axis::Physics3DPointToPointConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5578,7 +5578,7 @@ int lua_cocos2dx_physics3d_Physics3DPointToPointConstraint_setPivotPointInA(lua_ if (!tolua_isusertype(tolua_S,1,"cc.Physics3DPointToPointConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DPointToPointConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DPointToPointConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5591,7 +5591,7 @@ int lua_cocos2dx_physics3d_Physics3DPointToPointConstraint_setPivotPointInA(lua_ argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec3 arg0; + axis::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.Physics3DPointToPointConstraint:setPivotPointInA"); if(!ok) @@ -5616,7 +5616,7 @@ int lua_cocos2dx_physics3d_Physics3DPointToPointConstraint_setPivotPointInA(lua_ int lua_cocos2dx_physics3d_Physics3DPointToPointConstraint_setPivotPointInB(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DPointToPointConstraint* cobj = nullptr; + axis::Physics3DPointToPointConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5628,7 +5628,7 @@ int lua_cocos2dx_physics3d_Physics3DPointToPointConstraint_setPivotPointInB(lua_ if (!tolua_isusertype(tolua_S,1,"cc.Physics3DPointToPointConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DPointToPointConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DPointToPointConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5641,7 +5641,7 @@ int lua_cocos2dx_physics3d_Physics3DPointToPointConstraint_setPivotPointInB(lua_ argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec3 arg0; + axis::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.Physics3DPointToPointConstraint:setPivotPointInB"); if(!ok) @@ -5681,20 +5681,20 @@ int lua_cocos2dx_physics3d_Physics3DPointToPointConstraint_create(lua_State* tol { if (argc == 4) { - cocos2d::Physics3DRigidBody* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DRigidBody",&arg0, "cc.Physics3DPointToPointConstraint:create"); + axis::Physics3DRigidBody* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DRigidBody",&arg0, "cc.Physics3DPointToPointConstraint:create"); if (!ok) { break; } - cocos2d::Physics3DRigidBody* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Physics3DRigidBody",&arg1, "cc.Physics3DPointToPointConstraint:create"); + axis::Physics3DRigidBody* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Physics3DRigidBody",&arg1, "cc.Physics3DPointToPointConstraint:create"); if (!ok) { break; } - cocos2d::Vec3 arg2; + axis::Vec3 arg2; ok &= luaval_to_vec3(tolua_S, 4, &arg2, "cc.Physics3DPointToPointConstraint:create"); if (!ok) { break; } - cocos2d::Vec3 arg3; + axis::Vec3 arg3; ok &= luaval_to_vec3(tolua_S, 5, &arg3, "cc.Physics3DPointToPointConstraint:create"); if (!ok) { break; } - cocos2d::Physics3DPointToPointConstraint* ret = cocos2d::Physics3DPointToPointConstraint::create(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.Physics3DPointToPointConstraint",(cocos2d::Physics3DPointToPointConstraint*)ret); + axis::Physics3DPointToPointConstraint* ret = axis::Physics3DPointToPointConstraint::create(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.Physics3DPointToPointConstraint",(axis::Physics3DPointToPointConstraint*)ret); return 1; } } while (0); @@ -5703,14 +5703,14 @@ int lua_cocos2dx_physics3d_Physics3DPointToPointConstraint_create(lua_State* tol { if (argc == 2) { - cocos2d::Physics3DRigidBody* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DRigidBody",&arg0, "cc.Physics3DPointToPointConstraint:create"); + axis::Physics3DRigidBody* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DRigidBody",&arg0, "cc.Physics3DPointToPointConstraint:create"); if (!ok) { break; } - cocos2d::Vec3 arg1; + axis::Vec3 arg1; ok &= luaval_to_vec3(tolua_S, 3, &arg1, "cc.Physics3DPointToPointConstraint:create"); if (!ok) { break; } - cocos2d::Physics3DPointToPointConstraint* ret = cocos2d::Physics3DPointToPointConstraint::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.Physics3DPointToPointConstraint",(cocos2d::Physics3DPointToPointConstraint*)ret); + axis::Physics3DPointToPointConstraint* ret = axis::Physics3DPointToPointConstraint::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.Physics3DPointToPointConstraint",(axis::Physics3DPointToPointConstraint*)ret); return 1; } } while (0); @@ -5726,7 +5726,7 @@ int lua_cocos2dx_physics3d_Physics3DPointToPointConstraint_create(lua_State* tol int lua_cocos2dx_physics3d_Physics3DPointToPointConstraint_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DPointToPointConstraint* cobj = nullptr; + axis::Physics3DPointToPointConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5743,7 +5743,7 @@ int lua_cocos2dx_physics3d_Physics3DPointToPointConstraint_constructor(lua_State tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DPointToPointConstraint_constructor'", nullptr); return 0; } - cobj = new cocos2d::Physics3DPointToPointConstraint(); + cobj = new axis::Physics3DPointToPointConstraint(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -5780,7 +5780,7 @@ int lua_register_cocos2dx_physics3d_Physics3DPointToPointConstraint(lua_State* t tolua_function(tolua_S,"setPivotPointInB",lua_cocos2dx_physics3d_Physics3DPointToPointConstraint_setPivotPointInB); tolua_function(tolua_S,"create", lua_cocos2dx_physics3d_Physics3DPointToPointConstraint_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Physics3DPointToPointConstraint).name(); // rtti is literal storage + auto typeName = typeid(axis::Physics3DPointToPointConstraint).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Physics3DPointToPointConstraint"; g_typeCast[typeName] = "cc.Physics3DPointToPointConstraint"; return 1; @@ -5789,7 +5789,7 @@ int lua_register_cocos2dx_physics3d_Physics3DPointToPointConstraint(lua_State* t int lua_cocos2dx_physics3d_Physics3DHingeConstraint_getHingeAngle(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DHingeConstraint* cobj = nullptr; + axis::Physics3DHingeConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -5798,7 +5798,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_getHingeAngle(lua_State* tol #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.Physics3DHingeConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -5809,11 +5809,11 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_getHingeAngle(lua_State* tol argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { - cocos2d::Mat4 arg0; + axis::Mat4 arg0; ok &= luaval_to_mat4(tolua_S, 2, &arg0, "cc.Physics3DHingeConstraint:getHingeAngle"); if (!ok) { break; } - cocos2d::Mat4 arg1; + axis::Mat4 arg1; ok &= luaval_to_mat4(tolua_S, 3, &arg1, "cc.Physics3DHingeConstraint:getHingeAngle"); if (!ok) { break; } @@ -5844,7 +5844,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_getHingeAngle(lua_State* tol int lua_cocos2dx_physics3d_Physics3DHingeConstraint_getMotorTargetVelosity(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DHingeConstraint* cobj = nullptr; + axis::Physics3DHingeConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5856,7 +5856,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_getMotorTargetVelosity(lua_S if (!tolua_isusertype(tolua_S,1,"cc.Physics3DHingeConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5891,7 +5891,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_getMotorTargetVelosity(lua_S int lua_cocos2dx_physics3d_Physics3DHingeConstraint_getFrameOffsetA(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DHingeConstraint* cobj = nullptr; + axis::Physics3DHingeConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5903,7 +5903,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_getFrameOffsetA(lua_State* t if (!tolua_isusertype(tolua_S,1,"cc.Physics3DHingeConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5921,7 +5921,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_getFrameOffsetA(lua_State* t tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DHingeConstraint_getFrameOffsetA'", nullptr); return 0; } - cocos2d::Mat4 ret = cobj->getFrameOffsetA(); + axis::Mat4 ret = cobj->getFrameOffsetA(); mat4_to_luaval(tolua_S, ret); return 1; } @@ -5938,7 +5938,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_getFrameOffsetA(lua_State* t int lua_cocos2dx_physics3d_Physics3DHingeConstraint_getFrameOffsetB(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DHingeConstraint* cobj = nullptr; + axis::Physics3DHingeConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5950,7 +5950,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_getFrameOffsetB(lua_State* t if (!tolua_isusertype(tolua_S,1,"cc.Physics3DHingeConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5968,7 +5968,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_getFrameOffsetB(lua_State* t tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DHingeConstraint_getFrameOffsetB'", nullptr); return 0; } - cocos2d::Mat4 ret = cobj->getFrameOffsetB(); + axis::Mat4 ret = cobj->getFrameOffsetB(); mat4_to_luaval(tolua_S, ret); return 1; } @@ -5985,7 +5985,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_getFrameOffsetB(lua_State* t int lua_cocos2dx_physics3d_Physics3DHingeConstraint_setMaxMotorImpulse(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DHingeConstraint* cobj = nullptr; + axis::Physics3DHingeConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5997,7 +5997,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_setMaxMotorImpulse(lua_State if (!tolua_isusertype(tolua_S,1,"cc.Physics3DHingeConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6035,7 +6035,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_setMaxMotorImpulse(lua_State int lua_cocos2dx_physics3d_Physics3DHingeConstraint_enableAngularMotor(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DHingeConstraint* cobj = nullptr; + axis::Physics3DHingeConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6047,7 +6047,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_enableAngularMotor(lua_State if (!tolua_isusertype(tolua_S,1,"cc.Physics3DHingeConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6091,7 +6091,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_enableAngularMotor(lua_State int lua_cocos2dx_physics3d_Physics3DHingeConstraint_getUpperLimit(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DHingeConstraint* cobj = nullptr; + axis::Physics3DHingeConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6103,7 +6103,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_getUpperLimit(lua_State* tol if (!tolua_isusertype(tolua_S,1,"cc.Physics3DHingeConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6138,7 +6138,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_getUpperLimit(lua_State* tol int lua_cocos2dx_physics3d_Physics3DHingeConstraint_getMaxMotorImpulse(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DHingeConstraint* cobj = nullptr; + axis::Physics3DHingeConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6150,7 +6150,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_getMaxMotorImpulse(lua_State if (!tolua_isusertype(tolua_S,1,"cc.Physics3DHingeConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6185,7 +6185,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_getMaxMotorImpulse(lua_State int lua_cocos2dx_physics3d_Physics3DHingeConstraint_getLowerLimit(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DHingeConstraint* cobj = nullptr; + axis::Physics3DHingeConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6197,7 +6197,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_getLowerLimit(lua_State* tol if (!tolua_isusertype(tolua_S,1,"cc.Physics3DHingeConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6232,7 +6232,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_getLowerLimit(lua_State* tol int lua_cocos2dx_physics3d_Physics3DHingeConstraint_setUseFrameOffset(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DHingeConstraint* cobj = nullptr; + axis::Physics3DHingeConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6244,7 +6244,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_setUseFrameOffset(lua_State* if (!tolua_isusertype(tolua_S,1,"cc.Physics3DHingeConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6282,7 +6282,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_setUseFrameOffset(lua_State* int lua_cocos2dx_physics3d_Physics3DHingeConstraint_getEnableAngularMotor(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DHingeConstraint* cobj = nullptr; + axis::Physics3DHingeConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6294,7 +6294,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_getEnableAngularMotor(lua_St if (!tolua_isusertype(tolua_S,1,"cc.Physics3DHingeConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6329,7 +6329,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_getEnableAngularMotor(lua_St int lua_cocos2dx_physics3d_Physics3DHingeConstraint_enableMotor(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DHingeConstraint* cobj = nullptr; + axis::Physics3DHingeConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6341,7 +6341,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_enableMotor(lua_State* tolua if (!tolua_isusertype(tolua_S,1,"cc.Physics3DHingeConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6379,7 +6379,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_enableMotor(lua_State* tolua int lua_cocos2dx_physics3d_Physics3DHingeConstraint_getBFrame(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DHingeConstraint* cobj = nullptr; + axis::Physics3DHingeConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6391,7 +6391,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_getBFrame(lua_State* tolua_S if (!tolua_isusertype(tolua_S,1,"cc.Physics3DHingeConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6409,7 +6409,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_getBFrame(lua_State* tolua_S tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DHingeConstraint_getBFrame'", nullptr); return 0; } - cocos2d::Mat4 ret = cobj->getBFrame(); + axis::Mat4 ret = cobj->getBFrame(); mat4_to_luaval(tolua_S, ret); return 1; } @@ -6426,7 +6426,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_getBFrame(lua_State* tolua_S int lua_cocos2dx_physics3d_Physics3DHingeConstraint_setFrames(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DHingeConstraint* cobj = nullptr; + axis::Physics3DHingeConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6438,7 +6438,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_setFrames(lua_State* tolua_S if (!tolua_isusertype(tolua_S,1,"cc.Physics3DHingeConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6451,8 +6451,8 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_setFrames(lua_State* tolua_S argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::Mat4 arg0; - cocos2d::Mat4 arg1; + axis::Mat4 arg0; + axis::Mat4 arg1; ok &= luaval_to_mat4(tolua_S, 2, &arg0, "cc.Physics3DHingeConstraint:setFrames"); @@ -6479,7 +6479,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_setFrames(lua_State* tolua_S int lua_cocos2dx_physics3d_Physics3DHingeConstraint_getUseFrameOffset(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DHingeConstraint* cobj = nullptr; + axis::Physics3DHingeConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6491,7 +6491,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_getUseFrameOffset(lua_State* if (!tolua_isusertype(tolua_S,1,"cc.Physics3DHingeConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6526,7 +6526,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_getUseFrameOffset(lua_State* int lua_cocos2dx_physics3d_Physics3DHingeConstraint_setAngularOnly(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DHingeConstraint* cobj = nullptr; + axis::Physics3DHingeConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6538,7 +6538,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_setAngularOnly(lua_State* to if (!tolua_isusertype(tolua_S,1,"cc.Physics3DHingeConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6576,7 +6576,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_setAngularOnly(lua_State* to int lua_cocos2dx_physics3d_Physics3DHingeConstraint_setLimit(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DHingeConstraint* cobj = nullptr; + axis::Physics3DHingeConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6588,7 +6588,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_setLimit(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DHingeConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6698,7 +6698,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_setLimit(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DHingeConstraint_getAngularOnly(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DHingeConstraint* cobj = nullptr; + axis::Physics3DHingeConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6710,7 +6710,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_getAngularOnly(lua_State* to if (!tolua_isusertype(tolua_S,1,"cc.Physics3DHingeConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6745,7 +6745,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_getAngularOnly(lua_State* to int lua_cocos2dx_physics3d_Physics3DHingeConstraint_setAxis(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DHingeConstraint* cobj = nullptr; + axis::Physics3DHingeConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6757,7 +6757,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_setAxis(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3DHingeConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6770,7 +6770,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_setAxis(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec3 arg0; + axis::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.Physics3DHingeConstraint:setAxis"); if(!ok) @@ -6795,7 +6795,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_setAxis(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DHingeConstraint_getAFrame(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DHingeConstraint* cobj = nullptr; + axis::Physics3DHingeConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6807,7 +6807,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_getAFrame(lua_State* tolua_S if (!tolua_isusertype(tolua_S,1,"cc.Physics3DHingeConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DHingeConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6825,7 +6825,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_getAFrame(lua_State* tolua_S tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DHingeConstraint_getAFrame'", nullptr); return 0; } - cocos2d::Mat4 ret = cobj->getAFrame(); + axis::Mat4 ret = cobj->getAFrame(); mat4_to_luaval(tolua_S, ret); return 1; } @@ -6857,17 +6857,17 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_create(lua_State* tolua_S) { if (argc == 3) { - cocos2d::Physics3DRigidBody* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DRigidBody",&arg0, "cc.Physics3DHingeConstraint:create"); + axis::Physics3DRigidBody* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DRigidBody",&arg0, "cc.Physics3DHingeConstraint:create"); if (!ok) { break; } - cocos2d::Vec3 arg1; + axis::Vec3 arg1; ok &= luaval_to_vec3(tolua_S, 3, &arg1, "cc.Physics3DHingeConstraint:create"); if (!ok) { break; } - cocos2d::Vec3 arg2; + axis::Vec3 arg2; ok &= luaval_to_vec3(tolua_S, 4, &arg2, "cc.Physics3DHingeConstraint:create"); if (!ok) { break; } - cocos2d::Physics3DHingeConstraint* ret = cocos2d::Physics3DHingeConstraint::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.Physics3DHingeConstraint",(cocos2d::Physics3DHingeConstraint*)ret); + axis::Physics3DHingeConstraint* ret = axis::Physics3DHingeConstraint::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.Physics3DHingeConstraint",(axis::Physics3DHingeConstraint*)ret); return 1; } } while (0); @@ -6876,20 +6876,20 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_create(lua_State* tolua_S) { if (argc == 4) { - cocos2d::Physics3DRigidBody* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DRigidBody",&arg0, "cc.Physics3DHingeConstraint:create"); + axis::Physics3DRigidBody* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DRigidBody",&arg0, "cc.Physics3DHingeConstraint:create"); if (!ok) { break; } - cocos2d::Vec3 arg1; + axis::Vec3 arg1; ok &= luaval_to_vec3(tolua_S, 3, &arg1, "cc.Physics3DHingeConstraint:create"); if (!ok) { break; } - cocos2d::Vec3 arg2; + axis::Vec3 arg2; ok &= luaval_to_vec3(tolua_S, 4, &arg2, "cc.Physics3DHingeConstraint:create"); if (!ok) { break; } bool arg3; ok &= luaval_to_boolean(tolua_S, 5,&arg3, "cc.Physics3DHingeConstraint:create"); if (!ok) { break; } - cocos2d::Physics3DHingeConstraint* ret = cocos2d::Physics3DHingeConstraint::create(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.Physics3DHingeConstraint",(cocos2d::Physics3DHingeConstraint*)ret); + axis::Physics3DHingeConstraint* ret = axis::Physics3DHingeConstraint::create(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.Physics3DHingeConstraint",(axis::Physics3DHingeConstraint*)ret); return 1; } } while (0); @@ -6898,14 +6898,14 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_create(lua_State* tolua_S) { if (argc == 2) { - cocos2d::Physics3DRigidBody* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DRigidBody",&arg0, "cc.Physics3DHingeConstraint:create"); + axis::Physics3DRigidBody* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DRigidBody",&arg0, "cc.Physics3DHingeConstraint:create"); if (!ok) { break; } - cocos2d::Mat4 arg1; + axis::Mat4 arg1; ok &= luaval_to_mat4(tolua_S, 3, &arg1, "cc.Physics3DHingeConstraint:create"); if (!ok) { break; } - cocos2d::Physics3DHingeConstraint* ret = cocos2d::Physics3DHingeConstraint::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.Physics3DHingeConstraint",(cocos2d::Physics3DHingeConstraint*)ret); + axis::Physics3DHingeConstraint* ret = axis::Physics3DHingeConstraint::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.Physics3DHingeConstraint",(axis::Physics3DHingeConstraint*)ret); return 1; } } while (0); @@ -6914,17 +6914,17 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_create(lua_State* tolua_S) { if (argc == 3) { - cocos2d::Physics3DRigidBody* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DRigidBody",&arg0, "cc.Physics3DHingeConstraint:create"); + axis::Physics3DRigidBody* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DRigidBody",&arg0, "cc.Physics3DHingeConstraint:create"); if (!ok) { break; } - cocos2d::Mat4 arg1; + axis::Mat4 arg1; ok &= luaval_to_mat4(tolua_S, 3, &arg1, "cc.Physics3DHingeConstraint:create"); if (!ok) { break; } bool arg2; ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.Physics3DHingeConstraint:create"); if (!ok) { break; } - cocos2d::Physics3DHingeConstraint* ret = cocos2d::Physics3DHingeConstraint::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.Physics3DHingeConstraint",(cocos2d::Physics3DHingeConstraint*)ret); + axis::Physics3DHingeConstraint* ret = axis::Physics3DHingeConstraint::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.Physics3DHingeConstraint",(axis::Physics3DHingeConstraint*)ret); return 1; } } while (0); @@ -6933,26 +6933,26 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_create(lua_State* tolua_S) { if (argc == 6) { - cocos2d::Physics3DRigidBody* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DRigidBody",&arg0, "cc.Physics3DHingeConstraint:create"); + axis::Physics3DRigidBody* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DRigidBody",&arg0, "cc.Physics3DHingeConstraint:create"); if (!ok) { break; } - cocos2d::Physics3DRigidBody* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Physics3DRigidBody",&arg1, "cc.Physics3DHingeConstraint:create"); + axis::Physics3DRigidBody* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Physics3DRigidBody",&arg1, "cc.Physics3DHingeConstraint:create"); if (!ok) { break; } - cocos2d::Vec3 arg2; + axis::Vec3 arg2; ok &= luaval_to_vec3(tolua_S, 4, &arg2, "cc.Physics3DHingeConstraint:create"); if (!ok) { break; } - cocos2d::Vec3 arg3; + axis::Vec3 arg3; ok &= luaval_to_vec3(tolua_S, 5, &arg3, "cc.Physics3DHingeConstraint:create"); if (!ok) { break; } - cocos2d::Vec3 arg4; + axis::Vec3 arg4; ok &= luaval_to_vec3(tolua_S, 6, &arg4, "cc.Physics3DHingeConstraint:create"); if (!ok) { break; } - cocos2d::Vec3 arg5; + axis::Vec3 arg5; ok &= luaval_to_vec3(tolua_S, 7, &arg5, "cc.Physics3DHingeConstraint:create"); if (!ok) { break; } - cocos2d::Physics3DHingeConstraint* ret = cocos2d::Physics3DHingeConstraint::create(arg0, arg1, arg2, arg3, arg4, arg5); - object_to_luaval(tolua_S, "cc.Physics3DHingeConstraint",(cocos2d::Physics3DHingeConstraint*)ret); + axis::Physics3DHingeConstraint* ret = axis::Physics3DHingeConstraint::create(arg0, arg1, arg2, arg3, arg4, arg5); + object_to_luaval(tolua_S, "cc.Physics3DHingeConstraint",(axis::Physics3DHingeConstraint*)ret); return 1; } } while (0); @@ -6961,29 +6961,29 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_create(lua_State* tolua_S) { if (argc == 7) { - cocos2d::Physics3DRigidBody* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DRigidBody",&arg0, "cc.Physics3DHingeConstraint:create"); + axis::Physics3DRigidBody* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DRigidBody",&arg0, "cc.Physics3DHingeConstraint:create"); if (!ok) { break; } - cocos2d::Physics3DRigidBody* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Physics3DRigidBody",&arg1, "cc.Physics3DHingeConstraint:create"); + axis::Physics3DRigidBody* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Physics3DRigidBody",&arg1, "cc.Physics3DHingeConstraint:create"); if (!ok) { break; } - cocos2d::Vec3 arg2; + axis::Vec3 arg2; ok &= luaval_to_vec3(tolua_S, 4, &arg2, "cc.Physics3DHingeConstraint:create"); if (!ok) { break; } - cocos2d::Vec3 arg3; + axis::Vec3 arg3; ok &= luaval_to_vec3(tolua_S, 5, &arg3, "cc.Physics3DHingeConstraint:create"); if (!ok) { break; } - cocos2d::Vec3 arg4; + axis::Vec3 arg4; ok &= luaval_to_vec3(tolua_S, 6, &arg4, "cc.Physics3DHingeConstraint:create"); if (!ok) { break; } - cocos2d::Vec3 arg5; + axis::Vec3 arg5; ok &= luaval_to_vec3(tolua_S, 7, &arg5, "cc.Physics3DHingeConstraint:create"); if (!ok) { break; } bool arg6; ok &= luaval_to_boolean(tolua_S, 8,&arg6, "cc.Physics3DHingeConstraint:create"); if (!ok) { break; } - cocos2d::Physics3DHingeConstraint* ret = cocos2d::Physics3DHingeConstraint::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6); - object_to_luaval(tolua_S, "cc.Physics3DHingeConstraint",(cocos2d::Physics3DHingeConstraint*)ret); + axis::Physics3DHingeConstraint* ret = axis::Physics3DHingeConstraint::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6); + object_to_luaval(tolua_S, "cc.Physics3DHingeConstraint",(axis::Physics3DHingeConstraint*)ret); return 1; } } while (0); @@ -6992,20 +6992,20 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_create(lua_State* tolua_S) { if (argc == 4) { - cocos2d::Physics3DRigidBody* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DRigidBody",&arg0, "cc.Physics3DHingeConstraint:create"); + axis::Physics3DRigidBody* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DRigidBody",&arg0, "cc.Physics3DHingeConstraint:create"); if (!ok) { break; } - cocos2d::Physics3DRigidBody* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Physics3DRigidBody",&arg1, "cc.Physics3DHingeConstraint:create"); + axis::Physics3DRigidBody* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Physics3DRigidBody",&arg1, "cc.Physics3DHingeConstraint:create"); if (!ok) { break; } - cocos2d::Mat4 arg2; + axis::Mat4 arg2; ok &= luaval_to_mat4(tolua_S, 4, &arg2, "cc.Physics3DHingeConstraint:create"); if (!ok) { break; } - cocos2d::Mat4 arg3; + axis::Mat4 arg3; ok &= luaval_to_mat4(tolua_S, 5, &arg3, "cc.Physics3DHingeConstraint:create"); if (!ok) { break; } - cocos2d::Physics3DHingeConstraint* ret = cocos2d::Physics3DHingeConstraint::create(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.Physics3DHingeConstraint",(cocos2d::Physics3DHingeConstraint*)ret); + axis::Physics3DHingeConstraint* ret = axis::Physics3DHingeConstraint::create(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.Physics3DHingeConstraint",(axis::Physics3DHingeConstraint*)ret); return 1; } } while (0); @@ -7014,23 +7014,23 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_create(lua_State* tolua_S) { if (argc == 5) { - cocos2d::Physics3DRigidBody* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DRigidBody",&arg0, "cc.Physics3DHingeConstraint:create"); + axis::Physics3DRigidBody* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DRigidBody",&arg0, "cc.Physics3DHingeConstraint:create"); if (!ok) { break; } - cocos2d::Physics3DRigidBody* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Physics3DRigidBody",&arg1, "cc.Physics3DHingeConstraint:create"); + axis::Physics3DRigidBody* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Physics3DRigidBody",&arg1, "cc.Physics3DHingeConstraint:create"); if (!ok) { break; } - cocos2d::Mat4 arg2; + axis::Mat4 arg2; ok &= luaval_to_mat4(tolua_S, 4, &arg2, "cc.Physics3DHingeConstraint:create"); if (!ok) { break; } - cocos2d::Mat4 arg3; + axis::Mat4 arg3; ok &= luaval_to_mat4(tolua_S, 5, &arg3, "cc.Physics3DHingeConstraint:create"); if (!ok) { break; } bool arg4; ok &= luaval_to_boolean(tolua_S, 6,&arg4, "cc.Physics3DHingeConstraint:create"); if (!ok) { break; } - cocos2d::Physics3DHingeConstraint* ret = cocos2d::Physics3DHingeConstraint::create(arg0, arg1, arg2, arg3, arg4); - object_to_luaval(tolua_S, "cc.Physics3DHingeConstraint",(cocos2d::Physics3DHingeConstraint*)ret); + axis::Physics3DHingeConstraint* ret = axis::Physics3DHingeConstraint::create(arg0, arg1, arg2, arg3, arg4); + object_to_luaval(tolua_S, "cc.Physics3DHingeConstraint",(axis::Physics3DHingeConstraint*)ret); return 1; } } while (0); @@ -7046,7 +7046,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_create(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DHingeConstraint_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DHingeConstraint* cobj = nullptr; + axis::Physics3DHingeConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7063,7 +7063,7 @@ int lua_cocos2dx_physics3d_Physics3DHingeConstraint_constructor(lua_State* tolua tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DHingeConstraint_constructor'", nullptr); return 0; } - cobj = new cocos2d::Physics3DHingeConstraint(); + cobj = new axis::Physics3DHingeConstraint(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -7115,7 +7115,7 @@ int lua_register_cocos2dx_physics3d_Physics3DHingeConstraint(lua_State* tolua_S) tolua_function(tolua_S,"getAFrame",lua_cocos2dx_physics3d_Physics3DHingeConstraint_getAFrame); tolua_function(tolua_S,"create", lua_cocos2dx_physics3d_Physics3DHingeConstraint_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Physics3DHingeConstraint).name(); // rtti is literal storage + auto typeName = typeid(axis::Physics3DHingeConstraint).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Physics3DHingeConstraint"; g_typeCast[typeName] = "cc.Physics3DHingeConstraint"; return 1; @@ -7124,7 +7124,7 @@ int lua_register_cocos2dx_physics3d_Physics3DHingeConstraint(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setPoweredAngMotor(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7136,7 +7136,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setPoweredAngMotor(lua_Stat if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7174,7 +7174,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setPoweredAngMotor(lua_Stat int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getDampingLimAng(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7186,7 +7186,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getDampingLimAng(lua_State* if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7221,7 +7221,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getDampingLimAng(lua_State* int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setRestitutionOrthoLin(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7233,7 +7233,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setRestitutionOrthoLin(lua_ if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7271,7 +7271,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setRestitutionOrthoLin(lua_ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setRestitutionDirLin(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7283,7 +7283,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setRestitutionDirLin(lua_St if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7321,7 +7321,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setRestitutionDirLin(lua_St int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getLinearPos(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7333,7 +7333,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getLinearPos(lua_State* tol if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7368,7 +7368,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getLinearPos(lua_State* tol int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getFrameOffsetA(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7380,7 +7380,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getFrameOffsetA(lua_State* if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7398,7 +7398,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getFrameOffsetA(lua_State* tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DSliderConstraint_getFrameOffsetA'", nullptr); return 0; } - cocos2d::Mat4 ret = cobj->getFrameOffsetA(); + axis::Mat4 ret = cobj->getFrameOffsetA(); mat4_to_luaval(tolua_S, ret); return 1; } @@ -7415,7 +7415,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getFrameOffsetA(lua_State* int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getFrameOffsetB(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7427,7 +7427,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getFrameOffsetB(lua_State* if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7445,7 +7445,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getFrameOffsetB(lua_State* tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DSliderConstraint_getFrameOffsetB'", nullptr); return 0; } - cocos2d::Mat4 ret = cobj->getFrameOffsetB(); + axis::Mat4 ret = cobj->getFrameOffsetB(); mat4_to_luaval(tolua_S, ret); return 1; } @@ -7462,7 +7462,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getFrameOffsetB(lua_State* int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setPoweredLinMotor(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7474,7 +7474,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setPoweredLinMotor(lua_Stat if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7512,7 +7512,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setPoweredLinMotor(lua_Stat int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getDampingDirAng(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7524,7 +7524,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getDampingDirAng(lua_State* if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7559,7 +7559,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getDampingDirAng(lua_State* int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getRestitutionLimLin(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7571,7 +7571,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getRestitutionLimLin(lua_St if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7606,7 +7606,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getRestitutionLimLin(lua_St int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getSoftnessOrthoAng(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7618,7 +7618,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getSoftnessOrthoAng(lua_Sta if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7653,7 +7653,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getSoftnessOrthoAng(lua_Sta int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setSoftnessOrthoLin(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7665,7 +7665,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setSoftnessOrthoLin(lua_Sta if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7703,7 +7703,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setSoftnessOrthoLin(lua_Sta int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setSoftnessLimLin(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7715,7 +7715,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setSoftnessLimLin(lua_State if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7753,7 +7753,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setSoftnessLimLin(lua_State int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getAngularPos(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7765,7 +7765,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getAngularPos(lua_State* to if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7800,7 +7800,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getAngularPos(lua_State* to int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setRestitutionLimAng(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7812,7 +7812,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setRestitutionLimAng(lua_St if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7850,7 +7850,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setRestitutionLimAng(lua_St int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setUpperLinLimit(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7862,7 +7862,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setUpperLinLimit(lua_State* if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7900,7 +7900,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setUpperLinLimit(lua_State* int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setDampingDirLin(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7912,7 +7912,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setDampingDirLin(lua_State* if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7950,7 +7950,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setDampingDirLin(lua_State* int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getUpperAngLimit(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7962,7 +7962,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getUpperAngLimit(lua_State* if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7997,7 +7997,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getUpperAngLimit(lua_State* int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getDampingDirLin(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8009,7 +8009,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getDampingDirLin(lua_State* if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8044,7 +8044,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getDampingDirLin(lua_State* int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getSoftnessDirAng(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8056,7 +8056,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getSoftnessDirAng(lua_State if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8091,7 +8091,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getSoftnessDirAng(lua_State int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getPoweredAngMotor(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8103,7 +8103,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getPoweredAngMotor(lua_Stat if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8138,7 +8138,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getPoweredAngMotor(lua_Stat int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setLowerAngLimit(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8150,7 +8150,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setLowerAngLimit(lua_State* if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8188,7 +8188,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setLowerAngLimit(lua_State* int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setUpperAngLimit(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8200,7 +8200,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setUpperAngLimit(lua_State* if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8238,7 +8238,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setUpperAngLimit(lua_State* int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setTargetLinMotorVelocity(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8250,7 +8250,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setTargetLinMotorVelocity(l if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8288,7 +8288,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setTargetLinMotorVelocity(l int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setDampingLimAng(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8300,7 +8300,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setDampingLimAng(lua_State* if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8338,7 +8338,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setDampingLimAng(lua_State* int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getRestitutionLimAng(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8350,7 +8350,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getRestitutionLimAng(lua_St if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8385,7 +8385,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getRestitutionLimAng(lua_St int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getUseFrameOffset(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8397,7 +8397,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getUseFrameOffset(lua_State if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8432,7 +8432,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getUseFrameOffset(lua_State int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getSoftnessOrthoLin(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8444,7 +8444,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getSoftnessOrthoLin(lua_Sta if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8479,7 +8479,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getSoftnessOrthoLin(lua_Sta int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getDampingOrthoAng(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8491,7 +8491,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getDampingOrthoAng(lua_Stat if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8526,7 +8526,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getDampingOrthoAng(lua_Stat int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setUseFrameOffset(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8538,7 +8538,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setUseFrameOffset(lua_State if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8576,7 +8576,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setUseFrameOffset(lua_State int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setLowerLinLimit(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8588,7 +8588,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setLowerLinLimit(lua_State* if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8626,7 +8626,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setLowerLinLimit(lua_State* int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getRestitutionDirLin(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8638,7 +8638,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getRestitutionDirLin(lua_St if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8673,7 +8673,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getRestitutionDirLin(lua_St int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getTargetLinMotorVelocity(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8685,7 +8685,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getTargetLinMotorVelocity(l if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8720,7 +8720,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getTargetLinMotorVelocity(l int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getLowerLinLimit(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8732,7 +8732,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getLowerLinLimit(lua_State* if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8767,7 +8767,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getLowerLinLimit(lua_State* int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getSoftnessLimLin(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8779,7 +8779,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getSoftnessLimLin(lua_State if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8814,7 +8814,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getSoftnessLimLin(lua_State int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setDampingOrthoAng(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8826,7 +8826,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setDampingOrthoAng(lua_Stat if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8864,7 +8864,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setDampingOrthoAng(lua_Stat int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setSoftnessDirAng(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8876,7 +8876,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setSoftnessDirAng(lua_State if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8914,7 +8914,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setSoftnessDirAng(lua_State int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getPoweredLinMotor(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8926,7 +8926,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getPoweredLinMotor(lua_Stat if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8961,7 +8961,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getPoweredLinMotor(lua_Stat int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setRestitutionOrthoAng(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8973,7 +8973,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setRestitutionOrthoAng(lua_ if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9011,7 +9011,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setRestitutionOrthoAng(lua_ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setDampingDirAng(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9023,7 +9023,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setDampingDirAng(lua_State* if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9061,7 +9061,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setDampingDirAng(lua_State* int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setFrames(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9073,7 +9073,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setFrames(lua_State* tolua_ if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9086,8 +9086,8 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setFrames(lua_State* tolua_ argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::Mat4 arg0; - cocos2d::Mat4 arg1; + axis::Mat4 arg0; + axis::Mat4 arg1; ok &= luaval_to_mat4(tolua_S, 2, &arg0, "cc.Physics3DSliderConstraint:setFrames"); @@ -9114,7 +9114,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setFrames(lua_State* tolua_ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getRestitutionOrthoAng(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9126,7 +9126,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getRestitutionOrthoAng(lua_ if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9161,7 +9161,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getRestitutionOrthoAng(lua_ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getMaxAngMotorForce(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9173,7 +9173,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getMaxAngMotorForce(lua_Sta if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9208,7 +9208,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getMaxAngMotorForce(lua_Sta int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getDampingOrthoLin(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9220,7 +9220,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getDampingOrthoLin(lua_Stat if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9255,7 +9255,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getDampingOrthoLin(lua_Stat int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getUpperLinLimit(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9267,7 +9267,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getUpperLinLimit(lua_State* if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9302,7 +9302,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getUpperLinLimit(lua_State* int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setMaxLinMotorForce(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9314,7 +9314,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setMaxLinMotorForce(lua_Sta if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9352,7 +9352,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setMaxLinMotorForce(lua_Sta int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getRestitutionOrthoLin(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9364,7 +9364,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getRestitutionOrthoLin(lua_ if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9399,7 +9399,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getRestitutionOrthoLin(lua_ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setTargetAngMotorVelocity(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9411,7 +9411,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setTargetAngMotorVelocity(l if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9449,7 +9449,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setTargetAngMotorVelocity(l int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getSoftnessLimAng(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9461,7 +9461,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getSoftnessLimAng(lua_State if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9496,7 +9496,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getSoftnessLimAng(lua_State int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setRestitutionDirAng(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9508,7 +9508,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setRestitutionDirAng(lua_St if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9546,7 +9546,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setRestitutionDirAng(lua_St int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getDampingLimLin(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9558,7 +9558,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getDampingLimLin(lua_State* if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9593,7 +9593,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getDampingLimLin(lua_State* int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getLowerAngLimit(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9605,7 +9605,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getLowerAngLimit(lua_State* if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9640,7 +9640,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getLowerAngLimit(lua_State* int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getRestitutionDirAng(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9652,7 +9652,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getRestitutionDirAng(lua_St if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9687,7 +9687,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getRestitutionDirAng(lua_St int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getTargetAngMotorVelocity(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9699,7 +9699,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getTargetAngMotorVelocity(l if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9734,7 +9734,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getTargetAngMotorVelocity(l int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setRestitutionLimLin(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9746,7 +9746,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setRestitutionLimLin(lua_St if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9784,7 +9784,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setRestitutionLimLin(lua_St int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getMaxLinMotorForce(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9796,7 +9796,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getMaxLinMotorForce(lua_Sta if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9831,7 +9831,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getMaxLinMotorForce(lua_Sta int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setDampingOrthoLin(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9843,7 +9843,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setDampingOrthoLin(lua_Stat if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9881,7 +9881,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setDampingOrthoLin(lua_Stat int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setSoftnessOrthoAng(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9893,7 +9893,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setSoftnessOrthoAng(lua_Sta if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9931,7 +9931,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setSoftnessOrthoAng(lua_Sta int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setDampingLimLin(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9943,7 +9943,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setDampingLimLin(lua_State* if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9981,7 +9981,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setDampingLimLin(lua_State* int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setSoftnessDirLin(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9993,7 +9993,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setSoftnessDirLin(lua_State if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10031,7 +10031,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setSoftnessDirLin(lua_State int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setMaxAngMotorForce(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10043,7 +10043,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setMaxAngMotorForce(lua_Sta if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10081,7 +10081,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setMaxAngMotorForce(lua_Sta int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getSoftnessDirLin(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10093,7 +10093,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getSoftnessDirLin(lua_State if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10128,7 +10128,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getSoftnessDirLin(lua_State int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setSoftnessLimAng(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10140,7 +10140,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setSoftnessLimAng(lua_State if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10178,7 +10178,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_setSoftnessLimAng(lua_State int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getUseLinearReferenceFrameA(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10190,7 +10190,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_getUseLinearReferenceFrameA if (!tolua_isusertype(tolua_S,1,"cc.Physics3DSliderConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DSliderConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10239,13 +10239,13 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_create(lua_State* tolua_S) if (argc == 5) { - cocos2d::Physics3DRigidBody* arg0; - cocos2d::Physics3DRigidBody* arg1; - cocos2d::Mat4 arg2; - cocos2d::Mat4 arg3; + axis::Physics3DRigidBody* arg0; + axis::Physics3DRigidBody* arg1; + axis::Mat4 arg2; + axis::Mat4 arg3; bool arg4; - ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DRigidBody",&arg0, "cc.Physics3DSliderConstraint:create"); - ok &= luaval_to_object(tolua_S, 3, "cc.Physics3DRigidBody",&arg1, "cc.Physics3DSliderConstraint:create"); + ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DRigidBody",&arg0, "cc.Physics3DSliderConstraint:create"); + ok &= luaval_to_object(tolua_S, 3, "cc.Physics3DRigidBody",&arg1, "cc.Physics3DSliderConstraint:create"); ok &= luaval_to_mat4(tolua_S, 4, &arg2, "cc.Physics3DSliderConstraint:create"); ok &= luaval_to_mat4(tolua_S, 5, &arg3, "cc.Physics3DSliderConstraint:create"); ok &= luaval_to_boolean(tolua_S, 6,&arg4, "cc.Physics3DSliderConstraint:create"); @@ -10254,8 +10254,8 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DSliderConstraint_create'", nullptr); return 0; } - cocos2d::Physics3DSliderConstraint* ret = cocos2d::Physics3DSliderConstraint::create(arg0, arg1, arg2, arg3, arg4); - object_to_luaval(tolua_S, "cc.Physics3DSliderConstraint",(cocos2d::Physics3DSliderConstraint*)ret); + axis::Physics3DSliderConstraint* ret = axis::Physics3DSliderConstraint::create(arg0, arg1, arg2, arg3, arg4); + object_to_luaval(tolua_S, "cc.Physics3DSliderConstraint",(axis::Physics3DSliderConstraint*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Physics3DSliderConstraint:create",argc, 5); @@ -10269,7 +10269,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_create(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3DSliderConstraint_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DSliderConstraint* cobj = nullptr; + axis::Physics3DSliderConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10286,7 +10286,7 @@ int lua_cocos2dx_physics3d_Physics3DSliderConstraint_constructor(lua_State* tolu tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DSliderConstraint_constructor'", nullptr); return 0; } - cobj = new cocos2d::Physics3DSliderConstraint(); + cobj = new axis::Physics3DSliderConstraint(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -10382,7 +10382,7 @@ int lua_register_cocos2dx_physics3d_Physics3DSliderConstraint(lua_State* tolua_S tolua_function(tolua_S,"getUseLinearReferenceFrameA",lua_cocos2dx_physics3d_Physics3DSliderConstraint_getUseLinearReferenceFrameA); tolua_function(tolua_S,"create", lua_cocos2dx_physics3d_Physics3DSliderConstraint_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Physics3DSliderConstraint).name(); // rtti is literal storage + auto typeName = typeid(axis::Physics3DSliderConstraint).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Physics3DSliderConstraint"; g_typeCast[typeName] = "cc.Physics3DSliderConstraint"; return 1; @@ -10391,7 +10391,7 @@ int lua_register_cocos2dx_physics3d_Physics3DSliderConstraint(lua_State* tolua_S int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_getBFrame(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DConeTwistConstraint* cobj = nullptr; + axis::Physics3DConeTwistConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10403,7 +10403,7 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_getBFrame(lua_State* tol if (!tolua_isusertype(tolua_S,1,"cc.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10421,7 +10421,7 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_getBFrame(lua_State* tol tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_getBFrame'", nullptr); return 0; } - cocos2d::Mat4 ret = cobj->getBFrame(); + axis::Mat4 ret = cobj->getBFrame(); mat4_to_luaval(tolua_S, ret); return 1; } @@ -10438,7 +10438,7 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_getBFrame(lua_State* tol int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_setFixThresh(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DConeTwistConstraint* cobj = nullptr; + axis::Physics3DConeTwistConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10450,7 +10450,7 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_setFixThresh(lua_State* if (!tolua_isusertype(tolua_S,1,"cc.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10488,7 +10488,7 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_setFixThresh(lua_State* int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_getFrameOffsetB(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DConeTwistConstraint* cobj = nullptr; + axis::Physics3DConeTwistConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10500,7 +10500,7 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_getFrameOffsetB(lua_Stat if (!tolua_isusertype(tolua_S,1,"cc.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10518,7 +10518,7 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_getFrameOffsetB(lua_Stat tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_getFrameOffsetB'", nullptr); return 0; } - cocos2d::Mat4 ret = cobj->getFrameOffsetB(); + axis::Mat4 ret = cobj->getFrameOffsetB(); mat4_to_luaval(tolua_S, ret); return 1; } @@ -10535,7 +10535,7 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_getFrameOffsetB(lua_Stat int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_getFrameOffsetA(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DConeTwistConstraint* cobj = nullptr; + axis::Physics3DConeTwistConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10547,7 +10547,7 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_getFrameOffsetA(lua_Stat if (!tolua_isusertype(tolua_S,1,"cc.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10565,7 +10565,7 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_getFrameOffsetA(lua_Stat tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_getFrameOffsetA'", nullptr); return 0; } - cocos2d::Mat4 ret = cobj->getFrameOffsetA(); + axis::Mat4 ret = cobj->getFrameOffsetA(); mat4_to_luaval(tolua_S, ret); return 1; } @@ -10582,7 +10582,7 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_getFrameOffsetA(lua_Stat int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_getFixThresh(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DConeTwistConstraint* cobj = nullptr; + axis::Physics3DConeTwistConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10594,7 +10594,7 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_getFixThresh(lua_State* if (!tolua_isusertype(tolua_S,1,"cc.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10629,7 +10629,7 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_getFixThresh(lua_State* int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_getSwingSpan2(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DConeTwistConstraint* cobj = nullptr; + axis::Physics3DConeTwistConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10641,7 +10641,7 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_getSwingSpan2(lua_State* if (!tolua_isusertype(tolua_S,1,"cc.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10676,7 +10676,7 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_getSwingSpan2(lua_State* int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_getSwingSpan1(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DConeTwistConstraint* cobj = nullptr; + axis::Physics3DConeTwistConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10688,7 +10688,7 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_getSwingSpan1(lua_State* if (!tolua_isusertype(tolua_S,1,"cc.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10723,7 +10723,7 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_getSwingSpan1(lua_State* int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_setMaxMotorImpulse(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DConeTwistConstraint* cobj = nullptr; + axis::Physics3DConeTwistConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10735,7 +10735,7 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_setMaxMotorImpulse(lua_S if (!tolua_isusertype(tolua_S,1,"cc.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10773,7 +10773,7 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_setMaxMotorImpulse(lua_S int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_setFrames(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DConeTwistConstraint* cobj = nullptr; + axis::Physics3DConeTwistConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10785,7 +10785,7 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_setFrames(lua_State* tol if (!tolua_isusertype(tolua_S,1,"cc.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10798,8 +10798,8 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_setFrames(lua_State* tol argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::Mat4 arg0; - cocos2d::Mat4 arg1; + axis::Mat4 arg0; + axis::Mat4 arg1; ok &= luaval_to_mat4(tolua_S, 2, &arg0, "cc.Physics3DConeTwistConstraint:setFrames"); @@ -10826,7 +10826,7 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_setFrames(lua_State* tol int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_getTwistAngle(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DConeTwistConstraint* cobj = nullptr; + axis::Physics3DConeTwistConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10838,7 +10838,7 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_getTwistAngle(lua_State* if (!tolua_isusertype(tolua_S,1,"cc.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10873,7 +10873,7 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_getTwistAngle(lua_State* int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_GetPointForAngle(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DConeTwistConstraint* cobj = nullptr; + axis::Physics3DConeTwistConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10885,7 +10885,7 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_GetPointForAngle(lua_Sta if (!tolua_isusertype(tolua_S,1,"cc.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10909,7 +10909,7 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_GetPointForAngle(lua_Sta tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_GetPointForAngle'", nullptr); return 0; } - cocos2d::Vec3 ret = cobj->GetPointForAngle(arg0, arg1); + axis::Vec3 ret = cobj->GetPointForAngle(arg0, arg1); vec3_to_luaval(tolua_S, ret); return 1; } @@ -10926,7 +10926,7 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_GetPointForAngle(lua_Sta int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_setMaxMotorImpulseNormalized(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DConeTwistConstraint* cobj = nullptr; + axis::Physics3DConeTwistConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10938,7 +10938,7 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_setMaxMotorImpulseNormal if (!tolua_isusertype(tolua_S,1,"cc.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10976,7 +10976,7 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_setMaxMotorImpulseNormal int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_getTwistSpan(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DConeTwistConstraint* cobj = nullptr; + axis::Physics3DConeTwistConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10988,7 +10988,7 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_getTwistSpan(lua_State* if (!tolua_isusertype(tolua_S,1,"cc.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11023,7 +11023,7 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_getTwistSpan(lua_State* int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_setDamping(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DConeTwistConstraint* cobj = nullptr; + axis::Physics3DConeTwistConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11035,7 +11035,7 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_setDamping(lua_State* to if (!tolua_isusertype(tolua_S,1,"cc.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11073,7 +11073,7 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_setDamping(lua_State* to int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_setLimit(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DConeTwistConstraint* cobj = nullptr; + axis::Physics3DConeTwistConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11085,7 +11085,7 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_setLimit(lua_State* tolu if (!tolua_isusertype(tolua_S,1,"cc.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11207,7 +11207,7 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_setLimit(lua_State* tolu int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_getAFrame(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DConeTwistConstraint* cobj = nullptr; + axis::Physics3DConeTwistConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11219,7 +11219,7 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_getAFrame(lua_State* tol if (!tolua_isusertype(tolua_S,1,"cc.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11237,7 +11237,7 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_getAFrame(lua_State* tol tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_getAFrame'", nullptr); return 0; } - cocos2d::Mat4 ret = cobj->getAFrame(); + axis::Mat4 ret = cobj->getAFrame(); mat4_to_luaval(tolua_S, ret); return 1; } @@ -11254,7 +11254,7 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_getAFrame(lua_State* tol int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_enableMotor(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DConeTwistConstraint* cobj = nullptr; + axis::Physics3DConeTwistConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11266,7 +11266,7 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_enableMotor(lua_State* t if (!tolua_isusertype(tolua_S,1,"cc.Physics3DConeTwistConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3DConeTwistConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11319,20 +11319,20 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_create(lua_State* tolua_ { if (argc == 4) { - cocos2d::Physics3DRigidBody* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DRigidBody",&arg0, "cc.Physics3DConeTwistConstraint:create"); + axis::Physics3DRigidBody* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DRigidBody",&arg0, "cc.Physics3DConeTwistConstraint:create"); if (!ok) { break; } - cocos2d::Physics3DRigidBody* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Physics3DRigidBody",&arg1, "cc.Physics3DConeTwistConstraint:create"); + axis::Physics3DRigidBody* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Physics3DRigidBody",&arg1, "cc.Physics3DConeTwistConstraint:create"); if (!ok) { break; } - cocos2d::Mat4 arg2; + axis::Mat4 arg2; ok &= luaval_to_mat4(tolua_S, 4, &arg2, "cc.Physics3DConeTwistConstraint:create"); if (!ok) { break; } - cocos2d::Mat4 arg3; + axis::Mat4 arg3; ok &= luaval_to_mat4(tolua_S, 5, &arg3, "cc.Physics3DConeTwistConstraint:create"); if (!ok) { break; } - cocos2d::Physics3DConeTwistConstraint* ret = cocos2d::Physics3DConeTwistConstraint::create(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.Physics3DConeTwistConstraint",(cocos2d::Physics3DConeTwistConstraint*)ret); + axis::Physics3DConeTwistConstraint* ret = axis::Physics3DConeTwistConstraint::create(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.Physics3DConeTwistConstraint",(axis::Physics3DConeTwistConstraint*)ret); return 1; } } while (0); @@ -11341,14 +11341,14 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_create(lua_State* tolua_ { if (argc == 2) { - cocos2d::Physics3DRigidBody* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DRigidBody",&arg0, "cc.Physics3DConeTwistConstraint:create"); + axis::Physics3DRigidBody* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DRigidBody",&arg0, "cc.Physics3DConeTwistConstraint:create"); if (!ok) { break; } - cocos2d::Mat4 arg1; + axis::Mat4 arg1; ok &= luaval_to_mat4(tolua_S, 3, &arg1, "cc.Physics3DConeTwistConstraint:create"); if (!ok) { break; } - cocos2d::Physics3DConeTwistConstraint* ret = cocos2d::Physics3DConeTwistConstraint::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.Physics3DConeTwistConstraint",(cocos2d::Physics3DConeTwistConstraint*)ret); + axis::Physics3DConeTwistConstraint* ret = axis::Physics3DConeTwistConstraint::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.Physics3DConeTwistConstraint",(axis::Physics3DConeTwistConstraint*)ret); return 1; } } while (0); @@ -11364,7 +11364,7 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_create(lua_State* tolua_ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3DConeTwistConstraint* cobj = nullptr; + axis::Physics3DConeTwistConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11381,7 +11381,7 @@ int lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_constructor(lua_State* t tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_constructor'", nullptr); return 0; } - cobj = new cocos2d::Physics3DConeTwistConstraint(); + cobj = new axis::Physics3DConeTwistConstraint(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -11430,7 +11430,7 @@ int lua_register_cocos2dx_physics3d_Physics3DConeTwistConstraint(lua_State* tolu tolua_function(tolua_S,"enableMotor",lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_enableMotor); tolua_function(tolua_S,"create", lua_cocos2dx_physics3d_Physics3DConeTwistConstraint_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Physics3DConeTwistConstraint).name(); // rtti is literal storage + auto typeName = typeid(axis::Physics3DConeTwistConstraint).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Physics3DConeTwistConstraint"; g_typeCast[typeName] = "cc.Physics3DConeTwistConstraint"; return 1; @@ -11439,7 +11439,7 @@ int lua_register_cocos2dx_physics3d_Physics3DConeTwistConstraint(lua_State* tolu int lua_cocos2dx_physics3d_Physics3D6DofConstraint_setLinearLowerLimit(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3D6DofConstraint* cobj = nullptr; + axis::Physics3D6DofConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11451,7 +11451,7 @@ int lua_cocos2dx_physics3d_Physics3D6DofConstraint_setLinearLowerLimit(lua_State if (!tolua_isusertype(tolua_S,1,"cc.Physics3D6DofConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3D6DofConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3D6DofConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11464,7 +11464,7 @@ int lua_cocos2dx_physics3d_Physics3D6DofConstraint_setLinearLowerLimit(lua_State argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec3 arg0; + axis::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.Physics3D6DofConstraint:setLinearLowerLimit"); if(!ok) @@ -11489,7 +11489,7 @@ int lua_cocos2dx_physics3d_Physics3D6DofConstraint_setLinearLowerLimit(lua_State int lua_cocos2dx_physics3d_Physics3D6DofConstraint_getLinearLowerLimit(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3D6DofConstraint* cobj = nullptr; + axis::Physics3D6DofConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11501,7 +11501,7 @@ int lua_cocos2dx_physics3d_Physics3D6DofConstraint_getLinearLowerLimit(lua_State if (!tolua_isusertype(tolua_S,1,"cc.Physics3D6DofConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3D6DofConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3D6DofConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11519,7 +11519,7 @@ int lua_cocos2dx_physics3d_Physics3D6DofConstraint_getLinearLowerLimit(lua_State tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3D6DofConstraint_getLinearLowerLimit'", nullptr); return 0; } - cocos2d::Vec3 ret = cobj->getLinearLowerLimit(); + axis::Vec3 ret = cobj->getLinearLowerLimit(); vec3_to_luaval(tolua_S, ret); return 1; } @@ -11536,7 +11536,7 @@ int lua_cocos2dx_physics3d_Physics3D6DofConstraint_getLinearLowerLimit(lua_State int lua_cocos2dx_physics3d_Physics3D6DofConstraint_getAngularUpperLimit(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3D6DofConstraint* cobj = nullptr; + axis::Physics3D6DofConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11548,7 +11548,7 @@ int lua_cocos2dx_physics3d_Physics3D6DofConstraint_getAngularUpperLimit(lua_Stat if (!tolua_isusertype(tolua_S,1,"cc.Physics3D6DofConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3D6DofConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3D6DofConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11566,7 +11566,7 @@ int lua_cocos2dx_physics3d_Physics3D6DofConstraint_getAngularUpperLimit(lua_Stat tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3D6DofConstraint_getAngularUpperLimit'", nullptr); return 0; } - cocos2d::Vec3 ret = cobj->getAngularUpperLimit(); + axis::Vec3 ret = cobj->getAngularUpperLimit(); vec3_to_luaval(tolua_S, ret); return 1; } @@ -11583,7 +11583,7 @@ int lua_cocos2dx_physics3d_Physics3D6DofConstraint_getAngularUpperLimit(lua_Stat int lua_cocos2dx_physics3d_Physics3D6DofConstraint_getUseFrameOffset(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3D6DofConstraint* cobj = nullptr; + axis::Physics3D6DofConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11595,7 +11595,7 @@ int lua_cocos2dx_physics3d_Physics3D6DofConstraint_getUseFrameOffset(lua_State* if (!tolua_isusertype(tolua_S,1,"cc.Physics3D6DofConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3D6DofConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3D6DofConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11630,7 +11630,7 @@ int lua_cocos2dx_physics3d_Physics3D6DofConstraint_getUseFrameOffset(lua_State* int lua_cocos2dx_physics3d_Physics3D6DofConstraint_getLinearUpperLimit(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3D6DofConstraint* cobj = nullptr; + axis::Physics3D6DofConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11642,7 +11642,7 @@ int lua_cocos2dx_physics3d_Physics3D6DofConstraint_getLinearUpperLimit(lua_State if (!tolua_isusertype(tolua_S,1,"cc.Physics3D6DofConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3D6DofConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3D6DofConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11660,7 +11660,7 @@ int lua_cocos2dx_physics3d_Physics3D6DofConstraint_getLinearUpperLimit(lua_State tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3D6DofConstraint_getLinearUpperLimit'", nullptr); return 0; } - cocos2d::Vec3 ret = cobj->getLinearUpperLimit(); + axis::Vec3 ret = cobj->getLinearUpperLimit(); vec3_to_luaval(tolua_S, ret); return 1; } @@ -11677,7 +11677,7 @@ int lua_cocos2dx_physics3d_Physics3D6DofConstraint_getLinearUpperLimit(lua_State int lua_cocos2dx_physics3d_Physics3D6DofConstraint_setAngularLowerLimit(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3D6DofConstraint* cobj = nullptr; + axis::Physics3D6DofConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11689,7 +11689,7 @@ int lua_cocos2dx_physics3d_Physics3D6DofConstraint_setAngularLowerLimit(lua_Stat if (!tolua_isusertype(tolua_S,1,"cc.Physics3D6DofConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3D6DofConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3D6DofConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11702,7 +11702,7 @@ int lua_cocos2dx_physics3d_Physics3D6DofConstraint_setAngularLowerLimit(lua_Stat argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec3 arg0; + axis::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.Physics3D6DofConstraint:setAngularLowerLimit"); if(!ok) @@ -11727,7 +11727,7 @@ int lua_cocos2dx_physics3d_Physics3D6DofConstraint_setAngularLowerLimit(lua_Stat int lua_cocos2dx_physics3d_Physics3D6DofConstraint_isLimited(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3D6DofConstraint* cobj = nullptr; + axis::Physics3D6DofConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11739,7 +11739,7 @@ int lua_cocos2dx_physics3d_Physics3D6DofConstraint_isLimited(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.Physics3D6DofConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3D6DofConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3D6DofConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11777,7 +11777,7 @@ int lua_cocos2dx_physics3d_Physics3D6DofConstraint_isLimited(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3D6DofConstraint_setUseFrameOffset(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3D6DofConstraint* cobj = nullptr; + axis::Physics3D6DofConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11789,7 +11789,7 @@ int lua_cocos2dx_physics3d_Physics3D6DofConstraint_setUseFrameOffset(lua_State* if (!tolua_isusertype(tolua_S,1,"cc.Physics3D6DofConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3D6DofConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3D6DofConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11827,7 +11827,7 @@ int lua_cocos2dx_physics3d_Physics3D6DofConstraint_setUseFrameOffset(lua_State* int lua_cocos2dx_physics3d_Physics3D6DofConstraint_setLinearUpperLimit(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3D6DofConstraint* cobj = nullptr; + axis::Physics3D6DofConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11839,7 +11839,7 @@ int lua_cocos2dx_physics3d_Physics3D6DofConstraint_setLinearUpperLimit(lua_State if (!tolua_isusertype(tolua_S,1,"cc.Physics3D6DofConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3D6DofConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3D6DofConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11852,7 +11852,7 @@ int lua_cocos2dx_physics3d_Physics3D6DofConstraint_setLinearUpperLimit(lua_State argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec3 arg0; + axis::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.Physics3D6DofConstraint:setLinearUpperLimit"); if(!ok) @@ -11877,7 +11877,7 @@ int lua_cocos2dx_physics3d_Physics3D6DofConstraint_setLinearUpperLimit(lua_State int lua_cocos2dx_physics3d_Physics3D6DofConstraint_getAngularLowerLimit(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3D6DofConstraint* cobj = nullptr; + axis::Physics3D6DofConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11889,7 +11889,7 @@ int lua_cocos2dx_physics3d_Physics3D6DofConstraint_getAngularLowerLimit(lua_Stat if (!tolua_isusertype(tolua_S,1,"cc.Physics3D6DofConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3D6DofConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3D6DofConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11907,7 +11907,7 @@ int lua_cocos2dx_physics3d_Physics3D6DofConstraint_getAngularLowerLimit(lua_Stat tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3D6DofConstraint_getAngularLowerLimit'", nullptr); return 0; } - cocos2d::Vec3 ret = cobj->getAngularLowerLimit(); + axis::Vec3 ret = cobj->getAngularLowerLimit(); vec3_to_luaval(tolua_S, ret); return 1; } @@ -11924,7 +11924,7 @@ int lua_cocos2dx_physics3d_Physics3D6DofConstraint_getAngularLowerLimit(lua_Stat int lua_cocos2dx_physics3d_Physics3D6DofConstraint_setAngularUpperLimit(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3D6DofConstraint* cobj = nullptr; + axis::Physics3D6DofConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11936,7 +11936,7 @@ int lua_cocos2dx_physics3d_Physics3D6DofConstraint_setAngularUpperLimit(lua_Stat if (!tolua_isusertype(tolua_S,1,"cc.Physics3D6DofConstraint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Physics3D6DofConstraint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::Physics3D6DofConstraint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11949,7 +11949,7 @@ int lua_cocos2dx_physics3d_Physics3D6DofConstraint_setAngularUpperLimit(lua_Stat argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec3 arg0; + axis::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.Physics3D6DofConstraint:setAngularUpperLimit"); if(!ok) @@ -11989,17 +11989,17 @@ int lua_cocos2dx_physics3d_Physics3D6DofConstraint_create(lua_State* tolua_S) { if (argc == 3) { - cocos2d::Physics3DRigidBody* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DRigidBody",&arg0, "cc.Physics3D6DofConstraint:create"); + axis::Physics3DRigidBody* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DRigidBody",&arg0, "cc.Physics3D6DofConstraint:create"); if (!ok) { break; } - cocos2d::Mat4 arg1; + axis::Mat4 arg1; ok &= luaval_to_mat4(tolua_S, 3, &arg1, "cc.Physics3D6DofConstraint:create"); if (!ok) { break; } bool arg2; ok &= luaval_to_boolean(tolua_S, 4,&arg2, "cc.Physics3D6DofConstraint:create"); if (!ok) { break; } - cocos2d::Physics3D6DofConstraint* ret = cocos2d::Physics3D6DofConstraint::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.Physics3D6DofConstraint",(cocos2d::Physics3D6DofConstraint*)ret); + axis::Physics3D6DofConstraint* ret = axis::Physics3D6DofConstraint::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.Physics3D6DofConstraint",(axis::Physics3D6DofConstraint*)ret); return 1; } } while (0); @@ -12008,23 +12008,23 @@ int lua_cocos2dx_physics3d_Physics3D6DofConstraint_create(lua_State* tolua_S) { if (argc == 5) { - cocos2d::Physics3DRigidBody* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DRigidBody",&arg0, "cc.Physics3D6DofConstraint:create"); + axis::Physics3DRigidBody* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Physics3DRigidBody",&arg0, "cc.Physics3D6DofConstraint:create"); if (!ok) { break; } - cocos2d::Physics3DRigidBody* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.Physics3DRigidBody",&arg1, "cc.Physics3D6DofConstraint:create"); + axis::Physics3DRigidBody* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.Physics3DRigidBody",&arg1, "cc.Physics3D6DofConstraint:create"); if (!ok) { break; } - cocos2d::Mat4 arg2; + axis::Mat4 arg2; ok &= luaval_to_mat4(tolua_S, 4, &arg2, "cc.Physics3D6DofConstraint:create"); if (!ok) { break; } - cocos2d::Mat4 arg3; + axis::Mat4 arg3; ok &= luaval_to_mat4(tolua_S, 5, &arg3, "cc.Physics3D6DofConstraint:create"); if (!ok) { break; } bool arg4; ok &= luaval_to_boolean(tolua_S, 6,&arg4, "cc.Physics3D6DofConstraint:create"); if (!ok) { break; } - cocos2d::Physics3D6DofConstraint* ret = cocos2d::Physics3D6DofConstraint::create(arg0, arg1, arg2, arg3, arg4); - object_to_luaval(tolua_S, "cc.Physics3D6DofConstraint",(cocos2d::Physics3D6DofConstraint*)ret); + axis::Physics3D6DofConstraint* ret = axis::Physics3D6DofConstraint::create(arg0, arg1, arg2, arg3, arg4); + object_to_luaval(tolua_S, "cc.Physics3D6DofConstraint",(axis::Physics3D6DofConstraint*)ret); return 1; } } while (0); @@ -12040,7 +12040,7 @@ int lua_cocos2dx_physics3d_Physics3D6DofConstraint_create(lua_State* tolua_S) int lua_cocos2dx_physics3d_Physics3D6DofConstraint_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::Physics3D6DofConstraint* cobj = nullptr; + axis::Physics3D6DofConstraint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12057,7 +12057,7 @@ int lua_cocos2dx_physics3d_Physics3D6DofConstraint_constructor(lua_State* tolua_ tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics3d_Physics3D6DofConstraint_constructor'", nullptr); return 0; } - cobj = new cocos2d::Physics3D6DofConstraint(); + cobj = new axis::Physics3D6DofConstraint(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -12100,7 +12100,7 @@ int lua_register_cocos2dx_physics3d_Physics3D6DofConstraint(lua_State* tolua_S) tolua_function(tolua_S,"setAngularUpperLimit",lua_cocos2dx_physics3d_Physics3D6DofConstraint_setAngularUpperLimit); tolua_function(tolua_S,"create", lua_cocos2dx_physics3d_Physics3D6DofConstraint_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::Physics3D6DofConstraint).name(); // rtti is literal storage + auto typeName = typeid(axis::Physics3D6DofConstraint).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.Physics3D6DofConstraint"; g_typeCast[typeName] = "cc.Physics3D6DofConstraint"; return 1; diff --git a/extensions/scripting/lua-bindings/auto/lua_cocos2dx_physics_auto.cpp b/extensions/scripting/lua-bindings/auto/lua_cocos2dx_physics_auto.cpp index 79c3f641c7..145de13ad0 100644 --- a/extensions/scripting/lua-bindings/auto/lua_cocos2dx_physics_auto.cpp +++ b/extensions/scripting/lua-bindings/auto/lua_cocos2dx_physics_auto.cpp @@ -7,7 +7,7 @@ int lua_cocos2dx_physics_PhysicsShape_getFriction(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShape* cobj = nullptr; + axis::PhysicsShape* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -19,7 +19,7 @@ int lua_cocos2dx_physics_PhysicsShape_getFriction(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsShape",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsShape*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -54,7 +54,7 @@ int lua_cocos2dx_physics_PhysicsShape_getFriction(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsShape_setGroup(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShape* cobj = nullptr; + axis::PhysicsShape* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -66,7 +66,7 @@ int lua_cocos2dx_physics_PhysicsShape_setGroup(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsShape",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsShape*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -104,7 +104,7 @@ int lua_cocos2dx_physics_PhysicsShape_setGroup(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsShape_setDensity(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShape* cobj = nullptr; + axis::PhysicsShape* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -116,7 +116,7 @@ int lua_cocos2dx_physics_PhysicsShape_setDensity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsShape",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsShape*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -154,7 +154,7 @@ int lua_cocos2dx_physics_PhysicsShape_setDensity(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsShape_getMass(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShape* cobj = nullptr; + axis::PhysicsShape* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -166,7 +166,7 @@ int lua_cocos2dx_physics_PhysicsShape_getMass(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsShape",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsShape*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -201,7 +201,7 @@ int lua_cocos2dx_physics_PhysicsShape_getMass(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsShape_getMaterial(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShape* cobj = nullptr; + axis::PhysicsShape* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -213,7 +213,7 @@ int lua_cocos2dx_physics_PhysicsShape_getMaterial(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsShape",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsShape*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -231,7 +231,7 @@ int lua_cocos2dx_physics_PhysicsShape_getMaterial(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsShape_getMaterial'", nullptr); return 0; } - const cocos2d::PhysicsMaterial& ret = cobj->getMaterial(); + const axis::PhysicsMaterial& ret = cobj->getMaterial(); physics_material_to_luaval(tolua_S, ret); return 1; } @@ -248,7 +248,7 @@ int lua_cocos2dx_physics_PhysicsShape_getMaterial(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsShape_setSensor(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShape* cobj = nullptr; + axis::PhysicsShape* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -260,7 +260,7 @@ int lua_cocos2dx_physics_PhysicsShape_setSensor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsShape",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsShape*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -298,7 +298,7 @@ int lua_cocos2dx_physics_PhysicsShape_setSensor(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsShape_getCollisionBitmask(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShape* cobj = nullptr; + axis::PhysicsShape* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -310,7 +310,7 @@ int lua_cocos2dx_physics_PhysicsShape_getCollisionBitmask(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsShape",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsShape*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -345,7 +345,7 @@ int lua_cocos2dx_physics_PhysicsShape_getCollisionBitmask(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsShape_getArea(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShape* cobj = nullptr; + axis::PhysicsShape* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -357,7 +357,7 @@ int lua_cocos2dx_physics_PhysicsShape_getArea(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsShape",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsShape*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -392,7 +392,7 @@ int lua_cocos2dx_physics_PhysicsShape_getArea(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsShape_setCategoryBitmask(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShape* cobj = nullptr; + axis::PhysicsShape* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -404,7 +404,7 @@ int lua_cocos2dx_physics_PhysicsShape_setCategoryBitmask(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsShape",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsShape*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -442,7 +442,7 @@ int lua_cocos2dx_physics_PhysicsShape_setCategoryBitmask(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsShape_getGroup(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShape* cobj = nullptr; + axis::PhysicsShape* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -454,7 +454,7 @@ int lua_cocos2dx_physics_PhysicsShape_getGroup(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsShape",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsShape*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -489,7 +489,7 @@ int lua_cocos2dx_physics_PhysicsShape_getGroup(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsShape_setMoment(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShape* cobj = nullptr; + axis::PhysicsShape* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -501,7 +501,7 @@ int lua_cocos2dx_physics_PhysicsShape_setMoment(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsShape",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsShape*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -539,7 +539,7 @@ int lua_cocos2dx_physics_PhysicsShape_setMoment(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsShape_containsPoint(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShape* cobj = nullptr; + axis::PhysicsShape* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -551,7 +551,7 @@ int lua_cocos2dx_physics_PhysicsShape_containsPoint(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsShape",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsShape*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -564,7 +564,7 @@ int lua_cocos2dx_physics_PhysicsShape_containsPoint(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsShape:containsPoint"); if(!ok) @@ -589,7 +589,7 @@ int lua_cocos2dx_physics_PhysicsShape_containsPoint(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsShape_getCategoryBitmask(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShape* cobj = nullptr; + axis::PhysicsShape* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -601,7 +601,7 @@ int lua_cocos2dx_physics_PhysicsShape_getCategoryBitmask(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsShape",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsShape*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -636,7 +636,7 @@ int lua_cocos2dx_physics_PhysicsShape_getCategoryBitmask(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsShape_isSensor(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShape* cobj = nullptr; + axis::PhysicsShape* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -648,7 +648,7 @@ int lua_cocos2dx_physics_PhysicsShape_isSensor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsShape",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsShape*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -683,7 +683,7 @@ int lua_cocos2dx_physics_PhysicsShape_isSensor(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsShape_getType(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShape* cobj = nullptr; + axis::PhysicsShape* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -695,7 +695,7 @@ int lua_cocos2dx_physics_PhysicsShape_getType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsShape",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsShape*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -730,7 +730,7 @@ int lua_cocos2dx_physics_PhysicsShape_getType(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsShape_getContactTestBitmask(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShape* cobj = nullptr; + axis::PhysicsShape* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -742,7 +742,7 @@ int lua_cocos2dx_physics_PhysicsShape_getContactTestBitmask(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsShape",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsShape*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -777,7 +777,7 @@ int lua_cocos2dx_physics_PhysicsShape_getContactTestBitmask(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsShape_getCenter(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShape* cobj = nullptr; + axis::PhysicsShape* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -789,7 +789,7 @@ int lua_cocos2dx_physics_PhysicsShape_getCenter(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsShape",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsShape*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -807,7 +807,7 @@ int lua_cocos2dx_physics_PhysicsShape_getCenter(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsShape_getCenter'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getCenter(); + axis::Vec2 ret = cobj->getCenter(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -824,7 +824,7 @@ int lua_cocos2dx_physics_PhysicsShape_getCenter(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsShape_getDensity(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShape* cobj = nullptr; + axis::PhysicsShape* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -836,7 +836,7 @@ int lua_cocos2dx_physics_PhysicsShape_getDensity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsShape",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsShape*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -871,7 +871,7 @@ int lua_cocos2dx_physics_PhysicsShape_getDensity(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsShape_setMass(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShape* cobj = nullptr; + axis::PhysicsShape* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -883,7 +883,7 @@ int lua_cocos2dx_physics_PhysicsShape_setMass(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsShape",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsShape*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -921,7 +921,7 @@ int lua_cocos2dx_physics_PhysicsShape_setMass(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsShape_getTag(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShape* cobj = nullptr; + axis::PhysicsShape* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -933,7 +933,7 @@ int lua_cocos2dx_physics_PhysicsShape_getTag(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsShape",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsShape*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -968,7 +968,7 @@ int lua_cocos2dx_physics_PhysicsShape_getTag(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsShape_calculateDefaultMoment(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShape* cobj = nullptr; + axis::PhysicsShape* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -980,7 +980,7 @@ int lua_cocos2dx_physics_PhysicsShape_calculateDefaultMoment(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsShape",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsShape*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1015,7 +1015,7 @@ int lua_cocos2dx_physics_PhysicsShape_calculateDefaultMoment(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsShape_setCollisionBitmask(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShape* cobj = nullptr; + axis::PhysicsShape* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1027,7 +1027,7 @@ int lua_cocos2dx_physics_PhysicsShape_setCollisionBitmask(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsShape",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsShape*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1065,7 +1065,7 @@ int lua_cocos2dx_physics_PhysicsShape_setCollisionBitmask(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsShape_getMoment(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShape* cobj = nullptr; + axis::PhysicsShape* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1077,7 +1077,7 @@ int lua_cocos2dx_physics_PhysicsShape_getMoment(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsShape",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsShape*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1112,7 +1112,7 @@ int lua_cocos2dx_physics_PhysicsShape_getMoment(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsShape_getOffset(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShape* cobj = nullptr; + axis::PhysicsShape* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1124,7 +1124,7 @@ int lua_cocos2dx_physics_PhysicsShape_getOffset(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsShape",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsShape*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1142,7 +1142,7 @@ int lua_cocos2dx_physics_PhysicsShape_getOffset(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsShape_getOffset'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getOffset(); + axis::Vec2 ret = cobj->getOffset(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -1159,7 +1159,7 @@ int lua_cocos2dx_physics_PhysicsShape_getOffset(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsShape_getRestitution(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShape* cobj = nullptr; + axis::PhysicsShape* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1171,7 +1171,7 @@ int lua_cocos2dx_physics_PhysicsShape_getRestitution(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsShape",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsShape*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1206,7 +1206,7 @@ int lua_cocos2dx_physics_PhysicsShape_getRestitution(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsShape_setFriction(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShape* cobj = nullptr; + axis::PhysicsShape* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1218,7 +1218,7 @@ int lua_cocos2dx_physics_PhysicsShape_setFriction(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsShape",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsShape*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1256,7 +1256,7 @@ int lua_cocos2dx_physics_PhysicsShape_setFriction(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsShape_setMaterial(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShape* cobj = nullptr; + axis::PhysicsShape* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1268,7 +1268,7 @@ int lua_cocos2dx_physics_PhysicsShape_setMaterial(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsShape",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsShape*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1281,7 +1281,7 @@ int lua_cocos2dx_physics_PhysicsShape_setMaterial(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::PhysicsMaterial arg0; + axis::PhysicsMaterial arg0; ok &= luaval_to_physics_material(tolua_S, 2, &arg0, "cc.PhysicsShape:setMaterial"); if(!ok) @@ -1306,7 +1306,7 @@ int lua_cocos2dx_physics_PhysicsShape_setMaterial(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsShape_setTag(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShape* cobj = nullptr; + axis::PhysicsShape* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1318,7 +1318,7 @@ int lua_cocos2dx_physics_PhysicsShape_setTag(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsShape",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsShape*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1356,7 +1356,7 @@ int lua_cocos2dx_physics_PhysicsShape_setTag(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsShape_setContactTestBitmask(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShape* cobj = nullptr; + axis::PhysicsShape* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1368,7 +1368,7 @@ int lua_cocos2dx_physics_PhysicsShape_setContactTestBitmask(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsShape",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsShape*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1406,7 +1406,7 @@ int lua_cocos2dx_physics_PhysicsShape_setContactTestBitmask(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsShape_setRestitution(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShape* cobj = nullptr; + axis::PhysicsShape* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1418,7 +1418,7 @@ int lua_cocos2dx_physics_PhysicsShape_setRestitution(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsShape",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsShape*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1456,7 +1456,7 @@ int lua_cocos2dx_physics_PhysicsShape_setRestitution(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsShape_getBody(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShape* cobj = nullptr; + axis::PhysicsShape* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1468,7 +1468,7 @@ int lua_cocos2dx_physics_PhysicsShape_getBody(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsShape",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsShape*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsShape*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1486,8 +1486,8 @@ int lua_cocos2dx_physics_PhysicsShape_getBody(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsShape_getBody'", nullptr); return 0; } - cocos2d::PhysicsBody* ret = cobj->getBody(); - object_to_luaval(tolua_S, "cc.PhysicsBody",(cocos2d::PhysicsBody*)ret); + axis::PhysicsBody* ret = cobj->getBody(); + object_to_luaval(tolua_S, "cc.PhysicsBody",(axis::PhysicsBody*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.PhysicsShape:getBody",argc, 0); @@ -1544,7 +1544,7 @@ int lua_register_cocos2dx_physics_PhysicsShape(lua_State* tolua_S) tolua_function(tolua_S,"setRestitution",lua_cocos2dx_physics_PhysicsShape_setRestitution); tolua_function(tolua_S,"getBody",lua_cocos2dx_physics_PhysicsShape_getBody); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::PhysicsShape).name(); // rtti is literal storage + auto typeName = typeid(axis::PhysicsShape).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.PhysicsShape"; g_typeCast[typeName] = "cc.PhysicsShape"; return 1; @@ -1553,7 +1553,7 @@ int lua_register_cocos2dx_physics_PhysicsShape(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsShapeCircle_getRadius(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShapeCircle* cobj = nullptr; + axis::PhysicsShapeCircle* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1565,7 +1565,7 @@ int lua_cocos2dx_physics_PhysicsShapeCircle_getRadius(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsShapeCircle",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsShapeCircle*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsShapeCircle*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1621,14 +1621,14 @@ int lua_cocos2dx_physics_PhysicsShapeCircle_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsShapeCircle_create'", nullptr); return 0; } - cocos2d::PhysicsShapeCircle* ret = cocos2d::PhysicsShapeCircle::create(arg0); - object_to_luaval(tolua_S, "cc.PhysicsShapeCircle",(cocos2d::PhysicsShapeCircle*)ret); + axis::PhysicsShapeCircle* ret = axis::PhysicsShapeCircle::create(arg0); + object_to_luaval(tolua_S, "cc.PhysicsShapeCircle",(axis::PhysicsShapeCircle*)ret); return 1; } if (argc == 2) { double arg0; - cocos2d::PhysicsMaterial arg1; + axis::PhysicsMaterial arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.PhysicsShapeCircle:create"); ok &= luaval_to_physics_material(tolua_S, 3, &arg1, "cc.PhysicsShapeCircle:create"); if(!ok) @@ -1636,15 +1636,15 @@ int lua_cocos2dx_physics_PhysicsShapeCircle_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsShapeCircle_create'", nullptr); return 0; } - cocos2d::PhysicsShapeCircle* ret = cocos2d::PhysicsShapeCircle::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.PhysicsShapeCircle",(cocos2d::PhysicsShapeCircle*)ret); + axis::PhysicsShapeCircle* ret = axis::PhysicsShapeCircle::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.PhysicsShapeCircle",(axis::PhysicsShapeCircle*)ret); return 1; } if (argc == 3) { double arg0; - cocos2d::PhysicsMaterial arg1; - cocos2d::Vec2 arg2; + axis::PhysicsMaterial arg1; + axis::Vec2 arg2; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.PhysicsShapeCircle:create"); ok &= luaval_to_physics_material(tolua_S, 3, &arg1, "cc.PhysicsShapeCircle:create"); ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.PhysicsShapeCircle:create"); @@ -1653,8 +1653,8 @@ int lua_cocos2dx_physics_PhysicsShapeCircle_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsShapeCircle_create'", nullptr); return 0; } - cocos2d::PhysicsShapeCircle* ret = cocos2d::PhysicsShapeCircle::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.PhysicsShapeCircle",(cocos2d::PhysicsShapeCircle*)ret); + axis::PhysicsShapeCircle* ret = axis::PhysicsShapeCircle::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.PhysicsShapeCircle",(axis::PhysicsShapeCircle*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.PhysicsShapeCircle:create",argc, 1); @@ -1689,7 +1689,7 @@ int lua_cocos2dx_physics_PhysicsShapeCircle_calculateArea(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsShapeCircle_calculateArea'", nullptr); return 0; } - double ret = cocos2d::PhysicsShapeCircle::calculateArea(arg0); + double ret = axis::PhysicsShapeCircle::calculateArea(arg0); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } @@ -1727,7 +1727,7 @@ int lua_cocos2dx_physics_PhysicsShapeCircle_calculateMoment(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsShapeCircle_calculateMoment'", nullptr); return 0; } - double ret = cocos2d::PhysicsShapeCircle::calculateMoment(arg0, arg1); + double ret = axis::PhysicsShapeCircle::calculateMoment(arg0, arg1); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } @@ -1735,7 +1735,7 @@ int lua_cocos2dx_physics_PhysicsShapeCircle_calculateMoment(lua_State* tolua_S) { double arg0; double arg1; - cocos2d::Vec2 arg2; + axis::Vec2 arg2; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.PhysicsShapeCircle:calculateMoment"); ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.PhysicsShapeCircle:calculateMoment"); ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.PhysicsShapeCircle:calculateMoment"); @@ -1744,7 +1744,7 @@ int lua_cocos2dx_physics_PhysicsShapeCircle_calculateMoment(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsShapeCircle_calculateMoment'", nullptr); return 0; } - double ret = cocos2d::PhysicsShapeCircle::calculateMoment(arg0, arg1, arg2); + double ret = axis::PhysicsShapeCircle::calculateMoment(arg0, arg1, arg2); tolua_pushnumber(tolua_S,(lua_Number)ret); return 1; } @@ -1773,7 +1773,7 @@ int lua_register_cocos2dx_physics_PhysicsShapeCircle(lua_State* tolua_S) tolua_function(tolua_S,"calculateArea", lua_cocos2dx_physics_PhysicsShapeCircle_calculateArea); tolua_function(tolua_S,"calculateMoment", lua_cocos2dx_physics_PhysicsShapeCircle_calculateMoment); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::PhysicsShapeCircle).name(); // rtti is literal storage + auto typeName = typeid(axis::PhysicsShapeCircle).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.PhysicsShapeCircle"; g_typeCast[typeName] = "cc.PhysicsShapeCircle"; return 1; @@ -1782,7 +1782,7 @@ int lua_register_cocos2dx_physics_PhysicsShapeCircle(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsShapePolygon_getPointsCount(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShapePolygon* cobj = nullptr; + axis::PhysicsShapePolygon* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1794,7 +1794,7 @@ int lua_cocos2dx_physics_PhysicsShapePolygon_getPointsCount(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsShapePolygon",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsShapePolygon*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsShapePolygon*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1829,7 +1829,7 @@ int lua_cocos2dx_physics_PhysicsShapePolygon_getPointsCount(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsShapePolygon_getPoint(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShapePolygon* cobj = nullptr; + axis::PhysicsShapePolygon* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1841,7 +1841,7 @@ int lua_cocos2dx_physics_PhysicsShapePolygon_getPoint(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsShapePolygon",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsShapePolygon*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsShapePolygon*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1862,7 +1862,7 @@ int lua_cocos2dx_physics_PhysicsShapePolygon_getPoint(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsShapePolygon_getPoint'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getPoint(arg0); + axis::Vec2 ret = cobj->getPoint(arg0); vec2_to_luaval(tolua_S, ret); return 1; } @@ -1891,7 +1891,7 @@ int lua_register_cocos2dx_physics_PhysicsShapePolygon(lua_State* tolua_S) tolua_function(tolua_S,"getPointsCount",lua_cocos2dx_physics_PhysicsShapePolygon_getPointsCount); tolua_function(tolua_S,"getPoint",lua_cocos2dx_physics_PhysicsShapePolygon_getPoint); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::PhysicsShapePolygon).name(); // rtti is literal storage + auto typeName = typeid(axis::PhysicsShapePolygon).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.PhysicsShapePolygon"; g_typeCast[typeName] = "cc.PhysicsShapePolygon"; return 1; @@ -1900,7 +1900,7 @@ int lua_register_cocos2dx_physics_PhysicsShapePolygon(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsShapeBox_getSize(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShapeBox* cobj = nullptr; + axis::PhysicsShapeBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1912,7 +1912,7 @@ int lua_cocos2dx_physics_PhysicsShapeBox_getSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsShapeBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsShapeBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsShapeBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1930,7 +1930,7 @@ int lua_cocos2dx_physics_PhysicsShapeBox_getSize(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsShapeBox_getSize'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getSize(); + axis::Vec2 ret = cobj->getSize(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -1961,21 +1961,21 @@ int lua_cocos2dx_physics_PhysicsShapeBox_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsShapeBox:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsShapeBox_create'", nullptr); return 0; } - cocos2d::PhysicsShapeBox* ret = cocos2d::PhysicsShapeBox::create(arg0); - object_to_luaval(tolua_S, "cc.PhysicsShapeBox",(cocos2d::PhysicsShapeBox*)ret); + axis::PhysicsShapeBox* ret = axis::PhysicsShapeBox::create(arg0); + object_to_luaval(tolua_S, "cc.PhysicsShapeBox",(axis::PhysicsShapeBox*)ret); return 1; } if (argc == 2) { - cocos2d::Vec2 arg0; - cocos2d::PhysicsMaterial arg1; + axis::Vec2 arg0; + axis::PhysicsMaterial arg1; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsShapeBox:create"); ok &= luaval_to_physics_material(tolua_S, 3, &arg1, "cc.PhysicsShapeBox:create"); if(!ok) @@ -1983,15 +1983,15 @@ int lua_cocos2dx_physics_PhysicsShapeBox_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsShapeBox_create'", nullptr); return 0; } - cocos2d::PhysicsShapeBox* ret = cocos2d::PhysicsShapeBox::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.PhysicsShapeBox",(cocos2d::PhysicsShapeBox*)ret); + axis::PhysicsShapeBox* ret = axis::PhysicsShapeBox::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.PhysicsShapeBox",(axis::PhysicsShapeBox*)ret); return 1; } if (argc == 3) { - cocos2d::Vec2 arg0; - cocos2d::PhysicsMaterial arg1; - cocos2d::Vec2 arg2; + axis::Vec2 arg0; + axis::PhysicsMaterial arg1; + axis::Vec2 arg2; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsShapeBox:create"); ok &= luaval_to_physics_material(tolua_S, 3, &arg1, "cc.PhysicsShapeBox:create"); ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.PhysicsShapeBox:create"); @@ -2000,15 +2000,15 @@ int lua_cocos2dx_physics_PhysicsShapeBox_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsShapeBox_create'", nullptr); return 0; } - cocos2d::PhysicsShapeBox* ret = cocos2d::PhysicsShapeBox::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.PhysicsShapeBox",(cocos2d::PhysicsShapeBox*)ret); + axis::PhysicsShapeBox* ret = axis::PhysicsShapeBox::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.PhysicsShapeBox",(axis::PhysicsShapeBox*)ret); return 1; } if (argc == 4) { - cocos2d::Vec2 arg0; - cocos2d::PhysicsMaterial arg1; - cocos2d::Vec2 arg2; + axis::Vec2 arg0; + axis::PhysicsMaterial arg1; + axis::Vec2 arg2; double arg3; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsShapeBox:create"); ok &= luaval_to_physics_material(tolua_S, 3, &arg1, "cc.PhysicsShapeBox:create"); @@ -2019,8 +2019,8 @@ int lua_cocos2dx_physics_PhysicsShapeBox_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsShapeBox_create'", nullptr); return 0; } - cocos2d::PhysicsShapeBox* ret = cocos2d::PhysicsShapeBox::create(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.PhysicsShapeBox",(cocos2d::PhysicsShapeBox*)ret); + axis::PhysicsShapeBox* ret = axis::PhysicsShapeBox::create(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.PhysicsShapeBox",(axis::PhysicsShapeBox*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.PhysicsShapeBox:create",argc, 1); @@ -2046,7 +2046,7 @@ int lua_register_cocos2dx_physics_PhysicsShapeBox(lua_State* tolua_S) tolua_function(tolua_S,"getSize",lua_cocos2dx_physics_PhysicsShapeBox_getSize); tolua_function(tolua_S,"create", lua_cocos2dx_physics_PhysicsShapeBox_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::PhysicsShapeBox).name(); // rtti is literal storage + auto typeName = typeid(axis::PhysicsShapeBox).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.PhysicsShapeBox"; g_typeCast[typeName] = "cc.PhysicsShapeBox"; return 1; @@ -2055,7 +2055,7 @@ int lua_register_cocos2dx_physics_PhysicsShapeBox(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsShapeEdgeSegment_getPointB(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShapeEdgeSegment* cobj = nullptr; + axis::PhysicsShapeEdgeSegment* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2067,7 +2067,7 @@ int lua_cocos2dx_physics_PhysicsShapeEdgeSegment_getPointB(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsShapeEdgeSegment",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsShapeEdgeSegment*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsShapeEdgeSegment*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2085,7 +2085,7 @@ int lua_cocos2dx_physics_PhysicsShapeEdgeSegment_getPointB(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsShapeEdgeSegment_getPointB'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getPointB(); + axis::Vec2 ret = cobj->getPointB(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -2102,7 +2102,7 @@ int lua_cocos2dx_physics_PhysicsShapeEdgeSegment_getPointB(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsShapeEdgeSegment_getPointA(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShapeEdgeSegment* cobj = nullptr; + axis::PhysicsShapeEdgeSegment* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2114,7 +2114,7 @@ int lua_cocos2dx_physics_PhysicsShapeEdgeSegment_getPointA(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsShapeEdgeSegment",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsShapeEdgeSegment*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsShapeEdgeSegment*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2132,7 +2132,7 @@ int lua_cocos2dx_physics_PhysicsShapeEdgeSegment_getPointA(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsShapeEdgeSegment_getPointA'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getPointA(); + axis::Vec2 ret = cobj->getPointA(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -2163,8 +2163,8 @@ int lua_cocos2dx_physics_PhysicsShapeEdgeSegment_create(lua_State* tolua_S) if (argc == 2) { - cocos2d::Vec2 arg0; - cocos2d::Vec2 arg1; + axis::Vec2 arg0; + axis::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsShapeEdgeSegment:create"); ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.PhysicsShapeEdgeSegment:create"); if(!ok) @@ -2172,15 +2172,15 @@ int lua_cocos2dx_physics_PhysicsShapeEdgeSegment_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsShapeEdgeSegment_create'", nullptr); return 0; } - cocos2d::PhysicsShapeEdgeSegment* ret = cocos2d::PhysicsShapeEdgeSegment::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.PhysicsShapeEdgeSegment",(cocos2d::PhysicsShapeEdgeSegment*)ret); + axis::PhysicsShapeEdgeSegment* ret = axis::PhysicsShapeEdgeSegment::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.PhysicsShapeEdgeSegment",(axis::PhysicsShapeEdgeSegment*)ret); return 1; } if (argc == 3) { - cocos2d::Vec2 arg0; - cocos2d::Vec2 arg1; - cocos2d::PhysicsMaterial arg2; + axis::Vec2 arg0; + axis::Vec2 arg1; + axis::PhysicsMaterial arg2; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsShapeEdgeSegment:create"); ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.PhysicsShapeEdgeSegment:create"); ok &= luaval_to_physics_material(tolua_S, 4, &arg2, "cc.PhysicsShapeEdgeSegment:create"); @@ -2189,15 +2189,15 @@ int lua_cocos2dx_physics_PhysicsShapeEdgeSegment_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsShapeEdgeSegment_create'", nullptr); return 0; } - cocos2d::PhysicsShapeEdgeSegment* ret = cocos2d::PhysicsShapeEdgeSegment::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.PhysicsShapeEdgeSegment",(cocos2d::PhysicsShapeEdgeSegment*)ret); + axis::PhysicsShapeEdgeSegment* ret = axis::PhysicsShapeEdgeSegment::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.PhysicsShapeEdgeSegment",(axis::PhysicsShapeEdgeSegment*)ret); return 1; } if (argc == 4) { - cocos2d::Vec2 arg0; - cocos2d::Vec2 arg1; - cocos2d::PhysicsMaterial arg2; + axis::Vec2 arg0; + axis::Vec2 arg1; + axis::PhysicsMaterial arg2; double arg3; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsShapeEdgeSegment:create"); ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.PhysicsShapeEdgeSegment:create"); @@ -2208,8 +2208,8 @@ int lua_cocos2dx_physics_PhysicsShapeEdgeSegment_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsShapeEdgeSegment_create'", nullptr); return 0; } - cocos2d::PhysicsShapeEdgeSegment* ret = cocos2d::PhysicsShapeEdgeSegment::create(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.PhysicsShapeEdgeSegment",(cocos2d::PhysicsShapeEdgeSegment*)ret); + axis::PhysicsShapeEdgeSegment* ret = axis::PhysicsShapeEdgeSegment::create(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.PhysicsShapeEdgeSegment",(axis::PhysicsShapeEdgeSegment*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.PhysicsShapeEdgeSegment:create",argc, 2); @@ -2236,7 +2236,7 @@ int lua_register_cocos2dx_physics_PhysicsShapeEdgeSegment(lua_State* tolua_S) tolua_function(tolua_S,"getPointA",lua_cocos2dx_physics_PhysicsShapeEdgeSegment_getPointA); tolua_function(tolua_S,"create", lua_cocos2dx_physics_PhysicsShapeEdgeSegment_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::PhysicsShapeEdgeSegment).name(); // rtti is literal storage + auto typeName = typeid(axis::PhysicsShapeEdgeSegment).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.PhysicsShapeEdgeSegment"; g_typeCast[typeName] = "cc.PhysicsShapeEdgeSegment"; return 1; @@ -2245,7 +2245,7 @@ int lua_register_cocos2dx_physics_PhysicsShapeEdgeSegment(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsShapeEdgePolygon_getPointsCount(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShapeEdgePolygon* cobj = nullptr; + axis::PhysicsShapeEdgePolygon* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2257,7 +2257,7 @@ int lua_cocos2dx_physics_PhysicsShapeEdgePolygon_getPointsCount(lua_State* tolua if (!tolua_isusertype(tolua_S,1,"cc.PhysicsShapeEdgePolygon",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsShapeEdgePolygon*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsShapeEdgePolygon*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2303,7 +2303,7 @@ int lua_register_cocos2dx_physics_PhysicsShapeEdgePolygon(lua_State* tolua_S) tolua_beginmodule(tolua_S,"PhysicsShapeEdgePolygon"); tolua_function(tolua_S,"getPointsCount",lua_cocos2dx_physics_PhysicsShapeEdgePolygon_getPointsCount); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::PhysicsShapeEdgePolygon).name(); // rtti is literal storage + auto typeName = typeid(axis::PhysicsShapeEdgePolygon).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.PhysicsShapeEdgePolygon"; g_typeCast[typeName] = "cc.PhysicsShapeEdgePolygon"; return 1; @@ -2326,21 +2326,21 @@ int lua_cocos2dx_physics_PhysicsShapeEdgeBox_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsShapeEdgeBox:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsShapeEdgeBox_create'", nullptr); return 0; } - cocos2d::PhysicsShapeEdgeBox* ret = cocos2d::PhysicsShapeEdgeBox::create(arg0); - object_to_luaval(tolua_S, "cc.PhysicsShapeEdgeBox",(cocos2d::PhysicsShapeEdgeBox*)ret); + axis::PhysicsShapeEdgeBox* ret = axis::PhysicsShapeEdgeBox::create(arg0); + object_to_luaval(tolua_S, "cc.PhysicsShapeEdgeBox",(axis::PhysicsShapeEdgeBox*)ret); return 1; } if (argc == 2) { - cocos2d::Vec2 arg0; - cocos2d::PhysicsMaterial arg1; + axis::Vec2 arg0; + axis::PhysicsMaterial arg1; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsShapeEdgeBox:create"); ok &= luaval_to_physics_material(tolua_S, 3, &arg1, "cc.PhysicsShapeEdgeBox:create"); if(!ok) @@ -2348,14 +2348,14 @@ int lua_cocos2dx_physics_PhysicsShapeEdgeBox_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsShapeEdgeBox_create'", nullptr); return 0; } - cocos2d::PhysicsShapeEdgeBox* ret = cocos2d::PhysicsShapeEdgeBox::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.PhysicsShapeEdgeBox",(cocos2d::PhysicsShapeEdgeBox*)ret); + axis::PhysicsShapeEdgeBox* ret = axis::PhysicsShapeEdgeBox::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.PhysicsShapeEdgeBox",(axis::PhysicsShapeEdgeBox*)ret); return 1; } if (argc == 3) { - cocos2d::Vec2 arg0; - cocos2d::PhysicsMaterial arg1; + axis::Vec2 arg0; + axis::PhysicsMaterial arg1; double arg2; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsShapeEdgeBox:create"); ok &= luaval_to_physics_material(tolua_S, 3, &arg1, "cc.PhysicsShapeEdgeBox:create"); @@ -2365,16 +2365,16 @@ int lua_cocos2dx_physics_PhysicsShapeEdgeBox_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsShapeEdgeBox_create'", nullptr); return 0; } - cocos2d::PhysicsShapeEdgeBox* ret = cocos2d::PhysicsShapeEdgeBox::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.PhysicsShapeEdgeBox",(cocos2d::PhysicsShapeEdgeBox*)ret); + axis::PhysicsShapeEdgeBox* ret = axis::PhysicsShapeEdgeBox::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.PhysicsShapeEdgeBox",(axis::PhysicsShapeEdgeBox*)ret); return 1; } if (argc == 4) { - cocos2d::Vec2 arg0; - cocos2d::PhysicsMaterial arg1; + axis::Vec2 arg0; + axis::PhysicsMaterial arg1; double arg2; - cocos2d::Vec2 arg3; + axis::Vec2 arg3; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsShapeEdgeBox:create"); ok &= luaval_to_physics_material(tolua_S, 3, &arg1, "cc.PhysicsShapeEdgeBox:create"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.PhysicsShapeEdgeBox:create"); @@ -2384,8 +2384,8 @@ int lua_cocos2dx_physics_PhysicsShapeEdgeBox_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsShapeEdgeBox_create'", nullptr); return 0; } - cocos2d::PhysicsShapeEdgeBox* ret = cocos2d::PhysicsShapeEdgeBox::create(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.PhysicsShapeEdgeBox",(cocos2d::PhysicsShapeEdgeBox*)ret); + axis::PhysicsShapeEdgeBox* ret = axis::PhysicsShapeEdgeBox::create(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.PhysicsShapeEdgeBox",(axis::PhysicsShapeEdgeBox*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.PhysicsShapeEdgeBox:create",argc, 1); @@ -2410,7 +2410,7 @@ int lua_register_cocos2dx_physics_PhysicsShapeEdgeBox(lua_State* tolua_S) tolua_beginmodule(tolua_S,"PhysicsShapeEdgeBox"); tolua_function(tolua_S,"create", lua_cocos2dx_physics_PhysicsShapeEdgeBox_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::PhysicsShapeEdgeBox).name(); // rtti is literal storage + auto typeName = typeid(axis::PhysicsShapeEdgeBox).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.PhysicsShapeEdgeBox"; g_typeCast[typeName] = "cc.PhysicsShapeEdgeBox"; return 1; @@ -2419,7 +2419,7 @@ int lua_register_cocos2dx_physics_PhysicsShapeEdgeBox(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsShapeEdgeChain_getPointsCount(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShapeEdgeChain* cobj = nullptr; + axis::PhysicsShapeEdgeChain* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2431,7 +2431,7 @@ int lua_cocos2dx_physics_PhysicsShapeEdgeChain_getPointsCount(lua_State* tolua_S if (!tolua_isusertype(tolua_S,1,"cc.PhysicsShapeEdgeChain",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsShapeEdgeChain*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsShapeEdgeChain*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2477,7 +2477,7 @@ int lua_register_cocos2dx_physics_PhysicsShapeEdgeChain(lua_State* tolua_S) tolua_beginmodule(tolua_S,"PhysicsShapeEdgeChain"); tolua_function(tolua_S,"getPointsCount",lua_cocos2dx_physics_PhysicsShapeEdgeChain_getPointsCount); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::PhysicsShapeEdgeChain).name(); // rtti is literal storage + auto typeName = typeid(axis::PhysicsShapeEdgeChain).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.PhysicsShapeEdgeChain"; g_typeCast[typeName] = "cc.PhysicsShapeEdgeChain"; return 1; @@ -2486,7 +2486,7 @@ int lua_register_cocos2dx_physics_PhysicsShapeEdgeChain(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_isGravityEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2498,7 +2498,7 @@ int lua_cocos2dx_physics_PhysicsBody_isGravityEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2533,7 +2533,7 @@ int lua_cocos2dx_physics_PhysicsBody_isGravityEnabled(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_resetForces(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2545,7 +2545,7 @@ int lua_cocos2dx_physics_PhysicsBody_resetForces(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2580,7 +2580,7 @@ int lua_cocos2dx_physics_PhysicsBody_resetForces(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_getVelocityLimit(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2592,7 +2592,7 @@ int lua_cocos2dx_physics_PhysicsBody_getVelocityLimit(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2627,7 +2627,7 @@ int lua_cocos2dx_physics_PhysicsBody_getVelocityLimit(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_setGroup(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2639,7 +2639,7 @@ int lua_cocos2dx_physics_PhysicsBody_setGroup(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2677,7 +2677,7 @@ int lua_cocos2dx_physics_PhysicsBody_setGroup(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_getMass(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2689,7 +2689,7 @@ int lua_cocos2dx_physics_PhysicsBody_getMass(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2724,7 +2724,7 @@ int lua_cocos2dx_physics_PhysicsBody_getMass(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_getCollisionBitmask(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2736,7 +2736,7 @@ int lua_cocos2dx_physics_PhysicsBody_getCollisionBitmask(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2771,7 +2771,7 @@ int lua_cocos2dx_physics_PhysicsBody_getCollisionBitmask(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_getRotationOffset(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2783,7 +2783,7 @@ int lua_cocos2dx_physics_PhysicsBody_getRotationOffset(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2818,7 +2818,7 @@ int lua_cocos2dx_physics_PhysicsBody_getRotationOffset(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_getRotation(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2830,7 +2830,7 @@ int lua_cocos2dx_physics_PhysicsBody_getRotation(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2865,7 +2865,7 @@ int lua_cocos2dx_physics_PhysicsBody_getRotation(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_getMoment(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2877,7 +2877,7 @@ int lua_cocos2dx_physics_PhysicsBody_getMoment(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2912,7 +2912,7 @@ int lua_cocos2dx_physics_PhysicsBody_getMoment(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_applyImpulse(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2924,7 +2924,7 @@ int lua_cocos2dx_physics_PhysicsBody_applyImpulse(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2937,7 +2937,7 @@ int lua_cocos2dx_physics_PhysicsBody_applyImpulse(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsBody:applyImpulse"); if(!ok) @@ -2951,8 +2951,8 @@ int lua_cocos2dx_physics_PhysicsBody_applyImpulse(lua_State* tolua_S) } if (argc == 2) { - cocos2d::Vec2 arg0; - cocos2d::Vec2 arg1; + axis::Vec2 arg0; + axis::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsBody:applyImpulse"); @@ -2979,7 +2979,7 @@ int lua_cocos2dx_physics_PhysicsBody_applyImpulse(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_setRotationOffset(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2991,7 +2991,7 @@ int lua_cocos2dx_physics_PhysicsBody_setRotationOffset(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3029,7 +3029,7 @@ int lua_cocos2dx_physics_PhysicsBody_setRotationOffset(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_applyForce(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3041,7 +3041,7 @@ int lua_cocos2dx_physics_PhysicsBody_applyForce(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3054,7 +3054,7 @@ int lua_cocos2dx_physics_PhysicsBody_applyForce(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsBody:applyForce"); if(!ok) @@ -3068,8 +3068,8 @@ int lua_cocos2dx_physics_PhysicsBody_applyForce(lua_State* tolua_S) } if (argc == 2) { - cocos2d::Vec2 arg0; - cocos2d::Vec2 arg1; + axis::Vec2 arg0; + axis::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsBody:applyForce"); @@ -3096,7 +3096,7 @@ int lua_cocos2dx_physics_PhysicsBody_applyForce(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_addShape(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3108,7 +3108,7 @@ int lua_cocos2dx_physics_PhysicsBody_addShape(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3121,24 +3121,24 @@ int lua_cocos2dx_physics_PhysicsBody_addShape(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::PhysicsShape* arg0; + axis::PhysicsShape* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsShape",&arg0, "cc.PhysicsBody:addShape"); + ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsShape",&arg0, "cc.PhysicsBody:addShape"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsBody_addShape'", nullptr); return 0; } - cocos2d::PhysicsShape* ret = cobj->addShape(arg0); - object_to_luaval(tolua_S, "cc.PhysicsShape",(cocos2d::PhysicsShape*)ret); + axis::PhysicsShape* ret = cobj->addShape(arg0); + object_to_luaval(tolua_S, "cc.PhysicsShape",(axis::PhysicsShape*)ret); return 1; } if (argc == 2) { - cocos2d::PhysicsShape* arg0; + axis::PhysicsShape* arg0; bool arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsShape",&arg0, "cc.PhysicsBody:addShape"); + ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsShape",&arg0, "cc.PhysicsBody:addShape"); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.PhysicsBody:addShape"); if(!ok) @@ -3146,8 +3146,8 @@ int lua_cocos2dx_physics_PhysicsBody_addShape(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsBody_addShape'", nullptr); return 0; } - cocos2d::PhysicsShape* ret = cobj->addShape(arg0, arg1); - object_to_luaval(tolua_S, "cc.PhysicsShape",(cocos2d::PhysicsShape*)ret); + axis::PhysicsShape* ret = cobj->addShape(arg0, arg1); + object_to_luaval(tolua_S, "cc.PhysicsShape",(axis::PhysicsShape*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.PhysicsBody:addShape",argc, 1); @@ -3163,7 +3163,7 @@ int lua_cocos2dx_physics_PhysicsBody_addShape(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_applyTorque(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3175,7 +3175,7 @@ int lua_cocos2dx_physics_PhysicsBody_applyTorque(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3213,7 +3213,7 @@ int lua_cocos2dx_physics_PhysicsBody_applyTorque(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_getAngularVelocityLimit(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3225,7 +3225,7 @@ int lua_cocos2dx_physics_PhysicsBody_getAngularVelocityLimit(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3260,7 +3260,7 @@ int lua_cocos2dx_physics_PhysicsBody_getAngularVelocityLimit(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_setAngularVelocityLimit(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3272,7 +3272,7 @@ int lua_cocos2dx_physics_PhysicsBody_setAngularVelocityLimit(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3310,7 +3310,7 @@ int lua_cocos2dx_physics_PhysicsBody_setAngularVelocityLimit(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_getVelocity(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3322,7 +3322,7 @@ int lua_cocos2dx_physics_PhysicsBody_getVelocity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3340,7 +3340,7 @@ int lua_cocos2dx_physics_PhysicsBody_getVelocity(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsBody_getVelocity'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getVelocity(); + axis::Vec2 ret = cobj->getVelocity(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -3357,7 +3357,7 @@ int lua_cocos2dx_physics_PhysicsBody_getVelocity(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_getLinearDamping(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3369,7 +3369,7 @@ int lua_cocos2dx_physics_PhysicsBody_getLinearDamping(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3404,7 +3404,7 @@ int lua_cocos2dx_physics_PhysicsBody_getLinearDamping(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_removeAllShapes(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3416,7 +3416,7 @@ int lua_cocos2dx_physics_PhysicsBody_removeAllShapes(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3465,7 +3465,7 @@ int lua_cocos2dx_physics_PhysicsBody_removeAllShapes(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_setAngularDamping(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3477,7 +3477,7 @@ int lua_cocos2dx_physics_PhysicsBody_setAngularDamping(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3515,7 +3515,7 @@ int lua_cocos2dx_physics_PhysicsBody_setAngularDamping(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_setVelocityLimit(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3527,7 +3527,7 @@ int lua_cocos2dx_physics_PhysicsBody_setVelocityLimit(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3565,7 +3565,7 @@ int lua_cocos2dx_physics_PhysicsBody_setVelocityLimit(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_setResting(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3577,7 +3577,7 @@ int lua_cocos2dx_physics_PhysicsBody_setResting(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3615,7 +3615,7 @@ int lua_cocos2dx_physics_PhysicsBody_setResting(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_getPositionOffset(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3627,7 +3627,7 @@ int lua_cocos2dx_physics_PhysicsBody_getPositionOffset(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3645,7 +3645,7 @@ int lua_cocos2dx_physics_PhysicsBody_getPositionOffset(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsBody_getPositionOffset'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getPositionOffset(); + const axis::Vec2& ret = cobj->getPositionOffset(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -3662,7 +3662,7 @@ int lua_cocos2dx_physics_PhysicsBody_getPositionOffset(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_setCategoryBitmask(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3674,7 +3674,7 @@ int lua_cocos2dx_physics_PhysicsBody_setCategoryBitmask(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3712,7 +3712,7 @@ int lua_cocos2dx_physics_PhysicsBody_setCategoryBitmask(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_getWorld(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3724,7 +3724,7 @@ int lua_cocos2dx_physics_PhysicsBody_getWorld(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3742,8 +3742,8 @@ int lua_cocos2dx_physics_PhysicsBody_getWorld(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsBody_getWorld'", nullptr); return 0; } - cocos2d::PhysicsWorld* ret = cobj->getWorld(); - object_to_luaval(tolua_S, "cc.PhysicsWorld",(cocos2d::PhysicsWorld*)ret); + axis::PhysicsWorld* ret = cobj->getWorld(); + object_to_luaval(tolua_S, "cc.PhysicsWorld",(axis::PhysicsWorld*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.PhysicsBody:getWorld",argc, 0); @@ -3759,7 +3759,7 @@ int lua_cocos2dx_physics_PhysicsBody_getWorld(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_getAngularVelocity(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3771,7 +3771,7 @@ int lua_cocos2dx_physics_PhysicsBody_getAngularVelocity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3806,7 +3806,7 @@ int lua_cocos2dx_physics_PhysicsBody_getAngularVelocity(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_getPosition(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3818,7 +3818,7 @@ int lua_cocos2dx_physics_PhysicsBody_getPosition(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3836,7 +3836,7 @@ int lua_cocos2dx_physics_PhysicsBody_getPosition(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsBody_getPosition'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getPosition(); + axis::Vec2 ret = cobj->getPosition(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -3853,7 +3853,7 @@ int lua_cocos2dx_physics_PhysicsBody_getPosition(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_setGravityEnable(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3865,7 +3865,7 @@ int lua_cocos2dx_physics_PhysicsBody_setGravityEnable(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3903,7 +3903,7 @@ int lua_cocos2dx_physics_PhysicsBody_setGravityEnable(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_getGroup(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3915,7 +3915,7 @@ int lua_cocos2dx_physics_PhysicsBody_getGroup(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3950,7 +3950,7 @@ int lua_cocos2dx_physics_PhysicsBody_getGroup(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_setMoment(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3962,7 +3962,7 @@ int lua_cocos2dx_physics_PhysicsBody_setMoment(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4000,7 +4000,7 @@ int lua_cocos2dx_physics_PhysicsBody_setMoment(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_getTag(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4012,7 +4012,7 @@ int lua_cocos2dx_physics_PhysicsBody_getTag(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4047,7 +4047,7 @@ int lua_cocos2dx_physics_PhysicsBody_getTag(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_local2World(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4059,7 +4059,7 @@ int lua_cocos2dx_physics_PhysicsBody_local2World(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4072,7 +4072,7 @@ int lua_cocos2dx_physics_PhysicsBody_local2World(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsBody:local2World"); if(!ok) @@ -4080,7 +4080,7 @@ int lua_cocos2dx_physics_PhysicsBody_local2World(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsBody_local2World'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->local2World(arg0); + axis::Vec2 ret = cobj->local2World(arg0); vec2_to_luaval(tolua_S, ret); return 1; } @@ -4097,7 +4097,7 @@ int lua_cocos2dx_physics_PhysicsBody_local2World(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_getCategoryBitmask(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4109,7 +4109,7 @@ int lua_cocos2dx_physics_PhysicsBody_getCategoryBitmask(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4144,7 +4144,7 @@ int lua_cocos2dx_physics_PhysicsBody_getCategoryBitmask(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_setDynamic(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4156,7 +4156,7 @@ int lua_cocos2dx_physics_PhysicsBody_setDynamic(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4194,7 +4194,7 @@ int lua_cocos2dx_physics_PhysicsBody_setDynamic(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_getFirstShape(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4206,7 +4206,7 @@ int lua_cocos2dx_physics_PhysicsBody_getFirstShape(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4224,8 +4224,8 @@ int lua_cocos2dx_physics_PhysicsBody_getFirstShape(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsBody_getFirstShape'", nullptr); return 0; } - cocos2d::PhysicsShape* ret = cobj->getFirstShape(); - object_to_luaval(tolua_S, "cc.PhysicsShape",(cocos2d::PhysicsShape*)ret); + axis::PhysicsShape* ret = cobj->getFirstShape(); + object_to_luaval(tolua_S, "cc.PhysicsShape",(axis::PhysicsShape*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.PhysicsBody:getFirstShape",argc, 0); @@ -4241,7 +4241,7 @@ int lua_cocos2dx_physics_PhysicsBody_getFirstShape(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_getShapes(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4253,7 +4253,7 @@ int lua_cocos2dx_physics_PhysicsBody_getShapes(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4271,7 +4271,7 @@ int lua_cocos2dx_physics_PhysicsBody_getShapes(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsBody_getShapes'", nullptr); return 0; } - const cocos2d::Vector& ret = cobj->getShapes(); + const axis::Vector& ret = cobj->getShapes(); ccvector_to_luaval(tolua_S, ret); return 1; } @@ -4288,7 +4288,7 @@ int lua_cocos2dx_physics_PhysicsBody_getShapes(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_getContactTestBitmask(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4300,7 +4300,7 @@ int lua_cocos2dx_physics_PhysicsBody_getContactTestBitmask(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4335,7 +4335,7 @@ int lua_cocos2dx_physics_PhysicsBody_getContactTestBitmask(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_setAngularVelocity(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4347,7 +4347,7 @@ int lua_cocos2dx_physics_PhysicsBody_setAngularVelocity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4385,7 +4385,7 @@ int lua_cocos2dx_physics_PhysicsBody_setAngularVelocity(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_world2Local(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4397,7 +4397,7 @@ int lua_cocos2dx_physics_PhysicsBody_world2Local(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4410,7 +4410,7 @@ int lua_cocos2dx_physics_PhysicsBody_world2Local(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsBody:world2Local"); if(!ok) @@ -4418,7 +4418,7 @@ int lua_cocos2dx_physics_PhysicsBody_world2Local(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsBody_world2Local'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->world2Local(arg0); + axis::Vec2 ret = cobj->world2Local(arg0); vec2_to_luaval(tolua_S, ret); return 1; } @@ -4435,7 +4435,7 @@ int lua_cocos2dx_physics_PhysicsBody_world2Local(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_removeShape(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -4444,7 +4444,7 @@ int lua_cocos2dx_physics_PhysicsBody_removeShape(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -4483,8 +4483,8 @@ int lua_cocos2dx_physics_PhysicsBody_removeShape(lua_State* tolua_S) ok = true; do{ if (argc == 1) { - cocos2d::PhysicsShape* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsShape",&arg0, "cc.PhysicsBody:removeShape"); + axis::PhysicsShape* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsShape",&arg0, "cc.PhysicsBody:removeShape"); if (!ok) { break; } cobj->removeShape(arg0); @@ -4495,8 +4495,8 @@ int lua_cocos2dx_physics_PhysicsBody_removeShape(lua_State* tolua_S) ok = true; do{ if (argc == 2) { - cocos2d::PhysicsShape* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsShape",&arg0, "cc.PhysicsBody:removeShape"); + axis::PhysicsShape* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsShape",&arg0, "cc.PhysicsBody:removeShape"); if (!ok) { break; } bool arg1; @@ -4522,7 +4522,7 @@ int lua_cocos2dx_physics_PhysicsBody_removeShape(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_setMass(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4534,7 +4534,7 @@ int lua_cocos2dx_physics_PhysicsBody_setMass(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4572,7 +4572,7 @@ int lua_cocos2dx_physics_PhysicsBody_setMass(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_addMoment(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4584,7 +4584,7 @@ int lua_cocos2dx_physics_PhysicsBody_addMoment(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4622,7 +4622,7 @@ int lua_cocos2dx_physics_PhysicsBody_addMoment(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_setVelocity(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4634,7 +4634,7 @@ int lua_cocos2dx_physics_PhysicsBody_setVelocity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4647,7 +4647,7 @@ int lua_cocos2dx_physics_PhysicsBody_setVelocity(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsBody:setVelocity"); if(!ok) @@ -4672,7 +4672,7 @@ int lua_cocos2dx_physics_PhysicsBody_setVelocity(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_setLinearDamping(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4684,7 +4684,7 @@ int lua_cocos2dx_physics_PhysicsBody_setLinearDamping(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4722,7 +4722,7 @@ int lua_cocos2dx_physics_PhysicsBody_setLinearDamping(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_setCollisionBitmask(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4734,7 +4734,7 @@ int lua_cocos2dx_physics_PhysicsBody_setCollisionBitmask(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4772,7 +4772,7 @@ int lua_cocos2dx_physics_PhysicsBody_setCollisionBitmask(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_setPositionOffset(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4784,7 +4784,7 @@ int lua_cocos2dx_physics_PhysicsBody_setPositionOffset(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4797,7 +4797,7 @@ int lua_cocos2dx_physics_PhysicsBody_setPositionOffset(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsBody:setPositionOffset"); if(!ok) @@ -4822,7 +4822,7 @@ int lua_cocos2dx_physics_PhysicsBody_setPositionOffset(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_setRotationEnable(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4834,7 +4834,7 @@ int lua_cocos2dx_physics_PhysicsBody_setRotationEnable(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4872,7 +4872,7 @@ int lua_cocos2dx_physics_PhysicsBody_setRotationEnable(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_isRotationEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4884,7 +4884,7 @@ int lua_cocos2dx_physics_PhysicsBody_isRotationEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4919,7 +4919,7 @@ int lua_cocos2dx_physics_PhysicsBody_isRotationEnabled(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_getCPBody(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4931,7 +4931,7 @@ int lua_cocos2dx_physics_PhysicsBody_getCPBody(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4966,7 +4966,7 @@ int lua_cocos2dx_physics_PhysicsBody_getCPBody(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_getAngularDamping(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4978,7 +4978,7 @@ int lua_cocos2dx_physics_PhysicsBody_getAngularDamping(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5013,7 +5013,7 @@ int lua_cocos2dx_physics_PhysicsBody_getAngularDamping(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_getVelocityAtLocalPoint(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5025,7 +5025,7 @@ int lua_cocos2dx_physics_PhysicsBody_getVelocityAtLocalPoint(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5038,7 +5038,7 @@ int lua_cocos2dx_physics_PhysicsBody_getVelocityAtLocalPoint(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsBody:getVelocityAtLocalPoint"); if(!ok) @@ -5046,7 +5046,7 @@ int lua_cocos2dx_physics_PhysicsBody_getVelocityAtLocalPoint(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsBody_getVelocityAtLocalPoint'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getVelocityAtLocalPoint(arg0); + axis::Vec2 ret = cobj->getVelocityAtLocalPoint(arg0); vec2_to_luaval(tolua_S, ret); return 1; } @@ -5063,7 +5063,7 @@ int lua_cocos2dx_physics_PhysicsBody_getVelocityAtLocalPoint(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_isResting(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5075,7 +5075,7 @@ int lua_cocos2dx_physics_PhysicsBody_isResting(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5110,7 +5110,7 @@ int lua_cocos2dx_physics_PhysicsBody_isResting(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_addMass(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5122,7 +5122,7 @@ int lua_cocos2dx_physics_PhysicsBody_addMass(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5160,7 +5160,7 @@ int lua_cocos2dx_physics_PhysicsBody_addMass(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_getShape(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5172,7 +5172,7 @@ int lua_cocos2dx_physics_PhysicsBody_getShape(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5193,8 +5193,8 @@ int lua_cocos2dx_physics_PhysicsBody_getShape(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsBody_getShape'", nullptr); return 0; } - cocos2d::PhysicsShape* ret = cobj->getShape(arg0); - object_to_luaval(tolua_S, "cc.PhysicsShape",(cocos2d::PhysicsShape*)ret); + axis::PhysicsShape* ret = cobj->getShape(arg0); + object_to_luaval(tolua_S, "cc.PhysicsShape",(axis::PhysicsShape*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.PhysicsBody:getShape",argc, 1); @@ -5210,7 +5210,7 @@ int lua_cocos2dx_physics_PhysicsBody_getShape(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_setTag(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5222,7 +5222,7 @@ int lua_cocos2dx_physics_PhysicsBody_setTag(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5260,7 +5260,7 @@ int lua_cocos2dx_physics_PhysicsBody_setTag(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_getVelocityAtWorldPoint(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5272,7 +5272,7 @@ int lua_cocos2dx_physics_PhysicsBody_getVelocityAtWorldPoint(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5285,7 +5285,7 @@ int lua_cocos2dx_physics_PhysicsBody_getVelocityAtWorldPoint(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsBody:getVelocityAtWorldPoint"); if(!ok) @@ -5293,7 +5293,7 @@ int lua_cocos2dx_physics_PhysicsBody_getVelocityAtWorldPoint(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsBody_getVelocityAtWorldPoint'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getVelocityAtWorldPoint(arg0); + axis::Vec2 ret = cobj->getVelocityAtWorldPoint(arg0); vec2_to_luaval(tolua_S, ret); return 1; } @@ -5310,7 +5310,7 @@ int lua_cocos2dx_physics_PhysicsBody_getVelocityAtWorldPoint(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_setContactTestBitmask(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5322,7 +5322,7 @@ int lua_cocos2dx_physics_PhysicsBody_setContactTestBitmask(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5360,7 +5360,7 @@ int lua_cocos2dx_physics_PhysicsBody_setContactTestBitmask(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_removeFromWorld(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5372,7 +5372,7 @@ int lua_cocos2dx_physics_PhysicsBody_removeFromWorld(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5407,7 +5407,7 @@ int lua_cocos2dx_physics_PhysicsBody_removeFromWorld(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_isDynamic(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5419,7 +5419,7 @@ int lua_cocos2dx_physics_PhysicsBody_isDynamic(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5454,7 +5454,7 @@ int lua_cocos2dx_physics_PhysicsBody_isDynamic(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsBody_getNode(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5466,7 +5466,7 @@ int lua_cocos2dx_physics_PhysicsBody_getNode(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsBody",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5484,8 +5484,8 @@ int lua_cocos2dx_physics_PhysicsBody_getNode(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsBody_getNode'", nullptr); return 0; } - cocos2d::Node* ret = cobj->getNode(); - object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + axis::Node* ret = cobj->getNode(); + object_to_luaval(tolua_S, "cc.Node",(axis::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.PhysicsBody:getNode",argc, 0); @@ -5515,21 +5515,21 @@ int lua_cocos2dx_physics_PhysicsBody_createBox(lua_State* tolua_S) if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsBody:createBox"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsBody_createBox'", nullptr); return 0; } - cocos2d::PhysicsBody* ret = cocos2d::PhysicsBody::createBox(arg0); - object_to_luaval(tolua_S, "cc.PhysicsBody",(cocos2d::PhysicsBody*)ret); + axis::PhysicsBody* ret = axis::PhysicsBody::createBox(arg0); + object_to_luaval(tolua_S, "cc.PhysicsBody",(axis::PhysicsBody*)ret); return 1; } if (argc == 2) { - cocos2d::Vec2 arg0; - cocos2d::PhysicsMaterial arg1; + axis::Vec2 arg0; + axis::PhysicsMaterial arg1; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsBody:createBox"); ok &= luaval_to_physics_material(tolua_S, 3, &arg1, "cc.PhysicsBody:createBox"); if(!ok) @@ -5537,15 +5537,15 @@ int lua_cocos2dx_physics_PhysicsBody_createBox(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsBody_createBox'", nullptr); return 0; } - cocos2d::PhysicsBody* ret = cocos2d::PhysicsBody::createBox(arg0, arg1); - object_to_luaval(tolua_S, "cc.PhysicsBody",(cocos2d::PhysicsBody*)ret); + axis::PhysicsBody* ret = axis::PhysicsBody::createBox(arg0, arg1); + object_to_luaval(tolua_S, "cc.PhysicsBody",(axis::PhysicsBody*)ret); return 1; } if (argc == 3) { - cocos2d::Vec2 arg0; - cocos2d::PhysicsMaterial arg1; - cocos2d::Vec2 arg2; + axis::Vec2 arg0; + axis::PhysicsMaterial arg1; + axis::Vec2 arg2; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsBody:createBox"); ok &= luaval_to_physics_material(tolua_S, 3, &arg1, "cc.PhysicsBody:createBox"); ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.PhysicsBody:createBox"); @@ -5554,8 +5554,8 @@ int lua_cocos2dx_physics_PhysicsBody_createBox(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsBody_createBox'", nullptr); return 0; } - cocos2d::PhysicsBody* ret = cocos2d::PhysicsBody::createBox(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.PhysicsBody",(cocos2d::PhysicsBody*)ret); + axis::PhysicsBody* ret = axis::PhysicsBody::createBox(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.PhysicsBody",(axis::PhysicsBody*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.PhysicsBody:createBox",argc, 1); @@ -5583,8 +5583,8 @@ int lua_cocos2dx_physics_PhysicsBody_createEdgeSegment(lua_State* tolua_S) if (argc == 2) { - cocos2d::Vec2 arg0; - cocos2d::Vec2 arg1; + axis::Vec2 arg0; + axis::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsBody:createEdgeSegment"); ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.PhysicsBody:createEdgeSegment"); if(!ok) @@ -5592,15 +5592,15 @@ int lua_cocos2dx_physics_PhysicsBody_createEdgeSegment(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsBody_createEdgeSegment'", nullptr); return 0; } - cocos2d::PhysicsBody* ret = cocos2d::PhysicsBody::createEdgeSegment(arg0, arg1); - object_to_luaval(tolua_S, "cc.PhysicsBody",(cocos2d::PhysicsBody*)ret); + axis::PhysicsBody* ret = axis::PhysicsBody::createEdgeSegment(arg0, arg1); + object_to_luaval(tolua_S, "cc.PhysicsBody",(axis::PhysicsBody*)ret); return 1; } if (argc == 3) { - cocos2d::Vec2 arg0; - cocos2d::Vec2 arg1; - cocos2d::PhysicsMaterial arg2; + axis::Vec2 arg0; + axis::Vec2 arg1; + axis::PhysicsMaterial arg2; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsBody:createEdgeSegment"); ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.PhysicsBody:createEdgeSegment"); ok &= luaval_to_physics_material(tolua_S, 4, &arg2, "cc.PhysicsBody:createEdgeSegment"); @@ -5609,15 +5609,15 @@ int lua_cocos2dx_physics_PhysicsBody_createEdgeSegment(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsBody_createEdgeSegment'", nullptr); return 0; } - cocos2d::PhysicsBody* ret = cocos2d::PhysicsBody::createEdgeSegment(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.PhysicsBody",(cocos2d::PhysicsBody*)ret); + axis::PhysicsBody* ret = axis::PhysicsBody::createEdgeSegment(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.PhysicsBody",(axis::PhysicsBody*)ret); return 1; } if (argc == 4) { - cocos2d::Vec2 arg0; - cocos2d::Vec2 arg1; - cocos2d::PhysicsMaterial arg2; + axis::Vec2 arg0; + axis::Vec2 arg1; + axis::PhysicsMaterial arg2; double arg3; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsBody:createEdgeSegment"); ok &= luaval_to_vec2(tolua_S, 3, &arg1, "cc.PhysicsBody:createEdgeSegment"); @@ -5628,8 +5628,8 @@ int lua_cocos2dx_physics_PhysicsBody_createEdgeSegment(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsBody_createEdgeSegment'", nullptr); return 0; } - cocos2d::PhysicsBody* ret = cocos2d::PhysicsBody::createEdgeSegment(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.PhysicsBody",(cocos2d::PhysicsBody*)ret); + axis::PhysicsBody* ret = axis::PhysicsBody::createEdgeSegment(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.PhysicsBody",(axis::PhysicsBody*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.PhysicsBody:createEdgeSegment",argc, 2); @@ -5661,8 +5661,8 @@ int lua_cocos2dx_physics_PhysicsBody_create(lua_State* tolua_S) double arg0; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.PhysicsBody:create"); if (!ok) { break; } - cocos2d::PhysicsBody* ret = cocos2d::PhysicsBody::create(arg0); - object_to_luaval(tolua_S, "cc.PhysicsBody",(cocos2d::PhysicsBody*)ret); + axis::PhysicsBody* ret = axis::PhysicsBody::create(arg0); + object_to_luaval(tolua_S, "cc.PhysicsBody",(axis::PhysicsBody*)ret); return 1; } } while (0); @@ -5671,8 +5671,8 @@ int lua_cocos2dx_physics_PhysicsBody_create(lua_State* tolua_S) { if (argc == 0) { - cocos2d::PhysicsBody* ret = cocos2d::PhysicsBody::create(); - object_to_luaval(tolua_S, "cc.PhysicsBody",(cocos2d::PhysicsBody*)ret); + axis::PhysicsBody* ret = axis::PhysicsBody::create(); + object_to_luaval(tolua_S, "cc.PhysicsBody",(axis::PhysicsBody*)ret); return 1; } } while (0); @@ -5687,8 +5687,8 @@ int lua_cocos2dx_physics_PhysicsBody_create(lua_State* tolua_S) double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "cc.PhysicsBody:create"); if (!ok) { break; } - cocos2d::PhysicsBody* ret = cocos2d::PhysicsBody::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.PhysicsBody",(cocos2d::PhysicsBody*)ret); + axis::PhysicsBody* ret = axis::PhysicsBody::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.PhysicsBody",(axis::PhysicsBody*)ret); return 1; } } while (0); @@ -5718,21 +5718,21 @@ int lua_cocos2dx_physics_PhysicsBody_createEdgeBox(lua_State* tolua_S) if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsBody:createEdgeBox"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsBody_createEdgeBox'", nullptr); return 0; } - cocos2d::PhysicsBody* ret = cocos2d::PhysicsBody::createEdgeBox(arg0); - object_to_luaval(tolua_S, "cc.PhysicsBody",(cocos2d::PhysicsBody*)ret); + axis::PhysicsBody* ret = axis::PhysicsBody::createEdgeBox(arg0); + object_to_luaval(tolua_S, "cc.PhysicsBody",(axis::PhysicsBody*)ret); return 1; } if (argc == 2) { - cocos2d::Vec2 arg0; - cocos2d::PhysicsMaterial arg1; + axis::Vec2 arg0; + axis::PhysicsMaterial arg1; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsBody:createEdgeBox"); ok &= luaval_to_physics_material(tolua_S, 3, &arg1, "cc.PhysicsBody:createEdgeBox"); if(!ok) @@ -5740,14 +5740,14 @@ int lua_cocos2dx_physics_PhysicsBody_createEdgeBox(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsBody_createEdgeBox'", nullptr); return 0; } - cocos2d::PhysicsBody* ret = cocos2d::PhysicsBody::createEdgeBox(arg0, arg1); - object_to_luaval(tolua_S, "cc.PhysicsBody",(cocos2d::PhysicsBody*)ret); + axis::PhysicsBody* ret = axis::PhysicsBody::createEdgeBox(arg0, arg1); + object_to_luaval(tolua_S, "cc.PhysicsBody",(axis::PhysicsBody*)ret); return 1; } if (argc == 3) { - cocos2d::Vec2 arg0; - cocos2d::PhysicsMaterial arg1; + axis::Vec2 arg0; + axis::PhysicsMaterial arg1; double arg2; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsBody:createEdgeBox"); ok &= luaval_to_physics_material(tolua_S, 3, &arg1, "cc.PhysicsBody:createEdgeBox"); @@ -5757,16 +5757,16 @@ int lua_cocos2dx_physics_PhysicsBody_createEdgeBox(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsBody_createEdgeBox'", nullptr); return 0; } - cocos2d::PhysicsBody* ret = cocos2d::PhysicsBody::createEdgeBox(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.PhysicsBody",(cocos2d::PhysicsBody*)ret); + axis::PhysicsBody* ret = axis::PhysicsBody::createEdgeBox(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.PhysicsBody",(axis::PhysicsBody*)ret); return 1; } if (argc == 4) { - cocos2d::Vec2 arg0; - cocos2d::PhysicsMaterial arg1; + axis::Vec2 arg0; + axis::PhysicsMaterial arg1; double arg2; - cocos2d::Vec2 arg3; + axis::Vec2 arg3; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsBody:createEdgeBox"); ok &= luaval_to_physics_material(tolua_S, 3, &arg1, "cc.PhysicsBody:createEdgeBox"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.PhysicsBody:createEdgeBox"); @@ -5776,8 +5776,8 @@ int lua_cocos2dx_physics_PhysicsBody_createEdgeBox(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsBody_createEdgeBox'", nullptr); return 0; } - cocos2d::PhysicsBody* ret = cocos2d::PhysicsBody::createEdgeBox(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.PhysicsBody",(cocos2d::PhysicsBody*)ret); + axis::PhysicsBody* ret = axis::PhysicsBody::createEdgeBox(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.PhysicsBody",(axis::PhysicsBody*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.PhysicsBody:createEdgeBox",argc, 1); @@ -5812,14 +5812,14 @@ int lua_cocos2dx_physics_PhysicsBody_createCircle(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsBody_createCircle'", nullptr); return 0; } - cocos2d::PhysicsBody* ret = cocos2d::PhysicsBody::createCircle(arg0); - object_to_luaval(tolua_S, "cc.PhysicsBody",(cocos2d::PhysicsBody*)ret); + axis::PhysicsBody* ret = axis::PhysicsBody::createCircle(arg0); + object_to_luaval(tolua_S, "cc.PhysicsBody",(axis::PhysicsBody*)ret); return 1; } if (argc == 2) { double arg0; - cocos2d::PhysicsMaterial arg1; + axis::PhysicsMaterial arg1; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.PhysicsBody:createCircle"); ok &= luaval_to_physics_material(tolua_S, 3, &arg1, "cc.PhysicsBody:createCircle"); if(!ok) @@ -5827,15 +5827,15 @@ int lua_cocos2dx_physics_PhysicsBody_createCircle(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsBody_createCircle'", nullptr); return 0; } - cocos2d::PhysicsBody* ret = cocos2d::PhysicsBody::createCircle(arg0, arg1); - object_to_luaval(tolua_S, "cc.PhysicsBody",(cocos2d::PhysicsBody*)ret); + axis::PhysicsBody* ret = axis::PhysicsBody::createCircle(arg0, arg1); + object_to_luaval(tolua_S, "cc.PhysicsBody",(axis::PhysicsBody*)ret); return 1; } if (argc == 3) { double arg0; - cocos2d::PhysicsMaterial arg1; - cocos2d::Vec2 arg2; + axis::PhysicsMaterial arg1; + axis::Vec2 arg2; ok &= luaval_to_number(tolua_S, 2,&arg0, "cc.PhysicsBody:createCircle"); ok &= luaval_to_physics_material(tolua_S, 3, &arg1, "cc.PhysicsBody:createCircle"); ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.PhysicsBody:createCircle"); @@ -5844,8 +5844,8 @@ int lua_cocos2dx_physics_PhysicsBody_createCircle(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsBody_createCircle'", nullptr); return 0; } - cocos2d::PhysicsBody* ret = cocos2d::PhysicsBody::createCircle(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.PhysicsBody",(cocos2d::PhysicsBody*)ret); + axis::PhysicsBody* ret = axis::PhysicsBody::createCircle(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.PhysicsBody",(axis::PhysicsBody*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.PhysicsBody:createCircle",argc, 1); @@ -5934,7 +5934,7 @@ int lua_register_cocos2dx_physics_PhysicsBody(lua_State* tolua_S) tolua_function(tolua_S,"createEdgeBox", lua_cocos2dx_physics_PhysicsBody_createEdgeBox); tolua_function(tolua_S,"createCircle", lua_cocos2dx_physics_PhysicsBody_createCircle); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::PhysicsBody).name(); // rtti is literal storage + auto typeName = typeid(axis::PhysicsBody).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.PhysicsBody"; g_typeCast[typeName] = "cc.PhysicsBody"; return 1; @@ -5943,7 +5943,7 @@ int lua_register_cocos2dx_physics_PhysicsBody(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsContact_getContactData(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsContact* cobj = nullptr; + axis::PhysicsContact* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5955,7 +5955,7 @@ int lua_cocos2dx_physics_PhysicsContact_getContactData(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsContact",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsContact*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsContact*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5973,7 +5973,7 @@ int lua_cocos2dx_physics_PhysicsContact_getContactData(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsContact_getContactData'", nullptr); return 0; } - const cocos2d::PhysicsContactData* ret = cobj->getContactData(); + const axis::PhysicsContactData* ret = cobj->getContactData(); physics_contactdata_to_luaval(tolua_S, ret); return 1; } @@ -5990,7 +5990,7 @@ int lua_cocos2dx_physics_PhysicsContact_getContactData(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsContact_getEventCode(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsContact* cobj = nullptr; + axis::PhysicsContact* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6002,7 +6002,7 @@ int lua_cocos2dx_physics_PhysicsContact_getEventCode(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsContact",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsContact*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsContact*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6037,7 +6037,7 @@ int lua_cocos2dx_physics_PhysicsContact_getEventCode(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsContact_getPreContactData(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsContact* cobj = nullptr; + axis::PhysicsContact* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6049,7 +6049,7 @@ int lua_cocos2dx_physics_PhysicsContact_getPreContactData(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsContact",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsContact*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsContact*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6067,7 +6067,7 @@ int lua_cocos2dx_physics_PhysicsContact_getPreContactData(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsContact_getPreContactData'", nullptr); return 0; } - const cocos2d::PhysicsContactData* ret = cobj->getPreContactData(); + const axis::PhysicsContactData* ret = cobj->getPreContactData(); physics_contactdata_to_luaval(tolua_S, ret); return 1; } @@ -6084,7 +6084,7 @@ int lua_cocos2dx_physics_PhysicsContact_getPreContactData(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsContact_getShapeA(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsContact* cobj = nullptr; + axis::PhysicsContact* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6096,7 +6096,7 @@ int lua_cocos2dx_physics_PhysicsContact_getShapeA(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsContact",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsContact*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsContact*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6114,8 +6114,8 @@ int lua_cocos2dx_physics_PhysicsContact_getShapeA(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsContact_getShapeA'", nullptr); return 0; } - cocos2d::PhysicsShape* ret = cobj->getShapeA(); - object_to_luaval(tolua_S, "cc.PhysicsShape",(cocos2d::PhysicsShape*)ret); + axis::PhysicsShape* ret = cobj->getShapeA(); + object_to_luaval(tolua_S, "cc.PhysicsShape",(axis::PhysicsShape*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.PhysicsContact:getShapeA",argc, 0); @@ -6131,7 +6131,7 @@ int lua_cocos2dx_physics_PhysicsContact_getShapeA(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsContact_getShapeB(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsContact* cobj = nullptr; + axis::PhysicsContact* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6143,7 +6143,7 @@ int lua_cocos2dx_physics_PhysicsContact_getShapeB(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsContact",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsContact*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsContact*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6161,8 +6161,8 @@ int lua_cocos2dx_physics_PhysicsContact_getShapeB(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsContact_getShapeB'", nullptr); return 0; } - cocos2d::PhysicsShape* ret = cobj->getShapeB(); - object_to_luaval(tolua_S, "cc.PhysicsShape",(cocos2d::PhysicsShape*)ret); + axis::PhysicsShape* ret = cobj->getShapeB(); + object_to_luaval(tolua_S, "cc.PhysicsShape",(axis::PhysicsShape*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.PhysicsContact:getShapeB",argc, 0); @@ -6193,7 +6193,7 @@ int lua_register_cocos2dx_physics_PhysicsContact(lua_State* tolua_S) tolua_function(tolua_S,"getShapeA",lua_cocos2dx_physics_PhysicsContact_getShapeA); tolua_function(tolua_S,"getShapeB",lua_cocos2dx_physics_PhysicsContact_getShapeB); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::PhysicsContact).name(); // rtti is literal storage + auto typeName = typeid(axis::PhysicsContact).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.PhysicsContact"; g_typeCast[typeName] = "cc.PhysicsContact"; return 1; @@ -6202,7 +6202,7 @@ int lua_register_cocos2dx_physics_PhysicsContact(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsContactPreSolve_getFriction(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsContactPreSolve* cobj = nullptr; + axis::PhysicsContactPreSolve* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6214,7 +6214,7 @@ int lua_cocos2dx_physics_PhysicsContactPreSolve_getFriction(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsContactPreSolve",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsContactPreSolve*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsContactPreSolve*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6249,7 +6249,7 @@ int lua_cocos2dx_physics_PhysicsContactPreSolve_getFriction(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsContactPreSolve_getRestitution(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsContactPreSolve* cobj = nullptr; + axis::PhysicsContactPreSolve* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6261,7 +6261,7 @@ int lua_cocos2dx_physics_PhysicsContactPreSolve_getRestitution(lua_State* tolua_ if (!tolua_isusertype(tolua_S,1,"cc.PhysicsContactPreSolve",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsContactPreSolve*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsContactPreSolve*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6296,7 +6296,7 @@ int lua_cocos2dx_physics_PhysicsContactPreSolve_getRestitution(lua_State* tolua_ int lua_cocos2dx_physics_PhysicsContactPreSolve_setFriction(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsContactPreSolve* cobj = nullptr; + axis::PhysicsContactPreSolve* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6308,7 +6308,7 @@ int lua_cocos2dx_physics_PhysicsContactPreSolve_setFriction(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsContactPreSolve",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsContactPreSolve*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsContactPreSolve*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6346,7 +6346,7 @@ int lua_cocos2dx_physics_PhysicsContactPreSolve_setFriction(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsContactPreSolve_ignore(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsContactPreSolve* cobj = nullptr; + axis::PhysicsContactPreSolve* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6358,7 +6358,7 @@ int lua_cocos2dx_physics_PhysicsContactPreSolve_ignore(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsContactPreSolve",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsContactPreSolve*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsContactPreSolve*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6393,7 +6393,7 @@ int lua_cocos2dx_physics_PhysicsContactPreSolve_ignore(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsContactPreSolve_getSurfaceVelocity(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsContactPreSolve* cobj = nullptr; + axis::PhysicsContactPreSolve* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6405,7 +6405,7 @@ int lua_cocos2dx_physics_PhysicsContactPreSolve_getSurfaceVelocity(lua_State* to if (!tolua_isusertype(tolua_S,1,"cc.PhysicsContactPreSolve",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsContactPreSolve*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsContactPreSolve*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6423,7 +6423,7 @@ int lua_cocos2dx_physics_PhysicsContactPreSolve_getSurfaceVelocity(lua_State* to tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsContactPreSolve_getSurfaceVelocity'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getSurfaceVelocity(); + axis::Vec2 ret = cobj->getSurfaceVelocity(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -6440,7 +6440,7 @@ int lua_cocos2dx_physics_PhysicsContactPreSolve_getSurfaceVelocity(lua_State* to int lua_cocos2dx_physics_PhysicsContactPreSolve_setSurfaceVelocity(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsContactPreSolve* cobj = nullptr; + axis::PhysicsContactPreSolve* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6452,7 +6452,7 @@ int lua_cocos2dx_physics_PhysicsContactPreSolve_setSurfaceVelocity(lua_State* to if (!tolua_isusertype(tolua_S,1,"cc.PhysicsContactPreSolve",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsContactPreSolve*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsContactPreSolve*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6465,7 +6465,7 @@ int lua_cocos2dx_physics_PhysicsContactPreSolve_setSurfaceVelocity(lua_State* to argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsContactPreSolve:setSurfaceVelocity"); if(!ok) @@ -6490,7 +6490,7 @@ int lua_cocos2dx_physics_PhysicsContactPreSolve_setSurfaceVelocity(lua_State* to int lua_cocos2dx_physics_PhysicsContactPreSolve_setRestitution(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsContactPreSolve* cobj = nullptr; + axis::PhysicsContactPreSolve* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6502,7 +6502,7 @@ int lua_cocos2dx_physics_PhysicsContactPreSolve_setRestitution(lua_State* tolua_ if (!tolua_isusertype(tolua_S,1,"cc.PhysicsContactPreSolve",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsContactPreSolve*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsContactPreSolve*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6557,7 +6557,7 @@ int lua_register_cocos2dx_physics_PhysicsContactPreSolve(lua_State* tolua_S) tolua_function(tolua_S,"setSurfaceVelocity",lua_cocos2dx_physics_PhysicsContactPreSolve_setSurfaceVelocity); tolua_function(tolua_S,"setRestitution",lua_cocos2dx_physics_PhysicsContactPreSolve_setRestitution); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::PhysicsContactPreSolve).name(); // rtti is literal storage + auto typeName = typeid(axis::PhysicsContactPreSolve).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.PhysicsContactPreSolve"; g_typeCast[typeName] = "cc.PhysicsContactPreSolve"; return 1; @@ -6566,7 +6566,7 @@ int lua_register_cocos2dx_physics_PhysicsContactPreSolve(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsContactPostSolve_getFriction(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsContactPostSolve* cobj = nullptr; + axis::PhysicsContactPostSolve* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6578,7 +6578,7 @@ int lua_cocos2dx_physics_PhysicsContactPostSolve_getFriction(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsContactPostSolve",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsContactPostSolve*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsContactPostSolve*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6613,7 +6613,7 @@ int lua_cocos2dx_physics_PhysicsContactPostSolve_getFriction(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsContactPostSolve_getSurfaceVelocity(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsContactPostSolve* cobj = nullptr; + axis::PhysicsContactPostSolve* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6625,7 +6625,7 @@ int lua_cocos2dx_physics_PhysicsContactPostSolve_getSurfaceVelocity(lua_State* t if (!tolua_isusertype(tolua_S,1,"cc.PhysicsContactPostSolve",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsContactPostSolve*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsContactPostSolve*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6643,7 +6643,7 @@ int lua_cocos2dx_physics_PhysicsContactPostSolve_getSurfaceVelocity(lua_State* t tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsContactPostSolve_getSurfaceVelocity'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getSurfaceVelocity(); + axis::Vec2 ret = cobj->getSurfaceVelocity(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -6660,7 +6660,7 @@ int lua_cocos2dx_physics_PhysicsContactPostSolve_getSurfaceVelocity(lua_State* t int lua_cocos2dx_physics_PhysicsContactPostSolve_getRestitution(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsContactPostSolve* cobj = nullptr; + axis::PhysicsContactPostSolve* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6672,7 +6672,7 @@ int lua_cocos2dx_physics_PhysicsContactPostSolve_getRestitution(lua_State* tolua if (!tolua_isusertype(tolua_S,1,"cc.PhysicsContactPostSolve",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsContactPostSolve*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsContactPostSolve*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6720,7 +6720,7 @@ int lua_register_cocos2dx_physics_PhysicsContactPostSolve(lua_State* tolua_S) tolua_function(tolua_S,"getSurfaceVelocity",lua_cocos2dx_physics_PhysicsContactPostSolve_getSurfaceVelocity); tolua_function(tolua_S,"getRestitution",lua_cocos2dx_physics_PhysicsContactPostSolve_getRestitution); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::PhysicsContactPostSolve).name(); // rtti is literal storage + auto typeName = typeid(axis::PhysicsContactPostSolve).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.PhysicsContactPostSolve"; g_typeCast[typeName] = "cc.PhysicsContactPostSolve"; return 1; @@ -6748,8 +6748,8 @@ int lua_cocos2dx_physics_EventListenerPhysicsContact_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_EventListenerPhysicsContact_create'", nullptr); return 0; } - cocos2d::EventListenerPhysicsContact* ret = cocos2d::EventListenerPhysicsContact::create(); - object_to_luaval(tolua_S, "cc.EventListenerPhysicsContact",(cocos2d::EventListenerPhysicsContact*)ret); + axis::EventListenerPhysicsContact* ret = axis::EventListenerPhysicsContact::create(); + object_to_luaval(tolua_S, "cc.EventListenerPhysicsContact",(axis::EventListenerPhysicsContact*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EventListenerPhysicsContact:create",argc, 0); @@ -6774,7 +6774,7 @@ int lua_register_cocos2dx_physics_EventListenerPhysicsContact(lua_State* tolua_S tolua_beginmodule(tolua_S,"EventListenerPhysicsContact"); tolua_function(tolua_S,"create", lua_cocos2dx_physics_EventListenerPhysicsContact_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EventListenerPhysicsContact).name(); // rtti is literal storage + auto typeName = typeid(axis::EventListenerPhysicsContact).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EventListenerPhysicsContact"; g_typeCast[typeName] = "cc.EventListenerPhysicsContact"; return 1; @@ -6783,7 +6783,7 @@ int lua_register_cocos2dx_physics_EventListenerPhysicsContact(lua_State* tolua_S int lua_cocos2dx_physics_EventListenerPhysicsContactWithBodies_hitTest(lua_State* tolua_S) { int argc = 0; - cocos2d::EventListenerPhysicsContactWithBodies* cobj = nullptr; + axis::EventListenerPhysicsContactWithBodies* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6795,7 +6795,7 @@ int lua_cocos2dx_physics_EventListenerPhysicsContactWithBodies_hitTest(lua_State if (!tolua_isusertype(tolua_S,1,"cc.EventListenerPhysicsContactWithBodies",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventListenerPhysicsContactWithBodies*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventListenerPhysicsContactWithBodies*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6808,12 +6808,12 @@ int lua_cocos2dx_physics_EventListenerPhysicsContactWithBodies_hitTest(lua_State argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::PhysicsShape* arg0; - cocos2d::PhysicsShape* arg1; + axis::PhysicsShape* arg0; + axis::PhysicsShape* arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsShape",&arg0, "cc.EventListenerPhysicsContactWithBodies:hitTest"); + ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsShape",&arg0, "cc.EventListenerPhysicsContactWithBodies:hitTest"); - ok &= luaval_to_object(tolua_S, 3, "cc.PhysicsShape",&arg1, "cc.EventListenerPhysicsContactWithBodies:hitTest"); + ok &= luaval_to_object(tolua_S, 3, "cc.PhysicsShape",&arg1, "cc.EventListenerPhysicsContactWithBodies:hitTest"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_EventListenerPhysicsContactWithBodies_hitTest'", nullptr); @@ -6850,17 +6850,17 @@ int lua_cocos2dx_physics_EventListenerPhysicsContactWithBodies_create(lua_State* if (argc == 2) { - cocos2d::PhysicsBody* arg0; - cocos2d::PhysicsBody* arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsBody",&arg0, "cc.EventListenerPhysicsContactWithBodies:create"); - ok &= luaval_to_object(tolua_S, 3, "cc.PhysicsBody",&arg1, "cc.EventListenerPhysicsContactWithBodies:create"); + axis::PhysicsBody* arg0; + axis::PhysicsBody* arg1; + ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsBody",&arg0, "cc.EventListenerPhysicsContactWithBodies:create"); + ok &= luaval_to_object(tolua_S, 3, "cc.PhysicsBody",&arg1, "cc.EventListenerPhysicsContactWithBodies:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_EventListenerPhysicsContactWithBodies_create'", nullptr); return 0; } - cocos2d::EventListenerPhysicsContactWithBodies* ret = cocos2d::EventListenerPhysicsContactWithBodies::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.EventListenerPhysicsContactWithBodies",(cocos2d::EventListenerPhysicsContactWithBodies*)ret); + axis::EventListenerPhysicsContactWithBodies* ret = axis::EventListenerPhysicsContactWithBodies::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.EventListenerPhysicsContactWithBodies",(axis::EventListenerPhysicsContactWithBodies*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EventListenerPhysicsContactWithBodies:create",argc, 2); @@ -6886,7 +6886,7 @@ int lua_register_cocos2dx_physics_EventListenerPhysicsContactWithBodies(lua_Stat tolua_function(tolua_S,"hitTest",lua_cocos2dx_physics_EventListenerPhysicsContactWithBodies_hitTest); tolua_function(tolua_S,"create", lua_cocos2dx_physics_EventListenerPhysicsContactWithBodies_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EventListenerPhysicsContactWithBodies).name(); // rtti is literal storage + auto typeName = typeid(axis::EventListenerPhysicsContactWithBodies).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EventListenerPhysicsContactWithBodies"; g_typeCast[typeName] = "cc.EventListenerPhysicsContactWithBodies"; return 1; @@ -6895,7 +6895,7 @@ int lua_register_cocos2dx_physics_EventListenerPhysicsContactWithBodies(lua_Stat int lua_cocos2dx_physics_EventListenerPhysicsContactWithShapes_hitTest(lua_State* tolua_S) { int argc = 0; - cocos2d::EventListenerPhysicsContactWithShapes* cobj = nullptr; + axis::EventListenerPhysicsContactWithShapes* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6907,7 +6907,7 @@ int lua_cocos2dx_physics_EventListenerPhysicsContactWithShapes_hitTest(lua_State if (!tolua_isusertype(tolua_S,1,"cc.EventListenerPhysicsContactWithShapes",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventListenerPhysicsContactWithShapes*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventListenerPhysicsContactWithShapes*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6920,12 +6920,12 @@ int lua_cocos2dx_physics_EventListenerPhysicsContactWithShapes_hitTest(lua_State argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::PhysicsShape* arg0; - cocos2d::PhysicsShape* arg1; + axis::PhysicsShape* arg0; + axis::PhysicsShape* arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsShape",&arg0, "cc.EventListenerPhysicsContactWithShapes:hitTest"); + ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsShape",&arg0, "cc.EventListenerPhysicsContactWithShapes:hitTest"); - ok &= luaval_to_object(tolua_S, 3, "cc.PhysicsShape",&arg1, "cc.EventListenerPhysicsContactWithShapes:hitTest"); + ok &= luaval_to_object(tolua_S, 3, "cc.PhysicsShape",&arg1, "cc.EventListenerPhysicsContactWithShapes:hitTest"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_EventListenerPhysicsContactWithShapes_hitTest'", nullptr); @@ -6962,17 +6962,17 @@ int lua_cocos2dx_physics_EventListenerPhysicsContactWithShapes_create(lua_State* if (argc == 2) { - cocos2d::PhysicsShape* arg0; - cocos2d::PhysicsShape* arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsShape",&arg0, "cc.EventListenerPhysicsContactWithShapes:create"); - ok &= luaval_to_object(tolua_S, 3, "cc.PhysicsShape",&arg1, "cc.EventListenerPhysicsContactWithShapes:create"); + axis::PhysicsShape* arg0; + axis::PhysicsShape* arg1; + ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsShape",&arg0, "cc.EventListenerPhysicsContactWithShapes:create"); + ok &= luaval_to_object(tolua_S, 3, "cc.PhysicsShape",&arg1, "cc.EventListenerPhysicsContactWithShapes:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_EventListenerPhysicsContactWithShapes_create'", nullptr); return 0; } - cocos2d::EventListenerPhysicsContactWithShapes* ret = cocos2d::EventListenerPhysicsContactWithShapes::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.EventListenerPhysicsContactWithShapes",(cocos2d::EventListenerPhysicsContactWithShapes*)ret); + axis::EventListenerPhysicsContactWithShapes* ret = axis::EventListenerPhysicsContactWithShapes::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.EventListenerPhysicsContactWithShapes",(axis::EventListenerPhysicsContactWithShapes*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EventListenerPhysicsContactWithShapes:create",argc, 2); @@ -6998,7 +6998,7 @@ int lua_register_cocos2dx_physics_EventListenerPhysicsContactWithShapes(lua_Stat tolua_function(tolua_S,"hitTest",lua_cocos2dx_physics_EventListenerPhysicsContactWithShapes_hitTest); tolua_function(tolua_S,"create", lua_cocos2dx_physics_EventListenerPhysicsContactWithShapes_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EventListenerPhysicsContactWithShapes).name(); // rtti is literal storage + auto typeName = typeid(axis::EventListenerPhysicsContactWithShapes).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EventListenerPhysicsContactWithShapes"; g_typeCast[typeName] = "cc.EventListenerPhysicsContactWithShapes"; return 1; @@ -7007,7 +7007,7 @@ int lua_register_cocos2dx_physics_EventListenerPhysicsContactWithShapes(lua_Stat int lua_cocos2dx_physics_EventListenerPhysicsContactWithGroup_hitTest(lua_State* tolua_S) { int argc = 0; - cocos2d::EventListenerPhysicsContactWithGroup* cobj = nullptr; + axis::EventListenerPhysicsContactWithGroup* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7019,7 +7019,7 @@ int lua_cocos2dx_physics_EventListenerPhysicsContactWithGroup_hitTest(lua_State* if (!tolua_isusertype(tolua_S,1,"cc.EventListenerPhysicsContactWithGroup",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::EventListenerPhysicsContactWithGroup*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::EventListenerPhysicsContactWithGroup*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7032,12 +7032,12 @@ int lua_cocos2dx_physics_EventListenerPhysicsContactWithGroup_hitTest(lua_State* argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::PhysicsShape* arg0; - cocos2d::PhysicsShape* arg1; + axis::PhysicsShape* arg0; + axis::PhysicsShape* arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsShape",&arg0, "cc.EventListenerPhysicsContactWithGroup:hitTest"); + ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsShape",&arg0, "cc.EventListenerPhysicsContactWithGroup:hitTest"); - ok &= luaval_to_object(tolua_S, 3, "cc.PhysicsShape",&arg1, "cc.EventListenerPhysicsContactWithGroup:hitTest"); + ok &= luaval_to_object(tolua_S, 3, "cc.PhysicsShape",&arg1, "cc.EventListenerPhysicsContactWithGroup:hitTest"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_EventListenerPhysicsContactWithGroup_hitTest'", nullptr); @@ -7081,8 +7081,8 @@ int lua_cocos2dx_physics_EventListenerPhysicsContactWithGroup_create(lua_State* tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_EventListenerPhysicsContactWithGroup_create'", nullptr); return 0; } - cocos2d::EventListenerPhysicsContactWithGroup* ret = cocos2d::EventListenerPhysicsContactWithGroup::create(arg0); - object_to_luaval(tolua_S, "cc.EventListenerPhysicsContactWithGroup",(cocos2d::EventListenerPhysicsContactWithGroup*)ret); + axis::EventListenerPhysicsContactWithGroup* ret = axis::EventListenerPhysicsContactWithGroup::create(arg0); + object_to_luaval(tolua_S, "cc.EventListenerPhysicsContactWithGroup",(axis::EventListenerPhysicsContactWithGroup*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.EventListenerPhysicsContactWithGroup:create",argc, 1); @@ -7108,7 +7108,7 @@ int lua_register_cocos2dx_physics_EventListenerPhysicsContactWithGroup(lua_State tolua_function(tolua_S,"hitTest",lua_cocos2dx_physics_EventListenerPhysicsContactWithGroup_hitTest); tolua_function(tolua_S,"create", lua_cocos2dx_physics_EventListenerPhysicsContactWithGroup_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::EventListenerPhysicsContactWithGroup).name(); // rtti is literal storage + auto typeName = typeid(axis::EventListenerPhysicsContactWithGroup).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.EventListenerPhysicsContactWithGroup"; g_typeCast[typeName] = "cc.EventListenerPhysicsContactWithGroup"; return 1; @@ -7117,7 +7117,7 @@ int lua_register_cocos2dx_physics_EventListenerPhysicsContactWithGroup(lua_State int lua_cocos2dx_physics_PhysicsJoint_getBodyA(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJoint* cobj = nullptr; + axis::PhysicsJoint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7129,7 +7129,7 @@ int lua_cocos2dx_physics_PhysicsJoint_getBodyA(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJoint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJoint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJoint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7147,8 +7147,8 @@ int lua_cocos2dx_physics_PhysicsJoint_getBodyA(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsJoint_getBodyA'", nullptr); return 0; } - cocos2d::PhysicsBody* ret = cobj->getBodyA(); - object_to_luaval(tolua_S, "cc.PhysicsBody",(cocos2d::PhysicsBody*)ret); + axis::PhysicsBody* ret = cobj->getBodyA(); + object_to_luaval(tolua_S, "cc.PhysicsBody",(axis::PhysicsBody*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.PhysicsJoint:getBodyA",argc, 0); @@ -7164,7 +7164,7 @@ int lua_cocos2dx_physics_PhysicsJoint_getBodyA(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJoint_getBodyB(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJoint* cobj = nullptr; + axis::PhysicsJoint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7176,7 +7176,7 @@ int lua_cocos2dx_physics_PhysicsJoint_getBodyB(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJoint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJoint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJoint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7194,8 +7194,8 @@ int lua_cocos2dx_physics_PhysicsJoint_getBodyB(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsJoint_getBodyB'", nullptr); return 0; } - cocos2d::PhysicsBody* ret = cobj->getBodyB(); - object_to_luaval(tolua_S, "cc.PhysicsBody",(cocos2d::PhysicsBody*)ret); + axis::PhysicsBody* ret = cobj->getBodyB(); + object_to_luaval(tolua_S, "cc.PhysicsBody",(axis::PhysicsBody*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.PhysicsJoint:getBodyB",argc, 0); @@ -7211,7 +7211,7 @@ int lua_cocos2dx_physics_PhysicsJoint_getBodyB(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJoint_getMaxForce(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJoint* cobj = nullptr; + axis::PhysicsJoint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7223,7 +7223,7 @@ int lua_cocos2dx_physics_PhysicsJoint_getMaxForce(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJoint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJoint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJoint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7258,7 +7258,7 @@ int lua_cocos2dx_physics_PhysicsJoint_getMaxForce(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJoint_setMaxForce(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJoint* cobj = nullptr; + axis::PhysicsJoint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7270,7 +7270,7 @@ int lua_cocos2dx_physics_PhysicsJoint_setMaxForce(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJoint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJoint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJoint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7308,7 +7308,7 @@ int lua_cocos2dx_physics_PhysicsJoint_setMaxForce(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJoint_isEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJoint* cobj = nullptr; + axis::PhysicsJoint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7320,7 +7320,7 @@ int lua_cocos2dx_physics_PhysicsJoint_isEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJoint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJoint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJoint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7355,7 +7355,7 @@ int lua_cocos2dx_physics_PhysicsJoint_isEnabled(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJoint_setEnable(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJoint* cobj = nullptr; + axis::PhysicsJoint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7367,7 +7367,7 @@ int lua_cocos2dx_physics_PhysicsJoint_setEnable(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJoint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJoint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJoint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7405,7 +7405,7 @@ int lua_cocos2dx_physics_PhysicsJoint_setEnable(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJoint_setCollisionEnable(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJoint* cobj = nullptr; + axis::PhysicsJoint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7417,7 +7417,7 @@ int lua_cocos2dx_physics_PhysicsJoint_setCollisionEnable(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJoint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJoint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJoint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7455,7 +7455,7 @@ int lua_cocos2dx_physics_PhysicsJoint_setCollisionEnable(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJoint_getWorld(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJoint* cobj = nullptr; + axis::PhysicsJoint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7467,7 +7467,7 @@ int lua_cocos2dx_physics_PhysicsJoint_getWorld(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJoint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJoint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJoint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7485,8 +7485,8 @@ int lua_cocos2dx_physics_PhysicsJoint_getWorld(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsJoint_getWorld'", nullptr); return 0; } - cocos2d::PhysicsWorld* ret = cobj->getWorld(); - object_to_luaval(tolua_S, "cc.PhysicsWorld",(cocos2d::PhysicsWorld*)ret); + axis::PhysicsWorld* ret = cobj->getWorld(); + object_to_luaval(tolua_S, "cc.PhysicsWorld",(axis::PhysicsWorld*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.PhysicsJoint:getWorld",argc, 0); @@ -7502,7 +7502,7 @@ int lua_cocos2dx_physics_PhysicsJoint_getWorld(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJoint_setTag(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJoint* cobj = nullptr; + axis::PhysicsJoint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7514,7 +7514,7 @@ int lua_cocos2dx_physics_PhysicsJoint_setTag(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJoint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJoint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJoint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7552,7 +7552,7 @@ int lua_cocos2dx_physics_PhysicsJoint_setTag(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJoint_removeFormWorld(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJoint* cobj = nullptr; + axis::PhysicsJoint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7564,7 +7564,7 @@ int lua_cocos2dx_physics_PhysicsJoint_removeFormWorld(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJoint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJoint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJoint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7599,7 +7599,7 @@ int lua_cocos2dx_physics_PhysicsJoint_removeFormWorld(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJoint_isCollisionEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJoint* cobj = nullptr; + axis::PhysicsJoint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7611,7 +7611,7 @@ int lua_cocos2dx_physics_PhysicsJoint_isCollisionEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJoint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJoint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJoint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7646,7 +7646,7 @@ int lua_cocos2dx_physics_PhysicsJoint_isCollisionEnabled(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJoint_getTag(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJoint* cobj = nullptr; + axis::PhysicsJoint* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7658,7 +7658,7 @@ int lua_cocos2dx_physics_PhysicsJoint_getTag(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJoint",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJoint*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJoint*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7715,7 +7715,7 @@ int lua_register_cocos2dx_physics_PhysicsJoint(lua_State* tolua_S) tolua_function(tolua_S,"isCollisionEnabled",lua_cocos2dx_physics_PhysicsJoint_isCollisionEnabled); tolua_function(tolua_S,"getTag",lua_cocos2dx_physics_PhysicsJoint_getTag); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::PhysicsJoint).name(); // rtti is literal storage + auto typeName = typeid(axis::PhysicsJoint).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.PhysicsJoint"; g_typeCast[typeName] = "cc.PhysicsJoint"; return 1; @@ -7724,7 +7724,7 @@ int lua_register_cocos2dx_physics_PhysicsJoint(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointFixed_createConstraints(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointFixed* cobj = nullptr; + axis::PhysicsJointFixed* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7736,7 +7736,7 @@ int lua_cocos2dx_physics_PhysicsJointFixed_createConstraints(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointFixed",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointFixed*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointFixed*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7785,19 +7785,19 @@ int lua_cocos2dx_physics_PhysicsJointFixed_construct(lua_State* tolua_S) if (argc == 3) { - cocos2d::PhysicsBody* arg0; - cocos2d::PhysicsBody* arg1; - cocos2d::Vec2 arg2; - ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsBody",&arg0, "cc.PhysicsJointFixed:construct"); - ok &= luaval_to_object(tolua_S, 3, "cc.PhysicsBody",&arg1, "cc.PhysicsJointFixed:construct"); + axis::PhysicsBody* arg0; + axis::PhysicsBody* arg1; + axis::Vec2 arg2; + ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsBody",&arg0, "cc.PhysicsJointFixed:construct"); + ok &= luaval_to_object(tolua_S, 3, "cc.PhysicsBody",&arg1, "cc.PhysicsJointFixed:construct"); ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.PhysicsJointFixed:construct"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsJointFixed_construct'", nullptr); return 0; } - cocos2d::PhysicsJointFixed* ret = cocos2d::PhysicsJointFixed::construct(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.PhysicsJointFixed",(cocos2d::PhysicsJointFixed*)ret); + axis::PhysicsJointFixed* ret = axis::PhysicsJointFixed::construct(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.PhysicsJointFixed",(axis::PhysicsJointFixed*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.PhysicsJointFixed:construct",argc, 3); @@ -7823,7 +7823,7 @@ int lua_register_cocos2dx_physics_PhysicsJointFixed(lua_State* tolua_S) tolua_function(tolua_S,"createConstraints",lua_cocos2dx_physics_PhysicsJointFixed_createConstraints); tolua_function(tolua_S,"construct", lua_cocos2dx_physics_PhysicsJointFixed_construct); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::PhysicsJointFixed).name(); // rtti is literal storage + auto typeName = typeid(axis::PhysicsJointFixed).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.PhysicsJointFixed"; g_typeCast[typeName] = "cc.PhysicsJointFixed"; return 1; @@ -7832,7 +7832,7 @@ int lua_register_cocos2dx_physics_PhysicsJointFixed(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointLimit_setAnchr2(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointLimit* cobj = nullptr; + axis::PhysicsJointLimit* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7844,7 +7844,7 @@ int lua_cocos2dx_physics_PhysicsJointLimit_setAnchr2(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointLimit",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointLimit*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointLimit*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7857,7 +7857,7 @@ int lua_cocos2dx_physics_PhysicsJointLimit_setAnchr2(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsJointLimit:setAnchr2"); if(!ok) @@ -7882,7 +7882,7 @@ int lua_cocos2dx_physics_PhysicsJointLimit_setAnchr2(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointLimit_setAnchr1(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointLimit* cobj = nullptr; + axis::PhysicsJointLimit* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7894,7 +7894,7 @@ int lua_cocos2dx_physics_PhysicsJointLimit_setAnchr1(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointLimit",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointLimit*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointLimit*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7907,7 +7907,7 @@ int lua_cocos2dx_physics_PhysicsJointLimit_setAnchr1(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsJointLimit:setAnchr1"); if(!ok) @@ -7932,7 +7932,7 @@ int lua_cocos2dx_physics_PhysicsJointLimit_setAnchr1(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointLimit_setMax(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointLimit* cobj = nullptr; + axis::PhysicsJointLimit* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7944,7 +7944,7 @@ int lua_cocos2dx_physics_PhysicsJointLimit_setMax(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointLimit",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointLimit*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointLimit*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7982,7 +7982,7 @@ int lua_cocos2dx_physics_PhysicsJointLimit_setMax(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointLimit_getAnchr2(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointLimit* cobj = nullptr; + axis::PhysicsJointLimit* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7994,7 +7994,7 @@ int lua_cocos2dx_physics_PhysicsJointLimit_getAnchr2(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointLimit",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointLimit*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointLimit*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8012,7 +8012,7 @@ int lua_cocos2dx_physics_PhysicsJointLimit_getAnchr2(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsJointLimit_getAnchr2'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getAnchr2(); + axis::Vec2 ret = cobj->getAnchr2(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -8029,7 +8029,7 @@ int lua_cocos2dx_physics_PhysicsJointLimit_getAnchr2(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointLimit_getAnchr1(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointLimit* cobj = nullptr; + axis::PhysicsJointLimit* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8041,7 +8041,7 @@ int lua_cocos2dx_physics_PhysicsJointLimit_getAnchr1(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointLimit",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointLimit*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointLimit*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8059,7 +8059,7 @@ int lua_cocos2dx_physics_PhysicsJointLimit_getAnchr1(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsJointLimit_getAnchr1'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getAnchr1(); + axis::Vec2 ret = cobj->getAnchr1(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -8076,7 +8076,7 @@ int lua_cocos2dx_physics_PhysicsJointLimit_getAnchr1(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointLimit_createConstraints(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointLimit* cobj = nullptr; + axis::PhysicsJointLimit* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8088,7 +8088,7 @@ int lua_cocos2dx_physics_PhysicsJointLimit_createConstraints(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointLimit",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointLimit*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointLimit*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8123,7 +8123,7 @@ int lua_cocos2dx_physics_PhysicsJointLimit_createConstraints(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointLimit_getMin(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointLimit* cobj = nullptr; + axis::PhysicsJointLimit* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8135,7 +8135,7 @@ int lua_cocos2dx_physics_PhysicsJointLimit_getMin(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointLimit",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointLimit*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointLimit*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8170,7 +8170,7 @@ int lua_cocos2dx_physics_PhysicsJointLimit_getMin(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointLimit_getMax(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointLimit* cobj = nullptr; + axis::PhysicsJointLimit* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8182,7 +8182,7 @@ int lua_cocos2dx_physics_PhysicsJointLimit_getMax(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointLimit",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointLimit*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointLimit*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8217,7 +8217,7 @@ int lua_cocos2dx_physics_PhysicsJointLimit_getMax(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointLimit_setMin(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointLimit* cobj = nullptr; + axis::PhysicsJointLimit* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8229,7 +8229,7 @@ int lua_cocos2dx_physics_PhysicsJointLimit_setMin(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointLimit",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointLimit*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointLimit*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8282,16 +8282,16 @@ int lua_cocos2dx_physics_PhysicsJointLimit_construct(lua_State* tolua_S) { if (argc == 6) { - cocos2d::PhysicsBody* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsBody",&arg0, "cc.PhysicsJointLimit:construct"); + axis::PhysicsBody* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsBody",&arg0, "cc.PhysicsJointLimit:construct"); if (!ok) { break; } - cocos2d::PhysicsBody* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.PhysicsBody",&arg1, "cc.PhysicsJointLimit:construct"); + axis::PhysicsBody* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.PhysicsBody",&arg1, "cc.PhysicsJointLimit:construct"); if (!ok) { break; } - cocos2d::Vec2 arg2; + axis::Vec2 arg2; ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.PhysicsJointLimit:construct"); if (!ok) { break; } - cocos2d::Vec2 arg3; + axis::Vec2 arg3; ok &= luaval_to_vec2(tolua_S, 5, &arg3, "cc.PhysicsJointLimit:construct"); if (!ok) { break; } double arg4; @@ -8300,8 +8300,8 @@ int lua_cocos2dx_physics_PhysicsJointLimit_construct(lua_State* tolua_S) double arg5; ok &= luaval_to_number(tolua_S, 7,&arg5, "cc.PhysicsJointLimit:construct"); if (!ok) { break; } - cocos2d::PhysicsJointLimit* ret = cocos2d::PhysicsJointLimit::construct(arg0, arg1, arg2, arg3, arg4, arg5); - object_to_luaval(tolua_S, "cc.PhysicsJointLimit",(cocos2d::PhysicsJointLimit*)ret); + axis::PhysicsJointLimit* ret = axis::PhysicsJointLimit::construct(arg0, arg1, arg2, arg3, arg4, arg5); + object_to_luaval(tolua_S, "cc.PhysicsJointLimit",(axis::PhysicsJointLimit*)ret); return 1; } } while (0); @@ -8310,20 +8310,20 @@ int lua_cocos2dx_physics_PhysicsJointLimit_construct(lua_State* tolua_S) { if (argc == 4) { - cocos2d::PhysicsBody* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsBody",&arg0, "cc.PhysicsJointLimit:construct"); + axis::PhysicsBody* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsBody",&arg0, "cc.PhysicsJointLimit:construct"); if (!ok) { break; } - cocos2d::PhysicsBody* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.PhysicsBody",&arg1, "cc.PhysicsJointLimit:construct"); + axis::PhysicsBody* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.PhysicsBody",&arg1, "cc.PhysicsJointLimit:construct"); if (!ok) { break; } - cocos2d::Vec2 arg2; + axis::Vec2 arg2; ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.PhysicsJointLimit:construct"); if (!ok) { break; } - cocos2d::Vec2 arg3; + axis::Vec2 arg3; ok &= luaval_to_vec2(tolua_S, 5, &arg3, "cc.PhysicsJointLimit:construct"); if (!ok) { break; } - cocos2d::PhysicsJointLimit* ret = cocos2d::PhysicsJointLimit::construct(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.PhysicsJointLimit",(cocos2d::PhysicsJointLimit*)ret); + axis::PhysicsJointLimit* ret = axis::PhysicsJointLimit::construct(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.PhysicsJointLimit",(axis::PhysicsJointLimit*)ret); return 1; } } while (0); @@ -8359,7 +8359,7 @@ int lua_register_cocos2dx_physics_PhysicsJointLimit(lua_State* tolua_S) tolua_function(tolua_S,"setMin",lua_cocos2dx_physics_PhysicsJointLimit_setMin); tolua_function(tolua_S,"construct", lua_cocos2dx_physics_PhysicsJointLimit_construct); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::PhysicsJointLimit).name(); // rtti is literal storage + auto typeName = typeid(axis::PhysicsJointLimit).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.PhysicsJointLimit"; g_typeCast[typeName] = "cc.PhysicsJointLimit"; return 1; @@ -8368,7 +8368,7 @@ int lua_register_cocos2dx_physics_PhysicsJointLimit(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointPin_createConstraints(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointPin* cobj = nullptr; + axis::PhysicsJointPin* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8380,7 +8380,7 @@ int lua_cocos2dx_physics_PhysicsJointPin_createConstraints(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointPin",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointPin*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointPin*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8430,20 +8430,20 @@ int lua_cocos2dx_physics_PhysicsJointPin_construct(lua_State* tolua_S) { if (argc == 4) { - cocos2d::PhysicsBody* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsBody",&arg0, "cc.PhysicsJointPin:construct"); + axis::PhysicsBody* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsBody",&arg0, "cc.PhysicsJointPin:construct"); if (!ok) { break; } - cocos2d::PhysicsBody* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.PhysicsBody",&arg1, "cc.PhysicsJointPin:construct"); + axis::PhysicsBody* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.PhysicsBody",&arg1, "cc.PhysicsJointPin:construct"); if (!ok) { break; } - cocos2d::Vec2 arg2; + axis::Vec2 arg2; ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.PhysicsJointPin:construct"); if (!ok) { break; } - cocos2d::Vec2 arg3; + axis::Vec2 arg3; ok &= luaval_to_vec2(tolua_S, 5, &arg3, "cc.PhysicsJointPin:construct"); if (!ok) { break; } - cocos2d::PhysicsJointPin* ret = cocos2d::PhysicsJointPin::construct(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.PhysicsJointPin",(cocos2d::PhysicsJointPin*)ret); + axis::PhysicsJointPin* ret = axis::PhysicsJointPin::construct(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.PhysicsJointPin",(axis::PhysicsJointPin*)ret); return 1; } } while (0); @@ -8452,17 +8452,17 @@ int lua_cocos2dx_physics_PhysicsJointPin_construct(lua_State* tolua_S) { if (argc == 3) { - cocos2d::PhysicsBody* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsBody",&arg0, "cc.PhysicsJointPin:construct"); + axis::PhysicsBody* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsBody",&arg0, "cc.PhysicsJointPin:construct"); if (!ok) { break; } - cocos2d::PhysicsBody* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.PhysicsBody",&arg1, "cc.PhysicsJointPin:construct"); + axis::PhysicsBody* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.PhysicsBody",&arg1, "cc.PhysicsJointPin:construct"); if (!ok) { break; } - cocos2d::Vec2 arg2; + axis::Vec2 arg2; ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.PhysicsJointPin:construct"); if (!ok) { break; } - cocos2d::PhysicsJointPin* ret = cocos2d::PhysicsJointPin::construct(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.PhysicsJointPin",(cocos2d::PhysicsJointPin*)ret); + axis::PhysicsJointPin* ret = axis::PhysicsJointPin::construct(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.PhysicsJointPin",(axis::PhysicsJointPin*)ret); return 1; } } while (0); @@ -8490,7 +8490,7 @@ int lua_register_cocos2dx_physics_PhysicsJointPin(lua_State* tolua_S) tolua_function(tolua_S,"createConstraints",lua_cocos2dx_physics_PhysicsJointPin_createConstraints); tolua_function(tolua_S,"construct", lua_cocos2dx_physics_PhysicsJointPin_construct); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::PhysicsJointPin).name(); // rtti is literal storage + auto typeName = typeid(axis::PhysicsJointPin).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.PhysicsJointPin"; g_typeCast[typeName] = "cc.PhysicsJointPin"; return 1; @@ -8499,7 +8499,7 @@ int lua_register_cocos2dx_physics_PhysicsJointPin(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointDistance_createConstraints(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointDistance* cobj = nullptr; + axis::PhysicsJointDistance* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8511,7 +8511,7 @@ int lua_cocos2dx_physics_PhysicsJointDistance_createConstraints(lua_State* tolua if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointDistance",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointDistance*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointDistance*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8546,7 +8546,7 @@ int lua_cocos2dx_physics_PhysicsJointDistance_createConstraints(lua_State* tolua int lua_cocos2dx_physics_PhysicsJointDistance_setDistance(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointDistance* cobj = nullptr; + axis::PhysicsJointDistance* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8558,7 +8558,7 @@ int lua_cocos2dx_physics_PhysicsJointDistance_setDistance(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointDistance",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointDistance*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointDistance*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8596,7 +8596,7 @@ int lua_cocos2dx_physics_PhysicsJointDistance_setDistance(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointDistance_getDistance(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointDistance* cobj = nullptr; + axis::PhysicsJointDistance* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8608,7 +8608,7 @@ int lua_cocos2dx_physics_PhysicsJointDistance_getDistance(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointDistance",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointDistance*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointDistance*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8657,12 +8657,12 @@ int lua_cocos2dx_physics_PhysicsJointDistance_construct(lua_State* tolua_S) if (argc == 4) { - cocos2d::PhysicsBody* arg0; - cocos2d::PhysicsBody* arg1; - cocos2d::Vec2 arg2; - cocos2d::Vec2 arg3; - ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsBody",&arg0, "cc.PhysicsJointDistance:construct"); - ok &= luaval_to_object(tolua_S, 3, "cc.PhysicsBody",&arg1, "cc.PhysicsJointDistance:construct"); + axis::PhysicsBody* arg0; + axis::PhysicsBody* arg1; + axis::Vec2 arg2; + axis::Vec2 arg3; + ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsBody",&arg0, "cc.PhysicsJointDistance:construct"); + ok &= luaval_to_object(tolua_S, 3, "cc.PhysicsBody",&arg1, "cc.PhysicsJointDistance:construct"); ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.PhysicsJointDistance:construct"); ok &= luaval_to_vec2(tolua_S, 5, &arg3, "cc.PhysicsJointDistance:construct"); if(!ok) @@ -8670,8 +8670,8 @@ int lua_cocos2dx_physics_PhysicsJointDistance_construct(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsJointDistance_construct'", nullptr); return 0; } - cocos2d::PhysicsJointDistance* ret = cocos2d::PhysicsJointDistance::construct(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.PhysicsJointDistance",(cocos2d::PhysicsJointDistance*)ret); + axis::PhysicsJointDistance* ret = axis::PhysicsJointDistance::construct(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.PhysicsJointDistance",(axis::PhysicsJointDistance*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.PhysicsJointDistance:construct",argc, 4); @@ -8699,7 +8699,7 @@ int lua_register_cocos2dx_physics_PhysicsJointDistance(lua_State* tolua_S) tolua_function(tolua_S,"getDistance",lua_cocos2dx_physics_PhysicsJointDistance_getDistance); tolua_function(tolua_S,"construct", lua_cocos2dx_physics_PhysicsJointDistance_construct); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::PhysicsJointDistance).name(); // rtti is literal storage + auto typeName = typeid(axis::PhysicsJointDistance).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.PhysicsJointDistance"; g_typeCast[typeName] = "cc.PhysicsJointDistance"; return 1; @@ -8708,7 +8708,7 @@ int lua_register_cocos2dx_physics_PhysicsJointDistance(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointSpring_setAnchr2(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointSpring* cobj = nullptr; + axis::PhysicsJointSpring* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8720,7 +8720,7 @@ int lua_cocos2dx_physics_PhysicsJointSpring_setAnchr2(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointSpring",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointSpring*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointSpring*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8733,7 +8733,7 @@ int lua_cocos2dx_physics_PhysicsJointSpring_setAnchr2(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsJointSpring:setAnchr2"); if(!ok) @@ -8758,7 +8758,7 @@ int lua_cocos2dx_physics_PhysicsJointSpring_setAnchr2(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointSpring_setAnchr1(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointSpring* cobj = nullptr; + axis::PhysicsJointSpring* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8770,7 +8770,7 @@ int lua_cocos2dx_physics_PhysicsJointSpring_setAnchr1(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointSpring",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointSpring*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointSpring*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8783,7 +8783,7 @@ int lua_cocos2dx_physics_PhysicsJointSpring_setAnchr1(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsJointSpring:setAnchr1"); if(!ok) @@ -8808,7 +8808,7 @@ int lua_cocos2dx_physics_PhysicsJointSpring_setAnchr1(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointSpring_getDamping(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointSpring* cobj = nullptr; + axis::PhysicsJointSpring* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8820,7 +8820,7 @@ int lua_cocos2dx_physics_PhysicsJointSpring_getDamping(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointSpring",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointSpring*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointSpring*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8855,7 +8855,7 @@ int lua_cocos2dx_physics_PhysicsJointSpring_getDamping(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointSpring_setStiffness(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointSpring* cobj = nullptr; + axis::PhysicsJointSpring* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8867,7 +8867,7 @@ int lua_cocos2dx_physics_PhysicsJointSpring_setStiffness(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointSpring",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointSpring*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointSpring*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8905,7 +8905,7 @@ int lua_cocos2dx_physics_PhysicsJointSpring_setStiffness(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointSpring_getRestLength(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointSpring* cobj = nullptr; + axis::PhysicsJointSpring* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8917,7 +8917,7 @@ int lua_cocos2dx_physics_PhysicsJointSpring_getRestLength(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointSpring",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointSpring*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointSpring*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8952,7 +8952,7 @@ int lua_cocos2dx_physics_PhysicsJointSpring_getRestLength(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointSpring_getAnchr2(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointSpring* cobj = nullptr; + axis::PhysicsJointSpring* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8964,7 +8964,7 @@ int lua_cocos2dx_physics_PhysicsJointSpring_getAnchr2(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointSpring",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointSpring*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointSpring*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8982,7 +8982,7 @@ int lua_cocos2dx_physics_PhysicsJointSpring_getAnchr2(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsJointSpring_getAnchr2'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getAnchr2(); + axis::Vec2 ret = cobj->getAnchr2(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -8999,7 +8999,7 @@ int lua_cocos2dx_physics_PhysicsJointSpring_getAnchr2(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointSpring_getAnchr1(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointSpring* cobj = nullptr; + axis::PhysicsJointSpring* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9011,7 +9011,7 @@ int lua_cocos2dx_physics_PhysicsJointSpring_getAnchr1(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointSpring",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointSpring*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointSpring*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9029,7 +9029,7 @@ int lua_cocos2dx_physics_PhysicsJointSpring_getAnchr1(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsJointSpring_getAnchr1'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getAnchr1(); + axis::Vec2 ret = cobj->getAnchr1(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -9046,7 +9046,7 @@ int lua_cocos2dx_physics_PhysicsJointSpring_getAnchr1(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointSpring_getStiffness(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointSpring* cobj = nullptr; + axis::PhysicsJointSpring* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9058,7 +9058,7 @@ int lua_cocos2dx_physics_PhysicsJointSpring_getStiffness(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointSpring",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointSpring*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointSpring*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9093,7 +9093,7 @@ int lua_cocos2dx_physics_PhysicsJointSpring_getStiffness(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointSpring_createConstraints(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointSpring* cobj = nullptr; + axis::PhysicsJointSpring* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9105,7 +9105,7 @@ int lua_cocos2dx_physics_PhysicsJointSpring_createConstraints(lua_State* tolua_S if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointSpring",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointSpring*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointSpring*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9140,7 +9140,7 @@ int lua_cocos2dx_physics_PhysicsJointSpring_createConstraints(lua_State* tolua_S int lua_cocos2dx_physics_PhysicsJointSpring_setRestLength(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointSpring* cobj = nullptr; + axis::PhysicsJointSpring* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9152,7 +9152,7 @@ int lua_cocos2dx_physics_PhysicsJointSpring_setRestLength(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointSpring",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointSpring*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointSpring*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9190,7 +9190,7 @@ int lua_cocos2dx_physics_PhysicsJointSpring_setRestLength(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointSpring_setDamping(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointSpring* cobj = nullptr; + axis::PhysicsJointSpring* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9202,7 +9202,7 @@ int lua_cocos2dx_physics_PhysicsJointSpring_setDamping(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointSpring",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointSpring*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointSpring*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9254,14 +9254,14 @@ int lua_cocos2dx_physics_PhysicsJointSpring_construct(lua_State* tolua_S) if (argc == 6) { - cocos2d::PhysicsBody* arg0; - cocos2d::PhysicsBody* arg1; - cocos2d::Vec2 arg2; - cocos2d::Vec2 arg3; + axis::PhysicsBody* arg0; + axis::PhysicsBody* arg1; + axis::Vec2 arg2; + axis::Vec2 arg3; double arg4; double arg5; - ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsBody",&arg0, "cc.PhysicsJointSpring:construct"); - ok &= luaval_to_object(tolua_S, 3, "cc.PhysicsBody",&arg1, "cc.PhysicsJointSpring:construct"); + ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsBody",&arg0, "cc.PhysicsJointSpring:construct"); + ok &= luaval_to_object(tolua_S, 3, "cc.PhysicsBody",&arg1, "cc.PhysicsJointSpring:construct"); ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.PhysicsJointSpring:construct"); ok &= luaval_to_vec2(tolua_S, 5, &arg3, "cc.PhysicsJointSpring:construct"); ok &= luaval_to_number(tolua_S, 6,&arg4, "cc.PhysicsJointSpring:construct"); @@ -9271,8 +9271,8 @@ int lua_cocos2dx_physics_PhysicsJointSpring_construct(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsJointSpring_construct'", nullptr); return 0; } - cocos2d::PhysicsJointSpring* ret = cocos2d::PhysicsJointSpring::construct(arg0, arg1, arg2, arg3, arg4, arg5); - object_to_luaval(tolua_S, "cc.PhysicsJointSpring",(cocos2d::PhysicsJointSpring*)ret); + axis::PhysicsJointSpring* ret = axis::PhysicsJointSpring::construct(arg0, arg1, arg2, arg3, arg4, arg5); + object_to_luaval(tolua_S, "cc.PhysicsJointSpring",(axis::PhysicsJointSpring*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.PhysicsJointSpring:construct",argc, 6); @@ -9308,7 +9308,7 @@ int lua_register_cocos2dx_physics_PhysicsJointSpring(lua_State* tolua_S) tolua_function(tolua_S,"setDamping",lua_cocos2dx_physics_PhysicsJointSpring_setDamping); tolua_function(tolua_S,"construct", lua_cocos2dx_physics_PhysicsJointSpring_construct); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::PhysicsJointSpring).name(); // rtti is literal storage + auto typeName = typeid(axis::PhysicsJointSpring).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.PhysicsJointSpring"; g_typeCast[typeName] = "cc.PhysicsJointSpring"; return 1; @@ -9317,7 +9317,7 @@ int lua_register_cocos2dx_physics_PhysicsJointSpring(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointGroove_setAnchr2(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointGroove* cobj = nullptr; + axis::PhysicsJointGroove* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9329,7 +9329,7 @@ int lua_cocos2dx_physics_PhysicsJointGroove_setAnchr2(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointGroove",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointGroove*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointGroove*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9342,7 +9342,7 @@ int lua_cocos2dx_physics_PhysicsJointGroove_setAnchr2(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsJointGroove:setAnchr2"); if(!ok) @@ -9367,7 +9367,7 @@ int lua_cocos2dx_physics_PhysicsJointGroove_setAnchr2(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointGroove_setGrooveA(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointGroove* cobj = nullptr; + axis::PhysicsJointGroove* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9379,7 +9379,7 @@ int lua_cocos2dx_physics_PhysicsJointGroove_setGrooveA(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointGroove",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointGroove*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointGroove*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9392,7 +9392,7 @@ int lua_cocos2dx_physics_PhysicsJointGroove_setGrooveA(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsJointGroove:setGrooveA"); if(!ok) @@ -9417,7 +9417,7 @@ int lua_cocos2dx_physics_PhysicsJointGroove_setGrooveA(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointGroove_setGrooveB(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointGroove* cobj = nullptr; + axis::PhysicsJointGroove* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9429,7 +9429,7 @@ int lua_cocos2dx_physics_PhysicsJointGroove_setGrooveB(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointGroove",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointGroove*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointGroove*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9442,7 +9442,7 @@ int lua_cocos2dx_physics_PhysicsJointGroove_setGrooveB(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsJointGroove:setGrooveB"); if(!ok) @@ -9467,7 +9467,7 @@ int lua_cocos2dx_physics_PhysicsJointGroove_setGrooveB(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointGroove_getGrooveA(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointGroove* cobj = nullptr; + axis::PhysicsJointGroove* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9479,7 +9479,7 @@ int lua_cocos2dx_physics_PhysicsJointGroove_getGrooveA(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointGroove",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointGroove*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointGroove*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9497,7 +9497,7 @@ int lua_cocos2dx_physics_PhysicsJointGroove_getGrooveA(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsJointGroove_getGrooveA'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getGrooveA(); + axis::Vec2 ret = cobj->getGrooveA(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -9514,7 +9514,7 @@ int lua_cocos2dx_physics_PhysicsJointGroove_getGrooveA(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointGroove_getGrooveB(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointGroove* cobj = nullptr; + axis::PhysicsJointGroove* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9526,7 +9526,7 @@ int lua_cocos2dx_physics_PhysicsJointGroove_getGrooveB(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointGroove",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointGroove*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointGroove*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9544,7 +9544,7 @@ int lua_cocos2dx_physics_PhysicsJointGroove_getGrooveB(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsJointGroove_getGrooveB'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getGrooveB(); + axis::Vec2 ret = cobj->getGrooveB(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -9561,7 +9561,7 @@ int lua_cocos2dx_physics_PhysicsJointGroove_getGrooveB(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointGroove_getAnchr2(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointGroove* cobj = nullptr; + axis::PhysicsJointGroove* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9573,7 +9573,7 @@ int lua_cocos2dx_physics_PhysicsJointGroove_getAnchr2(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointGroove",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointGroove*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointGroove*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9591,7 +9591,7 @@ int lua_cocos2dx_physics_PhysicsJointGroove_getAnchr2(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsJointGroove_getAnchr2'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getAnchr2(); + axis::Vec2 ret = cobj->getAnchr2(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -9608,7 +9608,7 @@ int lua_cocos2dx_physics_PhysicsJointGroove_getAnchr2(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointGroove_createConstraints(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointGroove* cobj = nullptr; + axis::PhysicsJointGroove* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9620,7 +9620,7 @@ int lua_cocos2dx_physics_PhysicsJointGroove_createConstraints(lua_State* tolua_S if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointGroove",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointGroove*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointGroove*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9669,13 +9669,13 @@ int lua_cocos2dx_physics_PhysicsJointGroove_construct(lua_State* tolua_S) if (argc == 5) { - cocos2d::PhysicsBody* arg0; - cocos2d::PhysicsBody* arg1; - cocos2d::Vec2 arg2; - cocos2d::Vec2 arg3; - cocos2d::Vec2 arg4; - ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsBody",&arg0, "cc.PhysicsJointGroove:construct"); - ok &= luaval_to_object(tolua_S, 3, "cc.PhysicsBody",&arg1, "cc.PhysicsJointGroove:construct"); + axis::PhysicsBody* arg0; + axis::PhysicsBody* arg1; + axis::Vec2 arg2; + axis::Vec2 arg3; + axis::Vec2 arg4; + ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsBody",&arg0, "cc.PhysicsJointGroove:construct"); + ok &= luaval_to_object(tolua_S, 3, "cc.PhysicsBody",&arg1, "cc.PhysicsJointGroove:construct"); ok &= luaval_to_vec2(tolua_S, 4, &arg2, "cc.PhysicsJointGroove:construct"); ok &= luaval_to_vec2(tolua_S, 5, &arg3, "cc.PhysicsJointGroove:construct"); ok &= luaval_to_vec2(tolua_S, 6, &arg4, "cc.PhysicsJointGroove:construct"); @@ -9684,8 +9684,8 @@ int lua_cocos2dx_physics_PhysicsJointGroove_construct(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsJointGroove_construct'", nullptr); return 0; } - cocos2d::PhysicsJointGroove* ret = cocos2d::PhysicsJointGroove::construct(arg0, arg1, arg2, arg3, arg4); - object_to_luaval(tolua_S, "cc.PhysicsJointGroove",(cocos2d::PhysicsJointGroove*)ret); + axis::PhysicsJointGroove* ret = axis::PhysicsJointGroove::construct(arg0, arg1, arg2, arg3, arg4); + object_to_luaval(tolua_S, "cc.PhysicsJointGroove",(axis::PhysicsJointGroove*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.PhysicsJointGroove:construct",argc, 5); @@ -9717,7 +9717,7 @@ int lua_register_cocos2dx_physics_PhysicsJointGroove(lua_State* tolua_S) tolua_function(tolua_S,"createConstraints",lua_cocos2dx_physics_PhysicsJointGroove_createConstraints); tolua_function(tolua_S,"construct", lua_cocos2dx_physics_PhysicsJointGroove_construct); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::PhysicsJointGroove).name(); // rtti is literal storage + auto typeName = typeid(axis::PhysicsJointGroove).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.PhysicsJointGroove"; g_typeCast[typeName] = "cc.PhysicsJointGroove"; return 1; @@ -9726,7 +9726,7 @@ int lua_register_cocos2dx_physics_PhysicsJointGroove(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointRotarySpring_getDamping(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointRotarySpring* cobj = nullptr; + axis::PhysicsJointRotarySpring* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9738,7 +9738,7 @@ int lua_cocos2dx_physics_PhysicsJointRotarySpring_getDamping(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointRotarySpring",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointRotarySpring*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointRotarySpring*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9773,7 +9773,7 @@ int lua_cocos2dx_physics_PhysicsJointRotarySpring_getDamping(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointRotarySpring_setRestAngle(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointRotarySpring* cobj = nullptr; + axis::PhysicsJointRotarySpring* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9785,7 +9785,7 @@ int lua_cocos2dx_physics_PhysicsJointRotarySpring_setRestAngle(lua_State* tolua_ if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointRotarySpring",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointRotarySpring*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointRotarySpring*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9823,7 +9823,7 @@ int lua_cocos2dx_physics_PhysicsJointRotarySpring_setRestAngle(lua_State* tolua_ int lua_cocos2dx_physics_PhysicsJointRotarySpring_getStiffness(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointRotarySpring* cobj = nullptr; + axis::PhysicsJointRotarySpring* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9835,7 +9835,7 @@ int lua_cocos2dx_physics_PhysicsJointRotarySpring_getStiffness(lua_State* tolua_ if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointRotarySpring",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointRotarySpring*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointRotarySpring*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9870,7 +9870,7 @@ int lua_cocos2dx_physics_PhysicsJointRotarySpring_getStiffness(lua_State* tolua_ int lua_cocos2dx_physics_PhysicsJointRotarySpring_createConstraints(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointRotarySpring* cobj = nullptr; + axis::PhysicsJointRotarySpring* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9882,7 +9882,7 @@ int lua_cocos2dx_physics_PhysicsJointRotarySpring_createConstraints(lua_State* t if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointRotarySpring",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointRotarySpring*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointRotarySpring*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9917,7 +9917,7 @@ int lua_cocos2dx_physics_PhysicsJointRotarySpring_createConstraints(lua_State* t int lua_cocos2dx_physics_PhysicsJointRotarySpring_setStiffness(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointRotarySpring* cobj = nullptr; + axis::PhysicsJointRotarySpring* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9929,7 +9929,7 @@ int lua_cocos2dx_physics_PhysicsJointRotarySpring_setStiffness(lua_State* tolua_ if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointRotarySpring",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointRotarySpring*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointRotarySpring*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9967,7 +9967,7 @@ int lua_cocos2dx_physics_PhysicsJointRotarySpring_setStiffness(lua_State* tolua_ int lua_cocos2dx_physics_PhysicsJointRotarySpring_setDamping(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointRotarySpring* cobj = nullptr; + axis::PhysicsJointRotarySpring* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9979,7 +9979,7 @@ int lua_cocos2dx_physics_PhysicsJointRotarySpring_setDamping(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointRotarySpring",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointRotarySpring*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointRotarySpring*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10017,7 +10017,7 @@ int lua_cocos2dx_physics_PhysicsJointRotarySpring_setDamping(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointRotarySpring_getRestAngle(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointRotarySpring* cobj = nullptr; + axis::PhysicsJointRotarySpring* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10029,7 +10029,7 @@ int lua_cocos2dx_physics_PhysicsJointRotarySpring_getRestAngle(lua_State* tolua_ if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointRotarySpring",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointRotarySpring*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointRotarySpring*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10078,12 +10078,12 @@ int lua_cocos2dx_physics_PhysicsJointRotarySpring_construct(lua_State* tolua_S) if (argc == 4) { - cocos2d::PhysicsBody* arg0; - cocos2d::PhysicsBody* arg1; + axis::PhysicsBody* arg0; + axis::PhysicsBody* arg1; double arg2; double arg3; - ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsBody",&arg0, "cc.PhysicsJointRotarySpring:construct"); - ok &= luaval_to_object(tolua_S, 3, "cc.PhysicsBody",&arg1, "cc.PhysicsJointRotarySpring:construct"); + ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsBody",&arg0, "cc.PhysicsJointRotarySpring:construct"); + ok &= luaval_to_object(tolua_S, 3, "cc.PhysicsBody",&arg1, "cc.PhysicsJointRotarySpring:construct"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.PhysicsJointRotarySpring:construct"); ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.PhysicsJointRotarySpring:construct"); if(!ok) @@ -10091,8 +10091,8 @@ int lua_cocos2dx_physics_PhysicsJointRotarySpring_construct(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsJointRotarySpring_construct'", nullptr); return 0; } - cocos2d::PhysicsJointRotarySpring* ret = cocos2d::PhysicsJointRotarySpring::construct(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.PhysicsJointRotarySpring",(cocos2d::PhysicsJointRotarySpring*)ret); + axis::PhysicsJointRotarySpring* ret = axis::PhysicsJointRotarySpring::construct(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.PhysicsJointRotarySpring",(axis::PhysicsJointRotarySpring*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.PhysicsJointRotarySpring:construct",argc, 4); @@ -10124,7 +10124,7 @@ int lua_register_cocos2dx_physics_PhysicsJointRotarySpring(lua_State* tolua_S) tolua_function(tolua_S,"getRestAngle",lua_cocos2dx_physics_PhysicsJointRotarySpring_getRestAngle); tolua_function(tolua_S,"construct", lua_cocos2dx_physics_PhysicsJointRotarySpring_construct); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::PhysicsJointRotarySpring).name(); // rtti is literal storage + auto typeName = typeid(axis::PhysicsJointRotarySpring).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.PhysicsJointRotarySpring"; g_typeCast[typeName] = "cc.PhysicsJointRotarySpring"; return 1; @@ -10133,7 +10133,7 @@ int lua_register_cocos2dx_physics_PhysicsJointRotarySpring(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointRotaryLimit_getMax(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointRotaryLimit* cobj = nullptr; + axis::PhysicsJointRotaryLimit* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10145,7 +10145,7 @@ int lua_cocos2dx_physics_PhysicsJointRotaryLimit_getMax(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointRotaryLimit",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointRotaryLimit*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointRotaryLimit*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10180,7 +10180,7 @@ int lua_cocos2dx_physics_PhysicsJointRotaryLimit_getMax(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointRotaryLimit_createConstraints(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointRotaryLimit* cobj = nullptr; + axis::PhysicsJointRotaryLimit* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10192,7 +10192,7 @@ int lua_cocos2dx_physics_PhysicsJointRotaryLimit_createConstraints(lua_State* to if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointRotaryLimit",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointRotaryLimit*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointRotaryLimit*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10227,7 +10227,7 @@ int lua_cocos2dx_physics_PhysicsJointRotaryLimit_createConstraints(lua_State* to int lua_cocos2dx_physics_PhysicsJointRotaryLimit_setMin(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointRotaryLimit* cobj = nullptr; + axis::PhysicsJointRotaryLimit* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10239,7 +10239,7 @@ int lua_cocos2dx_physics_PhysicsJointRotaryLimit_setMin(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointRotaryLimit",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointRotaryLimit*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointRotaryLimit*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10277,7 +10277,7 @@ int lua_cocos2dx_physics_PhysicsJointRotaryLimit_setMin(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointRotaryLimit_setMax(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointRotaryLimit* cobj = nullptr; + axis::PhysicsJointRotaryLimit* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10289,7 +10289,7 @@ int lua_cocos2dx_physics_PhysicsJointRotaryLimit_setMax(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointRotaryLimit",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointRotaryLimit*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointRotaryLimit*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10327,7 +10327,7 @@ int lua_cocos2dx_physics_PhysicsJointRotaryLimit_setMax(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointRotaryLimit_getMin(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointRotaryLimit* cobj = nullptr; + axis::PhysicsJointRotaryLimit* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10339,7 +10339,7 @@ int lua_cocos2dx_physics_PhysicsJointRotaryLimit_getMin(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointRotaryLimit",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointRotaryLimit*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointRotaryLimit*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10389,14 +10389,14 @@ int lua_cocos2dx_physics_PhysicsJointRotaryLimit_construct(lua_State* tolua_S) { if (argc == 2) { - cocos2d::PhysicsBody* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsBody",&arg0, "cc.PhysicsJointRotaryLimit:construct"); + axis::PhysicsBody* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsBody",&arg0, "cc.PhysicsJointRotaryLimit:construct"); if (!ok) { break; } - cocos2d::PhysicsBody* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.PhysicsBody",&arg1, "cc.PhysicsJointRotaryLimit:construct"); + axis::PhysicsBody* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.PhysicsBody",&arg1, "cc.PhysicsJointRotaryLimit:construct"); if (!ok) { break; } - cocos2d::PhysicsJointRotaryLimit* ret = cocos2d::PhysicsJointRotaryLimit::construct(arg0, arg1); - object_to_luaval(tolua_S, "cc.PhysicsJointRotaryLimit",(cocos2d::PhysicsJointRotaryLimit*)ret); + axis::PhysicsJointRotaryLimit* ret = axis::PhysicsJointRotaryLimit::construct(arg0, arg1); + object_to_luaval(tolua_S, "cc.PhysicsJointRotaryLimit",(axis::PhysicsJointRotaryLimit*)ret); return 1; } } while (0); @@ -10405,11 +10405,11 @@ int lua_cocos2dx_physics_PhysicsJointRotaryLimit_construct(lua_State* tolua_S) { if (argc == 4) { - cocos2d::PhysicsBody* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsBody",&arg0, "cc.PhysicsJointRotaryLimit:construct"); + axis::PhysicsBody* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsBody",&arg0, "cc.PhysicsJointRotaryLimit:construct"); if (!ok) { break; } - cocos2d::PhysicsBody* arg1; - ok &= luaval_to_object(tolua_S, 3, "cc.PhysicsBody",&arg1, "cc.PhysicsJointRotaryLimit:construct"); + axis::PhysicsBody* arg1; + ok &= luaval_to_object(tolua_S, 3, "cc.PhysicsBody",&arg1, "cc.PhysicsJointRotaryLimit:construct"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.PhysicsJointRotaryLimit:construct"); @@ -10417,8 +10417,8 @@ int lua_cocos2dx_physics_PhysicsJointRotaryLimit_construct(lua_State* tolua_S) double arg3; ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.PhysicsJointRotaryLimit:construct"); if (!ok) { break; } - cocos2d::PhysicsJointRotaryLimit* ret = cocos2d::PhysicsJointRotaryLimit::construct(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.PhysicsJointRotaryLimit",(cocos2d::PhysicsJointRotaryLimit*)ret); + axis::PhysicsJointRotaryLimit* ret = axis::PhysicsJointRotaryLimit::construct(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.PhysicsJointRotaryLimit",(axis::PhysicsJointRotaryLimit*)ret); return 1; } } while (0); @@ -10450,7 +10450,7 @@ int lua_register_cocos2dx_physics_PhysicsJointRotaryLimit(lua_State* tolua_S) tolua_function(tolua_S,"getMin",lua_cocos2dx_physics_PhysicsJointRotaryLimit_getMin); tolua_function(tolua_S,"construct", lua_cocos2dx_physics_PhysicsJointRotaryLimit_construct); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::PhysicsJointRotaryLimit).name(); // rtti is literal storage + auto typeName = typeid(axis::PhysicsJointRotaryLimit).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.PhysicsJointRotaryLimit"; g_typeCast[typeName] = "cc.PhysicsJointRotaryLimit"; return 1; @@ -10459,7 +10459,7 @@ int lua_register_cocos2dx_physics_PhysicsJointRotaryLimit(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointRatchet_getAngle(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointRatchet* cobj = nullptr; + axis::PhysicsJointRatchet* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10471,7 +10471,7 @@ int lua_cocos2dx_physics_PhysicsJointRatchet_getAngle(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointRatchet",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointRatchet*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointRatchet*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10506,7 +10506,7 @@ int lua_cocos2dx_physics_PhysicsJointRatchet_getAngle(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointRatchet_setAngle(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointRatchet* cobj = nullptr; + axis::PhysicsJointRatchet* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10518,7 +10518,7 @@ int lua_cocos2dx_physics_PhysicsJointRatchet_setAngle(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointRatchet",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointRatchet*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointRatchet*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10556,7 +10556,7 @@ int lua_cocos2dx_physics_PhysicsJointRatchet_setAngle(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointRatchet_createConstraints(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointRatchet* cobj = nullptr; + axis::PhysicsJointRatchet* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10568,7 +10568,7 @@ int lua_cocos2dx_physics_PhysicsJointRatchet_createConstraints(lua_State* tolua_ if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointRatchet",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointRatchet*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointRatchet*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10603,7 +10603,7 @@ int lua_cocos2dx_physics_PhysicsJointRatchet_createConstraints(lua_State* tolua_ int lua_cocos2dx_physics_PhysicsJointRatchet_setPhase(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointRatchet* cobj = nullptr; + axis::PhysicsJointRatchet* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10615,7 +10615,7 @@ int lua_cocos2dx_physics_PhysicsJointRatchet_setPhase(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointRatchet",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointRatchet*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointRatchet*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10653,7 +10653,7 @@ int lua_cocos2dx_physics_PhysicsJointRatchet_setPhase(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointRatchet_getPhase(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointRatchet* cobj = nullptr; + axis::PhysicsJointRatchet* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10665,7 +10665,7 @@ int lua_cocos2dx_physics_PhysicsJointRatchet_getPhase(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointRatchet",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointRatchet*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointRatchet*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10700,7 +10700,7 @@ int lua_cocos2dx_physics_PhysicsJointRatchet_getPhase(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointRatchet_setRatchet(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointRatchet* cobj = nullptr; + axis::PhysicsJointRatchet* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10712,7 +10712,7 @@ int lua_cocos2dx_physics_PhysicsJointRatchet_setRatchet(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointRatchet",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointRatchet*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointRatchet*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10750,7 +10750,7 @@ int lua_cocos2dx_physics_PhysicsJointRatchet_setRatchet(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointRatchet_getRatchet(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointRatchet* cobj = nullptr; + axis::PhysicsJointRatchet* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10762,7 +10762,7 @@ int lua_cocos2dx_physics_PhysicsJointRatchet_getRatchet(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointRatchet",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointRatchet*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointRatchet*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10811,12 +10811,12 @@ int lua_cocos2dx_physics_PhysicsJointRatchet_construct(lua_State* tolua_S) if (argc == 4) { - cocos2d::PhysicsBody* arg0; - cocos2d::PhysicsBody* arg1; + axis::PhysicsBody* arg0; + axis::PhysicsBody* arg1; double arg2; double arg3; - ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsBody",&arg0, "cc.PhysicsJointRatchet:construct"); - ok &= luaval_to_object(tolua_S, 3, "cc.PhysicsBody",&arg1, "cc.PhysicsJointRatchet:construct"); + ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsBody",&arg0, "cc.PhysicsJointRatchet:construct"); + ok &= luaval_to_object(tolua_S, 3, "cc.PhysicsBody",&arg1, "cc.PhysicsJointRatchet:construct"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.PhysicsJointRatchet:construct"); ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.PhysicsJointRatchet:construct"); if(!ok) @@ -10824,8 +10824,8 @@ int lua_cocos2dx_physics_PhysicsJointRatchet_construct(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsJointRatchet_construct'", nullptr); return 0; } - cocos2d::PhysicsJointRatchet* ret = cocos2d::PhysicsJointRatchet::construct(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.PhysicsJointRatchet",(cocos2d::PhysicsJointRatchet*)ret); + axis::PhysicsJointRatchet* ret = axis::PhysicsJointRatchet::construct(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.PhysicsJointRatchet",(axis::PhysicsJointRatchet*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.PhysicsJointRatchet:construct",argc, 4); @@ -10857,7 +10857,7 @@ int lua_register_cocos2dx_physics_PhysicsJointRatchet(lua_State* tolua_S) tolua_function(tolua_S,"getRatchet",lua_cocos2dx_physics_PhysicsJointRatchet_getRatchet); tolua_function(tolua_S,"construct", lua_cocos2dx_physics_PhysicsJointRatchet_construct); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::PhysicsJointRatchet).name(); // rtti is literal storage + auto typeName = typeid(axis::PhysicsJointRatchet).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.PhysicsJointRatchet"; g_typeCast[typeName] = "cc.PhysicsJointRatchet"; return 1; @@ -10866,7 +10866,7 @@ int lua_register_cocos2dx_physics_PhysicsJointRatchet(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointGear_setRatio(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointGear* cobj = nullptr; + axis::PhysicsJointGear* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10878,7 +10878,7 @@ int lua_cocos2dx_physics_PhysicsJointGear_setRatio(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointGear",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointGear*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointGear*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10916,7 +10916,7 @@ int lua_cocos2dx_physics_PhysicsJointGear_setRatio(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointGear_getPhase(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointGear* cobj = nullptr; + axis::PhysicsJointGear* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10928,7 +10928,7 @@ int lua_cocos2dx_physics_PhysicsJointGear_getPhase(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointGear",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointGear*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointGear*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10963,7 +10963,7 @@ int lua_cocos2dx_physics_PhysicsJointGear_getPhase(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointGear_setPhase(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointGear* cobj = nullptr; + axis::PhysicsJointGear* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10975,7 +10975,7 @@ int lua_cocos2dx_physics_PhysicsJointGear_setPhase(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointGear",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointGear*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointGear*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11013,7 +11013,7 @@ int lua_cocos2dx_physics_PhysicsJointGear_setPhase(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointGear_createConstraints(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointGear* cobj = nullptr; + axis::PhysicsJointGear* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11025,7 +11025,7 @@ int lua_cocos2dx_physics_PhysicsJointGear_createConstraints(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointGear",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointGear*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointGear*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11060,7 +11060,7 @@ int lua_cocos2dx_physics_PhysicsJointGear_createConstraints(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointGear_getRatio(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointGear* cobj = nullptr; + axis::PhysicsJointGear* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11072,7 +11072,7 @@ int lua_cocos2dx_physics_PhysicsJointGear_getRatio(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointGear",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointGear*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointGear*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11121,12 +11121,12 @@ int lua_cocos2dx_physics_PhysicsJointGear_construct(lua_State* tolua_S) if (argc == 4) { - cocos2d::PhysicsBody* arg0; - cocos2d::PhysicsBody* arg1; + axis::PhysicsBody* arg0; + axis::PhysicsBody* arg1; double arg2; double arg3; - ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsBody",&arg0, "cc.PhysicsJointGear:construct"); - ok &= luaval_to_object(tolua_S, 3, "cc.PhysicsBody",&arg1, "cc.PhysicsJointGear:construct"); + ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsBody",&arg0, "cc.PhysicsJointGear:construct"); + ok &= luaval_to_object(tolua_S, 3, "cc.PhysicsBody",&arg1, "cc.PhysicsJointGear:construct"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.PhysicsJointGear:construct"); ok &= luaval_to_number(tolua_S, 5,&arg3, "cc.PhysicsJointGear:construct"); if(!ok) @@ -11134,8 +11134,8 @@ int lua_cocos2dx_physics_PhysicsJointGear_construct(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsJointGear_construct'", nullptr); return 0; } - cocos2d::PhysicsJointGear* ret = cocos2d::PhysicsJointGear::construct(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "cc.PhysicsJointGear",(cocos2d::PhysicsJointGear*)ret); + axis::PhysicsJointGear* ret = axis::PhysicsJointGear::construct(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "cc.PhysicsJointGear",(axis::PhysicsJointGear*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.PhysicsJointGear:construct",argc, 4); @@ -11165,7 +11165,7 @@ int lua_register_cocos2dx_physics_PhysicsJointGear(lua_State* tolua_S) tolua_function(tolua_S,"getRatio",lua_cocos2dx_physics_PhysicsJointGear_getRatio); tolua_function(tolua_S,"construct", lua_cocos2dx_physics_PhysicsJointGear_construct); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::PhysicsJointGear).name(); // rtti is literal storage + auto typeName = typeid(axis::PhysicsJointGear).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.PhysicsJointGear"; g_typeCast[typeName] = "cc.PhysicsJointGear"; return 1; @@ -11174,7 +11174,7 @@ int lua_register_cocos2dx_physics_PhysicsJointGear(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointMotor_setRate(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointMotor* cobj = nullptr; + axis::PhysicsJointMotor* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11186,7 +11186,7 @@ int lua_cocos2dx_physics_PhysicsJointMotor_setRate(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointMotor",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointMotor*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointMotor*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11224,7 +11224,7 @@ int lua_cocos2dx_physics_PhysicsJointMotor_setRate(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointMotor_getRate(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointMotor* cobj = nullptr; + axis::PhysicsJointMotor* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11236,7 +11236,7 @@ int lua_cocos2dx_physics_PhysicsJointMotor_getRate(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointMotor",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointMotor*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointMotor*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11271,7 +11271,7 @@ int lua_cocos2dx_physics_PhysicsJointMotor_getRate(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsJointMotor_createConstraints(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsJointMotor* cobj = nullptr; + axis::PhysicsJointMotor* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11283,7 +11283,7 @@ int lua_cocos2dx_physics_PhysicsJointMotor_createConstraints(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsJointMotor",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsJointMotor*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsJointMotor*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11332,19 +11332,19 @@ int lua_cocos2dx_physics_PhysicsJointMotor_construct(lua_State* tolua_S) if (argc == 3) { - cocos2d::PhysicsBody* arg0; - cocos2d::PhysicsBody* arg1; + axis::PhysicsBody* arg0; + axis::PhysicsBody* arg1; double arg2; - ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsBody",&arg0, "cc.PhysicsJointMotor:construct"); - ok &= luaval_to_object(tolua_S, 3, "cc.PhysicsBody",&arg1, "cc.PhysicsJointMotor:construct"); + ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsBody",&arg0, "cc.PhysicsJointMotor:construct"); + ok &= luaval_to_object(tolua_S, 3, "cc.PhysicsBody",&arg1, "cc.PhysicsJointMotor:construct"); ok &= luaval_to_number(tolua_S, 4,&arg2, "cc.PhysicsJointMotor:construct"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsJointMotor_construct'", nullptr); return 0; } - cocos2d::PhysicsJointMotor* ret = cocos2d::PhysicsJointMotor::construct(arg0, arg1, arg2); - object_to_luaval(tolua_S, "cc.PhysicsJointMotor",(cocos2d::PhysicsJointMotor*)ret); + axis::PhysicsJointMotor* ret = axis::PhysicsJointMotor::construct(arg0, arg1, arg2); + object_to_luaval(tolua_S, "cc.PhysicsJointMotor",(axis::PhysicsJointMotor*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.PhysicsJointMotor:construct",argc, 3); @@ -11372,7 +11372,7 @@ int lua_register_cocos2dx_physics_PhysicsJointMotor(lua_State* tolua_S) tolua_function(tolua_S,"createConstraints",lua_cocos2dx_physics_PhysicsJointMotor_createConstraints); tolua_function(tolua_S,"construct", lua_cocos2dx_physics_PhysicsJointMotor_construct); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::PhysicsJointMotor).name(); // rtti is literal storage + auto typeName = typeid(axis::PhysicsJointMotor).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.PhysicsJointMotor"; g_typeCast[typeName] = "cc.PhysicsJointMotor"; return 1; @@ -11381,7 +11381,7 @@ int lua_register_cocos2dx_physics_PhysicsJointMotor(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsWorld_setGravity(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsWorld* cobj = nullptr; + axis::PhysicsWorld* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11393,7 +11393,7 @@ int lua_cocos2dx_physics_PhysicsWorld_setGravity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11406,7 +11406,7 @@ int lua_cocos2dx_physics_PhysicsWorld_setGravity(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsWorld:setGravity"); if(!ok) @@ -11431,7 +11431,7 @@ int lua_cocos2dx_physics_PhysicsWorld_setGravity(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsWorld_getAllBodies(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsWorld* cobj = nullptr; + axis::PhysicsWorld* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11443,7 +11443,7 @@ int lua_cocos2dx_physics_PhysicsWorld_getAllBodies(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11461,7 +11461,7 @@ int lua_cocos2dx_physics_PhysicsWorld_getAllBodies(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsWorld_getAllBodies'", nullptr); return 0; } - const cocos2d::Vector& ret = cobj->getAllBodies(); + const axis::Vector& ret = cobj->getAllBodies(); ccvector_to_luaval(tolua_S, ret); return 1; } @@ -11478,7 +11478,7 @@ int lua_cocos2dx_physics_PhysicsWorld_getAllBodies(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsWorld_setFixedUpdateRate(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsWorld* cobj = nullptr; + axis::PhysicsWorld* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11490,7 +11490,7 @@ int lua_cocos2dx_physics_PhysicsWorld_setFixedUpdateRate(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11528,7 +11528,7 @@ int lua_cocos2dx_physics_PhysicsWorld_setFixedUpdateRate(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsWorld_setSubsteps(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsWorld* cobj = nullptr; + axis::PhysicsWorld* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11540,7 +11540,7 @@ int lua_cocos2dx_physics_PhysicsWorld_setSubsteps(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11578,7 +11578,7 @@ int lua_cocos2dx_physics_PhysicsWorld_setSubsteps(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsWorld_setAutoStep(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsWorld* cobj = nullptr; + axis::PhysicsWorld* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11590,7 +11590,7 @@ int lua_cocos2dx_physics_PhysicsWorld_setAutoStep(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11628,7 +11628,7 @@ int lua_cocos2dx_physics_PhysicsWorld_setAutoStep(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsWorld_addJoint(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsWorld* cobj = nullptr; + axis::PhysicsWorld* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11640,7 +11640,7 @@ int lua_cocos2dx_physics_PhysicsWorld_addJoint(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11653,9 +11653,9 @@ int lua_cocos2dx_physics_PhysicsWorld_addJoint(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::PhysicsJoint* arg0; + axis::PhysicsJoint* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsJoint",&arg0, "cc.PhysicsWorld:addJoint"); + ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsJoint",&arg0, "cc.PhysicsWorld:addJoint"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsWorld_addJoint'", nullptr); @@ -11678,7 +11678,7 @@ int lua_cocos2dx_physics_PhysicsWorld_addJoint(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsWorld_removeAllJoints(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsWorld* cobj = nullptr; + axis::PhysicsWorld* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11690,7 +11690,7 @@ int lua_cocos2dx_physics_PhysicsWorld_removeAllJoints(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11739,7 +11739,7 @@ int lua_cocos2dx_physics_PhysicsWorld_removeAllJoints(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsWorld_getDebugDrawMask(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsWorld* cobj = nullptr; + axis::PhysicsWorld* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11751,7 +11751,7 @@ int lua_cocos2dx_physics_PhysicsWorld_getDebugDrawMask(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11786,7 +11786,7 @@ int lua_cocos2dx_physics_PhysicsWorld_getDebugDrawMask(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsWorld_setPreUpdateCallback(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsWorld* cobj = nullptr; + axis::PhysicsWorld* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11798,7 +11798,7 @@ int lua_cocos2dx_physics_PhysicsWorld_setPreUpdateCallback(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11840,7 +11840,7 @@ int lua_cocos2dx_physics_PhysicsWorld_setPreUpdateCallback(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsWorld_isAutoStep(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsWorld* cobj = nullptr; + axis::PhysicsWorld* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11852,7 +11852,7 @@ int lua_cocos2dx_physics_PhysicsWorld_isAutoStep(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11887,7 +11887,7 @@ int lua_cocos2dx_physics_PhysicsWorld_isAutoStep(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsWorld_setPostUpdateCallback(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsWorld* cobj = nullptr; + axis::PhysicsWorld* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11899,7 +11899,7 @@ int lua_cocos2dx_physics_PhysicsWorld_setPostUpdateCallback(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11941,7 +11941,7 @@ int lua_cocos2dx_physics_PhysicsWorld_setPostUpdateCallback(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsWorld_removeBody(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsWorld* cobj = nullptr; + axis::PhysicsWorld* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -11950,7 +11950,7 @@ int lua_cocos2dx_physics_PhysicsWorld_removeBody(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"cc.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -11973,8 +11973,8 @@ int lua_cocos2dx_physics_PhysicsWorld_removeBody(lua_State* tolua_S) ok = true; do{ if (argc == 1) { - cocos2d::PhysicsBody* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsBody",&arg0, "cc.PhysicsWorld:removeBody"); + axis::PhysicsBody* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsBody",&arg0, "cc.PhysicsWorld:removeBody"); if (!ok) { break; } cobj->removeBody(arg0); @@ -11996,7 +11996,7 @@ int lua_cocos2dx_physics_PhysicsWorld_removeBody(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsWorld_removeJoint(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsWorld* cobj = nullptr; + axis::PhysicsWorld* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12008,7 +12008,7 @@ int lua_cocos2dx_physics_PhysicsWorld_removeJoint(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12021,9 +12021,9 @@ int lua_cocos2dx_physics_PhysicsWorld_removeJoint(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::PhysicsJoint* arg0; + axis::PhysicsJoint* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsJoint",&arg0, "cc.PhysicsWorld:removeJoint"); + ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsJoint",&arg0, "cc.PhysicsWorld:removeJoint"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsWorld_removeJoint'", nullptr); @@ -12035,10 +12035,10 @@ int lua_cocos2dx_physics_PhysicsWorld_removeJoint(lua_State* tolua_S) } if (argc == 2) { - cocos2d::PhysicsJoint* arg0; + axis::PhysicsJoint* arg0; bool arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsJoint",&arg0, "cc.PhysicsWorld:removeJoint"); + ok &= luaval_to_object(tolua_S, 2, "cc.PhysicsJoint",&arg0, "cc.PhysicsWorld:removeJoint"); ok &= luaval_to_boolean(tolua_S, 3,&arg1, "cc.PhysicsWorld:removeJoint"); if(!ok) @@ -12063,7 +12063,7 @@ int lua_cocos2dx_physics_PhysicsWorld_removeJoint(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsWorld_getShapes(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsWorld* cobj = nullptr; + axis::PhysicsWorld* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12075,7 +12075,7 @@ int lua_cocos2dx_physics_PhysicsWorld_getShapes(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12088,7 +12088,7 @@ int lua_cocos2dx_physics_PhysicsWorld_getShapes(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsWorld:getShapes"); if(!ok) @@ -12096,7 +12096,7 @@ int lua_cocos2dx_physics_PhysicsWorld_getShapes(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsWorld_getShapes'", nullptr); return 0; } - cocos2d::Vector ret = cobj->getShapes(arg0); + axis::Vector ret = cobj->getShapes(arg0); ccvector_to_luaval(tolua_S, ret); return 1; } @@ -12113,7 +12113,7 @@ int lua_cocos2dx_physics_PhysicsWorld_getShapes(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsWorld_step(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsWorld* cobj = nullptr; + axis::PhysicsWorld* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12125,7 +12125,7 @@ int lua_cocos2dx_physics_PhysicsWorld_step(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12163,7 +12163,7 @@ int lua_cocos2dx_physics_PhysicsWorld_step(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsWorld_setDebugDrawMask(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsWorld* cobj = nullptr; + axis::PhysicsWorld* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12175,7 +12175,7 @@ int lua_cocos2dx_physics_PhysicsWorld_setDebugDrawMask(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12213,7 +12213,7 @@ int lua_cocos2dx_physics_PhysicsWorld_setDebugDrawMask(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsWorld_getGravity(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsWorld* cobj = nullptr; + axis::PhysicsWorld* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12225,7 +12225,7 @@ int lua_cocos2dx_physics_PhysicsWorld_getGravity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12243,7 +12243,7 @@ int lua_cocos2dx_physics_PhysicsWorld_getGravity(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsWorld_getGravity'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getGravity(); + axis::Vec2 ret = cobj->getGravity(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -12260,7 +12260,7 @@ int lua_cocos2dx_physics_PhysicsWorld_getGravity(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsWorld_setUpdateRate(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsWorld* cobj = nullptr; + axis::PhysicsWorld* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12272,7 +12272,7 @@ int lua_cocos2dx_physics_PhysicsWorld_setUpdateRate(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12310,7 +12310,7 @@ int lua_cocos2dx_physics_PhysicsWorld_setUpdateRate(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsWorld_getFixedUpdateRate(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsWorld* cobj = nullptr; + axis::PhysicsWorld* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12322,7 +12322,7 @@ int lua_cocos2dx_physics_PhysicsWorld_getFixedUpdateRate(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12357,7 +12357,7 @@ int lua_cocos2dx_physics_PhysicsWorld_getFixedUpdateRate(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsWorld_getSubsteps(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsWorld* cobj = nullptr; + axis::PhysicsWorld* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12369,7 +12369,7 @@ int lua_cocos2dx_physics_PhysicsWorld_getSubsteps(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12404,7 +12404,7 @@ int lua_cocos2dx_physics_PhysicsWorld_getSubsteps(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsWorld_getSpeed(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsWorld* cobj = nullptr; + axis::PhysicsWorld* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12416,7 +12416,7 @@ int lua_cocos2dx_physics_PhysicsWorld_getSpeed(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12451,7 +12451,7 @@ int lua_cocos2dx_physics_PhysicsWorld_getSpeed(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsWorld_getUpdateRate(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsWorld* cobj = nullptr; + axis::PhysicsWorld* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12463,7 +12463,7 @@ int lua_cocos2dx_physics_PhysicsWorld_getUpdateRate(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12498,7 +12498,7 @@ int lua_cocos2dx_physics_PhysicsWorld_getUpdateRate(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsWorld_removeAllBodies(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsWorld* cobj = nullptr; + axis::PhysicsWorld* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12510,7 +12510,7 @@ int lua_cocos2dx_physics_PhysicsWorld_removeAllBodies(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12545,7 +12545,7 @@ int lua_cocos2dx_physics_PhysicsWorld_removeAllBodies(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsWorld_setSpeed(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsWorld* cobj = nullptr; + axis::PhysicsWorld* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12557,7 +12557,7 @@ int lua_cocos2dx_physics_PhysicsWorld_setSpeed(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12595,7 +12595,7 @@ int lua_cocos2dx_physics_PhysicsWorld_setSpeed(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsWorld_getShape(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsWorld* cobj = nullptr; + axis::PhysicsWorld* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12607,7 +12607,7 @@ int lua_cocos2dx_physics_PhysicsWorld_getShape(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12620,7 +12620,7 @@ int lua_cocos2dx_physics_PhysicsWorld_getShape(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.PhysicsWorld:getShape"); if(!ok) @@ -12628,8 +12628,8 @@ int lua_cocos2dx_physics_PhysicsWorld_getShape(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsWorld_getShape'", nullptr); return 0; } - cocos2d::PhysicsShape* ret = cobj->getShape(arg0); - object_to_luaval(tolua_S, "cc.PhysicsShape",(cocos2d::PhysicsShape*)ret); + axis::PhysicsShape* ret = cobj->getShape(arg0); + object_to_luaval(tolua_S, "cc.PhysicsShape",(axis::PhysicsShape*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.PhysicsWorld:getShape",argc, 1); @@ -12645,7 +12645,7 @@ int lua_cocos2dx_physics_PhysicsWorld_getShape(lua_State* tolua_S) int lua_cocos2dx_physics_PhysicsWorld_getBody(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsWorld* cobj = nullptr; + axis::PhysicsWorld* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12657,7 +12657,7 @@ int lua_cocos2dx_physics_PhysicsWorld_getBody(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"cc.PhysicsWorld",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::PhysicsWorld*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12678,8 +12678,8 @@ int lua_cocos2dx_physics_PhysicsWorld_getBody(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_physics_PhysicsWorld_getBody'", nullptr); return 0; } - cocos2d::PhysicsBody* ret = cobj->getBody(arg0); - object_to_luaval(tolua_S, "cc.PhysicsBody",(cocos2d::PhysicsBody*)ret); + axis::PhysicsBody* ret = cobj->getBody(arg0); + object_to_luaval(tolua_S, "cc.PhysicsBody",(axis::PhysicsBody*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.PhysicsWorld:getBody",argc, 1); @@ -12731,7 +12731,7 @@ int lua_register_cocos2dx_physics_PhysicsWorld(lua_State* tolua_S) tolua_function(tolua_S,"getShape",lua_cocos2dx_physics_PhysicsWorld_getShape); tolua_function(tolua_S,"getBody",lua_cocos2dx_physics_PhysicsWorld_getBody); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::PhysicsWorld).name(); // rtti is literal storage + auto typeName = typeid(axis::PhysicsWorld).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "cc.PhysicsWorld"; g_typeCast[typeName] = "cc.PhysicsWorld"; return 1; diff --git a/extensions/scripting/lua-bindings/auto/lua_cocos2dx_spine_auto.cpp b/extensions/scripting/lua-bindings/auto/lua_cocos2dx_spine_auto.cpp index 2b3c206964..823bce6141 100644 --- a/extensions/scripting/lua-bindings/auto/lua_cocos2dx_spine_auto.cpp +++ b/extensions/scripting/lua-bindings/auto/lua_cocos2dx_spine_auto.cpp @@ -854,7 +854,7 @@ int lua_cocos2dx_spine_SkeletonRenderer_getBlendFunc(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_spine_SkeletonRenderer_getBlendFunc'", nullptr); return 0; } - const cocos2d::BlendFunc& ret = cobj->getBlendFunc(); + const axis::BlendFunc& ret = cobj->getBlendFunc(); blendfunc_to_luaval(tolua_S, ret); return 1; } @@ -1284,7 +1284,7 @@ int lua_cocos2dx_spine_SkeletonRenderer_setBlendFunc(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::BlendFunc arg0; + axis::BlendFunc arg0; ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "sp.SkeletonRenderer:setBlendFunc"); if(!ok) diff --git a/extensions/scripting/lua-bindings/auto/lua_cocos2dx_studio_auto.cpp b/extensions/scripting/lua-bindings/auto/lua_cocos2dx_studio_auto.cpp index b9519b06b6..57a3e2d908 100644 --- a/extensions/scripting/lua-bindings/auto/lua_cocos2dx_studio_auto.cpp +++ b/extensions/scripting/lua-bindings/auto/lua_cocos2dx_studio_auto.cpp @@ -36,8 +36,8 @@ int lua_cocos2dx_studio_ActionFrame_getAction(lua_State* tolua_S) ok &= luaval_to_object(tolua_S, 3, "ccs.ActionFrame",&arg1, "ccs.ActionFrame:getAction"); if (!ok) { break; } - cocos2d::ActionInterval* ret = cobj->getAction(arg0, arg1); - object_to_luaval(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); + axis::ActionInterval* ret = cobj->getAction(arg0, arg1); + object_to_luaval(tolua_S, "cc.ActionInterval",(axis::ActionInterval*)ret); return 1; } }while(0); @@ -48,8 +48,8 @@ int lua_cocos2dx_studio_ActionFrame_getAction(lua_State* tolua_S) ok &= luaval_to_number(tolua_S, 2,&arg0, "ccs.ActionFrame:getAction"); if (!ok) { break; } - cocos2d::ActionInterval* ret = cobj->getAction(arg0); - object_to_luaval(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); + axis::ActionInterval* ret = cobj->getAction(arg0); + object_to_luaval(tolua_S, "cc.ActionInterval",(axis::ActionInterval*)ret); return 1; } }while(0); @@ -597,7 +597,7 @@ int lua_cocos2dx_studio_ActionMoveFrame_setPosition(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ccs.ActionMoveFrame:setPosition"); if(!ok) @@ -655,8 +655,8 @@ int lua_cocos2dx_studio_ActionMoveFrame_getAction(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ActionMoveFrame_getAction'", nullptr); return 0; } - cocos2d::ActionInterval* ret = cobj->getAction(arg0); - object_to_luaval(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); + axis::ActionInterval* ret = cobj->getAction(arg0); + object_to_luaval(tolua_S, "cc.ActionInterval",(axis::ActionInterval*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionMoveFrame:getAction",argc, 1); @@ -702,7 +702,7 @@ int lua_cocos2dx_studio_ActionMoveFrame_getPosition(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ActionMoveFrame_getPosition'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getPosition(); + axis::Vec2 ret = cobj->getPosition(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -1006,8 +1006,8 @@ int lua_cocos2dx_studio_ActionScaleFrame_getAction(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ActionScaleFrame_getAction'", nullptr); return 0; } - cocos2d::ActionInterval* ret = cobj->getAction(arg0); - object_to_luaval(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); + axis::ActionInterval* ret = cobj->getAction(arg0); + object_to_luaval(tolua_S, "cc.ActionInterval",(axis::ActionInterval*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionScaleFrame:getAction",argc, 1); @@ -1163,8 +1163,8 @@ int lua_cocos2dx_studio_ActionRotationFrame_getAction(lua_State* tolua_S) ok &= luaval_to_object(tolua_S, 3, "ccs.ActionFrame",&arg1, "ccs.ActionRotationFrame:getAction"); if (!ok) { break; } - cocos2d::ActionInterval* ret = cobj->getAction(arg0, arg1); - object_to_luaval(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); + axis::ActionInterval* ret = cobj->getAction(arg0, arg1); + object_to_luaval(tolua_S, "cc.ActionInterval",(axis::ActionInterval*)ret); return 1; } }while(0); @@ -1175,8 +1175,8 @@ int lua_cocos2dx_studio_ActionRotationFrame_getAction(lua_State* tolua_S) ok &= luaval_to_number(tolua_S, 2,&arg0, "ccs.ActionRotationFrame:getAction"); if (!ok) { break; } - cocos2d::ActionInterval* ret = cobj->getAction(arg0); - object_to_luaval(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); + axis::ActionInterval* ret = cobj->getAction(arg0); + object_to_luaval(tolua_S, "cc.ActionInterval",(axis::ActionInterval*)ret); return 1; } }while(0); @@ -1381,8 +1381,8 @@ int lua_cocos2dx_studio_ActionFadeFrame_getAction(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ActionFadeFrame_getAction'", nullptr); return 0; } - cocos2d::ActionInterval* ret = cobj->getAction(arg0); - object_to_luaval(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); + axis::ActionInterval* ret = cobj->getAction(arg0); + object_to_luaval(tolua_S, "cc.ActionInterval",(axis::ActionInterval*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionFadeFrame:getAction",argc, 1); @@ -1538,7 +1538,7 @@ int lua_cocos2dx_studio_ActionTintFrame_getColor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ActionTintFrame_getColor'", nullptr); return 0; } - cocos2d::Color3B ret = cobj->getColor(); + axis::Color3B ret = cobj->getColor(); color3b_to_luaval(tolua_S, ret); return 1; } @@ -1588,8 +1588,8 @@ int lua_cocos2dx_studio_ActionTintFrame_getAction(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ActionTintFrame_getAction'", nullptr); return 0; } - cocos2d::ActionInterval* ret = cobj->getAction(arg0); - object_to_luaval(tolua_S, "cc.ActionInterval",(cocos2d::ActionInterval*)ret); + axis::ActionInterval* ret = cobj->getAction(arg0); + object_to_luaval(tolua_S, "cc.ActionInterval",(axis::ActionInterval*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTintFrame:getAction",argc, 1); @@ -1630,7 +1630,7 @@ int lua_cocos2dx_studio_ActionTintFrame_setColor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Color3B arg0; + axis::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "ccs.ActionTintFrame:setColor"); if(!ok) @@ -2073,8 +2073,8 @@ int lua_cocos2dx_studio_ActionObject_play(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { - cocos2d::CallFunc* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.CallFunc",&arg0, "ccs.ActionObject:play"); + axis::CallFunc* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.CallFunc",&arg0, "ccs.ActionObject:play"); if (!ok) { break; } cobj->play(arg0); @@ -2797,8 +2797,8 @@ int lua_cocos2dx_studio_ActionManagerEx_playActionByName(lua_State* tolua_S) std::string arg1_tmp; ok &= luaval_to_std_string(tolua_S, 3, &arg1_tmp, "ccs.ActionManagerEx:playActionByName"); arg1 = arg1_tmp.c_str(); if (!ok) { break; } - cocos2d::CallFunc* arg2; - ok &= luaval_to_object(tolua_S, 4, "cc.CallFunc",&arg2, "ccs.ActionManagerEx:playActionByName"); + axis::CallFunc* arg2; + ok &= luaval_to_object(tolua_S, 4, "cc.CallFunc",&arg2, "ccs.ActionManagerEx:playActionByName"); if (!ok) { break; } cocostudio::ActionObject* ret = cobj->playActionByName(arg0, arg1, arg2); @@ -3007,7 +3007,7 @@ int lua_cocos2dx_studio_BaseData_getColor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_BaseData_getColor'", nullptr); return 0; } - cocos2d::Color4B ret = cobj->getColor(); + axis::Color4B ret = cobj->getColor(); color4b_to_luaval(tolua_S, ret); return 1; } @@ -3049,7 +3049,7 @@ int lua_cocos2dx_studio_BaseData_setColor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Color4B arg0; + axis::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "ccs.BaseData:setColor"); if(!ok) @@ -5052,7 +5052,7 @@ int lua_cocos2dx_studio_ContourData_addVertex(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ccs.ContourData:addVertex"); if(!ok) @@ -5852,8 +5852,8 @@ int lua_cocos2dx_studio_DisplayManager_getDisplayRenderNode(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_DisplayManager_getDisplayRenderNode'", nullptr); return 0; } - cocos2d::Node* ret = cobj->getDisplayRenderNode(); - object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + axis::Node* ret = cobj->getDisplayRenderNode(); + object_to_luaval(tolua_S, "cc.Node",(axis::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.DisplayManager:getDisplayRenderNode",argc, 0); @@ -5899,7 +5899,7 @@ int lua_cocos2dx_studio_DisplayManager_getAnchorPointInPoints(lua_State* tolua_S tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_DisplayManager_getAnchorPointInPoints'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getAnchorPointInPoints(); + axis::Vec2 ret = cobj->getAnchorPointInPoints(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -6143,7 +6143,7 @@ int lua_cocos2dx_studio_DisplayManager_getContentSize(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_DisplayManager_getContentSize'", nullptr); return 0; } - cocos2d::Size ret = cobj->getContentSize(); + axis::Size ret = cobj->getContentSize(); size_to_luaval(tolua_S, ret); return 1; } @@ -6190,7 +6190,7 @@ int lua_cocos2dx_studio_DisplayManager_getBoundingBox(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_DisplayManager_getBoundingBox'", nullptr); return 0; } - cocos2d::Rect ret = cobj->getBoundingBox(); + axis::Rect ret = cobj->getBoundingBox(); rect_to_luaval(tolua_S, ret); return 1; } @@ -6227,8 +6227,8 @@ int lua_cocos2dx_studio_DisplayManager_addDisplay(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { - cocos2d::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "ccs.DisplayManager:addDisplay"); + axis::Node* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "ccs.DisplayManager:addDisplay"); if (!ok) { break; } int arg1; @@ -6306,7 +6306,7 @@ int lua_cocos2dx_studio_DisplayManager_containPoint(lua_State* tolua_S) ok = true; do{ if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ccs.DisplayManager:containPoint"); if (!ok) { break; } @@ -6559,7 +6559,7 @@ int lua_cocos2dx_studio_DisplayManager_getAnchorPoint(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_DisplayManager_getAnchorPoint'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getAnchorPoint(); + axis::Vec2 ret = cobj->getAnchorPoint(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -6606,7 +6606,7 @@ int lua_cocos2dx_studio_DisplayManager_getDecorativeDisplayList(lua_State* tolua tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_DisplayManager_getDecorativeDisplayList'", nullptr); return 0; } - const cocos2d::Vector& ret = cobj->getDecorativeDisplayList(); + const axis::Vector& ret = cobj->getDecorativeDisplayList(); ccvector_to_luaval(tolua_S, ret); return 1; } @@ -6904,7 +6904,7 @@ int lua_cocos2dx_studio_Bone_setBlendFunc(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::BlendFunc arg0; + axis::BlendFunc arg0; ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "ccs.Bone:setBlendFunc"); if(!ok) @@ -7053,8 +7053,8 @@ int lua_cocos2dx_studio_Bone_getDisplayRenderNode(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_Bone_getDisplayRenderNode'", nullptr); return 0; } - cocos2d::Node* ret = cobj->getDisplayRenderNode(); - object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + axis::Node* ret = cobj->getDisplayRenderNode(); + object_to_luaval(tolua_S, "cc.Node",(axis::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Bone:getDisplayRenderNode",argc, 0); @@ -7672,8 +7672,8 @@ int lua_cocos2dx_studio_Bone_addDisplay(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { - cocos2d::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "ccs.Bone:addDisplay"); + axis::Node* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "ccs.Bone:addDisplay"); if (!ok) { break; } int arg1; @@ -7745,7 +7745,7 @@ int lua_cocos2dx_studio_Bone_getBlendFunc(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_Bone_getBlendFunc'", nullptr); return 0; } - cocos2d::BlendFunc ret = cobj->getBlendFunc(); + axis::BlendFunc ret = cobj->getBlendFunc(); blendfunc_to_luaval(tolua_S, ret); return 1; } @@ -8292,7 +8292,7 @@ int lua_cocos2dx_studio_Bone_getNodeToArmatureTransform(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_Bone_getNodeToArmatureTransform'", nullptr); return 0; } - cocos2d::Mat4 ret = cobj->getNodeToArmatureTransform(); + axis::Mat4 ret = cobj->getNodeToArmatureTransform(); mat4_to_luaval(tolua_S, ret); return 1; } @@ -9799,7 +9799,7 @@ int lua_cocos2dx_studio_ArmatureDataManager_getTextureDatas(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ArmatureDataManager_getTextureDatas'", nullptr); return 0; } - const cocos2d::Map& ret = cobj->getTextureDatas(); + const axis::Map& ret = cobj->getTextureDatas(); ccmap_string_key_to_luaval(tolua_S, ret); return 1; } @@ -10166,7 +10166,7 @@ int lua_cocos2dx_studio_ArmatureDataManager_getArmatureDatas(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ArmatureDataManager_getArmatureDatas'", nullptr); return 0; } - const cocos2d::Map& ret = cobj->getArmatureDatas(); + const axis::Map& ret = cobj->getArmatureDatas(); ccmap_string_key_to_luaval(tolua_S, ret); return 1; } @@ -10436,7 +10436,7 @@ int lua_cocos2dx_studio_ArmatureDataManager_getAnimationDatas(lua_State* tolua_S tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ArmatureDataManager_getAnimationDatas'", nullptr); return 0; } - const cocos2d::Map& ret = cobj->getAnimationDatas(); + const axis::Map& ret = cobj->getAnimationDatas(); ccmap_string_key_to_luaval(tolua_S, ret); return 1; } @@ -11367,7 +11367,7 @@ int lua_cocos2dx_studio_Armature_getBlendFunc(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_Armature_getBlendFunc'", nullptr); return 0; } - const cocos2d::BlendFunc& ret = cobj->getBlendFunc(); + const axis::BlendFunc& ret = cobj->getBlendFunc(); blendfunc_to_luaval(tolua_S, ret); return 1; } @@ -11658,7 +11658,7 @@ int lua_cocos2dx_studio_Armature_getOffsetPoints(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_Armature_getOffsetPoints'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getOffsetPoints(); + const axis::Vec2& ret = cobj->getOffsetPoints(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -11700,7 +11700,7 @@ int lua_cocos2dx_studio_Armature_setBlendFunc(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::BlendFunc arg0; + axis::BlendFunc arg0; ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "ccs.Armature:setBlendFunc"); if(!ok) @@ -11755,7 +11755,7 @@ int lua_cocos2dx_studio_Armature_getBoneDic(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_Armature_getBoneDic'", nullptr); return 0; } - const cocos2d::Map& ret = cobj->getBoneDic(); + const axis::Map& ret = cobj->getBoneDic(); ccmap_string_key_to_luaval(tolua_S, ret); return 1; } @@ -11990,7 +11990,7 @@ int lua_cocos2dx_studio_Skin_getNodeToWorldTransformAR(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_Skin_getNodeToWorldTransformAR'", nullptr); return 0; } - cocos2d::Mat4 ret = cobj->getNodeToWorldTransformAR(); + axis::Mat4 ret = cobj->getNodeToWorldTransformAR(); mat4_to_luaval(tolua_S, ret); return 1; } @@ -12879,8 +12879,8 @@ int lua_cocos2dx_studio_ComAttribute_createInstance(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ComAttribute_createInstance'", nullptr); return 0; } - cocos2d::Ref* ret = cocostudio::ComAttribute::createInstance(); - object_to_luaval(tolua_S, "cc.Ref",(cocos2d::Ref*)ret); + axis::Ref* ret = cocostudio::ComAttribute::createInstance(); + object_to_luaval(tolua_S, "cc.Ref",(axis::Ref*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccs.ComAttribute:createInstance",argc, 0); @@ -14367,8 +14367,8 @@ int lua_cocos2dx_studio_ComAudio_createInstance(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ComAudio_createInstance'", nullptr); return 0; } - cocos2d::Ref* ret = cocostudio::ComAudio::createInstance(); - object_to_luaval(tolua_S, "cc.Ref",(cocos2d::Ref*)ret); + axis::Ref* ret = cocostudio::ComAudio::createInstance(); + object_to_luaval(tolua_S, "cc.Ref",(axis::Ref*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccs.ComAudio:createInstance",argc, 0); @@ -14484,8 +14484,8 @@ int lua_cocos2dx_studio_ComController_createInstance(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ComController_createInstance'", nullptr); return 0; } - cocos2d::Ref* ret = cocostudio::ComController::createInstance(); - object_to_luaval(tolua_S, "cc.Ref",(cocos2d::Ref*)ret); + axis::Ref* ret = cocostudio::ComController::createInstance(); + object_to_luaval(tolua_S, "cc.Ref",(axis::Ref*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccs.ComController:createInstance",argc, 0); @@ -14583,9 +14583,9 @@ int lua_cocos2dx_studio_ComRender_setNode(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Node* arg0; + axis::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "ccs.ComRender:setNode"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "ccs.ComRender:setNode"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ComRender_setNode'", nullptr); @@ -14638,8 +14638,8 @@ int lua_cocos2dx_studio_ComRender_getNode(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ComRender_getNode'", nullptr); return 0; } - cocos2d::Node* ret = cobj->getNode(); - object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + axis::Node* ret = cobj->getNode(); + object_to_luaval(tolua_S, "cc.Node",(axis::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ComRender:getNode",argc, 0); @@ -14670,8 +14670,8 @@ int lua_cocos2dx_studio_ComRender_create(lua_State* tolua_S) { if (argc == 2) { - cocos2d::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "ccs.ComRender:create"); + axis::Node* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "ccs.ComRender:create"); if (!ok) { break; } const char* arg1; std::string arg1_tmp; ok &= luaval_to_std_string(tolua_S, 3, &arg1_tmp, "ccs.ComRender:create"); arg1 = arg1_tmp.c_str(); @@ -14722,8 +14722,8 @@ int lua_cocos2dx_studio_ComRender_createInstance(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ComRender_createInstance'", nullptr); return 0; } - cocos2d::Ref* ret = cocostudio::ComRender::createInstance(); - object_to_luaval(tolua_S, "cc.Ref",(cocos2d::Ref*)ret); + axis::Ref* ret = cocostudio::ComRender::createInstance(); + object_to_luaval(tolua_S, "cc.Ref",(axis::Ref*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccs.ComRender:createInstance",argc, 0); @@ -14843,8 +14843,8 @@ int lua_cocos2dx_studio_GUIReader_widgetFromJsonFile(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_GUIReader_widgetFromJsonFile'", nullptr); return 0; } - cocos2d::ui::Widget* ret = cobj->widgetFromJsonFile(arg0); - object_to_luaval(tolua_S, "ccui.Widget",(cocos2d::ui::Widget*)ret); + axis::ui::Widget* ret = cobj->widgetFromJsonFile(arg0); + object_to_luaval(tolua_S, "ccui.Widget",(axis::ui::Widget*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.GUIReader:widgetFromJsonFile",argc, 1); @@ -14940,8 +14940,8 @@ int lua_cocos2dx_studio_GUIReader_widgetFromBinaryFile(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_GUIReader_widgetFromBinaryFile'", nullptr); return 0; } - cocos2d::ui::Widget* ret = cobj->widgetFromBinaryFile(arg0); - object_to_luaval(tolua_S, "ccui.Widget",(cocos2d::ui::Widget*)ret); + axis::ui::Widget* ret = cobj->widgetFromBinaryFile(arg0); + object_to_luaval(tolua_S, "ccui.Widget",(axis::ui::Widget*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.GUIReader:widgetFromBinaryFile",argc, 1); @@ -15126,7 +15126,7 @@ int lua_cocos2dx_studio_SceneReader_setTarget(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - std::function arg0; + std::function arg0; do { // Lambda binding for lua is not supported. @@ -15188,8 +15188,8 @@ int lua_cocos2dx_studio_SceneReader_createNodeWithSceneFile(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_SceneReader_createNodeWithSceneFile'", nullptr); return 0; } - cocos2d::Node* ret = cobj->createNodeWithSceneFile(arg0); - object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + axis::Node* ret = cobj->createNodeWithSceneFile(arg0); + object_to_luaval(tolua_S, "cc.Node",(axis::Node*)ret); return 1; } if (argc == 2) @@ -15205,8 +15205,8 @@ int lua_cocos2dx_studio_SceneReader_createNodeWithSceneFile(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_SceneReader_createNodeWithSceneFile'", nullptr); return 0; } - cocos2d::Node* ret = cobj->createNodeWithSceneFile(arg0, arg1); - object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + axis::Node* ret = cobj->createNodeWithSceneFile(arg0, arg1); + object_to_luaval(tolua_S, "cc.Node",(axis::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.SceneReader:createNodeWithSceneFile",argc, 1); @@ -15302,8 +15302,8 @@ int lua_cocos2dx_studio_SceneReader_getNodeByTag(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_SceneReader_getNodeByTag'", nullptr); return 0; } - cocos2d::Node* ret = cobj->getNodeByTag(arg0); - object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + axis::Node* ret = cobj->getNodeByTag(arg0); + object_to_luaval(tolua_S, "cc.Node",(axis::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.SceneReader:getNodeByTag",argc, 1); @@ -16120,7 +16120,7 @@ int lua_cocos2dx_studio_Frame_setTweenType(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::tweenfunc::TweenType arg0; + axis::tweenfunc::TweenType arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccs.Frame:setTweenType"); if(!ok) @@ -16170,9 +16170,9 @@ int lua_cocos2dx_studio_Frame_setNode(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Node* arg0; + axis::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "ccs.Frame:setNode"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "ccs.Frame:setNode"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_Frame_setNode'", nullptr); @@ -16757,8 +16757,8 @@ int lua_cocos2dx_studio_Frame_getNode(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_Frame_getNode'", nullptr); return 0; } - cocos2d::Node* ret = cobj->getNode(); - object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + axis::Node* ret = cobj->getNode(); + object_to_luaval(tolua_S, "cc.Node",(axis::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Frame:getNode",argc, 0); @@ -17882,7 +17882,7 @@ int lua_cocos2dx_studio_PositionFrame_setPosition(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Point arg0; + axis::Point arg0; ok &= luaval_to_point(tolua_S, 2, &arg0, "ccs.PositionFrame:setPosition"); if(!ok) @@ -18037,7 +18037,7 @@ int lua_cocos2dx_studio_PositionFrame_getPosition(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_PositionFrame_getPosition'", nullptr); return 0; } - cocos2d::Point ret = cobj->getPosition(); + axis::Point ret = cobj->getPosition(); point_to_luaval(tolua_S, ret); return 1; } @@ -18518,7 +18518,7 @@ int lua_cocos2dx_studio_AnchorPointFrame_setAnchorPoint(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Point arg0; + axis::Point arg0; ok &= luaval_to_point(tolua_S, 2, &arg0, "ccs.AnchorPointFrame:setAnchorPoint"); if(!ok) @@ -18573,7 +18573,7 @@ int lua_cocos2dx_studio_AnchorPointFrame_getAnchorPoint(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_AnchorPointFrame_getAnchorPoint'", nullptr); return 0; } - cocos2d::Point ret = cobj->getAnchorPoint(); + axis::Point ret = cobj->getAnchorPoint(); point_to_luaval(tolua_S, ret); return 1; } @@ -19304,7 +19304,7 @@ int lua_cocos2dx_studio_ColorFrame_getColor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ColorFrame_getColor'", nullptr); return 0; } - cocos2d::Color3B ret = cobj->getColor(); + axis::Color3B ret = cobj->getColor(); color3b_to_luaval(tolua_S, ret); return 1; } @@ -19346,7 +19346,7 @@ int lua_cocos2dx_studio_ColorFrame_setColor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Color3B arg0; + axis::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "ccs.ColorFrame:setColor"); if(!ok) @@ -20116,7 +20116,7 @@ int lua_cocos2dx_studio_BlendFuncFrame_getBlendFunc(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_BlendFuncFrame_getBlendFunc'", nullptr); return 0; } - cocos2d::BlendFunc ret = cobj->getBlendFunc(); + axis::BlendFunc ret = cobj->getBlendFunc(); blendfunc_to_luaval(tolua_S, ret); return 1; } @@ -20158,7 +20158,7 @@ int lua_cocos2dx_studio_BlendFuncFrame_setBlendFunc(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::BlendFunc arg0; + axis::BlendFunc arg0; ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "ccs.BlendFuncFrame:setBlendFunc"); if(!ok) @@ -20590,9 +20590,9 @@ int lua_cocos2dx_studio_Timeline_setNode(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Node* arg0; + axis::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "ccs.Timeline:setNode"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "ccs.Timeline:setNode"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_Timeline_setNode'", nullptr); @@ -20845,7 +20845,7 @@ int lua_cocos2dx_studio_Timeline_getFrames(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_Timeline_getFrames'", nullptr); return 0; } - const cocos2d::Vector& ret = cobj->getFrames(); + const axis::Vector& ret = cobj->getFrames(); ccvector_to_luaval(tolua_S, ret); return 1; } @@ -20939,8 +20939,8 @@ int lua_cocos2dx_studio_Timeline_getNode(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_Timeline_getNode'", nullptr); return 0; } - cocos2d::Node* ret = cobj->getNode(); - object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + axis::Node* ret = cobj->getNode(); + object_to_luaval(tolua_S, "cc.Node",(axis::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.Timeline:getNode",argc, 0); @@ -22025,7 +22025,7 @@ int lua_cocos2dx_studio_ActionTimeline_getTimelines(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ActionTimeline_getTimelines'", nullptr); return 0; } - const cocos2d::Vector& ret = cobj->getTimelines(); + const axis::Vector& ret = cobj->getTimelines(); ccvector_to_luaval(tolua_S, ret); return 1; } @@ -23196,8 +23196,8 @@ int lua_cocos2dx_studio_ActionTimelineNode_getRoot(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ActionTimelineNode_getRoot'", nullptr); return 0; } - cocos2d::Node* ret = cobj->getRoot(); - object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + axis::Node* ret = cobj->getRoot(); + object_to_luaval(tolua_S, "cc.Node",(axis::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccs.ActionTimelineNode:getRoot",argc, 0); @@ -23335,10 +23335,10 @@ int lua_cocos2dx_studio_ActionTimelineNode_init(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::Node* arg0; + axis::Node* arg0; cocostudio::timeline::ActionTimeline* arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "ccs.ActionTimelineNode:init"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "ccs.ActionTimelineNode:init"); ok &= luaval_to_object(tolua_S, 3, "ccs.ActionTimeline",&arg1, "ccs.ActionTimelineNode:init"); if(!ok) @@ -23388,9 +23388,9 @@ int lua_cocos2dx_studio_ActionTimelineNode_setRoot(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Node* arg0; + axis::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "ccs.ActionTimelineNode:setRoot"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "ccs.ActionTimelineNode:setRoot"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ActionTimelineNode_setRoot'", nullptr); @@ -23427,9 +23427,9 @@ int lua_cocos2dx_studio_ActionTimelineNode_create(lua_State* tolua_S) if (argc == 2) { - cocos2d::Node* arg0; + axis::Node* arg0; cocostudio::timeline::ActionTimeline* arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "ccs.ActionTimelineNode:create"); + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "ccs.ActionTimelineNode:create"); ok &= luaval_to_object(tolua_S, 3, "ccs.ActionTimeline",&arg1, "ccs.ActionTimelineNode:create"); if(!ok) { @@ -23581,7 +23581,7 @@ int lua_cocos2dx_studio_BoneNode_getChildBones(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 0) { - cocos2d::Vector& ret = cobj->getChildBones(); + axis::Vector& ret = cobj->getChildBones(); ccvector_to_luaval(tolua_S, ret); return 1; } @@ -23589,7 +23589,7 @@ int lua_cocos2dx_studio_BoneNode_getChildBones(lua_State* tolua_S) ok = true; do{ if (argc == 0) { - const cocos2d::Vector& ret = cobj->getChildBones(); + const axis::Vector& ret = cobj->getChildBones(); ccvector_to_luaval(tolua_S, ret); return 1; } @@ -23638,7 +23638,7 @@ int lua_cocos2dx_studio_BoneNode_getBlendFunc(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_BoneNode_getBlendFunc'", nullptr); return 0; } - const cocos2d::BlendFunc& ret = cobj->getBlendFunc(); + const axis::BlendFunc& ret = cobj->getBlendFunc(); blendfunc_to_luaval(tolua_S, ret); return 1; } @@ -23685,7 +23685,7 @@ int lua_cocos2dx_studio_BoneNode_getAllSubBones(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_BoneNode_getAllSubBones'", nullptr); return 0; } - cocos2d::Vector ret = cobj->getAllSubBones(); + axis::Vector ret = cobj->getAllSubBones(); ccvector_to_luaval(tolua_S, ret); return 1; } @@ -23727,7 +23727,7 @@ int lua_cocos2dx_studio_BoneNode_setBlendFunc(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::BlendFunc arg0; + axis::BlendFunc arg0; ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "ccs.BoneNode:setBlendFunc"); if(!ok) @@ -23832,7 +23832,7 @@ int lua_cocos2dx_studio_BoneNode_getVisibleSkinsRect(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_BoneNode_getVisibleSkinsRect'", nullptr); return 0; } - cocos2d::Rect ret = cobj->getVisibleSkinsRect(); + axis::Rect ret = cobj->getVisibleSkinsRect(); rect_to_luaval(tolua_S, ret); return 1; } @@ -23879,7 +23879,7 @@ int lua_cocos2dx_studio_BoneNode_getAllSubSkins(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_BoneNode_getAllSubSkins'", nullptr); return 0; } - cocos2d::Vector ret = cobj->getAllSubSkins(); + axis::Vector ret = cobj->getAllSubSkins(); ccvector_to_luaval(tolua_S, ret); return 1; } @@ -23932,8 +23932,8 @@ int lua_cocos2dx_studio_BoneNode_displaySkin(lua_State* tolua_S) ok = true; do{ if (argc == 2) { - cocos2d::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "ccs.BoneNode:displaySkin"); + axis::Node* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "ccs.BoneNode:displaySkin"); if (!ok) { break; } bool arg1; @@ -24026,8 +24026,8 @@ int lua_cocos2dx_studio_BoneNode_addSkin(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 3) { - cocos2d::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "ccs.BoneNode:addSkin"); + axis::Node* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "ccs.BoneNode:addSkin"); if (!ok) { break; } bool arg1; @@ -24046,8 +24046,8 @@ int lua_cocos2dx_studio_BoneNode_addSkin(lua_State* tolua_S) ok = true; do{ if (argc == 2) { - cocos2d::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "ccs.BoneNode:addSkin"); + axis::Node* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "ccs.BoneNode:addSkin"); if (!ok) { break; } bool arg1; @@ -24190,7 +24190,7 @@ int lua_cocos2dx_studio_BoneNode_getSkins(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 0) { - cocos2d::Vector& ret = cobj->getSkins(); + axis::Vector& ret = cobj->getSkins(); ccvector_to_luaval(tolua_S, ret); return 1; } @@ -24198,7 +24198,7 @@ int lua_cocos2dx_studio_BoneNode_getSkins(lua_State* tolua_S) ok = true; do{ if (argc == 0) { - const cocos2d::Vector& ret = cobj->getSkins(); + const axis::Vector& ret = cobj->getSkins(); ccvector_to_luaval(tolua_S, ret); return 1; } @@ -24247,7 +24247,7 @@ int lua_cocos2dx_studio_BoneNode_getVisibleSkins(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_BoneNode_getVisibleSkins'", nullptr); return 0; } - cocos2d::Vector ret = cobj->getVisibleSkins(); + axis::Vector ret = cobj->getVisibleSkins(); ccvector_to_luaval(tolua_S, ret); return 1; } @@ -24386,7 +24386,7 @@ int lua_cocos2dx_studio_BoneNode_setDebugDrawColor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Color4F arg0; + axis::Color4F arg0; ok &=luaval_to_color4f(tolua_S, 2, &arg0, "ccs.BoneNode:setDebugDrawColor"); if(!ok) @@ -24441,7 +24441,7 @@ int lua_cocos2dx_studio_BoneNode_getDebugDrawColor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_BoneNode_getDebugDrawColor'", nullptr); return 0; } - cocos2d::Color4F ret = cobj->getDebugDrawColor(); + axis::Color4F ret = cobj->getDebugDrawColor(); color4f_to_luaval(tolua_S, ret); return 1; } @@ -24768,7 +24768,7 @@ int lua_cocos2dx_studio_SkeletonNode_getAllSubBonesMap(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_SkeletonNode_getAllSubBonesMap'", nullptr); return 0; } - const cocos2d::Map& ret = cobj->getAllSubBonesMap(); + const axis::Map& ret = cobj->getAllSubBonesMap(); ccmap_string_key_to_luaval(tolua_S, ret); return 1; } @@ -25128,8 +25128,8 @@ int lua_cocos2dx_studio_ComExtensionData_createInstance(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_studio_ComExtensionData_createInstance'", nullptr); return 0; } - cocos2d::Ref* ret = cocostudio::ComExtensionData::createInstance(); - object_to_luaval(tolua_S, "cc.Ref",(cocos2d::Ref*)ret); + axis::Ref* ret = cocostudio::ComExtensionData::createInstance(); + object_to_luaval(tolua_S, "cc.Ref",(axis::Ref*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccs.ComExtensionData:createInstance",argc, 0); diff --git a/extensions/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.cpp b/extensions/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.cpp index f328500f00..cb4a213650 100644 --- a/extensions/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.cpp +++ b/extensions/scripting/lua-bindings/auto/lua_cocos2dx_ui_auto.cpp @@ -6,7 +6,7 @@ int lua_cocos2dx_ui_LayoutParameter_clone(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutParameter* cobj = nullptr; + axis::ui::LayoutParameter* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -18,7 +18,7 @@ int lua_cocos2dx_ui_LayoutParameter_clone(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutParameter",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutParameter*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutParameter*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -36,8 +36,8 @@ int lua_cocos2dx_ui_LayoutParameter_clone(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_LayoutParameter_clone'", nullptr); return 0; } - cocos2d::ui::LayoutParameter* ret = cobj->clone(); - object_to_luaval(tolua_S, "ccui.LayoutParameter",(cocos2d::ui::LayoutParameter*)ret); + axis::ui::LayoutParameter* ret = cobj->clone(); + object_to_luaval(tolua_S, "ccui.LayoutParameter",(axis::ui::LayoutParameter*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.LayoutParameter:clone",argc, 0); @@ -53,7 +53,7 @@ int lua_cocos2dx_ui_LayoutParameter_clone(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutParameter_getLayoutType(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutParameter* cobj = nullptr; + axis::ui::LayoutParameter* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -65,7 +65,7 @@ int lua_cocos2dx_ui_LayoutParameter_getLayoutType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutParameter",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutParameter*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutParameter*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -100,7 +100,7 @@ int lua_cocos2dx_ui_LayoutParameter_getLayoutType(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutParameter_createCloneInstance(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutParameter* cobj = nullptr; + axis::ui::LayoutParameter* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -112,7 +112,7 @@ int lua_cocos2dx_ui_LayoutParameter_createCloneInstance(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutParameter",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutParameter*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutParameter*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -130,8 +130,8 @@ int lua_cocos2dx_ui_LayoutParameter_createCloneInstance(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_LayoutParameter_createCloneInstance'", nullptr); return 0; } - cocos2d::ui::LayoutParameter* ret = cobj->createCloneInstance(); - object_to_luaval(tolua_S, "ccui.LayoutParameter",(cocos2d::ui::LayoutParameter*)ret); + axis::ui::LayoutParameter* ret = cobj->createCloneInstance(); + object_to_luaval(tolua_S, "ccui.LayoutParameter",(axis::ui::LayoutParameter*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.LayoutParameter:createCloneInstance",argc, 0); @@ -147,7 +147,7 @@ int lua_cocos2dx_ui_LayoutParameter_createCloneInstance(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutParameter_copyProperties(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutParameter* cobj = nullptr; + axis::ui::LayoutParameter* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -159,7 +159,7 @@ int lua_cocos2dx_ui_LayoutParameter_copyProperties(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutParameter",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutParameter*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutParameter*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -172,9 +172,9 @@ int lua_cocos2dx_ui_LayoutParameter_copyProperties(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ui::LayoutParameter* arg0; + axis::ui::LayoutParameter* arg0; - ok &= luaval_to_object(tolua_S, 2, "ccui.LayoutParameter",&arg0, "ccui.LayoutParameter:copyProperties"); + ok &= luaval_to_object(tolua_S, 2, "ccui.LayoutParameter",&arg0, "ccui.LayoutParameter:copyProperties"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_LayoutParameter_copyProperties'", nullptr); @@ -216,8 +216,8 @@ int lua_cocos2dx_ui_LayoutParameter_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_LayoutParameter_create'", nullptr); return 0; } - cocos2d::ui::LayoutParameter* ret = cocos2d::ui::LayoutParameter::create(); - object_to_luaval(tolua_S, "ccui.LayoutParameter",(cocos2d::ui::LayoutParameter*)ret); + axis::ui::LayoutParameter* ret = axis::ui::LayoutParameter::create(); + object_to_luaval(tolua_S, "ccui.LayoutParameter",(axis::ui::LayoutParameter*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.LayoutParameter:create",argc, 0); @@ -231,7 +231,7 @@ int lua_cocos2dx_ui_LayoutParameter_create(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutParameter_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutParameter* cobj = nullptr; + axis::ui::LayoutParameter* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -248,7 +248,7 @@ int lua_cocos2dx_ui_LayoutParameter_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_LayoutParameter_constructor'", nullptr); return 0; } - cobj = new cocos2d::ui::LayoutParameter(); + cobj = new axis::ui::LayoutParameter(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -284,7 +284,7 @@ int lua_register_cocos2dx_ui_LayoutParameter(lua_State* tolua_S) tolua_function(tolua_S,"copyProperties",lua_cocos2dx_ui_LayoutParameter_copyProperties); tolua_function(tolua_S,"create", lua_cocos2dx_ui_LayoutParameter_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ui::LayoutParameter).name(); // rtti is literal storage + auto typeName = typeid(axis::ui::LayoutParameter).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccui.LayoutParameter"; g_typeCast[typeName] = "ccui.LayoutParameter"; return 1; @@ -293,7 +293,7 @@ int lua_register_cocos2dx_ui_LayoutParameter(lua_State* tolua_S) int lua_cocos2dx_ui_LinearLayoutParameter_setGravity(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LinearLayoutParameter* cobj = nullptr; + axis::ui::LinearLayoutParameter* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -305,7 +305,7 @@ int lua_cocos2dx_ui_LinearLayoutParameter_setGravity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LinearLayoutParameter",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LinearLayoutParameter*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LinearLayoutParameter*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -318,7 +318,7 @@ int lua_cocos2dx_ui_LinearLayoutParameter_setGravity(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ui::LinearLayoutParameter::LinearGravity arg0; + axis::ui::LinearLayoutParameter::LinearGravity arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.LinearLayoutParameter:setGravity"); if(!ok) @@ -343,7 +343,7 @@ int lua_cocos2dx_ui_LinearLayoutParameter_setGravity(lua_State* tolua_S) int lua_cocos2dx_ui_LinearLayoutParameter_getGravity(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LinearLayoutParameter* cobj = nullptr; + axis::ui::LinearLayoutParameter* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -355,7 +355,7 @@ int lua_cocos2dx_ui_LinearLayoutParameter_getGravity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LinearLayoutParameter",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LinearLayoutParameter*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LinearLayoutParameter*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -409,8 +409,8 @@ int lua_cocos2dx_ui_LinearLayoutParameter_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_LinearLayoutParameter_create'", nullptr); return 0; } - cocos2d::ui::LinearLayoutParameter* ret = cocos2d::ui::LinearLayoutParameter::create(); - object_to_luaval(tolua_S, "ccui.LinearLayoutParameter",(cocos2d::ui::LinearLayoutParameter*)ret); + axis::ui::LinearLayoutParameter* ret = axis::ui::LinearLayoutParameter::create(); + object_to_luaval(tolua_S, "ccui.LinearLayoutParameter",(axis::ui::LinearLayoutParameter*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.LinearLayoutParameter:create",argc, 0); @@ -424,7 +424,7 @@ int lua_cocos2dx_ui_LinearLayoutParameter_create(lua_State* tolua_S) int lua_cocos2dx_ui_LinearLayoutParameter_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LinearLayoutParameter* cobj = nullptr; + axis::ui::LinearLayoutParameter* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -441,7 +441,7 @@ int lua_cocos2dx_ui_LinearLayoutParameter_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_LinearLayoutParameter_constructor'", nullptr); return 0; } - cobj = new cocos2d::ui::LinearLayoutParameter(); + cobj = new axis::ui::LinearLayoutParameter(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -475,7 +475,7 @@ int lua_register_cocos2dx_ui_LinearLayoutParameter(lua_State* tolua_S) tolua_function(tolua_S,"getGravity",lua_cocos2dx_ui_LinearLayoutParameter_getGravity); tolua_function(tolua_S,"create", lua_cocos2dx_ui_LinearLayoutParameter_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ui::LinearLayoutParameter).name(); // rtti is literal storage + auto typeName = typeid(axis::ui::LinearLayoutParameter).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccui.LinearLayoutParameter"; g_typeCast[typeName] = "ccui.LinearLayoutParameter"; return 1; @@ -484,7 +484,7 @@ int lua_register_cocos2dx_ui_LinearLayoutParameter(lua_State* tolua_S) int lua_cocos2dx_ui_RelativeLayoutParameter_setAlign(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RelativeLayoutParameter* cobj = nullptr; + axis::ui::RelativeLayoutParameter* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -496,7 +496,7 @@ int lua_cocos2dx_ui_RelativeLayoutParameter_setAlign(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RelativeLayoutParameter",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RelativeLayoutParameter*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RelativeLayoutParameter*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -509,7 +509,7 @@ int lua_cocos2dx_ui_RelativeLayoutParameter_setAlign(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ui::RelativeLayoutParameter::RelativeAlign arg0; + axis::ui::RelativeLayoutParameter::RelativeAlign arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.RelativeLayoutParameter:setAlign"); if(!ok) @@ -534,7 +534,7 @@ int lua_cocos2dx_ui_RelativeLayoutParameter_setAlign(lua_State* tolua_S) int lua_cocos2dx_ui_RelativeLayoutParameter_setRelativeToWidgetName(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RelativeLayoutParameter* cobj = nullptr; + axis::ui::RelativeLayoutParameter* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -546,7 +546,7 @@ int lua_cocos2dx_ui_RelativeLayoutParameter_setRelativeToWidgetName(lua_State* t if (!tolua_isusertype(tolua_S,1,"ccui.RelativeLayoutParameter",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RelativeLayoutParameter*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RelativeLayoutParameter*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -584,7 +584,7 @@ int lua_cocos2dx_ui_RelativeLayoutParameter_setRelativeToWidgetName(lua_State* t int lua_cocos2dx_ui_RelativeLayoutParameter_getRelativeName(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RelativeLayoutParameter* cobj = nullptr; + axis::ui::RelativeLayoutParameter* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -596,7 +596,7 @@ int lua_cocos2dx_ui_RelativeLayoutParameter_getRelativeName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RelativeLayoutParameter",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RelativeLayoutParameter*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RelativeLayoutParameter*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -631,7 +631,7 @@ int lua_cocos2dx_ui_RelativeLayoutParameter_getRelativeName(lua_State* tolua_S) int lua_cocos2dx_ui_RelativeLayoutParameter_getRelativeToWidgetName(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RelativeLayoutParameter* cobj = nullptr; + axis::ui::RelativeLayoutParameter* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -643,7 +643,7 @@ int lua_cocos2dx_ui_RelativeLayoutParameter_getRelativeToWidgetName(lua_State* t if (!tolua_isusertype(tolua_S,1,"ccui.RelativeLayoutParameter",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RelativeLayoutParameter*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RelativeLayoutParameter*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -678,7 +678,7 @@ int lua_cocos2dx_ui_RelativeLayoutParameter_getRelativeToWidgetName(lua_State* t int lua_cocos2dx_ui_RelativeLayoutParameter_setRelativeName(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RelativeLayoutParameter* cobj = nullptr; + axis::ui::RelativeLayoutParameter* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -690,7 +690,7 @@ int lua_cocos2dx_ui_RelativeLayoutParameter_setRelativeName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RelativeLayoutParameter",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RelativeLayoutParameter*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RelativeLayoutParameter*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -728,7 +728,7 @@ int lua_cocos2dx_ui_RelativeLayoutParameter_setRelativeName(lua_State* tolua_S) int lua_cocos2dx_ui_RelativeLayoutParameter_getAlign(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RelativeLayoutParameter* cobj = nullptr; + axis::ui::RelativeLayoutParameter* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -740,7 +740,7 @@ int lua_cocos2dx_ui_RelativeLayoutParameter_getAlign(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RelativeLayoutParameter",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RelativeLayoutParameter*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RelativeLayoutParameter*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -794,8 +794,8 @@ int lua_cocos2dx_ui_RelativeLayoutParameter_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RelativeLayoutParameter_create'", nullptr); return 0; } - cocos2d::ui::RelativeLayoutParameter* ret = cocos2d::ui::RelativeLayoutParameter::create(); - object_to_luaval(tolua_S, "ccui.RelativeLayoutParameter",(cocos2d::ui::RelativeLayoutParameter*)ret); + axis::ui::RelativeLayoutParameter* ret = axis::ui::RelativeLayoutParameter::create(); + object_to_luaval(tolua_S, "ccui.RelativeLayoutParameter",(axis::ui::RelativeLayoutParameter*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.RelativeLayoutParameter:create",argc, 0); @@ -809,7 +809,7 @@ int lua_cocos2dx_ui_RelativeLayoutParameter_create(lua_State* tolua_S) int lua_cocos2dx_ui_RelativeLayoutParameter_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RelativeLayoutParameter* cobj = nullptr; + axis::ui::RelativeLayoutParameter* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -826,7 +826,7 @@ int lua_cocos2dx_ui_RelativeLayoutParameter_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RelativeLayoutParameter_constructor'", nullptr); return 0; } - cobj = new cocos2d::ui::RelativeLayoutParameter(); + cobj = new axis::ui::RelativeLayoutParameter(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -864,7 +864,7 @@ int lua_register_cocos2dx_ui_RelativeLayoutParameter(lua_State* tolua_S) tolua_function(tolua_S,"getAlign",lua_cocos2dx_ui_RelativeLayoutParameter_getAlign); tolua_function(tolua_S,"create", lua_cocos2dx_ui_RelativeLayoutParameter_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ui::RelativeLayoutParameter).name(); // rtti is literal storage + auto typeName = typeid(axis::ui::RelativeLayoutParameter).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccui.RelativeLayoutParameter"; g_typeCast[typeName] = "ccui.RelativeLayoutParameter"; return 1; @@ -873,7 +873,7 @@ int lua_register_cocos2dx_ui_RelativeLayoutParameter(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_setLayoutComponentEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -885,7 +885,7 @@ int lua_cocos2dx_ui_Widget_setLayoutComponentEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -923,7 +923,7 @@ int lua_cocos2dx_ui_Widget_setLayoutComponentEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_setSizePercent(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -935,7 +935,7 @@ int lua_cocos2dx_ui_Widget_setSizePercent(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -948,7 +948,7 @@ int lua_cocos2dx_ui_Widget_setSizePercent(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ccui.Widget:setSizePercent"); if(!ok) @@ -973,7 +973,7 @@ int lua_cocos2dx_ui_Widget_setSizePercent(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_getCustomSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -985,7 +985,7 @@ int lua_cocos2dx_ui_Widget_getCustomSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1003,7 +1003,7 @@ int lua_cocos2dx_ui_Widget_getCustomSize(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Widget_getCustomSize'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getCustomSize(); + const axis::Vec2& ret = cobj->getCustomSize(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -1020,7 +1020,7 @@ int lua_cocos2dx_ui_Widget_getCustomSize(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_getLeftBoundary(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1032,7 +1032,7 @@ int lua_cocos2dx_ui_Widget_getLeftBoundary(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1067,7 +1067,7 @@ int lua_cocos2dx_ui_Widget_getLeftBoundary(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_setFlippedX(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1079,7 +1079,7 @@ int lua_cocos2dx_ui_Widget_setFlippedX(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1117,7 +1117,7 @@ int lua_cocos2dx_ui_Widget_setFlippedX(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_setCallbackName(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1129,7 +1129,7 @@ int lua_cocos2dx_ui_Widget_setCallbackName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1167,7 +1167,7 @@ int lua_cocos2dx_ui_Widget_setCallbackName(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_getVirtualRenderer(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1179,7 +1179,7 @@ int lua_cocos2dx_ui_Widget_getVirtualRenderer(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1197,8 +1197,8 @@ int lua_cocos2dx_ui_Widget_getVirtualRenderer(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Widget_getVirtualRenderer'", nullptr); return 0; } - cocos2d::Node* ret = cobj->getVirtualRenderer(); - object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + axis::Node* ret = cobj->getVirtualRenderer(); + object_to_luaval(tolua_S, "cc.Node",(axis::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.Widget:getVirtualRenderer",argc, 0); @@ -1214,7 +1214,7 @@ int lua_cocos2dx_ui_Widget_getVirtualRenderer(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_setPropagateTouchEvents(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1226,7 +1226,7 @@ int lua_cocos2dx_ui_Widget_setPropagateTouchEvents(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1264,7 +1264,7 @@ int lua_cocos2dx_ui_Widget_setPropagateTouchEvents(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_isUnifySizeEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1276,7 +1276,7 @@ int lua_cocos2dx_ui_Widget_isUnifySizeEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1311,7 +1311,7 @@ int lua_cocos2dx_ui_Widget_isUnifySizeEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_getSizePercent(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1323,7 +1323,7 @@ int lua_cocos2dx_ui_Widget_getSizePercent(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1341,7 +1341,7 @@ int lua_cocos2dx_ui_Widget_getSizePercent(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Widget_getSizePercent'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getSizePercent(); + const axis::Vec2& ret = cobj->getSizePercent(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -1358,7 +1358,7 @@ int lua_cocos2dx_ui_Widget_getSizePercent(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_setPositionPercent(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1370,7 +1370,7 @@ int lua_cocos2dx_ui_Widget_setPositionPercent(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1383,7 +1383,7 @@ int lua_cocos2dx_ui_Widget_setPositionPercent(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ccui.Widget:setPositionPercent"); if(!ok) @@ -1408,7 +1408,7 @@ int lua_cocos2dx_ui_Widget_setPositionPercent(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_setSwallowTouches(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1420,7 +1420,7 @@ int lua_cocos2dx_ui_Widget_setSwallowTouches(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1458,7 +1458,7 @@ int lua_cocos2dx_ui_Widget_setSwallowTouches(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_getLayoutSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1470,7 +1470,7 @@ int lua_cocos2dx_ui_Widget_getLayoutSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1488,7 +1488,7 @@ int lua_cocos2dx_ui_Widget_getLayoutSize(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Widget_getLayoutSize'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getLayoutSize(); + const axis::Vec2& ret = cobj->getLayoutSize(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -1505,7 +1505,7 @@ int lua_cocos2dx_ui_Widget_getLayoutSize(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_setHighlighted(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1517,7 +1517,7 @@ int lua_cocos2dx_ui_Widget_setHighlighted(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1555,7 +1555,7 @@ int lua_cocos2dx_ui_Widget_setHighlighted(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_setPositionType(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1567,7 +1567,7 @@ int lua_cocos2dx_ui_Widget_setPositionType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1580,7 +1580,7 @@ int lua_cocos2dx_ui_Widget_setPositionType(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ui::Widget::PositionType arg0; + axis::ui::Widget::PositionType arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.Widget:setPositionType"); if(!ok) @@ -1605,7 +1605,7 @@ int lua_cocos2dx_ui_Widget_setPositionType(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_isIgnoreContentAdaptWithSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1617,7 +1617,7 @@ int lua_cocos2dx_ui_Widget_isIgnoreContentAdaptWithSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1652,7 +1652,7 @@ int lua_cocos2dx_ui_Widget_isIgnoreContentAdaptWithSize(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_getVirtualRendererSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1664,7 +1664,7 @@ int lua_cocos2dx_ui_Widget_getVirtualRendererSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1682,7 +1682,7 @@ int lua_cocos2dx_ui_Widget_getVirtualRendererSize(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Widget_getVirtualRendererSize'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getVirtualRendererSize(); + axis::Vec2 ret = cobj->getVirtualRendererSize(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -1699,7 +1699,7 @@ int lua_cocos2dx_ui_Widget_getVirtualRendererSize(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_isHighlighted(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1711,7 +1711,7 @@ int lua_cocos2dx_ui_Widget_isHighlighted(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1746,7 +1746,7 @@ int lua_cocos2dx_ui_Widget_isHighlighted(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_getLayoutParameter(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1758,7 +1758,7 @@ int lua_cocos2dx_ui_Widget_getLayoutParameter(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1776,8 +1776,8 @@ int lua_cocos2dx_ui_Widget_getLayoutParameter(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Widget_getLayoutParameter'", nullptr); return 0; } - cocos2d::ui::LayoutParameter* ret = cobj->getLayoutParameter(); - object_to_luaval(tolua_S, "ccui.LayoutParameter",(cocos2d::ui::LayoutParameter*)ret); + axis::ui::LayoutParameter* ret = cobj->getLayoutParameter(); + object_to_luaval(tolua_S, "ccui.LayoutParameter",(axis::ui::LayoutParameter*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.Widget:getLayoutParameter",argc, 0); @@ -1793,7 +1793,7 @@ int lua_cocos2dx_ui_Widget_getLayoutParameter(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_getPositionType(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1805,7 +1805,7 @@ int lua_cocos2dx_ui_Widget_getPositionType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1840,7 +1840,7 @@ int lua_cocos2dx_ui_Widget_getPositionType(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_getTopBoundary(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1852,7 +1852,7 @@ int lua_cocos2dx_ui_Widget_getTopBoundary(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1887,7 +1887,7 @@ int lua_cocos2dx_ui_Widget_getTopBoundary(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_ignoreContentAdaptWithSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1899,7 +1899,7 @@ int lua_cocos2dx_ui_Widget_ignoreContentAdaptWithSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1937,7 +1937,7 @@ int lua_cocos2dx_ui_Widget_ignoreContentAdaptWithSize(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_findNextFocusedWidget(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1949,7 +1949,7 @@ int lua_cocos2dx_ui_Widget_findNextFocusedWidget(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1962,19 +1962,19 @@ int lua_cocos2dx_ui_Widget_findNextFocusedWidget(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::ui::Widget::FocusDirection arg0; - cocos2d::ui::Widget* arg1; + axis::ui::Widget::FocusDirection arg0; + axis::ui::Widget* arg1; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.Widget:findNextFocusedWidget"); - ok &= luaval_to_object(tolua_S, 3, "ccui.Widget",&arg1, "ccui.Widget:findNextFocusedWidget"); + ok &= luaval_to_object(tolua_S, 3, "ccui.Widget",&arg1, "ccui.Widget:findNextFocusedWidget"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Widget_findNextFocusedWidget'", nullptr); return 0; } - cocos2d::ui::Widget* ret = cobj->findNextFocusedWidget(arg0, arg1); - object_to_luaval(tolua_S, "ccui.Widget",(cocos2d::ui::Widget*)ret); + axis::ui::Widget* ret = cobj->findNextFocusedWidget(arg0, arg1); + object_to_luaval(tolua_S, "ccui.Widget",(axis::ui::Widget*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.Widget:findNextFocusedWidget",argc, 2); @@ -1990,7 +1990,7 @@ int lua_cocos2dx_ui_Widget_findNextFocusedWidget(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_isEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2002,7 +2002,7 @@ int lua_cocos2dx_ui_Widget_isEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2037,7 +2037,7 @@ int lua_cocos2dx_ui_Widget_isEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_isFocused(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2049,7 +2049,7 @@ int lua_cocos2dx_ui_Widget_isFocused(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2084,7 +2084,7 @@ int lua_cocos2dx_ui_Widget_isFocused(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_getTouchBeganPosition(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2096,7 +2096,7 @@ int lua_cocos2dx_ui_Widget_getTouchBeganPosition(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2114,7 +2114,7 @@ int lua_cocos2dx_ui_Widget_getTouchBeganPosition(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Widget_getTouchBeganPosition'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getTouchBeganPosition(); + const axis::Vec2& ret = cobj->getTouchBeganPosition(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -2131,7 +2131,7 @@ int lua_cocos2dx_ui_Widget_getTouchBeganPosition(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_isTouchEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2143,7 +2143,7 @@ int lua_cocos2dx_ui_Widget_isTouchEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2178,7 +2178,7 @@ int lua_cocos2dx_ui_Widget_isTouchEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_getCallbackName(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2190,7 +2190,7 @@ int lua_cocos2dx_ui_Widget_getCallbackName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2225,7 +2225,7 @@ int lua_cocos2dx_ui_Widget_getCallbackName(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_getActionTag(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2237,7 +2237,7 @@ int lua_cocos2dx_ui_Widget_getActionTag(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2272,7 +2272,7 @@ int lua_cocos2dx_ui_Widget_getActionTag(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_getWorldPosition(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2284,7 +2284,7 @@ int lua_cocos2dx_ui_Widget_getWorldPosition(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2302,7 +2302,7 @@ int lua_cocos2dx_ui_Widget_getWorldPosition(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Widget_getWorldPosition'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getWorldPosition(); + axis::Vec2 ret = cobj->getWorldPosition(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -2319,7 +2319,7 @@ int lua_cocos2dx_ui_Widget_getWorldPosition(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_isFocusEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2331,7 +2331,7 @@ int lua_cocos2dx_ui_Widget_isFocusEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2366,7 +2366,7 @@ int lua_cocos2dx_ui_Widget_isFocusEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_setFocused(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2378,7 +2378,7 @@ int lua_cocos2dx_ui_Widget_setFocused(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2416,7 +2416,7 @@ int lua_cocos2dx_ui_Widget_setFocused(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_setActionTag(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2428,7 +2428,7 @@ int lua_cocos2dx_ui_Widget_setActionTag(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2466,7 +2466,7 @@ int lua_cocos2dx_ui_Widget_setActionTag(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_setTouchEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2478,7 +2478,7 @@ int lua_cocos2dx_ui_Widget_setTouchEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2516,7 +2516,7 @@ int lua_cocos2dx_ui_Widget_setTouchEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_setFlippedY(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2528,7 +2528,7 @@ int lua_cocos2dx_ui_Widget_setFlippedY(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2566,7 +2566,7 @@ int lua_cocos2dx_ui_Widget_setFlippedY(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_setEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2578,7 +2578,7 @@ int lua_cocos2dx_ui_Widget_setEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2616,7 +2616,7 @@ int lua_cocos2dx_ui_Widget_setEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_getRightBoundary(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2628,7 +2628,7 @@ int lua_cocos2dx_ui_Widget_getRightBoundary(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2663,7 +2663,7 @@ int lua_cocos2dx_ui_Widget_getRightBoundary(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_setBrightStyle(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2675,7 +2675,7 @@ int lua_cocos2dx_ui_Widget_setBrightStyle(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2688,7 +2688,7 @@ int lua_cocos2dx_ui_Widget_setBrightStyle(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ui::Widget::BrightStyle arg0; + axis::ui::Widget::BrightStyle arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.Widget:setBrightStyle"); if(!ok) @@ -2713,7 +2713,7 @@ int lua_cocos2dx_ui_Widget_setBrightStyle(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_setLayoutParameter(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2725,7 +2725,7 @@ int lua_cocos2dx_ui_Widget_setLayoutParameter(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2738,9 +2738,9 @@ int lua_cocos2dx_ui_Widget_setLayoutParameter(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ui::LayoutParameter* arg0; + axis::ui::LayoutParameter* arg0; - ok &= luaval_to_object(tolua_S, 2, "ccui.LayoutParameter",&arg0, "ccui.Widget:setLayoutParameter"); + ok &= luaval_to_object(tolua_S, 2, "ccui.LayoutParameter",&arg0, "ccui.Widget:setLayoutParameter"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Widget_setLayoutParameter'", nullptr); @@ -2763,7 +2763,7 @@ int lua_cocos2dx_ui_Widget_setLayoutParameter(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_clone(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2775,7 +2775,7 @@ int lua_cocos2dx_ui_Widget_clone(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2793,8 +2793,8 @@ int lua_cocos2dx_ui_Widget_clone(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Widget_clone'", nullptr); return 0; } - cocos2d::ui::Widget* ret = cobj->clone(); - object_to_luaval(tolua_S, "ccui.Widget",(cocos2d::ui::Widget*)ret); + axis::ui::Widget* ret = cobj->clone(); + object_to_luaval(tolua_S, "ccui.Widget",(axis::ui::Widget*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.Widget:clone",argc, 0); @@ -2810,7 +2810,7 @@ int lua_cocos2dx_ui_Widget_clone(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_setFocusEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2822,7 +2822,7 @@ int lua_cocos2dx_ui_Widget_setFocusEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2860,7 +2860,7 @@ int lua_cocos2dx_ui_Widget_setFocusEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_getBottomBoundary(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2872,7 +2872,7 @@ int lua_cocos2dx_ui_Widget_getBottomBoundary(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2907,7 +2907,7 @@ int lua_cocos2dx_ui_Widget_getBottomBoundary(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_isBright(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2919,7 +2919,7 @@ int lua_cocos2dx_ui_Widget_isBright(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2954,7 +2954,7 @@ int lua_cocos2dx_ui_Widget_isBright(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_dispatchFocusEvent(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2966,7 +2966,7 @@ int lua_cocos2dx_ui_Widget_dispatchFocusEvent(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2979,12 +2979,12 @@ int lua_cocos2dx_ui_Widget_dispatchFocusEvent(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::ui::Widget* arg0; - cocos2d::ui::Widget* arg1; + axis::ui::Widget* arg0; + axis::ui::Widget* arg1; - ok &= luaval_to_object(tolua_S, 2, "ccui.Widget",&arg0, "ccui.Widget:dispatchFocusEvent"); + ok &= luaval_to_object(tolua_S, 2, "ccui.Widget",&arg0, "ccui.Widget:dispatchFocusEvent"); - ok &= luaval_to_object(tolua_S, 3, "ccui.Widget",&arg1, "ccui.Widget:dispatchFocusEvent"); + ok &= luaval_to_object(tolua_S, 3, "ccui.Widget",&arg1, "ccui.Widget:dispatchFocusEvent"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Widget_dispatchFocusEvent'", nullptr); @@ -3007,7 +3007,7 @@ int lua_cocos2dx_ui_Widget_dispatchFocusEvent(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_setUnifySizeEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3019,7 +3019,7 @@ int lua_cocos2dx_ui_Widget_setUnifySizeEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3057,7 +3057,7 @@ int lua_cocos2dx_ui_Widget_setUnifySizeEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_isPropagateTouchEvents(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3069,7 +3069,7 @@ int lua_cocos2dx_ui_Widget_isPropagateTouchEvents(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3104,7 +3104,7 @@ int lua_cocos2dx_ui_Widget_isPropagateTouchEvents(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_hitTest(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3116,7 +3116,7 @@ int lua_cocos2dx_ui_Widget_hitTest(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3129,15 +3129,15 @@ int lua_cocos2dx_ui_Widget_hitTest(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 3) { - cocos2d::Vec2 arg0; - const cocos2d::Camera* arg1; - cocos2d::Vec3* arg2; + axis::Vec2 arg0; + const axis::Camera* arg1; + axis::Vec3* arg2; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ccui.Widget:hitTest"); - ok &= luaval_to_object(tolua_S, 3, "cc.Camera",&arg1, "ccui.Widget:hitTest"); + ok &= luaval_to_object(tolua_S, 3, "cc.Camera",&arg1, "ccui.Widget:hitTest"); - ok &= luaval_to_object(tolua_S, 4, "cc.Vec3",&arg2, "ccui.Widget:hitTest"); + ok &= luaval_to_object(tolua_S, 4, "cc.Vec3",&arg2, "ccui.Widget:hitTest"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Widget_hitTest'", nullptr); @@ -3160,7 +3160,7 @@ int lua_cocos2dx_ui_Widget_hitTest(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_isLayoutComponentEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3172,7 +3172,7 @@ int lua_cocos2dx_ui_Widget_isLayoutComponentEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3207,7 +3207,7 @@ int lua_cocos2dx_ui_Widget_isLayoutComponentEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_requestFocus(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3219,7 +3219,7 @@ int lua_cocos2dx_ui_Widget_requestFocus(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3254,7 +3254,7 @@ int lua_cocos2dx_ui_Widget_requestFocus(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_updateSizeAndPosition(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -3263,7 +3263,7 @@ int lua_cocos2dx_ui_Widget_updateSizeAndPosition(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -3274,7 +3274,7 @@ int lua_cocos2dx_ui_Widget_updateSizeAndPosition(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ccui.Widget:updateSizeAndPosition"); if (!ok) { break; } @@ -3305,7 +3305,7 @@ int lua_cocos2dx_ui_Widget_updateSizeAndPosition(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_onFocusChange(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3317,7 +3317,7 @@ int lua_cocos2dx_ui_Widget_onFocusChange(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3330,12 +3330,12 @@ int lua_cocos2dx_ui_Widget_onFocusChange(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::ui::Widget* arg0; - cocos2d::ui::Widget* arg1; + axis::ui::Widget* arg0; + axis::ui::Widget* arg1; - ok &= luaval_to_object(tolua_S, 2, "ccui.Widget",&arg0, "ccui.Widget:onFocusChange"); + ok &= luaval_to_object(tolua_S, 2, "ccui.Widget",&arg0, "ccui.Widget:onFocusChange"); - ok &= luaval_to_object(tolua_S, 3, "ccui.Widget",&arg1, "ccui.Widget:onFocusChange"); + ok &= luaval_to_object(tolua_S, 3, "ccui.Widget",&arg1, "ccui.Widget:onFocusChange"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Widget_onFocusChange'", nullptr); @@ -3358,7 +3358,7 @@ int lua_cocos2dx_ui_Widget_onFocusChange(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_getTouchMovePosition(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3370,7 +3370,7 @@ int lua_cocos2dx_ui_Widget_getTouchMovePosition(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3388,7 +3388,7 @@ int lua_cocos2dx_ui_Widget_getTouchMovePosition(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Widget_getTouchMovePosition'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getTouchMovePosition(); + const axis::Vec2& ret = cobj->getTouchMovePosition(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -3405,7 +3405,7 @@ int lua_cocos2dx_ui_Widget_getTouchMovePosition(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_getSizeType(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3417,7 +3417,7 @@ int lua_cocos2dx_ui_Widget_getSizeType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3452,7 +3452,7 @@ int lua_cocos2dx_ui_Widget_getSizeType(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_getCallbackType(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3464,7 +3464,7 @@ int lua_cocos2dx_ui_Widget_getCallbackType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3499,7 +3499,7 @@ int lua_cocos2dx_ui_Widget_getCallbackType(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_getTouchEndPosition(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3511,7 +3511,7 @@ int lua_cocos2dx_ui_Widget_getTouchEndPosition(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3529,7 +3529,7 @@ int lua_cocos2dx_ui_Widget_getTouchEndPosition(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Widget_getTouchEndPosition'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getTouchEndPosition(); + const axis::Vec2& ret = cobj->getTouchEndPosition(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -3546,7 +3546,7 @@ int lua_cocos2dx_ui_Widget_getTouchEndPosition(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_getPositionPercent(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3558,7 +3558,7 @@ int lua_cocos2dx_ui_Widget_getPositionPercent(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3576,7 +3576,7 @@ int lua_cocos2dx_ui_Widget_getPositionPercent(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Widget_getPositionPercent'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getPositionPercent(); + const axis::Vec2& ret = cobj->getPositionPercent(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -3593,7 +3593,7 @@ int lua_cocos2dx_ui_Widget_getPositionPercent(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_propagateTouchEvent(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3605,7 +3605,7 @@ int lua_cocos2dx_ui_Widget_propagateTouchEvent(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3618,15 +3618,15 @@ int lua_cocos2dx_ui_Widget_propagateTouchEvent(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 3) { - cocos2d::ui::Widget::TouchEventType arg0; - cocos2d::ui::Widget* arg1; - cocos2d::Touch* arg2; + axis::ui::Widget::TouchEventType arg0; + axis::ui::Widget* arg1; + axis::Touch* arg2; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.Widget:propagateTouchEvent"); - ok &= luaval_to_object(tolua_S, 3, "ccui.Widget",&arg1, "ccui.Widget:propagateTouchEvent"); + ok &= luaval_to_object(tolua_S, 3, "ccui.Widget",&arg1, "ccui.Widget:propagateTouchEvent"); - ok &= luaval_to_object(tolua_S, 4, "cc.Touch",&arg2, "ccui.Widget:propagateTouchEvent"); + ok &= luaval_to_object(tolua_S, 4, "cc.Touch",&arg2, "ccui.Widget:propagateTouchEvent"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Widget_propagateTouchEvent'", nullptr); @@ -3649,7 +3649,7 @@ int lua_cocos2dx_ui_Widget_propagateTouchEvent(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_isFlippedX(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3661,7 +3661,7 @@ int lua_cocos2dx_ui_Widget_isFlippedX(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3696,7 +3696,7 @@ int lua_cocos2dx_ui_Widget_isFlippedX(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_isFlippedY(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3708,7 +3708,7 @@ int lua_cocos2dx_ui_Widget_isFlippedY(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3743,7 +3743,7 @@ int lua_cocos2dx_ui_Widget_isFlippedY(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_isClippingParentContainsPoint(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3755,7 +3755,7 @@ int lua_cocos2dx_ui_Widget_isClippingParentContainsPoint(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3768,7 +3768,7 @@ int lua_cocos2dx_ui_Widget_isClippingParentContainsPoint(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ccui.Widget:isClippingParentContainsPoint"); if(!ok) @@ -3793,7 +3793,7 @@ int lua_cocos2dx_ui_Widget_isClippingParentContainsPoint(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_setSizeType(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3805,7 +3805,7 @@ int lua_cocos2dx_ui_Widget_setSizeType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3818,7 +3818,7 @@ int lua_cocos2dx_ui_Widget_setSizeType(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ui::Widget::SizeType arg0; + axis::ui::Widget::SizeType arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.Widget:setSizeType"); if(!ok) @@ -3843,7 +3843,7 @@ int lua_cocos2dx_ui_Widget_setSizeType(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_interceptTouchEvent(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3855,7 +3855,7 @@ int lua_cocos2dx_ui_Widget_interceptTouchEvent(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3868,15 +3868,15 @@ int lua_cocos2dx_ui_Widget_interceptTouchEvent(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 3) { - cocos2d::ui::Widget::TouchEventType arg0; - cocos2d::ui::Widget* arg1; - cocos2d::Touch* arg2; + axis::ui::Widget::TouchEventType arg0; + axis::ui::Widget* arg1; + axis::Touch* arg2; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.Widget:interceptTouchEvent"); - ok &= luaval_to_object(tolua_S, 3, "ccui.Widget",&arg1, "ccui.Widget:interceptTouchEvent"); + ok &= luaval_to_object(tolua_S, 3, "ccui.Widget",&arg1, "ccui.Widget:interceptTouchEvent"); - ok &= luaval_to_object(tolua_S, 4, "cc.Touch",&arg2, "ccui.Widget:interceptTouchEvent"); + ok &= luaval_to_object(tolua_S, 4, "cc.Touch",&arg2, "ccui.Widget:interceptTouchEvent"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Widget_interceptTouchEvent'", nullptr); @@ -3899,7 +3899,7 @@ int lua_cocos2dx_ui_Widget_interceptTouchEvent(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_setBright(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3911,7 +3911,7 @@ int lua_cocos2dx_ui_Widget_setBright(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3949,7 +3949,7 @@ int lua_cocos2dx_ui_Widget_setBright(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_setCallbackType(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3961,7 +3961,7 @@ int lua_cocos2dx_ui_Widget_setCallbackType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3999,7 +3999,7 @@ int lua_cocos2dx_ui_Widget_setCallbackType(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_isSwallowTouches(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4011,7 +4011,7 @@ int lua_cocos2dx_ui_Widget_isSwallowTouches(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Widget",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Widget*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Widget*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4067,7 +4067,7 @@ int lua_cocos2dx_ui_Widget_enableDpadNavigation(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Widget_enableDpadNavigation'", nullptr); return 0; } - cocos2d::ui::Widget::enableDpadNavigation(arg0); + axis::ui::Widget::enableDpadNavigation(arg0); lua_settop(tolua_S, 1); return 1; } @@ -4101,8 +4101,8 @@ int lua_cocos2dx_ui_Widget_getCurrentFocusedWidget(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Widget_getCurrentFocusedWidget'", nullptr); return 0; } - cocos2d::ui::Widget* ret = cocos2d::ui::Widget::getCurrentFocusedWidget(); - object_to_luaval(tolua_S, "ccui.Widget",(cocos2d::ui::Widget*)ret); + axis::ui::Widget* ret = axis::ui::Widget::getCurrentFocusedWidget(); + object_to_luaval(tolua_S, "ccui.Widget",(axis::ui::Widget*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.Widget:getCurrentFocusedWidget",argc, 0); @@ -4135,8 +4135,8 @@ int lua_cocos2dx_ui_Widget_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Widget_create'", nullptr); return 0; } - cocos2d::ui::Widget* ret = cocos2d::ui::Widget::create(); - object_to_luaval(tolua_S, "ccui.Widget",(cocos2d::ui::Widget*)ret); + axis::ui::Widget* ret = axis::ui::Widget::create(); + object_to_luaval(tolua_S, "ccui.Widget",(axis::ui::Widget*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.Widget:create",argc, 0); @@ -4150,7 +4150,7 @@ int lua_cocos2dx_ui_Widget_create(lua_State* tolua_S) int lua_cocos2dx_ui_Widget_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Widget* cobj = nullptr; + axis::ui::Widget* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4167,7 +4167,7 @@ int lua_cocos2dx_ui_Widget_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Widget_constructor'", nullptr); return 0; } - cobj = new cocos2d::ui::Widget(); + cobj = new axis::ui::Widget(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -4266,7 +4266,7 @@ int lua_register_cocos2dx_ui_Widget(lua_State* tolua_S) tolua_function(tolua_S,"getCurrentFocusedWidget", lua_cocos2dx_ui_Widget_getCurrentFocusedWidget); tolua_function(tolua_S,"create", lua_cocos2dx_ui_Widget_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ui::Widget).name(); // rtti is literal storage + auto typeName = typeid(axis::ui::Widget).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccui.Widget"; g_typeCast[typeName] = "ccui.Widget"; return 1; @@ -4275,7 +4275,7 @@ int lua_register_cocos2dx_ui_Widget(lua_State* tolua_S) int lua_cocos2dx_ui_Layout_setBackGroundColorVector(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Layout* cobj = nullptr; + axis::ui::Layout* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4287,7 +4287,7 @@ int lua_cocos2dx_ui_Layout_setBackGroundColorVector(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Layout",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Layout*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4300,7 +4300,7 @@ int lua_cocos2dx_ui_Layout_setBackGroundColorVector(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ccui.Layout:setBackGroundColorVector"); if(!ok) @@ -4325,7 +4325,7 @@ int lua_cocos2dx_ui_Layout_setBackGroundColorVector(lua_State* tolua_S) int lua_cocos2dx_ui_Layout_setClippingType(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Layout* cobj = nullptr; + axis::ui::Layout* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4337,7 +4337,7 @@ int lua_cocos2dx_ui_Layout_setClippingType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Layout",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Layout*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4350,7 +4350,7 @@ int lua_cocos2dx_ui_Layout_setClippingType(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ui::Layout::ClippingType arg0; + axis::ui::Layout::ClippingType arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.Layout:setClippingType"); if(!ok) @@ -4375,7 +4375,7 @@ int lua_cocos2dx_ui_Layout_setClippingType(lua_State* tolua_S) int lua_cocos2dx_ui_Layout_setBackGroundColorType(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Layout* cobj = nullptr; + axis::ui::Layout* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4387,7 +4387,7 @@ int lua_cocos2dx_ui_Layout_setBackGroundColorType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Layout",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Layout*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4400,7 +4400,7 @@ int lua_cocos2dx_ui_Layout_setBackGroundColorType(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ui::Layout::BackGroundColorType arg0; + axis::ui::Layout::BackGroundColorType arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.Layout:setBackGroundColorType"); if(!ok) @@ -4425,7 +4425,7 @@ int lua_cocos2dx_ui_Layout_setBackGroundColorType(lua_State* tolua_S) int lua_cocos2dx_ui_Layout_setLoopFocus(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Layout* cobj = nullptr; + axis::ui::Layout* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4437,7 +4437,7 @@ int lua_cocos2dx_ui_Layout_setLoopFocus(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Layout",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Layout*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4475,7 +4475,7 @@ int lua_cocos2dx_ui_Layout_setLoopFocus(lua_State* tolua_S) int lua_cocos2dx_ui_Layout_setBackGroundImageColor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Layout* cobj = nullptr; + axis::ui::Layout* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4487,7 +4487,7 @@ int lua_cocos2dx_ui_Layout_setBackGroundImageColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Layout",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Layout*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4500,7 +4500,7 @@ int lua_cocos2dx_ui_Layout_setBackGroundImageColor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Color3B arg0; + axis::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "ccui.Layout:setBackGroundImageColor"); if(!ok) @@ -4525,7 +4525,7 @@ int lua_cocos2dx_ui_Layout_setBackGroundImageColor(lua_State* tolua_S) int lua_cocos2dx_ui_Layout_getBackGroundColorVector(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Layout* cobj = nullptr; + axis::ui::Layout* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4537,7 +4537,7 @@ int lua_cocos2dx_ui_Layout_getBackGroundColorVector(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Layout",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Layout*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4555,7 +4555,7 @@ int lua_cocos2dx_ui_Layout_getBackGroundColorVector(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Layout_getBackGroundColorVector'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getBackGroundColorVector(); + const axis::Vec2& ret = cobj->getBackGroundColorVector(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -4572,7 +4572,7 @@ int lua_cocos2dx_ui_Layout_getBackGroundColorVector(lua_State* tolua_S) int lua_cocos2dx_ui_Layout_getClippingType(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Layout* cobj = nullptr; + axis::ui::Layout* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4584,7 +4584,7 @@ int lua_cocos2dx_ui_Layout_getClippingType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Layout",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Layout*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4619,7 +4619,7 @@ int lua_cocos2dx_ui_Layout_getClippingType(lua_State* tolua_S) int lua_cocos2dx_ui_Layout_getRenderFile(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Layout* cobj = nullptr; + axis::ui::Layout* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4631,7 +4631,7 @@ int lua_cocos2dx_ui_Layout_getRenderFile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Layout",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Layout*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4649,7 +4649,7 @@ int lua_cocos2dx_ui_Layout_getRenderFile(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Layout_getRenderFile'", nullptr); return 0; } - cocos2d::ResourceData ret = cobj->getRenderFile(); + axis::ResourceData ret = cobj->getRenderFile(); #pragma warning NO CONVERSION FROM NATIVE FOR ResourceData; return 1; } @@ -4666,7 +4666,7 @@ int lua_cocos2dx_ui_Layout_getRenderFile(lua_State* tolua_S) int lua_cocos2dx_ui_Layout_isLoopFocus(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Layout* cobj = nullptr; + axis::ui::Layout* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4678,7 +4678,7 @@ int lua_cocos2dx_ui_Layout_isLoopFocus(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Layout",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Layout*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4713,7 +4713,7 @@ int lua_cocos2dx_ui_Layout_isLoopFocus(lua_State* tolua_S) int lua_cocos2dx_ui_Layout_removeBackGroundImage(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Layout* cobj = nullptr; + axis::ui::Layout* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4725,7 +4725,7 @@ int lua_cocos2dx_ui_Layout_removeBackGroundImage(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Layout",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Layout*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4760,7 +4760,7 @@ int lua_cocos2dx_ui_Layout_removeBackGroundImage(lua_State* tolua_S) int lua_cocos2dx_ui_Layout_getBackGroundColorOpacity(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Layout* cobj = nullptr; + axis::ui::Layout* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4772,7 +4772,7 @@ int lua_cocos2dx_ui_Layout_getBackGroundColorOpacity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Layout",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Layout*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4807,7 +4807,7 @@ int lua_cocos2dx_ui_Layout_getBackGroundColorOpacity(lua_State* tolua_S) int lua_cocos2dx_ui_Layout_isClippingEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Layout* cobj = nullptr; + axis::ui::Layout* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4819,7 +4819,7 @@ int lua_cocos2dx_ui_Layout_isClippingEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Layout",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Layout*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4854,7 +4854,7 @@ int lua_cocos2dx_ui_Layout_isClippingEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_Layout_setBackGroundImageOpacity(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Layout* cobj = nullptr; + axis::ui::Layout* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4866,7 +4866,7 @@ int lua_cocos2dx_ui_Layout_setBackGroundImageOpacity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Layout",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Layout*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4904,7 +4904,7 @@ int lua_cocos2dx_ui_Layout_setBackGroundImageOpacity(lua_State* tolua_S) int lua_cocos2dx_ui_Layout_setBackGroundImage(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Layout* cobj = nullptr; + axis::ui::Layout* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4916,7 +4916,7 @@ int lua_cocos2dx_ui_Layout_setBackGroundImage(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Layout",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Layout*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4944,7 +4944,7 @@ int lua_cocos2dx_ui_Layout_setBackGroundImage(lua_State* tolua_S) if (argc == 2) { std::string_view arg0; - cocos2d::ui::Widget::TextureResType arg1; + axis::ui::Widget::TextureResType arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.Layout:setBackGroundImage"); @@ -4971,7 +4971,7 @@ int lua_cocos2dx_ui_Layout_setBackGroundImage(lua_State* tolua_S) int lua_cocos2dx_ui_Layout_setBackGroundColor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Layout* cobj = nullptr; + axis::ui::Layout* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -4980,7 +4980,7 @@ int lua_cocos2dx_ui_Layout_setBackGroundColor(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccui.Layout",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Layout*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -4991,11 +4991,11 @@ int lua_cocos2dx_ui_Layout_setBackGroundColor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { - cocos2d::Color3B arg0; + axis::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "ccui.Layout:setBackGroundColor"); if (!ok) { break; } - cocos2d::Color3B arg1; + axis::Color3B arg1; ok &= luaval_to_color3b(tolua_S, 3, &arg1, "ccui.Layout:setBackGroundColor"); if (!ok) { break; } @@ -5007,7 +5007,7 @@ int lua_cocos2dx_ui_Layout_setBackGroundColor(lua_State* tolua_S) ok = true; do{ if (argc == 1) { - cocos2d::Color3B arg0; + axis::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "ccui.Layout:setBackGroundColor"); if (!ok) { break; } @@ -5030,7 +5030,7 @@ int lua_cocos2dx_ui_Layout_setBackGroundColor(lua_State* tolua_S) int lua_cocos2dx_ui_Layout_requestDoLayout(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Layout* cobj = nullptr; + axis::ui::Layout* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5042,7 +5042,7 @@ int lua_cocos2dx_ui_Layout_requestDoLayout(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Layout",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Layout*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5077,7 +5077,7 @@ int lua_cocos2dx_ui_Layout_requestDoLayout(lua_State* tolua_S) int lua_cocos2dx_ui_Layout_getBackGroundImageCapInsets(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Layout* cobj = nullptr; + axis::ui::Layout* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5089,7 +5089,7 @@ int lua_cocos2dx_ui_Layout_getBackGroundImageCapInsets(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Layout",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Layout*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5107,7 +5107,7 @@ int lua_cocos2dx_ui_Layout_getBackGroundImageCapInsets(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Layout_getBackGroundImageCapInsets'", nullptr); return 0; } - const cocos2d::Rect& ret = cobj->getBackGroundImageCapInsets(); + const axis::Rect& ret = cobj->getBackGroundImageCapInsets(); rect_to_luaval(tolua_S, ret); return 1; } @@ -5124,7 +5124,7 @@ int lua_cocos2dx_ui_Layout_getBackGroundImageCapInsets(lua_State* tolua_S) int lua_cocos2dx_ui_Layout_getBackGroundColor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Layout* cobj = nullptr; + axis::ui::Layout* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5136,7 +5136,7 @@ int lua_cocos2dx_ui_Layout_getBackGroundColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Layout",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Layout*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5154,7 +5154,7 @@ int lua_cocos2dx_ui_Layout_getBackGroundColor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Layout_getBackGroundColor'", nullptr); return 0; } - const cocos2d::Color3B& ret = cobj->getBackGroundColor(); + const axis::Color3B& ret = cobj->getBackGroundColor(); color3b_to_luaval(tolua_S, ret); return 1; } @@ -5171,7 +5171,7 @@ int lua_cocos2dx_ui_Layout_getBackGroundColor(lua_State* tolua_S) int lua_cocos2dx_ui_Layout_setClippingEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Layout* cobj = nullptr; + axis::ui::Layout* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5183,7 +5183,7 @@ int lua_cocos2dx_ui_Layout_setClippingEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Layout",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Layout*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5221,7 +5221,7 @@ int lua_cocos2dx_ui_Layout_setClippingEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_Layout_getBackGroundImageColor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Layout* cobj = nullptr; + axis::ui::Layout* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5233,7 +5233,7 @@ int lua_cocos2dx_ui_Layout_getBackGroundImageColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Layout",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Layout*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5251,7 +5251,7 @@ int lua_cocos2dx_ui_Layout_getBackGroundImageColor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Layout_getBackGroundImageColor'", nullptr); return 0; } - const cocos2d::Color3B& ret = cobj->getBackGroundImageColor(); + const axis::Color3B& ret = cobj->getBackGroundImageColor(); color3b_to_luaval(tolua_S, ret); return 1; } @@ -5268,7 +5268,7 @@ int lua_cocos2dx_ui_Layout_getBackGroundImageColor(lua_State* tolua_S) int lua_cocos2dx_ui_Layout_isBackGroundImageScale9Enabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Layout* cobj = nullptr; + axis::ui::Layout* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5280,7 +5280,7 @@ int lua_cocos2dx_ui_Layout_isBackGroundImageScale9Enabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Layout",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Layout*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5315,7 +5315,7 @@ int lua_cocos2dx_ui_Layout_isBackGroundImageScale9Enabled(lua_State* tolua_S) int lua_cocos2dx_ui_Layout_getBackGroundColorType(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Layout* cobj = nullptr; + axis::ui::Layout* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5327,7 +5327,7 @@ int lua_cocos2dx_ui_Layout_getBackGroundColorType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Layout",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Layout*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5362,7 +5362,7 @@ int lua_cocos2dx_ui_Layout_getBackGroundColorType(lua_State* tolua_S) int lua_cocos2dx_ui_Layout_getBackGroundEndColor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Layout* cobj = nullptr; + axis::ui::Layout* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5374,7 +5374,7 @@ int lua_cocos2dx_ui_Layout_getBackGroundEndColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Layout",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Layout*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5392,7 +5392,7 @@ int lua_cocos2dx_ui_Layout_getBackGroundEndColor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Layout_getBackGroundEndColor'", nullptr); return 0; } - const cocos2d::Color3B& ret = cobj->getBackGroundEndColor(); + const axis::Color3B& ret = cobj->getBackGroundEndColor(); color3b_to_luaval(tolua_S, ret); return 1; } @@ -5409,7 +5409,7 @@ int lua_cocos2dx_ui_Layout_getBackGroundEndColor(lua_State* tolua_S) int lua_cocos2dx_ui_Layout_setBackGroundColorOpacity(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Layout* cobj = nullptr; + axis::ui::Layout* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5421,7 +5421,7 @@ int lua_cocos2dx_ui_Layout_setBackGroundColorOpacity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Layout",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Layout*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5459,7 +5459,7 @@ int lua_cocos2dx_ui_Layout_setBackGroundColorOpacity(lua_State* tolua_S) int lua_cocos2dx_ui_Layout_getBackGroundImageOpacity(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Layout* cobj = nullptr; + axis::ui::Layout* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5471,7 +5471,7 @@ int lua_cocos2dx_ui_Layout_getBackGroundImageOpacity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Layout",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Layout*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5506,7 +5506,7 @@ int lua_cocos2dx_ui_Layout_getBackGroundImageOpacity(lua_State* tolua_S) int lua_cocos2dx_ui_Layout_isPassFocusToChild(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Layout* cobj = nullptr; + axis::ui::Layout* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5518,7 +5518,7 @@ int lua_cocos2dx_ui_Layout_isPassFocusToChild(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Layout",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Layout*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5553,7 +5553,7 @@ int lua_cocos2dx_ui_Layout_isPassFocusToChild(lua_State* tolua_S) int lua_cocos2dx_ui_Layout_setBackGroundImageCapInsets(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Layout* cobj = nullptr; + axis::ui::Layout* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5565,7 +5565,7 @@ int lua_cocos2dx_ui_Layout_setBackGroundImageCapInsets(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Layout",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Layout*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5578,7 +5578,7 @@ int lua_cocos2dx_ui_Layout_setBackGroundImageCapInsets(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Rect arg0; + axis::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "ccui.Layout:setBackGroundImageCapInsets"); if(!ok) @@ -5603,7 +5603,7 @@ int lua_cocos2dx_ui_Layout_setBackGroundImageCapInsets(lua_State* tolua_S) int lua_cocos2dx_ui_Layout_getBackGroundImageTextureSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Layout* cobj = nullptr; + axis::ui::Layout* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5615,7 +5615,7 @@ int lua_cocos2dx_ui_Layout_getBackGroundImageTextureSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Layout",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Layout*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5633,7 +5633,7 @@ int lua_cocos2dx_ui_Layout_getBackGroundImageTextureSize(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Layout_getBackGroundImageTextureSize'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getBackGroundImageTextureSize(); + const axis::Vec2& ret = cobj->getBackGroundImageTextureSize(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -5650,7 +5650,7 @@ int lua_cocos2dx_ui_Layout_getBackGroundImageTextureSize(lua_State* tolua_S) int lua_cocos2dx_ui_Layout_forceDoLayout(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Layout* cobj = nullptr; + axis::ui::Layout* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5662,7 +5662,7 @@ int lua_cocos2dx_ui_Layout_forceDoLayout(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Layout",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Layout*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5697,7 +5697,7 @@ int lua_cocos2dx_ui_Layout_forceDoLayout(lua_State* tolua_S) int lua_cocos2dx_ui_Layout_getLayoutType(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Layout* cobj = nullptr; + axis::ui::Layout* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5709,7 +5709,7 @@ int lua_cocos2dx_ui_Layout_getLayoutType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Layout",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Layout*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5744,7 +5744,7 @@ int lua_cocos2dx_ui_Layout_getLayoutType(lua_State* tolua_S) int lua_cocos2dx_ui_Layout_setPassFocusToChild(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Layout* cobj = nullptr; + axis::ui::Layout* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5756,7 +5756,7 @@ int lua_cocos2dx_ui_Layout_setPassFocusToChild(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Layout",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Layout*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5794,7 +5794,7 @@ int lua_cocos2dx_ui_Layout_setPassFocusToChild(lua_State* tolua_S) int lua_cocos2dx_ui_Layout_getBackGroundStartColor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Layout* cobj = nullptr; + axis::ui::Layout* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5806,7 +5806,7 @@ int lua_cocos2dx_ui_Layout_getBackGroundStartColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Layout",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Layout*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5824,7 +5824,7 @@ int lua_cocos2dx_ui_Layout_getBackGroundStartColor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Layout_getBackGroundStartColor'", nullptr); return 0; } - const cocos2d::Color3B& ret = cobj->getBackGroundStartColor(); + const axis::Color3B& ret = cobj->getBackGroundStartColor(); color3b_to_luaval(tolua_S, ret); return 1; } @@ -5841,7 +5841,7 @@ int lua_cocos2dx_ui_Layout_getBackGroundStartColor(lua_State* tolua_S) int lua_cocos2dx_ui_Layout_setBackGroundImageScale9Enabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Layout* cobj = nullptr; + axis::ui::Layout* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5853,7 +5853,7 @@ int lua_cocos2dx_ui_Layout_setBackGroundImageScale9Enabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Layout",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Layout*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5891,7 +5891,7 @@ int lua_cocos2dx_ui_Layout_setBackGroundImageScale9Enabled(lua_State* tolua_S) int lua_cocos2dx_ui_Layout_setLayoutType(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Layout* cobj = nullptr; + axis::ui::Layout* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5903,7 +5903,7 @@ int lua_cocos2dx_ui_Layout_setLayoutType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Layout",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Layout*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Layout*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5916,7 +5916,7 @@ int lua_cocos2dx_ui_Layout_setLayoutType(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ui::Layout::Type arg0; + axis::ui::Layout::Type arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.Layout:setLayoutType"); if(!ok) @@ -5960,8 +5960,8 @@ int lua_cocos2dx_ui_Layout_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Layout_create'", nullptr); return 0; } - cocos2d::ui::Layout* ret = cocos2d::ui::Layout::create(); - object_to_luaval(tolua_S, "ccui.Layout",(cocos2d::ui::Layout*)ret); + axis::ui::Layout* ret = axis::ui::Layout::create(); + object_to_luaval(tolua_S, "ccui.Layout",(axis::ui::Layout*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.Layout:create",argc, 0); @@ -5994,8 +5994,8 @@ int lua_cocos2dx_ui_Layout_createInstance(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Layout_createInstance'", nullptr); return 0; } - cocos2d::Ref* ret = cocos2d::ui::Layout::createInstance(); - object_to_luaval(tolua_S, "cc.Ref",(cocos2d::Ref*)ret); + axis::Ref* ret = axis::ui::Layout::createInstance(); + object_to_luaval(tolua_S, "cc.Ref",(axis::Ref*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.Layout:createInstance",argc, 0); @@ -6009,7 +6009,7 @@ int lua_cocos2dx_ui_Layout_createInstance(lua_State* tolua_S) int lua_cocos2dx_ui_Layout_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Layout* cobj = nullptr; + axis::ui::Layout* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6026,7 +6026,7 @@ int lua_cocos2dx_ui_Layout_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Layout_constructor'", nullptr); return 0; } - cobj = new cocos2d::ui::Layout(); + cobj = new axis::ui::Layout(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -6093,7 +6093,7 @@ int lua_register_cocos2dx_ui_Layout(lua_State* tolua_S) tolua_function(tolua_S,"create", lua_cocos2dx_ui_Layout_create); tolua_function(tolua_S,"createInstance", lua_cocos2dx_ui_Layout_createInstance); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ui::Layout).name(); // rtti is literal storage + auto typeName = typeid(axis::ui::Layout).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccui.Layout"; g_typeCast[typeName] = "ccui.Layout"; return 1; @@ -6102,7 +6102,7 @@ int lua_register_cocos2dx_ui_Layout(lua_State* tolua_S) int lua_cocos2dx_ui_Button_getNormalTextureSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Button* cobj = nullptr; + axis::ui::Button* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6114,7 +6114,7 @@ int lua_cocos2dx_ui_Button_getNormalTextureSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Button",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Button*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Button*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6132,7 +6132,7 @@ int lua_cocos2dx_ui_Button_getNormalTextureSize(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Button_getNormalTextureSize'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getNormalTextureSize(); + axis::Vec2 ret = cobj->getNormalTextureSize(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -6149,7 +6149,7 @@ int lua_cocos2dx_ui_Button_getNormalTextureSize(lua_State* tolua_S) int lua_cocos2dx_ui_Button_getTitleText(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Button* cobj = nullptr; + axis::ui::Button* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6161,7 +6161,7 @@ int lua_cocos2dx_ui_Button_getTitleText(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Button",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Button*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Button*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6196,7 +6196,7 @@ int lua_cocos2dx_ui_Button_getTitleText(lua_State* tolua_S) int lua_cocos2dx_ui_Button_setTitleLabel(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Button* cobj = nullptr; + axis::ui::Button* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6208,7 +6208,7 @@ int lua_cocos2dx_ui_Button_setTitleLabel(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Button",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Button*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Button*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6221,9 +6221,9 @@ int lua_cocos2dx_ui_Button_setTitleLabel(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Label* arg0; + axis::Label* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Label",&arg0, "ccui.Button:setTitleLabel"); + ok &= luaval_to_object(tolua_S, 2, "cc.Label",&arg0, "ccui.Button:setTitleLabel"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Button_setTitleLabel'", nullptr); @@ -6246,7 +6246,7 @@ int lua_cocos2dx_ui_Button_setTitleLabel(lua_State* tolua_S) int lua_cocos2dx_ui_Button_setTitleFontSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Button* cobj = nullptr; + axis::ui::Button* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6258,7 +6258,7 @@ int lua_cocos2dx_ui_Button_setTitleFontSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Button",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Button*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Button*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6296,7 +6296,7 @@ int lua_cocos2dx_ui_Button_setTitleFontSize(lua_State* tolua_S) int lua_cocos2dx_ui_Button_resetPressedRender(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Button* cobj = nullptr; + axis::ui::Button* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6308,7 +6308,7 @@ int lua_cocos2dx_ui_Button_resetPressedRender(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Button",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Button*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Button*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6343,7 +6343,7 @@ int lua_cocos2dx_ui_Button_resetPressedRender(lua_State* tolua_S) int lua_cocos2dx_ui_Button_setScale9Enabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Button* cobj = nullptr; + axis::ui::Button* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6355,7 +6355,7 @@ int lua_cocos2dx_ui_Button_setScale9Enabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Button",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Button*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Button*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6393,7 +6393,7 @@ int lua_cocos2dx_ui_Button_setScale9Enabled(lua_State* tolua_S) int lua_cocos2dx_ui_Button_resetDisabledRender(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Button* cobj = nullptr; + axis::ui::Button* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6405,7 +6405,7 @@ int lua_cocos2dx_ui_Button_resetDisabledRender(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Button",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Button*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Button*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6440,7 +6440,7 @@ int lua_cocos2dx_ui_Button_resetDisabledRender(lua_State* tolua_S) int lua_cocos2dx_ui_Button_getTitleRenderer(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Button* cobj = nullptr; + axis::ui::Button* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6452,7 +6452,7 @@ int lua_cocos2dx_ui_Button_getTitleRenderer(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Button",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Button*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Button*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6470,8 +6470,8 @@ int lua_cocos2dx_ui_Button_getTitleRenderer(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Button_getTitleRenderer'", nullptr); return 0; } - cocos2d::Label* ret = cobj->getTitleRenderer(); - object_to_luaval(tolua_S, "cc.Label",(cocos2d::Label*)ret); + axis::Label* ret = cobj->getTitleRenderer(); + object_to_luaval(tolua_S, "cc.Label",(axis::Label*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.Button:getTitleRenderer",argc, 0); @@ -6487,7 +6487,7 @@ int lua_cocos2dx_ui_Button_getTitleRenderer(lua_State* tolua_S) int lua_cocos2dx_ui_Button_getRendererClicked(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Button* cobj = nullptr; + axis::ui::Button* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6499,7 +6499,7 @@ int lua_cocos2dx_ui_Button_getRendererClicked(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Button",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Button*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Button*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6517,8 +6517,8 @@ int lua_cocos2dx_ui_Button_getRendererClicked(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Button_getRendererClicked'", nullptr); return 0; } - cocos2d::ui::Scale9Sprite* ret = cobj->getRendererClicked(); - object_to_luaval(tolua_S, "ccui.Scale9Sprite",(cocos2d::ui::Scale9Sprite*)ret); + axis::ui::Scale9Sprite* ret = cobj->getRendererClicked(); + object_to_luaval(tolua_S, "ccui.Scale9Sprite",(axis::ui::Scale9Sprite*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.Button:getRendererClicked",argc, 0); @@ -6534,7 +6534,7 @@ int lua_cocos2dx_ui_Button_getRendererClicked(lua_State* tolua_S) int lua_cocos2dx_ui_Button_getDisabledFile(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Button* cobj = nullptr; + axis::ui::Button* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6546,7 +6546,7 @@ int lua_cocos2dx_ui_Button_getDisabledFile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Button",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Button*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Button*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6564,7 +6564,7 @@ int lua_cocos2dx_ui_Button_getDisabledFile(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Button_getDisabledFile'", nullptr); return 0; } - cocos2d::ResourceData ret = cobj->getDisabledFile(); + axis::ResourceData ret = cobj->getDisabledFile(); #pragma warning NO CONVERSION FROM NATIVE FOR ResourceData; return 1; } @@ -6581,7 +6581,7 @@ int lua_cocos2dx_ui_Button_getDisabledFile(lua_State* tolua_S) int lua_cocos2dx_ui_Button_getZoomScale(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Button* cobj = nullptr; + axis::ui::Button* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6593,7 +6593,7 @@ int lua_cocos2dx_ui_Button_getZoomScale(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Button",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Button*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Button*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6628,7 +6628,7 @@ int lua_cocos2dx_ui_Button_getZoomScale(lua_State* tolua_S) int lua_cocos2dx_ui_Button_getCapInsetsDisabledRenderer(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Button* cobj = nullptr; + axis::ui::Button* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6640,7 +6640,7 @@ int lua_cocos2dx_ui_Button_getCapInsetsDisabledRenderer(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Button",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Button*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Button*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6658,7 +6658,7 @@ int lua_cocos2dx_ui_Button_getCapInsetsDisabledRenderer(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Button_getCapInsetsDisabledRenderer'", nullptr); return 0; } - const cocos2d::Rect& ret = cobj->getCapInsetsDisabledRenderer(); + const axis::Rect& ret = cobj->getCapInsetsDisabledRenderer(); rect_to_luaval(tolua_S, ret); return 1; } @@ -6675,7 +6675,7 @@ int lua_cocos2dx_ui_Button_getCapInsetsDisabledRenderer(lua_State* tolua_S) int lua_cocos2dx_ui_Button_setTitleColor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Button* cobj = nullptr; + axis::ui::Button* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6687,7 +6687,7 @@ int lua_cocos2dx_ui_Button_setTitleColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Button",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Button*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Button*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6700,7 +6700,7 @@ int lua_cocos2dx_ui_Button_setTitleColor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Color3B arg0; + axis::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "ccui.Button:setTitleColor"); if(!ok) @@ -6725,7 +6725,7 @@ int lua_cocos2dx_ui_Button_setTitleColor(lua_State* tolua_S) int lua_cocos2dx_ui_Button_getNormalFile(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Button* cobj = nullptr; + axis::ui::Button* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6737,7 +6737,7 @@ int lua_cocos2dx_ui_Button_getNormalFile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Button",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Button*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Button*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6755,7 +6755,7 @@ int lua_cocos2dx_ui_Button_getNormalFile(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Button_getNormalFile'", nullptr); return 0; } - cocos2d::ResourceData ret = cobj->getNormalFile(); + axis::ResourceData ret = cobj->getNormalFile(); #pragma warning NO CONVERSION FROM NATIVE FOR ResourceData; return 1; } @@ -6772,7 +6772,7 @@ int lua_cocos2dx_ui_Button_getNormalFile(lua_State* tolua_S) int lua_cocos2dx_ui_Button_resetNormalRender(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Button* cobj = nullptr; + axis::ui::Button* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6784,7 +6784,7 @@ int lua_cocos2dx_ui_Button_resetNormalRender(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Button",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Button*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Button*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6819,7 +6819,7 @@ int lua_cocos2dx_ui_Button_resetNormalRender(lua_State* tolua_S) int lua_cocos2dx_ui_Button_getRendererDisabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Button* cobj = nullptr; + axis::ui::Button* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6831,7 +6831,7 @@ int lua_cocos2dx_ui_Button_getRendererDisabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Button",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Button*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Button*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6849,8 +6849,8 @@ int lua_cocos2dx_ui_Button_getRendererDisabled(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Button_getRendererDisabled'", nullptr); return 0; } - cocos2d::ui::Scale9Sprite* ret = cobj->getRendererDisabled(); - object_to_luaval(tolua_S, "ccui.Scale9Sprite",(cocos2d::ui::Scale9Sprite*)ret); + axis::ui::Scale9Sprite* ret = cobj->getRendererDisabled(); + object_to_luaval(tolua_S, "ccui.Scale9Sprite",(axis::ui::Scale9Sprite*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.Button:getRendererDisabled",argc, 0); @@ -6866,7 +6866,7 @@ int lua_cocos2dx_ui_Button_getRendererDisabled(lua_State* tolua_S) int lua_cocos2dx_ui_Button_setCapInsetsDisabledRenderer(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Button* cobj = nullptr; + axis::ui::Button* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6878,7 +6878,7 @@ int lua_cocos2dx_ui_Button_setCapInsetsDisabledRenderer(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Button",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Button*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Button*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6891,7 +6891,7 @@ int lua_cocos2dx_ui_Button_setCapInsetsDisabledRenderer(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Rect arg0; + axis::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "ccui.Button:setCapInsetsDisabledRenderer"); if(!ok) @@ -6916,7 +6916,7 @@ int lua_cocos2dx_ui_Button_setCapInsetsDisabledRenderer(lua_State* tolua_S) int lua_cocos2dx_ui_Button_setCapInsets(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Button* cobj = nullptr; + axis::ui::Button* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6928,7 +6928,7 @@ int lua_cocos2dx_ui_Button_setCapInsets(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Button",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Button*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Button*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6941,7 +6941,7 @@ int lua_cocos2dx_ui_Button_setCapInsets(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Rect arg0; + axis::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "ccui.Button:setCapInsets"); if(!ok) @@ -6966,7 +6966,7 @@ int lua_cocos2dx_ui_Button_setCapInsets(lua_State* tolua_S) int lua_cocos2dx_ui_Button_loadTextureDisabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Button* cobj = nullptr; + axis::ui::Button* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6978,7 +6978,7 @@ int lua_cocos2dx_ui_Button_loadTextureDisabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Button",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Button*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Button*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7006,7 +7006,7 @@ int lua_cocos2dx_ui_Button_loadTextureDisabled(lua_State* tolua_S) if (argc == 2) { std::string_view arg0; - cocos2d::ui::Widget::TextureResType arg1; + axis::ui::Widget::TextureResType arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.Button:loadTextureDisabled"); @@ -7033,7 +7033,7 @@ int lua_cocos2dx_ui_Button_loadTextureDisabled(lua_State* tolua_S) int lua_cocos2dx_ui_Button_init(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Button* cobj = nullptr; + axis::ui::Button* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7045,7 +7045,7 @@ int lua_cocos2dx_ui_Button_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Button",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Button*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Button*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7112,7 +7112,7 @@ int lua_cocos2dx_ui_Button_init(lua_State* tolua_S) std::string_view arg0; std::string_view arg1; std::string_view arg2; - cocos2d::ui::Widget::TextureResType arg3; + axis::ui::Widget::TextureResType arg3; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.Button:init"); @@ -7143,7 +7143,7 @@ int lua_cocos2dx_ui_Button_init(lua_State* tolua_S) int lua_cocos2dx_ui_Button_setTitleText(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Button* cobj = nullptr; + axis::ui::Button* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7155,7 +7155,7 @@ int lua_cocos2dx_ui_Button_setTitleText(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Button",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Button*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Button*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7193,7 +7193,7 @@ int lua_cocos2dx_ui_Button_setTitleText(lua_State* tolua_S) int lua_cocos2dx_ui_Button_setCapInsetsNormalRenderer(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Button* cobj = nullptr; + axis::ui::Button* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7205,7 +7205,7 @@ int lua_cocos2dx_ui_Button_setCapInsetsNormalRenderer(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Button",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Button*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Button*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7218,7 +7218,7 @@ int lua_cocos2dx_ui_Button_setCapInsetsNormalRenderer(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Rect arg0; + axis::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "ccui.Button:setCapInsetsNormalRenderer"); if(!ok) @@ -7243,7 +7243,7 @@ int lua_cocos2dx_ui_Button_setCapInsetsNormalRenderer(lua_State* tolua_S) int lua_cocos2dx_ui_Button_loadTexturePressed(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Button* cobj = nullptr; + axis::ui::Button* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7255,7 +7255,7 @@ int lua_cocos2dx_ui_Button_loadTexturePressed(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Button",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Button*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Button*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7283,7 +7283,7 @@ int lua_cocos2dx_ui_Button_loadTexturePressed(lua_State* tolua_S) if (argc == 2) { std::string_view arg0; - cocos2d::ui::Widget::TextureResType arg1; + axis::ui::Widget::TextureResType arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.Button:loadTexturePressed"); @@ -7310,7 +7310,7 @@ int lua_cocos2dx_ui_Button_loadTexturePressed(lua_State* tolua_S) int lua_cocos2dx_ui_Button_setTitleFontName(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Button* cobj = nullptr; + axis::ui::Button* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7322,7 +7322,7 @@ int lua_cocos2dx_ui_Button_setTitleFontName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Button",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Button*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Button*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7360,7 +7360,7 @@ int lua_cocos2dx_ui_Button_setTitleFontName(lua_State* tolua_S) int lua_cocos2dx_ui_Button_getCapInsetsNormalRenderer(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Button* cobj = nullptr; + axis::ui::Button* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7372,7 +7372,7 @@ int lua_cocos2dx_ui_Button_getCapInsetsNormalRenderer(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Button",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Button*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Button*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7390,7 +7390,7 @@ int lua_cocos2dx_ui_Button_getCapInsetsNormalRenderer(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Button_getCapInsetsNormalRenderer'", nullptr); return 0; } - const cocos2d::Rect& ret = cobj->getCapInsetsNormalRenderer(); + const axis::Rect& ret = cobj->getCapInsetsNormalRenderer(); rect_to_luaval(tolua_S, ret); return 1; } @@ -7407,7 +7407,7 @@ int lua_cocos2dx_ui_Button_getCapInsetsNormalRenderer(lua_State* tolua_S) int lua_cocos2dx_ui_Button_setTitleAlignment(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Button* cobj = nullptr; + axis::ui::Button* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -7416,7 +7416,7 @@ int lua_cocos2dx_ui_Button_setTitleAlignment(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccui.Button",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Button*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Button*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -7427,11 +7427,11 @@ int lua_cocos2dx_ui_Button_setTitleAlignment(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { - cocos2d::TextHAlignment arg0; + axis::TextHAlignment arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.Button:setTitleAlignment"); if (!ok) { break; } - cocos2d::TextVAlignment arg1; + axis::TextVAlignment arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ccui.Button:setTitleAlignment"); if (!ok) { break; } @@ -7443,7 +7443,7 @@ int lua_cocos2dx_ui_Button_setTitleAlignment(lua_State* tolua_S) ok = true; do{ if (argc == 1) { - cocos2d::TextHAlignment arg0; + axis::TextHAlignment arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.Button:setTitleAlignment"); if (!ok) { break; } @@ -7466,7 +7466,7 @@ int lua_cocos2dx_ui_Button_setTitleAlignment(lua_State* tolua_S) int lua_cocos2dx_ui_Button_getCapInsetsPressedRenderer(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Button* cobj = nullptr; + axis::ui::Button* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7478,7 +7478,7 @@ int lua_cocos2dx_ui_Button_getCapInsetsPressedRenderer(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Button",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Button*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Button*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7496,7 +7496,7 @@ int lua_cocos2dx_ui_Button_getCapInsetsPressedRenderer(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Button_getCapInsetsPressedRenderer'", nullptr); return 0; } - const cocos2d::Rect& ret = cobj->getCapInsetsPressedRenderer(); + const axis::Rect& ret = cobj->getCapInsetsPressedRenderer(); rect_to_luaval(tolua_S, ret); return 1; } @@ -7513,7 +7513,7 @@ int lua_cocos2dx_ui_Button_getCapInsetsPressedRenderer(lua_State* tolua_S) int lua_cocos2dx_ui_Button_loadTextures(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Button* cobj = nullptr; + axis::ui::Button* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7525,7 +7525,7 @@ int lua_cocos2dx_ui_Button_loadTextures(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Button",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Button*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Button*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7578,7 +7578,7 @@ int lua_cocos2dx_ui_Button_loadTextures(lua_State* tolua_S) std::string_view arg0; std::string_view arg1; std::string_view arg2; - cocos2d::ui::Widget::TextureResType arg3; + axis::ui::Widget::TextureResType arg3; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.Button:loadTextures"); @@ -7609,7 +7609,7 @@ int lua_cocos2dx_ui_Button_loadTextures(lua_State* tolua_S) int lua_cocos2dx_ui_Button_isScale9Enabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Button* cobj = nullptr; + axis::ui::Button* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7621,7 +7621,7 @@ int lua_cocos2dx_ui_Button_isScale9Enabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Button",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Button*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Button*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7656,7 +7656,7 @@ int lua_cocos2dx_ui_Button_isScale9Enabled(lua_State* tolua_S) int lua_cocos2dx_ui_Button_loadTextureNormal(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Button* cobj = nullptr; + axis::ui::Button* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7668,7 +7668,7 @@ int lua_cocos2dx_ui_Button_loadTextureNormal(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Button",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Button*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Button*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7696,7 +7696,7 @@ int lua_cocos2dx_ui_Button_loadTextureNormal(lua_State* tolua_S) if (argc == 2) { std::string_view arg0; - cocos2d::ui::Widget::TextureResType arg1; + axis::ui::Widget::TextureResType arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.Button:loadTextureNormal"); @@ -7723,7 +7723,7 @@ int lua_cocos2dx_ui_Button_loadTextureNormal(lua_State* tolua_S) int lua_cocos2dx_ui_Button_setCapInsetsPressedRenderer(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Button* cobj = nullptr; + axis::ui::Button* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7735,7 +7735,7 @@ int lua_cocos2dx_ui_Button_setCapInsetsPressedRenderer(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Button",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Button*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Button*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7748,7 +7748,7 @@ int lua_cocos2dx_ui_Button_setCapInsetsPressedRenderer(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Rect arg0; + axis::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "ccui.Button:setCapInsetsPressedRenderer"); if(!ok) @@ -7773,7 +7773,7 @@ int lua_cocos2dx_ui_Button_setCapInsetsPressedRenderer(lua_State* tolua_S) int lua_cocos2dx_ui_Button_getPressedFile(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Button* cobj = nullptr; + axis::ui::Button* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7785,7 +7785,7 @@ int lua_cocos2dx_ui_Button_getPressedFile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Button",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Button*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Button*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7803,7 +7803,7 @@ int lua_cocos2dx_ui_Button_getPressedFile(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Button_getPressedFile'", nullptr); return 0; } - cocos2d::ResourceData ret = cobj->getPressedFile(); + axis::ResourceData ret = cobj->getPressedFile(); #pragma warning NO CONVERSION FROM NATIVE FOR ResourceData; return 1; } @@ -7820,7 +7820,7 @@ int lua_cocos2dx_ui_Button_getPressedFile(lua_State* tolua_S) int lua_cocos2dx_ui_Button_getTitleLabel(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Button* cobj = nullptr; + axis::ui::Button* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7832,7 +7832,7 @@ int lua_cocos2dx_ui_Button_getTitleLabel(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Button",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Button*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Button*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7850,8 +7850,8 @@ int lua_cocos2dx_ui_Button_getTitleLabel(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Button_getTitleLabel'", nullptr); return 0; } - cocos2d::Label* ret = cobj->getTitleLabel(); - object_to_luaval(tolua_S, "cc.Label",(cocos2d::Label*)ret); + axis::Label* ret = cobj->getTitleLabel(); + object_to_luaval(tolua_S, "cc.Label",(axis::Label*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.Button:getTitleLabel",argc, 0); @@ -7867,7 +7867,7 @@ int lua_cocos2dx_ui_Button_getTitleLabel(lua_State* tolua_S) int lua_cocos2dx_ui_Button_getTitleFontSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Button* cobj = nullptr; + axis::ui::Button* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7879,7 +7879,7 @@ int lua_cocos2dx_ui_Button_getTitleFontSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Button",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Button*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Button*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7914,7 +7914,7 @@ int lua_cocos2dx_ui_Button_getTitleFontSize(lua_State* tolua_S) int lua_cocos2dx_ui_Button_getRendererNormal(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Button* cobj = nullptr; + axis::ui::Button* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7926,7 +7926,7 @@ int lua_cocos2dx_ui_Button_getRendererNormal(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Button",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Button*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Button*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -7944,8 +7944,8 @@ int lua_cocos2dx_ui_Button_getRendererNormal(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Button_getRendererNormal'", nullptr); return 0; } - cocos2d::ui::Scale9Sprite* ret = cobj->getRendererNormal(); - object_to_luaval(tolua_S, "ccui.Scale9Sprite",(cocos2d::ui::Scale9Sprite*)ret); + axis::ui::Scale9Sprite* ret = cobj->getRendererNormal(); + object_to_luaval(tolua_S, "ccui.Scale9Sprite",(axis::ui::Scale9Sprite*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.Button:getRendererNormal",argc, 0); @@ -7961,7 +7961,7 @@ int lua_cocos2dx_ui_Button_getRendererNormal(lua_State* tolua_S) int lua_cocos2dx_ui_Button_getTitleFontName(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Button* cobj = nullptr; + axis::ui::Button* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -7973,7 +7973,7 @@ int lua_cocos2dx_ui_Button_getTitleFontName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Button",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Button*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Button*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8008,7 +8008,7 @@ int lua_cocos2dx_ui_Button_getTitleFontName(lua_State* tolua_S) int lua_cocos2dx_ui_Button_getTitleColor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Button* cobj = nullptr; + axis::ui::Button* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8020,7 +8020,7 @@ int lua_cocos2dx_ui_Button_getTitleColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Button",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Button*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Button*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8038,7 +8038,7 @@ int lua_cocos2dx_ui_Button_getTitleColor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Button_getTitleColor'", nullptr); return 0; } - cocos2d::Color3B ret = cobj->getTitleColor(); + axis::Color3B ret = cobj->getTitleColor(); color3b_to_luaval(tolua_S, ret); return 1; } @@ -8055,7 +8055,7 @@ int lua_cocos2dx_ui_Button_getTitleColor(lua_State* tolua_S) int lua_cocos2dx_ui_Button_setPressedActionEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Button* cobj = nullptr; + axis::ui::Button* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8067,7 +8067,7 @@ int lua_cocos2dx_ui_Button_setPressedActionEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Button",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Button*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Button*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8105,7 +8105,7 @@ int lua_cocos2dx_ui_Button_setPressedActionEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_Button_setZoomScale(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Button* cobj = nullptr; + axis::ui::Button* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8117,7 +8117,7 @@ int lua_cocos2dx_ui_Button_setZoomScale(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Button",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Button*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Button*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8173,8 +8173,8 @@ int lua_cocos2dx_ui_Button_create(lua_State* tolua_S) std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.Button:create"); if (!ok) { break; } - cocos2d::ui::Button* ret = cocos2d::ui::Button::create(arg0); - object_to_luaval(tolua_S, "ccui.Button",(cocos2d::ui::Button*)ret); + axis::ui::Button* ret = axis::ui::Button::create(arg0); + object_to_luaval(tolua_S, "ccui.Button",(axis::ui::Button*)ret); return 1; } } while (0); @@ -8189,8 +8189,8 @@ int lua_cocos2dx_ui_Button_create(lua_State* tolua_S) std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ccui.Button:create"); if (!ok) { break; } - cocos2d::ui::Button* ret = cocos2d::ui::Button::create(arg0, arg1); - object_to_luaval(tolua_S, "ccui.Button",(cocos2d::ui::Button*)ret); + axis::ui::Button* ret = axis::ui::Button::create(arg0, arg1); + object_to_luaval(tolua_S, "ccui.Button",(axis::ui::Button*)ret); return 1; } } while (0); @@ -8208,8 +8208,8 @@ int lua_cocos2dx_ui_Button_create(lua_State* tolua_S) std::string_view arg2; ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "ccui.Button:create"); if (!ok) { break; } - cocos2d::ui::Button* ret = cocos2d::ui::Button::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "ccui.Button",(cocos2d::ui::Button*)ret); + axis::ui::Button* ret = axis::ui::Button::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "ccui.Button",(axis::ui::Button*)ret); return 1; } } while (0); @@ -8227,11 +8227,11 @@ int lua_cocos2dx_ui_Button_create(lua_State* tolua_S) std::string_view arg2; ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "ccui.Button:create"); if (!ok) { break; } - cocos2d::ui::Widget::TextureResType arg3; + axis::ui::Widget::TextureResType arg3; ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "ccui.Button:create"); if (!ok) { break; } - cocos2d::ui::Button* ret = cocos2d::ui::Button::create(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "ccui.Button",(cocos2d::ui::Button*)ret); + axis::ui::Button* ret = axis::ui::Button::create(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "ccui.Button",(axis::ui::Button*)ret); return 1; } } while (0); @@ -8240,8 +8240,8 @@ int lua_cocos2dx_ui_Button_create(lua_State* tolua_S) { if (argc == 0) { - cocos2d::ui::Button* ret = cocos2d::ui::Button::create(); - object_to_luaval(tolua_S, "ccui.Button",(cocos2d::ui::Button*)ret); + axis::ui::Button* ret = axis::ui::Button::create(); + object_to_luaval(tolua_S, "ccui.Button",(axis::ui::Button*)ret); return 1; } } while (0); @@ -8276,8 +8276,8 @@ int lua_cocos2dx_ui_Button_createInstance(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Button_createInstance'", nullptr); return 0; } - cocos2d::Ref* ret = cocos2d::ui::Button::createInstance(); - object_to_luaval(tolua_S, "cc.Ref",(cocos2d::Ref*)ret); + axis::Ref* ret = axis::ui::Button::createInstance(); + object_to_luaval(tolua_S, "cc.Ref",(axis::Ref*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.Button:createInstance",argc, 0); @@ -8291,7 +8291,7 @@ int lua_cocos2dx_ui_Button_createInstance(lua_State* tolua_S) int lua_cocos2dx_ui_Button_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Button* cobj = nullptr; + axis::ui::Button* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8308,7 +8308,7 @@ int lua_cocos2dx_ui_Button_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Button_constructor'", nullptr); return 0; } - cobj = new cocos2d::ui::Button(); + cobj = new axis::ui::Button(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -8380,7 +8380,7 @@ int lua_register_cocos2dx_ui_Button(lua_State* tolua_S) tolua_function(tolua_S,"create", lua_cocos2dx_ui_Button_create); tolua_function(tolua_S,"createInstance", lua_cocos2dx_ui_Button_createInstance); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ui::Button).name(); // rtti is literal storage + auto typeName = typeid(axis::ui::Button).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccui.Button"; g_typeCast[typeName] = "ccui.Button"; return 1; @@ -8389,7 +8389,7 @@ int lua_register_cocos2dx_ui_Button(lua_State* tolua_S) int lua_cocos2dx_ui_AbstractCheckButton_getCrossDisabledFile(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::AbstractCheckButton* cobj = nullptr; + axis::ui::AbstractCheckButton* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8401,7 +8401,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_getCrossDisabledFile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8419,7 +8419,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_getCrossDisabledFile(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_AbstractCheckButton_getCrossDisabledFile'", nullptr); return 0; } - cocos2d::ResourceData ret = cobj->getCrossDisabledFile(); + axis::ResourceData ret = cobj->getCrossDisabledFile(); #pragma warning NO CONVERSION FROM NATIVE FOR ResourceData; return 1; } @@ -8436,7 +8436,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_getCrossDisabledFile(lua_State* tolua_S) int lua_cocos2dx_ui_AbstractCheckButton_getBackDisabledFile(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::AbstractCheckButton* cobj = nullptr; + axis::ui::AbstractCheckButton* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8448,7 +8448,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_getBackDisabledFile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8466,7 +8466,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_getBackDisabledFile(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_AbstractCheckButton_getBackDisabledFile'", nullptr); return 0; } - cocos2d::ResourceData ret = cobj->getBackDisabledFile(); + axis::ResourceData ret = cobj->getBackDisabledFile(); #pragma warning NO CONVERSION FROM NATIVE FOR ResourceData; return 1; } @@ -8483,7 +8483,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_getBackDisabledFile(lua_State* tolua_S) int lua_cocos2dx_ui_AbstractCheckButton_loadTextureBackGroundSelected(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::AbstractCheckButton* cobj = nullptr; + axis::ui::AbstractCheckButton* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8495,7 +8495,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_loadTextureBackGroundSelected(lua_State* if (!tolua_isusertype(tolua_S,1,"ccui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8523,7 +8523,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_loadTextureBackGroundSelected(lua_State* if (argc == 2) { std::string_view arg0; - cocos2d::ui::Widget::TextureResType arg1; + axis::ui::Widget::TextureResType arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.AbstractCheckButton:loadTextureBackGroundSelected"); @@ -8550,7 +8550,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_loadTextureBackGroundSelected(lua_State* int lua_cocos2dx_ui_AbstractCheckButton_loadTextureBackGroundDisabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::AbstractCheckButton* cobj = nullptr; + axis::ui::AbstractCheckButton* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8562,7 +8562,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_loadTextureBackGroundDisabled(lua_State* if (!tolua_isusertype(tolua_S,1,"ccui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8590,7 +8590,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_loadTextureBackGroundDisabled(lua_State* if (argc == 2) { std::string_view arg0; - cocos2d::ui::Widget::TextureResType arg1; + axis::ui::Widget::TextureResType arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.AbstractCheckButton:loadTextureBackGroundDisabled"); @@ -8617,7 +8617,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_loadTextureBackGroundDisabled(lua_State* int lua_cocos2dx_ui_AbstractCheckButton_getCrossNormalFile(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::AbstractCheckButton* cobj = nullptr; + axis::ui::AbstractCheckButton* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8629,7 +8629,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_getCrossNormalFile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8647,7 +8647,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_getCrossNormalFile(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_AbstractCheckButton_getCrossNormalFile'", nullptr); return 0; } - cocos2d::ResourceData ret = cobj->getCrossNormalFile(); + axis::ResourceData ret = cobj->getCrossNormalFile(); #pragma warning NO CONVERSION FROM NATIVE FOR ResourceData; return 1; } @@ -8664,7 +8664,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_getCrossNormalFile(lua_State* tolua_S) int lua_cocos2dx_ui_AbstractCheckButton_setSelected(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::AbstractCheckButton* cobj = nullptr; + axis::ui::AbstractCheckButton* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8676,7 +8676,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_setSelected(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8714,7 +8714,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_setSelected(lua_State* tolua_S) int lua_cocos2dx_ui_AbstractCheckButton_getBackPressedFile(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::AbstractCheckButton* cobj = nullptr; + axis::ui::AbstractCheckButton* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8726,7 +8726,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_getBackPressedFile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8744,7 +8744,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_getBackPressedFile(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_AbstractCheckButton_getBackPressedFile'", nullptr); return 0; } - cocos2d::ResourceData ret = cobj->getBackPressedFile(); + axis::ResourceData ret = cobj->getBackPressedFile(); #pragma warning NO CONVERSION FROM NATIVE FOR ResourceData; return 1; } @@ -8761,7 +8761,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_getBackPressedFile(lua_State* tolua_S) int lua_cocos2dx_ui_AbstractCheckButton_getRendererFrontCrossDisabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::AbstractCheckButton* cobj = nullptr; + axis::ui::AbstractCheckButton* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8773,7 +8773,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_getRendererFrontCrossDisabled(lua_State* if (!tolua_isusertype(tolua_S,1,"ccui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8791,8 +8791,8 @@ int lua_cocos2dx_ui_AbstractCheckButton_getRendererFrontCrossDisabled(lua_State* tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_AbstractCheckButton_getRendererFrontCrossDisabled'", nullptr); return 0; } - cocos2d::Sprite* ret = cobj->getRendererFrontCrossDisabled(); - object_to_luaval(tolua_S, "cc.Sprite",(cocos2d::Sprite*)ret); + axis::Sprite* ret = cobj->getRendererFrontCrossDisabled(); + object_to_luaval(tolua_S, "cc.Sprite",(axis::Sprite*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.AbstractCheckButton:getRendererFrontCrossDisabled",argc, 0); @@ -8808,7 +8808,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_getRendererFrontCrossDisabled(lua_State* int lua_cocos2dx_ui_AbstractCheckButton_getRendererBackground(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::AbstractCheckButton* cobj = nullptr; + axis::ui::AbstractCheckButton* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8820,7 +8820,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_getRendererBackground(lua_State* tolua_S if (!tolua_isusertype(tolua_S,1,"ccui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8838,8 +8838,8 @@ int lua_cocos2dx_ui_AbstractCheckButton_getRendererBackground(lua_State* tolua_S tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_AbstractCheckButton_getRendererBackground'", nullptr); return 0; } - cocos2d::Sprite* ret = cobj->getRendererBackground(); - object_to_luaval(tolua_S, "cc.Sprite",(cocos2d::Sprite*)ret); + axis::Sprite* ret = cobj->getRendererBackground(); + object_to_luaval(tolua_S, "cc.Sprite",(axis::Sprite*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.AbstractCheckButton:getRendererBackground",argc, 0); @@ -8855,7 +8855,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_getRendererBackground(lua_State* tolua_S int lua_cocos2dx_ui_AbstractCheckButton_loadTextureFrontCross(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::AbstractCheckButton* cobj = nullptr; + axis::ui::AbstractCheckButton* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8867,7 +8867,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_loadTextureFrontCross(lua_State* tolua_S if (!tolua_isusertype(tolua_S,1,"ccui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8895,7 +8895,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_loadTextureFrontCross(lua_State* tolua_S if (argc == 2) { std::string_view arg0; - cocos2d::ui::Widget::TextureResType arg1; + axis::ui::Widget::TextureResType arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.AbstractCheckButton:loadTextureFrontCross"); @@ -8922,7 +8922,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_loadTextureFrontCross(lua_State* tolua_S int lua_cocos2dx_ui_AbstractCheckButton_getRendererBackgroundDisabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::AbstractCheckButton* cobj = nullptr; + axis::ui::AbstractCheckButton* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8934,7 +8934,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_getRendererBackgroundDisabled(lua_State* if (!tolua_isusertype(tolua_S,1,"ccui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -8952,8 +8952,8 @@ int lua_cocos2dx_ui_AbstractCheckButton_getRendererBackgroundDisabled(lua_State* tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_AbstractCheckButton_getRendererBackgroundDisabled'", nullptr); return 0; } - cocos2d::Sprite* ret = cobj->getRendererBackgroundDisabled(); - object_to_luaval(tolua_S, "cc.Sprite",(cocos2d::Sprite*)ret); + axis::Sprite* ret = cobj->getRendererBackgroundDisabled(); + object_to_luaval(tolua_S, "cc.Sprite",(axis::Sprite*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.AbstractCheckButton:getRendererBackgroundDisabled",argc, 0); @@ -8969,7 +8969,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_getRendererBackgroundDisabled(lua_State* int lua_cocos2dx_ui_AbstractCheckButton_isSelected(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::AbstractCheckButton* cobj = nullptr; + axis::ui::AbstractCheckButton* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -8981,7 +8981,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_isSelected(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9016,7 +9016,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_isSelected(lua_State* tolua_S) int lua_cocos2dx_ui_AbstractCheckButton_init(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::AbstractCheckButton* cobj = nullptr; + axis::ui::AbstractCheckButton* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9028,7 +9028,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9072,7 +9072,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_init(lua_State* tolua_S) std::string_view arg2; std::string_view arg3; std::string_view arg4; - cocos2d::ui::Widget::TextureResType arg5; + axis::ui::Widget::TextureResType arg5; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.AbstractCheckButton:init"); @@ -9107,7 +9107,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_init(lua_State* tolua_S) int lua_cocos2dx_ui_AbstractCheckButton_getBackNormalFile(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::AbstractCheckButton* cobj = nullptr; + axis::ui::AbstractCheckButton* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9119,7 +9119,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_getBackNormalFile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9137,7 +9137,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_getBackNormalFile(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_AbstractCheckButton_getBackNormalFile'", nullptr); return 0; } - cocos2d::ResourceData ret = cobj->getBackNormalFile(); + axis::ResourceData ret = cobj->getBackNormalFile(); #pragma warning NO CONVERSION FROM NATIVE FOR ResourceData; return 1; } @@ -9154,7 +9154,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_getBackNormalFile(lua_State* tolua_S) int lua_cocos2dx_ui_AbstractCheckButton_loadTextures(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::AbstractCheckButton* cobj = nullptr; + axis::ui::AbstractCheckButton* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9166,7 +9166,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_loadTextures(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9210,7 +9210,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_loadTextures(lua_State* tolua_S) std::string_view arg2; std::string_view arg3; std::string_view arg4; - cocos2d::ui::Widget::TextureResType arg5; + axis::ui::Widget::TextureResType arg5; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.AbstractCheckButton:loadTextures"); @@ -9245,7 +9245,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_loadTextures(lua_State* tolua_S) int lua_cocos2dx_ui_AbstractCheckButton_getZoomScale(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::AbstractCheckButton* cobj = nullptr; + axis::ui::AbstractCheckButton* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9257,7 +9257,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_getZoomScale(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9292,7 +9292,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_getZoomScale(lua_State* tolua_S) int lua_cocos2dx_ui_AbstractCheckButton_getRendererFrontCross(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::AbstractCheckButton* cobj = nullptr; + axis::ui::AbstractCheckButton* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9304,7 +9304,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_getRendererFrontCross(lua_State* tolua_S if (!tolua_isusertype(tolua_S,1,"ccui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9322,8 +9322,8 @@ int lua_cocos2dx_ui_AbstractCheckButton_getRendererFrontCross(lua_State* tolua_S tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_AbstractCheckButton_getRendererFrontCross'", nullptr); return 0; } - cocos2d::Sprite* ret = cobj->getRendererFrontCross(); - object_to_luaval(tolua_S, "cc.Sprite",(cocos2d::Sprite*)ret); + axis::Sprite* ret = cobj->getRendererFrontCross(); + object_to_luaval(tolua_S, "cc.Sprite",(axis::Sprite*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.AbstractCheckButton:getRendererFrontCross",argc, 0); @@ -9339,7 +9339,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_getRendererFrontCross(lua_State* tolua_S int lua_cocos2dx_ui_AbstractCheckButton_getRendererBackgroundSelected(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::AbstractCheckButton* cobj = nullptr; + axis::ui::AbstractCheckButton* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9351,7 +9351,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_getRendererBackgroundSelected(lua_State* if (!tolua_isusertype(tolua_S,1,"ccui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9369,8 +9369,8 @@ int lua_cocos2dx_ui_AbstractCheckButton_getRendererBackgroundSelected(lua_State* tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_AbstractCheckButton_getRendererBackgroundSelected'", nullptr); return 0; } - cocos2d::Sprite* ret = cobj->getRendererBackgroundSelected(); - object_to_luaval(tolua_S, "cc.Sprite",(cocos2d::Sprite*)ret); + axis::Sprite* ret = cobj->getRendererBackgroundSelected(); + object_to_luaval(tolua_S, "cc.Sprite",(axis::Sprite*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.AbstractCheckButton:getRendererBackgroundSelected",argc, 0); @@ -9386,7 +9386,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_getRendererBackgroundSelected(lua_State* int lua_cocos2dx_ui_AbstractCheckButton_loadTextureBackGround(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::AbstractCheckButton* cobj = nullptr; + axis::ui::AbstractCheckButton* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9398,7 +9398,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_loadTextureBackGround(lua_State* tolua_S if (!tolua_isusertype(tolua_S,1,"ccui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9426,7 +9426,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_loadTextureBackGround(lua_State* tolua_S if (argc == 2) { std::string_view arg0; - cocos2d::ui::Widget::TextureResType arg1; + axis::ui::Widget::TextureResType arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.AbstractCheckButton:loadTextureBackGround"); @@ -9453,7 +9453,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_loadTextureBackGround(lua_State* tolua_S int lua_cocos2dx_ui_AbstractCheckButton_setZoomScale(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::AbstractCheckButton* cobj = nullptr; + axis::ui::AbstractCheckButton* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9465,7 +9465,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_setZoomScale(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9503,7 +9503,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_setZoomScale(lua_State* tolua_S) int lua_cocos2dx_ui_AbstractCheckButton_loadTextureFrontCrossDisabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::AbstractCheckButton* cobj = nullptr; + axis::ui::AbstractCheckButton* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9515,7 +9515,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_loadTextureFrontCrossDisabled(lua_State* if (!tolua_isusertype(tolua_S,1,"ccui.AbstractCheckButton",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::AbstractCheckButton*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9543,7 +9543,7 @@ int lua_cocos2dx_ui_AbstractCheckButton_loadTextureFrontCrossDisabled(lua_State* if (argc == 2) { std::string_view arg0; - cocos2d::ui::Widget::TextureResType arg1; + axis::ui::Widget::TextureResType arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.AbstractCheckButton:loadTextureFrontCrossDisabled"); @@ -9601,7 +9601,7 @@ int lua_register_cocos2dx_ui_AbstractCheckButton(lua_State* tolua_S) tolua_function(tolua_S,"setZoomScale",lua_cocos2dx_ui_AbstractCheckButton_setZoomScale); tolua_function(tolua_S,"loadTextureFrontCrossDisabled",lua_cocos2dx_ui_AbstractCheckButton_loadTextureFrontCrossDisabled); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ui::AbstractCheckButton).name(); // rtti is literal storage + auto typeName = typeid(axis::ui::AbstractCheckButton).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccui.AbstractCheckButton"; g_typeCast[typeName] = "ccui.AbstractCheckButton"; return 1; @@ -9610,7 +9610,7 @@ int lua_register_cocos2dx_ui_AbstractCheckButton(lua_State* tolua_S) int lua_cocos2dx_ui_CheckBox_addEventListener(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::CheckBox* cobj = nullptr; + axis::ui::CheckBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9622,7 +9622,7 @@ int lua_cocos2dx_ui_CheckBox_addEventListener(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.CheckBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::CheckBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::CheckBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9635,7 +9635,7 @@ int lua_cocos2dx_ui_CheckBox_addEventListener(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - std::function arg0; + std::function arg0; do { // Lambda binding for lua is not supported. @@ -9694,8 +9694,8 @@ int lua_cocos2dx_ui_CheckBox_create(lua_State* tolua_S) std::string_view arg4; ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "ccui.CheckBox:create"); if (!ok) { break; } - cocos2d::ui::CheckBox* ret = cocos2d::ui::CheckBox::create(arg0, arg1, arg2, arg3, arg4); - object_to_luaval(tolua_S, "ccui.CheckBox",(cocos2d::ui::CheckBox*)ret); + axis::ui::CheckBox* ret = axis::ui::CheckBox::create(arg0, arg1, arg2, arg3, arg4); + object_to_luaval(tolua_S, "ccui.CheckBox",(axis::ui::CheckBox*)ret); return 1; } } while (0); @@ -9719,11 +9719,11 @@ int lua_cocos2dx_ui_CheckBox_create(lua_State* tolua_S) std::string_view arg4; ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "ccui.CheckBox:create"); if (!ok) { break; } - cocos2d::ui::Widget::TextureResType arg5; + axis::ui::Widget::TextureResType arg5; ok &= luaval_to_int32(tolua_S, 7,(int *)&arg5, "ccui.CheckBox:create"); if (!ok) { break; } - cocos2d::ui::CheckBox* ret = cocos2d::ui::CheckBox::create(arg0, arg1, arg2, arg3, arg4, arg5); - object_to_luaval(tolua_S, "ccui.CheckBox",(cocos2d::ui::CheckBox*)ret); + axis::ui::CheckBox* ret = axis::ui::CheckBox::create(arg0, arg1, arg2, arg3, arg4, arg5); + object_to_luaval(tolua_S, "ccui.CheckBox",(axis::ui::CheckBox*)ret); return 1; } } while (0); @@ -9732,8 +9732,8 @@ int lua_cocos2dx_ui_CheckBox_create(lua_State* tolua_S) { if (argc == 0) { - cocos2d::ui::CheckBox* ret = cocos2d::ui::CheckBox::create(); - object_to_luaval(tolua_S, "ccui.CheckBox",(cocos2d::ui::CheckBox*)ret); + axis::ui::CheckBox* ret = axis::ui::CheckBox::create(); + object_to_luaval(tolua_S, "ccui.CheckBox",(axis::ui::CheckBox*)ret); return 1; } } while (0); @@ -9748,8 +9748,8 @@ int lua_cocos2dx_ui_CheckBox_create(lua_State* tolua_S) std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ccui.CheckBox:create"); if (!ok) { break; } - cocos2d::ui::CheckBox* ret = cocos2d::ui::CheckBox::create(arg0, arg1); - object_to_luaval(tolua_S, "ccui.CheckBox",(cocos2d::ui::CheckBox*)ret); + axis::ui::CheckBox* ret = axis::ui::CheckBox::create(arg0, arg1); + object_to_luaval(tolua_S, "ccui.CheckBox",(axis::ui::CheckBox*)ret); return 1; } } while (0); @@ -9764,11 +9764,11 @@ int lua_cocos2dx_ui_CheckBox_create(lua_State* tolua_S) std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ccui.CheckBox:create"); if (!ok) { break; } - cocos2d::ui::Widget::TextureResType arg2; + axis::ui::Widget::TextureResType arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ccui.CheckBox:create"); if (!ok) { break; } - cocos2d::ui::CheckBox* ret = cocos2d::ui::CheckBox::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "ccui.CheckBox",(cocos2d::ui::CheckBox*)ret); + axis::ui::CheckBox* ret = axis::ui::CheckBox::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "ccui.CheckBox",(axis::ui::CheckBox*)ret); return 1; } } while (0); @@ -9803,8 +9803,8 @@ int lua_cocos2dx_ui_CheckBox_createInstance(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_CheckBox_createInstance'", nullptr); return 0; } - cocos2d::Ref* ret = cocos2d::ui::CheckBox::createInstance(); - object_to_luaval(tolua_S, "cc.Ref",(cocos2d::Ref*)ret); + axis::Ref* ret = axis::ui::CheckBox::createInstance(); + object_to_luaval(tolua_S, "cc.Ref",(axis::Ref*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.CheckBox:createInstance",argc, 0); @@ -9818,7 +9818,7 @@ int lua_cocos2dx_ui_CheckBox_createInstance(lua_State* tolua_S) int lua_cocos2dx_ui_CheckBox_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::CheckBox* cobj = nullptr; + axis::ui::CheckBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9835,7 +9835,7 @@ int lua_cocos2dx_ui_CheckBox_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_CheckBox_constructor'", nullptr); return 0; } - cobj = new cocos2d::ui::CheckBox(); + cobj = new axis::ui::CheckBox(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -9869,7 +9869,7 @@ int lua_register_cocos2dx_ui_CheckBox(lua_State* tolua_S) tolua_function(tolua_S,"create", lua_cocos2dx_ui_CheckBox_create); tolua_function(tolua_S,"createInstance", lua_cocos2dx_ui_CheckBox_createInstance); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ui::CheckBox).name(); // rtti is literal storage + auto typeName = typeid(axis::ui::CheckBox).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccui.CheckBox"; g_typeCast[typeName] = "ccui.CheckBox"; return 1; @@ -9878,7 +9878,7 @@ int lua_register_cocos2dx_ui_CheckBox(lua_State* tolua_S) int lua_cocos2dx_ui_RadioButton_addEventListener(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RadioButton* cobj = nullptr; + axis::ui::RadioButton* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -9890,7 +9890,7 @@ int lua_cocos2dx_ui_RadioButton_addEventListener(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RadioButton",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RadioButton*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RadioButton*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -9903,7 +9903,7 @@ int lua_cocos2dx_ui_RadioButton_addEventListener(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - std::function arg0; + std::function arg0; do { // Lambda binding for lua is not supported. @@ -9962,8 +9962,8 @@ int lua_cocos2dx_ui_RadioButton_create(lua_State* tolua_S) std::string_view arg4; ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "ccui.RadioButton:create"); if (!ok) { break; } - cocos2d::ui::RadioButton* ret = cocos2d::ui::RadioButton::create(arg0, arg1, arg2, arg3, arg4); - object_to_luaval(tolua_S, "ccui.RadioButton",(cocos2d::ui::RadioButton*)ret); + axis::ui::RadioButton* ret = axis::ui::RadioButton::create(arg0, arg1, arg2, arg3, arg4); + object_to_luaval(tolua_S, "ccui.RadioButton",(axis::ui::RadioButton*)ret); return 1; } } while (0); @@ -9987,11 +9987,11 @@ int lua_cocos2dx_ui_RadioButton_create(lua_State* tolua_S) std::string_view arg4; ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "ccui.RadioButton:create"); if (!ok) { break; } - cocos2d::ui::Widget::TextureResType arg5; + axis::ui::Widget::TextureResType arg5; ok &= luaval_to_int32(tolua_S, 7,(int *)&arg5, "ccui.RadioButton:create"); if (!ok) { break; } - cocos2d::ui::RadioButton* ret = cocos2d::ui::RadioButton::create(arg0, arg1, arg2, arg3, arg4, arg5); - object_to_luaval(tolua_S, "ccui.RadioButton",(cocos2d::ui::RadioButton*)ret); + axis::ui::RadioButton* ret = axis::ui::RadioButton::create(arg0, arg1, arg2, arg3, arg4, arg5); + object_to_luaval(tolua_S, "ccui.RadioButton",(axis::ui::RadioButton*)ret); return 1; } } while (0); @@ -10000,8 +10000,8 @@ int lua_cocos2dx_ui_RadioButton_create(lua_State* tolua_S) { if (argc == 0) { - cocos2d::ui::RadioButton* ret = cocos2d::ui::RadioButton::create(); - object_to_luaval(tolua_S, "ccui.RadioButton",(cocos2d::ui::RadioButton*)ret); + axis::ui::RadioButton* ret = axis::ui::RadioButton::create(); + object_to_luaval(tolua_S, "ccui.RadioButton",(axis::ui::RadioButton*)ret); return 1; } } while (0); @@ -10016,8 +10016,8 @@ int lua_cocos2dx_ui_RadioButton_create(lua_State* tolua_S) std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ccui.RadioButton:create"); if (!ok) { break; } - cocos2d::ui::RadioButton* ret = cocos2d::ui::RadioButton::create(arg0, arg1); - object_to_luaval(tolua_S, "ccui.RadioButton",(cocos2d::ui::RadioButton*)ret); + axis::ui::RadioButton* ret = axis::ui::RadioButton::create(arg0, arg1); + object_to_luaval(tolua_S, "ccui.RadioButton",(axis::ui::RadioButton*)ret); return 1; } } while (0); @@ -10032,11 +10032,11 @@ int lua_cocos2dx_ui_RadioButton_create(lua_State* tolua_S) std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ccui.RadioButton:create"); if (!ok) { break; } - cocos2d::ui::Widget::TextureResType arg2; + axis::ui::Widget::TextureResType arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ccui.RadioButton:create"); if (!ok) { break; } - cocos2d::ui::RadioButton* ret = cocos2d::ui::RadioButton::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "ccui.RadioButton",(cocos2d::ui::RadioButton*)ret); + axis::ui::RadioButton* ret = axis::ui::RadioButton::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "ccui.RadioButton",(axis::ui::RadioButton*)ret); return 1; } } while (0); @@ -10071,8 +10071,8 @@ int lua_cocos2dx_ui_RadioButton_createInstance(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RadioButton_createInstance'", nullptr); return 0; } - cocos2d::Ref* ret = cocos2d::ui::RadioButton::createInstance(); - object_to_luaval(tolua_S, "cc.Ref",(cocos2d::Ref*)ret); + axis::Ref* ret = axis::ui::RadioButton::createInstance(); + object_to_luaval(tolua_S, "cc.Ref",(axis::Ref*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.RadioButton:createInstance",argc, 0); @@ -10086,7 +10086,7 @@ int lua_cocos2dx_ui_RadioButton_createInstance(lua_State* tolua_S) int lua_cocos2dx_ui_RadioButton_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RadioButton* cobj = nullptr; + axis::ui::RadioButton* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10103,7 +10103,7 @@ int lua_cocos2dx_ui_RadioButton_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RadioButton_constructor'", nullptr); return 0; } - cobj = new cocos2d::ui::RadioButton(); + cobj = new axis::ui::RadioButton(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -10137,7 +10137,7 @@ int lua_register_cocos2dx_ui_RadioButton(lua_State* tolua_S) tolua_function(tolua_S,"create", lua_cocos2dx_ui_RadioButton_create); tolua_function(tolua_S,"createInstance", lua_cocos2dx_ui_RadioButton_createInstance); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ui::RadioButton).name(); // rtti is literal storage + auto typeName = typeid(axis::ui::RadioButton).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccui.RadioButton"; g_typeCast[typeName] = "ccui.RadioButton"; return 1; @@ -10146,7 +10146,7 @@ int lua_register_cocos2dx_ui_RadioButton(lua_State* tolua_S) int lua_cocos2dx_ui_RadioButtonGroup_removeRadioButton(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RadioButtonGroup* cobj = nullptr; + axis::ui::RadioButtonGroup* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10158,7 +10158,7 @@ int lua_cocos2dx_ui_RadioButtonGroup_removeRadioButton(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RadioButtonGroup",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RadioButtonGroup*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RadioButtonGroup*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10171,9 +10171,9 @@ int lua_cocos2dx_ui_RadioButtonGroup_removeRadioButton(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ui::RadioButton* arg0; + axis::ui::RadioButton* arg0; - ok &= luaval_to_object(tolua_S, 2, "ccui.RadioButton",&arg0, "ccui.RadioButtonGroup:removeRadioButton"); + ok &= luaval_to_object(tolua_S, 2, "ccui.RadioButton",&arg0, "ccui.RadioButtonGroup:removeRadioButton"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RadioButtonGroup_removeRadioButton'", nullptr); @@ -10196,7 +10196,7 @@ int lua_cocos2dx_ui_RadioButtonGroup_removeRadioButton(lua_State* tolua_S) int lua_cocos2dx_ui_RadioButtonGroup_isAllowedNoSelection(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RadioButtonGroup* cobj = nullptr; + axis::ui::RadioButtonGroup* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10208,7 +10208,7 @@ int lua_cocos2dx_ui_RadioButtonGroup_isAllowedNoSelection(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RadioButtonGroup",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RadioButtonGroup*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RadioButtonGroup*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10243,7 +10243,7 @@ int lua_cocos2dx_ui_RadioButtonGroup_isAllowedNoSelection(lua_State* tolua_S) int lua_cocos2dx_ui_RadioButtonGroup_getSelectedButtonIndex(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RadioButtonGroup* cobj = nullptr; + axis::ui::RadioButtonGroup* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10255,7 +10255,7 @@ int lua_cocos2dx_ui_RadioButtonGroup_getSelectedButtonIndex(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RadioButtonGroup",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RadioButtonGroup*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RadioButtonGroup*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10290,7 +10290,7 @@ int lua_cocos2dx_ui_RadioButtonGroup_getSelectedButtonIndex(lua_State* tolua_S) int lua_cocos2dx_ui_RadioButtonGroup_setAllowedNoSelection(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RadioButtonGroup* cobj = nullptr; + axis::ui::RadioButtonGroup* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10302,7 +10302,7 @@ int lua_cocos2dx_ui_RadioButtonGroup_setAllowedNoSelection(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RadioButtonGroup",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RadioButtonGroup*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RadioButtonGroup*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10340,7 +10340,7 @@ int lua_cocos2dx_ui_RadioButtonGroup_setAllowedNoSelection(lua_State* tolua_S) int lua_cocos2dx_ui_RadioButtonGroup_setSelectedButtonWithoutEvent(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RadioButtonGroup* cobj = nullptr; + axis::ui::RadioButtonGroup* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -10349,7 +10349,7 @@ int lua_cocos2dx_ui_RadioButtonGroup_setSelectedButtonWithoutEvent(lua_State* to #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccui.RadioButtonGroup",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RadioButtonGroup*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RadioButtonGroup*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -10360,8 +10360,8 @@ int lua_cocos2dx_ui_RadioButtonGroup_setSelectedButtonWithoutEvent(lua_State* to argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { - cocos2d::ui::RadioButton* arg0; - ok &= luaval_to_object(tolua_S, 2, "ccui.RadioButton",&arg0, "ccui.RadioButtonGroup:setSelectedButtonWithoutEvent"); + axis::ui::RadioButton* arg0; + ok &= luaval_to_object(tolua_S, 2, "ccui.RadioButton",&arg0, "ccui.RadioButtonGroup:setSelectedButtonWithoutEvent"); if (!ok) { break; } cobj->setSelectedButtonWithoutEvent(arg0); @@ -10395,7 +10395,7 @@ int lua_cocos2dx_ui_RadioButtonGroup_setSelectedButtonWithoutEvent(lua_State* to int lua_cocos2dx_ui_RadioButtonGroup_addEventListener(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RadioButtonGroup* cobj = nullptr; + axis::ui::RadioButtonGroup* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10407,7 +10407,7 @@ int lua_cocos2dx_ui_RadioButtonGroup_addEventListener(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RadioButtonGroup",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RadioButtonGroup*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RadioButtonGroup*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10420,7 +10420,7 @@ int lua_cocos2dx_ui_RadioButtonGroup_addEventListener(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - std::function arg0; + std::function arg0; do { // Lambda binding for lua is not supported. @@ -10449,7 +10449,7 @@ int lua_cocos2dx_ui_RadioButtonGroup_addEventListener(lua_State* tolua_S) int lua_cocos2dx_ui_RadioButtonGroup_removeAllRadioButtons(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RadioButtonGroup* cobj = nullptr; + axis::ui::RadioButtonGroup* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10461,7 +10461,7 @@ int lua_cocos2dx_ui_RadioButtonGroup_removeAllRadioButtons(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RadioButtonGroup",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RadioButtonGroup*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RadioButtonGroup*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10496,7 +10496,7 @@ int lua_cocos2dx_ui_RadioButtonGroup_removeAllRadioButtons(lua_State* tolua_S) int lua_cocos2dx_ui_RadioButtonGroup_getRadioButtonByIndex(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RadioButtonGroup* cobj = nullptr; + axis::ui::RadioButtonGroup* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10508,7 +10508,7 @@ int lua_cocos2dx_ui_RadioButtonGroup_getRadioButtonByIndex(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RadioButtonGroup",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RadioButtonGroup*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RadioButtonGroup*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10529,8 +10529,8 @@ int lua_cocos2dx_ui_RadioButtonGroup_getRadioButtonByIndex(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RadioButtonGroup_getRadioButtonByIndex'", nullptr); return 0; } - cocos2d::ui::RadioButton* ret = cobj->getRadioButtonByIndex(arg0); - object_to_luaval(tolua_S, "ccui.RadioButton",(cocos2d::ui::RadioButton*)ret); + axis::ui::RadioButton* ret = cobj->getRadioButtonByIndex(arg0); + object_to_luaval(tolua_S, "ccui.RadioButton",(axis::ui::RadioButton*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.RadioButtonGroup:getRadioButtonByIndex",argc, 1); @@ -10546,7 +10546,7 @@ int lua_cocos2dx_ui_RadioButtonGroup_getRadioButtonByIndex(lua_State* tolua_S) int lua_cocos2dx_ui_RadioButtonGroup_getNumberOfRadioButtons(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RadioButtonGroup* cobj = nullptr; + axis::ui::RadioButtonGroup* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10558,7 +10558,7 @@ int lua_cocos2dx_ui_RadioButtonGroup_getNumberOfRadioButtons(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RadioButtonGroup",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RadioButtonGroup*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RadioButtonGroup*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10593,7 +10593,7 @@ int lua_cocos2dx_ui_RadioButtonGroup_getNumberOfRadioButtons(lua_State* tolua_S) int lua_cocos2dx_ui_RadioButtonGroup_addRadioButton(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RadioButtonGroup* cobj = nullptr; + axis::ui::RadioButtonGroup* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10605,7 +10605,7 @@ int lua_cocos2dx_ui_RadioButtonGroup_addRadioButton(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RadioButtonGroup",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RadioButtonGroup*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RadioButtonGroup*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10618,9 +10618,9 @@ int lua_cocos2dx_ui_RadioButtonGroup_addRadioButton(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ui::RadioButton* arg0; + axis::ui::RadioButton* arg0; - ok &= luaval_to_object(tolua_S, 2, "ccui.RadioButton",&arg0, "ccui.RadioButtonGroup:addRadioButton"); + ok &= luaval_to_object(tolua_S, 2, "ccui.RadioButton",&arg0, "ccui.RadioButtonGroup:addRadioButton"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RadioButtonGroup_addRadioButton'", nullptr); @@ -10643,7 +10643,7 @@ int lua_cocos2dx_ui_RadioButtonGroup_addRadioButton(lua_State* tolua_S) int lua_cocos2dx_ui_RadioButtonGroup_setSelectedButton(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RadioButtonGroup* cobj = nullptr; + axis::ui::RadioButtonGroup* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -10652,7 +10652,7 @@ int lua_cocos2dx_ui_RadioButtonGroup_setSelectedButton(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccui.RadioButtonGroup",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RadioButtonGroup*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RadioButtonGroup*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -10663,8 +10663,8 @@ int lua_cocos2dx_ui_RadioButtonGroup_setSelectedButton(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { - cocos2d::ui::RadioButton* arg0; - ok &= luaval_to_object(tolua_S, 2, "ccui.RadioButton",&arg0, "ccui.RadioButtonGroup:setSelectedButton"); + axis::ui::RadioButton* arg0; + ok &= luaval_to_object(tolua_S, 2, "ccui.RadioButton",&arg0, "ccui.RadioButtonGroup:setSelectedButton"); if (!ok) { break; } cobj->setSelectedButton(arg0); @@ -10717,8 +10717,8 @@ int lua_cocos2dx_ui_RadioButtonGroup_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RadioButtonGroup_create'", nullptr); return 0; } - cocos2d::ui::RadioButtonGroup* ret = cocos2d::ui::RadioButtonGroup::create(); - object_to_luaval(tolua_S, "ccui.RadioButtonGroup",(cocos2d::ui::RadioButtonGroup*)ret); + axis::ui::RadioButtonGroup* ret = axis::ui::RadioButtonGroup::create(); + object_to_luaval(tolua_S, "ccui.RadioButtonGroup",(axis::ui::RadioButtonGroup*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.RadioButtonGroup:create",argc, 0); @@ -10732,7 +10732,7 @@ int lua_cocos2dx_ui_RadioButtonGroup_create(lua_State* tolua_S) int lua_cocos2dx_ui_RadioButtonGroup_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RadioButtonGroup* cobj = nullptr; + axis::ui::RadioButtonGroup* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10749,7 +10749,7 @@ int lua_cocos2dx_ui_RadioButtonGroup_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RadioButtonGroup_constructor'", nullptr); return 0; } - cobj = new cocos2d::ui::RadioButtonGroup(); + cobj = new axis::ui::RadioButtonGroup(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -10792,7 +10792,7 @@ int lua_register_cocos2dx_ui_RadioButtonGroup(lua_State* tolua_S) tolua_function(tolua_S,"setSelectedButton",lua_cocos2dx_ui_RadioButtonGroup_setSelectedButton); tolua_function(tolua_S,"create", lua_cocos2dx_ui_RadioButtonGroup_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ui::RadioButtonGroup).name(); // rtti is literal storage + auto typeName = typeid(axis::ui::RadioButtonGroup).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccui.RadioButtonGroup"; g_typeCast[typeName] = "ccui.RadioButtonGroup"; return 1; @@ -10801,7 +10801,7 @@ int lua_register_cocos2dx_ui_RadioButtonGroup(lua_State* tolua_S) int lua_cocos2dx_ui_ImageView_getBlendFunc(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ImageView* cobj = nullptr; + axis::ui::ImageView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10813,7 +10813,7 @@ int lua_cocos2dx_ui_ImageView_getBlendFunc(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ImageView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ImageView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ImageView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10831,7 +10831,7 @@ int lua_cocos2dx_ui_ImageView_getBlendFunc(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_ImageView_getBlendFunc'", nullptr); return 0; } - const cocos2d::BlendFunc& ret = cobj->getBlendFunc(); + const axis::BlendFunc& ret = cobj->getBlendFunc(); blendfunc_to_luaval(tolua_S, ret); return 1; } @@ -10848,7 +10848,7 @@ int lua_cocos2dx_ui_ImageView_getBlendFunc(lua_State* tolua_S) int lua_cocos2dx_ui_ImageView_loadTexture(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ImageView* cobj = nullptr; + axis::ui::ImageView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10860,7 +10860,7 @@ int lua_cocos2dx_ui_ImageView_loadTexture(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ImageView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ImageView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ImageView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10888,7 +10888,7 @@ int lua_cocos2dx_ui_ImageView_loadTexture(lua_State* tolua_S) if (argc == 2) { std::string_view arg0; - cocos2d::ui::Widget::TextureResType arg1; + axis::ui::Widget::TextureResType arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.ImageView:loadTexture"); @@ -10915,7 +10915,7 @@ int lua_cocos2dx_ui_ImageView_loadTexture(lua_State* tolua_S) int lua_cocos2dx_ui_ImageView_setBlendFunc(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ImageView* cobj = nullptr; + axis::ui::ImageView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10927,7 +10927,7 @@ int lua_cocos2dx_ui_ImageView_setBlendFunc(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ImageView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ImageView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ImageView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -10940,7 +10940,7 @@ int lua_cocos2dx_ui_ImageView_setBlendFunc(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::BlendFunc arg0; + axis::BlendFunc arg0; ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "ccui.ImageView:setBlendFunc"); if(!ok) @@ -10965,7 +10965,7 @@ int lua_cocos2dx_ui_ImageView_setBlendFunc(lua_State* tolua_S) int lua_cocos2dx_ui_ImageView_init(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ImageView* cobj = nullptr; + axis::ui::ImageView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -10977,7 +10977,7 @@ int lua_cocos2dx_ui_ImageView_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ImageView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ImageView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ImageView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11005,7 +11005,7 @@ int lua_cocos2dx_ui_ImageView_init(lua_State* tolua_S) if (argc == 2) { std::string_view arg0; - cocos2d::ui::Widget::TextureResType arg1; + axis::ui::Widget::TextureResType arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.ImageView:init"); @@ -11032,7 +11032,7 @@ int lua_cocos2dx_ui_ImageView_init(lua_State* tolua_S) int lua_cocos2dx_ui_ImageView_setScale9Enabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ImageView* cobj = nullptr; + axis::ui::ImageView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11044,7 +11044,7 @@ int lua_cocos2dx_ui_ImageView_setScale9Enabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ImageView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ImageView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ImageView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11082,7 +11082,7 @@ int lua_cocos2dx_ui_ImageView_setScale9Enabled(lua_State* tolua_S) int lua_cocos2dx_ui_ImageView_setTextureRect(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ImageView* cobj = nullptr; + axis::ui::ImageView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11094,7 +11094,7 @@ int lua_cocos2dx_ui_ImageView_setTextureRect(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ImageView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ImageView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ImageView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11107,7 +11107,7 @@ int lua_cocos2dx_ui_ImageView_setTextureRect(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Rect arg0; + axis::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "ccui.ImageView:setTextureRect"); if(!ok) @@ -11132,7 +11132,7 @@ int lua_cocos2dx_ui_ImageView_setTextureRect(lua_State* tolua_S) int lua_cocos2dx_ui_ImageView_setCapInsets(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ImageView* cobj = nullptr; + axis::ui::ImageView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11144,7 +11144,7 @@ int lua_cocos2dx_ui_ImageView_setCapInsets(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ImageView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ImageView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ImageView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11157,7 +11157,7 @@ int lua_cocos2dx_ui_ImageView_setCapInsets(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Rect arg0; + axis::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "ccui.ImageView:setCapInsets"); if(!ok) @@ -11182,7 +11182,7 @@ int lua_cocos2dx_ui_ImageView_setCapInsets(lua_State* tolua_S) int lua_cocos2dx_ui_ImageView_getRenderFile(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ImageView* cobj = nullptr; + axis::ui::ImageView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11194,7 +11194,7 @@ int lua_cocos2dx_ui_ImageView_getRenderFile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ImageView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ImageView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ImageView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11212,7 +11212,7 @@ int lua_cocos2dx_ui_ImageView_getRenderFile(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_ImageView_getRenderFile'", nullptr); return 0; } - cocos2d::ResourceData ret = cobj->getRenderFile(); + axis::ResourceData ret = cobj->getRenderFile(); #pragma warning NO CONVERSION FROM NATIVE FOR ResourceData; return 1; } @@ -11229,7 +11229,7 @@ int lua_cocos2dx_ui_ImageView_getRenderFile(lua_State* tolua_S) int lua_cocos2dx_ui_ImageView_getCapInsets(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ImageView* cobj = nullptr; + axis::ui::ImageView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11241,7 +11241,7 @@ int lua_cocos2dx_ui_ImageView_getCapInsets(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ImageView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ImageView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ImageView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11259,7 +11259,7 @@ int lua_cocos2dx_ui_ImageView_getCapInsets(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_ImageView_getCapInsets'", nullptr); return 0; } - const cocos2d::Rect& ret = cobj->getCapInsets(); + const axis::Rect& ret = cobj->getCapInsets(); rect_to_luaval(tolua_S, ret); return 1; } @@ -11276,7 +11276,7 @@ int lua_cocos2dx_ui_ImageView_getCapInsets(lua_State* tolua_S) int lua_cocos2dx_ui_ImageView_isScale9Enabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ImageView* cobj = nullptr; + axis::ui::ImageView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11288,7 +11288,7 @@ int lua_cocos2dx_ui_ImageView_isScale9Enabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ImageView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ImageView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ImageView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11341,8 +11341,8 @@ int lua_cocos2dx_ui_ImageView_create(lua_State* tolua_S) std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.ImageView:create"); if (!ok) { break; } - cocos2d::ui::ImageView* ret = cocos2d::ui::ImageView::create(arg0); - object_to_luaval(tolua_S, "ccui.ImageView",(cocos2d::ui::ImageView*)ret); + axis::ui::ImageView* ret = axis::ui::ImageView::create(arg0); + object_to_luaval(tolua_S, "ccui.ImageView",(axis::ui::ImageView*)ret); return 1; } } while (0); @@ -11354,11 +11354,11 @@ int lua_cocos2dx_ui_ImageView_create(lua_State* tolua_S) std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.ImageView:create"); if (!ok) { break; } - cocos2d::ui::Widget::TextureResType arg1; + axis::ui::Widget::TextureResType arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ccui.ImageView:create"); if (!ok) { break; } - cocos2d::ui::ImageView* ret = cocos2d::ui::ImageView::create(arg0, arg1); - object_to_luaval(tolua_S, "ccui.ImageView",(cocos2d::ui::ImageView*)ret); + axis::ui::ImageView* ret = axis::ui::ImageView::create(arg0, arg1); + object_to_luaval(tolua_S, "ccui.ImageView",(axis::ui::ImageView*)ret); return 1; } } while (0); @@ -11367,8 +11367,8 @@ int lua_cocos2dx_ui_ImageView_create(lua_State* tolua_S) { if (argc == 0) { - cocos2d::ui::ImageView* ret = cocos2d::ui::ImageView::create(); - object_to_luaval(tolua_S, "ccui.ImageView",(cocos2d::ui::ImageView*)ret); + axis::ui::ImageView* ret = axis::ui::ImageView::create(); + object_to_luaval(tolua_S, "ccui.ImageView",(axis::ui::ImageView*)ret); return 1; } } while (0); @@ -11403,8 +11403,8 @@ int lua_cocos2dx_ui_ImageView_createInstance(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_ImageView_createInstance'", nullptr); return 0; } - cocos2d::Ref* ret = cocos2d::ui::ImageView::createInstance(); - object_to_luaval(tolua_S, "cc.Ref",(cocos2d::Ref*)ret); + axis::Ref* ret = axis::ui::ImageView::createInstance(); + object_to_luaval(tolua_S, "cc.Ref",(axis::Ref*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.ImageView:createInstance",argc, 0); @@ -11418,7 +11418,7 @@ int lua_cocos2dx_ui_ImageView_createInstance(lua_State* tolua_S) int lua_cocos2dx_ui_ImageView_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ImageView* cobj = nullptr; + axis::ui::ImageView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11435,7 +11435,7 @@ int lua_cocos2dx_ui_ImageView_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_ImageView_constructor'", nullptr); return 0; } - cobj = new cocos2d::ui::ImageView(); + cobj = new axis::ui::ImageView(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -11478,7 +11478,7 @@ int lua_register_cocos2dx_ui_ImageView(lua_State* tolua_S) tolua_function(tolua_S,"create", lua_cocos2dx_ui_ImageView_create); tolua_function(tolua_S,"createInstance", lua_cocos2dx_ui_ImageView_createInstance); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ui::ImageView).name(); // rtti is literal storage + auto typeName = typeid(axis::ui::ImageView).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccui.ImageView"; g_typeCast[typeName] = "ccui.ImageView"; return 1; @@ -11487,7 +11487,7 @@ int lua_register_cocos2dx_ui_ImageView(lua_State* tolua_S) int lua_cocos2dx_ui_Text_enableShadow(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Text* cobj = nullptr; + axis::ui::Text* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11499,7 +11499,7 @@ int lua_cocos2dx_ui_Text_enableShadow(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Text",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Text*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Text*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11523,7 +11523,7 @@ int lua_cocos2dx_ui_Text_enableShadow(lua_State* tolua_S) } if (argc == 1) { - cocos2d::Color4B arg0; + axis::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "ccui.Text:enableShadow"); if(!ok) @@ -11537,8 +11537,8 @@ int lua_cocos2dx_ui_Text_enableShadow(lua_State* tolua_S) } if (argc == 2) { - cocos2d::Color4B arg0; - cocos2d::Vec2 arg1; + axis::Color4B arg0; + axis::Vec2 arg1; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "ccui.Text:enableShadow"); @@ -11554,8 +11554,8 @@ int lua_cocos2dx_ui_Text_enableShadow(lua_State* tolua_S) } if (argc == 3) { - cocos2d::Color4B arg0; - cocos2d::Vec2 arg1; + axis::Color4B arg0; + axis::Vec2 arg1; int arg2; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "ccui.Text:enableShadow"); @@ -11585,7 +11585,7 @@ int lua_cocos2dx_ui_Text_enableShadow(lua_State* tolua_S) int lua_cocos2dx_ui_Text_getFontSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Text* cobj = nullptr; + axis::ui::Text* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11597,7 +11597,7 @@ int lua_cocos2dx_ui_Text_getFontSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Text",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Text*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Text*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11632,7 +11632,7 @@ int lua_cocos2dx_ui_Text_getFontSize(lua_State* tolua_S) int lua_cocos2dx_ui_Text_getString(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Text* cobj = nullptr; + axis::ui::Text* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11644,7 +11644,7 @@ int lua_cocos2dx_ui_Text_getString(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Text",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Text*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Text*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11679,7 +11679,7 @@ int lua_cocos2dx_ui_Text_getString(lua_State* tolua_S) int lua_cocos2dx_ui_Text_disableEffect(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Text* cobj = nullptr; + axis::ui::Text* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -11688,7 +11688,7 @@ int lua_cocos2dx_ui_Text_disableEffect(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccui.Text",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Text*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Text*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -11699,7 +11699,7 @@ int lua_cocos2dx_ui_Text_disableEffect(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { - cocos2d::LabelEffect arg0; + axis::LabelEffect arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.Text:disableEffect"); if (!ok) { break; } @@ -11730,7 +11730,7 @@ int lua_cocos2dx_ui_Text_disableEffect(lua_State* tolua_S) int lua_cocos2dx_ui_Text_getLabelEffectType(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Text* cobj = nullptr; + axis::ui::Text* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11742,7 +11742,7 @@ int lua_cocos2dx_ui_Text_getLabelEffectType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Text",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Text*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Text*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11777,7 +11777,7 @@ int lua_cocos2dx_ui_Text_getLabelEffectType(lua_State* tolua_S) int lua_cocos2dx_ui_Text_getTextColor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Text* cobj = nullptr; + axis::ui::Text* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11789,7 +11789,7 @@ int lua_cocos2dx_ui_Text_getTextColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Text",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Text*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Text*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11807,7 +11807,7 @@ int lua_cocos2dx_ui_Text_getTextColor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Text_getTextColor'", nullptr); return 0; } - const cocos2d::Color4B& ret = cobj->getTextColor(); + const axis::Color4B& ret = cobj->getTextColor(); color4b_to_luaval(tolua_S, ret); return 1; } @@ -11824,7 +11824,7 @@ int lua_cocos2dx_ui_Text_getTextColor(lua_State* tolua_S) int lua_cocos2dx_ui_Text_getBlendFunc(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Text* cobj = nullptr; + axis::ui::Text* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11836,7 +11836,7 @@ int lua_cocos2dx_ui_Text_getBlendFunc(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Text",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Text*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Text*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11854,7 +11854,7 @@ int lua_cocos2dx_ui_Text_getBlendFunc(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Text_getBlendFunc'", nullptr); return 0; } - const cocos2d::BlendFunc& ret = cobj->getBlendFunc(); + const axis::BlendFunc& ret = cobj->getBlendFunc(); blendfunc_to_luaval(tolua_S, ret); return 1; } @@ -11871,7 +11871,7 @@ int lua_cocos2dx_ui_Text_getBlendFunc(lua_State* tolua_S) int lua_cocos2dx_ui_Text_setTextVerticalAlignment(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Text* cobj = nullptr; + axis::ui::Text* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11883,7 +11883,7 @@ int lua_cocos2dx_ui_Text_setTextVerticalAlignment(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Text",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Text*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Text*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11896,7 +11896,7 @@ int lua_cocos2dx_ui_Text_setTextVerticalAlignment(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::TextVAlignment arg0; + axis::TextVAlignment arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.Text:setTextVerticalAlignment"); if(!ok) @@ -11921,7 +11921,7 @@ int lua_cocos2dx_ui_Text_setTextVerticalAlignment(lua_State* tolua_S) int lua_cocos2dx_ui_Text_setFontName(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Text* cobj = nullptr; + axis::ui::Text* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11933,7 +11933,7 @@ int lua_cocos2dx_ui_Text_setFontName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Text",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Text*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Text*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -11971,7 +11971,7 @@ int lua_cocos2dx_ui_Text_setFontName(lua_State* tolua_S) int lua_cocos2dx_ui_Text_setTouchScaleChangeEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Text* cobj = nullptr; + axis::ui::Text* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -11983,7 +11983,7 @@ int lua_cocos2dx_ui_Text_setTouchScaleChangeEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Text",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Text*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Text*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12021,7 +12021,7 @@ int lua_cocos2dx_ui_Text_setTouchScaleChangeEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_Text_getShadowOffset(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Text* cobj = nullptr; + axis::ui::Text* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12033,7 +12033,7 @@ int lua_cocos2dx_ui_Text_getShadowOffset(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Text",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Text*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Text*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12051,7 +12051,7 @@ int lua_cocos2dx_ui_Text_getShadowOffset(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Text_getShadowOffset'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getShadowOffset(); + axis::Vec2 ret = cobj->getShadowOffset(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -12068,7 +12068,7 @@ int lua_cocos2dx_ui_Text_getShadowOffset(lua_State* tolua_S) int lua_cocos2dx_ui_Text_setString(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Text* cobj = nullptr; + axis::ui::Text* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12080,7 +12080,7 @@ int lua_cocos2dx_ui_Text_setString(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Text",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Text*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Text*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12118,7 +12118,7 @@ int lua_cocos2dx_ui_Text_setString(lua_State* tolua_S) int lua_cocos2dx_ui_Text_getOutlineSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Text* cobj = nullptr; + axis::ui::Text* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12130,7 +12130,7 @@ int lua_cocos2dx_ui_Text_getOutlineSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Text",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Text*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Text*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12165,7 +12165,7 @@ int lua_cocos2dx_ui_Text_getOutlineSize(lua_State* tolua_S) int lua_cocos2dx_ui_Text_init(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Text* cobj = nullptr; + axis::ui::Text* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12177,7 +12177,7 @@ int lua_cocos2dx_ui_Text_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Text",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Text*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Text*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12221,7 +12221,7 @@ int lua_cocos2dx_ui_Text_init(lua_State* tolua_S) int lua_cocos2dx_ui_Text_getShadowBlurRadius(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Text* cobj = nullptr; + axis::ui::Text* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12233,7 +12233,7 @@ int lua_cocos2dx_ui_Text_getShadowBlurRadius(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Text",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Text*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Text*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12268,7 +12268,7 @@ int lua_cocos2dx_ui_Text_getShadowBlurRadius(lua_State* tolua_S) int lua_cocos2dx_ui_Text_isTouchScaleChangeEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Text* cobj = nullptr; + axis::ui::Text* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12280,7 +12280,7 @@ int lua_cocos2dx_ui_Text_isTouchScaleChangeEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Text",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Text*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Text*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12315,7 +12315,7 @@ int lua_cocos2dx_ui_Text_isTouchScaleChangeEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_Text_getFontName(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Text* cobj = nullptr; + axis::ui::Text* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12327,7 +12327,7 @@ int lua_cocos2dx_ui_Text_getFontName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Text",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Text*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Text*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12362,7 +12362,7 @@ int lua_cocos2dx_ui_Text_getFontName(lua_State* tolua_S) int lua_cocos2dx_ui_Text_setTextAreaSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Text* cobj = nullptr; + axis::ui::Text* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12374,7 +12374,7 @@ int lua_cocos2dx_ui_Text_setTextAreaSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Text",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Text*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Text*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12387,7 +12387,7 @@ int lua_cocos2dx_ui_Text_setTextAreaSize(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ccui.Text:setTextAreaSize"); if(!ok) @@ -12412,7 +12412,7 @@ int lua_cocos2dx_ui_Text_setTextAreaSize(lua_State* tolua_S) int lua_cocos2dx_ui_Text_getStringLength(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Text* cobj = nullptr; + axis::ui::Text* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12424,7 +12424,7 @@ int lua_cocos2dx_ui_Text_getStringLength(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Text",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Text*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Text*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12459,7 +12459,7 @@ int lua_cocos2dx_ui_Text_getStringLength(lua_State* tolua_S) int lua_cocos2dx_ui_Text_getAutoRenderSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Text* cobj = nullptr; + axis::ui::Text* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12471,7 +12471,7 @@ int lua_cocos2dx_ui_Text_getAutoRenderSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Text",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Text*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Text*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12489,7 +12489,7 @@ int lua_cocos2dx_ui_Text_getAutoRenderSize(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Text_getAutoRenderSize'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getAutoRenderSize(); + axis::Vec2 ret = cobj->getAutoRenderSize(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -12506,7 +12506,7 @@ int lua_cocos2dx_ui_Text_getAutoRenderSize(lua_State* tolua_S) int lua_cocos2dx_ui_Text_enableOutline(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Text* cobj = nullptr; + axis::ui::Text* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12518,7 +12518,7 @@ int lua_cocos2dx_ui_Text_enableOutline(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Text",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Text*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Text*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12531,7 +12531,7 @@ int lua_cocos2dx_ui_Text_enableOutline(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Color4B arg0; + axis::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "ccui.Text:enableOutline"); if(!ok) @@ -12545,7 +12545,7 @@ int lua_cocos2dx_ui_Text_enableOutline(lua_State* tolua_S) } if (argc == 2) { - cocos2d::Color4B arg0; + axis::Color4B arg0; int arg1; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "ccui.Text:enableOutline"); @@ -12573,7 +12573,7 @@ int lua_cocos2dx_ui_Text_enableOutline(lua_State* tolua_S) int lua_cocos2dx_ui_Text_getEffectColor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Text* cobj = nullptr; + axis::ui::Text* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12585,7 +12585,7 @@ int lua_cocos2dx_ui_Text_getEffectColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Text",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Text*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Text*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12603,7 +12603,7 @@ int lua_cocos2dx_ui_Text_getEffectColor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Text_getEffectColor'", nullptr); return 0; } - cocos2d::Color4B ret = cobj->getEffectColor(); + axis::Color4B ret = cobj->getEffectColor(); color4b_to_luaval(tolua_S, ret); return 1; } @@ -12620,7 +12620,7 @@ int lua_cocos2dx_ui_Text_getEffectColor(lua_State* tolua_S) int lua_cocos2dx_ui_Text_getType(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Text* cobj = nullptr; + axis::ui::Text* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12632,7 +12632,7 @@ int lua_cocos2dx_ui_Text_getType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Text",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Text*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Text*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12667,7 +12667,7 @@ int lua_cocos2dx_ui_Text_getType(lua_State* tolua_S) int lua_cocos2dx_ui_Text_getTextHorizontalAlignment(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Text* cobj = nullptr; + axis::ui::Text* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12679,7 +12679,7 @@ int lua_cocos2dx_ui_Text_getTextHorizontalAlignment(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Text",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Text*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Text*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12714,7 +12714,7 @@ int lua_cocos2dx_ui_Text_getTextHorizontalAlignment(lua_State* tolua_S) int lua_cocos2dx_ui_Text_isShadowEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Text* cobj = nullptr; + axis::ui::Text* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12726,7 +12726,7 @@ int lua_cocos2dx_ui_Text_isShadowEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Text",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Text*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Text*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12761,7 +12761,7 @@ int lua_cocos2dx_ui_Text_isShadowEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_Text_setFontSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Text* cobj = nullptr; + axis::ui::Text* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12773,7 +12773,7 @@ int lua_cocos2dx_ui_Text_setFontSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Text",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Text*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Text*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12811,7 +12811,7 @@ int lua_cocos2dx_ui_Text_setFontSize(lua_State* tolua_S) int lua_cocos2dx_ui_Text_getShadowColor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Text* cobj = nullptr; + axis::ui::Text* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12823,7 +12823,7 @@ int lua_cocos2dx_ui_Text_getShadowColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Text",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Text*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Text*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12841,7 +12841,7 @@ int lua_cocos2dx_ui_Text_getShadowColor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Text_getShadowColor'", nullptr); return 0; } - cocos2d::Color4B ret = cobj->getShadowColor(); + axis::Color4B ret = cobj->getShadowColor(); color4b_to_luaval(tolua_S, ret); return 1; } @@ -12858,7 +12858,7 @@ int lua_cocos2dx_ui_Text_getShadowColor(lua_State* tolua_S) int lua_cocos2dx_ui_Text_setTextColor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Text* cobj = nullptr; + axis::ui::Text* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12870,7 +12870,7 @@ int lua_cocos2dx_ui_Text_setTextColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Text",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Text*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Text*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12883,7 +12883,7 @@ int lua_cocos2dx_ui_Text_setTextColor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Color4B arg0; + axis::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "ccui.Text:setTextColor"); if(!ok) @@ -12908,7 +12908,7 @@ int lua_cocos2dx_ui_Text_setTextColor(lua_State* tolua_S) int lua_cocos2dx_ui_Text_enableGlow(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Text* cobj = nullptr; + axis::ui::Text* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12920,7 +12920,7 @@ int lua_cocos2dx_ui_Text_enableGlow(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Text",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Text*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Text*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12933,7 +12933,7 @@ int lua_cocos2dx_ui_Text_enableGlow(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Color4B arg0; + axis::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "ccui.Text:enableGlow"); if(!ok) @@ -12958,7 +12958,7 @@ int lua_cocos2dx_ui_Text_enableGlow(lua_State* tolua_S) int lua_cocos2dx_ui_Text_getLetter(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Text* cobj = nullptr; + axis::ui::Text* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -12970,7 +12970,7 @@ int lua_cocos2dx_ui_Text_getLetter(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Text",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Text*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Text*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -12991,8 +12991,8 @@ int lua_cocos2dx_ui_Text_getLetter(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Text_getLetter'", nullptr); return 0; } - cocos2d::Sprite* ret = cobj->getLetter(arg0); - object_to_luaval(tolua_S, "cc.Sprite",(cocos2d::Sprite*)ret); + axis::Sprite* ret = cobj->getLetter(arg0); + object_to_luaval(tolua_S, "cc.Sprite",(axis::Sprite*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.Text:getLetter",argc, 1); @@ -13008,7 +13008,7 @@ int lua_cocos2dx_ui_Text_getLetter(lua_State* tolua_S) int lua_cocos2dx_ui_Text_setBlendFunc(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Text* cobj = nullptr; + axis::ui::Text* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -13020,7 +13020,7 @@ int lua_cocos2dx_ui_Text_setBlendFunc(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Text",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Text*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Text*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -13033,7 +13033,7 @@ int lua_cocos2dx_ui_Text_setBlendFunc(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::BlendFunc arg0; + axis::BlendFunc arg0; ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "ccui.Text:setBlendFunc"); if(!ok) @@ -13058,7 +13058,7 @@ int lua_cocos2dx_ui_Text_setBlendFunc(lua_State* tolua_S) int lua_cocos2dx_ui_Text_getTextVerticalAlignment(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Text* cobj = nullptr; + axis::ui::Text* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -13070,7 +13070,7 @@ int lua_cocos2dx_ui_Text_getTextVerticalAlignment(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Text",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Text*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Text*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -13105,7 +13105,7 @@ int lua_cocos2dx_ui_Text_getTextVerticalAlignment(lua_State* tolua_S) int lua_cocos2dx_ui_Text_getTextAreaSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Text* cobj = nullptr; + axis::ui::Text* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -13117,7 +13117,7 @@ int lua_cocos2dx_ui_Text_getTextAreaSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Text",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Text*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Text*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -13135,7 +13135,7 @@ int lua_cocos2dx_ui_Text_getTextAreaSize(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Text_getTextAreaSize'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getTextAreaSize(); + const axis::Vec2& ret = cobj->getTextAreaSize(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -13152,7 +13152,7 @@ int lua_cocos2dx_ui_Text_getTextAreaSize(lua_State* tolua_S) int lua_cocos2dx_ui_Text_setTextHorizontalAlignment(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Text* cobj = nullptr; + axis::ui::Text* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -13164,7 +13164,7 @@ int lua_cocos2dx_ui_Text_setTextHorizontalAlignment(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Text",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Text*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Text*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -13177,7 +13177,7 @@ int lua_cocos2dx_ui_Text_setTextHorizontalAlignment(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::TextHAlignment arg0; + axis::TextHAlignment arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.Text:setTextHorizontalAlignment"); if(!ok) @@ -13226,8 +13226,8 @@ int lua_cocos2dx_ui_Text_create(lua_State* tolua_S) double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "ccui.Text:create"); if (!ok) { break; } - cocos2d::ui::Text* ret = cocos2d::ui::Text::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "ccui.Text",(cocos2d::ui::Text*)ret); + axis::ui::Text* ret = axis::ui::Text::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "ccui.Text",(axis::ui::Text*)ret); return 1; } } while (0); @@ -13236,8 +13236,8 @@ int lua_cocos2dx_ui_Text_create(lua_State* tolua_S) { if (argc == 0) { - cocos2d::ui::Text* ret = cocos2d::ui::Text::create(); - object_to_luaval(tolua_S, "ccui.Text",(cocos2d::ui::Text*)ret); + axis::ui::Text* ret = axis::ui::Text::create(); + object_to_luaval(tolua_S, "ccui.Text",(axis::ui::Text*)ret); return 1; } } while (0); @@ -13272,8 +13272,8 @@ int lua_cocos2dx_ui_Text_createInstance(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Text_createInstance'", nullptr); return 0; } - cocos2d::Ref* ret = cocos2d::ui::Text::createInstance(); - object_to_luaval(tolua_S, "cc.Ref",(cocos2d::Ref*)ret); + axis::Ref* ret = axis::ui::Text::createInstance(); + object_to_luaval(tolua_S, "cc.Ref",(axis::Ref*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.Text:createInstance",argc, 0); @@ -13287,7 +13287,7 @@ int lua_cocos2dx_ui_Text_createInstance(lua_State* tolua_S) int lua_cocos2dx_ui_Text_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Text* cobj = nullptr; + axis::ui::Text* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -13304,7 +13304,7 @@ int lua_cocos2dx_ui_Text_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Text_constructor'", nullptr); return 0; } - cobj = new cocos2d::ui::Text(); + cobj = new axis::ui::Text(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -13371,7 +13371,7 @@ int lua_register_cocos2dx_ui_Text(lua_State* tolua_S) tolua_function(tolua_S,"create", lua_cocos2dx_ui_Text_create); tolua_function(tolua_S,"createInstance", lua_cocos2dx_ui_Text_createInstance); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ui::Text).name(); // rtti is literal storage + auto typeName = typeid(axis::ui::Text).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccui.Text"; g_typeCast[typeName] = "ccui.Text"; return 1; @@ -13380,7 +13380,7 @@ int lua_register_cocos2dx_ui_Text(lua_State* tolua_S) int lua_cocos2dx_ui_TextAtlas_getStringLength(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextAtlas* cobj = nullptr; + axis::ui::TextAtlas* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -13392,7 +13392,7 @@ int lua_cocos2dx_ui_TextAtlas_getStringLength(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextAtlas",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextAtlas*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextAtlas*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -13427,7 +13427,7 @@ int lua_cocos2dx_ui_TextAtlas_getStringLength(lua_State* tolua_S) int lua_cocos2dx_ui_TextAtlas_getString(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextAtlas* cobj = nullptr; + axis::ui::TextAtlas* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -13439,7 +13439,7 @@ int lua_cocos2dx_ui_TextAtlas_getString(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextAtlas",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextAtlas*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextAtlas*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -13474,7 +13474,7 @@ int lua_cocos2dx_ui_TextAtlas_getString(lua_State* tolua_S) int lua_cocos2dx_ui_TextAtlas_setString(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextAtlas* cobj = nullptr; + axis::ui::TextAtlas* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -13486,7 +13486,7 @@ int lua_cocos2dx_ui_TextAtlas_setString(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextAtlas",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextAtlas*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextAtlas*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -13524,7 +13524,7 @@ int lua_cocos2dx_ui_TextAtlas_setString(lua_State* tolua_S) int lua_cocos2dx_ui_TextAtlas_getRenderFile(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextAtlas* cobj = nullptr; + axis::ui::TextAtlas* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -13536,7 +13536,7 @@ int lua_cocos2dx_ui_TextAtlas_getRenderFile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextAtlas",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextAtlas*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextAtlas*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -13554,7 +13554,7 @@ int lua_cocos2dx_ui_TextAtlas_getRenderFile(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_TextAtlas_getRenderFile'", nullptr); return 0; } - cocos2d::ResourceData ret = cobj->getRenderFile(); + axis::ResourceData ret = cobj->getRenderFile(); #pragma warning NO CONVERSION FROM NATIVE FOR ResourceData; return 1; } @@ -13571,7 +13571,7 @@ int lua_cocos2dx_ui_TextAtlas_getRenderFile(lua_State* tolua_S) int lua_cocos2dx_ui_TextAtlas_setProperty(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextAtlas* cobj = nullptr; + axis::ui::TextAtlas* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -13583,7 +13583,7 @@ int lua_cocos2dx_ui_TextAtlas_setProperty(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextAtlas",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextAtlas*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextAtlas*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -13633,7 +13633,7 @@ int lua_cocos2dx_ui_TextAtlas_setProperty(lua_State* tolua_S) int lua_cocos2dx_ui_TextAtlas_adaptRenderers(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextAtlas* cobj = nullptr; + axis::ui::TextAtlas* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -13645,7 +13645,7 @@ int lua_cocos2dx_ui_TextAtlas_adaptRenderers(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextAtlas",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextAtlas*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextAtlas*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -13710,8 +13710,8 @@ int lua_cocos2dx_ui_TextAtlas_create(lua_State* tolua_S) std::string_view arg4; ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "ccui.TextAtlas:create"); if (!ok) { break; } - cocos2d::ui::TextAtlas* ret = cocos2d::ui::TextAtlas::create(arg0, arg1, arg2, arg3, arg4); - object_to_luaval(tolua_S, "ccui.TextAtlas",(cocos2d::ui::TextAtlas*)ret); + axis::ui::TextAtlas* ret = axis::ui::TextAtlas::create(arg0, arg1, arg2, arg3, arg4); + object_to_luaval(tolua_S, "ccui.TextAtlas",(axis::ui::TextAtlas*)ret); return 1; } } while (0); @@ -13720,8 +13720,8 @@ int lua_cocos2dx_ui_TextAtlas_create(lua_State* tolua_S) { if (argc == 0) { - cocos2d::ui::TextAtlas* ret = cocos2d::ui::TextAtlas::create(); - object_to_luaval(tolua_S, "ccui.TextAtlas",(cocos2d::ui::TextAtlas*)ret); + axis::ui::TextAtlas* ret = axis::ui::TextAtlas::create(); + object_to_luaval(tolua_S, "ccui.TextAtlas",(axis::ui::TextAtlas*)ret); return 1; } } while (0); @@ -13756,8 +13756,8 @@ int lua_cocos2dx_ui_TextAtlas_createInstance(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_TextAtlas_createInstance'", nullptr); return 0; } - cocos2d::Ref* ret = cocos2d::ui::TextAtlas::createInstance(); - object_to_luaval(tolua_S, "cc.Ref",(cocos2d::Ref*)ret); + axis::Ref* ret = axis::ui::TextAtlas::createInstance(); + object_to_luaval(tolua_S, "cc.Ref",(axis::Ref*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.TextAtlas:createInstance",argc, 0); @@ -13771,7 +13771,7 @@ int lua_cocos2dx_ui_TextAtlas_createInstance(lua_State* tolua_S) int lua_cocos2dx_ui_TextAtlas_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextAtlas* cobj = nullptr; + axis::ui::TextAtlas* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -13788,7 +13788,7 @@ int lua_cocos2dx_ui_TextAtlas_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_TextAtlas_constructor'", nullptr); return 0; } - cobj = new cocos2d::ui::TextAtlas(); + cobj = new axis::ui::TextAtlas(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -13827,7 +13827,7 @@ int lua_register_cocos2dx_ui_TextAtlas(lua_State* tolua_S) tolua_function(tolua_S,"create", lua_cocos2dx_ui_TextAtlas_create); tolua_function(tolua_S,"createInstance", lua_cocos2dx_ui_TextAtlas_createInstance); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ui::TextAtlas).name(); // rtti is literal storage + auto typeName = typeid(axis::ui::TextAtlas).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccui.TextAtlas"; g_typeCast[typeName] = "ccui.TextAtlas"; return 1; @@ -13836,7 +13836,7 @@ int lua_register_cocos2dx_ui_TextAtlas(lua_State* tolua_S) int lua_cocos2dx_ui_LoadingBar_setPercent(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LoadingBar* cobj = nullptr; + axis::ui::LoadingBar* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -13848,7 +13848,7 @@ int lua_cocos2dx_ui_LoadingBar_setPercent(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LoadingBar",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LoadingBar*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LoadingBar*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -13886,7 +13886,7 @@ int lua_cocos2dx_ui_LoadingBar_setPercent(lua_State* tolua_S) int lua_cocos2dx_ui_LoadingBar_loadTexture(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LoadingBar* cobj = nullptr; + axis::ui::LoadingBar* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -13898,7 +13898,7 @@ int lua_cocos2dx_ui_LoadingBar_loadTexture(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LoadingBar",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LoadingBar*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LoadingBar*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -13926,7 +13926,7 @@ int lua_cocos2dx_ui_LoadingBar_loadTexture(lua_State* tolua_S) if (argc == 2) { std::string_view arg0; - cocos2d::ui::Widget::TextureResType arg1; + axis::ui::Widget::TextureResType arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.LoadingBar:loadTexture"); @@ -13953,7 +13953,7 @@ int lua_cocos2dx_ui_LoadingBar_loadTexture(lua_State* tolua_S) int lua_cocos2dx_ui_LoadingBar_setDirection(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LoadingBar* cobj = nullptr; + axis::ui::LoadingBar* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -13965,7 +13965,7 @@ int lua_cocos2dx_ui_LoadingBar_setDirection(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LoadingBar",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LoadingBar*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LoadingBar*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -13978,7 +13978,7 @@ int lua_cocos2dx_ui_LoadingBar_setDirection(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ui::LoadingBar::Direction arg0; + axis::ui::LoadingBar::Direction arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.LoadingBar:setDirection"); if(!ok) @@ -14003,7 +14003,7 @@ int lua_cocos2dx_ui_LoadingBar_setDirection(lua_State* tolua_S) int lua_cocos2dx_ui_LoadingBar_getRenderFile(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LoadingBar* cobj = nullptr; + axis::ui::LoadingBar* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -14015,7 +14015,7 @@ int lua_cocos2dx_ui_LoadingBar_getRenderFile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LoadingBar",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LoadingBar*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LoadingBar*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -14033,7 +14033,7 @@ int lua_cocos2dx_ui_LoadingBar_getRenderFile(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_LoadingBar_getRenderFile'", nullptr); return 0; } - cocos2d::ResourceData ret = cobj->getRenderFile(); + axis::ResourceData ret = cobj->getRenderFile(); #pragma warning NO CONVERSION FROM NATIVE FOR ResourceData; return 1; } @@ -14050,7 +14050,7 @@ int lua_cocos2dx_ui_LoadingBar_getRenderFile(lua_State* tolua_S) int lua_cocos2dx_ui_LoadingBar_setScale9Enabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LoadingBar* cobj = nullptr; + axis::ui::LoadingBar* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -14062,7 +14062,7 @@ int lua_cocos2dx_ui_LoadingBar_setScale9Enabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LoadingBar",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LoadingBar*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LoadingBar*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -14100,7 +14100,7 @@ int lua_cocos2dx_ui_LoadingBar_setScale9Enabled(lua_State* tolua_S) int lua_cocos2dx_ui_LoadingBar_setCapInsets(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LoadingBar* cobj = nullptr; + axis::ui::LoadingBar* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -14112,7 +14112,7 @@ int lua_cocos2dx_ui_LoadingBar_setCapInsets(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LoadingBar",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LoadingBar*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LoadingBar*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -14125,7 +14125,7 @@ int lua_cocos2dx_ui_LoadingBar_setCapInsets(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Rect arg0; + axis::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "ccui.LoadingBar:setCapInsets"); if(!ok) @@ -14150,7 +14150,7 @@ int lua_cocos2dx_ui_LoadingBar_setCapInsets(lua_State* tolua_S) int lua_cocos2dx_ui_LoadingBar_getDirection(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LoadingBar* cobj = nullptr; + axis::ui::LoadingBar* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -14162,7 +14162,7 @@ int lua_cocos2dx_ui_LoadingBar_getDirection(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LoadingBar",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LoadingBar*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LoadingBar*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -14197,7 +14197,7 @@ int lua_cocos2dx_ui_LoadingBar_getDirection(lua_State* tolua_S) int lua_cocos2dx_ui_LoadingBar_getCapInsets(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LoadingBar* cobj = nullptr; + axis::ui::LoadingBar* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -14209,7 +14209,7 @@ int lua_cocos2dx_ui_LoadingBar_getCapInsets(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LoadingBar",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LoadingBar*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LoadingBar*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -14227,7 +14227,7 @@ int lua_cocos2dx_ui_LoadingBar_getCapInsets(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_LoadingBar_getCapInsets'", nullptr); return 0; } - const cocos2d::Rect& ret = cobj->getCapInsets(); + const axis::Rect& ret = cobj->getCapInsets(); rect_to_luaval(tolua_S, ret); return 1; } @@ -14244,7 +14244,7 @@ int lua_cocos2dx_ui_LoadingBar_getCapInsets(lua_State* tolua_S) int lua_cocos2dx_ui_LoadingBar_isScale9Enabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LoadingBar* cobj = nullptr; + axis::ui::LoadingBar* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -14256,7 +14256,7 @@ int lua_cocos2dx_ui_LoadingBar_isScale9Enabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LoadingBar",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LoadingBar*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LoadingBar*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -14291,7 +14291,7 @@ int lua_cocos2dx_ui_LoadingBar_isScale9Enabled(lua_State* tolua_S) int lua_cocos2dx_ui_LoadingBar_getPercent(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LoadingBar* cobj = nullptr; + axis::ui::LoadingBar* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -14303,7 +14303,7 @@ int lua_cocos2dx_ui_LoadingBar_getPercent(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LoadingBar",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LoadingBar*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LoadingBar*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -14356,8 +14356,8 @@ int lua_cocos2dx_ui_LoadingBar_create(lua_State* tolua_S) std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.LoadingBar:create"); if (!ok) { break; } - cocos2d::ui::LoadingBar* ret = cocos2d::ui::LoadingBar::create(arg0); - object_to_luaval(tolua_S, "ccui.LoadingBar",(cocos2d::ui::LoadingBar*)ret); + axis::ui::LoadingBar* ret = axis::ui::LoadingBar::create(arg0); + object_to_luaval(tolua_S, "ccui.LoadingBar",(axis::ui::LoadingBar*)ret); return 1; } } while (0); @@ -14372,8 +14372,8 @@ int lua_cocos2dx_ui_LoadingBar_create(lua_State* tolua_S) double arg1; ok &= luaval_to_number(tolua_S, 3,&arg1, "ccui.LoadingBar:create"); if (!ok) { break; } - cocos2d::ui::LoadingBar* ret = cocos2d::ui::LoadingBar::create(arg0, arg1); - object_to_luaval(tolua_S, "ccui.LoadingBar",(cocos2d::ui::LoadingBar*)ret); + axis::ui::LoadingBar* ret = axis::ui::LoadingBar::create(arg0, arg1); + object_to_luaval(tolua_S, "ccui.LoadingBar",(axis::ui::LoadingBar*)ret); return 1; } } while (0); @@ -14382,8 +14382,8 @@ int lua_cocos2dx_ui_LoadingBar_create(lua_State* tolua_S) { if (argc == 0) { - cocos2d::ui::LoadingBar* ret = cocos2d::ui::LoadingBar::create(); - object_to_luaval(tolua_S, "ccui.LoadingBar",(cocos2d::ui::LoadingBar*)ret); + axis::ui::LoadingBar* ret = axis::ui::LoadingBar::create(); + object_to_luaval(tolua_S, "ccui.LoadingBar",(axis::ui::LoadingBar*)ret); return 1; } } while (0); @@ -14395,11 +14395,11 @@ int lua_cocos2dx_ui_LoadingBar_create(lua_State* tolua_S) std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.LoadingBar:create"); if (!ok) { break; } - cocos2d::ui::Widget::TextureResType arg1; + axis::ui::Widget::TextureResType arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ccui.LoadingBar:create"); if (!ok) { break; } - cocos2d::ui::LoadingBar* ret = cocos2d::ui::LoadingBar::create(arg0, arg1); - object_to_luaval(tolua_S, "ccui.LoadingBar",(cocos2d::ui::LoadingBar*)ret); + axis::ui::LoadingBar* ret = axis::ui::LoadingBar::create(arg0, arg1); + object_to_luaval(tolua_S, "ccui.LoadingBar",(axis::ui::LoadingBar*)ret); return 1; } } while (0); @@ -14411,14 +14411,14 @@ int lua_cocos2dx_ui_LoadingBar_create(lua_State* tolua_S) std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.LoadingBar:create"); if (!ok) { break; } - cocos2d::ui::Widget::TextureResType arg1; + axis::ui::Widget::TextureResType arg1; ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ccui.LoadingBar:create"); if (!ok) { break; } double arg2; ok &= luaval_to_number(tolua_S, 4,&arg2, "ccui.LoadingBar:create"); if (!ok) { break; } - cocos2d::ui::LoadingBar* ret = cocos2d::ui::LoadingBar::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "ccui.LoadingBar",(cocos2d::ui::LoadingBar*)ret); + axis::ui::LoadingBar* ret = axis::ui::LoadingBar::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "ccui.LoadingBar",(axis::ui::LoadingBar*)ret); return 1; } } while (0); @@ -14453,8 +14453,8 @@ int lua_cocos2dx_ui_LoadingBar_createInstance(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_LoadingBar_createInstance'", nullptr); return 0; } - cocos2d::Ref* ret = cocos2d::ui::LoadingBar::createInstance(); - object_to_luaval(tolua_S, "cc.Ref",(cocos2d::Ref*)ret); + axis::Ref* ret = axis::ui::LoadingBar::createInstance(); + object_to_luaval(tolua_S, "cc.Ref",(axis::Ref*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.LoadingBar:createInstance",argc, 0); @@ -14468,7 +14468,7 @@ int lua_cocos2dx_ui_LoadingBar_createInstance(lua_State* tolua_S) int lua_cocos2dx_ui_LoadingBar_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LoadingBar* cobj = nullptr; + axis::ui::LoadingBar* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -14485,7 +14485,7 @@ int lua_cocos2dx_ui_LoadingBar_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_LoadingBar_constructor'", nullptr); return 0; } - cobj = new cocos2d::ui::LoadingBar(); + cobj = new axis::ui::LoadingBar(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -14528,7 +14528,7 @@ int lua_register_cocos2dx_ui_LoadingBar(lua_State* tolua_S) tolua_function(tolua_S,"create", lua_cocos2dx_ui_LoadingBar_create); tolua_function(tolua_S,"createInstance", lua_cocos2dx_ui_LoadingBar_createInstance); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ui::LoadingBar).name(); // rtti is literal storage + auto typeName = typeid(axis::ui::LoadingBar).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccui.LoadingBar"; g_typeCast[typeName] = "ccui.LoadingBar"; return 1; @@ -14537,7 +14537,7 @@ int lua_register_cocos2dx_ui_LoadingBar(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_scrollToTop(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -14549,7 +14549,7 @@ int lua_cocos2dx_ui_ScrollView_scrollToTop(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -14590,7 +14590,7 @@ int lua_cocos2dx_ui_ScrollView_scrollToTop(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_scrollToPercentHorizontal(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -14602,7 +14602,7 @@ int lua_cocos2dx_ui_ScrollView_scrollToPercentHorizontal(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -14646,7 +14646,7 @@ int lua_cocos2dx_ui_ScrollView_scrollToPercentHorizontal(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_setScrollBarOpacity(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -14658,7 +14658,7 @@ int lua_cocos2dx_ui_ScrollView_setScrollBarOpacity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -14696,7 +14696,7 @@ int lua_cocos2dx_ui_ScrollView_setScrollBarOpacity(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_setScrollBarEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -14708,7 +14708,7 @@ int lua_cocos2dx_ui_ScrollView_setScrollBarEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -14746,7 +14746,7 @@ int lua_cocos2dx_ui_ScrollView_setScrollBarEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_isInertiaScrollEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -14758,7 +14758,7 @@ int lua_cocos2dx_ui_ScrollView_isInertiaScrollEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -14793,7 +14793,7 @@ int lua_cocos2dx_ui_ScrollView_isInertiaScrollEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_scrollToBottom(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -14805,7 +14805,7 @@ int lua_cocos2dx_ui_ScrollView_scrollToBottom(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -14846,7 +14846,7 @@ int lua_cocos2dx_ui_ScrollView_scrollToBottom(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_getScrolledPercentBothDirection(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -14858,7 +14858,7 @@ int lua_cocos2dx_ui_ScrollView_getScrolledPercentBothDirection(lua_State* tolua_ if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -14876,7 +14876,7 @@ int lua_cocos2dx_ui_ScrollView_getScrolledPercentBothDirection(lua_State* tolua_ tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_ScrollView_getScrolledPercentBothDirection'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getScrolledPercentBothDirection(); + axis::Vec2 ret = cobj->getScrolledPercentBothDirection(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -14893,7 +14893,7 @@ int lua_cocos2dx_ui_ScrollView_getScrolledPercentBothDirection(lua_State* tolua_ int lua_cocos2dx_ui_ScrollView_getDirection(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -14905,7 +14905,7 @@ int lua_cocos2dx_ui_ScrollView_getDirection(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -14940,7 +14940,7 @@ int lua_cocos2dx_ui_ScrollView_getDirection(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_setScrollBarColor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -14952,7 +14952,7 @@ int lua_cocos2dx_ui_ScrollView_setScrollBarColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -14965,7 +14965,7 @@ int lua_cocos2dx_ui_ScrollView_setScrollBarColor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Color3B arg0; + axis::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "ccui.ScrollView:setScrollBarColor"); if(!ok) @@ -14990,7 +14990,7 @@ int lua_cocos2dx_ui_ScrollView_setScrollBarColor(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_scrollToBottomLeft(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -15002,7 +15002,7 @@ int lua_cocos2dx_ui_ScrollView_scrollToBottomLeft(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -15043,7 +15043,7 @@ int lua_cocos2dx_ui_ScrollView_scrollToBottomLeft(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_getInnerContainer(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -15055,7 +15055,7 @@ int lua_cocos2dx_ui_ScrollView_getInnerContainer(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -15073,8 +15073,8 @@ int lua_cocos2dx_ui_ScrollView_getInnerContainer(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_ScrollView_getInnerContainer'", nullptr); return 0; } - cocos2d::ui::Layout* ret = cobj->getInnerContainer(); - object_to_luaval(tolua_S, "ccui.Layout",(cocos2d::ui::Layout*)ret); + axis::ui::Layout* ret = cobj->getInnerContainer(); + object_to_luaval(tolua_S, "ccui.Layout",(axis::ui::Layout*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.ScrollView:getInnerContainer",argc, 0); @@ -15090,7 +15090,7 @@ int lua_cocos2dx_ui_ScrollView_getInnerContainer(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_jumpToBottom(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -15102,7 +15102,7 @@ int lua_cocos2dx_ui_ScrollView_jumpToBottom(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -15137,7 +15137,7 @@ int lua_cocos2dx_ui_ScrollView_jumpToBottom(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_setInnerContainerPosition(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -15149,7 +15149,7 @@ int lua_cocos2dx_ui_ScrollView_setInnerContainerPosition(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -15162,7 +15162,7 @@ int lua_cocos2dx_ui_ScrollView_setInnerContainerPosition(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ccui.ScrollView:setInnerContainerPosition"); if(!ok) @@ -15187,7 +15187,7 @@ int lua_cocos2dx_ui_ScrollView_setInnerContainerPosition(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_setDirection(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -15199,7 +15199,7 @@ int lua_cocos2dx_ui_ScrollView_setDirection(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -15212,7 +15212,7 @@ int lua_cocos2dx_ui_ScrollView_setDirection(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ui::ScrollView::Direction arg0; + axis::ui::ScrollView::Direction arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.ScrollView:setDirection"); if(!ok) @@ -15237,7 +15237,7 @@ int lua_cocos2dx_ui_ScrollView_setDirection(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_scrollToTopLeft(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -15249,7 +15249,7 @@ int lua_cocos2dx_ui_ScrollView_scrollToTopLeft(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -15290,7 +15290,7 @@ int lua_cocos2dx_ui_ScrollView_scrollToTopLeft(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_jumpToTopRight(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -15302,7 +15302,7 @@ int lua_cocos2dx_ui_ScrollView_jumpToTopRight(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -15337,7 +15337,7 @@ int lua_cocos2dx_ui_ScrollView_jumpToTopRight(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_scrollToPercentBothDirection(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -15349,7 +15349,7 @@ int lua_cocos2dx_ui_ScrollView_scrollToPercentBothDirection(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -15362,7 +15362,7 @@ int lua_cocos2dx_ui_ScrollView_scrollToPercentBothDirection(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 3) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; double arg1; bool arg2; @@ -15393,7 +15393,7 @@ int lua_cocos2dx_ui_ScrollView_scrollToPercentBothDirection(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_setInnerContainerSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -15405,7 +15405,7 @@ int lua_cocos2dx_ui_ScrollView_setInnerContainerSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -15418,7 +15418,7 @@ int lua_cocos2dx_ui_ScrollView_setInnerContainerSize(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ccui.ScrollView:setInnerContainerSize"); if(!ok) @@ -15443,7 +15443,7 @@ int lua_cocos2dx_ui_ScrollView_setInnerContainerSize(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_getInnerContainerPosition(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -15455,7 +15455,7 @@ int lua_cocos2dx_ui_ScrollView_getInnerContainerPosition(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -15473,7 +15473,7 @@ int lua_cocos2dx_ui_ScrollView_getInnerContainerPosition(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_ScrollView_getInnerContainerPosition'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getInnerContainerPosition(); + const axis::Vec2& ret = cobj->getInnerContainerPosition(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -15490,7 +15490,7 @@ int lua_cocos2dx_ui_ScrollView_getInnerContainerPosition(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_jumpToTop(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -15502,7 +15502,7 @@ int lua_cocos2dx_ui_ScrollView_jumpToTop(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -15537,7 +15537,7 @@ int lua_cocos2dx_ui_ScrollView_jumpToTop(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_getScrolledPercentVertical(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -15549,7 +15549,7 @@ int lua_cocos2dx_ui_ScrollView_getScrolledPercentVertical(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -15584,7 +15584,7 @@ int lua_cocos2dx_ui_ScrollView_getScrolledPercentVertical(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_isBounceEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -15596,7 +15596,7 @@ int lua_cocos2dx_ui_ScrollView_isBounceEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -15631,7 +15631,7 @@ int lua_cocos2dx_ui_ScrollView_isBounceEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_jumpToPercentVertical(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -15643,7 +15643,7 @@ int lua_cocos2dx_ui_ScrollView_jumpToPercentVertical(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -15681,7 +15681,7 @@ int lua_cocos2dx_ui_ScrollView_jumpToPercentVertical(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_addEventListener(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -15693,7 +15693,7 @@ int lua_cocos2dx_ui_ScrollView_addEventListener(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -15706,7 +15706,7 @@ int lua_cocos2dx_ui_ScrollView_addEventListener(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - std::function arg0; + std::function arg0; do { // Lambda binding for lua is not supported. @@ -15735,7 +15735,7 @@ int lua_cocos2dx_ui_ScrollView_addEventListener(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_setScrollBarAutoHideTime(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -15747,7 +15747,7 @@ int lua_cocos2dx_ui_ScrollView_setScrollBarAutoHideTime(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -15785,7 +15785,7 @@ int lua_cocos2dx_ui_ScrollView_setScrollBarAutoHideTime(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_stopScroll(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -15797,7 +15797,7 @@ int lua_cocos2dx_ui_ScrollView_stopScroll(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -15832,7 +15832,7 @@ int lua_cocos2dx_ui_ScrollView_stopScroll(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_setScrollBarPositionFromCornerForHorizontal(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -15844,7 +15844,7 @@ int lua_cocos2dx_ui_ScrollView_setScrollBarPositionFromCornerForHorizontal(lua_S if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -15857,7 +15857,7 @@ int lua_cocos2dx_ui_ScrollView_setScrollBarPositionFromCornerForHorizontal(lua_S argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ccui.ScrollView:setScrollBarPositionFromCornerForHorizontal"); if(!ok) @@ -15882,7 +15882,7 @@ int lua_cocos2dx_ui_ScrollView_setScrollBarPositionFromCornerForHorizontal(lua_S int lua_cocos2dx_ui_ScrollView_setInertiaScrollEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -15894,7 +15894,7 @@ int lua_cocos2dx_ui_ScrollView_setInertiaScrollEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -15932,7 +15932,7 @@ int lua_cocos2dx_ui_ScrollView_setInertiaScrollEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_setScrollBarAutoHideEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -15944,7 +15944,7 @@ int lua_cocos2dx_ui_ScrollView_setScrollBarAutoHideEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -15982,7 +15982,7 @@ int lua_cocos2dx_ui_ScrollView_setScrollBarAutoHideEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_getScrollBarColor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -15994,7 +15994,7 @@ int lua_cocos2dx_ui_ScrollView_getScrollBarColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -16012,7 +16012,7 @@ int lua_cocos2dx_ui_ScrollView_getScrollBarColor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_ScrollView_getScrollBarColor'", nullptr); return 0; } - const cocos2d::Color3B& ret = cobj->getScrollBarColor(); + const axis::Color3B& ret = cobj->getScrollBarColor(); color3b_to_luaval(tolua_S, ret); return 1; } @@ -16029,7 +16029,7 @@ int lua_cocos2dx_ui_ScrollView_getScrollBarColor(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_jumpToTopLeft(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -16041,7 +16041,7 @@ int lua_cocos2dx_ui_ScrollView_jumpToTopLeft(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -16076,7 +16076,7 @@ int lua_cocos2dx_ui_ScrollView_jumpToTopLeft(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_isScrollBarEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -16088,7 +16088,7 @@ int lua_cocos2dx_ui_ScrollView_isScrollBarEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -16123,7 +16123,7 @@ int lua_cocos2dx_ui_ScrollView_isScrollBarEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_isAutoScrolling(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -16135,7 +16135,7 @@ int lua_cocos2dx_ui_ScrollView_isAutoScrolling(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -16170,7 +16170,7 @@ int lua_cocos2dx_ui_ScrollView_isAutoScrolling(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_jumpToBottomRight(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -16182,7 +16182,7 @@ int lua_cocos2dx_ui_ScrollView_jumpToBottomRight(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -16217,7 +16217,7 @@ int lua_cocos2dx_ui_ScrollView_jumpToBottomRight(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_setTouchTotalTimeThreshold(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -16229,7 +16229,7 @@ int lua_cocos2dx_ui_ScrollView_setTouchTotalTimeThreshold(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -16267,7 +16267,7 @@ int lua_cocos2dx_ui_ScrollView_setTouchTotalTimeThreshold(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_getTouchTotalTimeThreshold(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -16279,7 +16279,7 @@ int lua_cocos2dx_ui_ScrollView_getTouchTotalTimeThreshold(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -16314,7 +16314,7 @@ int lua_cocos2dx_ui_ScrollView_getTouchTotalTimeThreshold(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_getScrollBarPositionFromCornerForHorizontal(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -16326,7 +16326,7 @@ int lua_cocos2dx_ui_ScrollView_getScrollBarPositionFromCornerForHorizontal(lua_S if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -16344,7 +16344,7 @@ int lua_cocos2dx_ui_ScrollView_getScrollBarPositionFromCornerForHorizontal(lua_S tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_ScrollView_getScrollBarPositionFromCornerForHorizontal'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getScrollBarPositionFromCornerForHorizontal(); + axis::Vec2 ret = cobj->getScrollBarPositionFromCornerForHorizontal(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -16361,7 +16361,7 @@ int lua_cocos2dx_ui_ScrollView_getScrollBarPositionFromCornerForHorizontal(lua_S int lua_cocos2dx_ui_ScrollView_getScrolledPercentHorizontal(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -16373,7 +16373,7 @@ int lua_cocos2dx_ui_ScrollView_getScrolledPercentHorizontal(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -16408,7 +16408,7 @@ int lua_cocos2dx_ui_ScrollView_getScrolledPercentHorizontal(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_setBounceEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -16420,7 +16420,7 @@ int lua_cocos2dx_ui_ScrollView_setBounceEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -16458,7 +16458,7 @@ int lua_cocos2dx_ui_ScrollView_setBounceEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_stopAutoScroll(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -16470,7 +16470,7 @@ int lua_cocos2dx_ui_ScrollView_stopAutoScroll(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -16505,7 +16505,7 @@ int lua_cocos2dx_ui_ScrollView_stopAutoScroll(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_scrollToTopRight(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -16517,7 +16517,7 @@ int lua_cocos2dx_ui_ScrollView_scrollToTopRight(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -16558,7 +16558,7 @@ int lua_cocos2dx_ui_ScrollView_scrollToTopRight(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_isScrolling(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -16570,7 +16570,7 @@ int lua_cocos2dx_ui_ScrollView_isScrolling(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -16605,7 +16605,7 @@ int lua_cocos2dx_ui_ScrollView_isScrolling(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_scrollToLeft(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -16617,7 +16617,7 @@ int lua_cocos2dx_ui_ScrollView_scrollToLeft(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -16658,7 +16658,7 @@ int lua_cocos2dx_ui_ScrollView_scrollToLeft(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_jumpToPercentBothDirection(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -16670,7 +16670,7 @@ int lua_cocos2dx_ui_ScrollView_jumpToPercentBothDirection(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -16683,7 +16683,7 @@ int lua_cocos2dx_ui_ScrollView_jumpToPercentBothDirection(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ccui.ScrollView:jumpToPercentBothDirection"); if(!ok) @@ -16708,7 +16708,7 @@ int lua_cocos2dx_ui_ScrollView_jumpToPercentBothDirection(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_stopOverallScroll(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -16720,7 +16720,7 @@ int lua_cocos2dx_ui_ScrollView_stopOverallScroll(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -16755,7 +16755,7 @@ int lua_cocos2dx_ui_ScrollView_stopOverallScroll(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_scrollToPercentVertical(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -16767,7 +16767,7 @@ int lua_cocos2dx_ui_ScrollView_scrollToPercentVertical(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -16811,7 +16811,7 @@ int lua_cocos2dx_ui_ScrollView_scrollToPercentVertical(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_setScrollBarWidth(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -16823,7 +16823,7 @@ int lua_cocos2dx_ui_ScrollView_setScrollBarWidth(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -16861,7 +16861,7 @@ int lua_cocos2dx_ui_ScrollView_setScrollBarWidth(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_getScrollBarOpacity(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -16873,7 +16873,7 @@ int lua_cocos2dx_ui_ScrollView_getScrollBarOpacity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -16908,7 +16908,7 @@ int lua_cocos2dx_ui_ScrollView_getScrollBarOpacity(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_scrollToBottomRight(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -16920,7 +16920,7 @@ int lua_cocos2dx_ui_ScrollView_scrollToBottomRight(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -16961,7 +16961,7 @@ int lua_cocos2dx_ui_ScrollView_scrollToBottomRight(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_setScrollBarPositionFromCorner(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -16973,7 +16973,7 @@ int lua_cocos2dx_ui_ScrollView_setScrollBarPositionFromCorner(lua_State* tolua_S if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -16986,7 +16986,7 @@ int lua_cocos2dx_ui_ScrollView_setScrollBarPositionFromCorner(lua_State* tolua_S argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ccui.ScrollView:setScrollBarPositionFromCorner"); if(!ok) @@ -17011,7 +17011,7 @@ int lua_cocos2dx_ui_ScrollView_setScrollBarPositionFromCorner(lua_State* tolua_S int lua_cocos2dx_ui_ScrollView_setScrollBarPositionFromCornerForVertical(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -17023,7 +17023,7 @@ int lua_cocos2dx_ui_ScrollView_setScrollBarPositionFromCornerForVertical(lua_Sta if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -17036,7 +17036,7 @@ int lua_cocos2dx_ui_ScrollView_setScrollBarPositionFromCornerForVertical(lua_Sta argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ccui.ScrollView:setScrollBarPositionFromCornerForVertical"); if(!ok) @@ -17061,7 +17061,7 @@ int lua_cocos2dx_ui_ScrollView_setScrollBarPositionFromCornerForVertical(lua_Sta int lua_cocos2dx_ui_ScrollView_getScrollBarAutoHideTime(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -17073,7 +17073,7 @@ int lua_cocos2dx_ui_ScrollView_getScrollBarAutoHideTime(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -17108,7 +17108,7 @@ int lua_cocos2dx_ui_ScrollView_getScrollBarAutoHideTime(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_jumpToLeft(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -17120,7 +17120,7 @@ int lua_cocos2dx_ui_ScrollView_jumpToLeft(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -17155,7 +17155,7 @@ int lua_cocos2dx_ui_ScrollView_jumpToLeft(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_scrollToRight(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -17167,7 +17167,7 @@ int lua_cocos2dx_ui_ScrollView_scrollToRight(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -17208,7 +17208,7 @@ int lua_cocos2dx_ui_ScrollView_scrollToRight(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_getScrollBarPositionFromCornerForVertical(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -17220,7 +17220,7 @@ int lua_cocos2dx_ui_ScrollView_getScrollBarPositionFromCornerForVertical(lua_Sta if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -17238,7 +17238,7 @@ int lua_cocos2dx_ui_ScrollView_getScrollBarPositionFromCornerForVertical(lua_Sta tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_ScrollView_getScrollBarPositionFromCornerForVertical'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getScrollBarPositionFromCornerForVertical(); + axis::Vec2 ret = cobj->getScrollBarPositionFromCornerForVertical(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -17255,7 +17255,7 @@ int lua_cocos2dx_ui_ScrollView_getScrollBarPositionFromCornerForVertical(lua_Sta int lua_cocos2dx_ui_ScrollView_getScrollBarWidth(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -17267,7 +17267,7 @@ int lua_cocos2dx_ui_ScrollView_getScrollBarWidth(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -17302,7 +17302,7 @@ int lua_cocos2dx_ui_ScrollView_getScrollBarWidth(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_isScrollBarAutoHideEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -17314,7 +17314,7 @@ int lua_cocos2dx_ui_ScrollView_isScrollBarAutoHideEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -17349,7 +17349,7 @@ int lua_cocos2dx_ui_ScrollView_isScrollBarAutoHideEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_jumpToBottomLeft(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -17361,7 +17361,7 @@ int lua_cocos2dx_ui_ScrollView_jumpToBottomLeft(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -17396,7 +17396,7 @@ int lua_cocos2dx_ui_ScrollView_jumpToBottomLeft(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_jumpToRight(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -17408,7 +17408,7 @@ int lua_cocos2dx_ui_ScrollView_jumpToRight(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -17443,7 +17443,7 @@ int lua_cocos2dx_ui_ScrollView_jumpToRight(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_getInnerContainerSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -17455,7 +17455,7 @@ int lua_cocos2dx_ui_ScrollView_getInnerContainerSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -17473,7 +17473,7 @@ int lua_cocos2dx_ui_ScrollView_getInnerContainerSize(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_ScrollView_getInnerContainerSize'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getInnerContainerSize(); + const axis::Vec2& ret = cobj->getInnerContainerSize(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -17490,7 +17490,7 @@ int lua_cocos2dx_ui_ScrollView_getInnerContainerSize(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_jumpToPercentHorizontal(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -17502,7 +17502,7 @@ int lua_cocos2dx_ui_ScrollView_jumpToPercentHorizontal(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ScrollView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ScrollView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -17559,8 +17559,8 @@ int lua_cocos2dx_ui_ScrollView_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_ScrollView_create'", nullptr); return 0; } - cocos2d::ui::ScrollView* ret = cocos2d::ui::ScrollView::create(); - object_to_luaval(tolua_S, "ccui.ScrollView",(cocos2d::ui::ScrollView*)ret); + axis::ui::ScrollView* ret = axis::ui::ScrollView::create(); + object_to_luaval(tolua_S, "ccui.ScrollView",(axis::ui::ScrollView*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.ScrollView:create",argc, 0); @@ -17593,8 +17593,8 @@ int lua_cocos2dx_ui_ScrollView_createInstance(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_ScrollView_createInstance'", nullptr); return 0; } - cocos2d::Ref* ret = cocos2d::ui::ScrollView::createInstance(); - object_to_luaval(tolua_S, "cc.Ref",(cocos2d::Ref*)ret); + axis::Ref* ret = axis::ui::ScrollView::createInstance(); + object_to_luaval(tolua_S, "cc.Ref",(axis::Ref*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.ScrollView:createInstance",argc, 0); @@ -17608,7 +17608,7 @@ int lua_cocos2dx_ui_ScrollView_createInstance(lua_State* tolua_S) int lua_cocos2dx_ui_ScrollView_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ScrollView* cobj = nullptr; + axis::ui::ScrollView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -17625,7 +17625,7 @@ int lua_cocos2dx_ui_ScrollView_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_ScrollView_constructor'", nullptr); return 0; } - cobj = new cocos2d::ui::ScrollView(); + cobj = new axis::ui::ScrollView(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -17719,7 +17719,7 @@ int lua_register_cocos2dx_ui_ScrollView(lua_State* tolua_S) tolua_function(tolua_S,"create", lua_cocos2dx_ui_ScrollView_create); tolua_function(tolua_S,"createInstance", lua_cocos2dx_ui_ScrollView_createInstance); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ui::ScrollView).name(); // rtti is literal storage + auto typeName = typeid(axis::ui::ScrollView).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccui.ScrollView"; g_typeCast[typeName] = "ccui.ScrollView"; return 1; @@ -17728,7 +17728,7 @@ int lua_register_cocos2dx_ui_ScrollView(lua_State* tolua_S) int lua_cocos2dx_ui_ListView_setGravity(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -17740,7 +17740,7 @@ int lua_cocos2dx_ui_ListView_setGravity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ListView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -17753,7 +17753,7 @@ int lua_cocos2dx_ui_ListView_setGravity(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ui::ListView::Gravity arg0; + axis::ui::ListView::Gravity arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.ListView:setGravity"); if(!ok) @@ -17778,7 +17778,7 @@ int lua_cocos2dx_ui_ListView_setGravity(lua_State* tolua_S) int lua_cocos2dx_ui_ListView_removeLastItem(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -17790,7 +17790,7 @@ int lua_cocos2dx_ui_ListView_removeLastItem(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ListView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -17825,7 +17825,7 @@ int lua_cocos2dx_ui_ListView_removeLastItem(lua_State* tolua_S) int lua_cocos2dx_ui_ListView_getLeftPadding(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -17837,7 +17837,7 @@ int lua_cocos2dx_ui_ListView_getLeftPadding(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ListView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -17872,7 +17872,7 @@ int lua_cocos2dx_ui_ListView_getLeftPadding(lua_State* tolua_S) int lua_cocos2dx_ui_ListView_getCenterItemInCurrentView(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -17884,7 +17884,7 @@ int lua_cocos2dx_ui_ListView_getCenterItemInCurrentView(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ListView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -17902,8 +17902,8 @@ int lua_cocos2dx_ui_ListView_getCenterItemInCurrentView(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_ListView_getCenterItemInCurrentView'", nullptr); return 0; } - cocos2d::ui::Widget* ret = cobj->getCenterItemInCurrentView(); - object_to_luaval(tolua_S, "ccui.Widget",(cocos2d::ui::Widget*)ret); + axis::ui::Widget* ret = cobj->getCenterItemInCurrentView(); + object_to_luaval(tolua_S, "ccui.Widget",(axis::ui::Widget*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.ListView:getCenterItemInCurrentView",argc, 0); @@ -17919,7 +17919,7 @@ int lua_cocos2dx_ui_ListView_getCenterItemInCurrentView(lua_State* tolua_S) int lua_cocos2dx_ui_ListView_getCurSelectedIndex(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -17931,7 +17931,7 @@ int lua_cocos2dx_ui_ListView_getCurSelectedIndex(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ListView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -17966,7 +17966,7 @@ int lua_cocos2dx_ui_ListView_getCurSelectedIndex(lua_State* tolua_S) int lua_cocos2dx_ui_ListView_getScrollDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -17978,7 +17978,7 @@ int lua_cocos2dx_ui_ListView_getScrollDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ListView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -18013,7 +18013,7 @@ int lua_cocos2dx_ui_ListView_getScrollDuration(lua_State* tolua_S) int lua_cocos2dx_ui_ListView_getMagneticAllowedOutOfBoundary(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -18025,7 +18025,7 @@ int lua_cocos2dx_ui_ListView_getMagneticAllowedOutOfBoundary(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ListView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -18060,7 +18060,7 @@ int lua_cocos2dx_ui_ListView_getMagneticAllowedOutOfBoundary(lua_State* tolua_S) int lua_cocos2dx_ui_ListView_getItemsMargin(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -18072,7 +18072,7 @@ int lua_cocos2dx_ui_ListView_getItemsMargin(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ListView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -18107,7 +18107,7 @@ int lua_cocos2dx_ui_ListView_getItemsMargin(lua_State* tolua_S) int lua_cocos2dx_ui_ListView_scrollToItem(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -18116,7 +18116,7 @@ int lua_cocos2dx_ui_ListView_scrollToItem(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ListView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -18131,11 +18131,11 @@ int lua_cocos2dx_ui_ListView_scrollToItem(lua_State* tolua_S) ok &= luaval_to_ssize_t(tolua_S, 2, &arg0, "ccui.ListView:scrollToItem"); if (!ok) { break; } - cocos2d::Vec2 arg1; + axis::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 3, &arg1, "ccui.ListView:scrollToItem"); if (!ok) { break; } - cocos2d::Vec2 arg2; + axis::Vec2 arg2; ok &= luaval_to_vec2(tolua_S, 4, &arg2, "ccui.ListView:scrollToItem"); if (!ok) { break; } @@ -18155,11 +18155,11 @@ int lua_cocos2dx_ui_ListView_scrollToItem(lua_State* tolua_S) ok &= luaval_to_ssize_t(tolua_S, 2, &arg0, "ccui.ListView:scrollToItem"); if (!ok) { break; } - cocos2d::Vec2 arg1; + axis::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 3, &arg1, "ccui.ListView:scrollToItem"); if (!ok) { break; } - cocos2d::Vec2 arg2; + axis::Vec2 arg2; ok &= luaval_to_vec2(tolua_S, 4, &arg2, "ccui.ListView:scrollToItem"); if (!ok) { break; } @@ -18182,7 +18182,7 @@ int lua_cocos2dx_ui_ListView_scrollToItem(lua_State* tolua_S) int lua_cocos2dx_ui_ListView_jumpToItem(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -18194,7 +18194,7 @@ int lua_cocos2dx_ui_ListView_jumpToItem(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ListView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -18208,8 +18208,8 @@ int lua_cocos2dx_ui_ListView_jumpToItem(lua_State* tolua_S) if (argc == 3) { ssize_t arg0; - cocos2d::Vec2 arg1; - cocos2d::Vec2 arg2; + axis::Vec2 arg1; + axis::Vec2 arg2; ok &= luaval_to_ssize_t(tolua_S, 2, &arg0, "ccui.ListView:jumpToItem"); @@ -18238,7 +18238,7 @@ int lua_cocos2dx_ui_ListView_jumpToItem(lua_State* tolua_S) int lua_cocos2dx_ui_ListView_setTopPadding(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -18250,7 +18250,7 @@ int lua_cocos2dx_ui_ListView_setTopPadding(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ListView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -18288,7 +18288,7 @@ int lua_cocos2dx_ui_ListView_setTopPadding(lua_State* tolua_S) int lua_cocos2dx_ui_ListView_getIndex(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -18300,7 +18300,7 @@ int lua_cocos2dx_ui_ListView_getIndex(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ListView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -18313,9 +18313,9 @@ int lua_cocos2dx_ui_ListView_getIndex(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ui::Widget* arg0; + axis::ui::Widget* arg0; - ok &= luaval_to_object(tolua_S, 2, "ccui.Widget",&arg0, "ccui.ListView:getIndex"); + ok &= luaval_to_object(tolua_S, 2, "ccui.Widget",&arg0, "ccui.ListView:getIndex"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_ListView_getIndex'", nullptr); @@ -18338,7 +18338,7 @@ int lua_cocos2dx_ui_ListView_getIndex(lua_State* tolua_S) int lua_cocos2dx_ui_ListView_pushBackCustomItem(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -18350,7 +18350,7 @@ int lua_cocos2dx_ui_ListView_pushBackCustomItem(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ListView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -18363,9 +18363,9 @@ int lua_cocos2dx_ui_ListView_pushBackCustomItem(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ui::Widget* arg0; + axis::ui::Widget* arg0; - ok &= luaval_to_object(tolua_S, 2, "ccui.Widget",&arg0, "ccui.ListView:pushBackCustomItem"); + ok &= luaval_to_object(tolua_S, 2, "ccui.Widget",&arg0, "ccui.ListView:pushBackCustomItem"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_ListView_pushBackCustomItem'", nullptr); @@ -18388,7 +18388,7 @@ int lua_cocos2dx_ui_ListView_pushBackCustomItem(lua_State* tolua_S) int lua_cocos2dx_ui_ListView_setCurSelectedIndex(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -18400,7 +18400,7 @@ int lua_cocos2dx_ui_ListView_setCurSelectedIndex(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ListView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -18438,7 +18438,7 @@ int lua_cocos2dx_ui_ListView_setCurSelectedIndex(lua_State* tolua_S) int lua_cocos2dx_ui_ListView_insertDefaultItem(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -18450,7 +18450,7 @@ int lua_cocos2dx_ui_ListView_insertDefaultItem(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ListView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -18488,7 +18488,7 @@ int lua_cocos2dx_ui_ListView_insertDefaultItem(lua_State* tolua_S) int lua_cocos2dx_ui_ListView_setMagneticType(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -18500,7 +18500,7 @@ int lua_cocos2dx_ui_ListView_setMagneticType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ListView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -18513,7 +18513,7 @@ int lua_cocos2dx_ui_ListView_setMagneticType(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ui::ListView::MagneticType arg0; + axis::ui::ListView::MagneticType arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.ListView:setMagneticType"); if(!ok) @@ -18538,7 +18538,7 @@ int lua_cocos2dx_ui_ListView_setMagneticType(lua_State* tolua_S) int lua_cocos2dx_ui_ListView_setMagneticAllowedOutOfBoundary(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -18550,7 +18550,7 @@ int lua_cocos2dx_ui_ListView_setMagneticAllowedOutOfBoundary(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ListView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -18588,7 +18588,7 @@ int lua_cocos2dx_ui_ListView_setMagneticAllowedOutOfBoundary(lua_State* tolua_S) int lua_cocos2dx_ui_ListView_addEventListener(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -18600,7 +18600,7 @@ int lua_cocos2dx_ui_ListView_addEventListener(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ListView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -18613,7 +18613,7 @@ int lua_cocos2dx_ui_ListView_addEventListener(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - std::function arg0; + std::function arg0; do { // Lambda binding for lua is not supported. @@ -18642,7 +18642,7 @@ int lua_cocos2dx_ui_ListView_addEventListener(lua_State* tolua_S) int lua_cocos2dx_ui_ListView_doLayout(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -18654,7 +18654,7 @@ int lua_cocos2dx_ui_ListView_doLayout(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ListView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -18689,7 +18689,7 @@ int lua_cocos2dx_ui_ListView_doLayout(lua_State* tolua_S) int lua_cocos2dx_ui_ListView_getTopmostItemInCurrentView(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -18701,7 +18701,7 @@ int lua_cocos2dx_ui_ListView_getTopmostItemInCurrentView(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ListView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -18719,8 +18719,8 @@ int lua_cocos2dx_ui_ListView_getTopmostItemInCurrentView(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_ListView_getTopmostItemInCurrentView'", nullptr); return 0; } - cocos2d::ui::Widget* ret = cobj->getTopmostItemInCurrentView(); - object_to_luaval(tolua_S, "ccui.Widget",(cocos2d::ui::Widget*)ret); + axis::ui::Widget* ret = cobj->getTopmostItemInCurrentView(); + object_to_luaval(tolua_S, "ccui.Widget",(axis::ui::Widget*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.ListView:getTopmostItemInCurrentView",argc, 0); @@ -18736,7 +18736,7 @@ int lua_cocos2dx_ui_ListView_getTopmostItemInCurrentView(lua_State* tolua_S) int lua_cocos2dx_ui_ListView_setPadding(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -18748,7 +18748,7 @@ int lua_cocos2dx_ui_ListView_setPadding(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ListView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -18795,7 +18795,7 @@ int lua_cocos2dx_ui_ListView_setPadding(lua_State* tolua_S) int lua_cocos2dx_ui_ListView_removeAllItems(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -18807,7 +18807,7 @@ int lua_cocos2dx_ui_ListView_removeAllItems(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ListView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -18842,7 +18842,7 @@ int lua_cocos2dx_ui_ListView_removeAllItems(lua_State* tolua_S) int lua_cocos2dx_ui_ListView_getRightPadding(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -18854,7 +18854,7 @@ int lua_cocos2dx_ui_ListView_getRightPadding(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ListView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -18889,7 +18889,7 @@ int lua_cocos2dx_ui_ListView_getRightPadding(lua_State* tolua_S) int lua_cocos2dx_ui_ListView_getBottommostItemInCurrentView(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -18901,7 +18901,7 @@ int lua_cocos2dx_ui_ListView_getBottommostItemInCurrentView(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ListView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -18919,8 +18919,8 @@ int lua_cocos2dx_ui_ListView_getBottommostItemInCurrentView(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_ListView_getBottommostItemInCurrentView'", nullptr); return 0; } - cocos2d::ui::Widget* ret = cobj->getBottommostItemInCurrentView(); - object_to_luaval(tolua_S, "ccui.Widget",(cocos2d::ui::Widget*)ret); + axis::ui::Widget* ret = cobj->getBottommostItemInCurrentView(); + object_to_luaval(tolua_S, "ccui.Widget",(axis::ui::Widget*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.ListView:getBottommostItemInCurrentView",argc, 0); @@ -18936,7 +18936,7 @@ int lua_cocos2dx_ui_ListView_getBottommostItemInCurrentView(lua_State* tolua_S) int lua_cocos2dx_ui_ListView_getItems(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -18948,7 +18948,7 @@ int lua_cocos2dx_ui_ListView_getItems(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ListView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -18966,7 +18966,7 @@ int lua_cocos2dx_ui_ListView_getItems(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_ListView_getItems'", nullptr); return 0; } - cocos2d::Vector& ret = cobj->getItems(); + axis::Vector& ret = cobj->getItems(); ccvector_to_luaval(tolua_S, ret); return 1; } @@ -18983,7 +18983,7 @@ int lua_cocos2dx_ui_ListView_getItems(lua_State* tolua_S) int lua_cocos2dx_ui_ListView_getLeftmostItemInCurrentView(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -18995,7 +18995,7 @@ int lua_cocos2dx_ui_ListView_getLeftmostItemInCurrentView(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ListView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -19013,8 +19013,8 @@ int lua_cocos2dx_ui_ListView_getLeftmostItemInCurrentView(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_ListView_getLeftmostItemInCurrentView'", nullptr); return 0; } - cocos2d::ui::Widget* ret = cobj->getLeftmostItemInCurrentView(); - object_to_luaval(tolua_S, "ccui.Widget",(cocos2d::ui::Widget*)ret); + axis::ui::Widget* ret = cobj->getLeftmostItemInCurrentView(); + object_to_luaval(tolua_S, "ccui.Widget",(axis::ui::Widget*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.ListView:getLeftmostItemInCurrentView",argc, 0); @@ -19030,7 +19030,7 @@ int lua_cocos2dx_ui_ListView_getLeftmostItemInCurrentView(lua_State* tolua_S) int lua_cocos2dx_ui_ListView_setItemsMargin(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -19042,7 +19042,7 @@ int lua_cocos2dx_ui_ListView_setItemsMargin(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ListView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -19080,7 +19080,7 @@ int lua_cocos2dx_ui_ListView_setItemsMargin(lua_State* tolua_S) int lua_cocos2dx_ui_ListView_getMagneticType(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -19092,7 +19092,7 @@ int lua_cocos2dx_ui_ListView_getMagneticType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ListView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -19127,7 +19127,7 @@ int lua_cocos2dx_ui_ListView_getMagneticType(lua_State* tolua_S) int lua_cocos2dx_ui_ListView_getItem(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -19139,7 +19139,7 @@ int lua_cocos2dx_ui_ListView_getItem(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ListView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -19160,8 +19160,8 @@ int lua_cocos2dx_ui_ListView_getItem(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_ListView_getItem'", nullptr); return 0; } - cocos2d::ui::Widget* ret = cobj->getItem(arg0); - object_to_luaval(tolua_S, "ccui.Widget",(cocos2d::ui::Widget*)ret); + axis::ui::Widget* ret = cobj->getItem(arg0); + object_to_luaval(tolua_S, "ccui.Widget",(axis::ui::Widget*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.ListView:getItem",argc, 1); @@ -19177,7 +19177,7 @@ int lua_cocos2dx_ui_ListView_getItem(lua_State* tolua_S) int lua_cocos2dx_ui_ListView_removeItem(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -19189,7 +19189,7 @@ int lua_cocos2dx_ui_ListView_removeItem(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ListView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -19227,7 +19227,7 @@ int lua_cocos2dx_ui_ListView_removeItem(lua_State* tolua_S) int lua_cocos2dx_ui_ListView_getTopPadding(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -19239,7 +19239,7 @@ int lua_cocos2dx_ui_ListView_getTopPadding(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ListView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -19274,7 +19274,7 @@ int lua_cocos2dx_ui_ListView_getTopPadding(lua_State* tolua_S) int lua_cocos2dx_ui_ListView_pushBackDefaultItem(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -19286,7 +19286,7 @@ int lua_cocos2dx_ui_ListView_pushBackDefaultItem(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ListView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -19321,7 +19321,7 @@ int lua_cocos2dx_ui_ListView_pushBackDefaultItem(lua_State* tolua_S) int lua_cocos2dx_ui_ListView_setLeftPadding(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -19333,7 +19333,7 @@ int lua_cocos2dx_ui_ListView_setLeftPadding(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ListView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -19371,7 +19371,7 @@ int lua_cocos2dx_ui_ListView_setLeftPadding(lua_State* tolua_S) int lua_cocos2dx_ui_ListView_getClosestItemToPosition(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -19383,7 +19383,7 @@ int lua_cocos2dx_ui_ListView_getClosestItemToPosition(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ListView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -19396,8 +19396,8 @@ int lua_cocos2dx_ui_ListView_getClosestItemToPosition(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::Vec2 arg0; - cocos2d::Vec2 arg1; + axis::Vec2 arg0; + axis::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ccui.ListView:getClosestItemToPosition"); @@ -19407,8 +19407,8 @@ int lua_cocos2dx_ui_ListView_getClosestItemToPosition(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_ListView_getClosestItemToPosition'", nullptr); return 0; } - cocos2d::ui::Widget* ret = cobj->getClosestItemToPosition(arg0, arg1); - object_to_luaval(tolua_S, "ccui.Widget",(cocos2d::ui::Widget*)ret); + axis::ui::Widget* ret = cobj->getClosestItemToPosition(arg0, arg1); + object_to_luaval(tolua_S, "ccui.Widget",(axis::ui::Widget*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.ListView:getClosestItemToPosition",argc, 2); @@ -19424,7 +19424,7 @@ int lua_cocos2dx_ui_ListView_getClosestItemToPosition(lua_State* tolua_S) int lua_cocos2dx_ui_ListView_setBottomPadding(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -19436,7 +19436,7 @@ int lua_cocos2dx_ui_ListView_setBottomPadding(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ListView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -19474,7 +19474,7 @@ int lua_cocos2dx_ui_ListView_setBottomPadding(lua_State* tolua_S) int lua_cocos2dx_ui_ListView_setScrollDuration(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -19486,7 +19486,7 @@ int lua_cocos2dx_ui_ListView_setScrollDuration(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ListView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -19524,7 +19524,7 @@ int lua_cocos2dx_ui_ListView_setScrollDuration(lua_State* tolua_S) int lua_cocos2dx_ui_ListView_getClosestItemToPositionInCurrentView(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -19536,7 +19536,7 @@ int lua_cocos2dx_ui_ListView_getClosestItemToPositionInCurrentView(lua_State* to if (!tolua_isusertype(tolua_S,1,"ccui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ListView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -19549,8 +19549,8 @@ int lua_cocos2dx_ui_ListView_getClosestItemToPositionInCurrentView(lua_State* to argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::Vec2 arg0; - cocos2d::Vec2 arg1; + axis::Vec2 arg0; + axis::Vec2 arg1; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ccui.ListView:getClosestItemToPositionInCurrentView"); @@ -19560,8 +19560,8 @@ int lua_cocos2dx_ui_ListView_getClosestItemToPositionInCurrentView(lua_State* to tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_ListView_getClosestItemToPositionInCurrentView'", nullptr); return 0; } - cocos2d::ui::Widget* ret = cobj->getClosestItemToPositionInCurrentView(arg0, arg1); - object_to_luaval(tolua_S, "ccui.Widget",(cocos2d::ui::Widget*)ret); + axis::ui::Widget* ret = cobj->getClosestItemToPositionInCurrentView(arg0, arg1); + object_to_luaval(tolua_S, "ccui.Widget",(axis::ui::Widget*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.ListView:getClosestItemToPositionInCurrentView",argc, 2); @@ -19577,7 +19577,7 @@ int lua_cocos2dx_ui_ListView_getClosestItemToPositionInCurrentView(lua_State* to int lua_cocos2dx_ui_ListView_getRightmostItemInCurrentView(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -19589,7 +19589,7 @@ int lua_cocos2dx_ui_ListView_getRightmostItemInCurrentView(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ListView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -19607,8 +19607,8 @@ int lua_cocos2dx_ui_ListView_getRightmostItemInCurrentView(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_ListView_getRightmostItemInCurrentView'", nullptr); return 0; } - cocos2d::ui::Widget* ret = cobj->getRightmostItemInCurrentView(); - object_to_luaval(tolua_S, "ccui.Widget",(cocos2d::ui::Widget*)ret); + axis::ui::Widget* ret = cobj->getRightmostItemInCurrentView(); + object_to_luaval(tolua_S, "ccui.Widget",(axis::ui::Widget*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.ListView:getRightmostItemInCurrentView",argc, 0); @@ -19624,7 +19624,7 @@ int lua_cocos2dx_ui_ListView_getRightmostItemInCurrentView(lua_State* tolua_S) int lua_cocos2dx_ui_ListView_setRightPadding(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -19636,7 +19636,7 @@ int lua_cocos2dx_ui_ListView_setRightPadding(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ListView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -19674,7 +19674,7 @@ int lua_cocos2dx_ui_ListView_setRightPadding(lua_State* tolua_S) int lua_cocos2dx_ui_ListView_setItemModel(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -19686,7 +19686,7 @@ int lua_cocos2dx_ui_ListView_setItemModel(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ListView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -19699,9 +19699,9 @@ int lua_cocos2dx_ui_ListView_setItemModel(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ui::Widget* arg0; + axis::ui::Widget* arg0; - ok &= luaval_to_object(tolua_S, 2, "ccui.Widget",&arg0, "ccui.ListView:setItemModel"); + ok &= luaval_to_object(tolua_S, 2, "ccui.Widget",&arg0, "ccui.ListView:setItemModel"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_ListView_setItemModel'", nullptr); @@ -19724,7 +19724,7 @@ int lua_cocos2dx_ui_ListView_setItemModel(lua_State* tolua_S) int lua_cocos2dx_ui_ListView_getBottomPadding(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -19736,7 +19736,7 @@ int lua_cocos2dx_ui_ListView_getBottomPadding(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ListView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -19771,7 +19771,7 @@ int lua_cocos2dx_ui_ListView_getBottomPadding(lua_State* tolua_S) int lua_cocos2dx_ui_ListView_insertCustomItem(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -19783,7 +19783,7 @@ int lua_cocos2dx_ui_ListView_insertCustomItem(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.ListView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::ListView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::ListView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -19796,10 +19796,10 @@ int lua_cocos2dx_ui_ListView_insertCustomItem(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::ui::Widget* arg0; + axis::ui::Widget* arg0; ssize_t arg1; - ok &= luaval_to_object(tolua_S, 2, "ccui.Widget",&arg0, "ccui.ListView:insertCustomItem"); + ok &= luaval_to_object(tolua_S, 2, "ccui.Widget",&arg0, "ccui.ListView:insertCustomItem"); ok &= luaval_to_ssize_t(tolua_S, 3, &arg1, "ccui.ListView:insertCustomItem"); if(!ok) @@ -19843,8 +19843,8 @@ int lua_cocos2dx_ui_ListView_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_ListView_create'", nullptr); return 0; } - cocos2d::ui::ListView* ret = cocos2d::ui::ListView::create(); - object_to_luaval(tolua_S, "ccui.ListView",(cocos2d::ui::ListView*)ret); + axis::ui::ListView* ret = axis::ui::ListView::create(); + object_to_luaval(tolua_S, "ccui.ListView",(axis::ui::ListView*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.ListView:create",argc, 0); @@ -19877,8 +19877,8 @@ int lua_cocos2dx_ui_ListView_createInstance(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_ListView_createInstance'", nullptr); return 0; } - cocos2d::Ref* ret = cocos2d::ui::ListView::createInstance(); - object_to_luaval(tolua_S, "cc.Ref",(cocos2d::Ref*)ret); + axis::Ref* ret = axis::ui::ListView::createInstance(); + object_to_luaval(tolua_S, "cc.Ref",(axis::Ref*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.ListView:createInstance",argc, 0); @@ -19892,7 +19892,7 @@ int lua_cocos2dx_ui_ListView_createInstance(lua_State* tolua_S) int lua_cocos2dx_ui_ListView_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::ListView* cobj = nullptr; + axis::ui::ListView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -19909,7 +19909,7 @@ int lua_cocos2dx_ui_ListView_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_ListView_constructor'", nullptr); return 0; } - cobj = new cocos2d::ui::ListView(); + cobj = new axis::ui::ListView(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -19984,7 +19984,7 @@ int lua_register_cocos2dx_ui_ListView(lua_State* tolua_S) tolua_function(tolua_S,"create", lua_cocos2dx_ui_ListView_create); tolua_function(tolua_S,"createInstance", lua_cocos2dx_ui_ListView_createInstance); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ui::ListView).name(); // rtti is literal storage + auto typeName = typeid(axis::ui::ListView).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccui.ListView"; g_typeCast[typeName] = "ccui.ListView"; return 1; @@ -19993,7 +19993,7 @@ int lua_register_cocos2dx_ui_ListView(lua_State* tolua_S) int lua_cocos2dx_ui_Slider_setPercent(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Slider* cobj = nullptr; + axis::ui::Slider* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -20005,7 +20005,7 @@ int lua_cocos2dx_ui_Slider_setPercent(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Slider",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Slider*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -20043,7 +20043,7 @@ int lua_cocos2dx_ui_Slider_setPercent(lua_State* tolua_S) int lua_cocos2dx_ui_Slider_getMaxPercent(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Slider* cobj = nullptr; + axis::ui::Slider* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -20055,7 +20055,7 @@ int lua_cocos2dx_ui_Slider_getMaxPercent(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Slider",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Slider*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -20090,7 +20090,7 @@ int lua_cocos2dx_ui_Slider_getMaxPercent(lua_State* tolua_S) int lua_cocos2dx_ui_Slider_loadSlidBallTextureNormal(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Slider* cobj = nullptr; + axis::ui::Slider* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -20102,7 +20102,7 @@ int lua_cocos2dx_ui_Slider_loadSlidBallTextureNormal(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Slider",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Slider*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -20130,7 +20130,7 @@ int lua_cocos2dx_ui_Slider_loadSlidBallTextureNormal(lua_State* tolua_S) if (argc == 2) { std::string_view arg0; - cocos2d::ui::Widget::TextureResType arg1; + axis::ui::Widget::TextureResType arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.Slider:loadSlidBallTextureNormal"); @@ -20157,7 +20157,7 @@ int lua_cocos2dx_ui_Slider_loadSlidBallTextureNormal(lua_State* tolua_S) int lua_cocos2dx_ui_Slider_loadProgressBarTexture(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Slider* cobj = nullptr; + axis::ui::Slider* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -20169,7 +20169,7 @@ int lua_cocos2dx_ui_Slider_loadProgressBarTexture(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Slider",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Slider*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -20197,7 +20197,7 @@ int lua_cocos2dx_ui_Slider_loadProgressBarTexture(lua_State* tolua_S) if (argc == 2) { std::string_view arg0; - cocos2d::ui::Widget::TextureResType arg1; + axis::ui::Widget::TextureResType arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.Slider:loadProgressBarTexture"); @@ -20224,7 +20224,7 @@ int lua_cocos2dx_ui_Slider_loadProgressBarTexture(lua_State* tolua_S) int lua_cocos2dx_ui_Slider_getBallNormalFile(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Slider* cobj = nullptr; + axis::ui::Slider* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -20236,7 +20236,7 @@ int lua_cocos2dx_ui_Slider_getBallNormalFile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Slider",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Slider*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -20254,7 +20254,7 @@ int lua_cocos2dx_ui_Slider_getBallNormalFile(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Slider_getBallNormalFile'", nullptr); return 0; } - cocos2d::ResourceData ret = cobj->getBallNormalFile(); + axis::ResourceData ret = cobj->getBallNormalFile(); #pragma warning NO CONVERSION FROM NATIVE FOR ResourceData; return 1; } @@ -20271,7 +20271,7 @@ int lua_cocos2dx_ui_Slider_getBallNormalFile(lua_State* tolua_S) int lua_cocos2dx_ui_Slider_getSlidBallDisabledRenderer(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Slider* cobj = nullptr; + axis::ui::Slider* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -20283,7 +20283,7 @@ int lua_cocos2dx_ui_Slider_getSlidBallDisabledRenderer(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Slider",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Slider*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -20301,8 +20301,8 @@ int lua_cocos2dx_ui_Slider_getSlidBallDisabledRenderer(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Slider_getSlidBallDisabledRenderer'", nullptr); return 0; } - cocos2d::Sprite* ret = cobj->getSlidBallDisabledRenderer(); - object_to_luaval(tolua_S, "cc.Sprite",(cocos2d::Sprite*)ret); + axis::Sprite* ret = cobj->getSlidBallDisabledRenderer(); + object_to_luaval(tolua_S, "cc.Sprite",(axis::Sprite*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.Slider:getSlidBallDisabledRenderer",argc, 0); @@ -20318,7 +20318,7 @@ int lua_cocos2dx_ui_Slider_getSlidBallDisabledRenderer(lua_State* tolua_S) int lua_cocos2dx_ui_Slider_setScale9Enabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Slider* cobj = nullptr; + axis::ui::Slider* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -20330,7 +20330,7 @@ int lua_cocos2dx_ui_Slider_setScale9Enabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Slider",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Slider*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -20368,7 +20368,7 @@ int lua_cocos2dx_ui_Slider_setScale9Enabled(lua_State* tolua_S) int lua_cocos2dx_ui_Slider_getBallPressedFile(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Slider* cobj = nullptr; + axis::ui::Slider* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -20380,7 +20380,7 @@ int lua_cocos2dx_ui_Slider_getBallPressedFile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Slider",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Slider*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -20398,7 +20398,7 @@ int lua_cocos2dx_ui_Slider_getBallPressedFile(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Slider_getBallPressedFile'", nullptr); return 0; } - cocos2d::ResourceData ret = cobj->getBallPressedFile(); + axis::ResourceData ret = cobj->getBallPressedFile(); #pragma warning NO CONVERSION FROM NATIVE FOR ResourceData; return 1; } @@ -20415,7 +20415,7 @@ int lua_cocos2dx_ui_Slider_getBallPressedFile(lua_State* tolua_S) int lua_cocos2dx_ui_Slider_getZoomScale(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Slider* cobj = nullptr; + axis::ui::Slider* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -20427,7 +20427,7 @@ int lua_cocos2dx_ui_Slider_getZoomScale(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Slider",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Slider*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -20462,7 +20462,7 @@ int lua_cocos2dx_ui_Slider_getZoomScale(lua_State* tolua_S) int lua_cocos2dx_ui_Slider_setCapInsetProgressBarRenderer(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Slider* cobj = nullptr; + axis::ui::Slider* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -20474,7 +20474,7 @@ int lua_cocos2dx_ui_Slider_setCapInsetProgressBarRenderer(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Slider",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Slider*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -20487,7 +20487,7 @@ int lua_cocos2dx_ui_Slider_setCapInsetProgressBarRenderer(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Rect arg0; + axis::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "ccui.Slider:setCapInsetProgressBarRenderer"); if(!ok) @@ -20512,7 +20512,7 @@ int lua_cocos2dx_ui_Slider_setCapInsetProgressBarRenderer(lua_State* tolua_S) int lua_cocos2dx_ui_Slider_loadSlidBallTextures(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Slider* cobj = nullptr; + axis::ui::Slider* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -20524,7 +20524,7 @@ int lua_cocos2dx_ui_Slider_loadSlidBallTextures(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Slider",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Slider*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -20591,7 +20591,7 @@ int lua_cocos2dx_ui_Slider_loadSlidBallTextures(lua_State* tolua_S) std::string_view arg0; std::string_view arg1; std::string_view arg2; - cocos2d::ui::Widget::TextureResType arg3; + axis::ui::Widget::TextureResType arg3; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.Slider:loadSlidBallTextures"); @@ -20622,7 +20622,7 @@ int lua_cocos2dx_ui_Slider_loadSlidBallTextures(lua_State* tolua_S) int lua_cocos2dx_ui_Slider_getSlidBallRenderer(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Slider* cobj = nullptr; + axis::ui::Slider* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -20634,7 +20634,7 @@ int lua_cocos2dx_ui_Slider_getSlidBallRenderer(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Slider",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Slider*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -20652,8 +20652,8 @@ int lua_cocos2dx_ui_Slider_getSlidBallRenderer(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Slider_getSlidBallRenderer'", nullptr); return 0; } - cocos2d::Node* ret = cobj->getSlidBallRenderer(); - object_to_luaval(tolua_S, "cc.Node",(cocos2d::Node*)ret); + axis::Node* ret = cobj->getSlidBallRenderer(); + object_to_luaval(tolua_S, "cc.Node",(axis::Node*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.Slider:getSlidBallRenderer",argc, 0); @@ -20669,7 +20669,7 @@ int lua_cocos2dx_ui_Slider_getSlidBallRenderer(lua_State* tolua_S) int lua_cocos2dx_ui_Slider_addEventListener(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Slider* cobj = nullptr; + axis::ui::Slider* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -20681,7 +20681,7 @@ int lua_cocos2dx_ui_Slider_addEventListener(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Slider",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Slider*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -20694,7 +20694,7 @@ int lua_cocos2dx_ui_Slider_addEventListener(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - std::function arg0; + std::function arg0; do { // Lambda binding for lua is not supported. @@ -20723,7 +20723,7 @@ int lua_cocos2dx_ui_Slider_addEventListener(lua_State* tolua_S) int lua_cocos2dx_ui_Slider_setMaxPercent(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Slider* cobj = nullptr; + axis::ui::Slider* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -20735,7 +20735,7 @@ int lua_cocos2dx_ui_Slider_setMaxPercent(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Slider",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Slider*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -20773,7 +20773,7 @@ int lua_cocos2dx_ui_Slider_setMaxPercent(lua_State* tolua_S) int lua_cocos2dx_ui_Slider_loadBarTexture(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Slider* cobj = nullptr; + axis::ui::Slider* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -20785,7 +20785,7 @@ int lua_cocos2dx_ui_Slider_loadBarTexture(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Slider",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Slider*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -20813,7 +20813,7 @@ int lua_cocos2dx_ui_Slider_loadBarTexture(lua_State* tolua_S) if (argc == 2) { std::string_view arg0; - cocos2d::ui::Widget::TextureResType arg1; + axis::ui::Widget::TextureResType arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.Slider:loadBarTexture"); @@ -20840,7 +20840,7 @@ int lua_cocos2dx_ui_Slider_loadBarTexture(lua_State* tolua_S) int lua_cocos2dx_ui_Slider_getProgressBarFile(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Slider* cobj = nullptr; + axis::ui::Slider* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -20852,7 +20852,7 @@ int lua_cocos2dx_ui_Slider_getProgressBarFile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Slider",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Slider*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -20870,7 +20870,7 @@ int lua_cocos2dx_ui_Slider_getProgressBarFile(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Slider_getProgressBarFile'", nullptr); return 0; } - cocos2d::ResourceData ret = cobj->getProgressBarFile(); + axis::ResourceData ret = cobj->getProgressBarFile(); #pragma warning NO CONVERSION FROM NATIVE FOR ResourceData; return 1; } @@ -20887,7 +20887,7 @@ int lua_cocos2dx_ui_Slider_getProgressBarFile(lua_State* tolua_S) int lua_cocos2dx_ui_Slider_getCapInsetsBarRenderer(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Slider* cobj = nullptr; + axis::ui::Slider* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -20899,7 +20899,7 @@ int lua_cocos2dx_ui_Slider_getCapInsetsBarRenderer(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Slider",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Slider*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -20917,7 +20917,7 @@ int lua_cocos2dx_ui_Slider_getCapInsetsBarRenderer(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Slider_getCapInsetsBarRenderer'", nullptr); return 0; } - const cocos2d::Rect& ret = cobj->getCapInsetsBarRenderer(); + const axis::Rect& ret = cobj->getCapInsetsBarRenderer(); rect_to_luaval(tolua_S, ret); return 1; } @@ -20934,7 +20934,7 @@ int lua_cocos2dx_ui_Slider_getCapInsetsBarRenderer(lua_State* tolua_S) int lua_cocos2dx_ui_Slider_updateVisualSlider(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Slider* cobj = nullptr; + axis::ui::Slider* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -20946,7 +20946,7 @@ int lua_cocos2dx_ui_Slider_updateVisualSlider(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Slider",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Slider*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -20981,7 +20981,7 @@ int lua_cocos2dx_ui_Slider_updateVisualSlider(lua_State* tolua_S) int lua_cocos2dx_ui_Slider_getCapInsetsProgressBarRenderer(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Slider* cobj = nullptr; + axis::ui::Slider* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -20993,7 +20993,7 @@ int lua_cocos2dx_ui_Slider_getCapInsetsProgressBarRenderer(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Slider",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Slider*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -21011,7 +21011,7 @@ int lua_cocos2dx_ui_Slider_getCapInsetsProgressBarRenderer(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Slider_getCapInsetsProgressBarRenderer'", nullptr); return 0; } - const cocos2d::Rect& ret = cobj->getCapInsetsProgressBarRenderer(); + const axis::Rect& ret = cobj->getCapInsetsProgressBarRenderer(); rect_to_luaval(tolua_S, ret); return 1; } @@ -21028,7 +21028,7 @@ int lua_cocos2dx_ui_Slider_getCapInsetsProgressBarRenderer(lua_State* tolua_S) int lua_cocos2dx_ui_Slider_getSlidBallPressedRenderer(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Slider* cobj = nullptr; + axis::ui::Slider* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -21040,7 +21040,7 @@ int lua_cocos2dx_ui_Slider_getSlidBallPressedRenderer(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Slider",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Slider*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -21058,8 +21058,8 @@ int lua_cocos2dx_ui_Slider_getSlidBallPressedRenderer(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Slider_getSlidBallPressedRenderer'", nullptr); return 0; } - cocos2d::Sprite* ret = cobj->getSlidBallPressedRenderer(); - object_to_luaval(tolua_S, "cc.Sprite",(cocos2d::Sprite*)ret); + axis::Sprite* ret = cobj->getSlidBallPressedRenderer(); + object_to_luaval(tolua_S, "cc.Sprite",(axis::Sprite*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.Slider:getSlidBallPressedRenderer",argc, 0); @@ -21075,7 +21075,7 @@ int lua_cocos2dx_ui_Slider_getSlidBallPressedRenderer(lua_State* tolua_S) int lua_cocos2dx_ui_Slider_loadSlidBallTexturePressed(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Slider* cobj = nullptr; + axis::ui::Slider* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -21087,7 +21087,7 @@ int lua_cocos2dx_ui_Slider_loadSlidBallTexturePressed(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Slider",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Slider*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -21115,7 +21115,7 @@ int lua_cocos2dx_ui_Slider_loadSlidBallTexturePressed(lua_State* tolua_S) if (argc == 2) { std::string_view arg0; - cocos2d::ui::Widget::TextureResType arg1; + axis::ui::Widget::TextureResType arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.Slider:loadSlidBallTexturePressed"); @@ -21142,7 +21142,7 @@ int lua_cocos2dx_ui_Slider_loadSlidBallTexturePressed(lua_State* tolua_S) int lua_cocos2dx_ui_Slider_getBackFile(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Slider* cobj = nullptr; + axis::ui::Slider* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -21154,7 +21154,7 @@ int lua_cocos2dx_ui_Slider_getBackFile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Slider",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Slider*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -21172,7 +21172,7 @@ int lua_cocos2dx_ui_Slider_getBackFile(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Slider_getBackFile'", nullptr); return 0; } - cocos2d::ResourceData ret = cobj->getBackFile(); + axis::ResourceData ret = cobj->getBackFile(); #pragma warning NO CONVERSION FROM NATIVE FOR ResourceData; return 1; } @@ -21189,7 +21189,7 @@ int lua_cocos2dx_ui_Slider_getBackFile(lua_State* tolua_S) int lua_cocos2dx_ui_Slider_isScale9Enabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Slider* cobj = nullptr; + axis::ui::Slider* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -21201,7 +21201,7 @@ int lua_cocos2dx_ui_Slider_isScale9Enabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Slider",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Slider*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -21236,7 +21236,7 @@ int lua_cocos2dx_ui_Slider_isScale9Enabled(lua_State* tolua_S) int lua_cocos2dx_ui_Slider_getBallDisabledFile(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Slider* cobj = nullptr; + axis::ui::Slider* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -21248,7 +21248,7 @@ int lua_cocos2dx_ui_Slider_getBallDisabledFile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Slider",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Slider*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -21266,7 +21266,7 @@ int lua_cocos2dx_ui_Slider_getBallDisabledFile(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Slider_getBallDisabledFile'", nullptr); return 0; } - cocos2d::ResourceData ret = cobj->getBallDisabledFile(); + axis::ResourceData ret = cobj->getBallDisabledFile(); #pragma warning NO CONVERSION FROM NATIVE FOR ResourceData; return 1; } @@ -21283,7 +21283,7 @@ int lua_cocos2dx_ui_Slider_getBallDisabledFile(lua_State* tolua_S) int lua_cocos2dx_ui_Slider_setCapInsetsBarRenderer(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Slider* cobj = nullptr; + axis::ui::Slider* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -21295,7 +21295,7 @@ int lua_cocos2dx_ui_Slider_setCapInsetsBarRenderer(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Slider",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Slider*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -21308,7 +21308,7 @@ int lua_cocos2dx_ui_Slider_setCapInsetsBarRenderer(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Rect arg0; + axis::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "ccui.Slider:setCapInsetsBarRenderer"); if(!ok) @@ -21333,7 +21333,7 @@ int lua_cocos2dx_ui_Slider_setCapInsetsBarRenderer(lua_State* tolua_S) int lua_cocos2dx_ui_Slider_getPercent(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Slider* cobj = nullptr; + axis::ui::Slider* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -21345,7 +21345,7 @@ int lua_cocos2dx_ui_Slider_getPercent(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Slider",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Slider*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -21380,7 +21380,7 @@ int lua_cocos2dx_ui_Slider_getPercent(lua_State* tolua_S) int lua_cocos2dx_ui_Slider_setCapInsets(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Slider* cobj = nullptr; + axis::ui::Slider* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -21392,7 +21392,7 @@ int lua_cocos2dx_ui_Slider_setCapInsets(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Slider",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Slider*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -21405,7 +21405,7 @@ int lua_cocos2dx_ui_Slider_setCapInsets(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Rect arg0; + axis::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "ccui.Slider:setCapInsets"); if(!ok) @@ -21430,7 +21430,7 @@ int lua_cocos2dx_ui_Slider_setCapInsets(lua_State* tolua_S) int lua_cocos2dx_ui_Slider_loadSlidBallTextureDisabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Slider* cobj = nullptr; + axis::ui::Slider* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -21442,7 +21442,7 @@ int lua_cocos2dx_ui_Slider_loadSlidBallTextureDisabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Slider",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Slider*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -21470,7 +21470,7 @@ int lua_cocos2dx_ui_Slider_loadSlidBallTextureDisabled(lua_State* tolua_S) if (argc == 2) { std::string_view arg0; - cocos2d::ui::Widget::TextureResType arg1; + axis::ui::Widget::TextureResType arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.Slider:loadSlidBallTextureDisabled"); @@ -21497,7 +21497,7 @@ int lua_cocos2dx_ui_Slider_loadSlidBallTextureDisabled(lua_State* tolua_S) int lua_cocos2dx_ui_Slider_getSlidBallNormalRenderer(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Slider* cobj = nullptr; + axis::ui::Slider* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -21509,7 +21509,7 @@ int lua_cocos2dx_ui_Slider_getSlidBallNormalRenderer(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Slider",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Slider*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -21527,8 +21527,8 @@ int lua_cocos2dx_ui_Slider_getSlidBallNormalRenderer(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Slider_getSlidBallNormalRenderer'", nullptr); return 0; } - cocos2d::Sprite* ret = cobj->getSlidBallNormalRenderer(); - object_to_luaval(tolua_S, "cc.Sprite",(cocos2d::Sprite*)ret); + axis::Sprite* ret = cobj->getSlidBallNormalRenderer(); + object_to_luaval(tolua_S, "cc.Sprite",(axis::Sprite*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.Slider:getSlidBallNormalRenderer",argc, 0); @@ -21544,7 +21544,7 @@ int lua_cocos2dx_ui_Slider_getSlidBallNormalRenderer(lua_State* tolua_S) int lua_cocos2dx_ui_Slider_setZoomScale(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Slider* cobj = nullptr; + axis::ui::Slider* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -21556,7 +21556,7 @@ int lua_cocos2dx_ui_Slider_setZoomScale(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Slider",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Slider*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Slider*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -21615,8 +21615,8 @@ int lua_cocos2dx_ui_Slider_create(lua_State* tolua_S) std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ccui.Slider:create"); if (!ok) { break; } - cocos2d::ui::Slider* ret = cocos2d::ui::Slider::create(arg0, arg1); - object_to_luaval(tolua_S, "ccui.Slider",(cocos2d::ui::Slider*)ret); + axis::ui::Slider* ret = axis::ui::Slider::create(arg0, arg1); + object_to_luaval(tolua_S, "ccui.Slider",(axis::ui::Slider*)ret); return 1; } } while (0); @@ -21631,11 +21631,11 @@ int lua_cocos2dx_ui_Slider_create(lua_State* tolua_S) std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ccui.Slider:create"); if (!ok) { break; } - cocos2d::ui::Widget::TextureResType arg2; + axis::ui::Widget::TextureResType arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ccui.Slider:create"); if (!ok) { break; } - cocos2d::ui::Slider* ret = cocos2d::ui::Slider::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "ccui.Slider",(cocos2d::ui::Slider*)ret); + axis::ui::Slider* ret = axis::ui::Slider::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "ccui.Slider",(axis::ui::Slider*)ret); return 1; } } while (0); @@ -21644,8 +21644,8 @@ int lua_cocos2dx_ui_Slider_create(lua_State* tolua_S) { if (argc == 0) { - cocos2d::ui::Slider* ret = cocos2d::ui::Slider::create(); - object_to_luaval(tolua_S, "ccui.Slider",(cocos2d::ui::Slider*)ret); + axis::ui::Slider* ret = axis::ui::Slider::create(); + object_to_luaval(tolua_S, "ccui.Slider",(axis::ui::Slider*)ret); return 1; } } while (0); @@ -21680,8 +21680,8 @@ int lua_cocos2dx_ui_Slider_createInstance(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Slider_createInstance'", nullptr); return 0; } - cocos2d::Ref* ret = cocos2d::ui::Slider::createInstance(); - object_to_luaval(tolua_S, "cc.Ref",(cocos2d::Ref*)ret); + axis::Ref* ret = axis::ui::Slider::createInstance(); + object_to_luaval(tolua_S, "cc.Ref",(axis::Ref*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.Slider:createInstance",argc, 0); @@ -21695,7 +21695,7 @@ int lua_cocos2dx_ui_Slider_createInstance(lua_State* tolua_S) int lua_cocos2dx_ui_Slider_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Slider* cobj = nullptr; + axis::ui::Slider* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -21712,7 +21712,7 @@ int lua_cocos2dx_ui_Slider_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Slider_constructor'", nullptr); return 0; } - cobj = new cocos2d::ui::Slider(); + cobj = new axis::ui::Slider(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -21775,7 +21775,7 @@ int lua_register_cocos2dx_ui_Slider(lua_State* tolua_S) tolua_function(tolua_S,"create", lua_cocos2dx_ui_Slider_create); tolua_function(tolua_S,"createInstance", lua_cocos2dx_ui_Slider_createInstance); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ui::Slider).name(); // rtti is literal storage + auto typeName = typeid(axis::ui::Slider).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccui.Slider"; g_typeCast[typeName] = "ccui.Slider"; return 1; @@ -21784,7 +21784,7 @@ int lua_register_cocos2dx_ui_Slider(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_setAttachWithIME(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -21796,7 +21796,7 @@ int lua_cocos2dx_ui_TextField_setAttachWithIME(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -21834,7 +21834,7 @@ int lua_cocos2dx_ui_TextField_setAttachWithIME(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_getFontSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -21846,7 +21846,7 @@ int lua_cocos2dx_ui_TextField_getFontSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -21881,7 +21881,7 @@ int lua_cocos2dx_ui_TextField_getFontSize(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_getString(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -21893,7 +21893,7 @@ int lua_cocos2dx_ui_TextField_getString(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -21928,7 +21928,7 @@ int lua_cocos2dx_ui_TextField_getString(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_setPasswordStyleText(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -21940,7 +21940,7 @@ int lua_cocos2dx_ui_TextField_setPasswordStyleText(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -21978,7 +21978,7 @@ int lua_cocos2dx_ui_TextField_setPasswordStyleText(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_getDeleteBackward(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -21990,7 +21990,7 @@ int lua_cocos2dx_ui_TextField_getDeleteBackward(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -22025,7 +22025,7 @@ int lua_cocos2dx_ui_TextField_getDeleteBackward(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_getTextColor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -22037,7 +22037,7 @@ int lua_cocos2dx_ui_TextField_getTextColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -22055,7 +22055,7 @@ int lua_cocos2dx_ui_TextField_getTextColor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_TextField_getTextColor'", nullptr); return 0; } - const cocos2d::Color4B& ret = cobj->getTextColor(); + const axis::Color4B& ret = cobj->getTextColor(); color4b_to_luaval(tolua_S, ret); return 1; } @@ -22072,7 +22072,7 @@ int lua_cocos2dx_ui_TextField_getTextColor(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_detachWithIME(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -22084,7 +22084,7 @@ int lua_cocos2dx_ui_TextField_detachWithIME(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -22119,7 +22119,7 @@ int lua_cocos2dx_ui_TextField_detachWithIME(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_getPlaceHolder(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -22131,7 +22131,7 @@ int lua_cocos2dx_ui_TextField_getPlaceHolder(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -22166,7 +22166,7 @@ int lua_cocos2dx_ui_TextField_getPlaceHolder(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_getAttachWithIME(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -22178,7 +22178,7 @@ int lua_cocos2dx_ui_TextField_getAttachWithIME(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -22213,7 +22213,7 @@ int lua_cocos2dx_ui_TextField_getAttachWithIME(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_setFontName(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -22225,7 +22225,7 @@ int lua_cocos2dx_ui_TextField_setFontName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -22263,7 +22263,7 @@ int lua_cocos2dx_ui_TextField_setFontName(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_getInsertText(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -22275,7 +22275,7 @@ int lua_cocos2dx_ui_TextField_getInsertText(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -22310,7 +22310,7 @@ int lua_cocos2dx_ui_TextField_getInsertText(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_setInsertText(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -22322,7 +22322,7 @@ int lua_cocos2dx_ui_TextField_setInsertText(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -22360,7 +22360,7 @@ int lua_cocos2dx_ui_TextField_setInsertText(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_setString(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -22372,7 +22372,7 @@ int lua_cocos2dx_ui_TextField_setString(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -22410,7 +22410,7 @@ int lua_cocos2dx_ui_TextField_setString(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_getDetachWithIME(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -22422,7 +22422,7 @@ int lua_cocos2dx_ui_TextField_getDetachWithIME(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -22457,7 +22457,7 @@ int lua_cocos2dx_ui_TextField_getDetachWithIME(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_setTextVerticalAlignment(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -22469,7 +22469,7 @@ int lua_cocos2dx_ui_TextField_setTextVerticalAlignment(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -22482,7 +22482,7 @@ int lua_cocos2dx_ui_TextField_setTextVerticalAlignment(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::TextVAlignment arg0; + axis::TextVAlignment arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.TextField:setTextVerticalAlignment"); if(!ok) @@ -22507,7 +22507,7 @@ int lua_cocos2dx_ui_TextField_setTextVerticalAlignment(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_addEventListener(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -22519,7 +22519,7 @@ int lua_cocos2dx_ui_TextField_addEventListener(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -22532,7 +22532,7 @@ int lua_cocos2dx_ui_TextField_addEventListener(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - std::function arg0; + std::function arg0; do { // Lambda binding for lua is not supported. @@ -22561,7 +22561,7 @@ int lua_cocos2dx_ui_TextField_addEventListener(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_didNotSelectSelf(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -22573,7 +22573,7 @@ int lua_cocos2dx_ui_TextField_didNotSelectSelf(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -22608,7 +22608,7 @@ int lua_cocos2dx_ui_TextField_didNotSelectSelf(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_getFontName(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -22620,7 +22620,7 @@ int lua_cocos2dx_ui_TextField_getFontName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -22655,7 +22655,7 @@ int lua_cocos2dx_ui_TextField_getFontName(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_setTextAreaSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -22667,7 +22667,7 @@ int lua_cocos2dx_ui_TextField_setTextAreaSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -22680,7 +22680,7 @@ int lua_cocos2dx_ui_TextField_setTextAreaSize(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ccui.TextField:setTextAreaSize"); if(!ok) @@ -22705,7 +22705,7 @@ int lua_cocos2dx_ui_TextField_setTextAreaSize(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_attachWithIME(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -22717,7 +22717,7 @@ int lua_cocos2dx_ui_TextField_attachWithIME(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -22752,7 +22752,7 @@ int lua_cocos2dx_ui_TextField_attachWithIME(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_getStringLength(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -22764,7 +22764,7 @@ int lua_cocos2dx_ui_TextField_getStringLength(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -22799,7 +22799,7 @@ int lua_cocos2dx_ui_TextField_getStringLength(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_getAutoRenderSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -22811,7 +22811,7 @@ int lua_cocos2dx_ui_TextField_getAutoRenderSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -22829,7 +22829,7 @@ int lua_cocos2dx_ui_TextField_getAutoRenderSize(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_TextField_getAutoRenderSize'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getAutoRenderSize(); + axis::Vec2 ret = cobj->getAutoRenderSize(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -22846,7 +22846,7 @@ int lua_cocos2dx_ui_TextField_getAutoRenderSize(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_setPasswordEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -22858,7 +22858,7 @@ int lua_cocos2dx_ui_TextField_setPasswordEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -22896,7 +22896,7 @@ int lua_cocos2dx_ui_TextField_setPasswordEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_getPlaceHolderColor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -22908,7 +22908,7 @@ int lua_cocos2dx_ui_TextField_getPlaceHolderColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -22926,7 +22926,7 @@ int lua_cocos2dx_ui_TextField_getPlaceHolderColor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_TextField_getPlaceHolderColor'", nullptr); return 0; } - const cocos2d::Color4B& ret = cobj->getPlaceHolderColor(); + const axis::Color4B& ret = cobj->getPlaceHolderColor(); color4b_to_luaval(tolua_S, ret); return 1; } @@ -22943,7 +22943,7 @@ int lua_cocos2dx_ui_TextField_getPlaceHolderColor(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_getPasswordStyleText(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -22955,7 +22955,7 @@ int lua_cocos2dx_ui_TextField_getPasswordStyleText(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -22990,7 +22990,7 @@ int lua_cocos2dx_ui_TextField_getPasswordStyleText(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_setMaxLengthEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -23002,7 +23002,7 @@ int lua_cocos2dx_ui_TextField_setMaxLengthEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -23040,7 +23040,7 @@ int lua_cocos2dx_ui_TextField_setMaxLengthEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_isPasswordEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -23052,7 +23052,7 @@ int lua_cocos2dx_ui_TextField_isPasswordEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -23087,7 +23087,7 @@ int lua_cocos2dx_ui_TextField_isPasswordEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_setDeleteBackward(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -23099,7 +23099,7 @@ int lua_cocos2dx_ui_TextField_setDeleteBackward(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -23137,7 +23137,7 @@ int lua_cocos2dx_ui_TextField_setDeleteBackward(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_setCursorPosition(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -23149,7 +23149,7 @@ int lua_cocos2dx_ui_TextField_setCursorPosition(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -23187,7 +23187,7 @@ int lua_cocos2dx_ui_TextField_setCursorPosition(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_getTextHorizontalAlignment(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -23199,7 +23199,7 @@ int lua_cocos2dx_ui_TextField_getTextHorizontalAlignment(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -23234,7 +23234,7 @@ int lua_cocos2dx_ui_TextField_getTextHorizontalAlignment(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_setFontSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -23246,7 +23246,7 @@ int lua_cocos2dx_ui_TextField_setFontSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -23284,7 +23284,7 @@ int lua_cocos2dx_ui_TextField_setFontSize(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_setPlaceHolder(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -23296,7 +23296,7 @@ int lua_cocos2dx_ui_TextField_setPlaceHolder(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -23334,7 +23334,7 @@ int lua_cocos2dx_ui_TextField_setPlaceHolder(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_setCursorFromPoint(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -23346,7 +23346,7 @@ int lua_cocos2dx_ui_TextField_setCursorFromPoint(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -23359,12 +23359,12 @@ int lua_cocos2dx_ui_TextField_setCursorFromPoint(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::Vec2 arg0; - const cocos2d::Camera* arg1; + axis::Vec2 arg0; + const axis::Camera* arg1; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ccui.TextField:setCursorFromPoint"); - ok &= luaval_to_object(tolua_S, 3, "cc.Camera",&arg1, "ccui.TextField:setCursorFromPoint"); + ok &= luaval_to_object(tolua_S, 3, "cc.Camera",&arg1, "ccui.TextField:setCursorFromPoint"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_TextField_setCursorFromPoint'", nullptr); @@ -23387,7 +23387,7 @@ int lua_cocos2dx_ui_TextField_setCursorFromPoint(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_setPlaceHolderColor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -23396,7 +23396,7 @@ int lua_cocos2dx_ui_TextField_setPlaceHolderColor(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -23407,7 +23407,7 @@ int lua_cocos2dx_ui_TextField_setPlaceHolderColor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { - cocos2d::Color4B arg0; + axis::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "ccui.TextField:setPlaceHolderColor"); if (!ok) { break; } @@ -23419,7 +23419,7 @@ int lua_cocos2dx_ui_TextField_setPlaceHolderColor(lua_State* tolua_S) ok = true; do{ if (argc == 1) { - cocos2d::Color3B arg0; + axis::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "ccui.TextField:setPlaceHolderColor"); if (!ok) { break; } @@ -23442,7 +23442,7 @@ int lua_cocos2dx_ui_TextField_setPlaceHolderColor(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_setTextHorizontalAlignment(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -23454,7 +23454,7 @@ int lua_cocos2dx_ui_TextField_setTextHorizontalAlignment(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -23467,7 +23467,7 @@ int lua_cocos2dx_ui_TextField_setTextHorizontalAlignment(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::TextHAlignment arg0; + axis::TextHAlignment arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.TextField:setTextHorizontalAlignment"); if(!ok) @@ -23492,7 +23492,7 @@ int lua_cocos2dx_ui_TextField_setTextHorizontalAlignment(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_setTextColor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -23504,7 +23504,7 @@ int lua_cocos2dx_ui_TextField_setTextColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -23517,7 +23517,7 @@ int lua_cocos2dx_ui_TextField_setTextColor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Color4B arg0; + axis::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "ccui.TextField:setTextColor"); if(!ok) @@ -23542,7 +23542,7 @@ int lua_cocos2dx_ui_TextField_setTextColor(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_setCursorChar(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -23554,7 +23554,7 @@ int lua_cocos2dx_ui_TextField_setCursorChar(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -23592,7 +23592,7 @@ int lua_cocos2dx_ui_TextField_setCursorChar(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_getMaxLength(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -23604,7 +23604,7 @@ int lua_cocos2dx_ui_TextField_getMaxLength(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -23639,7 +23639,7 @@ int lua_cocos2dx_ui_TextField_getMaxLength(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_isMaxLengthEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -23651,7 +23651,7 @@ int lua_cocos2dx_ui_TextField_isMaxLengthEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -23686,7 +23686,7 @@ int lua_cocos2dx_ui_TextField_isMaxLengthEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_setDetachWithIME(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -23698,7 +23698,7 @@ int lua_cocos2dx_ui_TextField_setDetachWithIME(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -23736,7 +23736,7 @@ int lua_cocos2dx_ui_TextField_setDetachWithIME(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_getTextVerticalAlignment(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -23748,7 +23748,7 @@ int lua_cocos2dx_ui_TextField_getTextVerticalAlignment(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -23783,7 +23783,7 @@ int lua_cocos2dx_ui_TextField_getTextVerticalAlignment(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_setTouchAreaEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -23795,7 +23795,7 @@ int lua_cocos2dx_ui_TextField_setTouchAreaEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -23833,7 +23833,7 @@ int lua_cocos2dx_ui_TextField_setTouchAreaEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_setMaxLength(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -23845,7 +23845,7 @@ int lua_cocos2dx_ui_TextField_setMaxLength(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -23883,7 +23883,7 @@ int lua_cocos2dx_ui_TextField_setMaxLength(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_setCursorEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -23895,7 +23895,7 @@ int lua_cocos2dx_ui_TextField_setCursorEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -23933,7 +23933,7 @@ int lua_cocos2dx_ui_TextField_setCursorEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_setTouchSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -23945,7 +23945,7 @@ int lua_cocos2dx_ui_TextField_setTouchSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -23958,7 +23958,7 @@ int lua_cocos2dx_ui_TextField_setTouchSize(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ccui.TextField:setTouchSize"); if(!ok) @@ -23983,7 +23983,7 @@ int lua_cocos2dx_ui_TextField_setTouchSize(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_getTouchSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -23995,7 +23995,7 @@ int lua_cocos2dx_ui_TextField_getTouchSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextField",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextField*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextField*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -24013,7 +24013,7 @@ int lua_cocos2dx_ui_TextField_getTouchSize(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_TextField_getTouchSize'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getTouchSize(); + axis::Vec2 ret = cobj->getTouchSize(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -24054,8 +24054,8 @@ int lua_cocos2dx_ui_TextField_create(lua_State* tolua_S) int arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ccui.TextField:create"); if (!ok) { break; } - cocos2d::ui::TextField* ret = cocos2d::ui::TextField::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "ccui.TextField",(cocos2d::ui::TextField*)ret); + axis::ui::TextField* ret = axis::ui::TextField::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "ccui.TextField",(axis::ui::TextField*)ret); return 1; } } while (0); @@ -24064,8 +24064,8 @@ int lua_cocos2dx_ui_TextField_create(lua_State* tolua_S) { if (argc == 0) { - cocos2d::ui::TextField* ret = cocos2d::ui::TextField::create(); - object_to_luaval(tolua_S, "ccui.TextField",(cocos2d::ui::TextField*)ret); + axis::ui::TextField* ret = axis::ui::TextField::create(); + object_to_luaval(tolua_S, "ccui.TextField",(axis::ui::TextField*)ret); return 1; } } while (0); @@ -24100,8 +24100,8 @@ int lua_cocos2dx_ui_TextField_createInstance(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_TextField_createInstance'", nullptr); return 0; } - cocos2d::Ref* ret = cocos2d::ui::TextField::createInstance(); - object_to_luaval(tolua_S, "cc.Ref",(cocos2d::Ref*)ret); + axis::Ref* ret = axis::ui::TextField::createInstance(); + object_to_luaval(tolua_S, "cc.Ref",(axis::Ref*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.TextField:createInstance",argc, 0); @@ -24115,7 +24115,7 @@ int lua_cocos2dx_ui_TextField_createInstance(lua_State* tolua_S) int lua_cocos2dx_ui_TextField_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextField* cobj = nullptr; + axis::ui::TextField* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -24132,7 +24132,7 @@ int lua_cocos2dx_ui_TextField_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_TextField_constructor'", nullptr); return 0; } - cobj = new cocos2d::ui::TextField(); + cobj = new axis::ui::TextField(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -24211,7 +24211,7 @@ int lua_register_cocos2dx_ui_TextField(lua_State* tolua_S) tolua_function(tolua_S,"create", lua_cocos2dx_ui_TextField_create); tolua_function(tolua_S,"createInstance", lua_cocos2dx_ui_TextField_createInstance); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ui::TextField).name(); // rtti is literal storage + auto typeName = typeid(axis::ui::TextField).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccui.TextField"; g_typeCast[typeName] = "ccui.TextField"; return 1; @@ -24220,7 +24220,7 @@ int lua_register_cocos2dx_ui_TextField(lua_State* tolua_S) int lua_cocos2dx_ui_TextBMFont_getStringLength(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextBMFont* cobj = nullptr; + axis::ui::TextBMFont* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -24232,7 +24232,7 @@ int lua_cocos2dx_ui_TextBMFont_getStringLength(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextBMFont",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextBMFont*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextBMFont*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -24267,7 +24267,7 @@ int lua_cocos2dx_ui_TextBMFont_getStringLength(lua_State* tolua_S) int lua_cocos2dx_ui_TextBMFont_getString(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextBMFont* cobj = nullptr; + axis::ui::TextBMFont* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -24279,7 +24279,7 @@ int lua_cocos2dx_ui_TextBMFont_getString(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextBMFont",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextBMFont*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextBMFont*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -24314,7 +24314,7 @@ int lua_cocos2dx_ui_TextBMFont_getString(lua_State* tolua_S) int lua_cocos2dx_ui_TextBMFont_setString(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextBMFont* cobj = nullptr; + axis::ui::TextBMFont* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -24326,7 +24326,7 @@ int lua_cocos2dx_ui_TextBMFont_setString(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextBMFont",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextBMFont*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextBMFont*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -24364,7 +24364,7 @@ int lua_cocos2dx_ui_TextBMFont_setString(lua_State* tolua_S) int lua_cocos2dx_ui_TextBMFont_getRenderFile(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextBMFont* cobj = nullptr; + axis::ui::TextBMFont* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -24376,7 +24376,7 @@ int lua_cocos2dx_ui_TextBMFont_getRenderFile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextBMFont",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextBMFont*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextBMFont*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -24394,7 +24394,7 @@ int lua_cocos2dx_ui_TextBMFont_getRenderFile(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_TextBMFont_getRenderFile'", nullptr); return 0; } - cocos2d::ResourceData ret = cobj->getRenderFile(); + axis::ResourceData ret = cobj->getRenderFile(); #pragma warning NO CONVERSION FROM NATIVE FOR ResourceData; return 1; } @@ -24411,7 +24411,7 @@ int lua_cocos2dx_ui_TextBMFont_getRenderFile(lua_State* tolua_S) int lua_cocos2dx_ui_TextBMFont_setFntFile(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextBMFont* cobj = nullptr; + axis::ui::TextBMFont* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -24423,7 +24423,7 @@ int lua_cocos2dx_ui_TextBMFont_setFntFile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextBMFont",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextBMFont*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextBMFont*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -24461,7 +24461,7 @@ int lua_cocos2dx_ui_TextBMFont_setFntFile(lua_State* tolua_S) int lua_cocos2dx_ui_TextBMFont_resetRender(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextBMFont* cobj = nullptr; + axis::ui::TextBMFont* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -24473,7 +24473,7 @@ int lua_cocos2dx_ui_TextBMFont_resetRender(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TextBMFont",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TextBMFont*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TextBMFont*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -24529,8 +24529,8 @@ int lua_cocos2dx_ui_TextBMFont_create(lua_State* tolua_S) std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ccui.TextBMFont:create"); if (!ok) { break; } - cocos2d::ui::TextBMFont* ret = cocos2d::ui::TextBMFont::create(arg0, arg1); - object_to_luaval(tolua_S, "ccui.TextBMFont",(cocos2d::ui::TextBMFont*)ret); + axis::ui::TextBMFont* ret = axis::ui::TextBMFont::create(arg0, arg1); + object_to_luaval(tolua_S, "ccui.TextBMFont",(axis::ui::TextBMFont*)ret); return 1; } } while (0); @@ -24539,8 +24539,8 @@ int lua_cocos2dx_ui_TextBMFont_create(lua_State* tolua_S) { if (argc == 0) { - cocos2d::ui::TextBMFont* ret = cocos2d::ui::TextBMFont::create(); - object_to_luaval(tolua_S, "ccui.TextBMFont",(cocos2d::ui::TextBMFont*)ret); + axis::ui::TextBMFont* ret = axis::ui::TextBMFont::create(); + object_to_luaval(tolua_S, "ccui.TextBMFont",(axis::ui::TextBMFont*)ret); return 1; } } while (0); @@ -24575,8 +24575,8 @@ int lua_cocos2dx_ui_TextBMFont_createInstance(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_TextBMFont_createInstance'", nullptr); return 0; } - cocos2d::Ref* ret = cocos2d::ui::TextBMFont::createInstance(); - object_to_luaval(tolua_S, "cc.Ref",(cocos2d::Ref*)ret); + axis::Ref* ret = axis::ui::TextBMFont::createInstance(); + object_to_luaval(tolua_S, "cc.Ref",(axis::Ref*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.TextBMFont:createInstance",argc, 0); @@ -24590,7 +24590,7 @@ int lua_cocos2dx_ui_TextBMFont_createInstance(lua_State* tolua_S) int lua_cocos2dx_ui_TextBMFont_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TextBMFont* cobj = nullptr; + axis::ui::TextBMFont* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -24607,7 +24607,7 @@ int lua_cocos2dx_ui_TextBMFont_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_TextBMFont_constructor'", nullptr); return 0; } - cobj = new cocos2d::ui::TextBMFont(); + cobj = new axis::ui::TextBMFont(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -24646,7 +24646,7 @@ int lua_register_cocos2dx_ui_TextBMFont(lua_State* tolua_S) tolua_function(tolua_S,"create", lua_cocos2dx_ui_TextBMFont_create); tolua_function(tolua_S,"createInstance", lua_cocos2dx_ui_TextBMFont_createInstance); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ui::TextBMFont).name(); // rtti is literal storage + auto typeName = typeid(axis::ui::TextBMFont).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccui.TextBMFont"; g_typeCast[typeName] = "ccui.TextBMFont"; return 1; @@ -24655,7 +24655,7 @@ int lua_register_cocos2dx_ui_TextBMFont(lua_State* tolua_S) int lua_cocos2dx_ui_PageView_setIndicatorSpaceBetweenIndexNodes(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::PageView* cobj = nullptr; + axis::ui::PageView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -24667,7 +24667,7 @@ int lua_cocos2dx_ui_PageView_setIndicatorSpaceBetweenIndexNodes(lua_State* tolua if (!tolua_isusertype(tolua_S,1,"ccui.PageView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::PageView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -24705,7 +24705,7 @@ int lua_cocos2dx_ui_PageView_setIndicatorSpaceBetweenIndexNodes(lua_State* tolua int lua_cocos2dx_ui_PageView_insertPage(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::PageView* cobj = nullptr; + axis::ui::PageView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -24717,7 +24717,7 @@ int lua_cocos2dx_ui_PageView_insertPage(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.PageView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::PageView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -24730,10 +24730,10 @@ int lua_cocos2dx_ui_PageView_insertPage(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::ui::Widget* arg0; + axis::ui::Widget* arg0; int arg1; - ok &= luaval_to_object(tolua_S, 2, "ccui.Widget",&arg0, "ccui.PageView:insertPage"); + ok &= luaval_to_object(tolua_S, 2, "ccui.Widget",&arg0, "ccui.PageView:insertPage"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ccui.PageView:insertPage"); if(!ok) @@ -24758,7 +24758,7 @@ int lua_cocos2dx_ui_PageView_insertPage(lua_State* tolua_S) int lua_cocos2dx_ui_PageView_setIndicatorIndexNodesOpacity(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::PageView* cobj = nullptr; + axis::ui::PageView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -24770,7 +24770,7 @@ int lua_cocos2dx_ui_PageView_setIndicatorIndexNodesOpacity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.PageView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::PageView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -24808,7 +24808,7 @@ int lua_cocos2dx_ui_PageView_setIndicatorIndexNodesOpacity(lua_State* tolua_S) int lua_cocos2dx_ui_PageView_setIndicatorSelectedIndexOpacity(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::PageView* cobj = nullptr; + axis::ui::PageView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -24820,7 +24820,7 @@ int lua_cocos2dx_ui_PageView_setIndicatorSelectedIndexOpacity(lua_State* tolua_S if (!tolua_isusertype(tolua_S,1,"ccui.PageView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::PageView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -24858,7 +24858,7 @@ int lua_cocos2dx_ui_PageView_setIndicatorSelectedIndexOpacity(lua_State* tolua_S int lua_cocos2dx_ui_PageView_removeAllPages(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::PageView* cobj = nullptr; + axis::ui::PageView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -24870,7 +24870,7 @@ int lua_cocos2dx_ui_PageView_removeAllPages(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.PageView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::PageView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -24905,7 +24905,7 @@ int lua_cocos2dx_ui_PageView_removeAllPages(lua_State* tolua_S) int lua_cocos2dx_ui_PageView_setAutoScrollStopEpsilon(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::PageView* cobj = nullptr; + axis::ui::PageView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -24917,7 +24917,7 @@ int lua_cocos2dx_ui_PageView_setAutoScrollStopEpsilon(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.PageView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::PageView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -24955,7 +24955,7 @@ int lua_cocos2dx_ui_PageView_setAutoScrollStopEpsilon(lua_State* tolua_S) int lua_cocos2dx_ui_PageView_setIndicatorIndexNodesScale(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::PageView* cobj = nullptr; + axis::ui::PageView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -24967,7 +24967,7 @@ int lua_cocos2dx_ui_PageView_setIndicatorIndexNodesScale(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.PageView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::PageView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -25005,7 +25005,7 @@ int lua_cocos2dx_ui_PageView_setIndicatorIndexNodesScale(lua_State* tolua_S) int lua_cocos2dx_ui_PageView_setIndicatorEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::PageView* cobj = nullptr; + axis::ui::PageView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -25017,7 +25017,7 @@ int lua_cocos2dx_ui_PageView_setIndicatorEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.PageView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::PageView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -25055,7 +25055,7 @@ int lua_cocos2dx_ui_PageView_setIndicatorEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_PageView_setIndicatorSelectedIndexColor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::PageView* cobj = nullptr; + axis::ui::PageView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -25067,7 +25067,7 @@ int lua_cocos2dx_ui_PageView_setIndicatorSelectedIndexColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.PageView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::PageView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -25080,7 +25080,7 @@ int lua_cocos2dx_ui_PageView_setIndicatorSelectedIndexColor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Color3B arg0; + axis::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "ccui.PageView:setIndicatorSelectedIndexColor"); if(!ok) @@ -25105,7 +25105,7 @@ int lua_cocos2dx_ui_PageView_setIndicatorSelectedIndexColor(lua_State* tolua_S) int lua_cocos2dx_ui_PageView_addEventListener(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::PageView* cobj = nullptr; + axis::ui::PageView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -25117,7 +25117,7 @@ int lua_cocos2dx_ui_PageView_addEventListener(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.PageView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::PageView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -25130,7 +25130,7 @@ int lua_cocos2dx_ui_PageView_addEventListener(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - std::function arg0; + std::function arg0; do { // Lambda binding for lua is not supported. @@ -25159,7 +25159,7 @@ int lua_cocos2dx_ui_PageView_addEventListener(lua_State* tolua_S) int lua_cocos2dx_ui_PageView_getIndicatorPosition(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::PageView* cobj = nullptr; + axis::ui::PageView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -25171,7 +25171,7 @@ int lua_cocos2dx_ui_PageView_getIndicatorPosition(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.PageView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::PageView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -25189,7 +25189,7 @@ int lua_cocos2dx_ui_PageView_getIndicatorPosition(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_PageView_getIndicatorPosition'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getIndicatorPosition(); + const axis::Vec2& ret = cobj->getIndicatorPosition(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -25206,7 +25206,7 @@ int lua_cocos2dx_ui_PageView_getIndicatorPosition(lua_State* tolua_S) int lua_cocos2dx_ui_PageView_setCurrentPageIndex(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::PageView* cobj = nullptr; + axis::ui::PageView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -25218,7 +25218,7 @@ int lua_cocos2dx_ui_PageView_setCurrentPageIndex(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.PageView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::PageView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -25256,7 +25256,7 @@ int lua_cocos2dx_ui_PageView_setCurrentPageIndex(lua_State* tolua_S) int lua_cocos2dx_ui_PageView_getIndicatorIndexNodesColor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::PageView* cobj = nullptr; + axis::ui::PageView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -25268,7 +25268,7 @@ int lua_cocos2dx_ui_PageView_getIndicatorIndexNodesColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.PageView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::PageView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -25286,7 +25286,7 @@ int lua_cocos2dx_ui_PageView_getIndicatorIndexNodesColor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_PageView_getIndicatorIndexNodesColor'", nullptr); return 0; } - const cocos2d::Color3B& ret = cobj->getIndicatorIndexNodesColor(); + const axis::Color3B& ret = cobj->getIndicatorIndexNodesColor(); color3b_to_luaval(tolua_S, ret); return 1; } @@ -25303,7 +25303,7 @@ int lua_cocos2dx_ui_PageView_getIndicatorIndexNodesColor(lua_State* tolua_S) int lua_cocos2dx_ui_PageView_getIndicatorSelectedIndexColor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::PageView* cobj = nullptr; + axis::ui::PageView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -25315,7 +25315,7 @@ int lua_cocos2dx_ui_PageView_getIndicatorSelectedIndexColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.PageView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::PageView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -25333,7 +25333,7 @@ int lua_cocos2dx_ui_PageView_getIndicatorSelectedIndexColor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_PageView_getIndicatorSelectedIndexColor'", nullptr); return 0; } - const cocos2d::Color3B& ret = cobj->getIndicatorSelectedIndexColor(); + const axis::Color3B& ret = cobj->getIndicatorSelectedIndexColor(); color3b_to_luaval(tolua_S, ret); return 1; } @@ -25350,7 +25350,7 @@ int lua_cocos2dx_ui_PageView_getIndicatorSelectedIndexColor(lua_State* tolua_S) int lua_cocos2dx_ui_PageView_getIndicatorIndexNodesScale(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::PageView* cobj = nullptr; + axis::ui::PageView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -25362,7 +25362,7 @@ int lua_cocos2dx_ui_PageView_getIndicatorIndexNodesScale(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.PageView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::PageView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -25397,7 +25397,7 @@ int lua_cocos2dx_ui_PageView_getIndicatorIndexNodesScale(lua_State* tolua_S) int lua_cocos2dx_ui_PageView_setIndicatorPosition(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::PageView* cobj = nullptr; + axis::ui::PageView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -25409,7 +25409,7 @@ int lua_cocos2dx_ui_PageView_setIndicatorPosition(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.PageView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::PageView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -25422,7 +25422,7 @@ int lua_cocos2dx_ui_PageView_setIndicatorPosition(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ccui.PageView:setIndicatorPosition"); if(!ok) @@ -25447,7 +25447,7 @@ int lua_cocos2dx_ui_PageView_setIndicatorPosition(lua_State* tolua_S) int lua_cocos2dx_ui_PageView_getIndicatorSelectedIndexOpacity(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::PageView* cobj = nullptr; + axis::ui::PageView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -25459,7 +25459,7 @@ int lua_cocos2dx_ui_PageView_getIndicatorSelectedIndexOpacity(lua_State* tolua_S if (!tolua_isusertype(tolua_S,1,"ccui.PageView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::PageView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -25494,7 +25494,7 @@ int lua_cocos2dx_ui_PageView_getIndicatorSelectedIndexOpacity(lua_State* tolua_S int lua_cocos2dx_ui_PageView_scrollToPage(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::PageView* cobj = nullptr; + axis::ui::PageView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -25503,7 +25503,7 @@ int lua_cocos2dx_ui_PageView_scrollToPage(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccui.PageView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::PageView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -25553,7 +25553,7 @@ int lua_cocos2dx_ui_PageView_scrollToPage(lua_State* tolua_S) int lua_cocos2dx_ui_PageView_setIndicatorPositionAsAnchorPoint(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::PageView* cobj = nullptr; + axis::ui::PageView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -25565,7 +25565,7 @@ int lua_cocos2dx_ui_PageView_setIndicatorPositionAsAnchorPoint(lua_State* tolua_ if (!tolua_isusertype(tolua_S,1,"ccui.PageView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::PageView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -25578,7 +25578,7 @@ int lua_cocos2dx_ui_PageView_setIndicatorPositionAsAnchorPoint(lua_State* tolua_ argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ccui.PageView:setIndicatorPositionAsAnchorPoint"); if(!ok) @@ -25603,7 +25603,7 @@ int lua_cocos2dx_ui_PageView_setIndicatorPositionAsAnchorPoint(lua_State* tolua_ int lua_cocos2dx_ui_PageView_scrollToItem(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::PageView* cobj = nullptr; + axis::ui::PageView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -25612,7 +25612,7 @@ int lua_cocos2dx_ui_PageView_scrollToItem(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccui.PageView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::PageView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -25662,7 +25662,7 @@ int lua_cocos2dx_ui_PageView_scrollToItem(lua_State* tolua_S) int lua_cocos2dx_ui_PageView_setIndicatorIndexNodesColor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::PageView* cobj = nullptr; + axis::ui::PageView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -25674,7 +25674,7 @@ int lua_cocos2dx_ui_PageView_setIndicatorIndexNodesColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.PageView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::PageView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -25687,7 +25687,7 @@ int lua_cocos2dx_ui_PageView_setIndicatorIndexNodesColor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Color3B arg0; + axis::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "ccui.PageView:setIndicatorIndexNodesColor"); if(!ok) @@ -25712,7 +25712,7 @@ int lua_cocos2dx_ui_PageView_setIndicatorIndexNodesColor(lua_State* tolua_S) int lua_cocos2dx_ui_PageView_getIndicatorIndexNodesOpacity(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::PageView* cobj = nullptr; + axis::ui::PageView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -25724,7 +25724,7 @@ int lua_cocos2dx_ui_PageView_getIndicatorIndexNodesOpacity(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.PageView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::PageView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -25759,7 +25759,7 @@ int lua_cocos2dx_ui_PageView_getIndicatorIndexNodesOpacity(lua_State* tolua_S) int lua_cocos2dx_ui_PageView_getIndicatorPositionAsAnchorPoint(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::PageView* cobj = nullptr; + axis::ui::PageView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -25771,7 +25771,7 @@ int lua_cocos2dx_ui_PageView_getIndicatorPositionAsAnchorPoint(lua_State* tolua_ if (!tolua_isusertype(tolua_S,1,"ccui.PageView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::PageView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -25789,7 +25789,7 @@ int lua_cocos2dx_ui_PageView_getIndicatorPositionAsAnchorPoint(lua_State* tolua_ tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_PageView_getIndicatorPositionAsAnchorPoint'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getIndicatorPositionAsAnchorPoint(); + const axis::Vec2& ret = cobj->getIndicatorPositionAsAnchorPoint(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -25806,7 +25806,7 @@ int lua_cocos2dx_ui_PageView_getIndicatorPositionAsAnchorPoint(lua_State* tolua_ int lua_cocos2dx_ui_PageView_getCurrentPageIndex(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::PageView* cobj = nullptr; + axis::ui::PageView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -25818,7 +25818,7 @@ int lua_cocos2dx_ui_PageView_getCurrentPageIndex(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.PageView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::PageView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -25853,7 +25853,7 @@ int lua_cocos2dx_ui_PageView_getCurrentPageIndex(lua_State* tolua_S) int lua_cocos2dx_ui_PageView_removePage(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::PageView* cobj = nullptr; + axis::ui::PageView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -25865,7 +25865,7 @@ int lua_cocos2dx_ui_PageView_removePage(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.PageView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::PageView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -25878,9 +25878,9 @@ int lua_cocos2dx_ui_PageView_removePage(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ui::Widget* arg0; + axis::ui::Widget* arg0; - ok &= luaval_to_object(tolua_S, 2, "ccui.Widget",&arg0, "ccui.PageView:removePage"); + ok &= luaval_to_object(tolua_S, 2, "ccui.Widget",&arg0, "ccui.PageView:removePage"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_PageView_removePage'", nullptr); @@ -25903,7 +25903,7 @@ int lua_cocos2dx_ui_PageView_removePage(lua_State* tolua_S) int lua_cocos2dx_ui_PageView_setIndicatorIndexNodesTexture(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::PageView* cobj = nullptr; + axis::ui::PageView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -25915,7 +25915,7 @@ int lua_cocos2dx_ui_PageView_setIndicatorIndexNodesTexture(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.PageView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::PageView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -25943,7 +25943,7 @@ int lua_cocos2dx_ui_PageView_setIndicatorIndexNodesTexture(lua_State* tolua_S) if (argc == 2) { std::string_view arg0; - cocos2d::ui::Widget::TextureResType arg1; + axis::ui::Widget::TextureResType arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.PageView:setIndicatorIndexNodesTexture"); @@ -25970,7 +25970,7 @@ int lua_cocos2dx_ui_PageView_setIndicatorIndexNodesTexture(lua_State* tolua_S) int lua_cocos2dx_ui_PageView_getIndicatorEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::PageView* cobj = nullptr; + axis::ui::PageView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -25982,7 +25982,7 @@ int lua_cocos2dx_ui_PageView_getIndicatorEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.PageView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::PageView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -26017,7 +26017,7 @@ int lua_cocos2dx_ui_PageView_getIndicatorEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_PageView_removePageAtIndex(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::PageView* cobj = nullptr; + axis::ui::PageView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -26029,7 +26029,7 @@ int lua_cocos2dx_ui_PageView_removePageAtIndex(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.PageView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::PageView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -26067,7 +26067,7 @@ int lua_cocos2dx_ui_PageView_removePageAtIndex(lua_State* tolua_S) int lua_cocos2dx_ui_PageView_getIndicatorSpaceBetweenIndexNodes(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::PageView* cobj = nullptr; + axis::ui::PageView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -26079,7 +26079,7 @@ int lua_cocos2dx_ui_PageView_getIndicatorSpaceBetweenIndexNodes(lua_State* tolua if (!tolua_isusertype(tolua_S,1,"ccui.PageView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::PageView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -26114,7 +26114,7 @@ int lua_cocos2dx_ui_PageView_getIndicatorSpaceBetweenIndexNodes(lua_State* tolua int lua_cocos2dx_ui_PageView_addPage(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::PageView* cobj = nullptr; + axis::ui::PageView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -26126,7 +26126,7 @@ int lua_cocos2dx_ui_PageView_addPage(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.PageView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::PageView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::PageView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -26139,9 +26139,9 @@ int lua_cocos2dx_ui_PageView_addPage(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ui::Widget* arg0; + axis::ui::Widget* arg0; - ok &= luaval_to_object(tolua_S, 2, "ccui.Widget",&arg0, "ccui.PageView:addPage"); + ok &= luaval_to_object(tolua_S, 2, "ccui.Widget",&arg0, "ccui.PageView:addPage"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_PageView_addPage'", nullptr); @@ -26183,8 +26183,8 @@ int lua_cocos2dx_ui_PageView_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_PageView_create'", nullptr); return 0; } - cocos2d::ui::PageView* ret = cocos2d::ui::PageView::create(); - object_to_luaval(tolua_S, "ccui.PageView",(cocos2d::ui::PageView*)ret); + axis::ui::PageView* ret = axis::ui::PageView::create(); + object_to_luaval(tolua_S, "ccui.PageView",(axis::ui::PageView*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.PageView:create",argc, 0); @@ -26217,8 +26217,8 @@ int lua_cocos2dx_ui_PageView_createInstance(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_PageView_createInstance'", nullptr); return 0; } - cocos2d::Ref* ret = cocos2d::ui::PageView::createInstance(); - object_to_luaval(tolua_S, "cc.Ref",(cocos2d::Ref*)ret); + axis::Ref* ret = axis::ui::PageView::createInstance(); + object_to_luaval(tolua_S, "cc.Ref",(axis::Ref*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.PageView:createInstance",argc, 0); @@ -26232,7 +26232,7 @@ int lua_cocos2dx_ui_PageView_createInstance(lua_State* tolua_S) int lua_cocos2dx_ui_PageView_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::PageView* cobj = nullptr; + axis::ui::PageView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -26249,7 +26249,7 @@ int lua_cocos2dx_ui_PageView_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_PageView_constructor'", nullptr); return 0; } - cobj = new cocos2d::ui::PageView(); + cobj = new axis::ui::PageView(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -26312,7 +26312,7 @@ int lua_register_cocos2dx_ui_PageView(lua_State* tolua_S) tolua_function(tolua_S,"create", lua_cocos2dx_ui_PageView_create); tolua_function(tolua_S,"createInstance", lua_cocos2dx_ui_PageView_createInstance); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ui::PageView).name(); // rtti is literal storage + auto typeName = typeid(axis::ui::PageView).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccui.PageView"; g_typeCast[typeName] = "ccui.PageView"; return 1; @@ -26346,7 +26346,7 @@ int lua_cocos2dx_ui_Helper_getSubStringOfUTF8String(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Helper_getSubStringOfUTF8String'", nullptr); return 0; } - std::string ret = cocos2d::ui::Helper::getSubStringOfUTF8String(arg0, arg1, arg2); + std::string ret = axis::ui::Helper::getSubStringOfUTF8String(arg0, arg1, arg2); lua_pushlstring(tolua_S,ret.c_str(),ret.length()); return 1; } @@ -26375,14 +26375,14 @@ int lua_cocos2dx_ui_Helper_convertBoundingBoxToScreen(lua_State* tolua_S) if (argc == 1) { - cocos2d::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "ccui.Helper:convertBoundingBoxToScreen"); + axis::Node* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "ccui.Helper:convertBoundingBoxToScreen"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Helper_convertBoundingBoxToScreen'", nullptr); return 0; } - cocos2d::Rect ret = cocos2d::ui::Helper::convertBoundingBoxToScreen(arg0); + axis::Rect ret = axis::ui::Helper::convertBoundingBoxToScreen(arg0); rect_to_luaval(tolua_S, ret); return 1; } @@ -26418,7 +26418,7 @@ int lua_cocos2dx_ui_Helper_changeLayoutSystemActiveState(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Helper_changeLayoutSystemActiveState'", nullptr); return 0; } - cocos2d::ui::Helper::changeLayoutSystemActiveState(arg0); + axis::ui::Helper::changeLayoutSystemActiveState(arg0); lua_settop(tolua_S, 1); return 1; } @@ -26447,17 +26447,17 @@ int lua_cocos2dx_ui_Helper_seekActionWidgetByActionTag(lua_State* tolua_S) if (argc == 2) { - cocos2d::ui::Widget* arg0; + axis::ui::Widget* arg0; int arg1; - ok &= luaval_to_object(tolua_S, 2, "ccui.Widget",&arg0, "ccui.Helper:seekActionWidgetByActionTag"); + ok &= luaval_to_object(tolua_S, 2, "ccui.Widget",&arg0, "ccui.Helper:seekActionWidgetByActionTag"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ccui.Helper:seekActionWidgetByActionTag"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Helper_seekActionWidgetByActionTag'", nullptr); return 0; } - cocos2d::ui::Widget* ret = cocos2d::ui::Helper::seekActionWidgetByActionTag(arg0, arg1); - object_to_luaval(tolua_S, "ccui.Widget",(cocos2d::ui::Widget*)ret); + axis::ui::Widget* ret = axis::ui::Helper::seekActionWidgetByActionTag(arg0, arg1); + object_to_luaval(tolua_S, "ccui.Widget",(axis::ui::Widget*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.Helper:seekActionWidgetByActionTag",argc, 2); @@ -26485,17 +26485,17 @@ int lua_cocos2dx_ui_Helper_seekWidgetByName(lua_State* tolua_S) if (argc == 2) { - cocos2d::ui::Widget* arg0; + axis::ui::Widget* arg0; std::string_view arg1; - ok &= luaval_to_object(tolua_S, 2, "ccui.Widget",&arg0, "ccui.Helper:seekWidgetByName"); + ok &= luaval_to_object(tolua_S, 2, "ccui.Widget",&arg0, "ccui.Helper:seekWidgetByName"); ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ccui.Helper:seekWidgetByName"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Helper_seekWidgetByName'", nullptr); return 0; } - cocos2d::ui::Widget* ret = cocos2d::ui::Helper::seekWidgetByName(arg0, arg1); - object_to_luaval(tolua_S, "ccui.Widget",(cocos2d::ui::Widget*)ret); + axis::ui::Widget* ret = axis::ui::Helper::seekWidgetByName(arg0, arg1); + object_to_luaval(tolua_S, "ccui.Widget",(axis::ui::Widget*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.Helper:seekWidgetByName",argc, 2); @@ -26523,17 +26523,17 @@ int lua_cocos2dx_ui_Helper_seekWidgetByTag(lua_State* tolua_S) if (argc == 2) { - cocos2d::ui::Widget* arg0; + axis::ui::Widget* arg0; int arg1; - ok &= luaval_to_object(tolua_S, 2, "ccui.Widget",&arg0, "ccui.Helper:seekWidgetByTag"); + ok &= luaval_to_object(tolua_S, 2, "ccui.Widget",&arg0, "ccui.Helper:seekWidgetByTag"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ccui.Helper:seekWidgetByTag"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Helper_seekWidgetByTag'", nullptr); return 0; } - cocos2d::ui::Widget* ret = cocos2d::ui::Helper::seekWidgetByTag(arg0, arg1); - object_to_luaval(tolua_S, "ccui.Widget",(cocos2d::ui::Widget*)ret); + axis::ui::Widget* ret = axis::ui::Helper::seekWidgetByTag(arg0, arg1); + object_to_luaval(tolua_S, "ccui.Widget",(axis::ui::Widget*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.Helper:seekWidgetByTag",argc, 2); @@ -26561,8 +26561,8 @@ int lua_cocos2dx_ui_Helper_restrictCapInsetRect(lua_State* tolua_S) if (argc == 2) { - cocos2d::Rect arg0; - cocos2d::Vec2 arg1; + axis::Rect arg0; + axis::Vec2 arg1; ok &= luaval_to_rect(tolua_S, 2, &arg0, "ccui.Helper:restrictCapInsetRect"); ok &= luaval_to_vec2(tolua_S, 3, &arg1, "ccui.Helper:restrictCapInsetRect"); if(!ok) @@ -26570,7 +26570,7 @@ int lua_cocos2dx_ui_Helper_restrictCapInsetRect(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Helper_restrictCapInsetRect'", nullptr); return 0; } - cocos2d::Rect ret = cocos2d::ui::Helper::restrictCapInsetRect(arg0, arg1); + axis::Rect ret = axis::ui::Helper::restrictCapInsetRect(arg0, arg1); rect_to_luaval(tolua_S, ret); return 1; } @@ -26599,14 +26599,14 @@ int lua_cocos2dx_ui_Helper_doLayout(lua_State* tolua_S) if (argc == 1) { - cocos2d::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "ccui.Helper:doLayout"); + axis::Node* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "ccui.Helper:doLayout"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Helper_doLayout'", nullptr); return 0; } - cocos2d::ui::Helper::doLayout(arg0); + axis::ui::Helper::doLayout(arg0); lua_settop(tolua_S, 1); return 1; } @@ -26639,7 +26639,7 @@ int lua_register_cocos2dx_ui_Helper(lua_State* tolua_S) tolua_function(tolua_S,"restrictCapInsetRect", lua_cocos2dx_ui_Helper_restrictCapInsetRect); tolua_function(tolua_S,"doLayout", lua_cocos2dx_ui_Helper_doLayout); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ui::Helper).name(); // rtti is literal storage + auto typeName = typeid(axis::ui::Helper).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccui.Helper"; g_typeCast[typeName] = "ccui.Helper"; return 1; @@ -26648,7 +26648,7 @@ int lua_register_cocos2dx_ui_Helper(lua_State* tolua_S) int lua_cocos2dx_ui_RichElement_equalType(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichElement* cobj = nullptr; + axis::ui::RichElement* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -26660,7 +26660,7 @@ int lua_cocos2dx_ui_RichElement_equalType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichElement",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichElement*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichElement*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -26673,7 +26673,7 @@ int lua_cocos2dx_ui_RichElement_equalType(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ui::RichElement::Type arg0; + axis::ui::RichElement::Type arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.RichElement:equalType"); if(!ok) @@ -26698,7 +26698,7 @@ int lua_cocos2dx_ui_RichElement_equalType(lua_State* tolua_S) int lua_cocos2dx_ui_RichElement_init(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichElement* cobj = nullptr; + axis::ui::RichElement* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -26710,7 +26710,7 @@ int lua_cocos2dx_ui_RichElement_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichElement",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichElement*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichElement*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -26724,7 +26724,7 @@ int lua_cocos2dx_ui_RichElement_init(lua_State* tolua_S) if (argc == 3) { int arg0; - cocos2d::Color3B arg1; + axis::Color3B arg1; uint16_t arg2; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.RichElement:init"); @@ -26754,7 +26754,7 @@ int lua_cocos2dx_ui_RichElement_init(lua_State* tolua_S) int lua_cocos2dx_ui_RichElement_setColor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichElement* cobj = nullptr; + axis::ui::RichElement* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -26766,7 +26766,7 @@ int lua_cocos2dx_ui_RichElement_setColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichElement",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichElement*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichElement*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -26779,7 +26779,7 @@ int lua_cocos2dx_ui_RichElement_setColor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Color3B arg0; + axis::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "ccui.RichElement:setColor"); if(!ok) @@ -26804,7 +26804,7 @@ int lua_cocos2dx_ui_RichElement_setColor(lua_State* tolua_S) int lua_cocos2dx_ui_RichElement_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichElement* cobj = nullptr; + axis::ui::RichElement* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -26821,7 +26821,7 @@ int lua_cocos2dx_ui_RichElement_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichElement_constructor'", nullptr); return 0; } - cobj = new cocos2d::ui::RichElement(); + cobj = new axis::ui::RichElement(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -26855,7 +26855,7 @@ int lua_register_cocos2dx_ui_RichElement(lua_State* tolua_S) tolua_function(tolua_S,"init",lua_cocos2dx_ui_RichElement_init); tolua_function(tolua_S,"setColor",lua_cocos2dx_ui_RichElement_setColor); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ui::RichElement).name(); // rtti is literal storage + auto typeName = typeid(axis::ui::RichElement).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccui.RichElement"; g_typeCast[typeName] = "ccui.RichElement"; return 1; @@ -26864,7 +26864,7 @@ int lua_register_cocos2dx_ui_RichElement(lua_State* tolua_S) int lua_cocos2dx_ui_RichElementText_init(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichElementText* cobj = nullptr; + axis::ui::RichElementText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -26876,7 +26876,7 @@ int lua_cocos2dx_ui_RichElementText_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichElementText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichElementText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichElementText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -26890,7 +26890,7 @@ int lua_cocos2dx_ui_RichElementText_init(lua_State* tolua_S) if (argc == 8) { int arg0; - cocos2d::Color3B arg1; + axis::Color3B arg1; uint16_t arg2; std::string_view arg3; std::string_view arg4; @@ -26925,14 +26925,14 @@ int lua_cocos2dx_ui_RichElementText_init(lua_State* tolua_S) if (argc == 9) { int arg0; - cocos2d::Color3B arg1; + axis::Color3B arg1; uint16_t arg2; std::string_view arg3; std::string_view arg4; double arg5; unsigned int arg6; std::string_view arg7; - cocos2d::Color3B arg8; + axis::Color3B arg8; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.RichElementText:init"); @@ -26963,14 +26963,14 @@ int lua_cocos2dx_ui_RichElementText_init(lua_State* tolua_S) if (argc == 10) { int arg0; - cocos2d::Color3B arg1; + axis::Color3B arg1; uint16_t arg2; std::string_view arg3; std::string_view arg4; double arg5; unsigned int arg6; std::string_view arg7; - cocos2d::Color3B arg8; + axis::Color3B arg8; int arg9; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.RichElementText:init"); @@ -27004,16 +27004,16 @@ int lua_cocos2dx_ui_RichElementText_init(lua_State* tolua_S) if (argc == 11) { int arg0; - cocos2d::Color3B arg1; + axis::Color3B arg1; uint16_t arg2; std::string_view arg3; std::string_view arg4; double arg5; unsigned int arg6; std::string_view arg7; - cocos2d::Color3B arg8; + axis::Color3B arg8; int arg9; - cocos2d::Color3B arg10; + axis::Color3B arg10; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.RichElementText:init"); @@ -27048,17 +27048,17 @@ int lua_cocos2dx_ui_RichElementText_init(lua_State* tolua_S) if (argc == 12) { int arg0; - cocos2d::Color3B arg1; + axis::Color3B arg1; uint16_t arg2; std::string_view arg3; std::string_view arg4; double arg5; unsigned int arg6; std::string_view arg7; - cocos2d::Color3B arg8; + axis::Color3B arg8; int arg9; - cocos2d::Color3B arg10; - cocos2d::Vec2 arg11; + axis::Color3B arg10; + axis::Vec2 arg11; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.RichElementText:init"); @@ -27095,17 +27095,17 @@ int lua_cocos2dx_ui_RichElementText_init(lua_State* tolua_S) if (argc == 13) { int arg0; - cocos2d::Color3B arg1; + axis::Color3B arg1; uint16_t arg2; std::string_view arg3; std::string_view arg4; double arg5; unsigned int arg6; std::string_view arg7; - cocos2d::Color3B arg8; + axis::Color3B arg8; int arg9; - cocos2d::Color3B arg10; - cocos2d::Vec2 arg11; + axis::Color3B arg10; + axis::Vec2 arg11; int arg12; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.RichElementText:init"); @@ -27145,19 +27145,19 @@ int lua_cocos2dx_ui_RichElementText_init(lua_State* tolua_S) if (argc == 14) { int arg0; - cocos2d::Color3B arg1; + axis::Color3B arg1; uint16_t arg2; std::string_view arg3; std::string_view arg4; double arg5; unsigned int arg6; std::string_view arg7; - cocos2d::Color3B arg8; + axis::Color3B arg8; int arg9; - cocos2d::Color3B arg10; - cocos2d::Vec2 arg11; + axis::Color3B arg10; + axis::Vec2 arg11; int arg12; - cocos2d::Color3B arg13; + axis::Color3B arg13; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.RichElementText:init"); @@ -27223,7 +27223,7 @@ int lua_cocos2dx_ui_RichElementText_create(lua_State* tolua_S) if (argc == 6) { int arg0; - cocos2d::Color3B arg1; + axis::Color3B arg1; uint16_t arg2; std::string_view arg3; std::string_view arg4; @@ -27239,14 +27239,14 @@ int lua_cocos2dx_ui_RichElementText_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichElementText_create'", nullptr); return 0; } - cocos2d::ui::RichElementText* ret = cocos2d::ui::RichElementText::create(arg0, arg1, arg2, arg3, arg4, arg5); - object_to_luaval(tolua_S, "ccui.RichElementText",(cocos2d::ui::RichElementText*)ret); + axis::ui::RichElementText* ret = axis::ui::RichElementText::create(arg0, arg1, arg2, arg3, arg4, arg5); + object_to_luaval(tolua_S, "ccui.RichElementText",(axis::ui::RichElementText*)ret); return 1; } if (argc == 7) { int arg0; - cocos2d::Color3B arg1; + axis::Color3B arg1; uint16_t arg2; std::string_view arg3; std::string_view arg4; @@ -27264,14 +27264,14 @@ int lua_cocos2dx_ui_RichElementText_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichElementText_create'", nullptr); return 0; } - cocos2d::ui::RichElementText* ret = cocos2d::ui::RichElementText::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6); - object_to_luaval(tolua_S, "ccui.RichElementText",(cocos2d::ui::RichElementText*)ret); + axis::ui::RichElementText* ret = axis::ui::RichElementText::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6); + object_to_luaval(tolua_S, "ccui.RichElementText",(axis::ui::RichElementText*)ret); return 1; } if (argc == 8) { int arg0; - cocos2d::Color3B arg1; + axis::Color3B arg1; uint16_t arg2; std::string_view arg3; std::string_view arg4; @@ -27291,21 +27291,21 @@ int lua_cocos2dx_ui_RichElementText_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichElementText_create'", nullptr); return 0; } - cocos2d::ui::RichElementText* ret = cocos2d::ui::RichElementText::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7); - object_to_luaval(tolua_S, "ccui.RichElementText",(cocos2d::ui::RichElementText*)ret); + axis::ui::RichElementText* ret = axis::ui::RichElementText::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7); + object_to_luaval(tolua_S, "ccui.RichElementText",(axis::ui::RichElementText*)ret); return 1; } if (argc == 9) { int arg0; - cocos2d::Color3B arg1; + axis::Color3B arg1; uint16_t arg2; std::string_view arg3; std::string_view arg4; double arg5; unsigned int arg6; std::string_view arg7; - cocos2d::Color3B arg8; + axis::Color3B arg8; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.RichElementText:create"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "ccui.RichElementText:create"); ok &= luaval_to_uint16(tolua_S, 4,&arg2, "ccui.RichElementText:create"); @@ -27320,21 +27320,21 @@ int lua_cocos2dx_ui_RichElementText_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichElementText_create'", nullptr); return 0; } - cocos2d::ui::RichElementText* ret = cocos2d::ui::RichElementText::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); - object_to_luaval(tolua_S, "ccui.RichElementText",(cocos2d::ui::RichElementText*)ret); + axis::ui::RichElementText* ret = axis::ui::RichElementText::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8); + object_to_luaval(tolua_S, "ccui.RichElementText",(axis::ui::RichElementText*)ret); return 1; } if (argc == 10) { int arg0; - cocos2d::Color3B arg1; + axis::Color3B arg1; uint16_t arg2; std::string_view arg3; std::string_view arg4; double arg5; unsigned int arg6; std::string_view arg7; - cocos2d::Color3B arg8; + axis::Color3B arg8; int arg9; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.RichElementText:create"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "ccui.RichElementText:create"); @@ -27351,23 +27351,23 @@ int lua_cocos2dx_ui_RichElementText_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichElementText_create'", nullptr); return 0; } - cocos2d::ui::RichElementText* ret = cocos2d::ui::RichElementText::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); - object_to_luaval(tolua_S, "ccui.RichElementText",(cocos2d::ui::RichElementText*)ret); + axis::ui::RichElementText* ret = axis::ui::RichElementText::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9); + object_to_luaval(tolua_S, "ccui.RichElementText",(axis::ui::RichElementText*)ret); return 1; } if (argc == 11) { int arg0; - cocos2d::Color3B arg1; + axis::Color3B arg1; uint16_t arg2; std::string_view arg3; std::string_view arg4; double arg5; unsigned int arg6; std::string_view arg7; - cocos2d::Color3B arg8; + axis::Color3B arg8; int arg9; - cocos2d::Color3B arg10; + axis::Color3B arg10; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.RichElementText:create"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "ccui.RichElementText:create"); ok &= luaval_to_uint16(tolua_S, 4,&arg2, "ccui.RichElementText:create"); @@ -27384,24 +27384,24 @@ int lua_cocos2dx_ui_RichElementText_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichElementText_create'", nullptr); return 0; } - cocos2d::ui::RichElementText* ret = cocos2d::ui::RichElementText::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10); - object_to_luaval(tolua_S, "ccui.RichElementText",(cocos2d::ui::RichElementText*)ret); + axis::ui::RichElementText* ret = axis::ui::RichElementText::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10); + object_to_luaval(tolua_S, "ccui.RichElementText",(axis::ui::RichElementText*)ret); return 1; } if (argc == 12) { int arg0; - cocos2d::Color3B arg1; + axis::Color3B arg1; uint16_t arg2; std::string_view arg3; std::string_view arg4; double arg5; unsigned int arg6; std::string_view arg7; - cocos2d::Color3B arg8; + axis::Color3B arg8; int arg9; - cocos2d::Color3B arg10; - cocos2d::Vec2 arg11; + axis::Color3B arg10; + axis::Vec2 arg11; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.RichElementText:create"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "ccui.RichElementText:create"); ok &= luaval_to_uint16(tolua_S, 4,&arg2, "ccui.RichElementText:create"); @@ -27419,24 +27419,24 @@ int lua_cocos2dx_ui_RichElementText_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichElementText_create'", nullptr); return 0; } - cocos2d::ui::RichElementText* ret = cocos2d::ui::RichElementText::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11); - object_to_luaval(tolua_S, "ccui.RichElementText",(cocos2d::ui::RichElementText*)ret); + axis::ui::RichElementText* ret = axis::ui::RichElementText::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11); + object_to_luaval(tolua_S, "ccui.RichElementText",(axis::ui::RichElementText*)ret); return 1; } if (argc == 13) { int arg0; - cocos2d::Color3B arg1; + axis::Color3B arg1; uint16_t arg2; std::string_view arg3; std::string_view arg4; double arg5; unsigned int arg6; std::string_view arg7; - cocos2d::Color3B arg8; + axis::Color3B arg8; int arg9; - cocos2d::Color3B arg10; - cocos2d::Vec2 arg11; + axis::Color3B arg10; + axis::Vec2 arg11; int arg12; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.RichElementText:create"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "ccui.RichElementText:create"); @@ -27456,26 +27456,26 @@ int lua_cocos2dx_ui_RichElementText_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichElementText_create'", nullptr); return 0; } - cocos2d::ui::RichElementText* ret = cocos2d::ui::RichElementText::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12); - object_to_luaval(tolua_S, "ccui.RichElementText",(cocos2d::ui::RichElementText*)ret); + axis::ui::RichElementText* ret = axis::ui::RichElementText::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12); + object_to_luaval(tolua_S, "ccui.RichElementText",(axis::ui::RichElementText*)ret); return 1; } if (argc == 14) { int arg0; - cocos2d::Color3B arg1; + axis::Color3B arg1; uint16_t arg2; std::string_view arg3; std::string_view arg4; double arg5; unsigned int arg6; std::string_view arg7; - cocos2d::Color3B arg8; + axis::Color3B arg8; int arg9; - cocos2d::Color3B arg10; - cocos2d::Vec2 arg11; + axis::Color3B arg10; + axis::Vec2 arg11; int arg12; - cocos2d::Color3B arg13; + axis::Color3B arg13; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.RichElementText:create"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "ccui.RichElementText:create"); ok &= luaval_to_uint16(tolua_S, 4,&arg2, "ccui.RichElementText:create"); @@ -27495,8 +27495,8 @@ int lua_cocos2dx_ui_RichElementText_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichElementText_create'", nullptr); return 0; } - cocos2d::ui::RichElementText* ret = cocos2d::ui::RichElementText::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13); - object_to_luaval(tolua_S, "ccui.RichElementText",(cocos2d::ui::RichElementText*)ret); + axis::ui::RichElementText* ret = axis::ui::RichElementText::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13); + object_to_luaval(tolua_S, "ccui.RichElementText",(axis::ui::RichElementText*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.RichElementText:create",argc, 6); @@ -27510,7 +27510,7 @@ int lua_cocos2dx_ui_RichElementText_create(lua_State* tolua_S) int lua_cocos2dx_ui_RichElementText_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichElementText* cobj = nullptr; + axis::ui::RichElementText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -27527,7 +27527,7 @@ int lua_cocos2dx_ui_RichElementText_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichElementText_constructor'", nullptr); return 0; } - cobj = new cocos2d::ui::RichElementText(); + cobj = new axis::ui::RichElementText(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -27560,7 +27560,7 @@ int lua_register_cocos2dx_ui_RichElementText(lua_State* tolua_S) tolua_function(tolua_S,"init",lua_cocos2dx_ui_RichElementText_init); tolua_function(tolua_S,"create", lua_cocos2dx_ui_RichElementText_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ui::RichElementText).name(); // rtti is literal storage + auto typeName = typeid(axis::ui::RichElementText).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccui.RichElementText"; g_typeCast[typeName] = "ccui.RichElementText"; return 1; @@ -27569,7 +27569,7 @@ int lua_register_cocos2dx_ui_RichElementText(lua_State* tolua_S) int lua_cocos2dx_ui_RichElementImage_setHeight(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichElementImage* cobj = nullptr; + axis::ui::RichElementImage* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -27581,7 +27581,7 @@ int lua_cocos2dx_ui_RichElementImage_setHeight(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichElementImage",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichElementImage*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichElementImage*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -27619,7 +27619,7 @@ int lua_cocos2dx_ui_RichElementImage_setHeight(lua_State* tolua_S) int lua_cocos2dx_ui_RichElementImage_init(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichElementImage* cobj = nullptr; + axis::ui::RichElementImage* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -27631,7 +27631,7 @@ int lua_cocos2dx_ui_RichElementImage_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichElementImage",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichElementImage*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichElementImage*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -27645,7 +27645,7 @@ int lua_cocos2dx_ui_RichElementImage_init(lua_State* tolua_S) if (argc == 4) { int arg0; - cocos2d::Color3B arg1; + axis::Color3B arg1; uint16_t arg2; std::string_view arg3; @@ -27668,7 +27668,7 @@ int lua_cocos2dx_ui_RichElementImage_init(lua_State* tolua_S) if (argc == 5) { int arg0; - cocos2d::Color3B arg1; + axis::Color3B arg1; uint16_t arg2; std::string_view arg3; std::string_view arg4; @@ -27694,11 +27694,11 @@ int lua_cocos2dx_ui_RichElementImage_init(lua_State* tolua_S) if (argc == 6) { int arg0; - cocos2d::Color3B arg1; + axis::Color3B arg1; uint16_t arg2; std::string_view arg3; std::string_view arg4; - cocos2d::ui::Widget::TextureResType arg5; + axis::ui::Widget::TextureResType arg5; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.RichElementImage:init"); @@ -27733,7 +27733,7 @@ int lua_cocos2dx_ui_RichElementImage_init(lua_State* tolua_S) int lua_cocos2dx_ui_RichElementImage_setWidth(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichElementImage* cobj = nullptr; + axis::ui::RichElementImage* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -27745,7 +27745,7 @@ int lua_cocos2dx_ui_RichElementImage_setWidth(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichElementImage",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichElementImage*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichElementImage*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -27783,7 +27783,7 @@ int lua_cocos2dx_ui_RichElementImage_setWidth(lua_State* tolua_S) int lua_cocos2dx_ui_RichElementImage_setUrl(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichElementImage* cobj = nullptr; + axis::ui::RichElementImage* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -27795,7 +27795,7 @@ int lua_cocos2dx_ui_RichElementImage_setUrl(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichElementImage",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichElementImage*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichElementImage*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -27848,7 +27848,7 @@ int lua_cocos2dx_ui_RichElementImage_create(lua_State* tolua_S) if (argc == 4) { int arg0; - cocos2d::Color3B arg1; + axis::Color3B arg1; uint16_t arg2; std::string_view arg3; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.RichElementImage:create"); @@ -27860,14 +27860,14 @@ int lua_cocos2dx_ui_RichElementImage_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichElementImage_create'", nullptr); return 0; } - cocos2d::ui::RichElementImage* ret = cocos2d::ui::RichElementImage::create(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "ccui.RichElementImage",(cocos2d::ui::RichElementImage*)ret); + axis::ui::RichElementImage* ret = axis::ui::RichElementImage::create(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "ccui.RichElementImage",(axis::ui::RichElementImage*)ret); return 1; } if (argc == 5) { int arg0; - cocos2d::Color3B arg1; + axis::Color3B arg1; uint16_t arg2; std::string_view arg3; std::string_view arg4; @@ -27881,18 +27881,18 @@ int lua_cocos2dx_ui_RichElementImage_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichElementImage_create'", nullptr); return 0; } - cocos2d::ui::RichElementImage* ret = cocos2d::ui::RichElementImage::create(arg0, arg1, arg2, arg3, arg4); - object_to_luaval(tolua_S, "ccui.RichElementImage",(cocos2d::ui::RichElementImage*)ret); + axis::ui::RichElementImage* ret = axis::ui::RichElementImage::create(arg0, arg1, arg2, arg3, arg4); + object_to_luaval(tolua_S, "ccui.RichElementImage",(axis::ui::RichElementImage*)ret); return 1; } if (argc == 6) { int arg0; - cocos2d::Color3B arg1; + axis::Color3B arg1; uint16_t arg2; std::string_view arg3; std::string_view arg4; - cocos2d::ui::Widget::TextureResType arg5; + axis::ui::Widget::TextureResType arg5; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.RichElementImage:create"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "ccui.RichElementImage:create"); ok &= luaval_to_uint16(tolua_S, 4,&arg2, "ccui.RichElementImage:create"); @@ -27904,8 +27904,8 @@ int lua_cocos2dx_ui_RichElementImage_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichElementImage_create'", nullptr); return 0; } - cocos2d::ui::RichElementImage* ret = cocos2d::ui::RichElementImage::create(arg0, arg1, arg2, arg3, arg4, arg5); - object_to_luaval(tolua_S, "ccui.RichElementImage",(cocos2d::ui::RichElementImage*)ret); + axis::ui::RichElementImage* ret = axis::ui::RichElementImage::create(arg0, arg1, arg2, arg3, arg4, arg5); + object_to_luaval(tolua_S, "ccui.RichElementImage",(axis::ui::RichElementImage*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.RichElementImage:create",argc, 4); @@ -27919,7 +27919,7 @@ int lua_cocos2dx_ui_RichElementImage_create(lua_State* tolua_S) int lua_cocos2dx_ui_RichElementImage_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichElementImage* cobj = nullptr; + axis::ui::RichElementImage* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -27936,7 +27936,7 @@ int lua_cocos2dx_ui_RichElementImage_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichElementImage_constructor'", nullptr); return 0; } - cobj = new cocos2d::ui::RichElementImage(); + cobj = new axis::ui::RichElementImage(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -27972,7 +27972,7 @@ int lua_register_cocos2dx_ui_RichElementImage(lua_State* tolua_S) tolua_function(tolua_S,"setUrl",lua_cocos2dx_ui_RichElementImage_setUrl); tolua_function(tolua_S,"create", lua_cocos2dx_ui_RichElementImage_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ui::RichElementImage).name(); // rtti is literal storage + auto typeName = typeid(axis::ui::RichElementImage).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccui.RichElementImage"; g_typeCast[typeName] = "ccui.RichElementImage"; return 1; @@ -27981,7 +27981,7 @@ int lua_register_cocos2dx_ui_RichElementImage(lua_State* tolua_S) int lua_cocos2dx_ui_RichElementCustomNode_init(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichElementCustomNode* cobj = nullptr; + axis::ui::RichElementCustomNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -27993,7 +27993,7 @@ int lua_cocos2dx_ui_RichElementCustomNode_init(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichElementCustomNode",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichElementCustomNode*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichElementCustomNode*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -28007,9 +28007,9 @@ int lua_cocos2dx_ui_RichElementCustomNode_init(lua_State* tolua_S) if (argc == 4) { int arg0; - cocos2d::Color3B arg1; + axis::Color3B arg1; uint16_t arg2; - cocos2d::Node* arg3; + axis::Node* arg3; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.RichElementCustomNode:init"); @@ -28017,7 +28017,7 @@ int lua_cocos2dx_ui_RichElementCustomNode_init(lua_State* tolua_S) ok &= luaval_to_uint16(tolua_S, 4,&arg2, "ccui.RichElementCustomNode:init"); - ok &= luaval_to_object(tolua_S, 5, "cc.Node",&arg3, "ccui.RichElementCustomNode:init"); + ok &= luaval_to_object(tolua_S, 5, "cc.Node",&arg3, "ccui.RichElementCustomNode:init"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichElementCustomNode_init'", nullptr); @@ -28055,20 +28055,20 @@ int lua_cocos2dx_ui_RichElementCustomNode_create(lua_State* tolua_S) if (argc == 4) { int arg0; - cocos2d::Color3B arg1; + axis::Color3B arg1; uint16_t arg2; - cocos2d::Node* arg3; + axis::Node* arg3; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.RichElementCustomNode:create"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "ccui.RichElementCustomNode:create"); ok &= luaval_to_uint16(tolua_S, 4,&arg2, "ccui.RichElementCustomNode:create"); - ok &= luaval_to_object(tolua_S, 5, "cc.Node",&arg3, "ccui.RichElementCustomNode:create"); + ok &= luaval_to_object(tolua_S, 5, "cc.Node",&arg3, "ccui.RichElementCustomNode:create"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichElementCustomNode_create'", nullptr); return 0; } - cocos2d::ui::RichElementCustomNode* ret = cocos2d::ui::RichElementCustomNode::create(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "ccui.RichElementCustomNode",(cocos2d::ui::RichElementCustomNode*)ret); + axis::ui::RichElementCustomNode* ret = axis::ui::RichElementCustomNode::create(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "ccui.RichElementCustomNode",(axis::ui::RichElementCustomNode*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.RichElementCustomNode:create",argc, 4); @@ -28082,7 +28082,7 @@ int lua_cocos2dx_ui_RichElementCustomNode_create(lua_State* tolua_S) int lua_cocos2dx_ui_RichElementCustomNode_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichElementCustomNode* cobj = nullptr; + axis::ui::RichElementCustomNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -28099,7 +28099,7 @@ int lua_cocos2dx_ui_RichElementCustomNode_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichElementCustomNode_constructor'", nullptr); return 0; } - cobj = new cocos2d::ui::RichElementCustomNode(); + cobj = new axis::ui::RichElementCustomNode(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -28132,7 +28132,7 @@ int lua_register_cocos2dx_ui_RichElementCustomNode(lua_State* tolua_S) tolua_function(tolua_S,"init",lua_cocos2dx_ui_RichElementCustomNode_init); tolua_function(tolua_S,"create", lua_cocos2dx_ui_RichElementCustomNode_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ui::RichElementCustomNode).name(); // rtti is literal storage + auto typeName = typeid(axis::ui::RichElementCustomNode).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccui.RichElementCustomNode"; g_typeCast[typeName] = "ccui.RichElementCustomNode"; return 1; @@ -28156,7 +28156,7 @@ int lua_cocos2dx_ui_RichElementNewLine_create(lua_State* tolua_S) if (argc == 3) { int arg0; - cocos2d::Color3B arg1; + axis::Color3B arg1; uint16_t arg2; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.RichElementNewLine:create"); ok &= luaval_to_color3b(tolua_S, 3, &arg1, "ccui.RichElementNewLine:create"); @@ -28166,8 +28166,8 @@ int lua_cocos2dx_ui_RichElementNewLine_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichElementNewLine_create'", nullptr); return 0; } - cocos2d::ui::RichElementNewLine* ret = cocos2d::ui::RichElementNewLine::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "ccui.RichElementNewLine",(cocos2d::ui::RichElementNewLine*)ret); + axis::ui::RichElementNewLine* ret = axis::ui::RichElementNewLine::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "ccui.RichElementNewLine",(axis::ui::RichElementNewLine*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.RichElementNewLine:create",argc, 3); @@ -28181,7 +28181,7 @@ int lua_cocos2dx_ui_RichElementNewLine_create(lua_State* tolua_S) int lua_cocos2dx_ui_RichElementNewLine_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichElementNewLine* cobj = nullptr; + axis::ui::RichElementNewLine* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -28198,7 +28198,7 @@ int lua_cocos2dx_ui_RichElementNewLine_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichElementNewLine_constructor'", nullptr); return 0; } - cobj = new cocos2d::ui::RichElementNewLine(); + cobj = new axis::ui::RichElementNewLine(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -28230,7 +28230,7 @@ int lua_register_cocos2dx_ui_RichElementNewLine(lua_State* tolua_S) tolua_function(tolua_S,"new",lua_cocos2dx_ui_RichElementNewLine_constructor); tolua_function(tolua_S,"create", lua_cocos2dx_ui_RichElementNewLine_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ui::RichElementNewLine).name(); // rtti is literal storage + auto typeName = typeid(axis::ui::RichElementNewLine).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccui.RichElementNewLine"; g_typeCast[typeName] = "ccui.RichElementNewLine"; return 1; @@ -28239,7 +28239,7 @@ int lua_register_cocos2dx_ui_RichElementNewLine(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_insertElement(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -28251,7 +28251,7 @@ int lua_cocos2dx_ui_RichText_insertElement(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -28264,10 +28264,10 @@ int lua_cocos2dx_ui_RichText_insertElement(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::ui::RichElement* arg0; + axis::ui::RichElement* arg0; int arg1; - ok &= luaval_to_object(tolua_S, 2, "ccui.RichElement",&arg0, "ccui.RichText:insertElement"); + ok &= luaval_to_object(tolua_S, 2, "ccui.RichElement",&arg0, "ccui.RichText:insertElement"); ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ccui.RichText:insertElement"); if(!ok) @@ -28292,7 +28292,7 @@ int lua_cocos2dx_ui_RichText_insertElement(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_setAnchorTextOutline(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -28304,7 +28304,7 @@ int lua_cocos2dx_ui_RichText_setAnchorTextOutline(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -28332,7 +28332,7 @@ int lua_cocos2dx_ui_RichText_setAnchorTextOutline(lua_State* tolua_S) if (argc == 2) { bool arg0; - cocos2d::Color3B arg1; + axis::Color3B arg1; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ccui.RichText:setAnchorTextOutline"); @@ -28349,7 +28349,7 @@ int lua_cocos2dx_ui_RichText_setAnchorTextOutline(lua_State* tolua_S) if (argc == 3) { bool arg0; - cocos2d::Color3B arg1; + axis::Color3B arg1; int arg2; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ccui.RichText:setAnchorTextOutline"); @@ -28379,7 +28379,7 @@ int lua_cocos2dx_ui_RichText_setAnchorTextOutline(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_getFontSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -28391,7 +28391,7 @@ int lua_cocos2dx_ui_RichText_getFontSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -28426,7 +28426,7 @@ int lua_cocos2dx_ui_RichText_getFontSize(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_pushBackElement(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -28438,7 +28438,7 @@ int lua_cocos2dx_ui_RichText_pushBackElement(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -28451,9 +28451,9 @@ int lua_cocos2dx_ui_RichText_pushBackElement(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ui::RichElement* arg0; + axis::ui::RichElement* arg0; - ok &= luaval_to_object(tolua_S, 2, "ccui.RichElement",&arg0, "ccui.RichText:pushBackElement"); + ok &= luaval_to_object(tolua_S, 2, "ccui.RichElement",&arg0, "ccui.RichText:pushBackElement"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_pushBackElement'", nullptr); @@ -28476,7 +28476,7 @@ int lua_cocos2dx_ui_RichText_pushBackElement(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_setAnchorTextBold(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -28488,7 +28488,7 @@ int lua_cocos2dx_ui_RichText_setAnchorTextBold(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -28526,7 +28526,7 @@ int lua_cocos2dx_ui_RichText_setAnchorTextBold(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_getAnchorFontColor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -28538,7 +28538,7 @@ int lua_cocos2dx_ui_RichText_getAnchorFontColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -28573,7 +28573,7 @@ int lua_cocos2dx_ui_RichText_getAnchorFontColor(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_getAnchorTextShadowBlurRadius(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -28585,7 +28585,7 @@ int lua_cocos2dx_ui_RichText_getAnchorTextShadowBlurRadius(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -28620,7 +28620,7 @@ int lua_cocos2dx_ui_RichText_getAnchorTextShadowBlurRadius(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_setAnchorTextShadow(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -28632,7 +28632,7 @@ int lua_cocos2dx_ui_RichText_setAnchorTextShadow(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -28660,7 +28660,7 @@ int lua_cocos2dx_ui_RichText_setAnchorTextShadow(lua_State* tolua_S) if (argc == 2) { bool arg0; - cocos2d::Color3B arg1; + axis::Color3B arg1; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ccui.RichText:setAnchorTextShadow"); @@ -28677,8 +28677,8 @@ int lua_cocos2dx_ui_RichText_setAnchorTextShadow(lua_State* tolua_S) if (argc == 3) { bool arg0; - cocos2d::Color3B arg1; - cocos2d::Vec2 arg2; + axis::Color3B arg1; + axis::Vec2 arg2; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ccui.RichText:setAnchorTextShadow"); @@ -28697,8 +28697,8 @@ int lua_cocos2dx_ui_RichText_setAnchorTextShadow(lua_State* tolua_S) if (argc == 4) { bool arg0; - cocos2d::Color3B arg1; - cocos2d::Vec2 arg2; + axis::Color3B arg1; + axis::Vec2 arg2; int arg3; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ccui.RichText:setAnchorTextShadow"); @@ -28730,7 +28730,7 @@ int lua_cocos2dx_ui_RichText_setAnchorTextShadow(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_isAnchorTextItalicEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -28742,7 +28742,7 @@ int lua_cocos2dx_ui_RichText_isAnchorTextItalicEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -28777,7 +28777,7 @@ int lua_cocos2dx_ui_RichText_isAnchorTextItalicEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_setAnchorFontColor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -28789,7 +28789,7 @@ int lua_cocos2dx_ui_RichText_setAnchorFontColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -28827,7 +28827,7 @@ int lua_cocos2dx_ui_RichText_setAnchorFontColor(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_setFontFace(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -28839,7 +28839,7 @@ int lua_cocos2dx_ui_RichText_setFontFace(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -28877,7 +28877,7 @@ int lua_cocos2dx_ui_RichText_setFontFace(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_setAnchorTextGlow(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -28889,7 +28889,7 @@ int lua_cocos2dx_ui_RichText_setAnchorTextGlow(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -28917,7 +28917,7 @@ int lua_cocos2dx_ui_RichText_setAnchorTextGlow(lua_State* tolua_S) if (argc == 2) { bool arg0; - cocos2d::Color3B arg1; + axis::Color3B arg1; ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ccui.RichText:setAnchorTextGlow"); @@ -28944,7 +28944,7 @@ int lua_cocos2dx_ui_RichText_setAnchorTextGlow(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_getHorizontalAlignment(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -28956,7 +28956,7 @@ int lua_cocos2dx_ui_RichText_getHorizontalAlignment(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -28991,7 +28991,7 @@ int lua_cocos2dx_ui_RichText_getHorizontalAlignment(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_setHorizontalAlignment(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -29003,7 +29003,7 @@ int lua_cocos2dx_ui_RichText_setHorizontalAlignment(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -29016,7 +29016,7 @@ int lua_cocos2dx_ui_RichText_setHorizontalAlignment(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ui::RichText::HorizontalAlignment arg0; + axis::ui::RichText::HorizontalAlignment arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.RichText:setHorizontalAlignment"); if(!ok) @@ -29041,7 +29041,7 @@ int lua_cocos2dx_ui_RichText_setHorizontalAlignment(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_setAnchorTextDel(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -29053,7 +29053,7 @@ int lua_cocos2dx_ui_RichText_setAnchorTextDel(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -29091,7 +29091,7 @@ int lua_cocos2dx_ui_RichText_setAnchorTextDel(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_getAnchorTextOutlineColor3B(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -29103,7 +29103,7 @@ int lua_cocos2dx_ui_RichText_getAnchorTextOutlineColor3B(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -29121,7 +29121,7 @@ int lua_cocos2dx_ui_RichText_getAnchorTextOutlineColor3B(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_getAnchorTextOutlineColor3B'", nullptr); return 0; } - cocos2d::Color3B ret = cobj->getAnchorTextOutlineColor3B(); + axis::Color3B ret = cobj->getAnchorTextOutlineColor3B(); color3b_to_luaval(tolua_S, ret); return 1; } @@ -29138,7 +29138,7 @@ int lua_cocos2dx_ui_RichText_getAnchorTextOutlineColor3B(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_stringWithColor4B(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -29150,7 +29150,7 @@ int lua_cocos2dx_ui_RichText_stringWithColor4B(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -29163,7 +29163,7 @@ int lua_cocos2dx_ui_RichText_stringWithColor4B(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Color4B arg0; + axis::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "ccui.RichText:stringWithColor4B"); if(!ok) @@ -29188,7 +29188,7 @@ int lua_cocos2dx_ui_RichText_stringWithColor4B(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_initWithXML(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -29200,7 +29200,7 @@ int lua_cocos2dx_ui_RichText_initWithXML(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -29214,7 +29214,7 @@ int lua_cocos2dx_ui_RichText_initWithXML(lua_State* tolua_S) if (argc == 2) { std::string_view arg0; - cocos2d::ValueMap arg1; + axis::ValueMap arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.RichText:initWithXML"); @@ -29231,7 +29231,7 @@ int lua_cocos2dx_ui_RichText_initWithXML(lua_State* tolua_S) if (argc == 3) { std::string_view arg0; - cocos2d::ValueMap arg1; + axis::ValueMap arg1; std::function arg2; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.RichText:initWithXML"); @@ -29265,7 +29265,7 @@ int lua_cocos2dx_ui_RichText_initWithXML(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_getAnchorFontColor3B(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -29277,7 +29277,7 @@ int lua_cocos2dx_ui_RichText_getAnchorFontColor3B(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -29295,7 +29295,7 @@ int lua_cocos2dx_ui_RichText_getAnchorFontColor3B(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_getAnchorFontColor3B'", nullptr); return 0; } - cocos2d::Color3B ret = cobj->getAnchorFontColor3B(); + axis::Color3B ret = cobj->getAnchorFontColor3B(); color3b_to_luaval(tolua_S, ret); return 1; } @@ -29312,7 +29312,7 @@ int lua_cocos2dx_ui_RichText_getAnchorFontColor3B(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_formatText(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -29324,7 +29324,7 @@ int lua_cocos2dx_ui_RichText_formatText(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -29373,7 +29373,7 @@ int lua_cocos2dx_ui_RichText_formatText(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_getAnchorTextGlowColor3B(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -29385,7 +29385,7 @@ int lua_cocos2dx_ui_RichText_getAnchorTextGlowColor3B(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -29403,7 +29403,7 @@ int lua_cocos2dx_ui_RichText_getAnchorTextGlowColor3B(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_getAnchorTextGlowColor3B'", nullptr); return 0; } - cocos2d::Color3B ret = cobj->getAnchorTextGlowColor3B(); + axis::Color3B ret = cobj->getAnchorTextGlowColor3B(); color3b_to_luaval(tolua_S, ret); return 1; } @@ -29420,7 +29420,7 @@ int lua_cocos2dx_ui_RichText_getAnchorTextGlowColor3B(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_openUrl(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -29432,7 +29432,7 @@ int lua_cocos2dx_ui_RichText_openUrl(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -29470,7 +29470,7 @@ int lua_cocos2dx_ui_RichText_openUrl(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_getFontFace(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -29482,7 +29482,7 @@ int lua_cocos2dx_ui_RichText_getFontFace(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -29517,7 +29517,7 @@ int lua_cocos2dx_ui_RichText_getFontFace(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_setFontColor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -29529,7 +29529,7 @@ int lua_cocos2dx_ui_RichText_setFontColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -29567,7 +29567,7 @@ int lua_cocos2dx_ui_RichText_setFontColor(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_isAnchorTextGlowEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -29579,7 +29579,7 @@ int lua_cocos2dx_ui_RichText_isAnchorTextGlowEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -29614,7 +29614,7 @@ int lua_cocos2dx_ui_RichText_isAnchorTextGlowEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_getDefaults(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -29626,7 +29626,7 @@ int lua_cocos2dx_ui_RichText_getDefaults(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -29644,7 +29644,7 @@ int lua_cocos2dx_ui_RichText_getDefaults(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_getDefaults'", nullptr); return 0; } - cocos2d::ValueMap ret = cobj->getDefaults(); + axis::ValueMap ret = cobj->getDefaults(); ccvaluemap_to_luaval(tolua_S, ret); return 1; } @@ -29661,7 +29661,7 @@ int lua_cocos2dx_ui_RichText_getDefaults(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_isAnchorTextUnderlineEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -29673,7 +29673,7 @@ int lua_cocos2dx_ui_RichText_isAnchorTextUnderlineEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -29708,7 +29708,7 @@ int lua_cocos2dx_ui_RichText_isAnchorTextUnderlineEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_getFontColor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -29720,7 +29720,7 @@ int lua_cocos2dx_ui_RichText_getFontColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -29755,7 +29755,7 @@ int lua_cocos2dx_ui_RichText_getFontColor(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_isAnchorTextShadowEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -29767,7 +29767,7 @@ int lua_cocos2dx_ui_RichText_isAnchorTextShadowEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -29802,7 +29802,7 @@ int lua_cocos2dx_ui_RichText_isAnchorTextShadowEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_getAnchorTextOutlineSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -29814,7 +29814,7 @@ int lua_cocos2dx_ui_RichText_getAnchorTextOutlineSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -29849,7 +29849,7 @@ int lua_cocos2dx_ui_RichText_getAnchorTextOutlineSize(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_setVerticalSpace(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -29861,7 +29861,7 @@ int lua_cocos2dx_ui_RichText_setVerticalSpace(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -29899,7 +29899,7 @@ int lua_cocos2dx_ui_RichText_setVerticalSpace(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_isAnchorTextDelEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -29911,7 +29911,7 @@ int lua_cocos2dx_ui_RichText_isAnchorTextDelEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -29946,7 +29946,7 @@ int lua_cocos2dx_ui_RichText_isAnchorTextDelEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_setDefaults(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -29958,7 +29958,7 @@ int lua_cocos2dx_ui_RichText_setDefaults(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -29971,7 +29971,7 @@ int lua_cocos2dx_ui_RichText_setDefaults(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ValueMap arg0; + axis::ValueMap arg0; ok &= luaval_to_ccvaluemap(tolua_S, 2, &arg0, "ccui.RichText:setDefaults"); if(!ok) @@ -29996,7 +29996,7 @@ int lua_cocos2dx_ui_RichText_setDefaults(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_setWrapMode(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -30008,7 +30008,7 @@ int lua_cocos2dx_ui_RichText_setWrapMode(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -30021,7 +30021,7 @@ int lua_cocos2dx_ui_RichText_setWrapMode(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ui::RichText::WrapMode arg0; + axis::ui::RichText::WrapMode arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.RichText:setWrapMode"); if(!ok) @@ -30046,7 +30046,7 @@ int lua_cocos2dx_ui_RichText_setWrapMode(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_setFontSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -30058,7 +30058,7 @@ int lua_cocos2dx_ui_RichText_setFontSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -30096,7 +30096,7 @@ int lua_cocos2dx_ui_RichText_setFontSize(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_removeElement(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -30105,7 +30105,7 @@ int lua_cocos2dx_ui_RichText_removeElement(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -30116,8 +30116,8 @@ int lua_cocos2dx_ui_RichText_removeElement(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { - cocos2d::ui::RichElement* arg0; - ok &= luaval_to_object(tolua_S, 2, "ccui.RichElement",&arg0, "ccui.RichText:removeElement"); + axis::ui::RichElement* arg0; + ok &= luaval_to_object(tolua_S, 2, "ccui.RichElement",&arg0, "ccui.RichText:removeElement"); if (!ok) { break; } cobj->removeElement(arg0); @@ -30151,7 +30151,7 @@ int lua_cocos2dx_ui_RichText_removeElement(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_setAnchorTextItalic(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -30163,7 +30163,7 @@ int lua_cocos2dx_ui_RichText_setAnchorTextItalic(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -30201,7 +30201,7 @@ int lua_cocos2dx_ui_RichText_setAnchorTextItalic(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_getAnchorTextShadowOffset(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -30213,7 +30213,7 @@ int lua_cocos2dx_ui_RichText_getAnchorTextShadowOffset(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -30231,7 +30231,7 @@ int lua_cocos2dx_ui_RichText_getAnchorTextShadowOffset(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_getAnchorTextShadowOffset'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getAnchorTextShadowOffset(); + axis::Vec2 ret = cobj->getAnchorTextShadowOffset(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -30248,7 +30248,7 @@ int lua_cocos2dx_ui_RichText_getAnchorTextShadowOffset(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_isAnchorTextBoldEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -30260,7 +30260,7 @@ int lua_cocos2dx_ui_RichText_isAnchorTextBoldEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -30295,7 +30295,7 @@ int lua_cocos2dx_ui_RichText_isAnchorTextBoldEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_getAnchorTextShadowColor3B(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -30307,7 +30307,7 @@ int lua_cocos2dx_ui_RichText_getAnchorTextShadowColor3B(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -30325,7 +30325,7 @@ int lua_cocos2dx_ui_RichText_getAnchorTextShadowColor3B(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_getAnchorTextShadowColor3B'", nullptr); return 0; } - cocos2d::Color3B ret = cobj->getAnchorTextShadowColor3B(); + axis::Color3B ret = cobj->getAnchorTextShadowColor3B(); color3b_to_luaval(tolua_S, ret); return 1; } @@ -30342,7 +30342,7 @@ int lua_cocos2dx_ui_RichText_getAnchorTextShadowColor3B(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_stringWithColor3B(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -30354,7 +30354,7 @@ int lua_cocos2dx_ui_RichText_stringWithColor3B(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -30367,7 +30367,7 @@ int lua_cocos2dx_ui_RichText_stringWithColor3B(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Color3B arg0; + axis::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "ccui.RichText:stringWithColor3B"); if(!ok) @@ -30392,7 +30392,7 @@ int lua_cocos2dx_ui_RichText_stringWithColor3B(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_isAnchorTextOutlineEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -30404,7 +30404,7 @@ int lua_cocos2dx_ui_RichText_isAnchorTextOutlineEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -30439,7 +30439,7 @@ int lua_cocos2dx_ui_RichText_isAnchorTextOutlineEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_getFontColor3B(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -30451,7 +30451,7 @@ int lua_cocos2dx_ui_RichText_getFontColor3B(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -30469,7 +30469,7 @@ int lua_cocos2dx_ui_RichText_getFontColor3B(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_getFontColor3B'", nullptr); return 0; } - cocos2d::Color3B ret = cobj->getFontColor3B(); + axis::Color3B ret = cobj->getFontColor3B(); color3b_to_luaval(tolua_S, ret); return 1; } @@ -30486,7 +30486,7 @@ int lua_cocos2dx_ui_RichText_getFontColor3B(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_getWrapMode(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -30498,7 +30498,7 @@ int lua_cocos2dx_ui_RichText_getWrapMode(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -30533,7 +30533,7 @@ int lua_cocos2dx_ui_RichText_getWrapMode(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_setAnchorTextUnderline(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -30545,7 +30545,7 @@ int lua_cocos2dx_ui_RichText_setAnchorTextUnderline(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -30583,7 +30583,7 @@ int lua_cocos2dx_ui_RichText_setAnchorTextUnderline(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_color3BWithString(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -30595,7 +30595,7 @@ int lua_cocos2dx_ui_RichText_color3BWithString(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RichText",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RichText*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RichText*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -30616,7 +30616,7 @@ int lua_cocos2dx_ui_RichText_color3BWithString(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_color3BWithString'", nullptr); return 0; } - cocos2d::Color3B ret = cobj->color3BWithString(arg0); + axis::Color3B ret = cobj->color3BWithString(arg0); color3b_to_luaval(tolua_S, ret); return 1; } @@ -30652,8 +30652,8 @@ int lua_cocos2dx_ui_RichText_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_create'", nullptr); return 0; } - cocos2d::ui::RichText* ret = cocos2d::ui::RichText::create(); - object_to_luaval(tolua_S, "ccui.RichText",(cocos2d::ui::RichText*)ret); + axis::ui::RichText* ret = axis::ui::RichText::create(); + object_to_luaval(tolua_S, "ccui.RichText",(axis::ui::RichText*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.RichText:create",argc, 0); @@ -30682,7 +30682,7 @@ int lua_cocos2dx_ui_RichText_createWithXML(lua_State* tolua_S) if (argc == 2) { std::string_view arg0; - cocos2d::ValueMap arg1; + axis::ValueMap arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.RichText:createWithXML"); ok &= luaval_to_ccvaluemap(tolua_S, 3, &arg1, "ccui.RichText:createWithXML"); if(!ok) @@ -30690,14 +30690,14 @@ int lua_cocos2dx_ui_RichText_createWithXML(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_createWithXML'", nullptr); return 0; } - cocos2d::ui::RichText* ret = cocos2d::ui::RichText::createWithXML(arg0, arg1); - object_to_luaval(tolua_S, "ccui.RichText",(cocos2d::ui::RichText*)ret); + axis::ui::RichText* ret = axis::ui::RichText::createWithXML(arg0, arg1); + object_to_luaval(tolua_S, "ccui.RichText",(axis::ui::RichText*)ret); return 1; } if (argc == 3) { std::string_view arg0; - cocos2d::ValueMap arg1; + axis::ValueMap arg1; std::function arg2; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.RichText:createWithXML"); ok &= luaval_to_ccvaluemap(tolua_S, 3, &arg1, "ccui.RichText:createWithXML"); @@ -30711,8 +30711,8 @@ int lua_cocos2dx_ui_RichText_createWithXML(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_createWithXML'", nullptr); return 0; } - cocos2d::ui::RichText* ret = cocos2d::ui::RichText::createWithXML(arg0, arg1, arg2); - object_to_luaval(tolua_S, "ccui.RichText",(cocos2d::ui::RichText*)ret); + axis::ui::RichText* ret = axis::ui::RichText::createWithXML(arg0, arg1, arg2); + object_to_luaval(tolua_S, "ccui.RichText",(axis::ui::RichText*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.RichText:createWithXML",argc, 2); @@ -30726,7 +30726,7 @@ int lua_cocos2dx_ui_RichText_createWithXML(lua_State* tolua_S) int lua_cocos2dx_ui_RichText_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RichText* cobj = nullptr; + axis::ui::RichText* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -30743,7 +30743,7 @@ int lua_cocos2dx_ui_RichText_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RichText_constructor'", nullptr); return 0; } - cobj = new cocos2d::ui::RichText(); + cobj = new axis::ui::RichText(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -30822,7 +30822,7 @@ int lua_register_cocos2dx_ui_RichText(lua_State* tolua_S) tolua_function(tolua_S,"create", lua_cocos2dx_ui_RichText_create); tolua_function(tolua_S,"createWithXML", lua_cocos2dx_ui_RichText_createWithXML); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ui::RichText).name(); // rtti is literal storage + auto typeName = typeid(axis::ui::RichText).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccui.RichText"; g_typeCast[typeName] = "ccui.RichText"; return 1; @@ -30831,7 +30831,7 @@ int lua_register_cocos2dx_ui_RichText(lua_State* tolua_S) int lua_cocos2dx_ui_HBox_initWithSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::HBox* cobj = nullptr; + axis::ui::HBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -30843,7 +30843,7 @@ int lua_cocos2dx_ui_HBox_initWithSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.HBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::HBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::HBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -30856,7 +30856,7 @@ int lua_cocos2dx_ui_HBox_initWithSize(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ccui.HBox:initWithSize"); if(!ok) @@ -30896,11 +30896,11 @@ int lua_cocos2dx_ui_HBox_create(lua_State* tolua_S) { if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ccui.HBox:create"); if (!ok) { break; } - cocos2d::ui::HBox* ret = cocos2d::ui::HBox::create(arg0); - object_to_luaval(tolua_S, "ccui.HBox",(cocos2d::ui::HBox*)ret); + axis::ui::HBox* ret = axis::ui::HBox::create(arg0); + object_to_luaval(tolua_S, "ccui.HBox",(axis::ui::HBox*)ret); return 1; } } while (0); @@ -30909,8 +30909,8 @@ int lua_cocos2dx_ui_HBox_create(lua_State* tolua_S) { if (argc == 0) { - cocos2d::ui::HBox* ret = cocos2d::ui::HBox::create(); - object_to_luaval(tolua_S, "ccui.HBox",(cocos2d::ui::HBox*)ret); + axis::ui::HBox* ret = axis::ui::HBox::create(); + object_to_luaval(tolua_S, "ccui.HBox",(axis::ui::HBox*)ret); return 1; } } while (0); @@ -30926,7 +30926,7 @@ int lua_cocos2dx_ui_HBox_create(lua_State* tolua_S) int lua_cocos2dx_ui_HBox_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::HBox* cobj = nullptr; + axis::ui::HBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -30943,7 +30943,7 @@ int lua_cocos2dx_ui_HBox_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_HBox_constructor'", nullptr); return 0; } - cobj = new cocos2d::ui::HBox(); + cobj = new axis::ui::HBox(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -30976,7 +30976,7 @@ int lua_register_cocos2dx_ui_HBox(lua_State* tolua_S) tolua_function(tolua_S,"initWithSize",lua_cocos2dx_ui_HBox_initWithSize); tolua_function(tolua_S,"create", lua_cocos2dx_ui_HBox_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ui::HBox).name(); // rtti is literal storage + auto typeName = typeid(axis::ui::HBox).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccui.HBox"; g_typeCast[typeName] = "ccui.HBox"; return 1; @@ -30985,7 +30985,7 @@ int lua_register_cocos2dx_ui_HBox(lua_State* tolua_S) int lua_cocos2dx_ui_VBox_initWithSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::VBox* cobj = nullptr; + axis::ui::VBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -30997,7 +30997,7 @@ int lua_cocos2dx_ui_VBox_initWithSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.VBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::VBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::VBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -31010,7 +31010,7 @@ int lua_cocos2dx_ui_VBox_initWithSize(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ccui.VBox:initWithSize"); if(!ok) @@ -31050,11 +31050,11 @@ int lua_cocos2dx_ui_VBox_create(lua_State* tolua_S) { if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ccui.VBox:create"); if (!ok) { break; } - cocos2d::ui::VBox* ret = cocos2d::ui::VBox::create(arg0); - object_to_luaval(tolua_S, "ccui.VBox",(cocos2d::ui::VBox*)ret); + axis::ui::VBox* ret = axis::ui::VBox::create(arg0); + object_to_luaval(tolua_S, "ccui.VBox",(axis::ui::VBox*)ret); return 1; } } while (0); @@ -31063,8 +31063,8 @@ int lua_cocos2dx_ui_VBox_create(lua_State* tolua_S) { if (argc == 0) { - cocos2d::ui::VBox* ret = cocos2d::ui::VBox::create(); - object_to_luaval(tolua_S, "ccui.VBox",(cocos2d::ui::VBox*)ret); + axis::ui::VBox* ret = axis::ui::VBox::create(); + object_to_luaval(tolua_S, "ccui.VBox",(axis::ui::VBox*)ret); return 1; } } while (0); @@ -31080,7 +31080,7 @@ int lua_cocos2dx_ui_VBox_create(lua_State* tolua_S) int lua_cocos2dx_ui_VBox_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::VBox* cobj = nullptr; + axis::ui::VBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -31097,7 +31097,7 @@ int lua_cocos2dx_ui_VBox_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_VBox_constructor'", nullptr); return 0; } - cobj = new cocos2d::ui::VBox(); + cobj = new axis::ui::VBox(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -31130,7 +31130,7 @@ int lua_register_cocos2dx_ui_VBox(lua_State* tolua_S) tolua_function(tolua_S,"initWithSize",lua_cocos2dx_ui_VBox_initWithSize); tolua_function(tolua_S,"create", lua_cocos2dx_ui_VBox_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ui::VBox).name(); // rtti is literal storage + auto typeName = typeid(axis::ui::VBox).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccui.VBox"; g_typeCast[typeName] = "ccui.VBox"; return 1; @@ -31139,7 +31139,7 @@ int lua_register_cocos2dx_ui_VBox(lua_State* tolua_S) int lua_cocos2dx_ui_RelativeBox_initWithSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RelativeBox* cobj = nullptr; + axis::ui::RelativeBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -31151,7 +31151,7 @@ int lua_cocos2dx_ui_RelativeBox_initWithSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.RelativeBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::RelativeBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::RelativeBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -31164,7 +31164,7 @@ int lua_cocos2dx_ui_RelativeBox_initWithSize(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ccui.RelativeBox:initWithSize"); if(!ok) @@ -31204,11 +31204,11 @@ int lua_cocos2dx_ui_RelativeBox_create(lua_State* tolua_S) { if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ccui.RelativeBox:create"); if (!ok) { break; } - cocos2d::ui::RelativeBox* ret = cocos2d::ui::RelativeBox::create(arg0); - object_to_luaval(tolua_S, "ccui.RelativeBox",(cocos2d::ui::RelativeBox*)ret); + axis::ui::RelativeBox* ret = axis::ui::RelativeBox::create(arg0); + object_to_luaval(tolua_S, "ccui.RelativeBox",(axis::ui::RelativeBox*)ret); return 1; } } while (0); @@ -31217,8 +31217,8 @@ int lua_cocos2dx_ui_RelativeBox_create(lua_State* tolua_S) { if (argc == 0) { - cocos2d::ui::RelativeBox* ret = cocos2d::ui::RelativeBox::create(); - object_to_luaval(tolua_S, "ccui.RelativeBox",(cocos2d::ui::RelativeBox*)ret); + axis::ui::RelativeBox* ret = axis::ui::RelativeBox::create(); + object_to_luaval(tolua_S, "ccui.RelativeBox",(axis::ui::RelativeBox*)ret); return 1; } } while (0); @@ -31234,7 +31234,7 @@ int lua_cocos2dx_ui_RelativeBox_create(lua_State* tolua_S) int lua_cocos2dx_ui_RelativeBox_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::RelativeBox* cobj = nullptr; + axis::ui::RelativeBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -31251,7 +31251,7 @@ int lua_cocos2dx_ui_RelativeBox_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_RelativeBox_constructor'", nullptr); return 0; } - cobj = new cocos2d::ui::RelativeBox(); + cobj = new axis::ui::RelativeBox(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -31284,7 +31284,7 @@ int lua_register_cocos2dx_ui_RelativeBox(lua_State* tolua_S) tolua_function(tolua_S,"initWithSize",lua_cocos2dx_ui_RelativeBox_initWithSize); tolua_function(tolua_S,"create", lua_cocos2dx_ui_RelativeBox_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ui::RelativeBox).name(); // rtti is literal storage + auto typeName = typeid(axis::ui::RelativeBox).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccui.RelativeBox"; g_typeCast[typeName] = "ccui.RelativeBox"; return 1; @@ -31293,7 +31293,7 @@ int lua_register_cocos2dx_ui_RelativeBox(lua_State* tolua_S) int lua_cocos2dx_ui_Scale9Sprite_updateWithSprite(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Scale9Sprite* cobj = nullptr; + axis::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -31302,7 +31302,7 @@ int lua_cocos2dx_ui_Scale9Sprite_updateWithSprite(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -31313,11 +31313,11 @@ int lua_cocos2dx_ui_Scale9Sprite_updateWithSprite(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 6) { - cocos2d::Sprite* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0, "ccui.Scale9Sprite:updateWithSprite"); + axis::Sprite* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0, "ccui.Scale9Sprite:updateWithSprite"); if (!ok) { break; } - cocos2d::Rect arg1; + axis::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "ccui.Scale9Sprite:updateWithSprite"); if (!ok) { break; } @@ -31325,15 +31325,15 @@ int lua_cocos2dx_ui_Scale9Sprite_updateWithSprite(lua_State* tolua_S) ok &= luaval_to_boolean(tolua_S, 4,&arg2, "ccui.Scale9Sprite:updateWithSprite"); if (!ok) { break; } - cocos2d::Vec2 arg3; + axis::Vec2 arg3; ok &= luaval_to_vec2(tolua_S, 5, &arg3, "ccui.Scale9Sprite:updateWithSprite"); if (!ok) { break; } - cocos2d::Vec2 arg4; + axis::Vec2 arg4; ok &= luaval_to_vec2(tolua_S, 6, &arg4, "ccui.Scale9Sprite:updateWithSprite"); if (!ok) { break; } - cocos2d::Rect arg5; + axis::Rect arg5; ok &= luaval_to_rect(tolua_S, 7, &arg5, "ccui.Scale9Sprite:updateWithSprite"); if (!ok) { break; } @@ -31345,11 +31345,11 @@ int lua_cocos2dx_ui_Scale9Sprite_updateWithSprite(lua_State* tolua_S) ok = true; do{ if (argc == 4) { - cocos2d::Sprite* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0, "ccui.Scale9Sprite:updateWithSprite"); + axis::Sprite* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0, "ccui.Scale9Sprite:updateWithSprite"); if (!ok) { break; } - cocos2d::Rect arg1; + axis::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "ccui.Scale9Sprite:updateWithSprite"); if (!ok) { break; } @@ -31357,7 +31357,7 @@ int lua_cocos2dx_ui_Scale9Sprite_updateWithSprite(lua_State* tolua_S) ok &= luaval_to_boolean(tolua_S, 4,&arg2, "ccui.Scale9Sprite:updateWithSprite"); if (!ok) { break; } - cocos2d::Rect arg3; + axis::Rect arg3; ok &= luaval_to_rect(tolua_S, 5, &arg3, "ccui.Scale9Sprite:updateWithSprite"); if (!ok) { break; } @@ -31380,7 +31380,7 @@ int lua_cocos2dx_ui_Scale9Sprite_updateWithSprite(lua_State* tolua_S) int lua_cocos2dx_ui_Scale9Sprite_resizableSpriteWithCapInsets(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Scale9Sprite* cobj = nullptr; + axis::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -31392,7 +31392,7 @@ int lua_cocos2dx_ui_Scale9Sprite_resizableSpriteWithCapInsets(lua_State* tolua_S if (!tolua_isusertype(tolua_S,1,"ccui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -31405,7 +31405,7 @@ int lua_cocos2dx_ui_Scale9Sprite_resizableSpriteWithCapInsets(lua_State* tolua_S argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Rect arg0; + axis::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "ccui.Scale9Sprite:resizableSpriteWithCapInsets"); if(!ok) @@ -31413,8 +31413,8 @@ int lua_cocos2dx_ui_Scale9Sprite_resizableSpriteWithCapInsets(lua_State* tolua_S tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Scale9Sprite_resizableSpriteWithCapInsets'", nullptr); return 0; } - cocos2d::ui::Scale9Sprite* ret = cobj->resizableSpriteWithCapInsets(arg0); - object_to_luaval(tolua_S, "ccui.Scale9Sprite",(cocos2d::ui::Scale9Sprite*)ret); + axis::ui::Scale9Sprite* ret = cobj->resizableSpriteWithCapInsets(arg0); + object_to_luaval(tolua_S, "ccui.Scale9Sprite",(axis::ui::Scale9Sprite*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.Scale9Sprite:resizableSpriteWithCapInsets",argc, 1); @@ -31430,7 +31430,7 @@ int lua_cocos2dx_ui_Scale9Sprite_resizableSpriteWithCapInsets(lua_State* tolua_S int lua_cocos2dx_ui_Scale9Sprite_getCapInsets(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Scale9Sprite* cobj = nullptr; + axis::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -31442,7 +31442,7 @@ int lua_cocos2dx_ui_Scale9Sprite_getCapInsets(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -31460,7 +31460,7 @@ int lua_cocos2dx_ui_Scale9Sprite_getCapInsets(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Scale9Sprite_getCapInsets'", nullptr); return 0; } - cocos2d::Rect ret = cobj->getCapInsets(); + axis::Rect ret = cobj->getCapInsets(); rect_to_luaval(tolua_S, ret); return 1; } @@ -31477,7 +31477,7 @@ int lua_cocos2dx_ui_Scale9Sprite_getCapInsets(lua_State* tolua_S) int lua_cocos2dx_ui_Scale9Sprite_setState(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Scale9Sprite* cobj = nullptr; + axis::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -31489,7 +31489,7 @@ int lua_cocos2dx_ui_Scale9Sprite_setState(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -31502,7 +31502,7 @@ int lua_cocos2dx_ui_Scale9Sprite_setState(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ui::Scale9Sprite::State arg0; + axis::ui::Scale9Sprite::State arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.Scale9Sprite:setState"); if(!ok) @@ -31527,7 +31527,7 @@ int lua_cocos2dx_ui_Scale9Sprite_setState(lua_State* tolua_S) int lua_cocos2dx_ui_Scale9Sprite_setInsetBottom(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Scale9Sprite* cobj = nullptr; + axis::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -31539,7 +31539,7 @@ int lua_cocos2dx_ui_Scale9Sprite_setInsetBottom(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -31577,7 +31577,7 @@ int lua_cocos2dx_ui_Scale9Sprite_setInsetBottom(lua_State* tolua_S) int lua_cocos2dx_ui_Scale9Sprite_initWithSpriteFrameName(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Scale9Sprite* cobj = nullptr; + axis::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -31589,7 +31589,7 @@ int lua_cocos2dx_ui_Scale9Sprite_initWithSpriteFrameName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -31603,7 +31603,7 @@ int lua_cocos2dx_ui_Scale9Sprite_initWithSpriteFrameName(lua_State* tolua_S) if (argc == 2) { std::string_view arg0; - cocos2d::Rect arg1; + axis::Rect arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.Scale9Sprite:initWithSpriteFrameName"); @@ -31630,7 +31630,7 @@ int lua_cocos2dx_ui_Scale9Sprite_initWithSpriteFrameName(lua_State* tolua_S) int lua_cocos2dx_ui_Scale9Sprite_getSprite(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Scale9Sprite* cobj = nullptr; + axis::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -31642,7 +31642,7 @@ int lua_cocos2dx_ui_Scale9Sprite_getSprite(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -31660,8 +31660,8 @@ int lua_cocos2dx_ui_Scale9Sprite_getSprite(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Scale9Sprite_getSprite'", nullptr); return 0; } - cocos2d::Sprite* ret = cobj->getSprite(); - object_to_luaval(tolua_S, "cc.Sprite",(cocos2d::Sprite*)ret); + axis::Sprite* ret = cobj->getSprite(); + object_to_luaval(tolua_S, "cc.Sprite",(axis::Sprite*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.Scale9Sprite:getSprite",argc, 0); @@ -31677,7 +31677,7 @@ int lua_cocos2dx_ui_Scale9Sprite_getSprite(lua_State* tolua_S) int lua_cocos2dx_ui_Scale9Sprite_setInsetTop(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Scale9Sprite* cobj = nullptr; + axis::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -31689,7 +31689,7 @@ int lua_cocos2dx_ui_Scale9Sprite_setInsetTop(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -31727,7 +31727,7 @@ int lua_cocos2dx_ui_Scale9Sprite_setInsetTop(lua_State* tolua_S) int lua_cocos2dx_ui_Scale9Sprite_setRenderingType(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Scale9Sprite* cobj = nullptr; + axis::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -31739,7 +31739,7 @@ int lua_cocos2dx_ui_Scale9Sprite_setRenderingType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -31752,7 +31752,7 @@ int lua_cocos2dx_ui_Scale9Sprite_setRenderingType(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ui::Scale9Sprite::RenderingType arg0; + axis::ui::Scale9Sprite::RenderingType arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.Scale9Sprite:setRenderingType"); if(!ok) @@ -31777,7 +31777,7 @@ int lua_cocos2dx_ui_Scale9Sprite_setRenderingType(lua_State* tolua_S) int lua_cocos2dx_ui_Scale9Sprite_init(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Scale9Sprite* cobj = nullptr; + axis::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -31786,7 +31786,7 @@ int lua_cocos2dx_ui_Scale9Sprite_init(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -31797,15 +31797,15 @@ int lua_cocos2dx_ui_Scale9Sprite_init(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 3) { - cocos2d::Sprite* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0, "ccui.Scale9Sprite:init"); + axis::Sprite* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0, "ccui.Scale9Sprite:init"); if (!ok) { break; } - cocos2d::Rect arg1; + axis::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "ccui.Scale9Sprite:init"); if (!ok) { break; } - cocos2d::Rect arg2; + axis::Rect arg2; ok &= luaval_to_rect(tolua_S, 4, &arg2, "ccui.Scale9Sprite:init"); if (!ok) { break; } @@ -31817,11 +31817,11 @@ int lua_cocos2dx_ui_Scale9Sprite_init(lua_State* tolua_S) ok = true; do{ if (argc == 4) { - cocos2d::Sprite* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0, "ccui.Scale9Sprite:init"); + axis::Sprite* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0, "ccui.Scale9Sprite:init"); if (!ok) { break; } - cocos2d::Rect arg1; + axis::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "ccui.Scale9Sprite:init"); if (!ok) { break; } @@ -31829,7 +31829,7 @@ int lua_cocos2dx_ui_Scale9Sprite_init(lua_State* tolua_S) ok &= luaval_to_boolean(tolua_S, 4,&arg2, "ccui.Scale9Sprite:init"); if (!ok) { break; } - cocos2d::Rect arg3; + axis::Rect arg3; ok &= luaval_to_rect(tolua_S, 5, &arg3, "ccui.Scale9Sprite:init"); if (!ok) { break; } @@ -31841,11 +31841,11 @@ int lua_cocos2dx_ui_Scale9Sprite_init(lua_State* tolua_S) ok = true; do{ if (argc == 6) { - cocos2d::Sprite* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0, "ccui.Scale9Sprite:init"); + axis::Sprite* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Sprite",&arg0, "ccui.Scale9Sprite:init"); if (!ok) { break; } - cocos2d::Rect arg1; + axis::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "ccui.Scale9Sprite:init"); if (!ok) { break; } @@ -31853,15 +31853,15 @@ int lua_cocos2dx_ui_Scale9Sprite_init(lua_State* tolua_S) ok &= luaval_to_boolean(tolua_S, 4,&arg2, "ccui.Scale9Sprite:init"); if (!ok) { break; } - cocos2d::Vec2 arg3; + axis::Vec2 arg3; ok &= luaval_to_vec2(tolua_S, 5, &arg3, "ccui.Scale9Sprite:init"); if (!ok) { break; } - cocos2d::Vec2 arg4; + axis::Vec2 arg4; ok &= luaval_to_vec2(tolua_S, 6, &arg4, "ccui.Scale9Sprite:init"); if (!ok) { break; } - cocos2d::Rect arg5; + axis::Rect arg5; ok &= luaval_to_rect(tolua_S, 7, &arg5, "ccui.Scale9Sprite:init"); if (!ok) { break; } @@ -31884,7 +31884,7 @@ int lua_cocos2dx_ui_Scale9Sprite_init(lua_State* tolua_S) int lua_cocos2dx_ui_Scale9Sprite_setPreferredSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Scale9Sprite* cobj = nullptr; + axis::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -31896,7 +31896,7 @@ int lua_cocos2dx_ui_Scale9Sprite_setPreferredSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -31909,7 +31909,7 @@ int lua_cocos2dx_ui_Scale9Sprite_setPreferredSize(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ccui.Scale9Sprite:setPreferredSize"); if(!ok) @@ -31934,7 +31934,7 @@ int lua_cocos2dx_ui_Scale9Sprite_setPreferredSize(lua_State* tolua_S) int lua_cocos2dx_ui_Scale9Sprite_copyTo(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Scale9Sprite* cobj = nullptr; + axis::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -31946,7 +31946,7 @@ int lua_cocos2dx_ui_Scale9Sprite_copyTo(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -31959,9 +31959,9 @@ int lua_cocos2dx_ui_Scale9Sprite_copyTo(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ui::Scale9Sprite* arg0; + axis::ui::Scale9Sprite* arg0; - ok &= luaval_to_object(tolua_S, 2, "ccui.Scale9Sprite",&arg0, "ccui.Scale9Sprite:copyTo"); + ok &= luaval_to_object(tolua_S, 2, "ccui.Scale9Sprite",&arg0, "ccui.Scale9Sprite:copyTo"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Scale9Sprite_copyTo'", nullptr); @@ -31984,7 +31984,7 @@ int lua_cocos2dx_ui_Scale9Sprite_copyTo(lua_State* tolua_S) int lua_cocos2dx_ui_Scale9Sprite_setSpriteFrame(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Scale9Sprite* cobj = nullptr; + axis::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -31996,7 +31996,7 @@ int lua_cocos2dx_ui_Scale9Sprite_setSpriteFrame(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -32009,10 +32009,10 @@ int lua_cocos2dx_ui_Scale9Sprite_setSpriteFrame(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::SpriteFrame* arg0; - cocos2d::Rect arg1; + axis::SpriteFrame* arg0; + axis::Rect arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0, "ccui.Scale9Sprite:setSpriteFrame"); + ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0, "ccui.Scale9Sprite:setSpriteFrame"); ok &= luaval_to_rect(tolua_S, 3, &arg1, "ccui.Scale9Sprite:setSpriteFrame"); if(!ok) @@ -32037,7 +32037,7 @@ int lua_cocos2dx_ui_Scale9Sprite_setSpriteFrame(lua_State* tolua_S) int lua_cocos2dx_ui_Scale9Sprite_getState(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Scale9Sprite* cobj = nullptr; + axis::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -32049,7 +32049,7 @@ int lua_cocos2dx_ui_Scale9Sprite_getState(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -32084,7 +32084,7 @@ int lua_cocos2dx_ui_Scale9Sprite_getState(lua_State* tolua_S) int lua_cocos2dx_ui_Scale9Sprite_getInsetBottom(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Scale9Sprite* cobj = nullptr; + axis::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -32096,7 +32096,7 @@ int lua_cocos2dx_ui_Scale9Sprite_getInsetBottom(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -32131,7 +32131,7 @@ int lua_cocos2dx_ui_Scale9Sprite_getInsetBottom(lua_State* tolua_S) int lua_cocos2dx_ui_Scale9Sprite_setScale9Enabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Scale9Sprite* cobj = nullptr; + axis::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -32143,7 +32143,7 @@ int lua_cocos2dx_ui_Scale9Sprite_setScale9Enabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -32181,7 +32181,7 @@ int lua_cocos2dx_ui_Scale9Sprite_setScale9Enabled(lua_State* tolua_S) int lua_cocos2dx_ui_Scale9Sprite_isScale9Enabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Scale9Sprite* cobj = nullptr; + axis::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -32193,7 +32193,7 @@ int lua_cocos2dx_ui_Scale9Sprite_isScale9Enabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -32228,7 +32228,7 @@ int lua_cocos2dx_ui_Scale9Sprite_isScale9Enabled(lua_State* tolua_S) int lua_cocos2dx_ui_Scale9Sprite_resetRender(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Scale9Sprite* cobj = nullptr; + axis::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -32240,7 +32240,7 @@ int lua_cocos2dx_ui_Scale9Sprite_resetRender(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -32275,7 +32275,7 @@ int lua_cocos2dx_ui_Scale9Sprite_resetRender(lua_State* tolua_S) int lua_cocos2dx_ui_Scale9Sprite_getRenderingType(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Scale9Sprite* cobj = nullptr; + axis::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -32287,7 +32287,7 @@ int lua_cocos2dx_ui_Scale9Sprite_getRenderingType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -32322,7 +32322,7 @@ int lua_cocos2dx_ui_Scale9Sprite_getRenderingType(lua_State* tolua_S) int lua_cocos2dx_ui_Scale9Sprite_getInsetRight(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Scale9Sprite* cobj = nullptr; + axis::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -32334,7 +32334,7 @@ int lua_cocos2dx_ui_Scale9Sprite_getInsetRight(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -32369,7 +32369,7 @@ int lua_cocos2dx_ui_Scale9Sprite_getInsetRight(lua_State* tolua_S) int lua_cocos2dx_ui_Scale9Sprite_getOriginalSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Scale9Sprite* cobj = nullptr; + axis::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -32381,7 +32381,7 @@ int lua_cocos2dx_ui_Scale9Sprite_getOriginalSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -32399,7 +32399,7 @@ int lua_cocos2dx_ui_Scale9Sprite_getOriginalSize(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Scale9Sprite_getOriginalSize'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getOriginalSize(); + axis::Vec2 ret = cobj->getOriginalSize(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -32416,7 +32416,7 @@ int lua_cocos2dx_ui_Scale9Sprite_getOriginalSize(lua_State* tolua_S) int lua_cocos2dx_ui_Scale9Sprite_initWithFile(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Scale9Sprite* cobj = nullptr; + axis::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -32425,7 +32425,7 @@ int lua_cocos2dx_ui_Scale9Sprite_initWithFile(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -32436,7 +32436,7 @@ int lua_cocos2dx_ui_Scale9Sprite_initWithFile(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { - cocos2d::Rect arg0; + axis::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "ccui.Scale9Sprite:initWithFile"); if (!ok) { break; } @@ -32456,11 +32456,11 @@ int lua_cocos2dx_ui_Scale9Sprite_initWithFile(lua_State* tolua_S) ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.Scale9Sprite:initWithFile"); if (!ok) { break; } - cocos2d::Rect arg1; + axis::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "ccui.Scale9Sprite:initWithFile"); if (!ok) { break; } - cocos2d::Rect arg2; + axis::Rect arg2; ok &= luaval_to_rect(tolua_S, 4, &arg2, "ccui.Scale9Sprite:initWithFile"); if (!ok) { break; } @@ -32483,7 +32483,7 @@ int lua_cocos2dx_ui_Scale9Sprite_initWithFile(lua_State* tolua_S) int lua_cocos2dx_ui_Scale9Sprite_getInsetTop(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Scale9Sprite* cobj = nullptr; + axis::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -32495,7 +32495,7 @@ int lua_cocos2dx_ui_Scale9Sprite_getInsetTop(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -32530,7 +32530,7 @@ int lua_cocos2dx_ui_Scale9Sprite_getInsetTop(lua_State* tolua_S) int lua_cocos2dx_ui_Scale9Sprite_setInsetLeft(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Scale9Sprite* cobj = nullptr; + axis::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -32542,7 +32542,7 @@ int lua_cocos2dx_ui_Scale9Sprite_setInsetLeft(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -32580,7 +32580,7 @@ int lua_cocos2dx_ui_Scale9Sprite_setInsetLeft(lua_State* tolua_S) int lua_cocos2dx_ui_Scale9Sprite_initWithSpriteFrame(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Scale9Sprite* cobj = nullptr; + axis::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -32592,7 +32592,7 @@ int lua_cocos2dx_ui_Scale9Sprite_initWithSpriteFrame(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -32605,10 +32605,10 @@ int lua_cocos2dx_ui_Scale9Sprite_initWithSpriteFrame(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::SpriteFrame* arg0; - cocos2d::Rect arg1; + axis::SpriteFrame* arg0; + axis::Rect arg1; - ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0, "ccui.Scale9Sprite:initWithSpriteFrame"); + ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0, "ccui.Scale9Sprite:initWithSpriteFrame"); ok &= luaval_to_rect(tolua_S, 3, &arg1, "ccui.Scale9Sprite:initWithSpriteFrame"); if(!ok) @@ -32633,7 +32633,7 @@ int lua_cocos2dx_ui_Scale9Sprite_initWithSpriteFrame(lua_State* tolua_S) int lua_cocos2dx_ui_Scale9Sprite_getPreferredSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Scale9Sprite* cobj = nullptr; + axis::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -32645,7 +32645,7 @@ int lua_cocos2dx_ui_Scale9Sprite_getPreferredSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -32663,7 +32663,7 @@ int lua_cocos2dx_ui_Scale9Sprite_getPreferredSize(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Scale9Sprite_getPreferredSize'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getPreferredSize(); + axis::Vec2 ret = cobj->getPreferredSize(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -32680,7 +32680,7 @@ int lua_cocos2dx_ui_Scale9Sprite_getPreferredSize(lua_State* tolua_S) int lua_cocos2dx_ui_Scale9Sprite_setCapInsets(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Scale9Sprite* cobj = nullptr; + axis::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -32692,7 +32692,7 @@ int lua_cocos2dx_ui_Scale9Sprite_setCapInsets(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -32705,7 +32705,7 @@ int lua_cocos2dx_ui_Scale9Sprite_setCapInsets(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Rect arg0; + axis::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "ccui.Scale9Sprite:setCapInsets"); if(!ok) @@ -32730,7 +32730,7 @@ int lua_cocos2dx_ui_Scale9Sprite_setCapInsets(lua_State* tolua_S) int lua_cocos2dx_ui_Scale9Sprite_getInsetLeft(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Scale9Sprite* cobj = nullptr; + axis::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -32742,7 +32742,7 @@ int lua_cocos2dx_ui_Scale9Sprite_getInsetLeft(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -32777,7 +32777,7 @@ int lua_cocos2dx_ui_Scale9Sprite_getInsetLeft(lua_State* tolua_S) int lua_cocos2dx_ui_Scale9Sprite_setInsetRight(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Scale9Sprite* cobj = nullptr; + axis::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -32789,7 +32789,7 @@ int lua_cocos2dx_ui_Scale9Sprite_setInsetRight(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.Scale9Sprite",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::Scale9Sprite*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -32845,14 +32845,14 @@ int lua_cocos2dx_ui_Scale9Sprite_create(lua_State* tolua_S) std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.Scale9Sprite:create"); if (!ok) { break; } - cocos2d::Rect arg1; + axis::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "ccui.Scale9Sprite:create"); if (!ok) { break; } - cocos2d::Rect arg2; + axis::Rect arg2; ok &= luaval_to_rect(tolua_S, 4, &arg2, "ccui.Scale9Sprite:create"); if (!ok) { break; } - cocos2d::ui::Scale9Sprite* ret = cocos2d::ui::Scale9Sprite::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "ccui.Scale9Sprite",(cocos2d::ui::Scale9Sprite*)ret); + axis::ui::Scale9Sprite* ret = axis::ui::Scale9Sprite::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "ccui.Scale9Sprite",(axis::ui::Scale9Sprite*)ret); return 1; } } while (0); @@ -32861,8 +32861,8 @@ int lua_cocos2dx_ui_Scale9Sprite_create(lua_State* tolua_S) { if (argc == 0) { - cocos2d::ui::Scale9Sprite* ret = cocos2d::ui::Scale9Sprite::create(); - object_to_luaval(tolua_S, "ccui.Scale9Sprite",(cocos2d::ui::Scale9Sprite*)ret); + axis::ui::Scale9Sprite* ret = axis::ui::Scale9Sprite::create(); + object_to_luaval(tolua_S, "ccui.Scale9Sprite",(axis::ui::Scale9Sprite*)ret); return 1; } } while (0); @@ -32871,14 +32871,14 @@ int lua_cocos2dx_ui_Scale9Sprite_create(lua_State* tolua_S) { if (argc == 2) { - cocos2d::Rect arg0; + axis::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "ccui.Scale9Sprite:create"); if (!ok) { break; } std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ccui.Scale9Sprite:create"); if (!ok) { break; } - cocos2d::ui::Scale9Sprite* ret = cocos2d::ui::Scale9Sprite::create(arg0, arg1); - object_to_luaval(tolua_S, "ccui.Scale9Sprite",(cocos2d::ui::Scale9Sprite*)ret); + axis::ui::Scale9Sprite* ret = axis::ui::Scale9Sprite::create(arg0, arg1); + object_to_luaval(tolua_S, "ccui.Scale9Sprite",(axis::ui::Scale9Sprite*)ret); return 1; } } while (0); @@ -32890,11 +32890,11 @@ int lua_cocos2dx_ui_Scale9Sprite_create(lua_State* tolua_S) std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.Scale9Sprite:create"); if (!ok) { break; } - cocos2d::Rect arg1; + axis::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "ccui.Scale9Sprite:create"); if (!ok) { break; } - cocos2d::ui::Scale9Sprite* ret = cocos2d::ui::Scale9Sprite::create(arg0, arg1); - object_to_luaval(tolua_S, "ccui.Scale9Sprite",(cocos2d::ui::Scale9Sprite*)ret); + axis::ui::Scale9Sprite* ret = axis::ui::Scale9Sprite::create(arg0, arg1); + object_to_luaval(tolua_S, "ccui.Scale9Sprite",(axis::ui::Scale9Sprite*)ret); return 1; } } while (0); @@ -32906,8 +32906,8 @@ int lua_cocos2dx_ui_Scale9Sprite_create(lua_State* tolua_S) std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.Scale9Sprite:create"); if (!ok) { break; } - cocos2d::ui::Scale9Sprite* ret = cocos2d::ui::Scale9Sprite::create(arg0); - object_to_luaval(tolua_S, "ccui.Scale9Sprite",(cocos2d::ui::Scale9Sprite*)ret); + axis::ui::Scale9Sprite* ret = axis::ui::Scale9Sprite::create(arg0); + object_to_luaval(tolua_S, "ccui.Scale9Sprite",(axis::ui::Scale9Sprite*)ret); return 1; } } while (0); @@ -32941,11 +32941,11 @@ int lua_cocos2dx_ui_Scale9Sprite_createWithSpriteFrameName(lua_State* tolua_S) std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.Scale9Sprite:createWithSpriteFrameName"); if (!ok) { break; } - cocos2d::Rect arg1; + axis::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "ccui.Scale9Sprite:createWithSpriteFrameName"); if (!ok) { break; } - cocos2d::ui::Scale9Sprite* ret = cocos2d::ui::Scale9Sprite::createWithSpriteFrameName(arg0, arg1); - object_to_luaval(tolua_S, "ccui.Scale9Sprite",(cocos2d::ui::Scale9Sprite*)ret); + axis::ui::Scale9Sprite* ret = axis::ui::Scale9Sprite::createWithSpriteFrameName(arg0, arg1); + object_to_luaval(tolua_S, "ccui.Scale9Sprite",(axis::ui::Scale9Sprite*)ret); return 1; } } while (0); @@ -32957,8 +32957,8 @@ int lua_cocos2dx_ui_Scale9Sprite_createWithSpriteFrameName(lua_State* tolua_S) std::string_view arg0; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.Scale9Sprite:createWithSpriteFrameName"); if (!ok) { break; } - cocos2d::ui::Scale9Sprite* ret = cocos2d::ui::Scale9Sprite::createWithSpriteFrameName(arg0); - object_to_luaval(tolua_S, "ccui.Scale9Sprite",(cocos2d::ui::Scale9Sprite*)ret); + axis::ui::Scale9Sprite* ret = axis::ui::Scale9Sprite::createWithSpriteFrameName(arg0); + object_to_luaval(tolua_S, "ccui.Scale9Sprite",(axis::ui::Scale9Sprite*)ret); return 1; } } while (0); @@ -32989,14 +32989,14 @@ int lua_cocos2dx_ui_Scale9Sprite_createWithSpriteFrame(lua_State* tolua_S) { if (argc == 2) { - cocos2d::SpriteFrame* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0, "ccui.Scale9Sprite:createWithSpriteFrame"); + axis::SpriteFrame* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0, "ccui.Scale9Sprite:createWithSpriteFrame"); if (!ok) { break; } - cocos2d::Rect arg1; + axis::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "ccui.Scale9Sprite:createWithSpriteFrame"); if (!ok) { break; } - cocos2d::ui::Scale9Sprite* ret = cocos2d::ui::Scale9Sprite::createWithSpriteFrame(arg0, arg1); - object_to_luaval(tolua_S, "ccui.Scale9Sprite",(cocos2d::ui::Scale9Sprite*)ret); + axis::ui::Scale9Sprite* ret = axis::ui::Scale9Sprite::createWithSpriteFrame(arg0, arg1); + object_to_luaval(tolua_S, "ccui.Scale9Sprite",(axis::ui::Scale9Sprite*)ret); return 1; } } while (0); @@ -33005,11 +33005,11 @@ int lua_cocos2dx_ui_Scale9Sprite_createWithSpriteFrame(lua_State* tolua_S) { if (argc == 1) { - cocos2d::SpriteFrame* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0, "ccui.Scale9Sprite:createWithSpriteFrame"); + axis::SpriteFrame* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.SpriteFrame",&arg0, "ccui.Scale9Sprite:createWithSpriteFrame"); if (!ok) { break; } - cocos2d::ui::Scale9Sprite* ret = cocos2d::ui::Scale9Sprite::createWithSpriteFrame(arg0); - object_to_luaval(tolua_S, "ccui.Scale9Sprite",(cocos2d::ui::Scale9Sprite*)ret); + axis::ui::Scale9Sprite* ret = axis::ui::Scale9Sprite::createWithSpriteFrame(arg0); + object_to_luaval(tolua_S, "ccui.Scale9Sprite",(axis::ui::Scale9Sprite*)ret); return 1; } } while (0); @@ -33025,7 +33025,7 @@ int lua_cocos2dx_ui_Scale9Sprite_createWithSpriteFrame(lua_State* tolua_S) int lua_cocos2dx_ui_Scale9Sprite_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::Scale9Sprite* cobj = nullptr; + axis::ui::Scale9Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -33042,7 +33042,7 @@ int lua_cocos2dx_ui_Scale9Sprite_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_Scale9Sprite_constructor'", nullptr); return 0; } - cobj = new cocos2d::ui::Scale9Sprite(); + cobj = new axis::ui::Scale9Sprite(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -33105,7 +33105,7 @@ int lua_register_cocos2dx_ui_Scale9Sprite(lua_State* tolua_S) tolua_function(tolua_S,"createWithSpriteFrameName", lua_cocos2dx_ui_Scale9Sprite_createWithSpriteFrameName); tolua_function(tolua_S,"createWithSpriteFrame", lua_cocos2dx_ui_Scale9Sprite_createWithSpriteFrame); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ui::Scale9Sprite).name(); // rtti is literal storage + auto typeName = typeid(axis::ui::Scale9Sprite).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccui.Scale9Sprite"; g_typeCast[typeName] = "ccui.Scale9Sprite"; return 1; @@ -33114,7 +33114,7 @@ int lua_register_cocos2dx_ui_Scale9Sprite(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_getFontSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -33126,7 +33126,7 @@ int lua_cocos2dx_ui_EditBox_getFontSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -33161,7 +33161,7 @@ int lua_cocos2dx_ui_EditBox_getFontSize(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_keyboardDidShow(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -33173,7 +33173,7 @@ int lua_cocos2dx_ui_EditBox_keyboardDidShow(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -33186,7 +33186,7 @@ int lua_cocos2dx_ui_EditBox_keyboardDidShow(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::IMEKeyboardNotificationInfo arg0; + axis::IMEKeyboardNotificationInfo arg0; #pragma warning NO CONVERSION TO NATIVE FOR IMEKeyboardNotificationInfo ok = false; @@ -33212,7 +33212,7 @@ int lua_cocos2dx_ui_EditBox_keyboardDidShow(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_setMaxLength(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -33224,7 +33224,7 @@ int lua_cocos2dx_ui_EditBox_setMaxLength(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -33262,7 +33262,7 @@ int lua_cocos2dx_ui_EditBox_setMaxLength(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_openKeyboard(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -33274,7 +33274,7 @@ int lua_cocos2dx_ui_EditBox_openKeyboard(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -33309,7 +33309,7 @@ int lua_cocos2dx_ui_EditBox_openKeyboard(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_setFontSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -33321,7 +33321,7 @@ int lua_cocos2dx_ui_EditBox_setFontSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -33359,7 +33359,7 @@ int lua_cocos2dx_ui_EditBox_setFontSize(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_getText(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -33371,7 +33371,7 @@ int lua_cocos2dx_ui_EditBox_getText(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -33406,7 +33406,7 @@ int lua_cocos2dx_ui_EditBox_getText(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_getInputMode(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -33418,7 +33418,7 @@ int lua_cocos2dx_ui_EditBox_getInputMode(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -33453,7 +33453,7 @@ int lua_cocos2dx_ui_EditBox_getInputMode(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_initWithSizeAndBackgroundSprite(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -33462,7 +33462,7 @@ int lua_cocos2dx_ui_EditBox_initWithSizeAndBackgroundSprite(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -33473,12 +33473,12 @@ int lua_cocos2dx_ui_EditBox_initWithSizeAndBackgroundSprite(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 2) { - cocos2d::Size arg0; + axis::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "ccui.EditBox:initWithSizeAndBackgroundSprite"); if (!ok) { break; } - cocos2d::ui::Scale9Sprite* arg1; - ok &= luaval_to_object(tolua_S, 3, "ccui.Scale9Sprite",&arg1, "ccui.EditBox:initWithSizeAndBackgroundSprite"); + axis::ui::Scale9Sprite* arg1; + ok &= luaval_to_object(tolua_S, 3, "ccui.Scale9Sprite",&arg1, "ccui.EditBox:initWithSizeAndBackgroundSprite"); if (!ok) { break; } bool ret = cobj->initWithSizeAndBackgroundSprite(arg0, arg1); @@ -33489,7 +33489,7 @@ int lua_cocos2dx_ui_EditBox_initWithSizeAndBackgroundSprite(lua_State* tolua_S) ok = true; do{ if (argc == 2) { - cocos2d::Size arg0; + axis::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "ccui.EditBox:initWithSizeAndBackgroundSprite"); if (!ok) { break; } @@ -33505,7 +33505,7 @@ int lua_cocos2dx_ui_EditBox_initWithSizeAndBackgroundSprite(lua_State* tolua_S) ok = true; do{ if (argc == 3) { - cocos2d::Size arg0; + axis::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "ccui.EditBox:initWithSizeAndBackgroundSprite"); if (!ok) { break; } @@ -33513,7 +33513,7 @@ int lua_cocos2dx_ui_EditBox_initWithSizeAndBackgroundSprite(lua_State* tolua_S) ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ccui.EditBox:initWithSizeAndBackgroundSprite"); if (!ok) { break; } - cocos2d::ui::Widget::TextureResType arg2; + axis::ui::Widget::TextureResType arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ccui.EditBox:initWithSizeAndBackgroundSprite"); if (!ok) { break; } @@ -33525,20 +33525,20 @@ int lua_cocos2dx_ui_EditBox_initWithSizeAndBackgroundSprite(lua_State* tolua_S) ok = true; do{ if (argc == 4) { - cocos2d::Size arg0; + axis::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "ccui.EditBox:initWithSizeAndBackgroundSprite"); if (!ok) { break; } - cocos2d::ui::Scale9Sprite* arg1; - ok &= luaval_to_object(tolua_S, 3, "ccui.Scale9Sprite",&arg1, "ccui.EditBox:initWithSizeAndBackgroundSprite"); + axis::ui::Scale9Sprite* arg1; + ok &= luaval_to_object(tolua_S, 3, "ccui.Scale9Sprite",&arg1, "ccui.EditBox:initWithSizeAndBackgroundSprite"); if (!ok) { break; } - cocos2d::ui::Scale9Sprite* arg2; - ok &= luaval_to_object(tolua_S, 4, "ccui.Scale9Sprite",&arg2, "ccui.EditBox:initWithSizeAndBackgroundSprite"); + axis::ui::Scale9Sprite* arg2; + ok &= luaval_to_object(tolua_S, 4, "ccui.Scale9Sprite",&arg2, "ccui.EditBox:initWithSizeAndBackgroundSprite"); if (!ok) { break; } - cocos2d::ui::Scale9Sprite* arg3; - ok &= luaval_to_object(tolua_S, 5, "ccui.Scale9Sprite",&arg3, "ccui.EditBox:initWithSizeAndBackgroundSprite"); + axis::ui::Scale9Sprite* arg3; + ok &= luaval_to_object(tolua_S, 5, "ccui.Scale9Sprite",&arg3, "ccui.EditBox:initWithSizeAndBackgroundSprite"); if (!ok) { break; } bool ret = cobj->initWithSizeAndBackgroundSprite(arg0, arg1, arg2, arg3); @@ -33560,7 +33560,7 @@ int lua_cocos2dx_ui_EditBox_initWithSizeAndBackgroundSprite(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_getPlaceholderFontName(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -33572,7 +33572,7 @@ int lua_cocos2dx_ui_EditBox_getPlaceholderFontName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -33607,7 +33607,7 @@ int lua_cocos2dx_ui_EditBox_getPlaceholderFontName(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_keyboardDidHide(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -33619,7 +33619,7 @@ int lua_cocos2dx_ui_EditBox_keyboardDidHide(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -33632,7 +33632,7 @@ int lua_cocos2dx_ui_EditBox_keyboardDidHide(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::IMEKeyboardNotificationInfo arg0; + axis::IMEKeyboardNotificationInfo arg0; #pragma warning NO CONVERSION TO NATIVE FOR IMEKeyboardNotificationInfo ok = false; @@ -33658,7 +33658,7 @@ int lua_cocos2dx_ui_EditBox_keyboardDidHide(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_setPlaceholderFontName(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -33670,7 +33670,7 @@ int lua_cocos2dx_ui_EditBox_setPlaceholderFontName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -33708,7 +33708,7 @@ int lua_cocos2dx_ui_EditBox_setPlaceholderFontName(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_getPlaceholderFontSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -33720,7 +33720,7 @@ int lua_cocos2dx_ui_EditBox_getPlaceholderFontSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -33755,7 +33755,7 @@ int lua_cocos2dx_ui_EditBox_getPlaceholderFontSize(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_getCapInsetsDisabledRenderer(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -33767,7 +33767,7 @@ int lua_cocos2dx_ui_EditBox_getCapInsetsDisabledRenderer(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -33785,7 +33785,7 @@ int lua_cocos2dx_ui_EditBox_getCapInsetsDisabledRenderer(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_EditBox_getCapInsetsDisabledRenderer'", nullptr); return 0; } - const cocos2d::Rect& ret = cobj->getCapInsetsDisabledRenderer(); + const axis::Rect& ret = cobj->getCapInsetsDisabledRenderer(); rect_to_luaval(tolua_S, ret); return 1; } @@ -33802,7 +33802,7 @@ int lua_cocos2dx_ui_EditBox_getCapInsetsDisabledRenderer(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_getPlaceHolder(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -33814,7 +33814,7 @@ int lua_cocos2dx_ui_EditBox_getPlaceHolder(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -33849,7 +33849,7 @@ int lua_cocos2dx_ui_EditBox_getPlaceHolder(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_setFontName(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -33861,7 +33861,7 @@ int lua_cocos2dx_ui_EditBox_setFontName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -33899,7 +33899,7 @@ int lua_cocos2dx_ui_EditBox_setFontName(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_registerScriptEditBoxHandler(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -33911,7 +33911,7 @@ int lua_cocos2dx_ui_EditBox_registerScriptEditBoxHandler(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -33949,7 +33949,7 @@ int lua_cocos2dx_ui_EditBox_registerScriptEditBoxHandler(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_setCapInsetsDisabledRenderer(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -33961,7 +33961,7 @@ int lua_cocos2dx_ui_EditBox_setCapInsetsDisabledRenderer(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -33974,7 +33974,7 @@ int lua_cocos2dx_ui_EditBox_setCapInsetsDisabledRenderer(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Rect arg0; + axis::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "ccui.EditBox:setCapInsetsDisabledRenderer"); if(!ok) @@ -33999,7 +33999,7 @@ int lua_cocos2dx_ui_EditBox_setCapInsetsDisabledRenderer(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_setPlaceholderFontSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -34011,7 +34011,7 @@ int lua_cocos2dx_ui_EditBox_setPlaceholderFontSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -34049,7 +34049,7 @@ int lua_cocos2dx_ui_EditBox_setPlaceholderFontSize(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_loadTextureDisabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -34061,7 +34061,7 @@ int lua_cocos2dx_ui_EditBox_loadTextureDisabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -34089,7 +34089,7 @@ int lua_cocos2dx_ui_EditBox_loadTextureDisabled(lua_State* tolua_S) if (argc == 2) { std::string_view arg0; - cocos2d::ui::Widget::TextureResType arg1; + axis::ui::Widget::TextureResType arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.EditBox:loadTextureDisabled"); @@ -34116,7 +34116,7 @@ int lua_cocos2dx_ui_EditBox_loadTextureDisabled(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_setInputMode(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -34128,7 +34128,7 @@ int lua_cocos2dx_ui_EditBox_setInputMode(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -34141,7 +34141,7 @@ int lua_cocos2dx_ui_EditBox_setInputMode(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ui::EditBox::InputMode arg0; + axis::ui::EditBox::InputMode arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.EditBox:setInputMode"); if(!ok) @@ -34166,7 +34166,7 @@ int lua_cocos2dx_ui_EditBox_setInputMode(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_unregisterScriptEditBoxHandler(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -34178,7 +34178,7 @@ int lua_cocos2dx_ui_EditBox_unregisterScriptEditBoxHandler(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -34213,7 +34213,7 @@ int lua_cocos2dx_ui_EditBox_unregisterScriptEditBoxHandler(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_keyboardWillShow(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -34225,7 +34225,7 @@ int lua_cocos2dx_ui_EditBox_keyboardWillShow(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -34238,7 +34238,7 @@ int lua_cocos2dx_ui_EditBox_keyboardWillShow(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::IMEKeyboardNotificationInfo arg0; + axis::IMEKeyboardNotificationInfo arg0; #pragma warning NO CONVERSION TO NATIVE FOR IMEKeyboardNotificationInfo ok = false; @@ -34264,7 +34264,7 @@ int lua_cocos2dx_ui_EditBox_keyboardWillShow(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_setPlaceholderFontColor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -34273,7 +34273,7 @@ int lua_cocos2dx_ui_EditBox_setPlaceholderFontColor(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -34284,7 +34284,7 @@ int lua_cocos2dx_ui_EditBox_setPlaceholderFontColor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { - cocos2d::Color4B arg0; + axis::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "ccui.EditBox:setPlaceholderFontColor"); if (!ok) { break; } @@ -34296,7 +34296,7 @@ int lua_cocos2dx_ui_EditBox_setPlaceholderFontColor(lua_State* tolua_S) ok = true; do{ if (argc == 1) { - cocos2d::Color3B arg0; + axis::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "ccui.EditBox:setPlaceholderFontColor"); if (!ok) { break; } @@ -34319,7 +34319,7 @@ int lua_cocos2dx_ui_EditBox_setPlaceholderFontColor(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_getReturnType(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -34331,7 +34331,7 @@ int lua_cocos2dx_ui_EditBox_getReturnType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -34366,7 +34366,7 @@ int lua_cocos2dx_ui_EditBox_getReturnType(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_setFontColor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -34375,7 +34375,7 @@ int lua_cocos2dx_ui_EditBox_setFontColor(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -34386,7 +34386,7 @@ int lua_cocos2dx_ui_EditBox_setFontColor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { - cocos2d::Color4B arg0; + axis::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "ccui.EditBox:setFontColor"); if (!ok) { break; } @@ -34398,7 +34398,7 @@ int lua_cocos2dx_ui_EditBox_setFontColor(lua_State* tolua_S) ok = true; do{ if (argc == 1) { - cocos2d::Color3B arg0; + axis::Color3B arg0; ok &= luaval_to_color3b(tolua_S, 2, &arg0, "ccui.EditBox:setFontColor"); if (!ok) { break; } @@ -34421,7 +34421,7 @@ int lua_cocos2dx_ui_EditBox_setFontColor(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_getFontName(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -34433,7 +34433,7 @@ int lua_cocos2dx_ui_EditBox_getFontName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -34468,7 +34468,7 @@ int lua_cocos2dx_ui_EditBox_getFontName(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_keyboardWillHide(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -34480,7 +34480,7 @@ int lua_cocos2dx_ui_EditBox_keyboardWillHide(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -34493,7 +34493,7 @@ int lua_cocos2dx_ui_EditBox_keyboardWillHide(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::IMEKeyboardNotificationInfo arg0; + axis::IMEKeyboardNotificationInfo arg0; #pragma warning NO CONVERSION TO NATIVE FOR IMEKeyboardNotificationInfo ok = false; @@ -34519,7 +34519,7 @@ int lua_cocos2dx_ui_EditBox_keyboardWillHide(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_setCapInsetsNormalRenderer(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -34531,7 +34531,7 @@ int lua_cocos2dx_ui_EditBox_setCapInsetsNormalRenderer(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -34544,7 +34544,7 @@ int lua_cocos2dx_ui_EditBox_setCapInsetsNormalRenderer(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Rect arg0; + axis::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "ccui.EditBox:setCapInsetsNormalRenderer"); if(!ok) @@ -34569,7 +34569,7 @@ int lua_cocos2dx_ui_EditBox_setCapInsetsNormalRenderer(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_loadTexturePressed(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -34581,7 +34581,7 @@ int lua_cocos2dx_ui_EditBox_loadTexturePressed(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -34609,7 +34609,7 @@ int lua_cocos2dx_ui_EditBox_loadTexturePressed(lua_State* tolua_S) if (argc == 2) { std::string_view arg0; - cocos2d::ui::Widget::TextureResType arg1; + axis::ui::Widget::TextureResType arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.EditBox:loadTexturePressed"); @@ -34636,7 +34636,7 @@ int lua_cocos2dx_ui_EditBox_loadTexturePressed(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_getFontColor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -34648,7 +34648,7 @@ int lua_cocos2dx_ui_EditBox_getFontColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -34666,7 +34666,7 @@ int lua_cocos2dx_ui_EditBox_getFontColor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_EditBox_getFontColor'", nullptr); return 0; } - const cocos2d::Color4B& ret = cobj->getFontColor(); + const axis::Color4B& ret = cobj->getFontColor(); color4b_to_luaval(tolua_S, ret); return 1; } @@ -34683,7 +34683,7 @@ int lua_cocos2dx_ui_EditBox_getFontColor(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_getInputFlag(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -34695,7 +34695,7 @@ int lua_cocos2dx_ui_EditBox_getInputFlag(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -34730,7 +34730,7 @@ int lua_cocos2dx_ui_EditBox_getInputFlag(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_initWithSizeAndTexture(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -34742,7 +34742,7 @@ int lua_cocos2dx_ui_EditBox_initWithSizeAndTexture(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -34755,7 +34755,7 @@ int lua_cocos2dx_ui_EditBox_initWithSizeAndTexture(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 2) { - cocos2d::Size arg0; + axis::Size arg0; std::string_view arg1; ok &= luaval_to_size(tolua_S, 2, &arg0, "ccui.EditBox:initWithSizeAndTexture"); @@ -34772,7 +34772,7 @@ int lua_cocos2dx_ui_EditBox_initWithSizeAndTexture(lua_State* tolua_S) } if (argc == 3) { - cocos2d::Size arg0; + axis::Size arg0; std::string_view arg1; std::string_view arg2; @@ -34792,7 +34792,7 @@ int lua_cocos2dx_ui_EditBox_initWithSizeAndTexture(lua_State* tolua_S) } if (argc == 4) { - cocos2d::Size arg0; + axis::Size arg0; std::string_view arg1; std::string_view arg2; std::string_view arg3; @@ -34815,11 +34815,11 @@ int lua_cocos2dx_ui_EditBox_initWithSizeAndTexture(lua_State* tolua_S) } if (argc == 5) { - cocos2d::Size arg0; + axis::Size arg0; std::string_view arg1; std::string_view arg2; std::string_view arg3; - cocos2d::ui::Widget::TextureResType arg4; + axis::ui::Widget::TextureResType arg4; ok &= luaval_to_size(tolua_S, 2, &arg0, "ccui.EditBox:initWithSizeAndTexture"); @@ -34852,7 +34852,7 @@ int lua_cocos2dx_ui_EditBox_initWithSizeAndTexture(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_getTextHorizontalAlignment(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -34864,7 +34864,7 @@ int lua_cocos2dx_ui_EditBox_getTextHorizontalAlignment(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -34899,7 +34899,7 @@ int lua_cocos2dx_ui_EditBox_getTextHorizontalAlignment(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_getCapInsetsNormalRenderer(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -34911,7 +34911,7 @@ int lua_cocos2dx_ui_EditBox_getCapInsetsNormalRenderer(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -34929,7 +34929,7 @@ int lua_cocos2dx_ui_EditBox_getCapInsetsNormalRenderer(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_EditBox_getCapInsetsNormalRenderer'", nullptr); return 0; } - const cocos2d::Rect& ret = cobj->getCapInsetsNormalRenderer(); + const axis::Rect& ret = cobj->getCapInsetsNormalRenderer(); rect_to_luaval(tolua_S, ret); return 1; } @@ -34946,7 +34946,7 @@ int lua_cocos2dx_ui_EditBox_getCapInsetsNormalRenderer(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_getCapInsetsPressedRenderer(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -34958,7 +34958,7 @@ int lua_cocos2dx_ui_EditBox_getCapInsetsPressedRenderer(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -34976,7 +34976,7 @@ int lua_cocos2dx_ui_EditBox_getCapInsetsPressedRenderer(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_EditBox_getCapInsetsPressedRenderer'", nullptr); return 0; } - const cocos2d::Rect& ret = cobj->getCapInsetsPressedRenderer(); + const axis::Rect& ret = cobj->getCapInsetsPressedRenderer(); rect_to_luaval(tolua_S, ret); return 1; } @@ -34993,7 +34993,7 @@ int lua_cocos2dx_ui_EditBox_getCapInsetsPressedRenderer(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_getScriptEditBoxHandler(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -35005,7 +35005,7 @@ int lua_cocos2dx_ui_EditBox_getScriptEditBoxHandler(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -35040,7 +35040,7 @@ int lua_cocos2dx_ui_EditBox_getScriptEditBoxHandler(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_loadTextures(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -35052,7 +35052,7 @@ int lua_cocos2dx_ui_EditBox_loadTextures(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -35105,7 +35105,7 @@ int lua_cocos2dx_ui_EditBox_loadTextures(lua_State* tolua_S) std::string_view arg0; std::string_view arg1; std::string_view arg2; - cocos2d::ui::Widget::TextureResType arg3; + axis::ui::Widget::TextureResType arg3; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.EditBox:loadTextures"); @@ -35136,7 +35136,7 @@ int lua_cocos2dx_ui_EditBox_loadTextures(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_setPlaceHolder(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -35148,7 +35148,7 @@ int lua_cocos2dx_ui_EditBox_setPlaceHolder(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -35186,7 +35186,7 @@ int lua_cocos2dx_ui_EditBox_setPlaceHolder(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_setInputFlag(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -35198,7 +35198,7 @@ int lua_cocos2dx_ui_EditBox_setInputFlag(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -35211,7 +35211,7 @@ int lua_cocos2dx_ui_EditBox_setInputFlag(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ui::EditBox::InputFlag arg0; + axis::ui::EditBox::InputFlag arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.EditBox:setInputFlag"); if(!ok) @@ -35236,7 +35236,7 @@ int lua_cocos2dx_ui_EditBox_setInputFlag(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_setReturnType(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -35248,7 +35248,7 @@ int lua_cocos2dx_ui_EditBox_setReturnType(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -35261,7 +35261,7 @@ int lua_cocos2dx_ui_EditBox_setReturnType(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ui::EditBox::KeyboardReturnType arg0; + axis::ui::EditBox::KeyboardReturnType arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.EditBox:setReturnType"); if(!ok) @@ -35286,7 +35286,7 @@ int lua_cocos2dx_ui_EditBox_setReturnType(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_loadTextureNormal(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -35298,7 +35298,7 @@ int lua_cocos2dx_ui_EditBox_loadTextureNormal(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -35326,7 +35326,7 @@ int lua_cocos2dx_ui_EditBox_loadTextureNormal(lua_State* tolua_S) if (argc == 2) { std::string_view arg0; - cocos2d::ui::Widget::TextureResType arg1; + axis::ui::Widget::TextureResType arg1; ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ccui.EditBox:loadTextureNormal"); @@ -35353,7 +35353,7 @@ int lua_cocos2dx_ui_EditBox_loadTextureNormal(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_getMaxLength(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -35365,7 +35365,7 @@ int lua_cocos2dx_ui_EditBox_getMaxLength(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -35400,7 +35400,7 @@ int lua_cocos2dx_ui_EditBox_getMaxLength(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_setCapInsetsPressedRenderer(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -35412,7 +35412,7 @@ int lua_cocos2dx_ui_EditBox_setCapInsetsPressedRenderer(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -35425,7 +35425,7 @@ int lua_cocos2dx_ui_EditBox_setCapInsetsPressedRenderer(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Rect arg0; + axis::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "ccui.EditBox:setCapInsetsPressedRenderer"); if(!ok) @@ -35450,7 +35450,7 @@ int lua_cocos2dx_ui_EditBox_setCapInsetsPressedRenderer(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_setText(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -35462,7 +35462,7 @@ int lua_cocos2dx_ui_EditBox_setText(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -35500,7 +35500,7 @@ int lua_cocos2dx_ui_EditBox_setText(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_setPlaceholderFont(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -35512,7 +35512,7 @@ int lua_cocos2dx_ui_EditBox_setPlaceholderFont(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -35553,7 +35553,7 @@ int lua_cocos2dx_ui_EditBox_setPlaceholderFont(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_getPlaceholderFontColor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -35565,7 +35565,7 @@ int lua_cocos2dx_ui_EditBox_getPlaceholderFontColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -35583,7 +35583,7 @@ int lua_cocos2dx_ui_EditBox_getPlaceholderFontColor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_EditBox_getPlaceholderFontColor'", nullptr); return 0; } - const cocos2d::Color4B& ret = cobj->getPlaceholderFontColor(); + const axis::Color4B& ret = cobj->getPlaceholderFontColor(); color4b_to_luaval(tolua_S, ret); return 1; } @@ -35600,7 +35600,7 @@ int lua_cocos2dx_ui_EditBox_getPlaceholderFontColor(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_setCapInsets(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -35612,7 +35612,7 @@ int lua_cocos2dx_ui_EditBox_setCapInsets(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -35625,7 +35625,7 @@ int lua_cocos2dx_ui_EditBox_setCapInsets(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Rect arg0; + axis::Rect arg0; ok &= luaval_to_rect(tolua_S, 2, &arg0, "ccui.EditBox:setCapInsets"); if(!ok) @@ -35650,7 +35650,7 @@ int lua_cocos2dx_ui_EditBox_setCapInsets(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_setFont(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -35662,7 +35662,7 @@ int lua_cocos2dx_ui_EditBox_setFont(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -35703,7 +35703,7 @@ int lua_cocos2dx_ui_EditBox_setFont(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_setTextHorizontalAlignment(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -35715,7 +35715,7 @@ int lua_cocos2dx_ui_EditBox_setTextHorizontalAlignment(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.EditBox",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::EditBox*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::EditBox*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -35728,7 +35728,7 @@ int lua_cocos2dx_ui_EditBox_setTextHorizontalAlignment(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::TextHAlignment arg0; + axis::TextHAlignment arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.EditBox:setTextHorizontalAlignment"); if(!ok) @@ -35768,17 +35768,17 @@ int lua_cocos2dx_ui_EditBox_create(lua_State* tolua_S) { if (argc == 3) { - cocos2d::Size arg0; + axis::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "ccui.EditBox:create"); if (!ok) { break; } std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ccui.EditBox:create"); if (!ok) { break; } - cocos2d::ui::Widget::TextureResType arg2; + axis::ui::Widget::TextureResType arg2; ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ccui.EditBox:create"); if (!ok) { break; } - cocos2d::ui::EditBox* ret = cocos2d::ui::EditBox::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "ccui.EditBox",(cocos2d::ui::EditBox*)ret); + axis::ui::EditBox* ret = axis::ui::EditBox::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "ccui.EditBox",(axis::ui::EditBox*)ret); return 1; } } while (0); @@ -35787,14 +35787,14 @@ int lua_cocos2dx_ui_EditBox_create(lua_State* tolua_S) { if (argc == 2) { - cocos2d::Size arg0; + axis::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "ccui.EditBox:create"); if (!ok) { break; } - cocos2d::ui::Scale9Sprite* arg1; - ok &= luaval_to_object(tolua_S, 3, "ccui.Scale9Sprite",&arg1, "ccui.EditBox:create"); + axis::ui::Scale9Sprite* arg1; + ok &= luaval_to_object(tolua_S, 3, "ccui.Scale9Sprite",&arg1, "ccui.EditBox:create"); if (!ok) { break; } - cocos2d::ui::EditBox* ret = cocos2d::ui::EditBox::create(arg0, arg1); - object_to_luaval(tolua_S, "ccui.EditBox",(cocos2d::ui::EditBox*)ret); + axis::ui::EditBox* ret = axis::ui::EditBox::create(arg0, arg1); + object_to_luaval(tolua_S, "ccui.EditBox",(axis::ui::EditBox*)ret); return 1; } } while (0); @@ -35803,17 +35803,17 @@ int lua_cocos2dx_ui_EditBox_create(lua_State* tolua_S) { if (argc == 3) { - cocos2d::Size arg0; + axis::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "ccui.EditBox:create"); if (!ok) { break; } - cocos2d::ui::Scale9Sprite* arg1; - ok &= luaval_to_object(tolua_S, 3, "ccui.Scale9Sprite",&arg1, "ccui.EditBox:create"); + axis::ui::Scale9Sprite* arg1; + ok &= luaval_to_object(tolua_S, 3, "ccui.Scale9Sprite",&arg1, "ccui.EditBox:create"); if (!ok) { break; } - cocos2d::ui::Scale9Sprite* arg2; - ok &= luaval_to_object(tolua_S, 4, "ccui.Scale9Sprite",&arg2, "ccui.EditBox:create"); + axis::ui::Scale9Sprite* arg2; + ok &= luaval_to_object(tolua_S, 4, "ccui.Scale9Sprite",&arg2, "ccui.EditBox:create"); if (!ok) { break; } - cocos2d::ui::EditBox* ret = cocos2d::ui::EditBox::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "ccui.EditBox",(cocos2d::ui::EditBox*)ret); + axis::ui::EditBox* ret = axis::ui::EditBox::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "ccui.EditBox",(axis::ui::EditBox*)ret); return 1; } } while (0); @@ -35822,20 +35822,20 @@ int lua_cocos2dx_ui_EditBox_create(lua_State* tolua_S) { if (argc == 4) { - cocos2d::Size arg0; + axis::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "ccui.EditBox:create"); if (!ok) { break; } - cocos2d::ui::Scale9Sprite* arg1; - ok &= luaval_to_object(tolua_S, 3, "ccui.Scale9Sprite",&arg1, "ccui.EditBox:create"); + axis::ui::Scale9Sprite* arg1; + ok &= luaval_to_object(tolua_S, 3, "ccui.Scale9Sprite",&arg1, "ccui.EditBox:create"); if (!ok) { break; } - cocos2d::ui::Scale9Sprite* arg2; - ok &= luaval_to_object(tolua_S, 4, "ccui.Scale9Sprite",&arg2, "ccui.EditBox:create"); + axis::ui::Scale9Sprite* arg2; + ok &= luaval_to_object(tolua_S, 4, "ccui.Scale9Sprite",&arg2, "ccui.EditBox:create"); if (!ok) { break; } - cocos2d::ui::Scale9Sprite* arg3; - ok &= luaval_to_object(tolua_S, 5, "ccui.Scale9Sprite",&arg3, "ccui.EditBox:create"); + axis::ui::Scale9Sprite* arg3; + ok &= luaval_to_object(tolua_S, 5, "ccui.Scale9Sprite",&arg3, "ccui.EditBox:create"); if (!ok) { break; } - cocos2d::ui::EditBox* ret = cocos2d::ui::EditBox::create(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "ccui.EditBox",(cocos2d::ui::EditBox*)ret); + axis::ui::EditBox* ret = axis::ui::EditBox::create(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "ccui.EditBox",(axis::ui::EditBox*)ret); return 1; } } while (0); @@ -35844,14 +35844,14 @@ int lua_cocos2dx_ui_EditBox_create(lua_State* tolua_S) { if (argc == 2) { - cocos2d::Size arg0; + axis::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "ccui.EditBox:create"); if (!ok) { break; } std::string_view arg1; ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ccui.EditBox:create"); if (!ok) { break; } - cocos2d::ui::EditBox* ret = cocos2d::ui::EditBox::create(arg0, arg1); - object_to_luaval(tolua_S, "ccui.EditBox",(cocos2d::ui::EditBox*)ret); + axis::ui::EditBox* ret = axis::ui::EditBox::create(arg0, arg1); + object_to_luaval(tolua_S, "ccui.EditBox",(axis::ui::EditBox*)ret); return 1; } } while (0); @@ -35860,7 +35860,7 @@ int lua_cocos2dx_ui_EditBox_create(lua_State* tolua_S) { if (argc == 3) { - cocos2d::Size arg0; + axis::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "ccui.EditBox:create"); if (!ok) { break; } std::string_view arg1; @@ -35869,8 +35869,8 @@ int lua_cocos2dx_ui_EditBox_create(lua_State* tolua_S) std::string_view arg2; ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "ccui.EditBox:create"); if (!ok) { break; } - cocos2d::ui::EditBox* ret = cocos2d::ui::EditBox::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "ccui.EditBox",(cocos2d::ui::EditBox*)ret); + axis::ui::EditBox* ret = axis::ui::EditBox::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "ccui.EditBox",(axis::ui::EditBox*)ret); return 1; } } while (0); @@ -35879,7 +35879,7 @@ int lua_cocos2dx_ui_EditBox_create(lua_State* tolua_S) { if (argc == 4) { - cocos2d::Size arg0; + axis::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "ccui.EditBox:create"); if (!ok) { break; } std::string_view arg1; @@ -35891,8 +35891,8 @@ int lua_cocos2dx_ui_EditBox_create(lua_State* tolua_S) std::string_view arg3; ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "ccui.EditBox:create"); if (!ok) { break; } - cocos2d::ui::EditBox* ret = cocos2d::ui::EditBox::create(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "ccui.EditBox",(cocos2d::ui::EditBox*)ret); + axis::ui::EditBox* ret = axis::ui::EditBox::create(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "ccui.EditBox",(axis::ui::EditBox*)ret); return 1; } } while (0); @@ -35901,7 +35901,7 @@ int lua_cocos2dx_ui_EditBox_create(lua_State* tolua_S) { if (argc == 5) { - cocos2d::Size arg0; + axis::Size arg0; ok &= luaval_to_size(tolua_S, 2, &arg0, "ccui.EditBox:create"); if (!ok) { break; } std::string_view arg1; @@ -35913,11 +35913,11 @@ int lua_cocos2dx_ui_EditBox_create(lua_State* tolua_S) std::string_view arg3; ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "ccui.EditBox:create"); if (!ok) { break; } - cocos2d::ui::Widget::TextureResType arg4; + axis::ui::Widget::TextureResType arg4; ok &= luaval_to_int32(tolua_S, 6,(int *)&arg4, "ccui.EditBox:create"); if (!ok) { break; } - cocos2d::ui::EditBox* ret = cocos2d::ui::EditBox::create(arg0, arg1, arg2, arg3, arg4); - object_to_luaval(tolua_S, "ccui.EditBox",(cocos2d::ui::EditBox*)ret); + axis::ui::EditBox* ret = axis::ui::EditBox::create(arg0, arg1, arg2, arg3, arg4); + object_to_luaval(tolua_S, "ccui.EditBox",(axis::ui::EditBox*)ret); return 1; } } while (0); @@ -35933,7 +35933,7 @@ int lua_cocos2dx_ui_EditBox_create(lua_State* tolua_S) int lua_cocos2dx_ui_EditBox_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::EditBox* cobj = nullptr; + axis::ui::EditBox* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -35950,7 +35950,7 @@ int lua_cocos2dx_ui_EditBox_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_EditBox_constructor'", nullptr); return 0; } - cobj = new cocos2d::ui::EditBox(); + cobj = new axis::ui::EditBox(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -36031,7 +36031,7 @@ int lua_register_cocos2dx_ui_EditBox(lua_State* tolua_S) tolua_function(tolua_S,"setTextHorizontalAlignment",lua_cocos2dx_ui_EditBox_setTextHorizontalAlignment); tolua_function(tolua_S,"create", lua_cocos2dx_ui_EditBox_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ui::EditBox).name(); // rtti is literal storage + auto typeName = typeid(axis::ui::EditBox).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccui.EditBox"; g_typeCast[typeName] = "ccui.EditBox"; return 1; @@ -36040,7 +36040,7 @@ int lua_register_cocos2dx_ui_EditBox(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_setStretchWidthEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -36052,7 +36052,7 @@ int lua_cocos2dx_ui_LayoutComponent_setStretchWidthEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -36090,7 +36090,7 @@ int lua_cocos2dx_ui_LayoutComponent_setStretchWidthEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_setPercentWidth(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -36102,7 +36102,7 @@ int lua_cocos2dx_ui_LayoutComponent_setPercentWidth(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -36140,7 +36140,7 @@ int lua_cocos2dx_ui_LayoutComponent_setPercentWidth(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_getAnchorPosition(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -36152,7 +36152,7 @@ int lua_cocos2dx_ui_LayoutComponent_getAnchorPosition(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -36170,7 +36170,7 @@ int lua_cocos2dx_ui_LayoutComponent_getAnchorPosition(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_LayoutComponent_getAnchorPosition'", nullptr); return 0; } - const cocos2d::Point& ret = cobj->getAnchorPosition(); + const axis::Point& ret = cobj->getAnchorPosition(); point_to_luaval(tolua_S, ret); return 1; } @@ -36187,7 +36187,7 @@ int lua_cocos2dx_ui_LayoutComponent_getAnchorPosition(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_setPositionPercentXEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -36199,7 +36199,7 @@ int lua_cocos2dx_ui_LayoutComponent_setPositionPercentXEnabled(lua_State* tolua_ if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -36237,7 +36237,7 @@ int lua_cocos2dx_ui_LayoutComponent_setPositionPercentXEnabled(lua_State* tolua_ int lua_cocos2dx_ui_LayoutComponent_setStretchHeightEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -36249,7 +36249,7 @@ int lua_cocos2dx_ui_LayoutComponent_setStretchHeightEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -36287,7 +36287,7 @@ int lua_cocos2dx_ui_LayoutComponent_setStretchHeightEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_setActiveEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -36299,7 +36299,7 @@ int lua_cocos2dx_ui_LayoutComponent_setActiveEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -36337,7 +36337,7 @@ int lua_cocos2dx_ui_LayoutComponent_setActiveEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_getRightMargin(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -36349,7 +36349,7 @@ int lua_cocos2dx_ui_LayoutComponent_getRightMargin(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -36384,7 +36384,7 @@ int lua_cocos2dx_ui_LayoutComponent_getRightMargin(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_getSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -36396,7 +36396,7 @@ int lua_cocos2dx_ui_LayoutComponent_getSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -36414,7 +36414,7 @@ int lua_cocos2dx_ui_LayoutComponent_getSize(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_LayoutComponent_getSize'", nullptr); return 0; } - const cocos2d::Vec2& ret = cobj->getSize(); + const axis::Vec2& ret = cobj->getSize(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -36431,7 +36431,7 @@ int lua_cocos2dx_ui_LayoutComponent_getSize(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_setAnchorPosition(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -36443,7 +36443,7 @@ int lua_cocos2dx_ui_LayoutComponent_setAnchorPosition(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -36456,7 +36456,7 @@ int lua_cocos2dx_ui_LayoutComponent_setAnchorPosition(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Point arg0; + axis::Point arg0; ok &= luaval_to_point(tolua_S, 2, &arg0, "ccui.LayoutComponent:setAnchorPosition"); if(!ok) @@ -36481,7 +36481,7 @@ int lua_cocos2dx_ui_LayoutComponent_setAnchorPosition(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_refreshLayout(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -36493,7 +36493,7 @@ int lua_cocos2dx_ui_LayoutComponent_refreshLayout(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -36528,7 +36528,7 @@ int lua_cocos2dx_ui_LayoutComponent_refreshLayout(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_isPercentWidthEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -36540,7 +36540,7 @@ int lua_cocos2dx_ui_LayoutComponent_isPercentWidthEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -36575,7 +36575,7 @@ int lua_cocos2dx_ui_LayoutComponent_isPercentWidthEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_setVerticalEdge(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -36587,7 +36587,7 @@ int lua_cocos2dx_ui_LayoutComponent_setVerticalEdge(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -36600,7 +36600,7 @@ int lua_cocos2dx_ui_LayoutComponent_setVerticalEdge(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ui::LayoutComponent::VerticalEdge arg0; + axis::ui::LayoutComponent::VerticalEdge arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.LayoutComponent:setVerticalEdge"); if(!ok) @@ -36625,7 +36625,7 @@ int lua_cocos2dx_ui_LayoutComponent_setVerticalEdge(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_getTopMargin(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -36637,7 +36637,7 @@ int lua_cocos2dx_ui_LayoutComponent_getTopMargin(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -36672,7 +36672,7 @@ int lua_cocos2dx_ui_LayoutComponent_getTopMargin(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_setSizeWidth(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -36684,7 +36684,7 @@ int lua_cocos2dx_ui_LayoutComponent_setSizeWidth(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -36722,7 +36722,7 @@ int lua_cocos2dx_ui_LayoutComponent_setSizeWidth(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_getPercentContentSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -36734,7 +36734,7 @@ int lua_cocos2dx_ui_LayoutComponent_getPercentContentSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -36752,7 +36752,7 @@ int lua_cocos2dx_ui_LayoutComponent_getPercentContentSize(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_LayoutComponent_getPercentContentSize'", nullptr); return 0; } - cocos2d::Vec2 ret = cobj->getPercentContentSize(); + axis::Vec2 ret = cobj->getPercentContentSize(); vec2_to_luaval(tolua_S, ret); return 1; } @@ -36769,7 +36769,7 @@ int lua_cocos2dx_ui_LayoutComponent_getPercentContentSize(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_getVerticalEdge(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -36781,7 +36781,7 @@ int lua_cocos2dx_ui_LayoutComponent_getVerticalEdge(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -36816,7 +36816,7 @@ int lua_cocos2dx_ui_LayoutComponent_getVerticalEdge(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_setPercentWidthEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -36828,7 +36828,7 @@ int lua_cocos2dx_ui_LayoutComponent_setPercentWidthEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -36866,7 +36866,7 @@ int lua_cocos2dx_ui_LayoutComponent_setPercentWidthEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_isStretchWidthEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -36878,7 +36878,7 @@ int lua_cocos2dx_ui_LayoutComponent_isStretchWidthEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -36913,7 +36913,7 @@ int lua_cocos2dx_ui_LayoutComponent_isStretchWidthEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_setLeftMargin(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -36925,7 +36925,7 @@ int lua_cocos2dx_ui_LayoutComponent_setLeftMargin(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -36963,7 +36963,7 @@ int lua_cocos2dx_ui_LayoutComponent_setLeftMargin(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_getSizeWidth(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -36975,7 +36975,7 @@ int lua_cocos2dx_ui_LayoutComponent_getSizeWidth(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -37010,7 +37010,7 @@ int lua_cocos2dx_ui_LayoutComponent_getSizeWidth(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_setPositionPercentYEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -37022,7 +37022,7 @@ int lua_cocos2dx_ui_LayoutComponent_setPositionPercentYEnabled(lua_State* tolua_ if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -37060,7 +37060,7 @@ int lua_cocos2dx_ui_LayoutComponent_setPositionPercentYEnabled(lua_State* tolua_ int lua_cocos2dx_ui_LayoutComponent_getSizeHeight(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -37072,7 +37072,7 @@ int lua_cocos2dx_ui_LayoutComponent_getSizeHeight(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -37107,7 +37107,7 @@ int lua_cocos2dx_ui_LayoutComponent_getSizeHeight(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_getPositionPercentY(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -37119,7 +37119,7 @@ int lua_cocos2dx_ui_LayoutComponent_getPositionPercentY(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -37154,7 +37154,7 @@ int lua_cocos2dx_ui_LayoutComponent_getPositionPercentY(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_getPositionPercentX(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -37166,7 +37166,7 @@ int lua_cocos2dx_ui_LayoutComponent_getPositionPercentX(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -37201,7 +37201,7 @@ int lua_cocos2dx_ui_LayoutComponent_getPositionPercentX(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_setTopMargin(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -37213,7 +37213,7 @@ int lua_cocos2dx_ui_LayoutComponent_setTopMargin(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -37251,7 +37251,7 @@ int lua_cocos2dx_ui_LayoutComponent_setTopMargin(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_getPercentHeight(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -37263,7 +37263,7 @@ int lua_cocos2dx_ui_LayoutComponent_getPercentHeight(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -37298,7 +37298,7 @@ int lua_cocos2dx_ui_LayoutComponent_getPercentHeight(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_getUsingPercentContentSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -37310,7 +37310,7 @@ int lua_cocos2dx_ui_LayoutComponent_getUsingPercentContentSize(lua_State* tolua_ if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -37345,7 +37345,7 @@ int lua_cocos2dx_ui_LayoutComponent_getUsingPercentContentSize(lua_State* tolua_ int lua_cocos2dx_ui_LayoutComponent_setPositionPercentY(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -37357,7 +37357,7 @@ int lua_cocos2dx_ui_LayoutComponent_setPositionPercentY(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -37395,7 +37395,7 @@ int lua_cocos2dx_ui_LayoutComponent_setPositionPercentY(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_setPositionPercentX(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -37407,7 +37407,7 @@ int lua_cocos2dx_ui_LayoutComponent_setPositionPercentX(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -37445,7 +37445,7 @@ int lua_cocos2dx_ui_LayoutComponent_setPositionPercentX(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_setRightMargin(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -37457,7 +37457,7 @@ int lua_cocos2dx_ui_LayoutComponent_setRightMargin(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -37495,7 +37495,7 @@ int lua_cocos2dx_ui_LayoutComponent_setRightMargin(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_isPositionPercentYEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -37507,7 +37507,7 @@ int lua_cocos2dx_ui_LayoutComponent_isPositionPercentYEnabled(lua_State* tolua_S if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -37542,7 +37542,7 @@ int lua_cocos2dx_ui_LayoutComponent_isPositionPercentYEnabled(lua_State* tolua_S int lua_cocos2dx_ui_LayoutComponent_setPercentHeight(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -37554,7 +37554,7 @@ int lua_cocos2dx_ui_LayoutComponent_setPercentHeight(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -37592,7 +37592,7 @@ int lua_cocos2dx_ui_LayoutComponent_setPercentHeight(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_setPercentOnlyEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -37604,7 +37604,7 @@ int lua_cocos2dx_ui_LayoutComponent_setPercentOnlyEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -37642,7 +37642,7 @@ int lua_cocos2dx_ui_LayoutComponent_setPercentOnlyEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_setHorizontalEdge(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -37654,7 +37654,7 @@ int lua_cocos2dx_ui_LayoutComponent_setHorizontalEdge(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -37667,7 +37667,7 @@ int lua_cocos2dx_ui_LayoutComponent_setHorizontalEdge(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ui::LayoutComponent::HorizontalEdge arg0; + axis::ui::LayoutComponent::HorizontalEdge arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.LayoutComponent:setHorizontalEdge"); if(!ok) @@ -37692,7 +37692,7 @@ int lua_cocos2dx_ui_LayoutComponent_setHorizontalEdge(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_setPosition(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -37704,7 +37704,7 @@ int lua_cocos2dx_ui_LayoutComponent_setPosition(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -37717,7 +37717,7 @@ int lua_cocos2dx_ui_LayoutComponent_setPosition(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Point arg0; + axis::Point arg0; ok &= luaval_to_point(tolua_S, 2, &arg0, "ccui.LayoutComponent:setPosition"); if(!ok) @@ -37742,7 +37742,7 @@ int lua_cocos2dx_ui_LayoutComponent_setPosition(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_setUsingPercentContentSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -37754,7 +37754,7 @@ int lua_cocos2dx_ui_LayoutComponent_setUsingPercentContentSize(lua_State* tolua_ if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -37792,7 +37792,7 @@ int lua_cocos2dx_ui_LayoutComponent_setUsingPercentContentSize(lua_State* tolua_ int lua_cocos2dx_ui_LayoutComponent_getLeftMargin(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -37804,7 +37804,7 @@ int lua_cocos2dx_ui_LayoutComponent_getLeftMargin(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -37839,7 +37839,7 @@ int lua_cocos2dx_ui_LayoutComponent_getLeftMargin(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_getPosition(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -37851,7 +37851,7 @@ int lua_cocos2dx_ui_LayoutComponent_getPosition(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -37869,7 +37869,7 @@ int lua_cocos2dx_ui_LayoutComponent_getPosition(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_LayoutComponent_getPosition'", nullptr); return 0; } - const cocos2d::Point& ret = cobj->getPosition(); + const axis::Point& ret = cobj->getPosition(); point_to_luaval(tolua_S, ret); return 1; } @@ -37886,7 +37886,7 @@ int lua_cocos2dx_ui_LayoutComponent_getPosition(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_setSizeHeight(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -37898,7 +37898,7 @@ int lua_cocos2dx_ui_LayoutComponent_setSizeHeight(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -37936,7 +37936,7 @@ int lua_cocos2dx_ui_LayoutComponent_setSizeHeight(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_isPositionPercentXEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -37948,7 +37948,7 @@ int lua_cocos2dx_ui_LayoutComponent_isPositionPercentXEnabled(lua_State* tolua_S if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -37983,7 +37983,7 @@ int lua_cocos2dx_ui_LayoutComponent_isPositionPercentXEnabled(lua_State* tolua_S int lua_cocos2dx_ui_LayoutComponent_getBottomMargin(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -37995,7 +37995,7 @@ int lua_cocos2dx_ui_LayoutComponent_getBottomMargin(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -38030,7 +38030,7 @@ int lua_cocos2dx_ui_LayoutComponent_getBottomMargin(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_setPercentHeightEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -38042,7 +38042,7 @@ int lua_cocos2dx_ui_LayoutComponent_setPercentHeightEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -38080,7 +38080,7 @@ int lua_cocos2dx_ui_LayoutComponent_setPercentHeightEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_setPercentContentSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -38092,7 +38092,7 @@ int lua_cocos2dx_ui_LayoutComponent_setPercentContentSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -38105,7 +38105,7 @@ int lua_cocos2dx_ui_LayoutComponent_setPercentContentSize(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ccui.LayoutComponent:setPercentContentSize"); if(!ok) @@ -38130,7 +38130,7 @@ int lua_cocos2dx_ui_LayoutComponent_setPercentContentSize(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_isPercentHeightEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -38142,7 +38142,7 @@ int lua_cocos2dx_ui_LayoutComponent_isPercentHeightEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -38177,7 +38177,7 @@ int lua_cocos2dx_ui_LayoutComponent_isPercentHeightEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_getPercentWidth(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -38189,7 +38189,7 @@ int lua_cocos2dx_ui_LayoutComponent_getPercentWidth(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -38224,7 +38224,7 @@ int lua_cocos2dx_ui_LayoutComponent_getPercentWidth(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_getHorizontalEdge(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -38236,7 +38236,7 @@ int lua_cocos2dx_ui_LayoutComponent_getHorizontalEdge(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -38271,7 +38271,7 @@ int lua_cocos2dx_ui_LayoutComponent_getHorizontalEdge(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_isStretchHeightEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -38283,7 +38283,7 @@ int lua_cocos2dx_ui_LayoutComponent_isStretchHeightEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -38318,7 +38318,7 @@ int lua_cocos2dx_ui_LayoutComponent_isStretchHeightEnabled(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_setBottomMargin(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -38330,7 +38330,7 @@ int lua_cocos2dx_ui_LayoutComponent_setBottomMargin(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -38368,7 +38368,7 @@ int lua_cocos2dx_ui_LayoutComponent_setBottomMargin(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_setSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -38380,7 +38380,7 @@ int lua_cocos2dx_ui_LayoutComponent_setSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.LayoutComponent",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::LayoutComponent*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -38393,7 +38393,7 @@ int lua_cocos2dx_ui_LayoutComponent_setSize(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ccui.LayoutComponent:setSize"); if(!ok) @@ -38437,8 +38437,8 @@ int lua_cocos2dx_ui_LayoutComponent_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_LayoutComponent_create'", nullptr); return 0; } - cocos2d::ui::LayoutComponent* ret = cocos2d::ui::LayoutComponent::create(); - object_to_luaval(tolua_S, "ccui.LayoutComponent",(cocos2d::ui::LayoutComponent*)ret); + axis::ui::LayoutComponent* ret = axis::ui::LayoutComponent::create(); + object_to_luaval(tolua_S, "ccui.LayoutComponent",(axis::ui::LayoutComponent*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.LayoutComponent:create",argc, 0); @@ -38466,15 +38466,15 @@ int lua_cocos2dx_ui_LayoutComponent_bindLayoutComponent(lua_State* tolua_S) if (argc == 1) { - cocos2d::Node* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "ccui.LayoutComponent:bindLayoutComponent"); + axis::Node* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Node",&arg0, "ccui.LayoutComponent:bindLayoutComponent"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_LayoutComponent_bindLayoutComponent'", nullptr); return 0; } - cocos2d::ui::LayoutComponent* ret = cocos2d::ui::LayoutComponent::bindLayoutComponent(arg0); - object_to_luaval(tolua_S, "ccui.LayoutComponent",(cocos2d::ui::LayoutComponent*)ret); + axis::ui::LayoutComponent* ret = axis::ui::LayoutComponent::bindLayoutComponent(arg0); + object_to_luaval(tolua_S, "ccui.LayoutComponent",(axis::ui::LayoutComponent*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.LayoutComponent:bindLayoutComponent",argc, 1); @@ -38488,7 +38488,7 @@ int lua_cocos2dx_ui_LayoutComponent_bindLayoutComponent(lua_State* tolua_S) int lua_cocos2dx_ui_LayoutComponent_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::LayoutComponent* cobj = nullptr; + axis::ui::LayoutComponent* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -38505,7 +38505,7 @@ int lua_cocos2dx_ui_LayoutComponent_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_LayoutComponent_constructor'", nullptr); return 0; } - cobj = new cocos2d::ui::LayoutComponent(); + cobj = new axis::ui::LayoutComponent(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -38587,7 +38587,7 @@ int lua_register_cocos2dx_ui_LayoutComponent(lua_State* tolua_S) tolua_function(tolua_S,"create", lua_cocos2dx_ui_LayoutComponent_create); tolua_function(tolua_S,"bindLayoutComponent", lua_cocos2dx_ui_LayoutComponent_bindLayoutComponent); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ui::LayoutComponent).name(); // rtti is literal storage + auto typeName = typeid(axis::ui::LayoutComponent).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccui.LayoutComponent"; g_typeCast[typeName] = "ccui.LayoutComponent"; return 1; @@ -38596,7 +38596,7 @@ int lua_register_cocos2dx_ui_LayoutComponent(lua_State* tolua_S) int lua_cocos2dx_ui_TabHeader_getIndexInTabControl(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TabHeader* cobj = nullptr; + axis::ui::TabHeader* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -38608,7 +38608,7 @@ int lua_cocos2dx_ui_TabHeader_getIndexInTabControl(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TabHeader",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -38643,7 +38643,7 @@ int lua_cocos2dx_ui_TabHeader_getIndexInTabControl(lua_State* tolua_S) int lua_cocos2dx_ui_TabHeader_getTitleText(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TabHeader* cobj = nullptr; + axis::ui::TabHeader* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -38655,7 +38655,7 @@ int lua_cocos2dx_ui_TabHeader_getTitleText(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TabHeader",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -38690,7 +38690,7 @@ int lua_cocos2dx_ui_TabHeader_getTitleText(lua_State* tolua_S) int lua_cocos2dx_ui_TabHeader_setTitleFontSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TabHeader* cobj = nullptr; + axis::ui::TabHeader* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -38702,7 +38702,7 @@ int lua_cocos2dx_ui_TabHeader_setTitleFontSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TabHeader",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -38740,7 +38740,7 @@ int lua_cocos2dx_ui_TabHeader_setTitleFontSize(lua_State* tolua_S) int lua_cocos2dx_ui_TabHeader_setTitleFontName(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TabHeader* cobj = nullptr; + axis::ui::TabHeader* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -38752,7 +38752,7 @@ int lua_cocos2dx_ui_TabHeader_setTitleFontName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TabHeader",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -38790,7 +38790,7 @@ int lua_cocos2dx_ui_TabHeader_setTitleFontName(lua_State* tolua_S) int lua_cocos2dx_ui_TabHeader_getTitleFontSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TabHeader* cobj = nullptr; + axis::ui::TabHeader* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -38802,7 +38802,7 @@ int lua_cocos2dx_ui_TabHeader_getTitleFontSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TabHeader",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -38837,7 +38837,7 @@ int lua_cocos2dx_ui_TabHeader_getTitleFontSize(lua_State* tolua_S) int lua_cocos2dx_ui_TabHeader_getTitleFontName(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TabHeader* cobj = nullptr; + axis::ui::TabHeader* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -38849,7 +38849,7 @@ int lua_cocos2dx_ui_TabHeader_getTitleFontName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TabHeader",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -38884,7 +38884,7 @@ int lua_cocos2dx_ui_TabHeader_getTitleFontName(lua_State* tolua_S) int lua_cocos2dx_ui_TabHeader_getTitleColor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TabHeader* cobj = nullptr; + axis::ui::TabHeader* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -38896,7 +38896,7 @@ int lua_cocos2dx_ui_TabHeader_getTitleColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TabHeader",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -38914,7 +38914,7 @@ int lua_cocos2dx_ui_TabHeader_getTitleColor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_TabHeader_getTitleColor'", nullptr); return 0; } - const cocos2d::Color4B& ret = cobj->getTitleColor(); + const axis::Color4B& ret = cobj->getTitleColor(); color4b_to_luaval(tolua_S, ret); return 1; } @@ -38931,7 +38931,7 @@ int lua_cocos2dx_ui_TabHeader_getTitleColor(lua_State* tolua_S) int lua_cocos2dx_ui_TabHeader_getTitleRenderer(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TabHeader* cobj = nullptr; + axis::ui::TabHeader* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -38943,7 +38943,7 @@ int lua_cocos2dx_ui_TabHeader_getTitleRenderer(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TabHeader",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -38961,8 +38961,8 @@ int lua_cocos2dx_ui_TabHeader_getTitleRenderer(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_TabHeader_getTitleRenderer'", nullptr); return 0; } - cocos2d::Label* ret = cobj->getTitleRenderer(); - object_to_luaval(tolua_S, "cc.Label",(cocos2d::Label*)ret); + axis::Label* ret = cobj->getTitleRenderer(); + object_to_luaval(tolua_S, "cc.Label",(axis::Label*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.TabHeader:getTitleRenderer",argc, 0); @@ -38978,7 +38978,7 @@ int lua_cocos2dx_ui_TabHeader_getTitleRenderer(lua_State* tolua_S) int lua_cocos2dx_ui_TabHeader_setTitleText(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TabHeader* cobj = nullptr; + axis::ui::TabHeader* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -38990,7 +38990,7 @@ int lua_cocos2dx_ui_TabHeader_setTitleText(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TabHeader",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -39028,7 +39028,7 @@ int lua_cocos2dx_ui_TabHeader_setTitleText(lua_State* tolua_S) int lua_cocos2dx_ui_TabHeader_setTitleColor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TabHeader* cobj = nullptr; + axis::ui::TabHeader* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -39040,7 +39040,7 @@ int lua_cocos2dx_ui_TabHeader_setTitleColor(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TabHeader",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TabHeader*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -39053,7 +39053,7 @@ int lua_cocos2dx_ui_TabHeader_setTitleColor(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::Color4B arg0; + axis::Color4B arg0; ok &=luaval_to_color4b(tolua_S, 2, &arg0, "ccui.TabHeader:setTitleColor"); if(!ok) @@ -39102,8 +39102,8 @@ int lua_cocos2dx_ui_TabHeader_create(lua_State* tolua_S) std::string_view arg2; ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "ccui.TabHeader:create"); if (!ok) { break; } - cocos2d::ui::TabHeader* ret = cocos2d::ui::TabHeader::create(arg0, arg1, arg2); - object_to_luaval(tolua_S, "ccui.TabHeader",(cocos2d::ui::TabHeader*)ret); + axis::ui::TabHeader* ret = axis::ui::TabHeader::create(arg0, arg1, arg2); + object_to_luaval(tolua_S, "ccui.TabHeader",(axis::ui::TabHeader*)ret); return 1; } } while (0); @@ -39121,11 +39121,11 @@ int lua_cocos2dx_ui_TabHeader_create(lua_State* tolua_S) std::string_view arg2; ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "ccui.TabHeader:create"); if (!ok) { break; } - cocos2d::ui::Widget::TextureResType arg3; + axis::ui::Widget::TextureResType arg3; ok &= luaval_to_int32(tolua_S, 5,(int *)&arg3, "ccui.TabHeader:create"); if (!ok) { break; } - cocos2d::ui::TabHeader* ret = cocos2d::ui::TabHeader::create(arg0, arg1, arg2, arg3); - object_to_luaval(tolua_S, "ccui.TabHeader",(cocos2d::ui::TabHeader*)ret); + axis::ui::TabHeader* ret = axis::ui::TabHeader::create(arg0, arg1, arg2, arg3); + object_to_luaval(tolua_S, "ccui.TabHeader",(axis::ui::TabHeader*)ret); return 1; } } while (0); @@ -39134,8 +39134,8 @@ int lua_cocos2dx_ui_TabHeader_create(lua_State* tolua_S) { if (argc == 0) { - cocos2d::ui::TabHeader* ret = cocos2d::ui::TabHeader::create(); - object_to_luaval(tolua_S, "ccui.TabHeader",(cocos2d::ui::TabHeader*)ret); + axis::ui::TabHeader* ret = axis::ui::TabHeader::create(); + object_to_luaval(tolua_S, "ccui.TabHeader",(axis::ui::TabHeader*)ret); return 1; } } while (0); @@ -39162,8 +39162,8 @@ int lua_cocos2dx_ui_TabHeader_create(lua_State* tolua_S) std::string_view arg5; ok &= luaval_to_std_string_view(tolua_S, 7,&arg5, "ccui.TabHeader:create"); if (!ok) { break; } - cocos2d::ui::TabHeader* ret = cocos2d::ui::TabHeader::create(arg0, arg1, arg2, arg3, arg4, arg5); - object_to_luaval(tolua_S, "ccui.TabHeader",(cocos2d::ui::TabHeader*)ret); + axis::ui::TabHeader* ret = axis::ui::TabHeader::create(arg0, arg1, arg2, arg3, arg4, arg5); + object_to_luaval(tolua_S, "ccui.TabHeader",(axis::ui::TabHeader*)ret); return 1; } } while (0); @@ -39190,11 +39190,11 @@ int lua_cocos2dx_ui_TabHeader_create(lua_State* tolua_S) std::string_view arg5; ok &= luaval_to_std_string_view(tolua_S, 7,&arg5, "ccui.TabHeader:create"); if (!ok) { break; } - cocos2d::ui::Widget::TextureResType arg6; + axis::ui::Widget::TextureResType arg6; ok &= luaval_to_int32(tolua_S, 8,(int *)&arg6, "ccui.TabHeader:create"); if (!ok) { break; } - cocos2d::ui::TabHeader* ret = cocos2d::ui::TabHeader::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6); - object_to_luaval(tolua_S, "ccui.TabHeader",(cocos2d::ui::TabHeader*)ret); + axis::ui::TabHeader* ret = axis::ui::TabHeader::create(arg0, arg1, arg2, arg3, arg4, arg5, arg6); + object_to_luaval(tolua_S, "ccui.TabHeader",(axis::ui::TabHeader*)ret); return 1; } } while (0); @@ -39231,7 +39231,7 @@ int lua_register_cocos2dx_ui_TabHeader(lua_State* tolua_S) tolua_function(tolua_S,"setTitleColor",lua_cocos2dx_ui_TabHeader_setTitleColor); tolua_function(tolua_S,"create", lua_cocos2dx_ui_TabHeader_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ui::TabHeader).name(); // rtti is literal storage + auto typeName = typeid(axis::ui::TabHeader).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccui.TabHeader"; g_typeCast[typeName] = "ccui.TabHeader"; return 1; @@ -39240,7 +39240,7 @@ int lua_register_cocos2dx_ui_TabHeader(lua_State* tolua_S) int lua_cocos2dx_ui_TabControl_setHeaderWidth(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TabControl* cobj = nullptr; + axis::ui::TabControl* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -39252,7 +39252,7 @@ int lua_cocos2dx_ui_TabControl_setHeaderWidth(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TabControl",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TabControl*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TabControl*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -39290,7 +39290,7 @@ int lua_cocos2dx_ui_TabControl_setHeaderWidth(lua_State* tolua_S) int lua_cocos2dx_ui_TabControl_removeTab(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TabControl* cobj = nullptr; + axis::ui::TabControl* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -39302,7 +39302,7 @@ int lua_cocos2dx_ui_TabControl_removeTab(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TabControl",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TabControl*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TabControl*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -39340,7 +39340,7 @@ int lua_cocos2dx_ui_TabControl_removeTab(lua_State* tolua_S) int lua_cocos2dx_ui_TabControl_getTabCount(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TabControl* cobj = nullptr; + axis::ui::TabControl* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -39352,7 +39352,7 @@ int lua_cocos2dx_ui_TabControl_getTabCount(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TabControl",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TabControl*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TabControl*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -39387,7 +39387,7 @@ int lua_cocos2dx_ui_TabControl_getTabCount(lua_State* tolua_S) int lua_cocos2dx_ui_TabControl_getHeaderDockPlace(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TabControl* cobj = nullptr; + axis::ui::TabControl* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -39399,7 +39399,7 @@ int lua_cocos2dx_ui_TabControl_getHeaderDockPlace(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TabControl",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TabControl*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TabControl*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -39434,7 +39434,7 @@ int lua_cocos2dx_ui_TabControl_getHeaderDockPlace(lua_State* tolua_S) int lua_cocos2dx_ui_TabControl_getSelectedTabIndex(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TabControl* cobj = nullptr; + axis::ui::TabControl* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -39446,7 +39446,7 @@ int lua_cocos2dx_ui_TabControl_getSelectedTabIndex(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TabControl",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TabControl*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TabControl*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -39481,7 +39481,7 @@ int lua_cocos2dx_ui_TabControl_getSelectedTabIndex(lua_State* tolua_S) int lua_cocos2dx_ui_TabControl_insertTab(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TabControl* cobj = nullptr; + axis::ui::TabControl* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -39493,7 +39493,7 @@ int lua_cocos2dx_ui_TabControl_insertTab(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TabControl",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TabControl*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TabControl*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -39507,14 +39507,14 @@ int lua_cocos2dx_ui_TabControl_insertTab(lua_State* tolua_S) if (argc == 3) { int arg0; - cocos2d::ui::TabHeader* arg1; - cocos2d::ui::Layout* arg2; + axis::ui::TabHeader* arg1; + axis::ui::Layout* arg2; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.TabControl:insertTab"); - ok &= luaval_to_object(tolua_S, 3, "ccui.TabHeader",&arg1, "ccui.TabControl:insertTab"); + ok &= luaval_to_object(tolua_S, 3, "ccui.TabHeader",&arg1, "ccui.TabControl:insertTab"); - ok &= luaval_to_object(tolua_S, 4, "ccui.Layout",&arg2, "ccui.TabControl:insertTab"); + ok &= luaval_to_object(tolua_S, 4, "ccui.Layout",&arg2, "ccui.TabControl:insertTab"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_TabControl_insertTab'", nullptr); @@ -39537,7 +39537,7 @@ int lua_cocos2dx_ui_TabControl_insertTab(lua_State* tolua_S) int lua_cocos2dx_ui_TabControl_ignoreHeadersTextureSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TabControl* cobj = nullptr; + axis::ui::TabControl* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -39549,7 +39549,7 @@ int lua_cocos2dx_ui_TabControl_ignoreHeadersTextureSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TabControl",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TabControl*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TabControl*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -39587,7 +39587,7 @@ int lua_cocos2dx_ui_TabControl_ignoreHeadersTextureSize(lua_State* tolua_S) int lua_cocos2dx_ui_TabControl_getHeaderWidth(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TabControl* cobj = nullptr; + axis::ui::TabControl* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -39599,7 +39599,7 @@ int lua_cocos2dx_ui_TabControl_getHeaderWidth(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TabControl",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TabControl*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TabControl*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -39634,7 +39634,7 @@ int lua_cocos2dx_ui_TabControl_getHeaderWidth(lua_State* tolua_S) int lua_cocos2dx_ui_TabControl_setHeaderDockPlace(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TabControl* cobj = nullptr; + axis::ui::TabControl* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -39646,7 +39646,7 @@ int lua_cocos2dx_ui_TabControl_setHeaderDockPlace(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TabControl",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TabControl*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TabControl*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -39659,7 +39659,7 @@ int lua_cocos2dx_ui_TabControl_setHeaderDockPlace(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ui::TabControl::Dock arg0; + axis::ui::TabControl::Dock arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.TabControl:setHeaderDockPlace"); if(!ok) @@ -39684,7 +39684,7 @@ int lua_cocos2dx_ui_TabControl_setHeaderDockPlace(lua_State* tolua_S) int lua_cocos2dx_ui_TabControl_setSelectTab(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TabControl* cobj = nullptr; + axis::ui::TabControl* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -39693,7 +39693,7 @@ int lua_cocos2dx_ui_TabControl_setSelectTab(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccui.TabControl",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TabControl*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TabControl*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -39704,8 +39704,8 @@ int lua_cocos2dx_ui_TabControl_setSelectTab(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; do{ if (argc == 1) { - cocos2d::ui::TabHeader* arg0; - ok &= luaval_to_object(tolua_S, 2, "ccui.TabHeader",&arg0, "ccui.TabControl:setSelectTab"); + axis::ui::TabHeader* arg0; + ok &= luaval_to_object(tolua_S, 2, "ccui.TabHeader",&arg0, "ccui.TabControl:setSelectTab"); if (!ok) { break; } cobj->setSelectTab(arg0); @@ -39739,7 +39739,7 @@ int lua_cocos2dx_ui_TabControl_setSelectTab(lua_State* tolua_S) int lua_cocos2dx_ui_TabControl_getTabHeader(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TabControl* cobj = nullptr; + axis::ui::TabControl* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -39751,7 +39751,7 @@ int lua_cocos2dx_ui_TabControl_getTabHeader(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TabControl",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TabControl*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TabControl*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -39772,8 +39772,8 @@ int lua_cocos2dx_ui_TabControl_getTabHeader(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_TabControl_getTabHeader'", nullptr); return 0; } - cocos2d::ui::TabHeader* ret = cobj->getTabHeader(arg0); - object_to_luaval(tolua_S, "ccui.TabHeader",(cocos2d::ui::TabHeader*)ret); + axis::ui::TabHeader* ret = cobj->getTabHeader(arg0); + object_to_luaval(tolua_S, "ccui.TabHeader",(axis::ui::TabHeader*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.TabControl:getTabHeader",argc, 1); @@ -39789,7 +39789,7 @@ int lua_cocos2dx_ui_TabControl_getTabHeader(lua_State* tolua_S) int lua_cocos2dx_ui_TabControl_isIgnoreHeadersTextureSize(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TabControl* cobj = nullptr; + axis::ui::TabControl* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -39801,7 +39801,7 @@ int lua_cocos2dx_ui_TabControl_isIgnoreHeadersTextureSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TabControl",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TabControl*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TabControl*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -39836,7 +39836,7 @@ int lua_cocos2dx_ui_TabControl_isIgnoreHeadersTextureSize(lua_State* tolua_S) int lua_cocos2dx_ui_TabControl_setTabChangedEventListener(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TabControl* cobj = nullptr; + axis::ui::TabControl* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -39848,7 +39848,7 @@ int lua_cocos2dx_ui_TabControl_setTabChangedEventListener(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TabControl",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TabControl*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TabControl*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -39861,7 +39861,7 @@ int lua_cocos2dx_ui_TabControl_setTabChangedEventListener(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - std::function arg0; + std::function arg0; do { // Lambda binding for lua is not supported. @@ -39890,7 +39890,7 @@ int lua_cocos2dx_ui_TabControl_setTabChangedEventListener(lua_State* tolua_S) int lua_cocos2dx_ui_TabControl_setHeaderSelectedZoom(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TabControl* cobj = nullptr; + axis::ui::TabControl* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -39902,7 +39902,7 @@ int lua_cocos2dx_ui_TabControl_setHeaderSelectedZoom(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TabControl",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TabControl*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TabControl*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -39940,7 +39940,7 @@ int lua_cocos2dx_ui_TabControl_setHeaderSelectedZoom(lua_State* tolua_S) int lua_cocos2dx_ui_TabControl_setHeaderHeight(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TabControl* cobj = nullptr; + axis::ui::TabControl* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -39952,7 +39952,7 @@ int lua_cocos2dx_ui_TabControl_setHeaderHeight(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TabControl",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TabControl*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TabControl*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -39990,7 +39990,7 @@ int lua_cocos2dx_ui_TabControl_setHeaderHeight(lua_State* tolua_S) int lua_cocos2dx_ui_TabControl_indexOfTabHeader(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TabControl* cobj = nullptr; + axis::ui::TabControl* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -40002,7 +40002,7 @@ int lua_cocos2dx_ui_TabControl_indexOfTabHeader(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TabControl",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TabControl*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TabControl*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -40015,9 +40015,9 @@ int lua_cocos2dx_ui_TabControl_indexOfTabHeader(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - const cocos2d::ui::TabHeader* arg0; + const axis::ui::TabHeader* arg0; - ok &= luaval_to_object(tolua_S, 2, "ccui.TabHeader",&arg0, "ccui.TabControl:indexOfTabHeader"); + ok &= luaval_to_object(tolua_S, 2, "ccui.TabHeader",&arg0, "ccui.TabControl:indexOfTabHeader"); if(!ok) { tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_TabControl_indexOfTabHeader'", nullptr); @@ -40040,7 +40040,7 @@ int lua_cocos2dx_ui_TabControl_indexOfTabHeader(lua_State* tolua_S) int lua_cocos2dx_ui_TabControl_getTabContainer(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TabControl* cobj = nullptr; + axis::ui::TabControl* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -40052,7 +40052,7 @@ int lua_cocos2dx_ui_TabControl_getTabContainer(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TabControl",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TabControl*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TabControl*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -40073,8 +40073,8 @@ int lua_cocos2dx_ui_TabControl_getTabContainer(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_TabControl_getTabContainer'", nullptr); return 0; } - cocos2d::ui::Layout* ret = cobj->getTabContainer(arg0); - object_to_luaval(tolua_S, "ccui.Layout",(cocos2d::ui::Layout*)ret); + axis::ui::Layout* ret = cobj->getTabContainer(arg0); + object_to_luaval(tolua_S, "ccui.Layout",(axis::ui::Layout*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ccui.TabControl:getTabContainer",argc, 1); @@ -40090,7 +40090,7 @@ int lua_cocos2dx_ui_TabControl_getTabContainer(lua_State* tolua_S) int lua_cocos2dx_ui_TabControl_getHeaderSelectedZoom(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TabControl* cobj = nullptr; + axis::ui::TabControl* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -40102,7 +40102,7 @@ int lua_cocos2dx_ui_TabControl_getHeaderSelectedZoom(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TabControl",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TabControl*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TabControl*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -40137,7 +40137,7 @@ int lua_cocos2dx_ui_TabControl_getHeaderSelectedZoom(lua_State* tolua_S) int lua_cocos2dx_ui_TabControl_getHeaderHeight(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::TabControl* cobj = nullptr; + axis::ui::TabControl* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -40149,7 +40149,7 @@ int lua_cocos2dx_ui_TabControl_getHeaderHeight(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.TabControl",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::TabControl*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::TabControl*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -40203,8 +40203,8 @@ int lua_cocos2dx_ui_TabControl_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_ui_TabControl_create'", nullptr); return 0; } - cocos2d::ui::TabControl* ret = cocos2d::ui::TabControl::create(); - object_to_luaval(tolua_S, "ccui.TabControl",(cocos2d::ui::TabControl*)ret); + axis::ui::TabControl* ret = axis::ui::TabControl::create(); + object_to_luaval(tolua_S, "ccui.TabControl",(axis::ui::TabControl*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.TabControl:create",argc, 0); @@ -40248,7 +40248,7 @@ int lua_register_cocos2dx_ui_TabControl(lua_State* tolua_S) tolua_function(tolua_S,"getHeaderHeight",lua_cocos2dx_ui_TabControl_getHeaderHeight); tolua_function(tolua_S,"create", lua_cocos2dx_ui_TabControl_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ui::TabControl).name(); // rtti is literal storage + auto typeName = typeid(axis::ui::TabControl).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccui.TabControl"; g_typeCast[typeName] = "ccui.TabControl"; return 1; diff --git a/extensions/scripting/lua-bindings/auto/lua_cocos2dx_video_auto.cpp b/extensions/scripting/lua-bindings/auto/lua_cocos2dx_video_auto.cpp index 379c22463d..409c5c4622 100644 --- a/extensions/scripting/lua-bindings/auto/lua_cocos2dx_video_auto.cpp +++ b/extensions/scripting/lua-bindings/auto/lua_cocos2dx_video_auto.cpp @@ -6,7 +6,7 @@ int lua_cocos2dx_video_VideoPlayer_getFileName(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::VideoPlayer* cobj = nullptr; + axis::ui::VideoPlayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -18,7 +18,7 @@ int lua_cocos2dx_video_VideoPlayer_getFileName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -53,7 +53,7 @@ int lua_cocos2dx_video_VideoPlayer_getFileName(lua_State* tolua_S) int lua_cocos2dx_video_VideoPlayer_getURL(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::VideoPlayer* cobj = nullptr; + axis::ui::VideoPlayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -65,7 +65,7 @@ int lua_cocos2dx_video_VideoPlayer_getURL(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -100,7 +100,7 @@ int lua_cocos2dx_video_VideoPlayer_getURL(lua_State* tolua_S) int lua_cocos2dx_video_VideoPlayer_play(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::VideoPlayer* cobj = nullptr; + axis::ui::VideoPlayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -112,7 +112,7 @@ int lua_cocos2dx_video_VideoPlayer_play(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -147,7 +147,7 @@ int lua_cocos2dx_video_VideoPlayer_play(lua_State* tolua_S) int lua_cocos2dx_video_VideoPlayer_isUserInputEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::VideoPlayer* cobj = nullptr; + axis::ui::VideoPlayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -159,7 +159,7 @@ int lua_cocos2dx_video_VideoPlayer_isUserInputEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -194,7 +194,7 @@ int lua_cocos2dx_video_VideoPlayer_isUserInputEnabled(lua_State* tolua_S) int lua_cocos2dx_video_VideoPlayer_setKeepAspectRatioEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::VideoPlayer* cobj = nullptr; + axis::ui::VideoPlayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -206,7 +206,7 @@ int lua_cocos2dx_video_VideoPlayer_setKeepAspectRatioEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -244,7 +244,7 @@ int lua_cocos2dx_video_VideoPlayer_setKeepAspectRatioEnabled(lua_State* tolua_S) int lua_cocos2dx_video_VideoPlayer_stop(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::VideoPlayer* cobj = nullptr; + axis::ui::VideoPlayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -256,7 +256,7 @@ int lua_cocos2dx_video_VideoPlayer_stop(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -291,7 +291,7 @@ int lua_cocos2dx_video_VideoPlayer_stop(lua_State* tolua_S) int lua_cocos2dx_video_VideoPlayer_setFullScreenEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::VideoPlayer* cobj = nullptr; + axis::ui::VideoPlayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -303,7 +303,7 @@ int lua_cocos2dx_video_VideoPlayer_setFullScreenEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -341,7 +341,7 @@ int lua_cocos2dx_video_VideoPlayer_setFullScreenEnabled(lua_State* tolua_S) int lua_cocos2dx_video_VideoPlayer_setPlayRate(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::VideoPlayer* cobj = nullptr; + axis::ui::VideoPlayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -353,7 +353,7 @@ int lua_cocos2dx_video_VideoPlayer_setPlayRate(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -391,7 +391,7 @@ int lua_cocos2dx_video_VideoPlayer_setPlayRate(lua_State* tolua_S) int lua_cocos2dx_video_VideoPlayer_setFileName(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::VideoPlayer* cobj = nullptr; + axis::ui::VideoPlayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -403,7 +403,7 @@ int lua_cocos2dx_video_VideoPlayer_setFileName(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -441,7 +441,7 @@ int lua_cocos2dx_video_VideoPlayer_setFileName(lua_State* tolua_S) int lua_cocos2dx_video_VideoPlayer_setURL(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::VideoPlayer* cobj = nullptr; + axis::ui::VideoPlayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -453,7 +453,7 @@ int lua_cocos2dx_video_VideoPlayer_setURL(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -491,7 +491,7 @@ int lua_cocos2dx_video_VideoPlayer_setURL(lua_State* tolua_S) int lua_cocos2dx_video_VideoPlayer_setStyle(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::VideoPlayer* cobj = nullptr; + axis::ui::VideoPlayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -503,7 +503,7 @@ int lua_cocos2dx_video_VideoPlayer_setStyle(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -516,7 +516,7 @@ int lua_cocos2dx_video_VideoPlayer_setStyle(lua_State* tolua_S) argc = lua_gettop(tolua_S)-1; if (argc == 1) { - cocos2d::ui::VideoPlayer::StyleType arg0; + axis::ui::VideoPlayer::StyleType arg0; ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ccui.VideoPlayer:setStyle"); if(!ok) @@ -541,7 +541,7 @@ int lua_cocos2dx_video_VideoPlayer_setStyle(lua_State* tolua_S) int lua_cocos2dx_video_VideoPlayer_seekTo(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::VideoPlayer* cobj = nullptr; + axis::ui::VideoPlayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -553,7 +553,7 @@ int lua_cocos2dx_video_VideoPlayer_seekTo(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -591,7 +591,7 @@ int lua_cocos2dx_video_VideoPlayer_seekTo(lua_State* tolua_S) int lua_cocos2dx_video_VideoPlayer_isKeepAspectRatioEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::VideoPlayer* cobj = nullptr; + axis::ui::VideoPlayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -603,7 +603,7 @@ int lua_cocos2dx_video_VideoPlayer_isKeepAspectRatioEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -638,7 +638,7 @@ int lua_cocos2dx_video_VideoPlayer_isKeepAspectRatioEnabled(lua_State* tolua_S) int lua_cocos2dx_video_VideoPlayer_onPlayEvent(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::VideoPlayer* cobj = nullptr; + axis::ui::VideoPlayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -650,7 +650,7 @@ int lua_cocos2dx_video_VideoPlayer_onPlayEvent(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -688,7 +688,7 @@ int lua_cocos2dx_video_VideoPlayer_onPlayEvent(lua_State* tolua_S) int lua_cocos2dx_video_VideoPlayer_isFullScreenEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::VideoPlayer* cobj = nullptr; + axis::ui::VideoPlayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -700,7 +700,7 @@ int lua_cocos2dx_video_VideoPlayer_isFullScreenEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -735,7 +735,7 @@ int lua_cocos2dx_video_VideoPlayer_isFullScreenEnabled(lua_State* tolua_S) int lua_cocos2dx_video_VideoPlayer_isLooping(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::VideoPlayer* cobj = nullptr; + axis::ui::VideoPlayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -747,7 +747,7 @@ int lua_cocos2dx_video_VideoPlayer_isLooping(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -782,7 +782,7 @@ int lua_cocos2dx_video_VideoPlayer_isLooping(lua_State* tolua_S) int lua_cocos2dx_video_VideoPlayer_isPlaying(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::VideoPlayer* cobj = nullptr; + axis::ui::VideoPlayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -794,7 +794,7 @@ int lua_cocos2dx_video_VideoPlayer_isPlaying(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -829,7 +829,7 @@ int lua_cocos2dx_video_VideoPlayer_isPlaying(lua_State* tolua_S) int lua_cocos2dx_video_VideoPlayer_setLooping(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::VideoPlayer* cobj = nullptr; + axis::ui::VideoPlayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -841,7 +841,7 @@ int lua_cocos2dx_video_VideoPlayer_setLooping(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -879,7 +879,7 @@ int lua_cocos2dx_video_VideoPlayer_setLooping(lua_State* tolua_S) int lua_cocos2dx_video_VideoPlayer_setUserInputEnabled(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::VideoPlayer* cobj = nullptr; + axis::ui::VideoPlayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -891,7 +891,7 @@ int lua_cocos2dx_video_VideoPlayer_setUserInputEnabled(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.VideoPlayer",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::VideoPlayer*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -948,8 +948,8 @@ int lua_cocos2dx_video_VideoPlayer_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_video_VideoPlayer_create'", nullptr); return 0; } - cocos2d::ui::VideoPlayer* ret = cocos2d::ui::VideoPlayer::create(); - object_to_luaval(tolua_S, "ccui.VideoPlayer",(cocos2d::ui::VideoPlayer*)ret); + axis::ui::VideoPlayer* ret = axis::ui::VideoPlayer::create(); + object_to_luaval(tolua_S, "ccui.VideoPlayer",(axis::ui::VideoPlayer*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.VideoPlayer:create",argc, 0); @@ -963,7 +963,7 @@ int lua_cocos2dx_video_VideoPlayer_create(lua_State* tolua_S) int lua_cocos2dx_video_VideoPlayer_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::VideoPlayer* cobj = nullptr; + axis::ui::VideoPlayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -980,7 +980,7 @@ int lua_cocos2dx_video_VideoPlayer_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_video_VideoPlayer_constructor'", nullptr); return 0; } - cobj = new cocos2d::ui::VideoPlayer(); + cobj = new axis::ui::VideoPlayer(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -1031,7 +1031,7 @@ int lua_register_cocos2dx_video_VideoPlayer(lua_State* tolua_S) tolua_function(tolua_S,"setUserInputEnabled",lua_cocos2dx_video_VideoPlayer_setUserInputEnabled); tolua_function(tolua_S,"create", lua_cocos2dx_video_VideoPlayer_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ui::VideoPlayer).name(); // rtti is literal storage + auto typeName = typeid(axis::ui::VideoPlayer).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccui.VideoPlayer"; g_typeCast[typeName] = "ccui.VideoPlayer"; return 1; diff --git a/extensions/scripting/lua-bindings/auto/lua_cocos2dx_webview_auto.cpp b/extensions/scripting/lua-bindings/auto/lua_cocos2dx_webview_auto.cpp index 378f246d86..fdea59e821 100644 --- a/extensions/scripting/lua-bindings/auto/lua_cocos2dx_webview_auto.cpp +++ b/extensions/scripting/lua-bindings/auto/lua_cocos2dx_webview_auto.cpp @@ -6,7 +6,7 @@ int lua_cocos2dx_webview_WebView_setOpacityWebView(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::WebView* cobj = nullptr; + axis::ui::WebView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -18,7 +18,7 @@ int lua_cocos2dx_webview_WebView_setOpacityWebView(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.WebView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::WebView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::WebView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -56,7 +56,7 @@ int lua_cocos2dx_webview_WebView_setOpacityWebView(lua_State* tolua_S) int lua_cocos2dx_webview_WebView_canGoBack(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::WebView* cobj = nullptr; + axis::ui::WebView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -68,7 +68,7 @@ int lua_cocos2dx_webview_WebView_canGoBack(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.WebView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::WebView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::WebView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -103,7 +103,7 @@ int lua_cocos2dx_webview_WebView_canGoBack(lua_State* tolua_S) int lua_cocos2dx_webview_WebView_loadHTMLString(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::WebView* cobj = nullptr; + axis::ui::WebView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -115,7 +115,7 @@ int lua_cocos2dx_webview_WebView_loadHTMLString(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.WebView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::WebView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::WebView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -170,7 +170,7 @@ int lua_cocos2dx_webview_WebView_loadHTMLString(lua_State* tolua_S) int lua_cocos2dx_webview_WebView_goForward(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::WebView* cobj = nullptr; + axis::ui::WebView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -182,7 +182,7 @@ int lua_cocos2dx_webview_WebView_goForward(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.WebView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::WebView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::WebView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -217,7 +217,7 @@ int lua_cocos2dx_webview_WebView_goForward(lua_State* tolua_S) int lua_cocos2dx_webview_WebView_goBack(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::WebView* cobj = nullptr; + axis::ui::WebView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -229,7 +229,7 @@ int lua_cocos2dx_webview_WebView_goBack(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.WebView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::WebView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::WebView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -264,7 +264,7 @@ int lua_cocos2dx_webview_WebView_goBack(lua_State* tolua_S) int lua_cocos2dx_webview_WebView_setScalesPageToFit(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::WebView* cobj = nullptr; + axis::ui::WebView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -276,7 +276,7 @@ int lua_cocos2dx_webview_WebView_setScalesPageToFit(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.WebView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::WebView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::WebView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -314,7 +314,7 @@ int lua_cocos2dx_webview_WebView_setScalesPageToFit(lua_State* tolua_S) int lua_cocos2dx_webview_WebView_loadFile(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::WebView* cobj = nullptr; + axis::ui::WebView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -326,7 +326,7 @@ int lua_cocos2dx_webview_WebView_loadFile(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.WebView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::WebView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::WebView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -364,7 +364,7 @@ int lua_cocos2dx_webview_WebView_loadFile(lua_State* tolua_S) int lua_cocos2dx_webview_WebView_loadURL(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::WebView* cobj = nullptr; + axis::ui::WebView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -373,7 +373,7 @@ int lua_cocos2dx_webview_WebView_loadURL(lua_State* tolua_S) #if COCOS2D_DEBUG >= 1 if (!tolua_isusertype(tolua_S,1,"ccui.WebView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::WebView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::WebView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -423,7 +423,7 @@ int lua_cocos2dx_webview_WebView_loadURL(lua_State* tolua_S) int lua_cocos2dx_webview_WebView_setBounces(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::WebView* cobj = nullptr; + axis::ui::WebView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -435,7 +435,7 @@ int lua_cocos2dx_webview_WebView_setBounces(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.WebView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::WebView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::WebView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -473,7 +473,7 @@ int lua_cocos2dx_webview_WebView_setBounces(lua_State* tolua_S) int lua_cocos2dx_webview_WebView_evaluateJS(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::WebView* cobj = nullptr; + axis::ui::WebView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -485,7 +485,7 @@ int lua_cocos2dx_webview_WebView_evaluateJS(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.WebView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::WebView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::WebView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -523,7 +523,7 @@ int lua_cocos2dx_webview_WebView_evaluateJS(lua_State* tolua_S) int lua_cocos2dx_webview_WebView_setBackgroundTransparent(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::WebView* cobj = nullptr; + axis::ui::WebView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -535,7 +535,7 @@ int lua_cocos2dx_webview_WebView_setBackgroundTransparent(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.WebView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::WebView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::WebView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -570,7 +570,7 @@ int lua_cocos2dx_webview_WebView_setBackgroundTransparent(lua_State* tolua_S) int lua_cocos2dx_webview_WebView_getOnJSCallback(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::WebView* cobj = nullptr; + axis::ui::WebView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -582,7 +582,7 @@ int lua_cocos2dx_webview_WebView_getOnJSCallback(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.WebView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::WebView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::WebView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -600,7 +600,7 @@ int lua_cocos2dx_webview_WebView_getOnJSCallback(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_webview_WebView_getOnJSCallback'", nullptr); return 0; } - cocos2d::ui::WebView::ccWebViewCallback ret = cobj->getOnJSCallback(); + axis::ui::WebView::ccWebViewCallback ret = cobj->getOnJSCallback(); #pragma warning NO CONVERSION FROM NATIVE FOR std::function; return 1; } @@ -617,7 +617,7 @@ int lua_cocos2dx_webview_WebView_getOnJSCallback(lua_State* tolua_S) int lua_cocos2dx_webview_WebView_canGoForward(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::WebView* cobj = nullptr; + axis::ui::WebView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -629,7 +629,7 @@ int lua_cocos2dx_webview_WebView_canGoForward(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.WebView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::WebView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::WebView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -664,7 +664,7 @@ int lua_cocos2dx_webview_WebView_canGoForward(lua_State* tolua_S) int lua_cocos2dx_webview_WebView_stopLoading(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::WebView* cobj = nullptr; + axis::ui::WebView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -676,7 +676,7 @@ int lua_cocos2dx_webview_WebView_stopLoading(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.WebView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::WebView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::WebView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -711,7 +711,7 @@ int lua_cocos2dx_webview_WebView_stopLoading(lua_State* tolua_S) int lua_cocos2dx_webview_WebView_getOpacityWebView(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::WebView* cobj = nullptr; + axis::ui::WebView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -723,7 +723,7 @@ int lua_cocos2dx_webview_WebView_getOpacityWebView(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.WebView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::WebView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::WebView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -758,7 +758,7 @@ int lua_cocos2dx_webview_WebView_getOpacityWebView(lua_State* tolua_S) int lua_cocos2dx_webview_WebView_reload(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::WebView* cobj = nullptr; + axis::ui::WebView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -770,7 +770,7 @@ int lua_cocos2dx_webview_WebView_reload(lua_State* tolua_S) if (!tolua_isusertype(tolua_S,1,"ccui.WebView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::WebView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::WebView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -805,7 +805,7 @@ int lua_cocos2dx_webview_WebView_reload(lua_State* tolua_S) int lua_cocos2dx_webview_WebView_setJavascriptInterfaceScheme(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::WebView* cobj = nullptr; + axis::ui::WebView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -817,7 +817,7 @@ int lua_cocos2dx_webview_WebView_setJavascriptInterfaceScheme(lua_State* tolua_S if (!tolua_isusertype(tolua_S,1,"ccui.WebView",0,&tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::ui::WebView*)tolua_tousertype(tolua_S,1,0); + cobj = (axis::ui::WebView*)tolua_tousertype(tolua_S,1,0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -874,8 +874,8 @@ int lua_cocos2dx_webview_WebView_create(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_webview_WebView_create'", nullptr); return 0; } - cocos2d::ui::WebView* ret = cocos2d::ui::WebView::create(); - object_to_luaval(tolua_S, "ccui.WebView",(cocos2d::ui::WebView*)ret); + axis::ui::WebView* ret = axis::ui::WebView::create(); + object_to_luaval(tolua_S, "ccui.WebView",(axis::ui::WebView*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ccui.WebView:create",argc, 0); @@ -889,7 +889,7 @@ int lua_cocos2dx_webview_WebView_create(lua_State* tolua_S) int lua_cocos2dx_webview_WebView_constructor(lua_State* tolua_S) { int argc = 0; - cocos2d::ui::WebView* cobj = nullptr; + axis::ui::WebView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -906,7 +906,7 @@ int lua_cocos2dx_webview_WebView_constructor(lua_State* tolua_S) tolua_error(tolua_S,"invalid arguments in function 'lua_cocos2dx_webview_WebView_constructor'", nullptr); return 0; } - cobj = new cocos2d::ui::WebView(); + cobj = new axis::ui::WebView(); cobj->autorelease(); int ID = (int)cobj->_ID ; int* luaID = &cobj->_luaID ; @@ -955,7 +955,7 @@ int lua_register_cocos2dx_webview_WebView(lua_State* tolua_S) tolua_function(tolua_S,"setJavascriptInterfaceScheme",lua_cocos2dx_webview_WebView_setJavascriptInterfaceScheme); tolua_function(tolua_S,"create", lua_cocos2dx_webview_WebView_create); tolua_endmodule(tolua_S); - auto typeName = typeid(cocos2d::ui::WebView).name(); // rtti is literal storage + auto typeName = typeid(axis::ui::WebView).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ccui.WebView"; g_typeCast[typeName] = "ccui.WebView"; return 1; diff --git a/extensions/scripting/lua-bindings/manual/3d/lua_cocos2dx_3d_manual.cpp b/extensions/scripting/lua-bindings/manual/3d/lua_cocos2dx_3d_manual.cpp index 9fc957dd36..122b9ede59 100644 --- a/extensions/scripting/lua-bindings/manual/3d/lua_cocos2dx_3d_manual.cpp +++ b/extensions/scripting/lua-bindings/manual/3d/lua_cocos2dx_3d_manual.cpp @@ -33,7 +33,7 @@ int lua_cocos2dx_3d_MeshRenderer_getAABB(lua_State* L) { int argc = 0; - cocos2d::MeshRenderer* cobj = nullptr; + axis::MeshRenderer* cobj = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -44,7 +44,7 @@ int lua_cocos2dx_3d_MeshRenderer_getAABB(lua_State* L) goto tolua_lerror; #endif - cobj = (cocos2d::MeshRenderer*)tolua_tousertype(L, 1, 0); + cobj = (axis::MeshRenderer*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -57,8 +57,8 @@ int lua_cocos2dx_3d_MeshRenderer_getAABB(lua_State* L) argc = lua_gettop(L) - 1; if (argc == 0) { - cocos2d::AABB* ret = const_cast(&(cobj->getAABB())); - object_to_luaval(L, "cc.AABB", (cocos2d::AABB*)ret); + axis::AABB* ret = const_cast(&(cobj->getAABB())); + object_to_luaval(L, "cc.AABB", (axis::AABB*)ret); return 1; } luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.MeshRenderer:getAABB", argc, 0); @@ -107,9 +107,9 @@ int lua_cocos2dx_3d_MeshRenderer_createAsync(lua_State* L) #endif LUA_FUNCTION handler = toluafix_ref_function(L, 4, 0); - cocos2d::MeshRenderer::createAsync( + axis::MeshRenderer::createAsync( modelPath, texturePath, - [=](cocos2d::MeshRenderer* mesh, void* callbackparam) { + [=](axis::MeshRenderer* mesh, void* callbackparam) { auto stack = LuaEngine::getInstance()->getLuaStack(); int id = (mesh) ? (int)mesh->_ID : -1; int* luaID = (mesh) ? &mesh->_luaID : nullptr; @@ -140,9 +140,9 @@ int lua_cocos2dx_3d_MeshRenderer_createAsync(lua_State* L) #endif LUA_FUNCTION handler = toluafix_ref_function(L, 3, 0); - cocos2d::MeshRenderer::createAsync( + axis::MeshRenderer::createAsync( modelPath, - [=](cocos2d::MeshRenderer* mesh, void* callbackparam) { + [=](axis::MeshRenderer* mesh, void* callbackparam) { auto stack = LuaEngine::getInstance()->getLuaStack(); int id = (mesh) ? (int)mesh->_ID : -1; int* luaID = (mesh) ? &mesh->_luaID : nullptr; @@ -177,7 +177,7 @@ static void extendMeshRenderer(lua_State* L) lua_pop(L, 1); } -bool luaval_to_terraindata(lua_State* L, int lo, cocos2d::Terrain::TerrainData* outValue, const char* funcName = "") +bool luaval_to_terraindata(lua_State* L, int lo, axis::Terrain::TerrainData* outValue, const char* funcName = "") { if (nullptr == L || nullptr == outValue) return false; @@ -202,7 +202,7 @@ bool luaval_to_terraindata(lua_State* L, int lo, cocos2d::Terrain::TerrainData* } else { - outValue->_chunkSize = cocos2d::Size(32, 32); + outValue->_chunkSize = axis::Size(32, 32); } lua_pop(L, 1); @@ -266,7 +266,7 @@ bool luaval_to_terraindata(lua_State* L, int lo, cocos2d::Terrain::TerrainData* return ok; } -void terraindata_to_luaval(lua_State* L, const cocos2d::Terrain::TerrainData& inValue) +void terraindata_to_luaval(lua_State* L, const axis::Terrain::TerrainData& inValue) { if (nullptr == L) return; @@ -345,21 +345,21 @@ int lua_cocos2dx_3d_Terrain_create(lua_State* L) if (argc == 1) { - cocos2d::Terrain::TerrainData arg0; + axis::Terrain::TerrainData arg0; ok &= luaval_to_terraindata(L, 2, &arg0); if (!ok) { tolua_error(L, "invalid arguments in function 'lua_cocos2dx_3d_Terrain_create'", nullptr); return 0; } - cocos2d::Terrain* ret = cocos2d::Terrain::create(arg0); - object_to_luaval(L, "cc.Terrain", (cocos2d::Terrain*)ret); + axis::Terrain* ret = axis::Terrain::create(arg0); + object_to_luaval(L, "cc.Terrain", (axis::Terrain*)ret); return 1; } if (argc == 2) { - cocos2d::Terrain::TerrainData arg0; - cocos2d::Terrain::CrackFixedType arg1; + axis::Terrain::TerrainData arg0; + axis::Terrain::CrackFixedType arg1; ok &= luaval_to_terraindata(L, 2, &arg0); ok &= luaval_to_int32(L, 3, (int*)&arg1, "cc.Terrain:create"); @@ -368,8 +368,8 @@ int lua_cocos2dx_3d_Terrain_create(lua_State* L) tolua_error(L, "invalid arguments in function 'lua_cocos2dx_3d_Terrain_create'", nullptr); return 0; } - cocos2d::Terrain* ret = cocos2d::Terrain::create(arg0, arg1); - object_to_luaval(L, "cc.Terrain", (cocos2d::Terrain*)ret); + axis::Terrain* ret = axis::Terrain::create(arg0, arg1); + object_to_luaval(L, "cc.Terrain", (axis::Terrain*)ret); return 1; } luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Terrain:create", argc, 1); @@ -384,7 +384,7 @@ tolua_lerror: int lua_cocos2dx_3d_Terrain_getHeight(lua_State* L) { int argc = 0; - cocos2d::Terrain* cobj = nullptr; + axis::Terrain* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -394,7 +394,7 @@ int lua_cocos2dx_3d_Terrain_getHeight(lua_State* L) if (!tolua_isusertype(L, 1, "cc.Terrain", 0, &tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Terrain*)tolua_tousertype(L, 1, 0); + cobj = (axis::Terrain*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -407,7 +407,7 @@ int lua_cocos2dx_3d_Terrain_getHeight(lua_State* L) { if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(L, 2, &arg0, "cc.Terrain:getHeight"); if (!ok) @@ -424,15 +424,15 @@ int lua_cocos2dx_3d_Terrain_getHeight(lua_State* L) { if (argc == 2) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(L, 2, &arg0, "cc.Terrain:getHeight"); if (!ok) { break; } - cocos2d::Vec3* arg1; - ok &= luaval_to_object(L, 3, "cc.Vec3", &arg1, "cc.Terrain:getHeight"); + axis::Vec3* arg1; + ok &= luaval_to_object(L, 3, "cc.Vec3", &arg1, "cc.Terrain:getHeight"); if (!ok) { @@ -487,7 +487,7 @@ int lua_cocos2dx_3d_Terrain_getHeight(lua_State* L) { break; } - cocos2d::Vec3 arg2; + axis::Vec3 arg2; ok &= luaval_to_vec3(L, 4, &arg2); if (!ok) @@ -515,7 +515,7 @@ tolua_lerror: int lua_cocos2dx_3d_Terrain_getIntersectionPoint(lua_State* tolua_S) { int argc = 0; - cocos2d::Terrain* cobj = nullptr; + axis::Terrain* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -525,7 +525,7 @@ int lua_cocos2dx_3d_Terrain_getIntersectionPoint(lua_State* tolua_S) if (!tolua_isusertype(tolua_S, 1, "cc.Terrain", 0, &tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Terrain*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::Terrain*)tolua_tousertype(tolua_S, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -538,14 +538,14 @@ int lua_cocos2dx_3d_Terrain_getIntersectionPoint(lua_State* tolua_S) { if (argc == 2) { - cocos2d::Ray* arg0 = nullptr; - ok &= luaval_to_object(tolua_S, 2, "cc.Ray", &arg0, "cc.Terrain:getIntersectionPoint"); + axis::Ray* arg0 = nullptr; + ok &= luaval_to_object(tolua_S, 2, "cc.Ray", &arg0, "cc.Terrain:getIntersectionPoint"); if (!ok) { break; } - cocos2d::Vec3 arg1; + axis::Vec3 arg1; ok &= luaval_to_vec3(tolua_S, 3, &arg1, "cc.Terrain:getIntersectionPoint"); if (!ok) @@ -563,14 +563,14 @@ int lua_cocos2dx_3d_Terrain_getIntersectionPoint(lua_State* tolua_S) { if (argc == 1) { - cocos2d::Ray* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Ray", &arg0, "cc.Terrain:getIntersectionPoint"); + axis::Ray* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.Ray", &arg0, "cc.Terrain:getIntersectionPoint"); if (!ok) { break; } - cocos2d::Vec3 ret = cobj->getIntersectionPoint(*arg0); + axis::Vec3 ret = cobj->getIntersectionPoint(*arg0); vec3_to_luaval(tolua_S, ret); return 1; } @@ -627,7 +627,7 @@ int lua_cocos2dx_3d_Bundle3D_getTrianglesList(lua_State* L) return 0; } - std::vector ret = cocos2d::Bundle3D::getTrianglesList(arg0); + std::vector ret = axis::Bundle3D::getTrianglesList(arg0); std_vector_vec3_to_luaval(L, ret); return 1; } @@ -665,7 +665,7 @@ static int register_all_cocos2dx_3d_manual(lua_State* L) int lua_cocos2dx_3d_AABB_reset(lua_State* L) { int argc = 0; - cocos2d::AABB* cobj = nullptr; + axis::AABB* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -677,7 +677,7 @@ int lua_cocos2dx_3d_AABB_reset(lua_State* L) goto tolua_lerror; #endif - cobj = (cocos2d::AABB*)tolua_tousertype(L, 1, 0); + cobj = (axis::AABB*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -709,7 +709,7 @@ tolua_lerror: int lua_cocos2dx_3d_AABB_set(lua_State* L) { int argc = 0; - cocos2d::AABB* cobj = nullptr; + axis::AABB* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -721,7 +721,7 @@ int lua_cocos2dx_3d_AABB_set(lua_State* L) goto tolua_lerror; #endif - cobj = (cocos2d::AABB*)tolua_tousertype(L, 1, 0); + cobj = (axis::AABB*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -734,8 +734,8 @@ int lua_cocos2dx_3d_AABB_set(lua_State* L) argc = lua_gettop(L) - 1; if (argc == 2) { - cocos2d::Vec3 arg0; - cocos2d::Vec3 arg1; + axis::Vec3 arg0; + axis::Vec3 arg1; ok &= luaval_to_vec3(L, 2, &arg0, "cc.AABB:set"); @@ -758,7 +758,7 @@ tolua_lerror: int lua_cocos2dx_3d_AABB_transform(lua_State* L) { int argc = 0; - cocos2d::AABB* cobj = nullptr; + axis::AABB* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -770,7 +770,7 @@ int lua_cocos2dx_3d_AABB_transform(lua_State* L) goto tolua_lerror; #endif - cobj = (cocos2d::AABB*)tolua_tousertype(L, 1, 0); + cobj = (axis::AABB*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -783,7 +783,7 @@ int lua_cocos2dx_3d_AABB_transform(lua_State* L) argc = lua_gettop(L) - 1; if (argc == 1) { - cocos2d::Mat4 arg0; + axis::Mat4 arg0; ok &= luaval_to_mat4(L, 2, &arg0, "cc.AABB:transform"); if (!ok) @@ -804,7 +804,7 @@ tolua_lerror: int lua_cocos2dx_3d_AABB_getCenter(lua_State* L) { int argc = 0; - cocos2d::AABB* cobj = nullptr; + axis::AABB* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -816,7 +816,7 @@ int lua_cocos2dx_3d_AABB_getCenter(lua_State* L) goto tolua_lerror; #endif - cobj = (cocos2d::AABB*)tolua_tousertype(L, 1, 0); + cobj = (axis::AABB*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -831,7 +831,7 @@ int lua_cocos2dx_3d_AABB_getCenter(lua_State* L) { if (!ok) return 0; - cocos2d::Vec3 ret = cobj->getCenter(); + axis::Vec3 ret = cobj->getCenter(); vec3_to_luaval(L, ret); return 1; } @@ -848,7 +848,7 @@ tolua_lerror: int lua_cocos2dx_3d_AABB_isEmpty(lua_State* L) { int argc = 0; - cocos2d::AABB* cobj = nullptr; + axis::AABB* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -860,7 +860,7 @@ int lua_cocos2dx_3d_AABB_isEmpty(lua_State* L) goto tolua_lerror; #endif - cobj = (cocos2d::AABB*)tolua_tousertype(L, 1, 0); + cobj = (axis::AABB*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -892,7 +892,7 @@ tolua_lerror: int lua_cocos2dx_3d_AABB_getCorners(lua_State* L) { int argc = 0; - cocos2d::AABB* cobj = nullptr; + axis::AABB* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -904,7 +904,7 @@ int lua_cocos2dx_3d_AABB_getCorners(lua_State* L) goto tolua_lerror; #endif - cobj = (cocos2d::AABB*)tolua_tousertype(L, 1, 0); + cobj = (axis::AABB*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -917,9 +917,9 @@ int lua_cocos2dx_3d_AABB_getCorners(lua_State* L) argc = lua_gettop(L) - 1; if (argc == 1) { - cocos2d::Vec3* arg0; + axis::Vec3* arg0; - ok &= luaval_to_object(L, 2, "cc.Vec3", &arg0, "cc.AABB:getCorners"); + ok &= luaval_to_object(L, 2, "cc.Vec3", &arg0, "cc.AABB:getCorners"); if (!ok) return 0; cobj->getCorners(arg0); @@ -938,7 +938,7 @@ tolua_lerror: int lua_cocos2dx_3d_AABB_updateMinMax(lua_State* L) { int argc = 0; - cocos2d::AABB* cobj = nullptr; + axis::AABB* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -950,7 +950,7 @@ int lua_cocos2dx_3d_AABB_updateMinMax(lua_State* L) goto tolua_lerror; #endif - cobj = (cocos2d::AABB*)tolua_tousertype(L, 1, 0); + cobj = (axis::AABB*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -963,10 +963,10 @@ int lua_cocos2dx_3d_AABB_updateMinMax(lua_State* L) argc = lua_gettop(L) - 1; if (argc == 2) { - const cocos2d::Vec3* arg0; + const axis::Vec3* arg0; ssize_t arg1; - ok &= luaval_to_object(L, 2, "cc.Vec3", &arg0, "cc.AABB:updateMinMax"); + ok &= luaval_to_object(L, 2, "cc.Vec3", &arg0, "cc.AABB:updateMinMax"); ok &= luaval_to_ssize_t(L, 3, &arg1, "cc.AABB:updateMinMax"); if (!ok) @@ -987,7 +987,7 @@ tolua_lerror: int lua_cocos2dx_3d_AABB_containPoint(lua_State* L) { int argc = 0; - cocos2d::AABB* cobj = nullptr; + axis::AABB* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -999,7 +999,7 @@ int lua_cocos2dx_3d_AABB_containPoint(lua_State* L) goto tolua_lerror; #endif - cobj = (cocos2d::AABB*)tolua_tousertype(L, 1, 0); + cobj = (axis::AABB*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1012,7 +1012,7 @@ int lua_cocos2dx_3d_AABB_containPoint(lua_State* L) argc = lua_gettop(L) - 1; if (argc == 1) { - cocos2d::Vec3 arg0; + axis::Vec3 arg0; ok &= luaval_to_vec3(L, 2, &arg0, "cc.AABB:containPoint"); if (!ok) @@ -1034,7 +1034,7 @@ tolua_lerror: int lua_cocos2dx_3d_AABB_constructor(lua_State* L) { int argc = 0; - cocos2d::AABB* cobj = nullptr; + axis::AABB* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -1045,21 +1045,21 @@ int lua_cocos2dx_3d_AABB_constructor(lua_State* L) { if (argc == 2) { - cocos2d::Vec3 arg0; + axis::Vec3 arg0; ok &= luaval_to_vec3(L, 2, &arg0, "cc.AABB:AABB"); if (!ok) { break; } - cocos2d::Vec3 arg1; + axis::Vec3 arg1; ok &= luaval_to_vec3(L, 3, &arg1, "cc.AABB:AABB"); if (!ok) { break; } - cobj = new cocos2d::AABB(arg0, arg1); + cobj = new axis::AABB(arg0, arg1); tolua_pushusertype(L, (void*)cobj, "cc.AABB"); tolua_register_gc(L, lua_gettop(L)); return 1; @@ -1070,7 +1070,7 @@ int lua_cocos2dx_3d_AABB_constructor(lua_State* L) { if (argc == 0) { - cobj = new cocos2d::AABB(); + cobj = new axis::AABB(); tolua_pushusertype(L, (void*)cobj, "cc.AABB"); tolua_register_gc(L, lua_gettop(L)); return 1; @@ -1089,7 +1089,7 @@ int lua_cocos2dx_3d_AABB_constructor(lua_State* L) int lua_cocos2dx_3d_get_AABB_min(lua_State* L) { - cocos2d::AABB* self = nullptr; + axis::AABB* self = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -1097,7 +1097,7 @@ int lua_cocos2dx_3d_get_AABB_min(lua_State* L) goto tolua_lerror; #endif - self = (cocos2d::AABB*)tolua_tousertype(L, 1, 0); + self = (axis::AABB*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (nullptr == self) { @@ -1118,7 +1118,7 @@ tolua_lerror: int lua_cocos2dx_3d_set_AABB_min(lua_State* L) { int argc = 0; - cocos2d::AABB* self = nullptr; + axis::AABB* self = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -1126,7 +1126,7 @@ int lua_cocos2dx_3d_set_AABB_min(lua_State* L) goto tolua_lerror; #endif - self = (cocos2d::AABB*)tolua_tousertype(L, 1, 0); + self = (axis::AABB*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (nullptr == self) { @@ -1158,7 +1158,7 @@ tolua_lerror: int lua_cocos2dx_3d_get_AABB_max(lua_State* L) { - cocos2d::AABB* self = nullptr; + axis::AABB* self = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -1166,7 +1166,7 @@ int lua_cocos2dx_3d_get_AABB_max(lua_State* L) goto tolua_lerror; #endif - self = (cocos2d::AABB*)tolua_tousertype(L, 1, 0); + self = (axis::AABB*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (nullptr == self) { @@ -1187,7 +1187,7 @@ tolua_lerror: int lua_cocos2dx_3d_set_AABB_max(lua_State* L) { int argc = 0; - cocos2d::AABB* self = nullptr; + axis::AABB* self = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -1195,7 +1195,7 @@ int lua_cocos2dx_3d_set_AABB_max(lua_State* L) goto tolua_lerror; #endif - self = (cocos2d::AABB*)tolua_tousertype(L, 1, 0); + self = (axis::AABB*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (nullptr == self) { @@ -1227,7 +1227,7 @@ tolua_lerror: int lua_cocos2dx_3d_AABB_finalize(lua_State* L) { - cocos2d::AABB* self = (cocos2d::AABB*)tolua_tousertype(L, 1, 0); + axis::AABB* self = (axis::AABB*)tolua_tousertype(L, 1, 0); CC_SAFE_DELETE(self); return 0; } @@ -1250,7 +1250,7 @@ int lua_register_cocos2dx_3d_AABB(lua_State* L) tolua_function(L, "updateMinMax", lua_cocos2dx_3d_AABB_updateMinMax); tolua_function(L, "containPoint", lua_cocos2dx_3d_AABB_containPoint); tolua_endmodule(L); - auto typeName = typeid(cocos2d::AABB).name(); + auto typeName = typeid(axis::AABB).name(); g_luaType[reinterpret_cast(typeName)] = "cc.AABB"; g_typeCast[typeName] = "cc.AABB"; return 1; @@ -1259,7 +1259,7 @@ int lua_register_cocos2dx_3d_AABB(lua_State* L) int lua_cocos2dx_3d_OBB_reset(lua_State* L) { int argc = 0; - cocos2d::OBB* cobj = nullptr; + axis::OBB* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1271,7 +1271,7 @@ int lua_cocos2dx_3d_OBB_reset(lua_State* L) goto tolua_lerror; #endif - cobj = (cocos2d::OBB*)tolua_tousertype(L, 1, 0); + cobj = (axis::OBB*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1303,7 +1303,7 @@ tolua_lerror: int lua_cocos2dx_3d_OBB_set(lua_State* L) { int argc = 0; - cocos2d::OBB* cobj = nullptr; + axis::OBB* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1315,7 +1315,7 @@ int lua_cocos2dx_3d_OBB_set(lua_State* L) goto tolua_lerror; #endif - cobj = (cocos2d::OBB*)tolua_tousertype(L, 1, 0); + cobj = (axis::OBB*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1328,11 +1328,11 @@ int lua_cocos2dx_3d_OBB_set(lua_State* L) argc = lua_gettop(L) - 1; if (argc == 5) { - cocos2d::Vec3 arg0; - cocos2d::Vec3 arg1; - cocos2d::Vec3 arg2; - cocos2d::Vec3 arg3; - cocos2d::Vec3 arg4; + axis::Vec3 arg0; + axis::Vec3 arg1; + axis::Vec3 arg2; + axis::Vec3 arg3; + axis::Vec3 arg4; ok &= luaval_to_vec3(L, 2, &arg0, "cc.OBB:set"); @@ -1361,7 +1361,7 @@ tolua_lerror: int lua_cocos2dx_3d_OBB_transform(lua_State* L) { int argc = 0; - cocos2d::OBB* cobj = nullptr; + axis::OBB* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1373,7 +1373,7 @@ int lua_cocos2dx_3d_OBB_transform(lua_State* L) goto tolua_lerror; #endif - cobj = (cocos2d::OBB*)tolua_tousertype(L, 1, 0); + cobj = (axis::OBB*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1386,7 +1386,7 @@ int lua_cocos2dx_3d_OBB_transform(lua_State* L) argc = lua_gettop(L) - 1; if (argc == 1) { - cocos2d::Mat4 arg0; + axis::Mat4 arg0; ok &= luaval_to_mat4(L, 2, &arg0, "cc.OBB:transform"); if (!ok) @@ -1408,7 +1408,7 @@ tolua_lerror: int lua_cocos2dx_3d_OBB_containPoint(lua_State* L) { int argc = 0; - cocos2d::OBB* cobj = nullptr; + axis::OBB* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1420,7 +1420,7 @@ int lua_cocos2dx_3d_OBB_containPoint(lua_State* L) goto tolua_lerror; #endif - cobj = (cocos2d::OBB*)tolua_tousertype(L, 1, 0); + cobj = (axis::OBB*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1433,7 +1433,7 @@ int lua_cocos2dx_3d_OBB_containPoint(lua_State* L) argc = lua_gettop(L) - 1; if (argc == 1) { - cocos2d::Vec3 arg0; + axis::Vec3 arg0; ok &= luaval_to_vec3(L, 2, &arg0, "cc.OBB:containPoint"); if (!ok) @@ -1456,7 +1456,7 @@ tolua_lerror: int lua_cocos2dx_3d_OBB_constructor(lua_State* L) { int argc = 0; - cocos2d::OBB* cobj = nullptr; + axis::OBB* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -1467,14 +1467,14 @@ int lua_cocos2dx_3d_OBB_constructor(lua_State* L) { if (argc == 1) { - cocos2d::AABB* arg0; - ok &= luaval_to_object(L, 2, "cc.AABB", &arg0, "cc.OBB:OBB"); + axis::AABB* arg0; + ok &= luaval_to_object(L, 2, "cc.AABB", &arg0, "cc.OBB:OBB"); if (!ok) { break; } - cobj = new cocos2d::OBB(*arg0); + cobj = new axis::OBB(*arg0); tolua_pushusertype(L, (void*)cobj, "cc.OBB"); tolua_register_gc(L, lua_gettop(L)); return 1; @@ -1485,7 +1485,7 @@ int lua_cocos2dx_3d_OBB_constructor(lua_State* L) { if (argc == 0) { - cobj = new cocos2d::OBB(); + cobj = new axis::OBB(); tolua_pushusertype(L, (void*)cobj, "cc.OBB"); tolua_register_gc(L, lua_gettop(L)); return 1; @@ -1496,8 +1496,8 @@ int lua_cocos2dx_3d_OBB_constructor(lua_State* L) { if (argc == 2) { - const cocos2d::Vec3* arg0; - ok &= luaval_to_object(L, 2, "cc.Vec3", &arg0, "cc.OBB:OBB"); + const axis::Vec3* arg0; + ok &= luaval_to_object(L, 2, "cc.Vec3", &arg0, "cc.OBB:OBB"); if (!ok) { @@ -1510,7 +1510,7 @@ int lua_cocos2dx_3d_OBB_constructor(lua_State* L) { break; } - cobj = new cocos2d::OBB(arg0, arg1); + cobj = new axis::OBB(arg0, arg1); tolua_pushusertype(L, (void*)cobj, "cc.OBB"); tolua_register_gc(L, lua_gettop(L)); return 1; @@ -1530,7 +1530,7 @@ int lua_cocos2dx_3d_OBB_constructor(lua_State* L) int lua_cocos2dx_3d_OBB_intersects(lua_State* L) { int argc = 0; - cocos2d::OBB* self = nullptr; + axis::OBB* self = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -1538,7 +1538,7 @@ int lua_cocos2dx_3d_OBB_intersects(lua_State* L) goto tolua_lerror; #endif - self = (cocos2d::OBB*)tolua_tousertype(L, 1, 0); + self = (axis::OBB*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (nullptr == self) { @@ -1549,8 +1549,8 @@ int lua_cocos2dx_3d_OBB_intersects(lua_State* L) argc = lua_gettop(L) - 1; if (1 == argc) { - cocos2d::OBB* arg0; - ok &= luaval_to_object(L, 2, "cc.OBB", &arg0, "cc.OBB:intersects"); + axis::OBB* arg0; + ok &= luaval_to_object(L, 2, "cc.OBB", &arg0, "cc.OBB:intersects"); if (!ok) return 0; @@ -1570,7 +1570,7 @@ tolua_lerror: int lua_cocos2dx_3d_get_OBB_center(lua_State* L) { - cocos2d::OBB* self = nullptr; + axis::OBB* self = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -1578,7 +1578,7 @@ int lua_cocos2dx_3d_get_OBB_center(lua_State* L) goto tolua_lerror; #endif - self = (cocos2d::OBB*)tolua_tousertype(L, 1, 0); + self = (axis::OBB*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (nullptr == self) { @@ -1599,7 +1599,7 @@ tolua_lerror: int lua_cocos2dx_3d_set_OBB_center(lua_State* L) { int argc = 0; - cocos2d::OBB* self = nullptr; + axis::OBB* self = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -1607,7 +1607,7 @@ int lua_cocos2dx_3d_set_OBB_center(lua_State* L) goto tolua_lerror; #endif - self = (cocos2d::OBB*)tolua_tousertype(L, 1, 0); + self = (axis::OBB*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (nullptr == self) { @@ -1639,7 +1639,7 @@ tolua_lerror: int lua_cocos2dx_3d_get_OBB_xAxis(lua_State* L) { - cocos2d::OBB* self = nullptr; + axis::OBB* self = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -1647,7 +1647,7 @@ int lua_cocos2dx_3d_get_OBB_xAxis(lua_State* L) goto tolua_lerror; #endif - self = (cocos2d::OBB*)tolua_tousertype(L, 1, 0); + self = (axis::OBB*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (nullptr == self) { @@ -1668,7 +1668,7 @@ tolua_lerror: int lua_cocos2dx_3d_set_OBB_xAxis(lua_State* L) { int argc = 0; - cocos2d::OBB* self = nullptr; + axis::OBB* self = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -1676,7 +1676,7 @@ int lua_cocos2dx_3d_set_OBB_xAxis(lua_State* L) goto tolua_lerror; #endif - self = (cocos2d::OBB*)tolua_tousertype(L, 1, 0); + self = (axis::OBB*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (nullptr == self) { @@ -1708,7 +1708,7 @@ tolua_lerror: int lua_cocos2dx_3d_get_OBB_yAxis(lua_State* L) { - cocos2d::OBB* self = nullptr; + axis::OBB* self = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -1716,7 +1716,7 @@ int lua_cocos2dx_3d_get_OBB_yAxis(lua_State* L) goto tolua_lerror; #endif - self = (cocos2d::OBB*)tolua_tousertype(L, 1, 0); + self = (axis::OBB*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (nullptr == self) { @@ -1737,7 +1737,7 @@ tolua_lerror: int lua_cocos2dx_3d_set_OBB_yAxis(lua_State* L) { int argc = 0; - cocos2d::OBB* self = nullptr; + axis::OBB* self = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -1745,7 +1745,7 @@ int lua_cocos2dx_3d_set_OBB_yAxis(lua_State* L) goto tolua_lerror; #endif - self = (cocos2d::OBB*)tolua_tousertype(L, 1, 0); + self = (axis::OBB*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (nullptr == self) { @@ -1777,7 +1777,7 @@ tolua_lerror: int lua_cocos2dx_3d_get_OBB_zAxis(lua_State* L) { - cocos2d::OBB* self = nullptr; + axis::OBB* self = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -1785,7 +1785,7 @@ int lua_cocos2dx_3d_get_OBB_zAxis(lua_State* L) goto tolua_lerror; #endif - self = (cocos2d::OBB*)tolua_tousertype(L, 1, 0); + self = (axis::OBB*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (nullptr == self) { @@ -1806,7 +1806,7 @@ tolua_lerror: int lua_cocos2dx_3d_set_OBB_zAxis(lua_State* L) { int argc = 0; - cocos2d::OBB* self = nullptr; + axis::OBB* self = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -1814,7 +1814,7 @@ int lua_cocos2dx_3d_set_OBB_zAxis(lua_State* L) goto tolua_lerror; #endif - self = (cocos2d::OBB*)tolua_tousertype(L, 1, 0); + self = (axis::OBB*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (nullptr == self) { @@ -1846,7 +1846,7 @@ tolua_lerror: int lua_cocos2dx_3d_get_OBB_extents(lua_State* L) { - cocos2d::OBB* self = nullptr; + axis::OBB* self = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -1854,7 +1854,7 @@ int lua_cocos2dx_3d_get_OBB_extents(lua_State* L) goto tolua_lerror; #endif - self = (cocos2d::OBB*)tolua_tousertype(L, 1, 0); + self = (axis::OBB*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (nullptr == self) { @@ -1875,7 +1875,7 @@ tolua_lerror: int lua_cocos2dx_3d_set_OBB_extents(lua_State* L) { int argc = 0; - cocos2d::OBB* self = nullptr; + axis::OBB* self = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -1883,7 +1883,7 @@ int lua_cocos2dx_3d_set_OBB_extents(lua_State* L) goto tolua_lerror; #endif - self = (cocos2d::OBB*)tolua_tousertype(L, 1, 0); + self = (axis::OBB*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (nullptr == self) { @@ -1916,7 +1916,7 @@ tolua_lerror: int lua_cocos2dx_3d_OBB_getCorners(lua_State* L) { int argc = 0; - cocos2d::OBB* cobj = nullptr; + axis::OBB* cobj = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -1927,7 +1927,7 @@ int lua_cocos2dx_3d_OBB_getCorners(lua_State* L) goto tolua_lerror; #endif - cobj = (cocos2d::OBB*)tolua_tousertype(L, 1, 0); + cobj = (axis::OBB*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1940,7 +1940,7 @@ int lua_cocos2dx_3d_OBB_getCorners(lua_State* L) argc = lua_gettop(L) - 1; if (argc == 1) { - cocos2d::Vec3* arg0; + axis::Vec3* arg0; #if COCOS2D_DEBUG >= 1 if (!tolua_istable(L, 2, 0, &tolua_err)) goto tolua_lerror; @@ -1953,14 +1953,14 @@ int lua_cocos2dx_3d_OBB_getCorners(lua_State* L) return 0; } - arg0 = new cocos2d::Vec3[len]; + arg0 = new axis::Vec3[len]; for (int i = 1; i <= len; i++) { lua_pushnumber(L, i); lua_gettable(L, 2); if (lua_isnil(L, -1)) { - arg0[i - 1] = cocos2d::Vec3(0, 0, 0); + arg0[i - 1] = axis::Vec3(0, 0, 0); } else { @@ -1996,7 +1996,7 @@ tolua_lerror: int lua_cocos2dx_3d_OBB_finalize(lua_State* L) { - cocos2d::OBB* self = (cocos2d::OBB*)tolua_tousertype(L, 1, 0); + axis::OBB* self = (axis::OBB*)tolua_tousertype(L, 1, 0); CC_SAFE_DELETE(self); return 0; } @@ -2020,7 +2020,7 @@ int lua_register_cocos2dx_3d_OBB(lua_State* L) tolua_function(L, "intersects", lua_cocos2dx_3d_OBB_intersects); tolua_function(L, "getCorners", lua_cocos2dx_3d_OBB_getCorners); tolua_endmodule(L); - auto typeName = typeid(cocos2d::OBB).name(); + auto typeName = typeid(axis::OBB).name(); g_luaType[reinterpret_cast(typeName)] = "cc.OBB"; g_typeCast[typeName] = "cc.OBB"; return 1; @@ -2029,7 +2029,7 @@ int lua_register_cocos2dx_3d_OBB(lua_State* L) int lua_cocos2dx_3d_Ray_set(lua_State* L) { int argc = 0; - cocos2d::Ray* cobj = nullptr; + axis::Ray* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2041,7 +2041,7 @@ int lua_cocos2dx_3d_Ray_set(lua_State* L) goto tolua_lerror; #endif - cobj = (cocos2d::Ray*)tolua_tousertype(L, 1, 0); + cobj = (axis::Ray*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2054,8 +2054,8 @@ int lua_cocos2dx_3d_Ray_set(lua_State* L) argc = lua_gettop(L) - 1; if (argc == 2) { - cocos2d::Vec3 arg0; - cocos2d::Vec3 arg1; + axis::Vec3 arg0; + axis::Vec3 arg1; ok &= luaval_to_vec3(L, 2, &arg0, "cc.Ray:set"); @@ -2078,7 +2078,7 @@ tolua_lerror: int lua_cocos2dx_3d_Ray_transform(lua_State* L) { int argc = 0; - cocos2d::Ray* cobj = nullptr; + axis::Ray* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -2090,7 +2090,7 @@ int lua_cocos2dx_3d_Ray_transform(lua_State* L) goto tolua_lerror; #endif - cobj = (cocos2d::Ray*)tolua_tousertype(L, 1, 0); + cobj = (axis::Ray*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2103,7 +2103,7 @@ int lua_cocos2dx_3d_Ray_transform(lua_State* L) argc = lua_gettop(L) - 1; if (argc == 1) { - cocos2d::Mat4 arg0; + axis::Mat4 arg0; ok &= luaval_to_mat4(L, 2, &arg0, "cc.Ray:transform"); if (!ok) @@ -2125,7 +2125,7 @@ tolua_lerror: int lua_cocos2dx_3d_Ray_intersects(lua_State* L) { int argc = 0; - cocos2d::Ray* self = nullptr; + axis::Ray* self = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -2133,7 +2133,7 @@ int lua_cocos2dx_3d_Ray_intersects(lua_State* L) goto tolua_lerror; #endif - self = (cocos2d::Ray*)tolua_tousertype(L, 1, 0); + self = (axis::Ray*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (nullptr == self) { @@ -2144,8 +2144,8 @@ int lua_cocos2dx_3d_Ray_intersects(lua_State* L) argc = lua_gettop(L) - 1; if (1 == argc) { - cocos2d::OBB* arg0 = nullptr; - ok &= luaval_to_object(L, 2, "cc.OBB", &arg0, "cc.Ray:intersects"); + axis::OBB* arg0 = nullptr; + ok &= luaval_to_object(L, 2, "cc.OBB", &arg0, "cc.Ray:intersects"); if (!ok) return 0; @@ -2168,7 +2168,7 @@ tolua_lerror: int lua_cocos2dx_3d_Ray_constructor(lua_State* L) { int argc = 0; - cocos2d::Ray* cobj = nullptr; + axis::Ray* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -2179,21 +2179,21 @@ int lua_cocos2dx_3d_Ray_constructor(lua_State* L) { if (argc == 2) { - cocos2d::Vec3 arg0; + axis::Vec3 arg0; ok &= luaval_to_vec3(L, 2, &arg0, "cc.Ray:Ray"); if (!ok) { break; } - cocos2d::Vec3 arg1; + axis::Vec3 arg1; ok &= luaval_to_vec3(L, 3, &arg1, "cc.Ray:Ray"); if (!ok) { break; } - cobj = new cocos2d::Ray(arg0, arg1); + cobj = new axis::Ray(arg0, arg1); tolua_pushusertype(L, (void*)cobj, "cc.Ray"); tolua_register_gc(L, lua_gettop(L)); return 1; @@ -2204,7 +2204,7 @@ int lua_cocos2dx_3d_Ray_constructor(lua_State* L) { if (argc == 0) { - cobj = new cocos2d::Ray(); + cobj = new axis::Ray(); tolua_pushusertype(L, (void*)cobj, "cc.Ray"); tolua_register_gc(L, lua_gettop(L)); return 1; @@ -2223,7 +2223,7 @@ int lua_cocos2dx_3d_Ray_constructor(lua_State* L) int lua_cocos2dx_3d_get_Ray_origin(lua_State* L) { - cocos2d::Ray* self = nullptr; + axis::Ray* self = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -2231,7 +2231,7 @@ int lua_cocos2dx_3d_get_Ray_origin(lua_State* L) goto tolua_lerror; #endif - self = (cocos2d::Ray*)tolua_tousertype(L, 1, 0); + self = (axis::Ray*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (nullptr == self) { @@ -2252,7 +2252,7 @@ tolua_lerror: int lua_cocos2dx_3d_set_Ray_origin(lua_State* L) { int argc = 0; - cocos2d::Ray* self = nullptr; + axis::Ray* self = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -2260,7 +2260,7 @@ int lua_cocos2dx_3d_set_Ray_origin(lua_State* L) goto tolua_lerror; #endif - self = (cocos2d::Ray*)tolua_tousertype(L, 1, 0); + self = (axis::Ray*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (nullptr == self) { @@ -2292,7 +2292,7 @@ tolua_lerror: int lua_cocos2dx_3d_get_Ray_direction(lua_State* L) { - cocos2d::Ray* self = nullptr; + axis::Ray* self = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -2300,7 +2300,7 @@ int lua_cocos2dx_3d_get_Ray_direction(lua_State* L) goto tolua_lerror; #endif - self = (cocos2d::Ray*)tolua_tousertype(L, 1, 0); + self = (axis::Ray*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (nullptr == self) { @@ -2321,7 +2321,7 @@ tolua_lerror: int lua_cocos2dx_3d_set_Ray_direction(lua_State* L) { int argc = 0; - cocos2d::Ray* self = nullptr; + axis::Ray* self = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -2329,7 +2329,7 @@ int lua_cocos2dx_3d_set_Ray_direction(lua_State* L) goto tolua_lerror; #endif - self = (cocos2d::Ray*)tolua_tousertype(L, 1, 0); + self = (axis::Ray*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (nullptr == self) { @@ -2361,7 +2361,7 @@ tolua_lerror: int lua_cocos2dx_3d_Ray_finalize(lua_State* L) { - cocos2d::Ray* self = (cocos2d::Ray*)tolua_tousertype(L, 1, 0); + axis::Ray* self = (axis::Ray*)tolua_tousertype(L, 1, 0); CC_SAFE_DELETE(self); return 0; } @@ -2379,7 +2379,7 @@ int lua_register_cocos2dx_3d_Ray(lua_State* L) tolua_function(L, "transform", lua_cocos2dx_3d_Ray_transform); tolua_function(L, "intersects", lua_cocos2dx_3d_Ray_intersects); tolua_endmodule(L); - auto typeName = typeid(cocos2d::Ray).name(); + auto typeName = typeid(axis::Ray).name(); g_luaType[reinterpret_cast(typeName)] = "cc.Ray"; g_typeCast[typeName] = "cc.Ray"; return 1; diff --git a/extensions/scripting/lua-bindings/manual/CCComponentLua.cpp b/extensions/scripting/lua-bindings/manual/CCComponentLua.cpp index 3031d73a62..b4775bedbe 100644 --- a/extensions/scripting/lua-bindings/manual/CCComponentLua.cpp +++ b/extensions/scripting/lua-bindings/manual/CCComponentLua.cpp @@ -31,7 +31,7 @@ #include "scripting/lua-bindings/manual/LuaBasicConversions.h" #include "base/ccUTF8.h" -NS_CC_BEGIN +NS_AX_BEGIN const std::string ComponentLua::ON_ENTER = "onEnter"; const std::string ComponentLua::ON_EXIT = "onExit"; @@ -236,7 +236,7 @@ void ComponentLua::storeLuaTable() lua_pop(l, 1); // stack: table_return_from_lua // add table's elements to userdata's metatable - object_to_luaval(l, "cc.ComponentLua", this); // stack: table_return_from_lua userdata + object_to_luaval(l, "cc.ComponentLua", this); // stack: table_return_from_lua userdata lua_getmetatable(l, -1); // stack: table_return_from_lua userdata mt lua_remove(l, -2); // stack: table_return_from_lua mt lua_pushnil(l); // stack: table_return_from_lua mt nil @@ -268,7 +268,7 @@ void ComponentLua::removeLuaTable() void ComponentLua::getUserData() { lua_State* l = LuaEngine::getInstance()->getLuaStack()->getLuaState(); - object_to_luaval(l, "cc.ComponentLua", this); + object_to_luaval(l, "cc.ComponentLua", this); } -NS_CC_END +NS_AX_END diff --git a/extensions/scripting/lua-bindings/manual/CCComponentLua.h b/extensions/scripting/lua-bindings/manual/CCComponentLua.h index 7f6ee9375c..835fa8edb8 100644 --- a/extensions/scripting/lua-bindings/manual/CCComponentLua.h +++ b/extensions/scripting/lua-bindings/manual/CCComponentLua.h @@ -29,7 +29,7 @@ #include #include "2d/CCComponent.h" -NS_CC_BEGIN +NS_AX_BEGIN class ComponentLua : public Component { @@ -76,4 +76,4 @@ private: static const std::string UPDATE; }; -NS_CC_END +NS_AX_END diff --git a/extensions/scripting/lua-bindings/manual/CCLuaBridge.cpp b/extensions/scripting/lua-bindings/manual/CCLuaBridge.cpp index 1a951b7dc0..d201cee7a4 100644 --- a/extensions/scripting/lua-bindings/manual/CCLuaBridge.cpp +++ b/extensions/scripting/lua-bindings/manual/CCLuaBridge.cpp @@ -25,7 +25,7 @@ #include "scripting/lua-bindings/manual/CCLuaBridge.h" -NS_CC_BEGIN +NS_AX_BEGIN lua_State* LuaBridge::s_luaState = NULL; int LuaBridge::s_newFunctionId = 0; @@ -243,4 +243,4 @@ int LuaBridge::retainLuaFunction(lua_State* L, int functionIndex, int* retainCou return functionId; } -NS_CC_END +NS_AX_END diff --git a/extensions/scripting/lua-bindings/manual/CCLuaBridge.h b/extensions/scripting/lua-bindings/manual/CCLuaBridge.h index 06b62810fb..5536672d2f 100644 --- a/extensions/scripting/lua-bindings/manual/CCLuaBridge.h +++ b/extensions/scripting/lua-bindings/manual/CCLuaBridge.h @@ -40,7 +40,7 @@ using namespace std; * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN /** LuaBridge Error enum, with inline docs. */ typedef enum { @@ -111,7 +111,7 @@ protected: static int s_newFunctionId; }; -NS_CC_END +NS_AX_END // end group /// @} diff --git a/extensions/scripting/lua-bindings/manual/CCLuaEngine.cpp b/extensions/scripting/lua-bindings/manual/CCLuaEngine.cpp index 1dfdb1a498..c4f9407997 100644 --- a/extensions/scripting/lua-bindings/manual/CCLuaEngine.cpp +++ b/extensions/scripting/lua-bindings/manual/CCLuaEngine.cpp @@ -36,7 +36,7 @@ #include "base/CCDirector.h" #include "base/CCEventCustom.h" -NS_CC_BEGIN +NS_AX_BEGIN LuaEngine* LuaEngine::_defaultEngine = nullptr; @@ -454,7 +454,7 @@ int LuaEngine::handleTouchEvent(void* data) Touch* touch = touchScriptData->touch; if (NULL != touch) { - const cocos2d::Vec2 pt = Director::getInstance()->convertToGL(touch->getLocationInView()); + const axis::Vec2 pt = Director::getInstance()->convertToGL(touch->getLocationInView()); _stack->pushFloat(pt.x); _stack->pushFloat(pt.y); ret = _stack->executeFunctionByHandler(handler, 3); @@ -508,7 +508,7 @@ int LuaEngine::handleTouchesEvent(void* data) int i = 1; for (auto& touch : touchesScriptData->touches) { - cocos2d::Vec2 pt = pDirector->convertToGL(touch->getLocationInView()); + axis::Vec2 pt = pDirector->convertToGL(touch->getLocationInView()); lua_pushnumber(L, pt.x); lua_rawseti(L, -2, i++); lua_pushnumber(L, pt.y); @@ -1025,4 +1025,4 @@ int LuaEngine::reload(const char* moduleFileName) return _stack->reload(moduleFileName); } -NS_CC_END +NS_AX_END diff --git a/extensions/scripting/lua-bindings/manual/CCLuaEngine.h b/extensions/scripting/lua-bindings/manual/CCLuaEngine.h index f232096ef7..f12a80214b 100644 --- a/extensions/scripting/lua-bindings/manual/CCLuaEngine.h +++ b/extensions/scripting/lua-bindings/manual/CCLuaEngine.h @@ -42,7 +42,7 @@ extern "C" { * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN /** * The Lua engine integrated into the cocos2d-x to process the interactive operation between lua and c++. @@ -259,7 +259,7 @@ private: LuaStack* _stack; }; -NS_CC_END +NS_AX_END // end group /// @} diff --git a/extensions/scripting/lua-bindings/manual/CCLuaStack.cpp b/extensions/scripting/lua-bindings/manual/CCLuaStack.cpp index 5003e3f8a7..99c8bf4d87 100644 --- a/extensions/scripting/lua-bindings/manual/CCLuaStack.cpp +++ b/extensions/scripting/lua-bindings/manual/CCLuaStack.cpp @@ -106,7 +106,7 @@ int lua_version(lua_State* L) } } // namespace -NS_CC_BEGIN +NS_AX_BEGIN LuaStack::~LuaStack() { @@ -737,4 +737,4 @@ int LuaStack::luaLoadBuffer(lua_State* L, const char* chunk, int chunkSize, cons return r; } -NS_CC_END +NS_AX_END diff --git a/extensions/scripting/lua-bindings/manual/CCLuaStack.h b/extensions/scripting/lua-bindings/manual/CCLuaStack.h index a7692c6ee8..f0df2a2cbf 100644 --- a/extensions/scripting/lua-bindings/manual/CCLuaStack.h +++ b/extensions/scripting/lua-bindings/manual/CCLuaStack.h @@ -38,7 +38,7 @@ extern "C" { * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN /** * LuaStack is used to manager the operation on the lua_State,eg., push data onto the lua_State, execute the function @@ -328,7 +328,7 @@ protected: int _callFromLua; }; -NS_CC_END +NS_AX_END // end group /// @} diff --git a/extensions/scripting/lua-bindings/manual/CCLuaValue.cpp b/extensions/scripting/lua-bindings/manual/CCLuaValue.cpp index a229d40daf..0dac328e71 100644 --- a/extensions/scripting/lua-bindings/manual/CCLuaValue.cpp +++ b/extensions/scripting/lua-bindings/manual/CCLuaValue.cpp @@ -26,7 +26,7 @@ #include "scripting/lua-bindings/manual/CCLuaValue.h" -NS_CC_BEGIN +NS_AX_BEGIN const LuaValue LuaValue::intValue(const int intValue) { @@ -156,4 +156,4 @@ void LuaValue::copy(const LuaValue& rhs) } } -NS_CC_END +NS_AX_END diff --git a/extensions/scripting/lua-bindings/manual/CCLuaValue.h b/extensions/scripting/lua-bindings/manual/CCLuaValue.h index 1673c496bd..7aea56eadd 100644 --- a/extensions/scripting/lua-bindings/manual/CCLuaValue.h +++ b/extensions/scripting/lua-bindings/manual/CCLuaValue.h @@ -48,7 +48,7 @@ using std::memset; * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN typedef int LUA_FUNCTION; typedef int LUA_TABLE; @@ -277,7 +277,7 @@ inline std::string_view axislua_tosv(lua_State* L, int arg) return std::string_view{s, l}; } -NS_CC_END +NS_AX_END // end group /// @} diff --git a/extensions/scripting/lua-bindings/manual/Cocos2dxLuaLoader.cpp b/extensions/scripting/lua-bindings/manual/Cocos2dxLuaLoader.cpp index a10a24dc8c..7a8fde6220 100644 --- a/extensions/scripting/lua-bindings/manual/Cocos2dxLuaLoader.cpp +++ b/extensions/scripting/lua-bindings/manual/Cocos2dxLuaLoader.cpp @@ -33,7 +33,7 @@ THE SOFTWARE. #include "platform/CCFileUtils.h" #include "yasio/cxx17/string_view.hpp" -using namespace cocos2d; +USING_NS_AX; extern "C" { int cocos2dx_lua_loader(lua_State* L) diff --git a/extensions/scripting/lua-bindings/manual/LuaBasicConversions.cpp b/extensions/scripting/lua-bindings/manual/LuaBasicConversions.cpp index 9fca5775c7..818a4ac6c1 100644 --- a/extensions/scripting/lua-bindings/manual/LuaBasicConversions.cpp +++ b/extensions/scripting/lua-bindings/manual/LuaBasicConversions.cpp @@ -343,7 +343,7 @@ bool luaval_to_std_string_view(lua_State* L, int lo, cxx17::string_view* outValu return ok; } -bool luaval_to_vec2(lua_State* L, int lo, cocos2d::Vec2* outValue, const char* funcName) +bool luaval_to_vec2(lua_State* L, int lo, axis::Vec2* outValue, const char* funcName) { if (nullptr == L || nullptr == outValue) return false; @@ -392,7 +392,7 @@ bool luaval_to_vec2(lua_State* L, int lo, cocos2d::Vec2* outValue, const char* f return ok; } -bool luaval_to_vec3(lua_State* L, int lo, cocos2d::Vec3* outValue, const char* funcName) +bool luaval_to_vec3(lua_State* L, int lo, axis::Vec3* outValue, const char* funcName) { if (nullptr == L || nullptr == outValue) return false; @@ -428,7 +428,7 @@ bool luaval_to_vec3(lua_State* L, int lo, cocos2d::Vec3* outValue, const char* f return ok; } -bool luaval_to_vec4(lua_State* L, int lo, cocos2d::Vec4* outValue, const char* funcName) +bool luaval_to_vec4(lua_State* L, int lo, axis::Vec4* outValue, const char* funcName) { if (nullptr == L || nullptr == outValue) return false; @@ -469,7 +469,7 @@ bool luaval_to_vec4(lua_State* L, int lo, cocos2d::Vec4* outValue, const char* f return ok; } -bool luaval_to_blendfunc(lua_State* L, int lo, cocos2d::BlendFunc* outValue, const char* funcName) +bool luaval_to_blendfunc(lua_State* L, int lo, axis::BlendFunc* outValue, const char* funcName) { if (nullptr == L || nullptr == outValue) return false; @@ -491,7 +491,7 @@ bool luaval_to_blendfunc(lua_State* L, int lo, cocos2d::BlendFunc* outValue, con lua_gettable(L, lo); if (!lua_isnil(L, -1)) { - outValue->src = static_cast(lua_tointeger(L, -1)); + outValue->src = static_cast(lua_tointeger(L, -1)); } lua_pop(L, 1); @@ -499,7 +499,7 @@ bool luaval_to_blendfunc(lua_State* L, int lo, cocos2d::BlendFunc* outValue, con lua_gettable(L, lo); if (!lua_isnil(L, -1)) { - outValue->dst = static_cast(lua_tointeger(L, -1)); + outValue->dst = static_cast(lua_tointeger(L, -1)); } lua_pop(L, 1); } @@ -1013,7 +1013,7 @@ bool luaval_to_fontdefinition(lua_State* L, int lo, FontDefinition* outValue, co return ok; } -bool luaval_to_ttfconfig(lua_State* L, int lo, cocos2d::TTFConfig* outValue, const char* funcName) +bool luaval_to_ttfconfig(lua_State* L, int lo, axis::TTFConfig* outValue, const char* funcName) { if (nullptr == L || nullptr == outValue) return false; @@ -1068,7 +1068,7 @@ bool luaval_to_ttfconfig(lua_State* L, int lo, cocos2d::TTFConfig* outValue, con return false; } -bool luaval_to_mat4(lua_State* L, int lo, cocos2d::Mat4* outValue, const char* funcName) +bool luaval_to_mat4(lua_State* L, int lo, axis::Mat4* outValue, const char* funcName) { if (nullptr == L || nullptr == outValue) return false; @@ -1114,7 +1114,7 @@ bool luaval_to_mat4(lua_State* L, int lo, cocos2d::Mat4* outValue, const char* f return ok; } -bool luaval_to_array_of_vec2(lua_State* L, int lo, cocos2d::Vec2** points, int* numPoints, const char* funcName) +bool luaval_to_array_of_vec2(lua_State* L, int lo, axis::Vec2** points, int* numPoints, const char* funcName) { if (NULL == L) return false; @@ -1136,7 +1136,7 @@ bool luaval_to_array_of_vec2(lua_State* L, int lo, cocos2d::Vec2** points, int* size_t len = lua_objlen(L, lo); if (len > 0) { - cocos2d::Vec2* array = (cocos2d::Vec2*)new Vec2[len]; + axis::Vec2* array = (axis::Vec2*)new Vec2[len]; if (NULL == array) return false; for (size_t i = 0; i < len; ++i) @@ -1169,7 +1169,7 @@ bool luaval_to_array_of_vec2(lua_State* L, int lo, cocos2d::Vec2** points, int* return ok; } -bool luavals_variadic_to_ccvaluevector(lua_State* L, int argc, cocos2d::ValueVector* ret) +bool luavals_variadic_to_ccvaluevector(lua_State* L, int argc, axis::ValueVector* ret) { if (nullptr == L || argc == 0) return false; @@ -1228,7 +1228,7 @@ bool luavals_variadic_to_ccvaluevector(lua_State* L, int argc, cocos2d::ValueVec return true; } -bool luaval_to_ccvalue(lua_State* L, int lo, cocos2d::Value* ret, const char* funcName) +bool luaval_to_ccvalue(lua_State* L, int lo, axis::Value* ret, const char* funcName) { if (nullptr == L || nullptr == ret) return false; @@ -1284,7 +1284,7 @@ bool luaval_to_ccvalue(lua_State* L, int lo, cocos2d::Value* ret, const char* fu return ok; } -bool luaval_to_ccvaluemap(lua_State* L, int lo, cocos2d::ValueMap* ret, const char* funcName) +bool luaval_to_ccvaluemap(lua_State* L, int lo, axis::ValueMap* ret, const char* funcName) { if (nullptr == L || nullptr == ret) return false; @@ -1371,7 +1371,7 @@ bool luaval_to_ccvaluemap(lua_State* L, int lo, cocos2d::ValueMap* ret, const ch return ok; } -bool luaval_to_ccvaluemapintkey(lua_State* L, int lo, cocos2d::ValueMapIntKey* ret, const char* funcName) +bool luaval_to_ccvaluemapintkey(lua_State* L, int lo, axis::ValueMapIntKey* ret, const char* funcName) { if (nullptr == L || nullptr == ret) return false; @@ -1459,7 +1459,7 @@ bool luaval_to_ccvaluemapintkey(lua_State* L, int lo, cocos2d::ValueMapIntKey* r return ok; } -bool luaval_to_ccvaluevector(lua_State* L, int lo, cocos2d::ValueVector* ret, const char* funcName) +bool luaval_to_ccvaluevector(lua_State* L, int lo, axis::ValueVector* ret, const char* funcName) { if (nullptr == L || nullptr == ret) return false; @@ -1661,7 +1661,7 @@ bool luaval_to_std_vector_int(lua_State* L, int lo, std::vector* ret, const return ok; } -bool luaval_to_mesh_vertex_attrib(lua_State* L, int lo, cocos2d::MeshVertexAttrib* ret, const char* funcName) +bool luaval_to_mesh_vertex_attrib(lua_State* L, int lo, axis::MeshVertexAttrib* ret, const char* funcName) { if (nullptr == L || nullptr == ret || lua_gettop(L) < lo) return false; @@ -1772,7 +1772,7 @@ bool luaval_to_std_vector_ushort(lua_State* L, int lo, std::vector* ret, const char* funcName) +bool luaval_to_std_vector_vec2(lua_State* L, int lo, std::vector* ret, const char* funcName) { if (nullptr == L || nullptr == ret || lua_gettop(L) < lo) return false; @@ -1971,7 +1971,7 @@ bool luaval_to_std_vector_vec2(lua_State* L, int lo, std::vector* if (ok) { size_t len = lua_objlen(L, lo); - cocos2d::Vec2 value; + axis::Vec2 value; for (size_t i = 0; i < len; i++) { lua_pushnumber(L, i + 1); @@ -1995,7 +1995,7 @@ bool luaval_to_std_vector_vec2(lua_State* L, int lo, std::vector* return ok; } -bool luaval_to_std_vector_vec3(lua_State* L, int lo, std::vector* ret, const char* funcName) +bool luaval_to_std_vector_vec3(lua_State* L, int lo, std::vector* ret, const char* funcName) { if (nullptr == L || nullptr == ret || lua_gettop(L) < lo) return false; @@ -2014,7 +2014,7 @@ bool luaval_to_std_vector_vec3(lua_State* L, int lo, std::vector* if (ok) { size_t len = lua_objlen(L, lo); - cocos2d::Vec3 value; + axis::Vec3 value; for (size_t i = 0; i < len; i++) { lua_pushnumber(L, i + 1); @@ -2040,7 +2040,7 @@ bool luaval_to_std_vector_vec3(lua_State* L, int lo, std::vector* bool luaval_to_std_vector_v3f_c4b_t2f(lua_State* L, int lo, - std::vector* ret, + std::vector* ret, const char* funcName) { if (nullptr == L || nullptr == ret || lua_gettop(L) < lo) @@ -2060,7 +2060,7 @@ bool luaval_to_std_vector_v3f_c4b_t2f(lua_State* L, if (ok) { size_t len = lua_objlen(L, lo); - cocos2d::V3F_C4B_T2F value; + axis::V3F_C4B_T2F value; for (size_t i = 0; i < len; i++) { lua_pushnumber(L, i + 1); @@ -2083,7 +2083,7 @@ bool luaval_to_std_vector_v3f_c4b_t2f(lua_State* L, return ok; } -void vec2_array_to_luaval(lua_State* L, const cocos2d::Vec2* points, int count) +void vec2_array_to_luaval(lua_State* L, const axis::Vec2* points, int count) { if (NULL == L) return; @@ -2137,7 +2137,7 @@ static int vec2_newindex(lua_State* L) return 0; } -int vec2_to_luaval(lua_State* L, const cocos2d::Vec2& vec2) +int vec2_to_luaval(lua_State* L, const axis::Vec2& vec2) { lua_createtable(L, 2, 0); /* L: table */ lua_pushnumber(L, (lua_Number)vec2.x); /* L: table key value*/ @@ -2181,7 +2181,7 @@ static int vec3_newindex(lua_State* L) return 0; } -int vec3_to_luaval(lua_State* L, const cocos2d::Vec3& vec3) +int vec3_to_luaval(lua_State* L, const axis::Vec3& vec3) { lua_createtable(L, 3, 0); /* L: table */ lua_pushnumber(L, (lua_Number)vec3.x); /* L: table key value*/ @@ -2227,7 +2227,7 @@ static int vec4_newindex(lua_State* L) return 0; } -int vec4_to_luaval(lua_State* L, const cocos2d::Vec4& vec4) +int vec4_to_luaval(lua_State* L, const axis::Vec4& vec4) { lua_createtable(L, 4, 0); /* L: table */ lua_pushnumber(L, (lua_Number)vec4.x); /* L: table key value*/ @@ -2503,7 +2503,7 @@ void fontdefinition_to_luaval(lua_State* L, const FontDefinition& inValue) lua_rawset(L, -3); /* table[key] = value, L: table */ } -void ccvalue_to_luaval(lua_State* L, const cocos2d::Value& inValue) +void ccvalue_to_luaval(lua_State* L, const axis::Value& inValue) { const Value& obj = inValue; switch (obj.getTypeFamily()) @@ -2534,7 +2534,7 @@ void ccvalue_to_luaval(lua_State* L, const cocos2d::Value& inValue) break; } } -void ccvaluemap_to_luaval(lua_State* L, const cocos2d::ValueMap& inValue) +void ccvaluemap_to_luaval(lua_State* L, const axis::ValueMap& inValue) { lua_newtable(L); @@ -2602,7 +2602,7 @@ void ccvaluemap_to_luaval(lua_State* L, const cocos2d::ValueMap& inValue) } } } -void ccvaluemapintkey_to_luaval(lua_State* L, const cocos2d::ValueMapIntKey& inValue) +void ccvaluemapintkey_to_luaval(lua_State* L, const axis::ValueMapIntKey& inValue) { lua_newtable(L); @@ -2674,7 +2674,7 @@ void ccvaluemapintkey_to_luaval(lua_State* L, const cocos2d::ValueMapIntKey& inV } } } -void ccvaluevector_to_luaval(lua_State* L, const cocos2d::ValueVector& inValue) +void ccvaluevector_to_luaval(lua_State* L, const axis::ValueVector& inValue) { lua_newtable(L); @@ -2749,7 +2749,7 @@ void ccvaluevector_to_luaval(lua_State* L, const cocos2d::ValueVector& inValue) } } -void mat4_to_luaval(lua_State* L, const cocos2d::Mat4& mat) +void mat4_to_luaval(lua_State* L, const axis::Mat4& mat) { if (nullptr == L) return; @@ -2766,7 +2766,7 @@ void mat4_to_luaval(lua_State* L, const cocos2d::Mat4& mat) } } -void blendfunc_to_luaval(lua_State* L, const cocos2d::BlendFunc& func) +void blendfunc_to_luaval(lua_State* L, const axis::BlendFunc& func) { if (nullptr == L) return; @@ -2781,7 +2781,7 @@ void blendfunc_to_luaval(lua_State* L, const cocos2d::BlendFunc& func) lua_rawset(L, -3); } -void ttfconfig_to_luaval(lua_State* L, const cocos2d::TTFConfig& config) +void ttfconfig_to_luaval(lua_State* L, const axis::TTFConfig& config) { if (nullptr == L) return; @@ -2813,7 +2813,7 @@ void ttfconfig_to_luaval(lua_State* L, const cocos2d::TTFConfig& config) lua_rawset(L, -3); } -void mesh_vertex_attrib_to_luaval(lua_State* L, const cocos2d::MeshVertexAttrib& inValue) +void mesh_vertex_attrib_to_luaval(lua_State* L, const axis::MeshVertexAttrib& inValue) { if (nullptr == L) return; @@ -2902,7 +2902,7 @@ void ccvector_ushort_to_luaval(lua_State* L, const std::vector& } } -void quaternion_to_luaval(lua_State* L, const cocos2d::Quaternion& inValue) +void quaternion_to_luaval(lua_State* L, const axis::Quaternion& inValue) { if (NULL == L) return; @@ -2922,7 +2922,7 @@ void quaternion_to_luaval(lua_State* L, const cocos2d::Quaternion& inValue) lua_rawset(L, -3); } -void texParams_to_luaval(lua_State* L, const cocos2d::Texture2D::TexParams& inValue) +void texParams_to_luaval(lua_State* L, const axis::Texture2D::TexParams& inValue) { if (nullptr == L) return; @@ -2943,7 +2943,7 @@ void texParams_to_luaval(lua_State* L, const cocos2d::Texture2D::TexParams& inVa lua_rawset(L, -3); } -void std_vector_vec3_to_luaval(lua_State* L, const std::vector& inValue) +void std_vector_vec3_to_luaval(lua_State* L, const std::vector& inValue) { if (nullptr == L) return; @@ -2951,7 +2951,7 @@ void std_vector_vec3_to_luaval(lua_State* L, const std::vector& i lua_newtable(L); int index = 1; - for (const cocos2d::Vec3& value : inValue) + for (const axis::Vec3& value : inValue) { lua_pushnumber(L, (lua_Number)index); vec3_to_luaval(L, value); @@ -3016,23 +3016,23 @@ bool luaval_to_std_map_string_string(lua_State* L, int lo, hlookup::string_map(L, lo, type, node); + return luaval_to_object(L, lo, type, node); } -void node_to_luaval(lua_State* L, const char* type, cocos2d::Node* node) +void node_to_luaval(lua_State* L, const char* type, axis::Node* node) { - object_to_luaval(L, type, node); + object_to_luaval(L, type, node); } -bool luaval_to_vertexLayout(lua_State* L, int pos, cocos2d::backend::VertexLayout& outLayout, const char* message) +bool luaval_to_vertexLayout(lua_State* L, int pos, axis::backend::VertexLayout& outLayout, const char* message) { if (L == nullptr) return false; - cocos2d::backend::VertexLayout* tmp = nullptr; - auto ret = luaval_to_object(L, pos, "cc.VertexLayout", &tmp, message); + axis::backend::VertexLayout* tmp = nullptr; + auto ret = luaval_to_object(L, pos, "cc.VertexLayout", &tmp, message); if (!tmp) { return false; @@ -3043,7 +3043,7 @@ bool luaval_to_vertexLayout(lua_State* L, int pos, cocos2d::backend::VertexLayou bool luaval_to_samplerDescriptor(lua_State* L, int pos, - cocos2d::backend::SamplerDescriptor& output, + axis::backend::SamplerDescriptor& output, const char* message) { if (L == nullptr) @@ -3053,7 +3053,7 @@ bool luaval_to_samplerDescriptor(lua_State* L, lua_gettable(L, pos); if (!lua_isnil(L, -1)) { - output.magFilter = static_cast(lua_tointeger(L, -1)); + output.magFilter = static_cast(lua_tointeger(L, -1)); } lua_pop(L, 1); @@ -3061,7 +3061,7 @@ bool luaval_to_samplerDescriptor(lua_State* L, lua_gettable(L, pos); if (!lua_isnil(L, -1)) { - output.minFilter = static_cast(lua_tointeger(L, -1)); + output.minFilter = static_cast(lua_tointeger(L, -1)); } lua_pop(L, 1); @@ -3069,7 +3069,7 @@ bool luaval_to_samplerDescriptor(lua_State* L, lua_gettable(L, pos); if (!lua_isnil(L, -1)) { - output.sAddressMode = static_cast(lua_tointeger(L, -1)); + output.sAddressMode = static_cast(lua_tointeger(L, -1)); } lua_pop(L, 1); @@ -3077,14 +3077,14 @@ bool luaval_to_samplerDescriptor(lua_State* L, lua_gettable(L, pos); if (!lua_isnil(L, -1)) { - output.tAddressMode = static_cast(lua_tointeger(L, -1)); + output.tAddressMode = static_cast(lua_tointeger(L, -1)); } lua_pop(L, 1); return true; } -bool luaval_to_uniformLocation(lua_State* L, int pos, cocos2d::backend::UniformLocation& loc, const char* message) +bool luaval_to_uniformLocation(lua_State* L, int pos, axis::backend::UniformLocation& loc, const char* message) { if (L == nullptr) return false; @@ -3110,12 +3110,12 @@ bool luaval_to_uniformLocation(lua_State* L, int pos, cocos2d::backend::UniformL { CCASSERT(false, "invalidate UniformLocation value"); } - loc.shaderStage = static_cast(lua_tointeger(L, -1)); + loc.shaderStage = static_cast(lua_tointeger(L, -1)); lua_pop(L, 1); return true; } -void uniformLocation_to_luaval(lua_State* L, const cocos2d::backend::UniformLocation& loc) +void uniformLocation_to_luaval(lua_State* L, const axis::backend::UniformLocation& loc) { if (L == nullptr) return; @@ -3136,7 +3136,7 @@ void uniformLocation_to_luaval(lua_State* L, const cocos2d::backend::UniformLoca lua_rawset(L, -3); } -void program_activeattrs_to_luaval(lua_State* L, const hlookup::string_map& attrs) +void program_activeattrs_to_luaval(lua_State* L, const hlookup::string_map& attrs) { if (L == nullptr) return; diff --git a/extensions/scripting/lua-bindings/manual/LuaBasicConversions.h b/extensions/scripting/lua-bindings/manual/LuaBasicConversions.h index 07479f8cbd..dd228114ff 100644 --- a/extensions/scripting/lua-bindings/manual/LuaBasicConversions.h +++ b/extensions/scripting/lua-bindings/manual/LuaBasicConversions.h @@ -47,7 +47,7 @@ #include "yasio/cxx17/string_view.hpp" -using namespace cocos2d; +USING_NS_AX; extern std::unordered_map g_luaType; extern std::unordered_map g_typeCast; @@ -59,8 +59,8 @@ void luaval_to_native_err(lua_State* L, const char* msg, tolua_Error* err, const #define LUA_PRECONDITION(condition, ...) \ if (!(condition)) \ { \ - cocos2d::log("lua: ERROR: File %s: Line: %d, Function: %s", __FILE__, __LINE__, __FUNCTION__); \ - cocos2d::log(__VA_ARGS__); \ + axis::log("lua: ERROR: File %s: Line: %d, Function: %s", __FILE__, __LINE__, __FUNCTION__); \ + axis::log(__VA_ARGS__); \ } /** @@ -317,13 +317,13 @@ extern bool luaval_to_color4f(lua_State* L, int lo, Color4F* outValue, const cha * * @param L the current lua_State. * @param lo the given acceptable index of stack. - * @param outValue the pointer to a cocos2d::PhysicsMaterial object which stores the values from the Lua table. + * @param outValue the pointer to a axis::PhysicsMaterial object which stores the values from the Lua table. * @param funcName the name of calling function, it is used for error output in the debug model. * @return Return true if the value at the given acceptable index of stack is a table, otherwise return false. */ extern bool luaval_to_physics_material(lua_State* L, int lo, - cocos2d::PhysicsMaterial* outValue, + axis::PhysicsMaterial* outValue, const char* funcName = ""); #endif //#if CC_USE_PHYSICS @@ -368,7 +368,7 @@ extern bool luaval_to_fontdefinition(lua_State* L, int lo, FontDefinition* outVa * @param funcName the name of calling function, it is used for error output in the debug model. * @return Return true if the value at the given acceptable index of stack is a table, otherwise return false. */ -extern bool luaval_to_mat4(lua_State* L, int lo, cocos2d::Mat4* outValue, const char* funcName = ""); +extern bool luaval_to_mat4(lua_State* L, int lo, axis::Mat4* outValue, const char* funcName = ""); /** * Get a array of Vec2 object from the given acceptable index of stack. @@ -383,19 +383,19 @@ extern bool luaval_to_mat4(lua_State* L, int lo, cocos2d::Mat4* outValue, const */ extern bool luaval_to_array_of_vec2(lua_State* L, int lo, - cocos2d::Vec2** points, + axis::Vec2** points, int* numPoints, const char* funcName = ""); /** - * Get a cocos2d::ValueVector object value by the argc numbers of Lua values in the stack. + * Get a axis::ValueVector object value by the argc numbers of Lua values in the stack. * * @param L the current lua_State. * @param argc the numbers of Lua values in the stack. * @param ret the pointer to a ValueVector object which stores the values from the Lua table. * @return Return false if argc equal to 0 or L equal to nullptr, otherwise return true. */ -extern bool luavals_variadic_to_ccvaluevector(lua_State* L, int argc, cocos2d::ValueVector* ret); +extern bool luavals_variadic_to_ccvaluevector(lua_State* L, int argc, axis::ValueVector* ret); /** * Get a Vec2 object value from the given acceptable index of stack. @@ -409,7 +409,7 @@ extern bool luavals_variadic_to_ccvaluevector(lua_State* L, int argc, cocos2d::V * @param funcName the name of calling function, it is used for error output in the debug model. * @return Return true if the value at the given acceptable index of stack is a table, otherwise return false. */ -extern bool luaval_to_vec2(lua_State* L, int lo, cocos2d::Vec2* outValue, const char* funcName = ""); +extern bool luaval_to_vec2(lua_State* L, int lo, axis::Vec2* outValue, const char* funcName = ""); /** * Get a Vec3 object value from the given acceptable index of stack. @@ -423,7 +423,7 @@ extern bool luaval_to_vec2(lua_State* L, int lo, cocos2d::Vec2* outValue, const * @param funcName the name of calling function, it is used for error output in the debug model. * @return Return true if the value at the given acceptable index of stack is a table, otherwise return false. */ -extern bool luaval_to_vec3(lua_State* L, int lo, cocos2d::Vec3* outValue, const char* funcName = ""); +extern bool luaval_to_vec3(lua_State* L, int lo, axis::Vec3* outValue, const char* funcName = ""); /** * Get a Vec4 object value from the given acceptable index of stack. @@ -437,7 +437,7 @@ extern bool luaval_to_vec3(lua_State* L, int lo, cocos2d::Vec3* outValue, const * @param funcName the name of calling function, it is used for error output in the debug model. * @return Return true if the value at the given acceptable index of stack is a table, otherwise return false. */ -extern bool luaval_to_vec4(lua_State* L, int lo, cocos2d::Vec4* outValue, const char* funcName = ""); +extern bool luaval_to_vec4(lua_State* L, int lo, axis::Vec4* outValue, const char* funcName = ""); /** * Get a BlendFunc object value from the given acceptable index of stack. @@ -451,7 +451,7 @@ extern bool luaval_to_vec4(lua_State* L, int lo, cocos2d::Vec4* outValue, const * @param funcName the name of calling function, it is used for error output in the debug model. * @return Return true if the value at the given acceptable index of stack is a table, otherwise return false. */ -extern bool luaval_to_blendfunc(lua_State* L, int lo, cocos2d::BlendFunc* outValue, const char* funcName = ""); +extern bool luaval_to_blendfunc(lua_State* L, int lo, axis::BlendFunc* outValue, const char* funcName = ""); /** * Get a TTFConfig object value from the given acceptable index of stack. @@ -466,28 +466,28 @@ extern bool luaval_to_blendfunc(lua_State* L, int lo, cocos2d::BlendFunc* outVal * @param funcName the name of calling function, it is used for error output in the debug model. * @return Return true if the value at the given acceptable index of stack is a table, otherwise return false. */ -extern bool luaval_to_ttfconfig(lua_State* L, int lo, cocos2d::TTFConfig* outValue, const char* funcName = ""); +extern bool luaval_to_ttfconfig(lua_State* L, int lo, axis::TTFConfig* outValue, const char* funcName = ""); /** * Get a Vec2 object value from the given acceptable index of stack. * At current, the Point is typedef of Vec2. * @see luaval_to_vec2 */ -static inline bool luaval_to_point(lua_State* L, int lo, cocos2d::Vec2* outValue, const char* funcName = "") +static inline bool luaval_to_point(lua_State* L, int lo, axis::Vec2* outValue, const char* funcName = "") { return luaval_to_vec2(L, lo, outValue); } CC_DEPRECATED_ATTRIBUTE static inline bool luaval_to_kmMat4(lua_State* L, int lo, - cocos2d::Mat4* outValue, + axis::Mat4* outValue, const char* funcName = "") { return luaval_to_mat4(L, lo, outValue); } CC_DEPRECATED_ATTRIBUTE static inline bool luaval_to_array_of_Point(lua_State* L, int lo, - cocos2d::Vec2** points, + axis::Vec2** points, int* numPoints, const char* funcName = "") { @@ -495,16 +495,16 @@ CC_DEPRECATED_ATTRIBUTE static inline bool luaval_to_array_of_Point(lua_State* L } /** - * Get a cocos2d::Vector of type T objects by the argc numbers of Lua values in the stack. + * Get a axis::Vector of type T objects by the argc numbers of Lua values in the stack. * * @param L the current lua_State. * @param argc the numbers of Lua values in the stack. - * @param ret a cocos2d::Vector of type T objects. + * @param ret a axis::Vector of type T objects. * @return Return false if argc equal to 0 , L equal to nullptr or the Lua userdata at the index isn't `cc.Ref` type, * otherwise return true. */ template -bool luavals_variadic_to_ccvector(lua_State* L, int argc, cocos2d::Vector* ret) +bool luavals_variadic_to_ccvector(lua_State* L, int argc, axis::Vector* ret) { if (nullptr == L || argc == 0) return false; @@ -531,16 +531,16 @@ bool luavals_variadic_to_ccvector(lua_State* L, int argc, cocos2d::Vector* re } /** - * Get a cocos2d::Vector of type T objects from a Lua table in the stack. + * Get a axis::Vector of type T objects from a Lua table in the stack. * * @param L the current lua_State. * @param lo the given acceptable index of stack. - * @param ret a cocos2d::Vector of type T objects. + * @param ret a axis::Vector of type T objects. * @param funcName the name of calling function, it is used for error output in the debug model. * @return Return true if the value at the given acceptable index of stack is a table, otherwise return false. */ template -bool luaval_to_ccvector(lua_State* L, int lo, cocos2d::Vector* ret, const char* funcName = "") +bool luaval_to_ccvector(lua_State* L, int lo, axis::Vector* ret, const char* funcName = "") { if (nullptr == L || nullptr == ret) return false; @@ -607,17 +607,17 @@ CC_LUA_DLL bool luaval_to_std_vector_string_view(lua_State* L, bool luaval_to_std_vector_int(lua_State* L, int lo, std::vector* ret, const char* funcName = ""); /** - * Get a pointer points to a cocos2d::Map whose key/value pair is string value and T object from a Lua hash-map table in + * Get a pointer points to a axis::Map whose key/value pair is string value and T object from a Lua hash-map table in * the stack. * * @param L the current lua_State. * @param lo the given acceptable index of stack. - * @param ret a pointer points to a cocos2d::Map whose key/value pair is string value and T object. + * @param ret a pointer points to a axis::Map whose key/value pair is string value and T object. * @param funcName the name of calling function, it is used for error output in the debug model. * @return Return true if the value at the given acceptable index of stack is a table, otherwise return false. */ template -bool luaval_to_ccmap_string_key(lua_State* L, int lo, cocos2d::Map* ret, const char* funcName = "") +bool luaval_to_ccmap_string_key(lua_State* L, int lo, axis::Map* ret, const char* funcName = "") { if (nullptr == L || nullptr == ret || lua_gettop(L) < lo) return false; @@ -663,52 +663,52 @@ bool luaval_to_ccmap_string_key(lua_State* L, int lo, cocos2d::Map from a Lua array table in the stack. + * Get a pointer points to a std::vector from a Lua array table in the stack. * * @param L the current lua_State. * @param lo the given acceptable index of stack. - * @param ret a pointer points to a std::vector. + * @param ret a pointer points to a std::vector. * @param funcName the name of calling function, it is used for error output in the debug model. * @return Return true if the value at the given acceptable index of stack is a table, otherwise return false. */ extern bool luaval_to_std_vector_v3f_c4b_t2f(lua_State* L, int lo, - std::vector* ret, + std::vector* ret, const char* funcName = ""); /** - * Get a pointer points to a std::vector from a Lua array table in the stack. + * Get a pointer points to a std::vector from a Lua array table in the stack. * * @param L the current lua_State. * @param lo the given acceptable index of stack. - * @param ret a pointer points to a std::vector. + * @param ret a pointer points to a std::vector. * @param funcName the name of calling function, it is used for error output in the debug model. * @return Return true if the value at the given acceptable index of stack is a table, otherwise return false. */ -extern bool luaval_to_std_vector_vec2(lua_State* L, int lo, std::vector* ret, const char* funcName = ""); +extern bool luaval_to_std_vector_vec2(lua_State* L, int lo, std::vector* ret, const char* funcName = ""); /** - * Get a pointer points to a std::vector from a Lua array table in the stack. + * Get a pointer points to a std::vector from a Lua array table in the stack. * * @param L the current lua_State. * @param lo the given acceptable index of stack. - * @param ret a pointer points to a std::vector. + * @param ret a pointer points to a std::vector. * @param funcName the name of calling function, it is used for error output in the debug model. * @return Return true if the value at the given acceptable index of stack is a table, otherwise return false. */ -extern bool luaval_to_std_vector_vec3(lua_State* L, int lo, std::vector* ret, const char* funcName = ""); +extern bool luaval_to_std_vector_vec3(lua_State* L, int lo, std::vector* ret, const char* funcName = ""); extern bool luaval_to_std_map_string_string(lua_State* L, int lo, @@ -887,174 +887,174 @@ extern bool luaval_to_std_map_string_string(lua_State* L, **/ /** - * Push a table converted from a cocos2d::Vec2 object into the Lua stack. + * Push a table converted from a axis::Vec2 object into the Lua stack. * The format of table as follows: {x=numberValue1, y=numberValue2} * * @param L the current lua_State. - * @param vec2 a cocos2d::Vec2 object. + * @param vec2 a axis::Vec2 object. */ -extern int vec2_to_luaval(lua_State* L, const cocos2d::Vec2& vec2); +extern int vec2_to_luaval(lua_State* L, const axis::Vec2& vec2); /** - * Push a table converted from a cocos2d::Vec3 object into the Lua stack. + * Push a table converted from a axis::Vec3 object into the Lua stack. * The format of table as follows: {x=numberValue1, y=numberValue2, z=numberValue3} * * @param L the current lua_State. - * @param vec3 a cocos2d::Vec3 object. + * @param vec3 a axis::Vec3 object. */ -extern int vec3_to_luaval(lua_State* L, const cocos2d::Vec3& vec3); +extern int vec3_to_luaval(lua_State* L, const axis::Vec3& vec3); /** - * Push a table converted from a cocos2d::Vec4 object into the Lua stack. + * Push a table converted from a axis::Vec4 object into the Lua stack. * The format of table as follows: {x=numberValue1, y=numberValue2, z=numberValue3, w=numberValue4} * * @param L the current lua_State. - * @param vec4 a cocos2d::Vec4 object. + * @param vec4 a axis::Vec4 object. */ -extern int vec4_to_luaval(lua_State* L, const cocos2d::Vec4& vec4); +extern int vec4_to_luaval(lua_State* L, const axis::Vec4& vec4); /** - * Push a table converted from a cocos2d::Vec2 array into the Lua stack. + * Push a table converted from a axis::Vec2 array into the Lua stack. * The table size is count. * The format of table as follows: {vec2_table1,vec2_table2,...,vec2_tableCount}. * * @param L the current lua_State. - * @param points a pointer points to a cocos2d::Vec2 array. - * @param count the number of cocos2d::Vec2 object should be converted to a Lua table and push into the Lua stack. + * @param points a pointer points to a axis::Vec2 array. + * @param count the number of axis::Vec2 object should be converted to a Lua table and push into the Lua stack. */ -extern void vec2_array_to_luaval(lua_State* L, const cocos2d::Vec2* points, int count); +extern void vec2_array_to_luaval(lua_State* L, const axis::Vec2* points, int count); /** - * Push a table converted from a cocos2d::Size object into the Lua stack. + * Push a table converted from a axis::Size object into the Lua stack. * The format of table as follows: {width=numberValue1, height=numberValue2} * * @param L the current lua_State. - * @param sz a cocos2d::Size object. + * @param sz a axis::Size object. */ extern void size_to_luaval(lua_State* L, const Size& sz); /** - * Push a table converted from a cocos2d::Rect object into the Lua stack. + * Push a table converted from a axis::Rect object into the Lua stack. * The format of table as follows: {x=numberValue1, y=numberValue2, width=numberValue3, height=numberValue4} * * @param L the current lua_State. - * @param rt a cocos2d::Rect object. + * @param rt a axis::Rect object. */ extern void rect_to_luaval(lua_State* L, const Rect& rt); /** - * Push a table converted from a cocos2d::Color3B object into the Lua stack. + * Push a table converted from a axis::Color3B object into the Lua stack. * The format of table as follows: {r=numberValue1, g=numberValue2, b=numberValue3} * * @param L the current lua_State. - * @param cc a cocos2d::Color3B object. + * @param cc a axis::Color3B object. */ extern CC_LUA_DLL void color3b_to_luaval(lua_State* L, const Color3B& cc); /** - * Push a table converted from a cocos2d::Color4B object into the Lua stack. + * Push a table converted from a axis::Color4B object into the Lua stack. * The format of table as follows: {r=numberValue1, g=numberValue2, b=numberValue3, a=numberValue4} * * @param L the current lua_State. - * @param cc a cocos2d::Color4B object. + * @param cc a axis::Color4B object. */ extern void color4b_to_luaval(lua_State* L, const Color4B& cc); /** - * Push a table converted from a cocos2d::Color4F object into the Lua stack. + * Push a table converted from a axis::Color4F object into the Lua stack. * The format of table as follows: {r=numberValue1, g=numberValue2, b=numberValue3, a=numberValue4} * * @param L the current lua_State. - * @param cc a cocos2d::Color4F object. + * @param cc a axis::Color4F object. */ extern void color4f_to_luaval(lua_State* L, const Color4F& cc); #if CC_USE_PHYSICS /** - * Push a table converted from a cocos2d::PhysicsMaterial object into the Lua stack. + * Push a table converted from a axis::PhysicsMaterial object into the Lua stack. * The format of table as follows: {density=numberValue1, restitution=numberValue2, friction=numberValue3} * * @param L the current lua_State. - * @param pm a cocos2d::PhysicsMaterial object. + * @param pm a axis::PhysicsMaterial object. */ extern void physics_material_to_luaval(lua_State* L, const PhysicsMaterial& pm); /** - * Push a table converted from a cocos2d::PhysicsRayCastInfo object into the Lua stack. + * Push a table converted from a axis::PhysicsRayCastInfo object into the Lua stack. * The format of table as follows: {shape=userdata, start=vec2_table1, ended=vec2_table2, contact=vec2_table3, * normal=vec2_table4, fraction=numberValue} * * @param L the current lua_State. - * @param info a cocos2d::PhysicsRayCastInfo object. + * @param info a axis::PhysicsRayCastInfo object. */ extern void physics_raycastinfo_to_luaval(lua_State* L, const PhysicsRayCastInfo& info); /** - * Push a table converted from a cocos2d::PhysicsContactData object into the Lua stack. + * Push a table converted from a axis::PhysicsContactData object into the Lua stack. * The format of table as follows: {points=vec2_array_table, normal=vec2_table, POINT_MAX=numberValue} * * @param L the current lua_State. - * @param data a cocos2d::PhysicsContactData object. + * @param data a axis::PhysicsContactData object. */ extern void physics_contactdata_to_luaval(lua_State* L, const PhysicsContactData* data); #endif //#if CC_USE_PHYSICS /** - * Push a table converted from a cocos2d::AffineTransform object into the Lua stack. + * Push a table converted from a axis::AffineTransform object into the Lua stack. * The format of table as follows: {a=numberValue1, b=numberValue2, c=numberValue3, d=numberValue4,tx=numberValue5, * ty=numberValue6} * * @param L the current lua_State. - * @param inValue a cocos2d::AffineTransform object. + * @param inValue a axis::AffineTransform object. */ extern void affinetransform_to_luaval(lua_State* L, const AffineTransform& inValue); /** - * Push a table converted from a cocos2d::FontDefinition object into the Lua stack. + * Push a table converted from a axis::FontDefinition object into the Lua stack. * The format of table as follows: {fontName=stringValue1, fontSize=numberValue1, fontAlignmentH=numberValue2, * fontAlignmentV=numberValue3,fontFillColor=color3b_table1, fontDimensions=size_table1, shadowEnabled=booleanValue1, * shadowOffset=size_table2, shadowBlur=numberValue4, shadowOpacity=numberValue5, shadowEnabled=booleanValue2, * strokeColor=color3b_table2, strokeSize=size_table3} * * @param L the current lua_State. - * @param inValue a cocos2d::FontDefinition object. + * @param inValue a axis::FontDefinition object. */ extern void fontdefinition_to_luaval(lua_State* L, const FontDefinition& inValue); /** - * Push a table converted from a cocos2d::Mat4 object into the Lua stack. + * Push a table converted from a axis::Mat4 object into the Lua stack. * The format of table as follows: {numberValue1, numberValue2, ..., numberValue16} * * @param L the current lua_State. - * @param mat a cocos2d::Mat4 object. + * @param mat a axis::Mat4 object. */ -extern void mat4_to_luaval(lua_State* L, const cocos2d::Mat4& mat); +extern void mat4_to_luaval(lua_State* L, const axis::Mat4& mat); /** - * Push a table converted from a cocos2d::BlendFunc object into the Lua stack. + * Push a table converted from a axis::BlendFunc object into the Lua stack. * The format of table as follows: {src=numberValue1, dst=numberValue2} * * @param L the current lua_State. - * @param func a cocos2d::BlendFunc object. + * @param func a axis::BlendFunc object. */ -extern void blendfunc_to_luaval(lua_State* L, const cocos2d::BlendFunc& func); +extern void blendfunc_to_luaval(lua_State* L, const axis::BlendFunc& func); /** - * Push a table converted from a cocos2d::TTFConfig object into the Lua stack. + * Push a table converted from a axis::TTFConfig object into the Lua stack. * The format of table as follows: {fontFilePath=stringValue1, fontSize=numberValue1, glyphs=numberValue2, * customGlyphs=stringValue2,distanceFieldEnabled=booleanValue1, outlineSize=numberValue3} * * @param L the current lua_State. - * @param config a cocos2d::TTFConfig object. + * @param config a axis::TTFConfig object. */ -extern void ttfconfig_to_luaval(lua_State* L, const cocos2d::TTFConfig& config); +extern void ttfconfig_to_luaval(lua_State* L, const axis::TTFConfig& config); -static inline void point_to_luaval(lua_State* L, const cocos2d::Vec2& pt) +static inline void point_to_luaval(lua_State* L, const axis::Vec2& pt) { vec2_to_luaval(L, pt); } -CC_DEPRECATED_ATTRIBUTE static inline void points_to_luaval(lua_State* L, const cocos2d::Vec2* points, int count) +CC_DEPRECATED_ATTRIBUTE static inline void points_to_luaval(lua_State* L, const axis::Vec2* points, int count) { vec2_array_to_luaval(L, points, count); } @@ -1095,15 +1095,15 @@ const char* getLuaTypeName(T* ret, const char* defaultTypeName) } /** - * Push a table converted from a cocos2d::Vector object into the Lua stack. + * Push a table converted from a axis::Vector object into the Lua stack. * The format of table as follows: {userdata1, userdata2, ..., userdataVectorSize} - * The object in the cocos2d::Vector which would be pushed into the table should be Ref type. + * The object in the axis::Vector which would be pushed into the table should be Ref type. * * @param L the current lua_State. - * @param inValue a cocos2d::Vector object. + * @param inValue a axis::Vector object. */ template -void ccvector_to_luaval(lua_State* L, const cocos2d::Vector& inValue) +void ccvector_to_luaval(lua_State* L, const axis::Vector& inValue) { lua_newtable(L); @@ -1116,7 +1116,7 @@ void ccvector_to_luaval(lua_State* L, const cocos2d::Vector& inValue) if (nullptr == obj) continue; - if (nullptr != dynamic_cast(obj)) + if (nullptr != dynamic_cast(obj)) { auto luaTypeName = getLuaTypeName(obj, nullptr); if (luaTypeName) @@ -1133,15 +1133,15 @@ void ccvector_to_luaval(lua_State* L, const cocos2d::Vector& inValue) } /** - * Push a table converted from a cocos2d::Map object into the Lua stack. + * Push a table converted from a axis::Map object into the Lua stack. * The format of table as follows: {name1=userdata1, name2=userdata2, ..., nameMapSize=userdataMapSize} - * The object in the cocos2d::Map which would be pushed into the table should be Ref type. + * The object in the axis::Map which would be pushed into the table should be Ref type. * * @param L the current lua_State. - * @param v a cocos2d::Map object. + * @param v a axis::Map object. */ template -void ccmap_string_key_to_luaval(lua_State* L, const cocos2d::StringMap& v) +void ccmap_string_key_to_luaval(lua_State* L, const axis::StringMap& v) { lua_newtable(L); @@ -1152,7 +1152,7 @@ void ccmap_string_key_to_luaval(lua_State* L, const cocos2d::StringMap& v) { auto& key = iter->first; T obj = iter->second; - if (nullptr != dynamic_cast(obj)) + if (nullptr != dynamic_cast(obj)) { auto name = reinterpret_cast(typeid(*obj).name()); auto typeIter = g_luaType.find(name); @@ -1171,8 +1171,8 @@ void ccmap_string_key_to_luaval(lua_State* L, const cocos2d::StringMap& v) } /** - * Push a Lua value converted from a cocos2d::Value object into the Lua stack. - * Different cocos2d::Value type, different Lua value pushed into the Lua stack. + * Push a Lua value converted from a axis::Value object into the Lua stack. + * Different axis::Value type, different Lua value pushed into the Lua stack. * Value::Type::BOOLEAN -> push a boolean value into the Lua stack. * Value::Type::FLOAT,Value::Type::DOUBLE -> push a number value into the Lua stack. * Value::Type::INTEGER -> push a integer value into the Lua stack. @@ -1182,36 +1182,36 @@ void ccmap_string_key_to_luaval(lua_State* L, const cocos2d::StringMap& v) * Value::Type::INT_KEY_MAP -> push a hash table into the Lua stack. * * @param L the current lua_State. - * @param inValue a cocos2d::Value object. + * @param inValue a axis::Value object. */ -void ccvalue_to_luaval(lua_State* L, const cocos2d::Value& inValue); +void ccvalue_to_luaval(lua_State* L, const axis::Value& inValue); /** - * Push a Lua hash table converted from a cocos2d::ValueMap object into the Lua stack. + * Push a Lua hash table converted from a axis::ValueMap object into the Lua stack. * The type of value of the key/value pair would be boolean,number, integer, string, array table, hash table. * * @param L the current lua_State. - * @param inValue a cocos2d::ValueMap object. + * @param inValue a axis::ValueMap object. */ -void ccvaluemap_to_luaval(lua_State* L, const cocos2d::ValueMap& inValue); +void ccvaluemap_to_luaval(lua_State* L, const axis::ValueMap& inValue); /** - * Push a Lua hash table converted from a cocos2d::ValueMapIntKey object into the Lua stack. + * Push a Lua hash table converted from a axis::ValueMapIntKey object into the Lua stack. * The type of value of the key/value pair would be boolean,number, integer, string, array table, hash table. * * @param L the current lua_State. - * @param inValue a cocos2d::ValueMapIntKey object. + * @param inValue a axis::ValueMapIntKey object. */ -void ccvaluemapintkey_to_luaval(lua_State* L, const cocos2d::ValueMapIntKey& inValue); +void ccvaluemapintkey_to_luaval(lua_State* L, const axis::ValueMapIntKey& inValue); /** - * Push a Lua array table converted from a cocos2d::ValueVector object into the Lua stack. + * Push a Lua array table converted from a axis::ValueVector object into the Lua stack. * The type of value of the key/value pair would be boolean,number, integer, string, array table, hash table. * * @param L the current lua_State. - * @param inValue a cocos2d::ValueVector object. + * @param inValue a axis::ValueVector object. */ -void ccvaluevector_to_luaval(lua_State* L, const cocos2d::ValueVector& inValue); +void ccvaluevector_to_luaval(lua_State* L, const axis::ValueVector& inValue); /**@}**/ @@ -1227,10 +1227,10 @@ void object_to_luaval(lua_State* L, const char* type, T* ret) { if (nullptr != ret) { - if (std::is_base_of::value) + if (std::is_base_of::value) { // use c style cast, T may not polymorphic - cocos2d::Ref* dynObject = (cocos2d::Ref*)(ret); + axis::Ref* dynObject = (axis::Ref*)(ret); int ID = (int)(dynObject->_ID); int* luaID = &(dynObject->_luaID); toluafix_pushusertype_ccobject(L, ID, luaID, (void*)ret, type); @@ -1247,14 +1247,14 @@ void object_to_luaval(lua_State* L, const char* type, T* ret) } /** - * Push a table converted from a cocos2d::MeshVertexAttrib object into the Lua stack. + * Push a table converted from a axis::MeshVertexAttrib object into the Lua stack. * The format of table as follows: {size=numberValue1, type=numberValue2, vertexAttrib=numberValue3, * attribSizeBytes=numberValue4} * * @param L the current lua_State. - * @param inValue a cocos2d::MeshVertexAttrib object. + * @param inValue a axis::MeshVertexAttrib object. */ -void mesh_vertex_attrib_to_luaval(lua_State* L, const cocos2d::MeshVertexAttrib& inValue); +void mesh_vertex_attrib_to_luaval(lua_State* L, const axis::MeshVertexAttrib& inValue); /** * Push a Lua array table converted from a std::vector into the Lua stack. @@ -1293,32 +1293,32 @@ void ccvector_float_to_luaval(lua_State* L, const std::vector& inValue); void ccvector_ushort_to_luaval(lua_State* L, const std::vector& inValue); /** - * Push a table converted from a cocos2d::Quaternion object into the Lua stack. + * Push a table converted from a axis::Quaternion object into the Lua stack. * The format of table as follows: {x=numberValue1, y=numberValue2, z=numberValue3, w=numberValue4} * * @param L the current lua_State. - * @param inValue a cocos2d::Quaternion object. + * @param inValue a axis::Quaternion object. */ -void quaternion_to_luaval(lua_State* L, const cocos2d::Quaternion& inValue); +void quaternion_to_luaval(lua_State* L, const axis::Quaternion& inValue); /** - * Push a table converted from a cocos2d::Texture2D::TexParams object into the Lua stack. + * Push a table converted from a axis::Texture2D::TexParams object into the Lua stack. * The format of table as follows: {minFilter=numberValue1, magFilter=numberValue2, wrapS=numberValue3, * wrapT=numberValue4} * * @param L the current lua_State. - * @param inValue a cocos2d::Texture2D::TexParams object. + * @param inValue a axis::Texture2D::TexParams object. */ -void texParams_to_luaval(lua_State* L, const cocos2d::Texture2D::TexParams& inValue); +void texParams_to_luaval(lua_State* L, const axis::Texture2D::TexParams& inValue); /** - * Push a Lua array table converted from a std::vector into the Lua stack. + * Push a Lua array table converted from a std::vector into the Lua stack. * The format of table as follows: {vec3Value1, vec3Value2, ..., vec3ValueSize} * * @param L the current lua_State. - * @param inValue a std::vector value. + * @param inValue a std::vector value. */ -void std_vector_vec3_to_luaval(lua_State* L, const std::vector& inValue); +void std_vector_vec3_to_luaval(lua_State* L, const std::vector& inValue); /** * Push a Lua dict table converted from a std::map into the Lua stack. @@ -1329,15 +1329,15 @@ void std_vector_vec3_to_luaval(lua_State* L, const std::vector& i void std_map_string_string_to_luaval(lua_State* L, const std::map& inValue); // Follow 2 function is added for Cocos Studio to make lua lib can be compile as dynamic library -CC_LUA_DLL extern bool luaval_to_node(lua_State* L, int lo, const char* type, cocos2d::Node** node); -CC_LUA_DLL extern void node_to_luaval(lua_State* L, const char* type, cocos2d::Node* node); +CC_LUA_DLL extern bool luaval_to_node(lua_State* L, int lo, const char* type, axis::Node** node); +CC_LUA_DLL extern void node_to_luaval(lua_State* L, const char* type, axis::Node* node); /** * convert lua object VertexLayout to native object */ CC_LUA_DLL bool luaval_to_vertexLayout(lua_State* L, int pos, - cocos2d::backend::VertexLayout& outLayout, + axis::backend::VertexLayout& outLayout, const char* message); /** @@ -1345,24 +1345,24 @@ CC_LUA_DLL bool luaval_to_vertexLayout(lua_State* L, */ CC_LUA_DLL bool luaval_to_samplerDescriptor(lua_State* L, int pos, - cocos2d::backend::SamplerDescriptor& desc, + axis::backend::SamplerDescriptor& desc, const char* message); /** - * convert lua object to cocos2d::backend::UniformLocation + * convert lua object to axis::backend::UniformLocation */ CC_LUA_DLL bool luaval_to_uniformLocation(lua_State* L, int pos, - cocos2d::backend::UniformLocation& desc, + axis::backend::UniformLocation& desc, const char* message); /** - * convert cocos2d::backend::UniformLocation to lua object + * convert axis::backend::UniformLocation to lua object */ -CC_LUA_DLL void uniformLocation_to_luaval(lua_State* L, const cocos2d::backend::UniformLocation& desc); +CC_LUA_DLL void uniformLocation_to_luaval(lua_State* L, const axis::backend::UniformLocation& desc); CC_LUA_DLL void program_activeattrs_to_luaval(lua_State* L, - const hlookup::string_map& map); + const hlookup::string_map& map); // end group /// @} diff --git a/extensions/scripting/lua-bindings/manual/audioengine/lua_cocos2dx_audioengine_manual.cpp b/extensions/scripting/lua-bindings/manual/audioengine/lua_cocos2dx_audioengine_manual.cpp index f7ef88d1f4..15b90a5e95 100644 --- a/extensions/scripting/lua-bindings/manual/audioengine/lua_cocos2dx_audioengine_manual.cpp +++ b/extensions/scripting/lua-bindings/manual/audioengine/lua_cocos2dx_audioengine_manual.cpp @@ -31,7 +31,7 @@ static int lua_get_AudioProfile_name(lua_State* L) { - cocos2d::AudioProfile* self = nullptr; + axis::AudioProfile* self = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -39,7 +39,7 @@ static int lua_get_AudioProfile_name(lua_State* L) goto tolua_lerror; #endif - self = (cocos2d::AudioProfile*)tolua_tousertype(L, 1, 0); + self = (axis::AudioProfile*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (nullptr == self) { @@ -61,7 +61,7 @@ tolua_lerror: static int lua_set_AudioProfile_name(lua_State* L) { int argc = 0; - cocos2d::AudioProfile* self = nullptr; + axis::AudioProfile* self = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -69,7 +69,7 @@ static int lua_set_AudioProfile_name(lua_State* L) goto tolua_lerror; #endif - self = (cocos2d::AudioProfile*)tolua_tousertype(L, 1, 0); + self = (axis::AudioProfile*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (nullptr == self) { @@ -101,7 +101,7 @@ tolua_lerror: static int lua_get_AudioProfile_maxInstances(lua_State* L) { - cocos2d::AudioProfile* self = nullptr; + axis::AudioProfile* self = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -109,7 +109,7 @@ static int lua_get_AudioProfile_maxInstances(lua_State* L) goto tolua_lerror; #endif - self = (cocos2d::AudioProfile*)tolua_tousertype(L, 1, 0); + self = (axis::AudioProfile*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (nullptr == self) { @@ -131,7 +131,7 @@ tolua_lerror: static int lua_set_AudioProfile_maxInstances(lua_State* L) { int argc = 0; - cocos2d::AudioProfile* self = nullptr; + axis::AudioProfile* self = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -139,7 +139,7 @@ static int lua_set_AudioProfile_maxInstances(lua_State* L) goto tolua_lerror; #endif - self = (cocos2d::AudioProfile*)tolua_tousertype(L, 1, 0); + self = (axis::AudioProfile*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (nullptr == self) { @@ -171,7 +171,7 @@ tolua_lerror: static int lua_get_AudioProfile_minDelay(lua_State* L) { - cocos2d::AudioProfile* self = nullptr; + axis::AudioProfile* self = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -179,7 +179,7 @@ static int lua_get_AudioProfile_minDelay(lua_State* L) goto tolua_lerror; #endif - self = (cocos2d::AudioProfile*)tolua_tousertype(L, 1, 0); + self = (axis::AudioProfile*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (nullptr == self) { @@ -201,7 +201,7 @@ tolua_lerror: static int lua_set_AudioProfile_minDelay(lua_State* L) { int argc = 0; - cocos2d::AudioProfile* self = nullptr; + axis::AudioProfile* self = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -209,7 +209,7 @@ static int lua_set_AudioProfile_minDelay(lua_State* L) goto tolua_lerror; #endif - self = (cocos2d::AudioProfile*)tolua_tousertype(L, 1, 0); + self = (axis::AudioProfile*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (nullptr == self) { @@ -269,7 +269,7 @@ int lua_cocos2dx_audioengine_AudioEngine_setFinishCallback(lua_State* tolua_S) LUA_FUNCTION handler = (toluafix_ref_function(tolua_S, 3, 0)); - cocos2d::AudioEngine::setFinishCallback(arg0, [=](int audioID, std::string_view filePath) { + axis::AudioEngine::setFinishCallback(arg0, [=](int audioID, std::string_view filePath) { LuaStack* stack = LuaEngine::getInstance()->getLuaStack(); stack->pushInt(audioID); diff --git a/extensions/scripting/lua-bindings/manual/cocos2d/LuaScriptHandlerMgr.cpp b/extensions/scripting/lua-bindings/manual/cocos2d/LuaScriptHandlerMgr.cpp index 8fb3861ad7..5d08b690b3 100644 --- a/extensions/scripting/lua-bindings/manual/cocos2d/LuaScriptHandlerMgr.cpp +++ b/extensions/scripting/lua-bindings/manual/cocos2d/LuaScriptHandlerMgr.cpp @@ -31,9 +31,9 @@ #include "scripting/lua-bindings/manual/CCLuaValue.h" #include "scripting/lua-bindings/manual/CCLuaEngine.h" -using namespace cocos2d; +USING_NS_AX; -NS_CC_BEGIN +NS_AX_BEGIN ScheduleHandlerDelegate* ScheduleHandlerDelegate::create() { @@ -94,7 +94,7 @@ LuaCallFunc* LuaCallFunc::clone() const ret->autorelease(); int newscriptHandler = - cocos2d::ScriptEngineManager::getInstance()->getScriptEngine()->reallocateScriptHandler(handler); + axis::ScriptEngineManager::getInstance()->getScriptEngine()->reallocateScriptHandler(handler); ScriptHandlerMgr::getInstance()->addObjectHandler((void*)ret, newscriptHandler, ScriptHandlerMgr::HandlerType::CALLFUNC); @@ -227,7 +227,7 @@ ScriptHandlerMgr::HandlerType ScriptHandlerMgr::addCustomHandler(void* object, i return handlerType; } -NS_CC_END +NS_AX_END static void tolua_reg_script_handler_mgr_type(lua_State* tolua_S) { @@ -271,8 +271,8 @@ static int tolua_Cocos2d_ScriptHandlerMgr_registerScriptHandler00(lua_State* tol else #endif { - cocos2d::ScriptHandlerMgr* scriptHanlderMgr = - static_cast(tolua_tousertype(tolua_S, 1, 0)); + axis::ScriptHandlerMgr* scriptHanlderMgr = + static_cast(tolua_tousertype(tolua_S, 1, 0)); #ifndef TOLUA_RELEASE if (nullptr == scriptHanlderMgr) { @@ -307,8 +307,8 @@ static int tolua_Cocos2d_ScriptHandlerMgr_unregisterScriptHandler00(lua_State* t else #endif { - cocos2d::ScriptHandlerMgr* scriptHanlderMgr = - static_cast(tolua_tousertype(tolua_S, 1, 0)); + axis::ScriptHandlerMgr* scriptHanlderMgr = + static_cast(tolua_tousertype(tolua_S, 1, 0)); #ifndef TOLUA_RELEASE if (nullptr == scriptHanlderMgr) { @@ -341,8 +341,8 @@ static int tolua_Cocos2d_ScriptHandlerMgr_removeObjectAllHandlers00(lua_State* t else #endif { - cocos2d::ScriptHandlerMgr* scriptHanlderMgr = - static_cast(tolua_tousertype(tolua_S, 1, 0)); + axis::ScriptHandlerMgr* scriptHanlderMgr = + static_cast(tolua_tousertype(tolua_S, 1, 0)); #ifndef TOLUA_RELEASE if (nullptr == scriptHanlderMgr) { diff --git a/extensions/scripting/lua-bindings/manual/cocos2d/LuaScriptHandlerMgr.h b/extensions/scripting/lua-bindings/manual/cocos2d/LuaScriptHandlerMgr.h index ee9e0363a6..34f1330861 100644 --- a/extensions/scripting/lua-bindings/manual/cocos2d/LuaScriptHandlerMgr.h +++ b/extensions/scripting/lua-bindings/manual/cocos2d/LuaScriptHandlerMgr.h @@ -37,15 +37,15 @@ * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN class ScheduleHandlerDelegate; /// @cond typedef std::vector VecShedule; -typedef std::map MapNodeSchedules; +typedef std::map MapNodeSchedules; -class ScheduleHandlerDelegate : public cocos2d::Ref +class ScheduleHandlerDelegate : public axis::Ref { public: ScheduleHandlerDelegate() : _isUpdateSchedule(false) {} @@ -72,7 +72,7 @@ private: * @lua NA * @js NA */ -class LuaCallFunc : public cocos2d::CallFuncN +class LuaCallFunc : public axis::CallFuncN { public: /** @@ -321,7 +321,7 @@ private: MapObjectHandlers _mapObjectHandlers; }; -NS_CC_END +NS_AX_END // end group /// @} diff --git a/extensions/scripting/lua-bindings/manual/cocos2d/lua_cocos2dx_manual.cpp b/extensions/scripting/lua-bindings/manual/cocos2d/lua_cocos2dx_manual.cpp index 01244be59c..a9d64c23ec 100644 --- a/extensions/scripting/lua-bindings/manual/cocos2d/lua_cocos2dx_manual.cpp +++ b/extensions/scripting/lua-bindings/manual/cocos2d/lua_cocos2dx_manual.cpp @@ -65,7 +65,7 @@ #include "renderer/CCTextureCache.h" #include "renderer/ccShaders.h" -void LuaNode::draw(cocos2d::Renderer* renderer, const cocos2d::Mat4& transform, uint32_t flags) +void LuaNode::draw(axis::Renderer* renderer, const axis::Mat4& transform, uint32_t flags) { int handler = ScriptHandlerMgr::getInstance()->getObjectHandler((void*)this, ScriptHandlerMgr::HandlerType::LUANODE_DRAW); @@ -452,14 +452,14 @@ static int tolua_cocos2d_Menu_create(lua_State* tolua_S) goto tolua_lerror; #endif - cocos2d::MenuItem* item = static_cast(tolua_tousertype(tolua_S, 1 + i, NULL)); + axis::MenuItem* item = static_cast(tolua_tousertype(tolua_S, 1 + i, NULL)); if (NULL != item) { items.pushBack(item); ++i; } } - cocos2d::Menu* tolua_ret = cocos2d::Menu::createWithArray(items); + axis::Menu* tolua_ret = axis::Menu::createWithArray(items); // UnCheck int nID = (tolua_ret) ? (int)tolua_ret->_ID : -1; int* pLuaID = (tolua_ret) ? &tolua_ret->_luaID : NULL; @@ -468,7 +468,7 @@ static int tolua_cocos2d_Menu_create(lua_State* tolua_S) } else if (argc == 0) { - cocos2d::Menu* tolua_ret = cocos2d::Menu::create(); + axis::Menu* tolua_ret = axis::Menu::create(); int nID = (tolua_ret) ? (int)tolua_ret->_ID : -1; int* pLuaID = (tolua_ret) ? &tolua_ret->_luaID : NULL; toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret, "cc.Menu"); @@ -644,7 +644,7 @@ static int tolua_cocos2d_MenuItem_registerScriptTapHandler(lua_State* tolua_S) if (!tolua_isusertype(tolua_S, 1, "cc.MenuItem", 0, &tolua_err)) goto tolua_lerror; #endif - cobj = static_cast(tolua_tousertype(tolua_S, 1, 0)); + cobj = static_cast(tolua_tousertype(tolua_S, 1, 0)); #if COCOS2D_DEBUG >= 1 if (nullptr == cobj) { @@ -692,7 +692,7 @@ static int tolua_cocos2d_MenuItem_unregisterScriptTapHandler(lua_State* tolua_S) goto tolua_lerror; #endif - cobj = static_cast(tolua_tousertype(tolua_S, 1, 0)); + cobj = static_cast(tolua_tousertype(tolua_S, 1, 0)); #if COCOS2D_DEBUG >= 1 if (nullptr == cobj) @@ -766,7 +766,7 @@ static int lua_cocos2dx_Layer_setTouchEnabled(lua_State* L) goto tolua_lerror; #endif - self = static_cast(tolua_tousertype(L, 1, 0)); + self = static_cast(tolua_tousertype(L, 1, 0)); #if COCOS2D_DEBUG >= 1 if (nullptr == self) @@ -814,7 +814,7 @@ static int lua_cocos2dx_Layer_isTouchEnabled(lua_State* L) goto tolua_lerror; #endif - self = static_cast(tolua_tousertype(L, 1, 0)); + self = static_cast(tolua_tousertype(L, 1, 0)); #if COCOS2D_DEBUG >= 1 if (nullptr == self) @@ -855,7 +855,7 @@ static int lua_cocos2dx_Layer_setTouchMode(lua_State* L) goto tolua_lerror; #endif - self = static_cast(tolua_tousertype(L, 1, 0)); + self = static_cast(tolua_tousertype(L, 1, 0)); #if COCOS2D_DEBUG >= 1 if (nullptr == self) @@ -904,7 +904,7 @@ static int lua_cocos2dx_Layer_getTouchMode(lua_State* L) goto tolua_lerror; #endif - self = static_cast(tolua_tousertype(L, 1, 0)); + self = static_cast(tolua_tousertype(L, 1, 0)); #if COCOS2D_DEBUG >= 1 if (nullptr == self) @@ -947,7 +947,7 @@ static int lua_cocos2dx_Layer_setSwallowsTouches(lua_State* L) goto tolua_lerror; #endif - self = static_cast(tolua_tousertype(L, 1, 0)); + self = static_cast(tolua_tousertype(L, 1, 0)); #if COCOS2D_DEBUG >= 1 if (nullptr == self) @@ -995,7 +995,7 @@ static int lua_cocos2dx_Layer_isSwallowsTouches(lua_State* L) goto tolua_lerror; #endif - self = static_cast(tolua_tousertype(L, 1, 0)); + self = static_cast(tolua_tousertype(L, 1, 0)); #if COCOS2D_DEBUG >= 1 if (nullptr == self) @@ -1036,7 +1036,7 @@ static int lua_cocos2dx_Layer_setKeyboardEnabled(lua_State* L) goto tolua_lerror; #endif - self = static_cast(tolua_tousertype(L, 1, 0)); + self = static_cast(tolua_tousertype(L, 1, 0)); #if COCOS2D_DEBUG >= 1 if (nullptr == self) @@ -1082,7 +1082,7 @@ static int lua_cocos2dx_Layer_isKeyboardEnabled(lua_State* L) goto tolua_lerror; #endif - self = static_cast(tolua_tousertype(L, 1, 0)); + self = static_cast(tolua_tousertype(L, 1, 0)); #if COCOS2D_DEBUG >= 1 if (nullptr == self) @@ -1123,7 +1123,7 @@ static int lua_cocos2dx_Layer_setAccelerometerEnabled(lua_State* L) goto tolua_lerror; #endif - self = static_cast(tolua_tousertype(L, 1, 0)); + self = static_cast(tolua_tousertype(L, 1, 0)); #if COCOS2D_DEBUG >= 1 if (nullptr == self) @@ -1170,7 +1170,7 @@ static int lua_cocos2dx_Layer_isAccelerometerEnabled(lua_State* L) goto tolua_lerror; #endif - self = static_cast(tolua_tousertype(L, 1, 0)); + self = static_cast(tolua_tousertype(L, 1, 0)); #if COCOS2D_DEBUG >= 1 if (nullptr == self) @@ -1212,7 +1212,7 @@ static int lua_cocos2dx_Layer_setAccelerometerInterval(lua_State* L) goto tolua_lerror; #endif - self = static_cast(tolua_tousertype(L, 1, 0)); + self = static_cast(tolua_tousertype(L, 1, 0)); #if COCOS2D_DEBUG >= 1 if (nullptr == self) @@ -1259,7 +1259,7 @@ static int tolua_cocos2d_Layer_registerScriptTouchHandler(lua_State* tolua_S) goto tolua_lerror; #endif - self = static_cast(tolua_tousertype(tolua_S, 1, 0)); + self = static_cast(tolua_tousertype(tolua_S, 1, 0)); #if COCOS2D_DEBUG >= 1 if (nullptr == self) @@ -1352,7 +1352,7 @@ static int tolua_cocos2d_Layer_unregisterScriptTouchHandler(lua_State* tolua_S) goto tolua_lerror; #endif - self = static_cast(tolua_tousertype(tolua_S, 1, 0)); + self = static_cast(tolua_tousertype(tolua_S, 1, 0)); #if COCOS2D_DEBUG >= 1 if (nullptr == self) @@ -1396,7 +1396,7 @@ static int tolua_cocos2d_Layer_registerScriptKeypadHandler(lua_State* tolua_S) goto tolua_lerror; #endif - self = static_cast(tolua_tousertype(tolua_S, 1, 0)); + self = static_cast(tolua_tousertype(tolua_S, 1, 0)); #if COCOS2D_DEBUG >= 1 if (nullptr == self) @@ -1446,7 +1446,7 @@ static int tolua_cocos2d_Layer_unregisterScriptKeypadHandler(lua_State* tolua_S) goto tolua_lerror; #endif - self = static_cast(tolua_tousertype(tolua_S, 1, 0)); + self = static_cast(tolua_tousertype(tolua_S, 1, 0)); #if COCOS2D_DEBUG >= 1 if (nullptr == self) @@ -1490,7 +1490,7 @@ static int tolua_cocos2d_Layer_registerScriptAccelerateHandler(lua_State* tolua_ goto tolua_lerror; #endif - self = static_cast(tolua_tousertype(tolua_S, 1, 0)); + self = static_cast(tolua_tousertype(tolua_S, 1, 0)); #if COCOS2D_DEBUG >= 1 if (nullptr == self) @@ -1541,7 +1541,7 @@ static int tolua_cocos2d_Layer_unregisterScriptAccelerateHandler(lua_State* tolu goto tolua_lerror; #endif - self = static_cast(tolua_tousertype(tolua_S, 1, 0)); + self = static_cast(tolua_tousertype(tolua_S, 1, 0)); #if COCOS2D_DEBUG >= 1 if (nullptr == self) @@ -1587,7 +1587,7 @@ static int tolua_cocos2d_Scheduler_scheduleScriptFunc(lua_State* tolua_S) goto tolua_lerror; #endif - self = static_cast(tolua_tousertype(tolua_S, 1, 0)); + self = static_cast(tolua_tousertype(tolua_S, 1, 0)); #if COCOS2D_DEBUG >= 1 if (nullptr == self) @@ -1640,7 +1640,7 @@ static int tolua_cocos2d_Scheduler_unscheduleScriptEntry(lua_State* tolua_S) goto tolua_lerror; #endif - self = static_cast(tolua_tousertype(tolua_S, 1, 0)); + self = static_cast(tolua_tousertype(tolua_S, 1, 0)); #if COCOS2D_DEBUG >= 1 if (nullptr == self) @@ -1679,7 +1679,7 @@ tolua_lerror: static int tolua_cocos2d_RenderTexture_newImage(lua_State* tolua_S) { int argc = 0; - cocos2d::RenderTexture* cobj = nullptr; + axis::RenderTexture* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -1691,7 +1691,7 @@ static int tolua_cocos2d_RenderTexture_newImage(lua_State* tolua_S) goto tolua_lerror; #endif - cobj = (cocos2d::RenderTexture*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::RenderTexture*)tolua_tousertype(tolua_S, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1713,7 +1713,7 @@ static int tolua_cocos2d_RenderTexture_newImage(lua_State* tolua_S) } #endif LUA_FUNCTION handler = toluafix_ref_function(tolua_S, 2, 0); - auto callback = [=](RefPtr image) { + auto callback = [=](RefPtr image) { auto stack = LuaEngine::getInstance()->getLuaStack(); stack->pushObject(image, "cc.Image"); stack->executeFunctionByHandler(handler, 1); @@ -1777,8 +1777,8 @@ int tolua_cocos2d_Sequence_create(lua_State* tolua_S) goto tolua_lerror; #endif - cocos2d::FiniteTimeAction* item = - static_cast(tolua_tousertype(tolua_S, 1 + i, nullptr)); + axis::FiniteTimeAction* item = + static_cast(tolua_tousertype(tolua_S, 1 + i, nullptr)); if (nullptr != item) { array.pushBack(item); @@ -1787,7 +1787,7 @@ int tolua_cocos2d_Sequence_create(lua_State* tolua_S) } } - cocos2d::Sequence* tolua_ret = cocos2d::Sequence::create(array); + axis::Sequence* tolua_ret = axis::Sequence::create(array); // issue 2433 uncheck int nID = (tolua_ret) ? (int)tolua_ret->_ID : -1; int* pLuaID = (tolua_ret) ? &tolua_ret->_luaID : nullptr; @@ -1912,7 +1912,7 @@ static int tolua_cocos2d_Node_registerScriptHandler(lua_State* tolua_S) goto tolua_lerror; #endif - self = static_cast(tolua_tousertype(tolua_S, 1, 0)); + self = static_cast(tolua_tousertype(tolua_S, 1, 0)); #if COCOS2D_DEBUG >= 1 if (nullptr == self) { @@ -1961,7 +1961,7 @@ static int tolua_cocos2d_Node_unregisterScriptHandler(lua_State* tolua_S) goto tolua_lerror; #endif - self = static_cast(tolua_tousertype(tolua_S, 1, 0)); + self = static_cast(tolua_tousertype(tolua_S, 1, 0)); #if COCOS2D_DEBUG >= 1 if (nullptr == self) { @@ -2003,7 +2003,7 @@ static int tolua_Cocos2d_Node_scheduleUpdateWithPriorityLua(lua_State* tolua_S) goto tolua_lerror; #endif - self = static_cast(tolua_tousertype(tolua_S, 1, 0)); + self = static_cast(tolua_tousertype(tolua_S, 1, 0)); #if COCOS2D_DEBUG >= 1 if (nullptr == self) { @@ -2055,7 +2055,7 @@ static int tolua_cocos2d_Node_unscheduleUpdate(lua_State* tolua_S) goto tolua_lerror; #endif - self = static_cast(tolua_tousertype(tolua_S, 1, 0)); + self = static_cast(tolua_tousertype(tolua_S, 1, 0)); #if COCOS2D_DEBUG >= 1 if (nullptr == self) { @@ -2086,7 +2086,7 @@ tolua_lerror: int tolua_cocos2d_Node_setContentSize(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = NULL; + axis::Node* cobj = NULL; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -2095,7 +2095,7 @@ int tolua_cocos2d_Node_setContentSize(lua_State* tolua_S) if (!tolua_isusertype(tolua_S, 1, "cc.Node", 0, &tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::Node*)tolua_tousertype(tolua_S, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -2107,7 +2107,7 @@ int tolua_cocos2d_Node_setContentSize(lua_State* tolua_S) if (1 == argc) { - cocos2d::Size size; + axis::Size size; ok &= luaval_to_size(tolua_S, 2, &size, "cc.Node:setContentSize"); if (!ok) return 0; @@ -2147,7 +2147,7 @@ tolua_lerror: int tolua_cocos2d_Node_setAnchorPoint(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = NULL; + axis::Node* cobj = NULL; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -2156,7 +2156,7 @@ int tolua_cocos2d_Node_setAnchorPoint(lua_State* tolua_S) if (!tolua_isusertype(tolua_S, 1, "cc.Node", 0, &tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::Node*)tolua_tousertype(tolua_S, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -2168,7 +2168,7 @@ int tolua_cocos2d_Node_setAnchorPoint(lua_State* tolua_S) if (1 == argc) { - cocos2d::Vec2 pt; + axis::Vec2 pt; ok &= luaval_to_vec2(tolua_S, 2, &pt, "cc.Node:setAnchorPoint"); if (!ok) return 0; @@ -2191,7 +2191,7 @@ int tolua_cocos2d_Node_setAnchorPoint(lua_State* tolua_S) if (!ok) return 0; - cobj->setAnchorPoint(cocos2d::Vec2((float)x, (float)y)); + cobj->setAnchorPoint(axis::Vec2((float)x, (float)y)); lua_settop(tolua_S, 1); return 1; } @@ -2219,7 +2219,7 @@ static int tolua_cocos2d_Node_getPosition(lua_State* tolua_S) goto tolua_lerror; #endif - self = static_cast(tolua_tousertype(tolua_S, 1, 0)); + self = static_cast(tolua_tousertype(tolua_S, 1, 0)); #if COCOS2D_DEBUG >= 1 if (nullptr == self) { @@ -2261,7 +2261,7 @@ tolua_lerror: static int lua_cocos2dx_Node_enumerateChildren(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -2272,7 +2272,7 @@ static int lua_cocos2dx_Node_enumerateChildren(lua_State* tolua_S) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::Node*)tolua_tousertype(tolua_S, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2323,7 +2323,7 @@ tolua_lerror: int lua_cocos2dx_Node_setAdditionalTransform(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -2333,7 +2333,7 @@ int lua_cocos2dx_Node_setAdditionalTransform(lua_State* tolua_S) if (!tolua_isusertype(tolua_S, 1, "cc.Node", 0, &tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::Node*)tolua_tousertype(tolua_S, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -2346,7 +2346,7 @@ int lua_cocos2dx_Node_setAdditionalTransform(lua_State* tolua_S) { if (argc == 1) { - cocos2d::AffineTransform arg0; + axis::AffineTransform arg0; ok &= luaval_to_affinetransform(tolua_S, 2, &arg0, "cc.Node:setAdditionalTransform"); if (!ok) @@ -2363,7 +2363,7 @@ int lua_cocos2dx_Node_setAdditionalTransform(lua_State* tolua_S) { if (argc == 1) { - cocos2d::Mat4 arg0; + axis::Mat4 arg0; ok &= luaval_to_mat4(tolua_S, 2, &arg0, "cc.Node:setAdditionalTransform"); if (!ok) @@ -2391,7 +2391,7 @@ tolua_lerror: int lua_cocos2dx_Node_setRotationQuat(lua_State* tolua_S) { int argc = 0; - cocos2d::Node* cobj = nullptr; + axis::Node* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -2401,7 +2401,7 @@ int lua_cocos2dx_Node_setRotationQuat(lua_State* tolua_S) if (!tolua_isusertype(tolua_S, 1, "cc.Node", 0, &tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Node*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::Node*)tolua_tousertype(tolua_S, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -2414,7 +2414,7 @@ int lua_cocos2dx_Node_setRotationQuat(lua_State* tolua_S) { if (argc == 1) { - cocos2d::Quaternion arg0; + axis::Quaternion arg0; ok &= luaval_to_quaternion(tolua_S, 2, &arg0, "cc.Node:setRotationQuat"); if (!ok) @@ -2444,7 +2444,7 @@ tolua_lerror: int lua_cocos2dx_Scene_setNavMeshDebugCamera(lua_State* tolua_S) { int argc = 0; - cocos2d::Scene* cobj = nullptr; + axis::Scene* cobj = nullptr; bool ok = true; # if COCOS2D_DEBUG >= 1 @@ -2456,7 +2456,7 @@ int lua_cocos2dx_Scene_setNavMeshDebugCamera(lua_State* tolua_S) goto tolua_lerror; # endif - cobj = (cocos2d::Scene*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::Scene*)tolua_tousertype(tolua_S, 1, 0); # if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2469,9 +2469,9 @@ int lua_cocos2dx_Scene_setNavMeshDebugCamera(lua_State* tolua_S) argc = lua_gettop(tolua_S) - 1; if (argc == 1) { - cocos2d::Camera* arg0; + axis::Camera* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.Camera", &arg0, "cc.Scene:setNavMeshDebugCamera"); + ok &= luaval_to_object(tolua_S, 2, "cc.Camera", &arg0, "cc.Scene:setNavMeshDebugCamera"); if (!ok) { tolua_error(tolua_S, "invalid arguments in function 'lua_cocos2dx_Scene_setNavMeshDebugCamera'", nullptr); @@ -2495,7 +2495,7 @@ tolua_lerror: int lua_cocos2dx_Scene_setNavMesh(lua_State* tolua_S) { int argc = 0; - cocos2d::Scene* cobj = nullptr; + axis::Scene* cobj = nullptr; bool ok = true; # if COCOS2D_DEBUG >= 1 @@ -2507,7 +2507,7 @@ int lua_cocos2dx_Scene_setNavMesh(lua_State* tolua_S) goto tolua_lerror; # endif - cobj = (cocos2d::Scene*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::Scene*)tolua_tousertype(tolua_S, 1, 0); # if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2520,9 +2520,9 @@ int lua_cocos2dx_Scene_setNavMesh(lua_State* tolua_S) argc = lua_gettop(tolua_S) - 1; if (argc == 1) { - cocos2d::NavMesh* arg0; + axis::NavMesh* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.NavMesh", &arg0, "cc.Scene:setNavMesh"); + ok &= luaval_to_object(tolua_S, 2, "cc.NavMesh", &arg0, "cc.Scene:setNavMesh"); if (!ok) { tolua_error(tolua_S, "invalid arguments in function 'lua_cocos2dx_Scene_setNavMesh'", nullptr); @@ -2546,7 +2546,7 @@ tolua_lerror: int lua_cocos2dx_Scene_getNavMesh(lua_State* tolua_S) { int argc = 0; - cocos2d::Scene* cobj = nullptr; + axis::Scene* cobj = nullptr; bool ok = true; # if COCOS2D_DEBUG >= 1 @@ -2558,7 +2558,7 @@ int lua_cocos2dx_Scene_getNavMesh(lua_State* tolua_S) goto tolua_lerror; # endif - cobj = (cocos2d::Scene*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::Scene*)tolua_tousertype(tolua_S, 1, 0); # if COCOS2D_DEBUG >= 1 if (!cobj) @@ -2576,8 +2576,8 @@ int lua_cocos2dx_Scene_getNavMesh(lua_State* tolua_S) tolua_error(tolua_S, "invalid arguments in function 'lua_cocos2dx_Scene_getNavMesh'", nullptr); return 0; } - cocos2d::NavMesh* ret = cobj->getNavMesh(); - object_to_luaval(tolua_S, "cc.NavMesh", (cocos2d::NavMesh*)ret); + axis::NavMesh* ret = cobj->getNavMesh(); + object_to_luaval(tolua_S, "cc.NavMesh", (axis::NavMesh*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Scene:getNavMesh", argc, 0); @@ -2626,8 +2626,8 @@ static int tolua_cocos2d_Spawn_create(lua_State* tolua_S) goto tolua_lerror; #endif - cocos2d::FiniteTimeAction* item = - static_cast(tolua_tousertype(tolua_S, 1 + i, NULL)); + axis::FiniteTimeAction* item = + static_cast(tolua_tousertype(tolua_S, 1 + i, NULL)); if (NULL != item) { array.pushBack(item); @@ -2636,7 +2636,7 @@ static int tolua_cocos2d_Spawn_create(lua_State* tolua_S) } } - cocos2d::Spawn* tolua_ret = cocos2d::Spawn::create(array); + axis::Spawn* tolua_ret = axis::Spawn::create(array); int nID = (tolua_ret) ? (int)tolua_ret->_ID : -1; int* pLuaID = (tolua_ret) ? &tolua_ret->_luaID : NULL; toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret, "cc.Spawn"); @@ -2677,7 +2677,7 @@ int lua_cocos2d_CardinalSplineBy_create(lua_State* tolua_S) return 0; int num = 0; - cocos2d::Vec2* arr = NULL; + axis::Vec2* arr = NULL; ok &= luaval_to_array_of_vec2(tolua_S, 3, &arr, &num, "cc.CardinalSplineBy:create"); if (!ok) return 0; @@ -2752,7 +2752,7 @@ int tolua_cocos2d_CatmullRomBy_create(lua_State* tolua_S) return 0; int num = 0; - cocos2d::Vec2* arr = NULL; + axis::Vec2* arr = NULL; ok &= luaval_to_array_of_vec2(tolua_S, 3, &arr, &num, "cc.CatmullRomBy:create"); if (!ok) return 0; @@ -2818,7 +2818,7 @@ int tolua_cocos2d_CatmullRomTo_create(lua_State* tolua_S) return 0; int num = 0; - cocos2d::Vec2* arr = NULL; + axis::Vec2* arr = NULL; ok &= luaval_to_array_of_vec2(tolua_S, 3, &arr, &num, "cc.CatmullRomTo:create"); if (!ok) return 0; @@ -2884,7 +2884,7 @@ int tolua_cocos2d_BezierBy_create(lua_State* tolua_S) return 0; int num = 0; - cocos2d::Vec2* arr = NULL; + axis::Vec2* arr = NULL; ok &= luaval_to_array_of_vec2(tolua_S, 3, &arr, &num, "cc.BezierBy:create"); if (!ok) return 0; @@ -2945,7 +2945,7 @@ int tolua_cocos2d_BezierTo_create(lua_State* tolua_S) return 0; int num = 0; - cocos2d::Vec2* arr = NULL; + axis::Vec2* arr = NULL; ok &= luaval_to_array_of_vec2(tolua_S, 3, &arr, &num, "cc.BezierTo:create"); if (!ok) return 0; @@ -2996,7 +2996,7 @@ static int tolua_cocos2dx_DrawNode_drawPolygon(lua_State* tolua_S) goto tolua_lerror; #endif - self = static_cast(tolua_tousertype(tolua_S, 1, 0)); + self = static_cast(tolua_tousertype(tolua_S, 1, 0)); #if COCOS2D_DEBUG >= 1 if (nullptr == self) { @@ -3019,7 +3019,7 @@ static int tolua_cocos2dx_DrawNode_drawPolygon(lua_State* tolua_S) int size = lua_tointeger(tolua_S, 3); if (size > 0) { - cocos2d::Vec2* points = new cocos2d::Vec2[size]; + axis::Vec2* points = new axis::Vec2[size]; for (int i = 0; i < size; i++) { lua_pushnumber(tolua_S, i + 1); @@ -3076,7 +3076,7 @@ tolua_lerror: int tolua_cocos2dx_DrawNode_drawSolidPoly(lua_State* tolua_S) { int argc = 0; - cocos2d::DrawNode* self = nullptr; + axis::DrawNode* self = nullptr; bool ok = true; tolua_Error tolua_err; @@ -3086,7 +3086,7 @@ int tolua_cocos2dx_DrawNode_drawSolidPoly(lua_State* tolua_S) goto tolua_lerror; #endif - self = (cocos2d::DrawNode*)tolua_tousertype(tolua_S, 1, 0); + self = (axis::DrawNode*)tolua_tousertype(tolua_S, 1, 0); #if COCOS2D_DEBUG >= 1 if (!self) @@ -3103,7 +3103,7 @@ int tolua_cocos2dx_DrawNode_drawSolidPoly(lua_State* tolua_S) luaval_to_uint32(tolua_S, 3, &size, "cc.DrawNode:drawSolidPoly"); if (size > 0) { - cocos2d::Vec2* points = new cocos2d::Vec2[size]; + axis::Vec2* points = new axis::Vec2[size]; for (unsigned int i = 0; i < size; i++) { lua_pushnumber(tolua_S, i + 1); @@ -3125,7 +3125,7 @@ int tolua_cocos2dx_DrawNode_drawSolidPoly(lua_State* tolua_S) lua_pop(tolua_S, 1); } - cocos2d::Color4F arg2; + axis::Color4F arg2; ok &= luaval_to_color4f(tolua_S, 4, &arg2, "cc.DrawNode:drawSolidPoly"); if (!ok) @@ -3164,7 +3164,7 @@ int tolua_cocos2dx_DrawNode_drawPoly(lua_State* tolua_S) goto tolua_lerror; #endif - self = static_cast(tolua_tousertype(tolua_S, 1, 0)); + self = static_cast(tolua_tousertype(tolua_S, 1, 0)); #if COCOS2D_DEBUG >= 1 if (!self) @@ -3181,7 +3181,7 @@ int tolua_cocos2dx_DrawNode_drawPoly(lua_State* tolua_S) luaval_to_uint32(tolua_S, 3, &size, "cc.DrawNode:drawPoly"); if (size > 0) { - cocos2d::Vec2* points = new cocos2d::Vec2[size]; + axis::Vec2* points = new axis::Vec2[size]; for (unsigned int i = 0; i < size; i++) { lua_pushnumber(tolua_S, i + 1); @@ -3204,7 +3204,7 @@ int tolua_cocos2dx_DrawNode_drawPoly(lua_State* tolua_S) } bool arg2; - cocos2d::Color4F arg3; + axis::Color4F arg3; ok &= luaval_to_boolean(tolua_S, 4, &arg2, "cc.DrawNode:drawPoly"); @@ -3232,7 +3232,7 @@ tolua_lerror: int tolua_cocos2dx_DrawNode_drawCardinalSpline(lua_State* tolua_S) { int argc = 0; - cocos2d::DrawNode* self = nullptr; + axis::DrawNode* self = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3241,7 +3241,7 @@ int tolua_cocos2dx_DrawNode_drawCardinalSpline(lua_State* tolua_S) goto tolua_lerror; #endif - self = (cocos2d::DrawNode*)tolua_tousertype(tolua_S, 1, 0); + self = (axis::DrawNode*)tolua_tousertype(tolua_S, 1, 0); #if COCOS2D_DEBUG >= 1 if (!self) @@ -3255,7 +3255,7 @@ int tolua_cocos2dx_DrawNode_drawCardinalSpline(lua_State* tolua_S) if (argc == 4) { int num = 0; - cocos2d::Vec2* arr = NULL; + axis::Vec2* arr = NULL; if (!luaval_to_array_of_vec2(tolua_S, 2, &arr, &num, "cc.DrawNode:drawCardinalSpline")) return 0; PointArray* config = PointArray::create(num); @@ -3273,7 +3273,7 @@ int tolua_cocos2dx_DrawNode_drawCardinalSpline(lua_State* tolua_S) double arg1; unsigned int arg2; - cocos2d::Color4F arg3; + axis::Color4F arg3; ok &= luaval_to_number(tolua_S, 3, &arg1, "cc.DrawNode:drawCardinalSpline"); @@ -3300,7 +3300,7 @@ tolua_lerror: int tolua_cocos2dx_DrawNode_drawCatmullRom(lua_State* tolua_S) { int argc = 0; - cocos2d::DrawNode* self = nullptr; + axis::DrawNode* self = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3309,7 +3309,7 @@ int tolua_cocos2dx_DrawNode_drawCatmullRom(lua_State* tolua_S) goto tolua_lerror; #endif - self = (cocos2d::DrawNode*)tolua_tousertype(tolua_S, 1, 0); + self = (axis::DrawNode*)tolua_tousertype(tolua_S, 1, 0); #if COCOS2D_DEBUG >= 1 if (!self) @@ -3323,7 +3323,7 @@ int tolua_cocos2dx_DrawNode_drawCatmullRom(lua_State* tolua_S) if (argc == 3) { int num = 0; - cocos2d::Vec2* arr = NULL; + axis::Vec2* arr = NULL; if (!luaval_to_array_of_vec2(tolua_S, 2, &arr, &num, "cc.DrawNode:drawCatmullRom")) return 0; PointArray* config = PointArray::create(num); @@ -3340,7 +3340,7 @@ int tolua_cocos2dx_DrawNode_drawCatmullRom(lua_State* tolua_S) CC_SAFE_DELETE_ARRAY(arr); unsigned int arg1; - cocos2d::Color4F arg2; + axis::Color4F arg2; ok &= luaval_to_uint32(tolua_S, 3, &arg1, "cc.DrawNode:drawCatmullRom"); @@ -3366,7 +3366,7 @@ tolua_lerror: int tolua_cocos2dx_DrawNode_drawPoints(lua_State* tolua_S) { int argc = 0; - cocos2d::DrawNode* self = nullptr; + axis::DrawNode* self = nullptr; bool ok = true; tolua_Error tolua_err; @@ -3376,7 +3376,7 @@ int tolua_cocos2dx_DrawNode_drawPoints(lua_State* tolua_S) goto tolua_lerror; #endif - self = (cocos2d::DrawNode*)tolua_tousertype(tolua_S, 1, 0); + self = (axis::DrawNode*)tolua_tousertype(tolua_S, 1, 0); #if COCOS2D_DEBUG >= 1 if (!self) @@ -3393,7 +3393,7 @@ int tolua_cocos2dx_DrawNode_drawPoints(lua_State* tolua_S) luaval_to_uint32(tolua_S, 3, &size, "cc.DrawNode:drawPoints"); if (size > 0) { - cocos2d::Vec2* points = new cocos2d::Vec2[size]; + axis::Vec2* points = new axis::Vec2[size]; for (unsigned int i = 0; i < size; i++) { lua_pushnumber(tolua_S, i + 1); @@ -3415,7 +3415,7 @@ int tolua_cocos2dx_DrawNode_drawPoints(lua_State* tolua_S) lua_pop(tolua_S, 1); } - cocos2d::Color4F arg2; + axis::Color4F arg2; ok &= luaval_to_color4f(tolua_S, 4, &arg2, "cc.DrawNode:drawPoints"); if (!ok) @@ -3430,7 +3430,7 @@ int tolua_cocos2dx_DrawNode_drawPoints(lua_State* tolua_S) luaval_to_uint32(tolua_S, 3, &size, "cc.DrawNode:drawPoints"); if (size > 0) { - cocos2d::Vec2* points = new cocos2d::Vec2[size]; + axis::Vec2* points = new axis::Vec2[size]; for (unsigned int i = 0; i < size; i++) { lua_pushnumber(tolua_S, i + 1); @@ -3453,7 +3453,7 @@ int tolua_cocos2dx_DrawNode_drawPoints(lua_State* tolua_S) } float pointSize = (float)tolua_tonumber(tolua_S, 4, 0); - cocos2d::Color4F color; + axis::Color4F color; ok &= luaval_to_color4f(tolua_S, 5, &color, "cc.DrawNode:drawPoints"); if (!ok) return 0; @@ -3726,7 +3726,7 @@ static int tolua_cocos2dx_SpriteBatchNode_getDescendants(lua_State* tolua_S) return 0; int argc = 0; - cocos2d::SpriteBatchNode* cobj = nullptr; + axis::SpriteBatchNode* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -3738,7 +3738,7 @@ static int tolua_cocos2dx_SpriteBatchNode_getDescendants(lua_State* tolua_S) goto tolua_lerror; #endif - cobj = (cocos2d::SpriteBatchNode*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::SpriteBatchNode*)tolua_tousertype(tolua_S, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3791,7 +3791,7 @@ tolua_lerror: int lua_cocos2dx_Scene_getPhysics3DWorld(lua_State* tolua_S) { int argc = 0; - cocos2d::Scene* cobj = nullptr; + axis::Scene* cobj = nullptr; bool ok = true; # if COCOS2D_DEBUG >= 1 @@ -3803,7 +3803,7 @@ int lua_cocos2dx_Scene_getPhysics3DWorld(lua_State* tolua_S) goto tolua_lerror; # endif - cobj = (cocos2d::Scene*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::Scene*)tolua_tousertype(tolua_S, 1, 0); # if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3821,8 +3821,8 @@ int lua_cocos2dx_Scene_getPhysics3DWorld(lua_State* tolua_S) tolua_error(tolua_S, "invalid arguments in function 'lua_cocos2dx_Scene_getPhysics3DWorld'", nullptr); return 0; } - cocos2d::Physics3DWorld* ret = cobj->getPhysics3DWorld(); - object_to_luaval(tolua_S, "cc.Physics3DWorld", (cocos2d::Physics3DWorld*)ret); + axis::Physics3DWorld* ret = cobj->getPhysics3DWorld(); + object_to_luaval(tolua_S, "cc.Physics3DWorld", (axis::Physics3DWorld*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "cc.Scene:getPhysics3DWorld", argc, @@ -3840,7 +3840,7 @@ tolua_lerror: int lua_cocos2dx_Scene_setPhysics3DDebugCamera(lua_State* tolua_S) { int argc = 0; - cocos2d::Scene* cobj = nullptr; + axis::Scene* cobj = nullptr; bool ok = true; # if COCOS2D_DEBUG >= 1 @@ -3852,7 +3852,7 @@ int lua_cocos2dx_Scene_setPhysics3DDebugCamera(lua_State* tolua_S) goto tolua_lerror; # endif - cobj = (cocos2d::Scene*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::Scene*)tolua_tousertype(tolua_S, 1, 0); # if COCOS2D_DEBUG >= 1 if (!cobj) @@ -3872,7 +3872,7 @@ int lua_cocos2dx_Scene_setPhysics3DDebugCamera(lua_State* tolua_S) } # endif - cocos2d::Camera* camera = (cocos2d::Camera*)tolua_tousertype(tolua_S, 2, 0); + axis::Camera* camera = (axis::Camera*)tolua_tousertype(tolua_S, 2, 0); cobj->setPhysics3DDebugCamera(camera); return 0; } @@ -4271,7 +4271,7 @@ static void extendDrawNode(lua_State* tolua_S) int lua_cocos2dx_Sprite_initWithPolygon(lua_State* tolua_S) { int argc = 0; - cocos2d::Sprite* cobj = nullptr; + axis::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4283,7 +4283,7 @@ int lua_cocos2dx_Sprite_initWithPolygon(lua_State* tolua_S) goto tolua_lerror; #endif - cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::Sprite*)tolua_tousertype(tolua_S, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4296,9 +4296,9 @@ int lua_cocos2dx_Sprite_initWithPolygon(lua_State* tolua_S) argc = lua_gettop(tolua_S) - 1; if (argc == 1) { - cocos2d::PolygonInfo* arg0; + axis::PolygonInfo* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.PolygonInfo", &arg0, "cc.Sprite:initWithPolygon"); + ok &= luaval_to_object(tolua_S, 2, "cc.PolygonInfo", &arg0, "cc.Sprite:initWithPolygon"); if (!ok) { tolua_error(tolua_S, "invalid arguments in function 'lua_cocos2dx_Sprite_initWithPolygon'", nullptr); @@ -4322,7 +4322,7 @@ tolua_lerror: int lua_cocos2dx_Sprite_setPolygonInfo(lua_State* tolua_S) { int argc = 0; - cocos2d::Sprite* cobj = nullptr; + axis::Sprite* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -4334,7 +4334,7 @@ int lua_cocos2dx_Sprite_setPolygonInfo(lua_State* tolua_S) goto tolua_lerror; #endif - cobj = (cocos2d::Sprite*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::Sprite*)tolua_tousertype(tolua_S, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -4347,9 +4347,9 @@ int lua_cocos2dx_Sprite_setPolygonInfo(lua_State* tolua_S) argc = lua_gettop(tolua_S) - 1; if (argc == 1) { - cocos2d::PolygonInfo* arg0; + axis::PolygonInfo* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.PolygonInfo", &arg0, "cc.Sprite:setPolygonInfo"); + ok &= luaval_to_object(tolua_S, 2, "cc.PolygonInfo", &arg0, "cc.Sprite:setPolygonInfo"); if (!ok) { tolua_error(tolua_S, "invalid arguments in function 'lua_cocos2dx_Sprite_setPolygonInfo'", nullptr); @@ -4395,8 +4395,8 @@ int lua_cocos2dx_Sprite_create(lua_State* tolua_S) { break; } - cocos2d::Sprite* ret = cocos2d::Sprite::create(arg0); - object_to_luaval(tolua_S, "cc.Sprite", (cocos2d::Sprite*)ret); + axis::Sprite* ret = axis::Sprite::create(arg0); + object_to_luaval(tolua_S, "cc.Sprite", (axis::Sprite*)ret); return 1; } } while (0); @@ -4405,8 +4405,8 @@ int lua_cocos2dx_Sprite_create(lua_State* tolua_S) { if (argc == 0) { - cocos2d::Sprite* ret = cocos2d::Sprite::create(); - object_to_luaval(tolua_S, "cc.Sprite", (cocos2d::Sprite*)ret); + axis::Sprite* ret = axis::Sprite::create(); + object_to_luaval(tolua_S, "cc.Sprite", (axis::Sprite*)ret); return 1; } } while (0); @@ -4415,14 +4415,14 @@ int lua_cocos2dx_Sprite_create(lua_State* tolua_S) { if (argc == 1) { - cocos2d::PolygonInfo* arg0; - ok &= luaval_to_object(tolua_S, 2, "cc.PolygonInfo", &arg0, "cc.Sprite:create"); + axis::PolygonInfo* arg0; + ok &= luaval_to_object(tolua_S, 2, "cc.PolygonInfo", &arg0, "cc.Sprite:create"); if (!ok) { break; } - cocos2d::Sprite* ret = cocos2d::Sprite::create(*arg0); - object_to_luaval(tolua_S, "cc.Sprite", (cocos2d::Sprite*)ret); + axis::Sprite* ret = axis::Sprite::create(*arg0); + object_to_luaval(tolua_S, "cc.Sprite", (axis::Sprite*)ret); return 1; } } while (0); @@ -4437,14 +4437,14 @@ int lua_cocos2dx_Sprite_create(lua_State* tolua_S) { break; } - cocos2d::Rect arg1; + axis::Rect arg1; ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.Sprite:create"); if (!ok) { break; } - cocos2d::Sprite* ret = cocos2d::Sprite::create(arg0, arg1); - object_to_luaval(tolua_S, "cc.Sprite", (cocos2d::Sprite*)ret); + axis::Sprite* ret = axis::Sprite::create(arg0, arg1); + object_to_luaval(tolua_S, "cc.Sprite", (axis::Sprite*)ret); return 1; } } while (0); @@ -4527,7 +4527,7 @@ static void extendSpriteBatchNode(lua_State* tolua_S) lua_pop(tolua_S, 1); } -NS_CC_BEGIN +NS_AX_BEGIN EventListenerAcceleration* LuaEventListenerAcceleration::create() { EventListenerAcceleration* eventAcceleration = new EventListenerAcceleration(); @@ -4562,7 +4562,7 @@ EventListenerCustom* LuaEventListenerCustom::create(std::string_view eventName) } return eventCustom; } -NS_CC_END +NS_AX_END static int tolua_cocos2dx_LuaEventListenerAcceleration_create(lua_State* tolua_S) { @@ -4587,7 +4587,7 @@ static int tolua_cocos2dx_LuaEventListenerAcceleration_create(lua_State* tolua_S } #endif LUA_FUNCTION handler = toluafix_ref_function(tolua_S, 2, 0); - cocos2d::EventListenerAcceleration* tolua_ret = cocos2d::LuaEventListenerAcceleration::create(); + axis::EventListenerAcceleration* tolua_ret = axis::LuaEventListenerAcceleration::create(); ScriptHandlerMgr::getInstance()->addObjectHandler((void*)tolua_ret, handler, ScriptHandlerMgr::HandlerType::EVENT_ACC); int ID = (tolua_ret) ? (int)tolua_ret->_ID : -1; @@ -4633,7 +4633,7 @@ static int tolua_cocos2d_LuaEventListenerCustom_create(lua_State* tolua_S) #endif auto eventName = axislua_tosv(tolua_S, 2); LUA_FUNCTION handler = toluafix_ref_function(tolua_S, 3, 0); - cocos2d::EventListenerCustom* tolua_ret = LuaEventListenerCustom::create(eventName); + axis::EventListenerCustom* tolua_ret = LuaEventListenerCustom::create(eventName); ScriptHandlerMgr::getInstance()->addObjectHandler((void*)tolua_ret, handler, ScriptHandlerMgr::HandlerType::EVENT_CUSTIOM); @@ -4693,7 +4693,7 @@ static int tolua_cocos2dx_EventListenerKeyboard_create(lua_State* tolua_S) if (argc == 0) { - cocos2d::EventListenerKeyboard* tolua_ret = cocos2d::EventListenerKeyboard::create(); + axis::EventListenerKeyboard* tolua_ret = axis::EventListenerKeyboard::create(); if (nullptr == tolua_ret) return 0; @@ -4726,7 +4726,7 @@ static void cloneKeyboardHandler(const EventListenerKeyboard* src, if (0 != handler) { int newscriptHandler = - cocos2d::ScriptEngineManager::getInstance()->getScriptEngine()->reallocateScriptHandler(handler); + axis::ScriptEngineManager::getInstance()->getScriptEngine()->reallocateScriptHandler(handler); ScriptHandlerMgr::getInstance()->addObjectHandler((void*)dst, newscriptHandler, type); switch (type) @@ -4781,7 +4781,7 @@ static int tolua_cocos2dx_EventListenerKeyboard_clone(lua_State* tolua_S) if (argc == 0) { - cocos2d::EventListenerKeyboard* tolua_ret = cocos2d::EventListenerKeyboard::create(); + axis::EventListenerKeyboard* tolua_ret = axis::EventListenerKeyboard::create(); if (nullptr == tolua_ret) return 0; @@ -4914,7 +4914,7 @@ static int tolua_cocos2dx_EventListenerTouchOneByOne_create(lua_State* tolua_S) if (argc == 0) { - cocos2d::EventListenerTouchOneByOne* tolua_ret = cocos2d::EventListenerTouchOneByOne::create(); + axis::EventListenerTouchOneByOne* tolua_ret = axis::EventListenerTouchOneByOne::create(); if (nullptr == tolua_ret) return 0; @@ -4947,7 +4947,7 @@ static void cloneTouchOneByOneHandler(const EventListenerTouchOneByOne* src, if (0 != handler) { int newscriptHandler = - cocos2d::ScriptEngineManager::getInstance()->getScriptEngine()->reallocateScriptHandler(handler); + axis::ScriptEngineManager::getInstance()->getScriptEngine()->reallocateScriptHandler(handler); ScriptHandlerMgr::getInstance()->addObjectHandler((void*)dst, newscriptHandler, type); switch (type) @@ -5020,7 +5020,7 @@ static int tolua_cocos2dx_EventListenerTouchOneByOne_clone(lua_State* tolua_S) if (argc == 0) { - cocos2d::EventListenerTouchOneByOne* tolua_ret = cocos2d::EventListenerTouchOneByOne::create(); + axis::EventListenerTouchOneByOne* tolua_ret = axis::EventListenerTouchOneByOne::create(); if (nullptr == tolua_ret) return 0; @@ -5179,7 +5179,7 @@ static int tolua_cocos2dx_EventListenerTouchAllAtOnce_create(lua_State* tolua_S) if (argc == 0) { - cocos2d::EventListenerTouchAllAtOnce* tolua_ret = cocos2d::EventListenerTouchAllAtOnce::create(); + axis::EventListenerTouchAllAtOnce* tolua_ret = axis::EventListenerTouchAllAtOnce::create(); if (nullptr == tolua_ret) return 0; @@ -5212,7 +5212,7 @@ static void cloneTouchAllAtOnceHandler(const EventListenerTouchAllAtOnce* src, if (0 != handler) { int newscriptHandler = - cocos2d::ScriptEngineManager::getInstance()->getScriptEngine()->reallocateScriptHandler(handler); + axis::ScriptEngineManager::getInstance()->getScriptEngine()->reallocateScriptHandler(handler); ScriptHandlerMgr::getInstance()->addObjectHandler((void*)dst, newscriptHandler, type); switch (type) @@ -5286,7 +5286,7 @@ static int tolua_cocos2dx_EventListenerTouchAllAtOnce_clone(lua_State* tolua_S) if (argc == 0) { - cocos2d::EventListenerTouchAllAtOnce* tolua_ret = cocos2d::EventListenerTouchAllAtOnce::create(); + axis::EventListenerTouchAllAtOnce* tolua_ret = axis::EventListenerTouchAllAtOnce::create(); if (nullptr == tolua_ret) return 0; @@ -5444,7 +5444,7 @@ static int tolua_cocos2dx_EventListenerMouse_create(lua_State* tolua_S) if (argc == 0) { - cocos2d::EventListenerMouse* tolua_ret = cocos2d::EventListenerMouse::create(); + axis::EventListenerMouse* tolua_ret = axis::EventListenerMouse::create(); if (nullptr == tolua_ret) return 0; @@ -5477,7 +5477,7 @@ static void cloneMouseHandler(const EventListenerMouse* src, if (0 != handler) { int newscriptHandler = - cocos2d::ScriptEngineManager::getInstance()->getScriptEngine()->reallocateScriptHandler(handler); + axis::ScriptEngineManager::getInstance()->getScriptEngine()->reallocateScriptHandler(handler); ScriptHandlerMgr::getInstance()->addObjectHandler((void*)dst, newscriptHandler, type); switch (type) @@ -5550,7 +5550,7 @@ static int tolua_cocos2dx_EventListenerMouse_clone(lua_State* tolua_S) if (argc == 0) { - cocos2d::EventListenerMouse* tolua_ret = cocos2d::EventListenerMouse::create(); + axis::EventListenerMouse* tolua_ret = axis::EventListenerMouse::create(); if (nullptr == tolua_ret) return 0; @@ -5696,7 +5696,7 @@ static int tolua_cocos2dx_ActionCamera_reverse(lua_State* tolua_S) return 0; int argc = 0; - cocos2d::ActionCamera* cobj = nullptr; + axis::ActionCamera* cobj = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -5707,7 +5707,7 @@ static int tolua_cocos2dx_ActionCamera_reverse(lua_State* tolua_S) goto tolua_lerror; #endif - cobj = (cocos2d::ActionCamera*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::ActionCamera*)tolua_tousertype(tolua_S, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5720,7 +5720,7 @@ static int tolua_cocos2dx_ActionCamera_reverse(lua_State* tolua_S) argc = lua_gettop(tolua_S) - 1; if (argc == 0) { - cocos2d::ActionCamera* reverse = cobj->reverse(); + axis::ActionCamera* reverse = cobj->reverse(); toluafix_pushusertype_ccobject(tolua_S, reverse->_ID, &(reverse->_luaID), (void*)(reverse), "cc.ActionCamera"); return 1; } @@ -5751,7 +5751,7 @@ static int tolua_cocos2dx_GridAction_reverse(lua_State* tolua_S) return 0; int argc = 0; - cocos2d::GridAction* cobj = nullptr; + axis::GridAction* cobj = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -5762,7 +5762,7 @@ static int tolua_cocos2dx_GridAction_reverse(lua_State* tolua_S) goto tolua_lerror; #endif - cobj = (cocos2d::GridAction*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::GridAction*)tolua_tousertype(tolua_S, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -5775,7 +5775,7 @@ static int tolua_cocos2dx_GridAction_reverse(lua_State* tolua_S) argc = lua_gettop(tolua_S) - 1; if (argc == 0) { - cocos2d::GridAction* reverse = cobj->reverse(); + axis::GridAction* reverse = cobj->reverse(); toluafix_pushusertype_ccobject(tolua_S, reverse->_ID, &(reverse->_luaID), (void*)(reverse), "cc.GridAction"); return 1; } @@ -5838,8 +5838,8 @@ static int lua_cocos2dx_Label_createWithTTF00(lua_State* L) int alignment = (int)tolua_tonumber(L, 4, 1); int lineSize = (int)tolua_tonumber(L, 5, 0); - cocos2d::Label* ret = - cocos2d::Label::createWithTTF(ttfConfig, text, static_cast(alignment), lineSize); + axis::Label* ret = + axis::Label::createWithTTF(ttfConfig, text, static_cast(alignment), lineSize); int ID = ret ? (int)(ret->_ID) : -1; int* luaID = ret ? &(ret->_luaID) : nullptr; toluafix_pushusertype_ccobject(L, ID, luaID, (void*)ret, "cc.Label"); @@ -5880,7 +5880,7 @@ static int lua_cocos2dx_Label_createWithTTF01(lua_State* L) std::string text = tolua_tostring(L, 2, ""); std::string fontFile = tolua_tostring(L, 3, ""); float fontSize = (float)tolua_tonumber(L, 4, 0); - cocos2d::Size dimensions = cocos2d::Size::ZERO; + axis::Size dimensions = axis::Size::ZERO; if (lua_istable(L, 5)) { luaval_to_size(L, 5, &dimensions, "cc.Label:createWithTTF"); @@ -5888,8 +5888,8 @@ static int lua_cocos2dx_Label_createWithTTF01(lua_State* L) TextHAlignment hAlignment = static_cast((int)tolua_tonumber(L, 6, 0)); TextVAlignment vAlignment = static_cast((int)tolua_tonumber(L, 7, 0)); - cocos2d::Label* ret = - cocos2d::Label::createWithTTF(text, fontFile, fontSize, dimensions, hAlignment, vAlignment); + axis::Label* ret = + axis::Label::createWithTTF(text, fontFile, fontSize, dimensions, hAlignment, vAlignment); int ID = ret ? (int)(ret->_ID) : -1; int* luaID = ret ? &(ret->_luaID) : nullptr; @@ -5917,7 +5917,7 @@ static void extendLabel(lua_State* tolua_S) static int lua_cocos2dx_TMXTiledMap_getPropertiesForGID(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXTiledMap* cobj = NULL; + axis::TMXTiledMap* cobj = NULL; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -5927,7 +5927,7 @@ static int lua_cocos2dx_TMXTiledMap_getPropertiesForGID(lua_State* tolua_S) if (!tolua_isusertype(tolua_S, 1, "cc.TMXTiledMap", 0, &tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::TMXTiledMap*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::TMXTiledMap*)tolua_tousertype(tolua_S, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -5944,7 +5944,7 @@ static int lua_cocos2dx_TMXTiledMap_getPropertiesForGID(lua_State* tolua_S) if (!ok) return 0; - cocos2d::Value ret = cobj->getPropertiesForGID(arg0); + axis::Value ret = cobj->getPropertiesForGID(arg0); ccvalue_to_luaval(tolua_S, ret); return 1; } @@ -5973,7 +5973,7 @@ static void extendTMXTiledMap(lua_State* tolua_S) static int lua_cocos2dx_Console_send(lua_State* tolua_S) { - cocos2d::Console* cobj = nullptr; + axis::Console* cobj = nullptr; int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -5984,7 +5984,7 @@ static int lua_cocos2dx_Console_send(lua_State* tolua_S) if (!tolua_isusertype(tolua_S, 1, "cc.Console", 0, &tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Console*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::Console*)tolua_tousertype(tolua_S, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -6020,7 +6020,7 @@ tolua_lerror: static int lua_cocos2dx_Console_wait(lua_State* tolua_S) { - cocos2d::Console* cobj = nullptr; + axis::Console* cobj = nullptr; int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6031,7 +6031,7 @@ static int lua_cocos2dx_Console_wait(lua_State* tolua_S) if (!tolua_isusertype(tolua_S, 1, "cc.Console", 0, &tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::Console*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::Console*)tolua_tousertype(tolua_S, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -6066,7 +6066,7 @@ tolua_lerror: static int lua_cocos2dx_Console_addCommand(lua_State* tolua_S) { - cocos2d::Console* cobj = nullptr; + axis::Console* cobj = nullptr; int argc = 0; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6078,7 +6078,7 @@ static int lua_cocos2dx_Console_addCommand(lua_State* tolua_S) goto tolua_lerror; #endif - cobj = (cocos2d::Console*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::Console*)tolua_tousertype(tolua_S, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6149,7 +6149,7 @@ static void extendConsole(lua_State* tolua_S) static int lua_cocos2dx_OrbitCamera_sphericalRadius(lua_State* tolua_S) { int argc = 0; - cocos2d::OrbitCamera* self = nullptr; + axis::OrbitCamera* self = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -6160,7 +6160,7 @@ static int lua_cocos2dx_OrbitCamera_sphericalRadius(lua_State* tolua_S) goto tolua_lerror; #endif - self = (cocos2d::OrbitCamera*)tolua_tousertype(tolua_S, 1, 0); + self = (axis::OrbitCamera*)tolua_tousertype(tolua_S, 1, 0); #if COCOS2D_DEBUG >= 1 if (!self) @@ -6219,7 +6219,7 @@ static void extendOrbitCamera(lua_State* tolua_S) int lua_cocos2dx_TMXLayer_getTileGIDAt(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXLayer* cobj = nullptr; + axis::TMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6231,7 +6231,7 @@ int lua_cocos2dx_TMXLayer_getTileGIDAt(lua_State* tolua_S) goto tolua_lerror; #endif - cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::TMXLayer*)tolua_tousertype(tolua_S, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6244,7 +6244,7 @@ int lua_cocos2dx_TMXLayer_getTileGIDAt(lua_State* tolua_S) argc = lua_gettop(tolua_S) - 1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.TMXLayer:getTileGIDAt"); if (!ok) @@ -6256,7 +6256,7 @@ int lua_cocos2dx_TMXLayer_getTileGIDAt(lua_State* tolua_S) } if (argc == 2) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; int arg1; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.TMXLayer:getTileGIDAt"); @@ -6265,7 +6265,7 @@ int lua_cocos2dx_TMXLayer_getTileGIDAt(lua_State* tolua_S) if (!ok) return 0; - unsigned int ret = cobj->getTileGIDAt(arg0, (cocos2d::TMXTileFlags*)&arg1); + unsigned int ret = cobj->getTileGIDAt(arg0, (axis::TMXTileFlags*)&arg1); tolua_pushnumber(tolua_S, (lua_Number)ret); tolua_pushnumber(tolua_S, (lua_Number)arg1); return 2; @@ -6285,7 +6285,7 @@ tolua_lerror: int lua_cocos2dx_TMXLayer_setTiles(lua_State* tolua_S) { int argc = 0; - cocos2d::TMXLayer* cobj = nullptr; + axis::TMXLayer* cobj = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -6296,7 +6296,7 @@ int lua_cocos2dx_TMXLayer_setTiles(lua_State* tolua_S) goto tolua_lerror; #endif - cobj = (cocos2d::TMXLayer*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::TMXLayer*)tolua_tousertype(tolua_S, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6359,7 +6359,7 @@ static void extendTMXLayer(lua_State* tolua_S) static int lua_cocos2dx_FastTMXLayer_getTileGIDAt(lua_State* tolua_S) { int argc = 0; - cocos2d::FastTMXLayer* cobj = nullptr; + axis::FastTMXLayer* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6371,7 +6371,7 @@ static int lua_cocos2dx_FastTMXLayer_getTileGIDAt(lua_State* tolua_S) goto tolua_lerror; #endif - cobj = (cocos2d::FastTMXLayer*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::FastTMXLayer*)tolua_tousertype(tolua_S, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6384,7 +6384,7 @@ static int lua_cocos2dx_FastTMXLayer_getTileGIDAt(lua_State* tolua_S) argc = lua_gettop(tolua_S) - 1; if (argc == 1) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.FastTMXLayer:getTileGIDAt"); if (!ok) @@ -6396,7 +6396,7 @@ static int lua_cocos2dx_FastTMXLayer_getTileGIDAt(lua_State* tolua_S) } if (argc == 2) { - cocos2d::Vec2 arg0; + axis::Vec2 arg0; int arg1 = 0; ok &= luaval_to_vec2(tolua_S, 2, &arg0, "cc.FastTMXLayer:getTileGIDAt"); @@ -6405,7 +6405,7 @@ static int lua_cocos2dx_FastTMXLayer_getTileGIDAt(lua_State* tolua_S) if (!ok) return 0; - unsigned int ret = cobj->getTileGIDAt(arg0, (cocos2d::TMXTileFlags*)&arg1); + unsigned int ret = cobj->getTileGIDAt(arg0, (axis::TMXTileFlags*)&arg1); tolua_pushnumber(tolua_S, (lua_Number)ret); tolua_pushnumber(tolua_S, (lua_Number)arg1); return 2; @@ -6436,7 +6436,7 @@ static void extendFastTMXLayer(lua_State* tolua_S) int lua_cocos2dx_Application_isIOS64bit(lua_State* tolua_S) { int argc = 0; - cocos2d::Application* cobj = nullptr; + axis::Application* cobj = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -6447,7 +6447,7 @@ int lua_cocos2dx_Application_isIOS64bit(lua_State* tolua_S) goto tolua_lerror; #endif - cobj = (cocos2d::Application*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::Application*)tolua_tousertype(tolua_S, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6461,7 +6461,7 @@ int lua_cocos2dx_Application_isIOS64bit(lua_State* tolua_S) if (argc == 0) { bool isIOS64bit = false; - Application::Platform platform = cocos2d::Application::getInstance()->getTargetPlatform(); + Application::Platform platform = axis::Application::getInstance()->getTargetPlatform(); if (Application::Platform::iOS == platform) { #if defined(__LP64__) @@ -6487,7 +6487,7 @@ tolua_lerror: int lua_cocos2dx_Application_is64BitMobileDevice(lua_State* tolua_S) { int argc = 0; - cocos2d::Application* cobj = nullptr; + axis::Application* cobj = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -6498,7 +6498,7 @@ int lua_cocos2dx_Application_is64BitMobileDevice(lua_State* tolua_S) goto tolua_lerror; #endif - cobj = (cocos2d::Application*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::Application*)tolua_tousertype(tolua_S, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6512,7 +6512,7 @@ int lua_cocos2dx_Application_is64BitMobileDevice(lua_State* tolua_S) if (argc == 0) { bool is64BitMobileDevice = false; - Application::Platform platform = cocos2d::Application::getInstance()->getTargetPlatform(); + Application::Platform platform = axis::Application::getInstance()->getTargetPlatform(); if (Application::Platform::iOS == platform || Application::Platform::Android == platform) { @@ -6621,7 +6621,7 @@ static void extendTextureCache(lua_State* tolua_S) int lua_cocos2dx_GLView_getAllTouches(lua_State* tolua_S) { int argc = 0; - cocos2d::GLView* cobj = nullptr; + axis::GLView* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6633,7 +6633,7 @@ int lua_cocos2dx_GLView_getAllTouches(lua_State* tolua_S) goto tolua_lerror; #endif - cobj = (cocos2d::GLView*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::GLView*)tolua_tousertype(tolua_S, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6649,7 +6649,7 @@ int lua_cocos2dx_GLView_getAllTouches(lua_State* tolua_S) if (!ok) return 0; - std::vector ret = cobj->getAllTouches(); + std::vector ret = cobj->getAllTouches(); lua_newtable(tolua_S); if (ret.empty()) return 1; @@ -6696,7 +6696,7 @@ static void extendGLView(lua_State* tolua_S) int lua_cocos2dx_Camera_unproject(lua_State* tolua_S) { int argc = 0; - cocos2d::Camera* cobj = nullptr; + axis::Camera* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -6708,7 +6708,7 @@ int lua_cocos2dx_Camera_unproject(lua_State* tolua_S) goto tolua_lerror; #endif - cobj = (cocos2d::Camera*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::Camera*)tolua_tousertype(tolua_S, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -6721,7 +6721,7 @@ int lua_cocos2dx_Camera_unproject(lua_State* tolua_S) argc = lua_gettop(tolua_S) - 1; if (argc == 1) { - cocos2d::Vec3 arg0; + axis::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.Camera:project"); if (!ok) @@ -6735,9 +6735,9 @@ int lua_cocos2dx_Camera_unproject(lua_State* tolua_S) } if (argc == 3) { - cocos2d::Size arg0; - cocos2d::Vec3 arg1; - cocos2d::Vec3 arg2; + axis::Size arg0; + axis::Vec3 arg1; + axis::Vec3 arg2; ok &= luaval_to_size(tolua_S, 2, &arg0, "cc.Camera:unproject"); @@ -6799,8 +6799,8 @@ int lua_cocos2dx_Properties_createNonRefCounted(lua_State* tolua_S) nullptr); return 0; } - cocos2d::Properties* ret = cocos2d::Properties::createNonRefCounted(arg0); - object_to_luaval(tolua_S, "cc.Properties", (cocos2d::Properties*)ret); + axis::Properties* ret = axis::Properties::createNonRefCounted(arg0); + object_to_luaval(tolua_S, "cc.Properties", (axis::Properties*)ret); tolua_register_gc(tolua_S, lua_gettop(tolua_S)); return 1; } @@ -6816,7 +6816,7 @@ tolua_lerror: static int lua_collect_Properties(lua_State* tolua_S) { - cocos2d::Properties* self = (cocos2d::Properties*)tolua_tousertype(tolua_S, 1, 0); + axis::Properties* self = (axis::Properties*)tolua_tousertype(tolua_S, 1, 0); CC_SAFE_DELETE(self); return 0; } @@ -6841,7 +6841,7 @@ static void extendProperties(lua_State* tolua_S) int lua_cocos2dx_get_PolygonInfo_rect(lua_State* tolua_S) { - cocos2d::PolygonInfo* cobj = nullptr; + axis::PolygonInfo* cobj = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -6849,7 +6849,7 @@ int lua_cocos2dx_get_PolygonInfo_rect(lua_State* tolua_S) goto tolua_lerror; #endif - cobj = (cocos2d::PolygonInfo*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::PolygonInfo*)tolua_tousertype(tolua_S, 1, 0); #if COCOS2D_DEBUG >= 1 if (nullptr == cobj) { @@ -6870,7 +6870,7 @@ tolua_lerror: int lua_cocos2dx_set_PolygonInfo_rect(lua_State* tolua_S) { int argc = 0; - cocos2d::PolygonInfo* self = nullptr; + axis::PolygonInfo* self = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -6878,7 +6878,7 @@ int lua_cocos2dx_set_PolygonInfo_rect(lua_State* tolua_S) goto tolua_lerror; #endif - self = (cocos2d::PolygonInfo*)tolua_tousertype(tolua_S, 1, 0); + self = (axis::PolygonInfo*)tolua_tousertype(tolua_S, 1, 0); #if COCOS2D_DEBUG >= 1 if (nullptr == self) { @@ -6912,7 +6912,7 @@ tolua_lerror: int lua_cocos2dx_get_PolygonInfo_filename(lua_State* tolua_S) { - cocos2d::PolygonInfo* cobj = nullptr; + axis::PolygonInfo* cobj = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -6920,7 +6920,7 @@ int lua_cocos2dx_get_PolygonInfo_filename(lua_State* tolua_S) goto tolua_lerror; #endif - cobj = (cocos2d::PolygonInfo*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::PolygonInfo*)tolua_tousertype(tolua_S, 1, 0); #if COCOS2D_DEBUG >= 1 if (nullptr == cobj) { @@ -6941,7 +6941,7 @@ tolua_lerror: int lua_cocos2dx_set_PolygonInfo_filename(lua_State* tolua_S) { int argc = 0; - cocos2d::PolygonInfo* self = nullptr; + axis::PolygonInfo* self = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -6949,7 +6949,7 @@ int lua_cocos2dx_set_PolygonInfo_filename(lua_State* tolua_S) goto tolua_lerror; #endif - self = (cocos2d::PolygonInfo*)tolua_tousertype(tolua_S, 1, 0); + self = (axis::PolygonInfo*)tolua_tousertype(tolua_S, 1, 0); #if COCOS2D_DEBUG >= 1 if (nullptr == self) { @@ -6979,14 +6979,14 @@ tolua_lerror: static int lua_collect_PolygonInfo(lua_State* tolua_S) { - cocos2d::PolygonInfo* self = (cocos2d::PolygonInfo*)tolua_tousertype(tolua_S, 1, 0); + axis::PolygonInfo* self = (axis::PolygonInfo*)tolua_tousertype(tolua_S, 1, 0); CC_SAFE_DELETE(self); return 0; } int lua_cocos2dx_get_PipelineDescriptor_programState(lua_State* tolua_S) { - cocos2d::PipelineDescriptor* cobj = nullptr; + axis::PipelineDescriptor* cobj = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -6994,7 +6994,7 @@ int lua_cocos2dx_get_PipelineDescriptor_programState(lua_State* tolua_S) goto tolua_lerror; #endif - cobj = (cocos2d::PipelineDescriptor*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::PipelineDescriptor*)tolua_tousertype(tolua_S, 1, 0); #if COCOS2D_DEBUG >= 1 if (nullptr == cobj) { @@ -7016,7 +7016,7 @@ tolua_lerror: int lua_cocos2dx_set_PipelineDescriptor_programState(lua_State* tolua_S) { int argc = 0; - cocos2d::PipelineDescriptor* self = nullptr; + axis::PipelineDescriptor* self = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -7024,7 +7024,7 @@ int lua_cocos2dx_set_PipelineDescriptor_programState(lua_State* tolua_S) goto tolua_lerror; #endif - self = (cocos2d::PipelineDescriptor*)tolua_tousertype(tolua_S, 1, 0); + self = (axis::PipelineDescriptor*)tolua_tousertype(tolua_S, 1, 0); #if COCOS2D_DEBUG >= 1 if (nullptr == self) { @@ -7038,8 +7038,8 @@ int lua_cocos2dx_set_PipelineDescriptor_programState(lua_State* tolua_S) if (1 == argc) { - cocos2d::backend::ProgramState* programState = nullptr; - luaval_to_object(tolua_S, 2, "ccb.ProgramState", &programState, + axis::backend::ProgramState* programState = nullptr; + luaval_to_object(tolua_S, 2, "ccb.ProgramState", &programState, "lua_cocos2dx_set_PipelineDescriptor_programState"); self->programState = programState; return 0; @@ -7089,7 +7089,7 @@ static void extendPipelineDescriptor(lua_State* tolua_S) static int lua_cocos2dx_backend_ProgramState_getUniformLocation(lua_State* tolua_S) { int argc = 0; - cocos2d::backend::ProgramState* cobj = nullptr; + axis::backend::ProgramState* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -7099,7 +7099,7 @@ static int lua_cocos2dx_backend_ProgramState_getUniformLocation(lua_State* tolua if (!tolua_isusertype(tolua_S, 1, "ccb.ProgramState", 0, &tolua_err)) goto tolua_lerror; #endif - cobj = (cocos2d::backend::ProgramState*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::backend::ProgramState*)tolua_tousertype(tolua_S, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) { @@ -7122,20 +7122,20 @@ static int lua_cocos2dx_backend_ProgramState_getUniformLocation(lua_State* tolua { break; } - cocos2d::backend::UniformLocation ret = cobj->getUniformLocation(arg0); + axis::backend::UniformLocation ret = cobj->getUniformLocation(arg0); uniformLocation_to_luaval(tolua_S, ret); return 1; } else if (lua_isnumber(tolua_S, -1)) { - cocos2d::backend::Uniform arg0; + axis::backend::Uniform arg0; ok &= luaval_to_int32(tolua_S, 2, (int*)&arg0, "ccb.ProgramState:getUniformLocation"); if (!ok) { break; } - cocos2d::backend::UniformLocation ret = cobj->getUniformLocation(arg0); + axis::backend::UniformLocation ret = cobj->getUniformLocation(arg0); uniformLocation_to_luaval(tolua_S, ret); return 1; } @@ -7158,7 +7158,7 @@ static int lua_cocos2dx_ProgramState_setUniform(lua_State* tolua_S) { bool ok = true; int argc = 0; - cocos2d::backend::ProgramState* self = nullptr; + axis::backend::ProgramState* self = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -7166,7 +7166,7 @@ static int lua_cocos2dx_ProgramState_setUniform(lua_State* tolua_S) goto tolua_lerror; #endif - self = (cocos2d::backend::ProgramState*)tolua_tousertype(tolua_S, 1, 0); + self = (axis::backend::ProgramState*)tolua_tousertype(tolua_S, 1, 0); #if COCOS2D_DEBUG >= 1 if (nullptr == self) { @@ -7179,7 +7179,7 @@ static int lua_cocos2dx_ProgramState_setUniform(lua_State* tolua_S) if (2 == argc) { - cocos2d::backend::UniformLocation location; + axis::backend::UniformLocation location; if (lua_isstring(tolua_S, 2)) { @@ -7262,15 +7262,15 @@ int lua_cocos2dx_AutoPolygon_generatePolygon(lua_State* tolua_S) tolua_error(tolua_S, "invalid arguments in function 'lua_cocos2dx_AutoPolygon_generatePolygon'", nullptr); return 0; } - cocos2d::PolygonInfo* ret = new cocos2d::PolygonInfo(cocos2d::AutoPolygon::generatePolygon(arg0)); - object_to_luaval(tolua_S, "cc.PolygonInfo", (cocos2d::PolygonInfo*)ret); + axis::PolygonInfo* ret = new axis::PolygonInfo(axis::AutoPolygon::generatePolygon(arg0)); + object_to_luaval(tolua_S, "cc.PolygonInfo", (axis::PolygonInfo*)ret); tolua_register_gc(tolua_S, lua_gettop(tolua_S)); return 1; } if (argc == 2) { std::string arg0; - cocos2d::Rect arg1; + axis::Rect arg1; ok &= luaval_to_std_string(tolua_S, 2, &arg0, "cc.AutoPolygon:generatePolygon"); ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.AutoPolygon:generatePolygon"); if (!ok) @@ -7278,15 +7278,15 @@ int lua_cocos2dx_AutoPolygon_generatePolygon(lua_State* tolua_S) tolua_error(tolua_S, "invalid arguments in function 'lua_cocos2dx_AutoPolygon_generatePolygon'", nullptr); return 0; } - cocos2d::PolygonInfo* ret = new cocos2d::PolygonInfo(cocos2d::AutoPolygon::generatePolygon(arg0, arg1)); - object_to_luaval(tolua_S, "cc.PolygonInfo", (cocos2d::PolygonInfo*)ret); + axis::PolygonInfo* ret = new axis::PolygonInfo(axis::AutoPolygon::generatePolygon(arg0, arg1)); + object_to_luaval(tolua_S, "cc.PolygonInfo", (axis::PolygonInfo*)ret); tolua_register_gc(tolua_S, lua_gettop(tolua_S)); return 1; } if (argc == 3) { std::string arg0; - cocos2d::Rect arg1; + axis::Rect arg1; double arg2; ok &= luaval_to_std_string(tolua_S, 2, &arg0, "cc.AutoPolygon:generatePolygon"); ok &= luaval_to_rect(tolua_S, 3, &arg1, "cc.AutoPolygon:generatePolygon"); @@ -7296,16 +7296,16 @@ int lua_cocos2dx_AutoPolygon_generatePolygon(lua_State* tolua_S) tolua_error(tolua_S, "invalid arguments in function 'lua_cocos2dx_AutoPolygon_generatePolygon'", nullptr); return 0; } - cocos2d::PolygonInfo* ret = - new cocos2d::PolygonInfo(cocos2d::AutoPolygon::generatePolygon(arg0, arg1, (float)arg2)); - object_to_luaval(tolua_S, "cc.PolygonInfo", (cocos2d::PolygonInfo*)ret); + axis::PolygonInfo* ret = + new axis::PolygonInfo(axis::AutoPolygon::generatePolygon(arg0, arg1, (float)arg2)); + object_to_luaval(tolua_S, "cc.PolygonInfo", (axis::PolygonInfo*)ret); tolua_register_gc(tolua_S, lua_gettop(tolua_S)); return 1; } if (argc == 4) { std::string arg0; - cocos2d::Rect arg1; + axis::Rect arg1; double arg2; double arg3; ok &= luaval_to_std_string(tolua_S, 2, &arg0, "cc.AutoPolygon:generatePolygon"); @@ -7317,9 +7317,9 @@ int lua_cocos2dx_AutoPolygon_generatePolygon(lua_State* tolua_S) tolua_error(tolua_S, "invalid arguments in function 'lua_cocos2dx_AutoPolygon_generatePolygon'", nullptr); return 0; } - cocos2d::PolygonInfo* ret = - new cocos2d::PolygonInfo(cocos2d::AutoPolygon::generatePolygon(arg0, arg1, (float)arg2, (float)arg3)); - object_to_luaval(tolua_S, "cc.PolygonInfo", (cocos2d::PolygonInfo*)ret); + axis::PolygonInfo* ret = + new axis::PolygonInfo(axis::AutoPolygon::generatePolygon(arg0, arg1, (float)arg2, (float)arg3)); + object_to_luaval(tolua_S, "cc.PolygonInfo", (axis::PolygonInfo*)ret); tolua_register_gc(tolua_S, lua_gettop(tolua_S)); return 1; } @@ -7335,7 +7335,7 @@ tolua_lerror: static int lua_collect_AutoPolygon(lua_State* tolua_S) { - cocos2d::AutoPolygon* self = (cocos2d::AutoPolygon*)tolua_tousertype(tolua_S, 1, 0); + axis::AutoPolygon* self = (axis::AutoPolygon*)tolua_tousertype(tolua_S, 1, 0); CC_SAFE_DELETE(self); return 0; } @@ -7358,11 +7358,26 @@ static void extendAutoPolygon(lua_State* tolua_S) lua_pop(tolua_S, 1); } +extern int lua_cocos2dx_Director_setStatsDisplay(lua_State* tolua_S); +static void extendDirector(lua_State* tolua_S) +{ + lua_pushstring(tolua_S, "cc.Director"); + lua_rawget(tolua_S, LUA_REGISTRYINDEX); + if (lua_istable(tolua_S, -1)) + { + lua_pushstring(tolua_S, "setDisplayStats"); + lua_pushcfunction(tolua_S, lua_cocos2dx_Director_setStatsDisplay); + lua_rawset(tolua_S, -3); + } + lua_pop(tolua_S, 1); +} + int register_all_cocos2dx_manual(lua_State* tolua_S) { if (NULL == tolua_S) return 0; + extendDirector(tolua_S); extendNode(tolua_S); extendScene(tolua_S); extendLayer(tolua_S); @@ -7429,7 +7444,7 @@ static int tolua_cocos2d_utils_captureScreen(lua_State* tolua_S) { LUA_FUNCTION handler = toluafix_ref_function(tolua_S, 2, 0); auto fileName = axislua_tosv(tolua_S, 3); - cocos2d::utils::captureScreen( + axis::utils::captureScreen( [=](bool succeed, std::string_view name) { auto stack = LuaEngine::getInstance()->getLuaStack(); auto Ls = stack->getLuaState(); @@ -7459,9 +7474,9 @@ static int tolua_cocos2d_utils_findChildren(lua_State* tolua_S) else #endif { - cocos2d::Node* node = static_cast(tolua_tousertype(tolua_S, 2, nullptr)); + axis::Node* node = static_cast(tolua_tousertype(tolua_S, 2, nullptr)); auto name = axislua_tosv(tolua_S, 3); - std::vector children = cocos2d::utils::findChildren(*node, name); + std::vector children = axis::utils::findChildren(*node, name); lua_newtable(tolua_S); int index = 1; for (const auto& obj : children) @@ -7494,9 +7509,9 @@ static int tolua_cocos2d_utils_findChild(lua_State* tolua_S) else #endif { - cocos2d::Node* node = static_cast(tolua_tousertype(tolua_S, 1, nullptr)); + axis::Node* node = static_cast(tolua_tousertype(tolua_S, 1, nullptr)); auto name = axislua_tosv(tolua_S, 2); - auto obj = cocos2d::utils::findChild(node, name); + auto obj = axis::utils::findChild(node, name); int ID = (obj) ? (int)obj->_ID : -1; int* luaID = (obj) ? &obj->_luaID : NULL; toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)obj, "cc.Node"); @@ -7537,7 +7552,7 @@ static int tolua_cocos2d_Mat4_getInversed(lua_State* tolua_S) else #endif { - cocos2d::Mat4 mat; + axis::Mat4 mat; bool ok = luaval_to_mat4(tolua_S, 1, &mat); if (ok) { @@ -7570,9 +7585,9 @@ static int tolua_cocos2d_Mat4_transformVector(lua_State* tolua_S) else #endif { - cocos2d::Mat4 mat; - cocos2d::Vec4 vector; - cocos2d::Vec4 dst; + axis::Mat4 mat; + axis::Vec4 vector; + axis::Vec4 dst; ok &= luaval_to_mat4(tolua_S, 1, &mat); if (!ok) return 0; @@ -7599,9 +7614,9 @@ static int tolua_cocos2d_Mat4_transformVector(lua_State* tolua_S) else #endif { - cocos2d::Mat4 mat; + axis::Mat4 mat; float x, y, z, w; - cocos2d::Vec3 dst; + axis::Vec3 dst; ok &= luaval_to_mat4(tolua_S, 1, &mat); if (!ok) return 0; @@ -7638,10 +7653,10 @@ static int tolua_cocos2d_Mat4_decompose(lua_State* tolua_S) else #endif { - cocos2d::Mat4 mat; - cocos2d::Vec3 scale; - cocos2d::Quaternion rotation; - cocos2d::Vec3 translation; + axis::Mat4 mat; + axis::Vec3 scale; + axis::Quaternion rotation; + axis::Vec3 translation; bool ok = true; ok &= luaval_to_mat4(tolua_S, 1, &mat); @@ -7867,8 +7882,8 @@ static int tolua_cocos2d_Vec3_cross(lua_State* tolua_S) else #endif { - cocos2d::Vec3 cobj; - cocos2d::Vec3 v; + axis::Vec3 cobj; + axis::Vec3 v; bool ok = true; @@ -7895,9 +7910,9 @@ static int tolua_cocos2d_Vec3_cross(lua_State* tolua_S) else #endif { - cocos2d::Vec3 v1; - cocos2d::Vec3 v2; - cocos2d::Vec3 dst; + axis::Vec3 v1; + axis::Vec3 v2; + axis::Vec3 dst; bool ok = true; ok &= luaval_to_vec3(tolua_S, 1, &v1); @@ -7912,7 +7927,7 @@ static int tolua_cocos2d_Vec3_cross(lua_State* tolua_S) if (!ok) return 0; - cocos2d::Vec3::cross(v1, v2, &dst); + axis::Vec3::cross(v1, v2, &dst); vec3_to_luaval(tolua_S, dst); return 1; @@ -7935,17 +7950,17 @@ static int tolua_cocos2d_Mat4_multiply(lua_State* tolua_S) else #endif { - cocos2d::Mat4 mat1; + axis::Mat4 mat1; bool ok = luaval_to_mat4(tolua_S, 1, &mat1); if (!ok) return 0; - cocos2d::Mat4 mat2; + axis::Mat4 mat2; ok = luaval_to_mat4(tolua_S, 2, &mat2); if (!ok) return 0; - cocos2d::Mat4 ret = mat1 * mat2; + axis::Mat4 ret = mat1 * mat2; mat4_to_luaval(tolua_S, ret); return 1; } @@ -7974,8 +7989,8 @@ int tolua_cocos2d_Mat4_translate(lua_State* tolua_S) else #endif { - cocos2d::Mat4 mat; - cocos2d::Vec3 vec3; + axis::Mat4 mat; + axis::Vec3 vec3; ok &= luaval_to_mat4(tolua_S, 1, &mat); if (!ok) return 0; @@ -8015,13 +8030,13 @@ int tolua_cocos2d_Mat4_createRotationZ(lua_State* tolua_S) else #endif { - cocos2d::Mat4 mat; + axis::Mat4 mat; float angle; ok &= luaval_to_mat4(tolua_S, 1, &mat); if (!ok) return 0; angle = (float)lua_tonumber(tolua_S, 2); - cocos2d::Mat4::createRotationZ(angle, &mat); + axis::Mat4::createRotationZ(angle, &mat); mat4_to_luaval(tolua_S, mat); return 1; } @@ -8052,7 +8067,7 @@ int tolua_cocos2d_Mat4_setIdentity(lua_State* tolua_S) else #endif { - cocos2d::Mat4 mat; + axis::Mat4 mat; ok &= luaval_to_mat4(tolua_S, 1, &mat); if (!ok) return 0; @@ -8088,12 +8103,12 @@ int tolua_cocos2d_Mat4_createTranslation(lua_State* tolua_S) else #endif { - cocos2d::Mat4 dst; + axis::Mat4 dst; float xTranslation = (float)lua_tonumber(tolua_S, 1); float yTranslation = (float)lua_tonumber(tolua_S, 2); float zTranslation = (float)lua_tonumber(tolua_S, 3); - cocos2d::Mat4::createTranslation(xTranslation, yTranslation, zTranslation, &dst); + axis::Mat4::createTranslation(xTranslation, yTranslation, zTranslation, &dst); mat4_to_luaval(tolua_S, dst); return 1; } @@ -8106,14 +8121,14 @@ int tolua_cocos2d_Mat4_createTranslation(lua_State* tolua_S) else #endif { - cocos2d::Vec3 translation; - cocos2d::Mat4 dst; + axis::Vec3 translation; + axis::Mat4 dst; ok &= luaval_to_vec3(tolua_S, 1, &translation, "cc.Mat4.createTranslation"); if (!ok) return 0; - cocos2d::Mat4::createTranslation(translation, &dst); + axis::Mat4::createTranslation(translation, &dst); mat4_to_luaval(tolua_S, dst); return 1; } @@ -8144,14 +8159,14 @@ int tolua_cocos2d_Mat4_createRotation(lua_State* tolua_S) else #endif { - cocos2d::Quaternion quat; - cocos2d::Mat4 dst; + axis::Quaternion quat; + axis::Mat4 dst; ok &= luaval_to_quaternion(tolua_S, 1, &quat, "cc.Mat4.createRotation"); if (!ok) return 0; - cocos2d::Mat4::createRotation(quat, &dst); + axis::Mat4::createRotation(quat, &dst); mat4_to_luaval(tolua_S, dst); return 1; } @@ -8165,8 +8180,8 @@ int tolua_cocos2d_Mat4_createRotation(lua_State* tolua_S) else #endif { - cocos2d::Vec3 axis; - cocos2d::Mat4 dst; + axis::Vec3 axis; + axis::Mat4 dst; ok &= luaval_to_vec3(tolua_S, 1, &axis, "cc.Mat4.createRotation"); if (!ok) @@ -8174,7 +8189,7 @@ int tolua_cocos2d_Mat4_createRotation(lua_State* tolua_S) float angle = (float)tolua_tonumber(tolua_S, 2, 0); - cocos2d::Mat4::createRotation(axis, angle, &dst); + axis::Mat4::createRotation(axis, angle, &dst); mat4_to_luaval(tolua_S, dst); return 1; } @@ -8304,7 +8319,7 @@ static int tolua_cocos2d_bytearray_vec2(lua_State* L) else #endif { - cocos2d::Vec2 arg; + axis::Vec2 arg; ok &= luaval_to_vec2(L, 1, &arg, "tolua_cocos2d_bytearray_template"); if (!ok) return 0; @@ -8345,7 +8360,7 @@ static int tolua_cocos2d_bytearray_vec3(lua_State* L) else #endif { - cocos2d::Vec3 arg; + axis::Vec3 arg; ok &= luaval_to_vec3(L, 1, &arg, "tolua_cocos2d_bytearray_template"); if (!ok) return 0; @@ -8386,7 +8401,7 @@ static int tolua_cocos2d_bytearray_vec4(lua_State* L) else #endif { - cocos2d::Vec4 arg; + axis::Vec4 arg; ok &= luaval_to_vec4(L, 1, &arg, "tolua_cocos2d_bytearray_template"); if (!ok) return 0; @@ -8427,7 +8442,7 @@ static int tolua_cocos2d_bytearray_mat4(lua_State* L) else #endif { - cocos2d::Mat4 arg; + axis::Mat4 arg; ok &= luaval_to_mat4(L, 1, &arg, "tolua_cocos2d_bytearray_template"); if (!ok) return 0; diff --git a/extensions/scripting/lua-bindings/manual/cocos2d/lua_cocos2dx_manual.hpp b/extensions/scripting/lua-bindings/manual/cocos2d/lua_cocos2dx_manual.hpp index 5e041d807a..a090b63559 100644 --- a/extensions/scripting/lua-bindings/manual/cocos2d/lua_cocos2dx_manual.hpp +++ b/extensions/scripting/lua-bindings/manual/cocos2d/lua_cocos2dx_manual.hpp @@ -33,7 +33,7 @@ #include "base/CCEventListenerCustom.h" #include "2d/CCNode.h" -NS_CC_BEGIN +NS_AX_BEGIN class LuaEventListenerCustom { public: @@ -45,9 +45,9 @@ class LuaEventListenerAcceleration public: static EventListenerAcceleration* create(); }; -NS_CC_END +NS_AX_END -USING_NS_CC; +USING_NS_AX; TOLUA_API int register_all_cocos2dx_manual(lua_State* tolua_S); @@ -115,12 +115,12 @@ struct LuaEventMouseData } }; -class LuaNode :public cocos2d::Node +class LuaNode :public axis::Node { public: virtual ~LuaNode() {} - virtual void draw(cocos2d::Renderer *renderer, const cocos2d::Mat4& transform, uint32_t flags) override; + virtual void draw(axis::Renderer *renderer, const axis::Mat4& transform, uint32_t flags) override; }; TOLUA_API int tolua_luanode_open(lua_State* tolua_S); diff --git a/extensions/scripting/lua-bindings/manual/cocos2d/lua_cocos2dx_physics_manual.cpp b/extensions/scripting/lua-bindings/manual/cocos2d/lua_cocos2dx_physics_manual.cpp index 0b89d9b66c..b67930b1d9 100644 --- a/extensions/scripting/lua-bindings/manual/cocos2d/lua_cocos2dx_physics_manual.cpp +++ b/extensions/scripting/lua-bindings/manual/cocos2d/lua_cocos2dx_physics_manual.cpp @@ -47,7 +47,7 @@ int lua_cocos2dx_physics_PhysicsBody_getJoints(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsBody* cobj = nullptr; + axis::PhysicsBody* cobj = nullptr; bool ok = true; # if COCOS2D_DEBUG >= 1 @@ -59,7 +59,7 @@ int lua_cocos2dx_physics_PhysicsBody_getJoints(lua_State* tolua_S) goto tolua_lerror; # endif - cobj = (cocos2d::PhysicsBody*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::PhysicsBody*)tolua_tousertype(tolua_S, 1, 0); # if COCOS2D_DEBUG >= 1 if (!cobj) @@ -113,7 +113,7 @@ tolua_lerror: int lua_cocos2dx_physics_PhysicsWorld_getScene(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsWorld* cobj = nullptr; + axis::PhysicsWorld* cobj = nullptr; # if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -124,7 +124,7 @@ int lua_cocos2dx_physics_PhysicsWorld_getScene(lua_State* tolua_S) goto tolua_lerror; # endif - cobj = (cocos2d::PhysicsWorld*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::PhysicsWorld*)tolua_tousertype(tolua_S, 1, 0); # if COCOS2D_DEBUG >= 1 if (!cobj) @@ -137,7 +137,7 @@ int lua_cocos2dx_physics_PhysicsWorld_getScene(lua_State* tolua_S) argc = lua_gettop(tolua_S) - 1; if (argc == 0) { - cocos2d::Scene& ret = cobj->getScene(); + axis::Scene& ret = cobj->getScene(); do { auto className = getLuaTypeName(&ret, "cc.Scene"); @@ -163,7 +163,7 @@ tolua_lerror: int lua_cocos2dx_physics_PhysicsWorld_rayCast(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsWorld* cobj = nullptr; + axis::PhysicsWorld* cobj = nullptr; bool ok = true; # if COCOS2D_DEBUG >= 1 @@ -175,7 +175,7 @@ int lua_cocos2dx_physics_PhysicsWorld_rayCast(lua_State* tolua_S) goto tolua_lerror; # endif - cobj = (cocos2d::PhysicsWorld*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::PhysicsWorld*)tolua_tousertype(tolua_S, 1, 0); # if COCOS2D_DEBUG >= 1 if (!cobj) @@ -188,13 +188,13 @@ int lua_cocos2dx_physics_PhysicsWorld_rayCast(lua_State* tolua_S) argc = lua_gettop(tolua_S) - 1; if (argc == 3) { - std::function arg0; - cocos2d::Vec2 arg1; - cocos2d::Vec2 arg2; + std::function arg0; + axis::Vec2 arg1; + axis::Vec2 arg2; LUA_FUNCTION handler = toluafix_ref_function(tolua_S, 2, 0); do { - arg0 = [handler](cocos2d::PhysicsWorld& world, const cocos2d::PhysicsRayCastInfo& info, + arg0 = [handler](axis::PhysicsWorld& world, const axis::PhysicsRayCastInfo& info, void* data) -> bool { auto stack = LuaEngine::getInstance()->getLuaStack(); auto Ls = stack->getLuaState(); @@ -226,7 +226,7 @@ tolua_lerror: int lua_cocos2dx_physics_PhysicsWorld_queryRect(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsWorld* cobj = nullptr; + axis::PhysicsWorld* cobj = nullptr; bool ok = true; # if COCOS2D_DEBUG >= 1 @@ -238,7 +238,7 @@ int lua_cocos2dx_physics_PhysicsWorld_queryRect(lua_State* tolua_S) goto tolua_lerror; # endif - cobj = (cocos2d::PhysicsWorld*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::PhysicsWorld*)tolua_tousertype(tolua_S, 1, 0); # if COCOS2D_DEBUG >= 1 if (!cobj) @@ -251,12 +251,12 @@ int lua_cocos2dx_physics_PhysicsWorld_queryRect(lua_State* tolua_S) argc = lua_gettop(tolua_S) - 1; if (argc == 2) { - std::function arg0; - cocos2d::Rect arg1; + std::function arg0; + axis::Rect arg1; LUA_FUNCTION handler = toluafix_ref_function(tolua_S, 2, 0); do { - arg0 = [handler](cocos2d::PhysicsWorld& world, cocos2d::PhysicsShape& shape, void* data) -> bool { + arg0 = [handler](axis::PhysicsWorld& world, axis::PhysicsShape& shape, void* data) -> bool { auto stack = LuaEngine::getInstance()->getLuaStack(); auto Ls = stack->getLuaState(); tolua_pushusertype(Ls, (void*)(&world), getLuaTypeName(&world, "cc.PhysicsWorld")); @@ -287,7 +287,7 @@ tolua_lerror: int lua_cocos2dx_physics_PhysicsWorld_queryPoint(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsWorld* cobj = nullptr; + axis::PhysicsWorld* cobj = nullptr; bool ok = true; # if COCOS2D_DEBUG >= 1 @@ -299,7 +299,7 @@ int lua_cocos2dx_physics_PhysicsWorld_queryPoint(lua_State* tolua_S) goto tolua_lerror; # endif - cobj = (cocos2d::PhysicsWorld*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::PhysicsWorld*)tolua_tousertype(tolua_S, 1, 0); # if COCOS2D_DEBUG >= 1 if (!cobj) @@ -312,12 +312,12 @@ int lua_cocos2dx_physics_PhysicsWorld_queryPoint(lua_State* tolua_S) argc = lua_gettop(tolua_S) - 1; if (argc == 2) { - std::function arg0; - cocos2d::Vec2 arg1; + std::function arg0; + axis::Vec2 arg1; LUA_FUNCTION handler = toluafix_ref_function(tolua_S, 2, 0); do { - arg0 = [handler](cocos2d::PhysicsWorld& world, cocos2d::PhysicsShape& shape, void* data) -> bool { + arg0 = [handler](axis::PhysicsWorld& world, axis::PhysicsShape& shape, void* data) -> bool { auto stack = LuaEngine::getInstance()->getLuaStack(); auto Ls = stack->getLuaState(); tolua_pushusertype(Ls, (void*)(&world), getLuaTypeName(&world, "cc.PhysicsWorld")); @@ -363,7 +363,7 @@ int lua_cocos2dx_physics_PhysicsBody_createPolygon(lua_State* tolua_S) if (argc == 1) { - cocos2d::Vec2* arg0 = nullptr; + axis::Vec2* arg0 = nullptr; int arg1 = 0; do { @@ -378,7 +378,7 @@ int lua_cocos2dx_physics_PhysicsBody_createPolygon(lua_State* tolua_S) CC_SAFE_DELETE_ARRAY(arg0); return 0; } - cocos2d::PhysicsBody* ret = cocos2d::PhysicsBody::createPolygon(arg0, arg1); + axis::PhysicsBody* ret = axis::PhysicsBody::createPolygon(arg0, arg1); CC_SAFE_DELETE_ARRAY(arg0); do { @@ -397,9 +397,9 @@ int lua_cocos2dx_physics_PhysicsBody_createPolygon(lua_State* tolua_S) } if (argc == 2) { - cocos2d::Vec2* arg0; + axis::Vec2* arg0; int arg1 = 0; - cocos2d::PhysicsMaterial arg2; + axis::PhysicsMaterial arg2; do { ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1, "cc.PhysicsBody:createPolygon"); @@ -414,7 +414,7 @@ int lua_cocos2dx_physics_PhysicsBody_createPolygon(lua_State* tolua_S) CC_SAFE_DELETE_ARRAY(arg0); return 0; } - cocos2d::PhysicsBody* ret = cocos2d::PhysicsBody::createPolygon(arg0, arg1, arg2); + axis::PhysicsBody* ret = axis::PhysicsBody::createPolygon(arg0, arg1, arg2); CC_SAFE_DELETE_ARRAY(arg0); do { @@ -434,10 +434,10 @@ int lua_cocos2dx_physics_PhysicsBody_createPolygon(lua_State* tolua_S) } if (argc == 3) { - cocos2d::Vec2* arg0; + axis::Vec2* arg0; int arg1 = 0; - cocos2d::PhysicsMaterial arg2; - cocos2d::Vec2 arg3; + axis::PhysicsMaterial arg2; + axis::Vec2 arg3; do { ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1, "cc.PhysicsBody:createPolygon"); @@ -453,7 +453,7 @@ int lua_cocos2dx_physics_PhysicsBody_createPolygon(lua_State* tolua_S) CC_SAFE_DELETE_ARRAY(arg0); return 0; } - cocos2d::PhysicsBody* ret = cocos2d::PhysicsBody::createPolygon(arg0, arg1, arg2, arg3); + axis::PhysicsBody* ret = axis::PhysicsBody::createPolygon(arg0, arg1, arg2, arg3); CC_SAFE_DELETE_ARRAY(arg0); do { @@ -497,7 +497,7 @@ int lua_cocos2dx_physics_PhysicsBody_createEdgePolygon(lua_State* tolua_S) if (argc == 1) { - cocos2d::Vec2* arg0; + axis::Vec2* arg0; int arg1; do { @@ -512,7 +512,7 @@ int lua_cocos2dx_physics_PhysicsBody_createEdgePolygon(lua_State* tolua_S) CC_SAFE_DELETE_ARRAY(arg0); return 0; } - cocos2d::PhysicsBody* ret = cocos2d::PhysicsBody::createEdgePolygon(arg0, arg1); + axis::PhysicsBody* ret = axis::PhysicsBody::createEdgePolygon(arg0, arg1); CC_SAFE_DELETE_ARRAY(arg0); do { @@ -531,9 +531,9 @@ int lua_cocos2dx_physics_PhysicsBody_createEdgePolygon(lua_State* tolua_S) } if (argc == 2) { - cocos2d::Vec2* arg0; + axis::Vec2* arg0; int arg1; - cocos2d::PhysicsMaterial arg2; + axis::PhysicsMaterial arg2; do { ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1, "cc.PhysicsBody:createEdgePolygon"); @@ -548,7 +548,7 @@ int lua_cocos2dx_physics_PhysicsBody_createEdgePolygon(lua_State* tolua_S) CC_SAFE_DELETE_ARRAY(arg0); return 0; } - cocos2d::PhysicsBody* ret = cocos2d::PhysicsBody::createEdgePolygon(arg0, arg1, arg2); + axis::PhysicsBody* ret = axis::PhysicsBody::createEdgePolygon(arg0, arg1, arg2); CC_SAFE_DELETE_ARRAY(arg0); do { @@ -567,9 +567,9 @@ int lua_cocos2dx_physics_PhysicsBody_createEdgePolygon(lua_State* tolua_S) } if (argc == 3) { - cocos2d::Vec2* arg0; + axis::Vec2* arg0; int arg1; - cocos2d::PhysicsMaterial arg2; + axis::PhysicsMaterial arg2; double arg3; do { @@ -586,7 +586,7 @@ int lua_cocos2dx_physics_PhysicsBody_createEdgePolygon(lua_State* tolua_S) CC_SAFE_DELETE_ARRAY(arg0); return 0; } - cocos2d::PhysicsBody* ret = cocos2d::PhysicsBody::createEdgePolygon(arg0, arg1, arg2, arg3); + axis::PhysicsBody* ret = axis::PhysicsBody::createEdgePolygon(arg0, arg1, arg2, arg3); CC_SAFE_DELETE_ARRAY(arg0); do { @@ -630,7 +630,7 @@ int lua_cocos2dx_physics_PhysicsBody_createEdgeChain(lua_State* tolua_S) if (argc == 1) { - cocos2d::Vec2* arg0; + axis::Vec2* arg0; int arg1; do { @@ -645,7 +645,7 @@ int lua_cocos2dx_physics_PhysicsBody_createEdgeChain(lua_State* tolua_S) CC_SAFE_DELETE_ARRAY(arg0); return 0; } - cocos2d::PhysicsBody* ret = cocos2d::PhysicsBody::createEdgeChain(arg0, arg1); + axis::PhysicsBody* ret = axis::PhysicsBody::createEdgeChain(arg0, arg1); CC_SAFE_DELETE_ARRAY(arg0); do { @@ -664,9 +664,9 @@ int lua_cocos2dx_physics_PhysicsBody_createEdgeChain(lua_State* tolua_S) } if (argc == 2) { - cocos2d::Vec2* arg0; + axis::Vec2* arg0; int arg1; - cocos2d::PhysicsMaterial arg2; + axis::PhysicsMaterial arg2; do { ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1, "cc.PhysicsBody:createEdgeChain"); @@ -681,7 +681,7 @@ int lua_cocos2dx_physics_PhysicsBody_createEdgeChain(lua_State* tolua_S) CC_SAFE_DELETE_ARRAY(arg0); return 0; } - cocos2d::PhysicsBody* ret = cocos2d::PhysicsBody::createEdgeChain(arg0, arg1, arg2); + axis::PhysicsBody* ret = axis::PhysicsBody::createEdgeChain(arg0, arg1, arg2); CC_SAFE_DELETE_ARRAY(arg0); do { @@ -700,9 +700,9 @@ int lua_cocos2dx_physics_PhysicsBody_createEdgeChain(lua_State* tolua_S) } if (argc == 3) { - cocos2d::Vec2* arg0; + axis::Vec2* arg0; int arg1; - cocos2d::PhysicsMaterial arg2; + axis::PhysicsMaterial arg2; double arg3; do { @@ -719,7 +719,7 @@ int lua_cocos2dx_physics_PhysicsBody_createEdgeChain(lua_State* tolua_S) CC_SAFE_DELETE_ARRAY(arg0); return 0; } - cocos2d::PhysicsBody* ret = cocos2d::PhysicsBody::createEdgeChain(arg0, arg1, arg2, arg3); + axis::PhysicsBody* ret = axis::PhysicsBody::createEdgeChain(arg0, arg1, arg2, arg3); CC_SAFE_DELETE_ARRAY(arg0); do { @@ -763,7 +763,7 @@ int lua_cocos2dx_physics_PhysicsShape_recenterPoints(lua_State* tolua_S) if (argc == 1) { - cocos2d::Vec2* arg0; + axis::Vec2* arg0; int arg1 = 0; do { @@ -778,7 +778,7 @@ int lua_cocos2dx_physics_PhysicsShape_recenterPoints(lua_State* tolua_S) CC_SAFE_DELETE_ARRAY(arg0); return 0; } - cocos2d::PhysicsShape::recenterPoints(arg0, arg1); + axis::PhysicsShape::recenterPoints(arg0, arg1); vec2_array_to_luaval(tolua_S, arg0, arg1); CC_SAFE_DELETE_ARRAY(arg0); @@ -786,9 +786,9 @@ int lua_cocos2dx_physics_PhysicsShape_recenterPoints(lua_State* tolua_S) } if (argc == 2) { - cocos2d::Vec2* arg0; + axis::Vec2* arg0; int arg1 = 0; - cocos2d::Vec2 arg2; + axis::Vec2 arg2; do { ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1, "cc.PhysicsShape:recenterPoints"); @@ -803,7 +803,7 @@ int lua_cocos2dx_physics_PhysicsShape_recenterPoints(lua_State* tolua_S) CC_SAFE_DELETE_ARRAY(arg0); return 0; } - cocos2d::PhysicsShape::recenterPoints(arg0, arg1, arg2); + axis::PhysicsShape::recenterPoints(arg0, arg1, arg2); vec2_array_to_luaval(tolua_S, arg0, arg1); CC_SAFE_DELETE_ARRAY(arg0); return 1; @@ -835,7 +835,7 @@ int lua_cocos2dx_physics_PhysicsShape_getPolygonCenter(lua_State* tolua_S) if (argc == 1) { - cocos2d::Vec2* arg0; + axis::Vec2* arg0; int arg1 = 0; do { @@ -850,7 +850,7 @@ int lua_cocos2dx_physics_PhysicsShape_getPolygonCenter(lua_State* tolua_S) CC_SAFE_DELETE_ARRAY(arg0); return 0; } - cocos2d::Vec2 ret = cocos2d::PhysicsShape::getPolygonCenter(arg0, arg1); + axis::Vec2 ret = axis::PhysicsShape::getPolygonCenter(arg0, arg1); CC_SAFE_DELETE_ARRAY(arg0); vec2_to_luaval(tolua_S, ret); return 1; @@ -867,7 +867,7 @@ tolua_lerror: int lua_cocos2dx_physics_PhysicsShapeBox_getPoints(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShapeBox* cobj = nullptr; + axis::PhysicsShapeBox* cobj = nullptr; # if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -878,7 +878,7 @@ int lua_cocos2dx_physics_PhysicsShapeBox_getPoints(lua_State* tolua_S) goto tolua_lerror; # endif - cobj = (cocos2d::PhysicsShapeBox*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::PhysicsShapeBox*)tolua_tousertype(tolua_S, 1, 0); # if COCOS2D_DEBUG >= 1 if (!cobj) @@ -891,7 +891,7 @@ int lua_cocos2dx_physics_PhysicsShapeBox_getPoints(lua_State* tolua_S) argc = lua_gettop(tolua_S) - 1; if (argc == 0) { - cocos2d::Vec2 arg0[4]; + axis::Vec2 arg0[4]; cobj->getPoints(arg0); vec2_array_to_luaval(tolua_S, arg0, 4); return 1; @@ -910,7 +910,7 @@ tolua_lerror: int lua_cocos2dx_physics_PhysicsShapePolygon_getPoints(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShapePolygon* cobj = nullptr; + axis::PhysicsShapePolygon* cobj = nullptr; # if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -921,7 +921,7 @@ int lua_cocos2dx_physics_PhysicsShapePolygon_getPoints(lua_State* tolua_S) goto tolua_lerror; # endif - cobj = (cocos2d::PhysicsShapePolygon*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::PhysicsShapePolygon*)tolua_tousertype(tolua_S, 1, 0); # if COCOS2D_DEBUG >= 1 if (!cobj) @@ -935,7 +935,7 @@ int lua_cocos2dx_physics_PhysicsShapePolygon_getPoints(lua_State* tolua_S) if (argc == 0) { int count = cobj->getPointsCount(); - cocos2d::Vec2* arg0 = new cocos2d::Vec2[count]; + axis::Vec2* arg0 = new axis::Vec2[count]; cobj->getPoints(arg0); vec2_array_to_luaval(tolua_S, arg0, count); CC_SAFE_DELETE_ARRAY(arg0); @@ -970,7 +970,7 @@ int lua_cocos2dx_physics_PhysicsShapePolygon_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::Vec2* arg0; + axis::Vec2* arg0; int arg1 = 0; do { @@ -986,17 +986,17 @@ int lua_cocos2dx_physics_PhysicsShapePolygon_create(lua_State* tolua_S) CC_SAFE_DELETE_ARRAY(arg0); return 0; } - cocos2d::PhysicsShapePolygon* ret = cocos2d::PhysicsShapePolygon::create(arg0, arg1); + axis::PhysicsShapePolygon* ret = axis::PhysicsShapePolygon::create(arg0, arg1); CC_SAFE_DELETE_ARRAY(arg0); - object_to_luaval(tolua_S, "cc.PhysicsShapePolygon", - (cocos2d::PhysicsShapePolygon*)ret); + object_to_luaval(tolua_S, "cc.PhysicsShapePolygon", + (axis::PhysicsShapePolygon*)ret); return 1; } if (argc == 2) { - cocos2d::Vec2* arg0; + axis::Vec2* arg0; int arg1 = 0; - cocos2d::PhysicsMaterial arg2; + axis::PhysicsMaterial arg2; do { ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1, "cc.PhysicsShapePolygon:create"); @@ -1011,18 +1011,18 @@ int lua_cocos2dx_physics_PhysicsShapePolygon_create(lua_State* tolua_S) CC_SAFE_DELETE_ARRAY(arg0); return 0; } - cocos2d::PhysicsShapePolygon* ret = cocos2d::PhysicsShapePolygon::create(arg0, arg1, arg2); + axis::PhysicsShapePolygon* ret = axis::PhysicsShapePolygon::create(arg0, arg1, arg2); CC_SAFE_DELETE_ARRAY(arg0); - object_to_luaval(tolua_S, "cc.PhysicsShapePolygon", - (cocos2d::PhysicsShapePolygon*)ret); + object_to_luaval(tolua_S, "cc.PhysicsShapePolygon", + (axis::PhysicsShapePolygon*)ret); return 1; } if (argc == 3) { - cocos2d::Vec2* arg0; + axis::Vec2* arg0; int arg1 = 0; - cocos2d::PhysicsMaterial arg2; - cocos2d::Vec2 arg3; + axis::PhysicsMaterial arg2; + axis::Vec2 arg3; do { ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1, "cc.PhysicsShapePolygon:create"); @@ -1038,10 +1038,10 @@ int lua_cocos2dx_physics_PhysicsShapePolygon_create(lua_State* tolua_S) CC_SAFE_DELETE_ARRAY(arg0); return 0; } - cocos2d::PhysicsShapePolygon* ret = cocos2d::PhysicsShapePolygon::create(arg0, arg1, arg2, arg3); + axis::PhysicsShapePolygon* ret = axis::PhysicsShapePolygon::create(arg0, arg1, arg2, arg3); CC_SAFE_DELETE_ARRAY(arg0); - object_to_luaval(tolua_S, "cc.PhysicsShapePolygon", - (cocos2d::PhysicsShapePolygon*)ret); + object_to_luaval(tolua_S, "cc.PhysicsShapePolygon", + (axis::PhysicsShapePolygon*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "create", argc, 2); @@ -1070,7 +1070,7 @@ int lua_cocos2dx_physics_PhysicsShapePolygon_calculateArea(lua_State* tolua_S) if (argc == 1) { - cocos2d::Vec2* arg0; + axis::Vec2* arg0; int arg1 = 0; do { @@ -1085,7 +1085,7 @@ int lua_cocos2dx_physics_PhysicsShapePolygon_calculateArea(lua_State* tolua_S) CC_SAFE_DELETE_ARRAY(arg0); return 0; } - double ret = cocos2d::PhysicsShapePolygon::calculateArea(arg0, arg1); + double ret = axis::PhysicsShapePolygon::calculateArea(arg0, arg1); CC_SAFE_DELETE_ARRAY(arg0); tolua_pushnumber(tolua_S, (lua_Number)ret); return 1; @@ -1117,7 +1117,7 @@ int lua_cocos2dx_physics_PhysicsShapePolygon_calculateMoment(lua_State* tolua_S) if (argc == 2) { double arg0; - cocos2d::Vec2* arg1; + axis::Vec2* arg1; int arg2 = 0; ok &= luaval_to_number(tolua_S, 2, &arg0, "cc.PhysicsShapePolygon:calculateMoment"); do @@ -1133,7 +1133,7 @@ int lua_cocos2dx_physics_PhysicsShapePolygon_calculateMoment(lua_State* tolua_S) CC_SAFE_DELETE_ARRAY(arg1); return 0; } - double ret = cocos2d::PhysicsShapePolygon::calculateMoment(arg0, arg1, arg2); + double ret = axis::PhysicsShapePolygon::calculateMoment(arg0, arg1, arg2); CC_SAFE_DELETE_ARRAY(arg1); tolua_pushnumber(tolua_S, (lua_Number)ret); return 1; @@ -1141,9 +1141,9 @@ int lua_cocos2dx_physics_PhysicsShapePolygon_calculateMoment(lua_State* tolua_S) if (argc == 2) { double arg0; - cocos2d::Vec2* arg1; + axis::Vec2* arg1; int arg2 = 0; - cocos2d::Vec2 arg3; + axis::Vec2 arg3; ok &= luaval_to_number(tolua_S, 2, &arg0, "cc.PhysicsShapePolygon:calculateMoment"); do { @@ -1159,7 +1159,7 @@ int lua_cocos2dx_physics_PhysicsShapePolygon_calculateMoment(lua_State* tolua_S) CC_SAFE_DELETE_ARRAY(arg1); return 0; } - double ret = cocos2d::PhysicsShapePolygon::calculateMoment(arg0, arg1, arg2, arg3); + double ret = axis::PhysicsShapePolygon::calculateMoment(arg0, arg1, arg2, arg3); CC_SAFE_DELETE_ARRAY(arg1); tolua_pushnumber(tolua_S, (lua_Number)ret); return 1; @@ -1176,7 +1176,7 @@ tolua_lerror: int lua_cocos2dx_physics_PhysicsShapeEdgeBox_getPoints(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShapeEdgeBox* cobj = nullptr; + axis::PhysicsShapeEdgeBox* cobj = nullptr; # if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -1187,7 +1187,7 @@ int lua_cocos2dx_physics_PhysicsShapeEdgeBox_getPoints(lua_State* tolua_S) goto tolua_lerror; # endif - cobj = (cocos2d::PhysicsShapeEdgeBox*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::PhysicsShapeEdgeBox*)tolua_tousertype(tolua_S, 1, 0); # if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1201,7 +1201,7 @@ int lua_cocos2dx_physics_PhysicsShapeEdgeBox_getPoints(lua_State* tolua_S) if (argc == 0) { int count = cobj->getPointsCount(); - cocos2d::Vec2* arg0 = new cocos2d::Vec2[count]; + axis::Vec2* arg0 = new axis::Vec2[count]; cobj->getPoints(arg0); vec2_array_to_luaval(tolua_S, arg0, count); CC_SAFE_DELETE_ARRAY(arg0); @@ -1221,7 +1221,7 @@ tolua_lerror: int lua_cocos2dx_physics_PhysicsShapeEdgePolygon_getPoints(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShapeEdgePolygon* cobj = nullptr; + axis::PhysicsShapeEdgePolygon* cobj = nullptr; # if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -1232,7 +1232,7 @@ int lua_cocos2dx_physics_PhysicsShapeEdgePolygon_getPoints(lua_State* tolua_S) goto tolua_lerror; # endif - cobj = (cocos2d::PhysicsShapeEdgePolygon*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::PhysicsShapeEdgePolygon*)tolua_tousertype(tolua_S, 1, 0); # if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1247,7 +1247,7 @@ int lua_cocos2dx_physics_PhysicsShapeEdgePolygon_getPoints(lua_State* tolua_S) if (argc == 0) { int count = cobj->getPointsCount(); - cocos2d::Vec2* arg0 = new cocos2d::Vec2[count]; + axis::Vec2* arg0 = new axis::Vec2[count]; cobj->getPoints(arg0); vec2_array_to_luaval(tolua_S, arg0, count); CC_SAFE_DELETE_ARRAY(arg0); @@ -1267,7 +1267,7 @@ tolua_lerror: int lua_cocos2dx_physics_PhysicsShapeEdgeChain_getPoints(lua_State* tolua_S) { int argc = 0; - cocos2d::PhysicsShapeEdgeChain* cobj = nullptr; + axis::PhysicsShapeEdgeChain* cobj = nullptr; # if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -1278,7 +1278,7 @@ int lua_cocos2dx_physics_PhysicsShapeEdgeChain_getPoints(lua_State* tolua_S) goto tolua_lerror; # endif - cobj = (cocos2d::PhysicsShapeEdgeChain*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::PhysicsShapeEdgeChain*)tolua_tousertype(tolua_S, 1, 0); # if COCOS2D_DEBUG >= 1 if (!cobj) @@ -1292,7 +1292,7 @@ int lua_cocos2dx_physics_PhysicsShapeEdgeChain_getPoints(lua_State* tolua_S) if (argc == 0) { int count = cobj->getPointsCount(); - cocos2d::Vec2* arg0 = new cocos2d::Vec2[count]; + axis::Vec2* arg0 = new axis::Vec2[count]; cobj->getPoints(arg0); vec2_array_to_luaval(tolua_S, arg0, count); CC_SAFE_DELETE_ARRAY(arg0); @@ -1437,7 +1437,7 @@ int lua_cocos2dx_physics_PhysicsShapeEdgePolygon_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::Vec2* arg0; + axis::Vec2* arg0; int arg1 = 0; do { @@ -1452,17 +1452,17 @@ int lua_cocos2dx_physics_PhysicsShapeEdgePolygon_create(lua_State* tolua_S) CC_SAFE_DELETE_ARRAY(arg0); return 0; } - cocos2d::PhysicsShapeEdgePolygon* ret = cocos2d::PhysicsShapeEdgePolygon::create(arg0, arg1); + axis::PhysicsShapeEdgePolygon* ret = axis::PhysicsShapeEdgePolygon::create(arg0, arg1); CC_SAFE_DELETE_ARRAY(arg0); - object_to_luaval(tolua_S, "cc.PhysicsShapeEdgePolygon", - (cocos2d::PhysicsShapeEdgePolygon*)ret); + object_to_luaval(tolua_S, "cc.PhysicsShapeEdgePolygon", + (axis::PhysicsShapeEdgePolygon*)ret); return 1; } if (argc == 2) { - cocos2d::Vec2* arg0; + axis::Vec2* arg0; int arg1 = 0; - cocos2d::PhysicsMaterial arg2; + axis::PhysicsMaterial arg2; do { ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1, "cc.PhysicsShapeEdgePolygon:create"); @@ -1477,17 +1477,17 @@ int lua_cocos2dx_physics_PhysicsShapeEdgePolygon_create(lua_State* tolua_S) CC_SAFE_DELETE_ARRAY(arg0); return 0; } - cocos2d::PhysicsShapeEdgePolygon* ret = cocos2d::PhysicsShapeEdgePolygon::create(arg0, arg1, arg2); + axis::PhysicsShapeEdgePolygon* ret = axis::PhysicsShapeEdgePolygon::create(arg0, arg1, arg2); CC_SAFE_DELETE_ARRAY(arg0); - object_to_luaval(tolua_S, "cc.PhysicsShapeEdgePolygon", - (cocos2d::PhysicsShapeEdgePolygon*)ret); + object_to_luaval(tolua_S, "cc.PhysicsShapeEdgePolygon", + (axis::PhysicsShapeEdgePolygon*)ret); return 1; } if (argc == 3) { - cocos2d::Vec2* arg0; + axis::Vec2* arg0; int arg1 = 0; - cocos2d::PhysicsMaterial arg2; + axis::PhysicsMaterial arg2; double arg3; do { @@ -1504,10 +1504,10 @@ int lua_cocos2dx_physics_PhysicsShapeEdgePolygon_create(lua_State* tolua_S) CC_SAFE_DELETE_ARRAY(arg0); return 0; } - cocos2d::PhysicsShapeEdgePolygon* ret = cocos2d::PhysicsShapeEdgePolygon::create(arg0, arg1, arg2, arg3); + axis::PhysicsShapeEdgePolygon* ret = axis::PhysicsShapeEdgePolygon::create(arg0, arg1, arg2, arg3); CC_SAFE_DELETE_ARRAY(arg0); - object_to_luaval(tolua_S, "cc.PhysicsShapeEdgePolygon", - (cocos2d::PhysicsShapeEdgePolygon*)ret); + object_to_luaval(tolua_S, "cc.PhysicsShapeEdgePolygon", + (axis::PhysicsShapeEdgePolygon*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "create", argc, 2); @@ -1537,7 +1537,7 @@ int lua_cocos2dx_physics_PhysicsShapeEdgeChain_create(lua_State* tolua_S) if (argc == 1) { - cocos2d::Vec2* arg0; + axis::Vec2* arg0; int arg1 = 0; do { @@ -1552,17 +1552,17 @@ int lua_cocos2dx_physics_PhysicsShapeEdgeChain_create(lua_State* tolua_S) CC_SAFE_DELETE_ARRAY(arg0); return 0; } - cocos2d::PhysicsShapeEdgeChain* ret = cocos2d::PhysicsShapeEdgeChain::create(arg0, arg1); + axis::PhysicsShapeEdgeChain* ret = axis::PhysicsShapeEdgeChain::create(arg0, arg1); CC_SAFE_DELETE_ARRAY(arg0); - object_to_luaval(tolua_S, "cc.PhysicsShapeEdgeChain", - (cocos2d::PhysicsShapeEdgeChain*)ret); + object_to_luaval(tolua_S, "cc.PhysicsShapeEdgeChain", + (axis::PhysicsShapeEdgeChain*)ret); return 1; } if (argc == 2) { - cocos2d::Vec2* arg0; + axis::Vec2* arg0; int arg1 = 0; - cocos2d::PhysicsMaterial arg2; + axis::PhysicsMaterial arg2; do { ok = luaval_to_array_of_vec2(tolua_S, 2, &arg0, &arg1, "cc.PhysicsShapeEdgeChain:create"); @@ -1577,17 +1577,17 @@ int lua_cocos2dx_physics_PhysicsShapeEdgeChain_create(lua_State* tolua_S) CC_SAFE_DELETE_ARRAY(arg0); return 0; } - cocos2d::PhysicsShapeEdgeChain* ret = cocos2d::PhysicsShapeEdgeChain::create(arg0, arg1, arg2); + axis::PhysicsShapeEdgeChain* ret = axis::PhysicsShapeEdgeChain::create(arg0, arg1, arg2); CC_SAFE_DELETE_ARRAY(arg0); - object_to_luaval(tolua_S, "cc.PhysicsShapeEdgeChain", - (cocos2d::PhysicsShapeEdgeChain*)ret); + object_to_luaval(tolua_S, "cc.PhysicsShapeEdgeChain", + (axis::PhysicsShapeEdgeChain*)ret); return 1; } if (argc == 3) { - cocos2d::Vec2* arg0; + axis::Vec2* arg0; int arg1 = 0; - cocos2d::PhysicsMaterial arg2; + axis::PhysicsMaterial arg2; double arg3; do { @@ -1604,10 +1604,10 @@ int lua_cocos2dx_physics_PhysicsShapeEdgeChain_create(lua_State* tolua_S) CC_SAFE_DELETE_ARRAY(arg0); return 0; } - cocos2d::PhysicsShapeEdgeChain* ret = cocos2d::PhysicsShapeEdgeChain::create(arg0, arg1, arg2, arg3); + axis::PhysicsShapeEdgeChain* ret = axis::PhysicsShapeEdgeChain::create(arg0, arg1, arg2, arg3); CC_SAFE_DELETE_ARRAY(arg0); - object_to_luaval(tolua_S, "cc.PhysicsShapeEdgeChain", - (cocos2d::PhysicsShapeEdgeChain*)ret); + object_to_luaval(tolua_S, "cc.PhysicsShapeEdgeChain", + (axis::PhysicsShapeEdgeChain*)ret); return 1; } luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "create", argc, 2); diff --git a/extensions/scripting/lua-bindings/manual/cocostudio/CustomGUIReader.cpp b/extensions/scripting/lua-bindings/manual/cocostudio/CustomGUIReader.cpp index d1aa97ecc7..fd4b0384e7 100644 --- a/extensions/scripting/lua-bindings/manual/cocostudio/CustomGUIReader.cpp +++ b/extensions/scripting/lua-bindings/manual/cocostudio/CustomGUIReader.cpp @@ -27,7 +27,7 @@ #include "rapidjson/writer.h" #include "rapidjson/stringbuffer.h" -USING_NS_CC; +USING_NS_AX; namespace cocostudio { @@ -86,7 +86,7 @@ void CustomGUIReader::init(std::string& className, int createFunc, int setPropsF } void CustomGUIReader::setCustomProps(std::string_view classType, - cocos2d::Ref* widget, + axis::Ref* widget, const rapidjson::Value& customOptions) { if (_setPropsFunc != 0) diff --git a/extensions/scripting/lua-bindings/manual/cocostudio/CustomGUIReader.h b/extensions/scripting/lua-bindings/manual/cocostudio/CustomGUIReader.h index 687c729df8..dd5f132fbb 100644 --- a/extensions/scripting/lua-bindings/manual/cocostudio/CustomGUIReader.h +++ b/extensions/scripting/lua-bindings/manual/cocostudio/CustomGUIReader.h @@ -27,7 +27,7 @@ #include "CCSGUIReader.h" -USING_NS_CC; +USING_NS_AX; namespace cocostudio { @@ -43,7 +43,7 @@ public: Ref* createInstance(); - void setCustomProps(std::string_view classType, cocos2d::Ref* widget, const rapidjson::Value& customOptions); + void setCustomProps(std::string_view classType, axis::Ref* widget, const rapidjson::Value& customOptions); private: std::string _className; diff --git a/extensions/scripting/lua-bindings/manual/cocostudio/lua_cocos2dx_coco_studio_manual.hpp b/extensions/scripting/lua-bindings/manual/cocostudio/lua_cocos2dx_coco_studio_manual.hpp index 811f3d40e9..343a870469 100644 --- a/extensions/scripting/lua-bindings/manual/cocostudio/lua_cocos2dx_coco_studio_manual.hpp +++ b/extensions/scripting/lua-bindings/manual/cocostudio/lua_cocos2dx_coco_studio_manual.hpp @@ -74,23 +74,23 @@ struct LuaArmatureWrapperEventData struct LuaArmatureMovementEventData { - cocos2d::Ref* objTarget; + axis::Ref* objTarget; int movementType; std::string movementID; - LuaArmatureMovementEventData(cocos2d::Ref* _objTarget, int _movementType,std::string_view _movementID):objTarget(_objTarget),movementType(_movementType),movementID(_movementID) + LuaArmatureMovementEventData(axis::Ref* _objTarget, int _movementType,std::string_view _movementID):objTarget(_objTarget),movementType(_movementType),movementID(_movementID) { } }; struct LuaArmatureFrameEventData { - cocos2d::Ref* objTarget; + axis::Ref* objTarget; std::string frameEventName; int originFrameIndex; int currentFrameIndex; - LuaArmatureFrameEventData( cocos2d::Ref* _objTarget, std::string_view _frameEventName, int _originFrameIndex, int _currentFrameIndex):objTarget(_objTarget), frameEventName(_frameEventName),originFrameIndex(_originFrameIndex), currentFrameIndex(_currentFrameIndex) + LuaArmatureFrameEventData( axis::Ref* _objTarget, std::string_view _frameEventName, int _originFrameIndex, int _currentFrameIndex):objTarget(_objTarget), frameEventName(_frameEventName),originFrameIndex(_originFrameIndex), currentFrameIndex(_currentFrameIndex) { } }; diff --git a/extensions/scripting/lua-bindings/manual/cocostudio/lua_cocos2dx_csloader_manual.cpp b/extensions/scripting/lua-bindings/manual/cocostudio/lua_cocos2dx_csloader_manual.cpp index 3b6f9f4f78..9f0b2a0fa0 100644 --- a/extensions/scripting/lua-bindings/manual/cocostudio/lua_cocos2dx_csloader_manual.cpp +++ b/extensions/scripting/lua-bindings/manual/cocostudio/lua_cocos2dx_csloader_manual.cpp @@ -53,7 +53,7 @@ int lua_cocos2dx_csloader_CSLoader_createTimeline(lua_State* tolua_S) ok &= luaval_to_std_string(tolua_S, 2, &arg0, "cc.CSLoader:createTimeline"); if (!ok) return 0; - cocostudio::timeline::ActionTimeline* ret = cocos2d::CSLoader::createTimeline(arg0); + cocostudio::timeline::ActionTimeline* ret = axis::CSLoader::createTimeline(arg0); object_to_luaval(tolua_S, "ccs.ActionTimeline", (cocostudio::timeline::ActionTimeline*)ret); return 1; @@ -102,7 +102,7 @@ int lua_cocos2dx_csloader_CSLoader_createNode(lua_State* tolua_S) #endif LUA_FUNCTION handler = (toluafix_ref_function(tolua_S, 3, 0)); - auto callback = [handler](cocos2d::Ref* ref) { + auto callback = [handler](axis::Ref* ref) { if (nullptr == ref) return; auto stack = LuaEngine::getInstance()->getLuaStack(); @@ -110,9 +110,9 @@ int lua_cocos2dx_csloader_CSLoader_createNode(lua_State* tolua_S) stack->executeFunctionByHandler(handler, 1); }; - cocos2d::Node* ret = cocos2d::CSLoader::createNode(filename, callback); + axis::Node* ret = axis::CSLoader::createNode(filename, callback); ScriptHandlerMgr::getInstance()->addCustomHandler((void*)ret, handler); - object_to_luaval(tolua_S, "cc.Node", (cocos2d::Node*)ret); + object_to_luaval(tolua_S, "cc.Node", (axis::Node*)ret); return 1; } } while (0); @@ -127,8 +127,8 @@ int lua_cocos2dx_csloader_CSLoader_createNode(lua_State* tolua_S) { break; } - cocos2d::Node* ret = cocos2d::CSLoader::createNode(filename); - object_to_luaval(tolua_S, "cc.Node", (cocos2d::Node*)ret); + axis::Node* ret = axis::CSLoader::createNode(filename); + object_to_luaval(tolua_S, "cc.Node", (axis::Node*)ret); return 1; } } while (0); diff --git a/extensions/scripting/lua-bindings/manual/controller/lua_cocos2dx_controller_manual.cpp b/extensions/scripting/lua-bindings/manual/controller/lua_cocos2dx_controller_manual.cpp index 959f201248..30d8414d2e 100644 --- a/extensions/scripting/lua-bindings/manual/controller/lua_cocos2dx_controller_manual.cpp +++ b/extensions/scripting/lua-bindings/manual/controller/lua_cocos2dx_controller_manual.cpp @@ -34,8 +34,8 @@ # include "scripting/lua-bindings/manual/CCLuaEngine.h" # include "base/CCGameController.h" -static void cloneEventListenerControllerHandler(const cocos2d::EventListenerController* src, - cocos2d::EventListenerController* dst, +static void cloneEventListenerControllerHandler(const axis::EventListenerController* src, + axis::EventListenerController* dst, ScriptHandlerMgr::HandlerType type) { if (nullptr == src || nullptr == dst) @@ -51,40 +51,40 @@ static void cloneEventListenerControllerHandler(const cocos2d::EventListenerCont { case ScriptHandlerMgr::HandlerType::EVENT_CONTROLLER_CONNECTED: { - dst->onConnected = [=](cocos2d::Controller* controller, Event* event) { + dst->onConnected = [=](axis::Controller* controller, Event* event) { }; } break; case ScriptHandlerMgr::HandlerType::EVENT_CONTROLLER_DISCONNECTED: { - dst->onDisconnected = [=](cocos2d::Controller* controller, Event* event) { + dst->onDisconnected = [=](axis::Controller* controller, Event* event) { }; } break; case ScriptHandlerMgr::HandlerType::EVENT_CONTROLLER_KEYDOWN: { - dst->onKeyDown = [=](cocos2d::Controller* controller, int keyCode, Event* event) { + dst->onKeyDown = [=](axis::Controller* controller, int keyCode, Event* event) { }; } break; case ScriptHandlerMgr::HandlerType::EVENT_CONTROLLER_KEYUP: { - dst->onKeyUp = [=](cocos2d::Controller* controller, int keyCode, Event* event) { + dst->onKeyUp = [=](axis::Controller* controller, int keyCode, Event* event) { }; } break; case ScriptHandlerMgr::HandlerType::EVENT_CONTROLLER_KEYREPEAT: { - dst->onKeyRepeat = [=](cocos2d::Controller* controller, int keyCode, Event* event) {}; + dst->onKeyRepeat = [=](axis::Controller* controller, int keyCode, Event* event) {}; } break; case ScriptHandlerMgr::HandlerType::EVENT_CONTROLLER_AXIS: { - dst->onAxisEvent = [=](cocos2d::Controller* controller, int keyCode, Event* event) {}; + dst->onAxisEvent = [=](axis::Controller* controller, int keyCode, Event* event) {}; } break; default: @@ -99,14 +99,14 @@ static int tolua_cocos2dx_EventListenerController_clone(lua_State* tolua_S) return 0; int argc = 0; - cocos2d::EventListenerController* self = nullptr; + axis::EventListenerController* self = nullptr; # if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "cc.EventListenerController", 0, &tolua_err)) goto tolua_lerror; # endif - self = static_cast(tolua_tousertype(tolua_S, 1, 0)); + self = static_cast(tolua_tousertype(tolua_S, 1, 0)); # if COCOS2D_DEBUG >= 1 if (nullptr == self) { @@ -119,7 +119,7 @@ static int tolua_cocos2dx_EventListenerController_clone(lua_State* tolua_S) if (argc == 0) { - cocos2d::EventListenerController* tolua_ret = cocos2d::EventListenerController::create(); + axis::EventListenerController* tolua_ret = axis::EventListenerController::create(); if (nullptr == tolua_ret) return 0; @@ -154,14 +154,14 @@ static int tolua_cocos2dx_EventListenerController_registerScriptHandler(lua_Stat return 0; int argc = 0; - cocos2d::EventListenerController* self = nullptr; + axis::EventListenerController* self = nullptr; # if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "cc.EventListenerController", 0, &tolua_err)) goto tolua_lerror; # endif - self = static_cast(tolua_tousertype(tolua_S, 1, 0)); + self = static_cast(tolua_tousertype(tolua_S, 1, 0)); # if COCOS2D_DEBUG >= 1 if (nullptr == self) { @@ -195,7 +195,7 @@ static int tolua_cocos2dx_EventListenerController_registerScriptHandler(lua_Stat { ScriptHandlerMgr::getInstance()->addObjectHandler((void*)self, handler, type); - self->onConnected = [=](cocos2d::Controller* controller, Event* event) { + self->onConnected = [=](axis::Controller* controller, Event* event) { tolua_pushusertype(Ls, (void*)controller, "cc.Controller"); int ID = (event) ? (int)event->_ID : -1; int* luaID = (event) ? &event->_luaID : NULL; @@ -208,7 +208,7 @@ static int tolua_cocos2dx_EventListenerController_registerScriptHandler(lua_Stat { ScriptHandlerMgr::getInstance()->addObjectHandler((void*)self, handler, type); - self->onDisconnected = [=](cocos2d::Controller* controller, Event* event) { + self->onDisconnected = [=](axis::Controller* controller, Event* event) { tolua_pushusertype(Ls, (void*)controller, "cc.Controller"); int ID = (event) ? (int)event->_ID : -1; int* luaID = (event) ? &event->_luaID : NULL; @@ -222,7 +222,7 @@ static int tolua_cocos2dx_EventListenerController_registerScriptHandler(lua_Stat ScriptHandlerMgr::getInstance()->addObjectHandler((void*)self, handler, type); - self->onKeyDown = [=](cocos2d::Controller* controller, int keyCode, Event* event) { + self->onKeyDown = [=](axis::Controller* controller, int keyCode, Event* event) { tolua_pushusertype(Ls, (void*)controller, "cc.Controller"); tolua_pushnumber(Ls, (lua_Number)keyCode); int ID = (event) ? (int)event->_ID : -1; @@ -236,7 +236,7 @@ static int tolua_cocos2dx_EventListenerController_registerScriptHandler(lua_Stat { ScriptHandlerMgr::getInstance()->addObjectHandler((void*)self, handler, type); - self->onKeyUp = [=](cocos2d::Controller* controller, int keyCode, Event* event) { + self->onKeyUp = [=](axis::Controller* controller, int keyCode, Event* event) { tolua_pushusertype(Ls, (void*)controller, "cc.Controller"); tolua_pushnumber(Ls, (lua_Number)keyCode); int ID = (event) ? (int)event->_ID : -1; @@ -250,7 +250,7 @@ static int tolua_cocos2dx_EventListenerController_registerScriptHandler(lua_Stat { ScriptHandlerMgr::getInstance()->addObjectHandler((void*)self, handler, type); - self->onKeyRepeat = [=](cocos2d::Controller* controller, int keyCode, Event* event) { + self->onKeyRepeat = [=](axis::Controller* controller, int keyCode, Event* event) { tolua_pushusertype(Ls, (void*)controller, "cc.Controller"); tolua_pushnumber(Ls, (lua_Number)keyCode); int ID = (event) ? (int)event->_ID : -1; @@ -264,7 +264,7 @@ static int tolua_cocos2dx_EventListenerController_registerScriptHandler(lua_Stat { ScriptHandlerMgr::getInstance()->addObjectHandler((void*)self, handler, type); - self->onAxisEvent = [=](cocos2d::Controller* controller, int keyCode, Event* event) { + self->onAxisEvent = [=](axis::Controller* controller, int keyCode, Event* event) { tolua_pushusertype(Ls, (void*)controller, "cc.Controller"); tolua_pushnumber(Ls, (lua_Number)keyCode); int ID = (event) ? (int)event->_ID : -1; @@ -308,14 +308,14 @@ static int tolua_cocos2dx_Controller_getKeyStatus(lua_State* tolua_S) return 0; int argc = 0; - cocos2d::Controller* self = nullptr; + axis::Controller* self = nullptr; # if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; if (!tolua_isusertype(tolua_S, 1, "cc.Controller", 0, &tolua_err)) goto tolua_lerror; # endif - self = static_cast(tolua_tousertype(tolua_S, 1, 0)); + self = static_cast(tolua_tousertype(tolua_S, 1, 0)); # if COCOS2D_DEBUG >= 1 if (nullptr == self) { @@ -333,7 +333,7 @@ static int tolua_cocos2dx_Controller_getKeyStatus(lua_State* tolua_S) goto tolua_lerror; # endif int keyCode = (int)tolua_tonumber(tolua_S, 2, 0); - cocos2d::Controller::KeyStatus keyStatus = self->getKeyStatus(keyCode); + axis::Controller::KeyStatus keyStatus = self->getKeyStatus(keyCode); lua_newtable(tolua_S); /* L: table */ lua_pushstring(tolua_S, "isPressed"); /* L: table key */ diff --git a/extensions/scripting/lua-bindings/manual/extension/lua_cocos2dx_extension_manual.cpp b/extensions/scripting/lua-bindings/manual/extension/lua_cocos2dx_extension_manual.cpp index c26b3969be..27eab2611f 100644 --- a/extensions/scripting/lua-bindings/manual/extension/lua_cocos2dx_extension_manual.cpp +++ b/extensions/scripting/lua-bindings/manual/extension/lua_cocos2dx_extension_manual.cpp @@ -32,8 +32,8 @@ #include "scripting/lua-bindings/manual/CCLuaEngine.h" #include "scripting/lua-bindings/manual/cocos2d/LuaScriptHandlerMgr.h" -USING_NS_CC; -USING_NS_CC_EXT; +USING_NS_AX; +USING_NS_AX_EXT; class LuaAssetsManagerDelegateProtocol : public Ref, public AssetsManagerDelegateProtocol { @@ -180,13 +180,13 @@ static int lua_cocos2dx_Extension_EventListenerAssetsManagerEx_create(lua_State* !toluafix_isfunction(L, 3, "LUA_FUNCTION", 0, &tolua_err)) goto tolua_lerror; #endif - cocos2d::extension::AssetsManagerEx* assetManager = - static_cast(tolua_tousertype(L, 2, nullptr)); + axis::extension::AssetsManagerEx* assetManager = + static_cast(tolua_tousertype(L, 2, nullptr)); LUA_FUNCTION handler = toluafix_ref_function(L, 3, 0); - cocos2d::extension::EventListenerAssetsManagerEx* ret = - cocos2d::extension::EventListenerAssetsManagerEx::create(assetManager, [=](EventAssetsManagerEx* event) { + axis::extension::EventListenerAssetsManagerEx* ret = + axis::extension::EventListenerAssetsManagerEx::create(assetManager, [=](EventAssetsManagerEx* event) { auto stack = LuaEngine::getInstance()->getLuaStack(); int id = event ? (int)event->_ID : -1; int* luaID = event ? &event->_luaID : nullptr; @@ -225,7 +225,7 @@ static void extendEventListenerAssetsManagerEx(lua_State* L) int lua_cocos2dx_extension_ParticleSystem3D_getParticlePool(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticleSystem3D* cobj = nullptr; + axis::ParticleSystem3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -237,7 +237,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_getParticlePool(lua_State* tolua_S) goto tolua_lerror; #endif - cobj = (cocos2d::ParticleSystem3D*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::ParticleSystem3D*)tolua_tousertype(tolua_S, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -258,7 +258,7 @@ int lua_cocos2dx_extension_ParticleSystem3D_getParticlePool(lua_State* tolua_S) nullptr); return 0; } - const cocos2d::ParticlePool& ret = cobj->getParticlePool(); + const axis::ParticlePool& ret = cobj->getParticlePool(); tolua_pushusertype(tolua_S, (void*)&ret, "cc.ParticlePool"); return 1; } @@ -288,7 +288,7 @@ static void extendParticleSystem3D(lua_State* tolua_S) int lua_cocos2dx_extension_ParticlePool_getActiveDataList(lua_State* tolua_S) { int argc = 0; - cocos2d::ParticlePool* cobj = nullptr; + axis::ParticlePool* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -300,7 +300,7 @@ int lua_cocos2dx_extension_ParticlePool_getActiveDataList(lua_State* tolua_S) goto tolua_lerror; #endif - cobj = (cocos2d::ParticlePool*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::ParticlePool*)tolua_tousertype(tolua_S, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) diff --git a/extensions/scripting/lua-bindings/manual/extension/lua_cocos2dx_extension_manual.h b/extensions/scripting/lua-bindings/manual/extension/lua_cocos2dx_extension_manual.h index ed5afe57e0..184e53d806 100644 --- a/extensions/scripting/lua-bindings/manual/extension/lua_cocos2dx_extension_manual.h +++ b/extensions/scripting/lua-bindings/manual/extension/lua_cocos2dx_extension_manual.h @@ -33,8 +33,8 @@ */ /** - * Call this function can import the lua bindings for classes in the `cocos2d::extension` namespace like - * cocos2d::extension::Control, cocos2d::extension::ControlHuePicker, and so on. After registering, we could call the + * Call this function can import the lua bindings for classes in the `axis::extension` namespace like + * axis::extension::Control, axis::extension::ControlHuePicker, and so on. After registering, we could call the * related cocosbuilder code conveniently in the lua.eg,.cc.Control:create(). If you don't want to use the extension * module in the lua, you only don't call this registering function. If you don't register the extension module, the * package size would become smaller . The current mechanism,this registering function is called in the diff --git a/extensions/scripting/lua-bindings/manual/navmesh/lua_cocos2dx_navmesh_conversions.cpp b/extensions/scripting/lua-bindings/manual/navmesh/lua_cocos2dx_navmesh_conversions.cpp index b58e0e79c4..599def685c 100644 --- a/extensions/scripting/lua-bindings/manual/navmesh/lua_cocos2dx_navmesh_conversions.cpp +++ b/extensions/scripting/lua-bindings/manual/navmesh/lua_cocos2dx_navmesh_conversions.cpp @@ -34,7 +34,7 @@ extern void luaval_to_native_err(lua_State* L, const char* msg, tolua_Error* err, const char* funcName); # endif -bool luaval_to_navmeshagentparam(lua_State* L, int lo, cocos2d::NavMeshAgentParam* outValue, const char* funcName) +bool luaval_to_navmeshagentparam(lua_State* L, int lo, axis::NavMeshAgentParam* outValue, const char* funcName) { if (nullptr == L || nullptr == outValue) return false; @@ -110,7 +110,7 @@ bool luaval_to_navmeshagentparam(lua_State* L, int lo, cocos2d::NavMeshAgentPara return false; } -bool luaval_to_offmeshlinkdata(lua_State* L, int lo, cocos2d::OffMeshLinkData* outValue, const char* funcName) +bool luaval_to_offmeshlinkdata(lua_State* L, int lo, axis::OffMeshLinkData* outValue, const char* funcName) { if (nullptr == L || nullptr == outValue) return false; @@ -152,7 +152,7 @@ bool luaval_to_offmeshlinkdata(lua_State* L, int lo, cocos2d::OffMeshLinkData* o return false; } -void navmeshagentparam_to_luaval(lua_State* L, const cocos2d::NavMeshAgentParam& inValue) +void navmeshagentparam_to_luaval(lua_State* L, const axis::NavMeshAgentParam& inValue) { if (nullptr == L) return; @@ -200,7 +200,7 @@ void navmeshagentparam_to_luaval(lua_State* L, const cocos2d::NavMeshAgentParam& lua_rawset(L, -3); } -void offmeshlinkdata_to_luaval(lua_State* L, const cocos2d::OffMeshLinkData& inValue) +void offmeshlinkdata_to_luaval(lua_State* L, const axis::OffMeshLinkData& inValue) { if (nullptr == L) return; diff --git a/extensions/scripting/lua-bindings/manual/navmesh/lua_cocos2dx_navmesh_conversions.h b/extensions/scripting/lua-bindings/manual/navmesh/lua_cocos2dx_navmesh_conversions.h index 22de75a9eb..930837881b 100644 --- a/extensions/scripting/lua-bindings/manual/navmesh/lua_cocos2dx_navmesh_conversions.h +++ b/extensions/scripting/lua-bindings/manual/navmesh/lua_cocos2dx_navmesh_conversions.h @@ -29,23 +29,22 @@ # include "scripting/lua-bindings/manual/tolua_fix.h" -namespace cocos2d -{ +NS_AX_BEGIN struct NavMeshAgentParam; struct OffMeshLinkData; -} // namespace cocos2d +NS_AX_END // namespace axis extern bool luaval_to_navmeshagentparam(lua_State* L, int lo, - cocos2d::NavMeshAgentParam* outValue, + axis::NavMeshAgentParam* outValue, const char* funcName = ""); extern bool luaval_to_offmeshlinkdata(lua_State* L, int lo, - cocos2d::OffMeshLinkData* outValue, + axis::OffMeshLinkData* outValue, const char* funcName = ""); -extern void navmeshagentparam_to_luaval(lua_State* L, const cocos2d::NavMeshAgentParam& inValue); -extern void offmeshlinkdata_to_luaval(lua_State* L, const cocos2d::OffMeshLinkData& inValue); +extern void navmeshagentparam_to_luaval(lua_State* L, const axis::NavMeshAgentParam& inValue); +extern void offmeshlinkdata_to_luaval(lua_State* L, const axis::OffMeshLinkData& inValue); #endif // #if CC_USE_NAVMESH #endif // __COCOS_SCRIPTING_LUA_BINDING_MANUAL_NAVMESH_LUA_NAVMESH_CONVERSIONS_H__ diff --git a/extensions/scripting/lua-bindings/manual/navmesh/lua_cocos2dx_navmesh_manual.cpp b/extensions/scripting/lua-bindings/manual/navmesh/lua_cocos2dx_navmesh_manual.cpp index 2814ff9774..87eee30f28 100644 --- a/extensions/scripting/lua-bindings/manual/navmesh/lua_cocos2dx_navmesh_manual.cpp +++ b/extensions/scripting/lua-bindings/manual/navmesh/lua_cocos2dx_navmesh_manual.cpp @@ -35,7 +35,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_move(lua_State* tolua_S) { int argc = 0; - cocos2d::NavMeshAgent* cobj = nullptr; + axis::NavMeshAgent* cobj = nullptr; bool ok = true; # if COCOS2D_DEBUG >= 1 @@ -47,7 +47,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_move(lua_State* tolua_S) goto tolua_lerror; # endif - cobj = (cocos2d::NavMeshAgent*)tolua_tousertype(tolua_S, 1, 0); + cobj = (axis::NavMeshAgent*)tolua_tousertype(tolua_S, 1, 0); # if COCOS2D_DEBUG >= 1 if (!cobj) @@ -60,7 +60,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_move(lua_State* tolua_S) argc = lua_gettop(tolua_S) - 1; if (argc == 1) { - cocos2d::Vec3 arg0; + axis::Vec3 arg0; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.NavMeshAgent:move"); if (!ok) @@ -74,7 +74,7 @@ int lua_cocos2dx_navmesh_NavMeshAgent_move(lua_State* tolua_S) } if (argc == 2) { - cocos2d::Vec3 arg0; + axis::Vec3 arg0; LUA_FUNCTION handler; ok &= luaval_to_vec3(tolua_S, 2, &arg0, "cc.NavMeshAgent:move"); @@ -92,10 +92,10 @@ int lua_cocos2dx_navmesh_NavMeshAgent_move(lua_State* tolua_S) tolua_error(tolua_S, "invalid arguments in function 'lua_cocos2dx_navmesh_NavMeshAgent_move'", nullptr); return 0; } - cobj->move(arg0, [=](cocos2d::NavMeshAgent* agent, float totalTimeAfterMove) { + cobj->move(arg0, [=](axis::NavMeshAgent* agent, float totalTimeAfterMove) { auto stack = LuaEngine::getInstance()->getLuaStack(); auto Ls = stack->getLuaState(); - object_to_luaval(Ls, "cc.NavMeshAgent", (cocos2d::NavMeshAgent*)agent); + object_to_luaval(Ls, "cc.NavMeshAgent", (axis::NavMeshAgent*)agent); tolua_pushnumber(Ls, (lua_Number)totalTimeAfterMove); stack->executeFunctionByHandler(handler, 2); }); diff --git a/extensions/scripting/lua-bindings/manual/network/lua_downloader.cpp b/extensions/scripting/lua-bindings/manual/network/lua_downloader.cpp index ebd1168d3b..f8eebc4418 100644 --- a/extensions/scripting/lua-bindings/manual/network/lua_downloader.cpp +++ b/extensions/scripting/lua-bindings/manual/network/lua_downloader.cpp @@ -30,8 +30,8 @@ THE SOFTWARE. #include #include -using namespace cocos2d; -using namespace cocos2d::network; +USING_NS_AX; +using namespace axis::network; static int get_field_int(lua_State* L, const char* field, int def) { @@ -315,7 +315,7 @@ static int lua_downloader_tostring(lua_State* L) static const struct luaL_Reg downloaderStaticFns[] = {{"new", lua_downloader_new}, /* - * cocos2d::Downloader is not a subclass of cocos2d::Ref, + * axis::Downloader is not a subclass of axis::Ref, * `create()` is not provided. */ //{ "create", lua_downloader_new }, diff --git a/extensions/scripting/lua-bindings/manual/network/lua_xml_http_request.cpp b/extensions/scripting/lua-bindings/manual/network/lua_xml_http_request.cpp index 4e357d03cb..ce14138e8f 100644 --- a/extensions/scripting/lua-bindings/manual/network/lua_xml_http_request.cpp +++ b/extensions/scripting/lua-bindings/manual/network/lua_xml_http_request.cpp @@ -38,10 +38,10 @@ #include "yasio/detail/byte_buffer.hpp" -using namespace cocos2d; -using namespace cocos2d::network; +USING_NS_AX; +using namespace axis::network; -class LuaMinXmlHttpRequest : public cocos2d::Ref +class LuaMinXmlHttpRequest : public axis::Ref { public: enum class ResponseType @@ -75,7 +75,7 @@ public: inline void setReadyState(int readyState) { _readyState = readyState; } inline int getReadyState() const { return _readyState; } - inline cocos2d::network::HttpRequest* getHttpRequest() const { return _httpRequest; } + inline axis::network::HttpRequest* getHttpRequest() const { return _httpRequest; } inline std::string_view getStatusText() const { return _statusText; } inline void setStatus(int status) { _status = status; } @@ -206,7 +206,7 @@ void LuaMinXmlHttpRequest::_setHttpRequestHeader() void LuaMinXmlHttpRequest::_sendRequest() { _httpRequest->setResponseCallback( - [this](cocos2d::network::HttpClient* sender, cocos2d::network::HttpResponse* response) { + [this](axis::network::HttpClient* sender, axis::network::HttpResponse* response) { if (_isAborted) return; @@ -227,15 +227,15 @@ void LuaMinXmlHttpRequest::_sendRequest() _statusText.clear(); } // TODO: call back lua function - int handler = cocos2d::ScriptHandlerMgr::getInstance()->getObjectHandler( - (void*)this, cocos2d::ScriptHandlerMgr::HandlerType::XMLHTTPREQUEST_READY_STATE_CHANGE); + int handler = axis::ScriptHandlerMgr::getInstance()->getObjectHandler( + (void*)this, axis::ScriptHandlerMgr::HandlerType::XMLHTTPREQUEST_READY_STATE_CHANGE); if (0 != handler) { CCLOG("come in handler, handler is %d", handler); - cocos2d::CommonScriptData data(handler, ""); - cocos2d::ScriptEvent event(cocos2d::ScriptEventType::kCommonEvent, (void*)&data); - cocos2d::ScriptEngineManager::sendEventToLua(event); + axis::CommonScriptData data(handler, ""); + axis::ScriptEvent event(axis::ScriptEventType::kCommonEvent, (void*)&data); + axis::ScriptEngineManager::sendEventToLua(event); } return; } @@ -259,14 +259,14 @@ void LuaMinXmlHttpRequest::_sendRequest() } // TODO: call back lua function - int handler = cocos2d::ScriptHandlerMgr::getInstance()->getObjectHandler( - (void*)this, cocos2d::ScriptHandlerMgr::HandlerType::XMLHTTPREQUEST_READY_STATE_CHANGE); + int handler = axis::ScriptHandlerMgr::getInstance()->getObjectHandler( + (void*)this, axis::ScriptHandlerMgr::HandlerType::XMLHTTPREQUEST_READY_STATE_CHANGE); if (0 != handler) { - cocos2d::CommonScriptData data(handler, ""); - cocos2d::ScriptEvent event(cocos2d::ScriptEventType::kCommonEvent, (void*)&data); - cocos2d::ScriptEngineManager::sendEventToLua(event); + axis::CommonScriptData data(handler, ""); + axis::ScriptEvent event(axis::ScriptEventType::kCommonEvent, (void*)&data); + axis::ScriptEngineManager::sendEventToLua(event); } release(); }); @@ -1102,8 +1102,8 @@ static int lua_cocos2dx_XMLHttpRequest_registerScriptHandler(lua_State* L) #endif int handler = (toluafix_ref_function(L, 2, 0)); - cocos2d::ScriptHandlerMgr::getInstance()->addObjectHandler( - (void*)self, handler, cocos2d::ScriptHandlerMgr::HandlerType::XMLHTTPREQUEST_READY_STATE_CHANGE); + axis::ScriptHandlerMgr::getInstance()->addObjectHandler( + (void*)self, handler, axis::ScriptHandlerMgr::HandlerType::XMLHTTPREQUEST_READY_STATE_CHANGE); return 0; } @@ -1144,8 +1144,8 @@ static int lua_cocos2dx_XMLHttpRequest_unregisterScriptHandler(lua_State* L) if (0 == argc) { - cocos2d::ScriptHandlerMgr::getInstance()->removeObjectHandler( - (void*)self, cocos2d::ScriptHandlerMgr::HandlerType::XMLHTTPREQUEST_READY_STATE_CHANGE); + axis::ScriptHandlerMgr::getInstance()->removeObjectHandler( + (void*)self, axis::ScriptHandlerMgr::HandlerType::XMLHTTPREQUEST_READY_STATE_CHANGE); return 0; } diff --git a/extensions/scripting/lua-bindings/manual/physics3d/lua_cocos2dx_physics3d_manual.cpp b/extensions/scripting/lua-bindings/manual/physics3d/lua_cocos2dx_physics3d_manual.cpp index b5220865a3..07c8d2a742 100644 --- a/extensions/scripting/lua-bindings/manual/physics3d/lua_cocos2dx_physics3d_manual.cpp +++ b/extensions/scripting/lua-bindings/manual/physics3d/lua_cocos2dx_physics3d_manual.cpp @@ -34,7 +34,7 @@ bool luaval_to_Physics3DRigidBodyDes(lua_State* L, int lo, - cocos2d::Physics3DRigidBodyDes* outValue, + axis::Physics3DRigidBodyDes* outValue, const char* funcName) { if (nullptr == L || nullptr == outValue) @@ -62,7 +62,7 @@ bool luaval_to_Physics3DRigidBodyDes(lua_State* L, lua_gettable(L, lo); if (!lua_istable(L, -1)) { - outValue->localInertia = cocos2d::Vec3(0.0, 0.0, 0.0); + outValue->localInertia = axis::Vec3(0.0, 0.0, 0.0); } else { @@ -78,7 +78,7 @@ bool luaval_to_Physics3DRigidBodyDes(lua_State* L, } else { - outValue->shape = static_cast(tolua_tousertype(L, lua_gettop(L), nullptr)); + outValue->shape = static_cast(tolua_tousertype(L, lua_gettop(L), nullptr)); } lua_pop(L, 1); @@ -86,7 +86,7 @@ bool luaval_to_Physics3DRigidBodyDes(lua_State* L, lua_gettable(L, lo); if (!lua_istable(L, -1)) { - outValue->originalTransform = cocos2d::Mat4(); + outValue->originalTransform = axis::Mat4(); } else { @@ -104,7 +104,7 @@ bool luaval_to_Physics3DRigidBodyDes(lua_State* L, bool luaval_to_Physics3DWorld_HitResult(lua_State* L, int lo, - cocos2d::Physics3DWorld::HitResult* outValue, + axis::Physics3DWorld::HitResult* outValue, const char* funcName) { if (nullptr == L || nullptr == outValue) @@ -127,7 +127,7 @@ bool luaval_to_Physics3DWorld_HitResult(lua_State* L, lua_gettable(L, lo); if (!lua_istable(L, -1)) { - outValue->hitPosition = cocos2d::Vec3(); + outValue->hitPosition = axis::Vec3(); } else { @@ -139,7 +139,7 @@ bool luaval_to_Physics3DWorld_HitResult(lua_State* L, lua_gettable(L, lo); if (!lua_istable(L, -1)) { - outValue->hitNormal = cocos2d::Vec3(); + outValue->hitNormal = axis::Vec3(); } else { @@ -155,14 +155,14 @@ bool luaval_to_Physics3DWorld_HitResult(lua_State* L, } else { - outValue->hitObj = static_cast(tolua_tousertype(L, lua_gettop(L), nullptr)); + outValue->hitObj = static_cast(tolua_tousertype(L, lua_gettop(L), nullptr)); } lua_pop(L, 1); } return true; } -void Physics3DWorld_HitResult_to_luaval(lua_State* L, const cocos2d::Physics3DWorld::HitResult& hitResult) +void Physics3DWorld_HitResult_to_luaval(lua_State* L, const axis::Physics3DWorld::HitResult& hitResult) { if (nullptr == L) return; @@ -181,7 +181,7 @@ void Physics3DWorld_HitResult_to_luaval(lua_State* L, const cocos2d::Physics3DWo } else { - object_to_luaval(L, "cc.Physics3DObject", hitResult.hitObj); + object_to_luaval(L, "cc.Physics3DObject", hitResult.hitObj); } lua_rawset(L, -3); } @@ -205,7 +205,7 @@ int lua_cocos2dx_physics3d_PhysicsMeshRenderer_create(lua_State* L) if (argc == 2) { std::string arg0; - cocos2d::Physics3DRigidBodyDes arg1; + axis::Physics3DRigidBodyDes arg1; ok &= luaval_to_std_string(L, 2, &arg0, "cc.PhysicsMeshRenderer:create"); ok &= luaval_to_Physics3DRigidBodyDes(L, 3, &arg1, "cc.PhysicsMeshRenderer:create"); if (!ok) @@ -213,15 +213,15 @@ int lua_cocos2dx_physics3d_PhysicsMeshRenderer_create(lua_State* L) tolua_error(L, "invalid arguments in function 'lua_cocos2dx_physics3d_PhysicsMeshRenderer_create'", nullptr); return 0; } - cocos2d::PhysicsMeshRenderer* ret = cocos2d::PhysicsMeshRenderer::create(arg0, &arg1); - object_to_luaval(L, "cc.PhysicsMeshRenderer", (cocos2d::PhysicsMeshRenderer*)ret); + axis::PhysicsMeshRenderer* ret = axis::PhysicsMeshRenderer::create(arg0, &arg1); + object_to_luaval(L, "cc.PhysicsMeshRenderer", (axis::PhysicsMeshRenderer*)ret); return 1; } if (argc == 3) { std::string arg0; - cocos2d::Physics3DRigidBodyDes arg1; - cocos2d::Vec3 arg2; + axis::Physics3DRigidBodyDes arg1; + axis::Vec3 arg2; ok &= luaval_to_std_string(L, 2, &arg0, "cc.PhysicsMeshRenderer:create"); ok &= luaval_to_Physics3DRigidBodyDes(L, 3, &arg1, "cc.PhysicsMeshRenderer:create"); ok &= luaval_to_vec3(L, 4, &arg2, "cc.PhysicsMeshRenderer:create"); @@ -230,16 +230,16 @@ int lua_cocos2dx_physics3d_PhysicsMeshRenderer_create(lua_State* L) tolua_error(L, "invalid arguments in function 'lua_cocos2dx_physics3d_PhysicsMeshRenderer_create'", nullptr); return 0; } - cocos2d::PhysicsMeshRenderer* ret = cocos2d::PhysicsMeshRenderer::create(arg0, &arg1, arg2); - object_to_luaval(L, "cc.PhysicsMeshRenderer", (cocos2d::PhysicsMeshRenderer*)ret); + axis::PhysicsMeshRenderer* ret = axis::PhysicsMeshRenderer::create(arg0, &arg1, arg2); + object_to_luaval(L, "cc.PhysicsMeshRenderer", (axis::PhysicsMeshRenderer*)ret); return 1; } if (argc == 4) { std::string arg0; - cocos2d::Physics3DRigidBodyDes arg1; - cocos2d::Vec3 arg2; - cocos2d::Quaternion arg3; + axis::Physics3DRigidBodyDes arg1; + axis::Vec3 arg2; + axis::Quaternion arg3; ok &= luaval_to_std_string(L, 2, &arg0, "cc.PhysicsMeshRenderer:create"); ok &= luaval_to_Physics3DRigidBodyDes(L, 3, &arg1, "cc.PhysicsMeshRenderer:create"); ok &= luaval_to_vec3(L, 4, &arg2, "cc.PhysicsMeshRenderer:create"); @@ -249,8 +249,8 @@ int lua_cocos2dx_physics3d_PhysicsMeshRenderer_create(lua_State* L) tolua_error(L, "invalid arguments in function 'lua_cocos2dx_physics3d_PhysicsMeshRenderer_create'", nullptr); return 0; } - cocos2d::PhysicsMeshRenderer* ret = cocos2d::PhysicsMeshRenderer::create(arg0, &arg1, arg2, arg3); - object_to_luaval(L, "cc.PhysicsMeshRenderer", (cocos2d::PhysicsMeshRenderer*)ret); + axis::PhysicsMeshRenderer* ret = axis::PhysicsMeshRenderer::create(arg0, &arg1, arg2, arg3); + object_to_luaval(L, "cc.PhysicsMeshRenderer", (axis::PhysicsMeshRenderer*)ret); return 1; } luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.PhysicsMeshRenderer:create", argc, 2); @@ -291,15 +291,15 @@ int lua_cocos2dx_physics3d_Physics3DRigidBody_create(lua_State* L) if (argc == 1) { - cocos2d::Physics3DRigidBodyDes arg0; + axis::Physics3DRigidBodyDes arg0; ok &= luaval_to_Physics3DRigidBodyDes(L, 2, &arg0, "cc.Physics3DRigidBody:create"); if (!ok) { tolua_error(L, "invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DRigidBody_create'", nullptr); return 0; } - cocos2d::Physics3DRigidBody* ret = cocos2d::Physics3DRigidBody::create(&arg0); - object_to_luaval(L, "cc.Physics3DRigidBody", (cocos2d::Physics3DRigidBody*)ret); + axis::Physics3DRigidBody* ret = axis::Physics3DRigidBody::create(&arg0); + object_to_luaval(L, "cc.Physics3DRigidBody", (axis::Physics3DRigidBody*)ret); return 1; } luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Physics3DRigidBody:create", argc, 1); @@ -341,15 +341,15 @@ int lua_cocos2dx_physics3d_Physics3DComponent_create(lua_State* L) { if (argc == 1) { - cocos2d::Physics3DObject* arg0; - ok &= luaval_to_object(L, 2, "cc.Physics3DObject", &arg0); + axis::Physics3DObject* arg0; + ok &= luaval_to_object(L, 2, "cc.Physics3DObject", &arg0); if (!ok) { break; } - cocos2d::Physics3DComponent* ret = cocos2d::Physics3DComponent::create(arg0); - object_to_luaval(L, "cc.Physics3DComponent", - (cocos2d::Physics3DComponent*)ret); + axis::Physics3DComponent* ret = axis::Physics3DComponent::create(arg0); + object_to_luaval(L, "cc.Physics3DComponent", + (axis::Physics3DComponent*)ret); return 1; } } while (0); @@ -358,21 +358,21 @@ int lua_cocos2dx_physics3d_Physics3DComponent_create(lua_State* L) { if (argc == 2) { - cocos2d::Physics3DObject* arg0; - ok &= luaval_to_object(L, 2, "cc.Physics3DObject", &arg0); + axis::Physics3DObject* arg0; + ok &= luaval_to_object(L, 2, "cc.Physics3DObject", &arg0); if (!ok) { break; } - cocos2d::Vec3 arg1; + axis::Vec3 arg1; ok &= luaval_to_vec3(L, 3, &arg1, "cc.Physics3DComponent:create"); if (!ok) { break; } - cocos2d::Physics3DComponent* ret = cocos2d::Physics3DComponent::create(arg0, arg1); - object_to_luaval(L, "cc.Physics3DComponent", - (cocos2d::Physics3DComponent*)ret); + axis::Physics3DComponent* ret = axis::Physics3DComponent::create(arg0, arg1); + object_to_luaval(L, "cc.Physics3DComponent", + (axis::Physics3DComponent*)ret); return 1; } } while (0); @@ -381,27 +381,27 @@ int lua_cocos2dx_physics3d_Physics3DComponent_create(lua_State* L) { if (argc == 3) { - cocos2d::Physics3DObject* arg0; - ok &= luaval_to_object(L, 2, "cc.Physics3DObject", &arg0); + axis::Physics3DObject* arg0; + ok &= luaval_to_object(L, 2, "cc.Physics3DObject", &arg0); if (!ok) { break; } - cocos2d::Vec3 arg1; + axis::Vec3 arg1; ok &= luaval_to_vec3(L, 3, &arg1, "cc.Physics3DComponent:create"); if (!ok) { break; } - cocos2d::Quaternion arg2; + axis::Quaternion arg2; ok &= luaval_to_quaternion(L, 4, &arg2); if (!ok) { break; } - cocos2d::Physics3DComponent* ret = cocos2d::Physics3DComponent::create(arg0, arg1, arg2); - object_to_luaval(L, "cc.Physics3DComponent", - (cocos2d::Physics3DComponent*)ret); + axis::Physics3DComponent* ret = axis::Physics3DComponent::create(arg0, arg1, arg2); + object_to_luaval(L, "cc.Physics3DComponent", + (axis::Physics3DComponent*)ret); return 1; } } while (0); @@ -410,9 +410,9 @@ int lua_cocos2dx_physics3d_Physics3DComponent_create(lua_State* L) { if (argc == 0) { - cocos2d::Physics3DComponent* ret = cocos2d::Physics3DComponent::create(); - object_to_luaval(L, "cc.Physics3DComponent", - (cocos2d::Physics3DComponent*)ret); + axis::Physics3DComponent* ret = axis::Physics3DComponent::create(); + object_to_luaval(L, "cc.Physics3DComponent", + (axis::Physics3DComponent*)ret); return 1; } } while (0); @@ -440,7 +440,7 @@ void extendPhysics3DComponent(lua_State* L) int lua_cocos2dx_physics3d_Physics3DWorld_rayCast(lua_State* L) { int argc = 0; - cocos2d::Physics3DWorld* cobj = nullptr; + axis::Physics3DWorld* cobj = nullptr; bool ok = true; # if COCOS2D_DEBUG >= 1 @@ -452,7 +452,7 @@ int lua_cocos2dx_physics3d_Physics3DWorld_rayCast(lua_State* L) goto tolua_lerror; # endif - cobj = (cocos2d::Physics3DWorld*)tolua_tousertype(L, 1, 0); + cobj = (axis::Physics3DWorld*)tolua_tousertype(L, 1, 0); # if COCOS2D_DEBUG >= 1 if (!cobj) @@ -465,9 +465,9 @@ int lua_cocos2dx_physics3d_Physics3DWorld_rayCast(lua_State* L) argc = lua_gettop(L) - 1; if (argc == 3) { - cocos2d::Vec3 arg0; - cocos2d::Vec3 arg1; - cocos2d::Physics3DWorld::HitResult arg2; + axis::Vec3 arg0; + axis::Vec3 arg1; + axis::Physics3DWorld::HitResult arg2; ok &= luaval_to_vec3(L, 2, &arg0, "cc.Physics3DWorld:rayCast"); @@ -534,8 +534,8 @@ int lua_cocos2dx_physics3d_Physics3DShape_createMesh(lua_State* L) tolua_error(L, "invalid arguments in function 'lua_cocos2dx_physics3d_Physics3DShape_createMesh'", nullptr); return 0; } - cocos2d::Physics3DShape* ret = cocos2d::Physics3DShape::createMesh(&arg0[0], arg1); - object_to_luaval(L, "cc.Physics3DShape", (cocos2d::Physics3DShape*)ret); + axis::Physics3DShape* ret = axis::Physics3DShape::createMesh(&arg0[0], arg1); + object_to_luaval(L, "cc.Physics3DShape", (axis::Physics3DShape*)ret); return 1; } luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Physics3DShape:createMesh", argc, 2); @@ -587,9 +587,9 @@ int lua_cocos2dx_physics3d_Physics3DShape_createHeightfield(lua_State* L) nullptr); return 0; } - cocos2d::Physics3DShape* ret = cocos2d::Physics3DShape::createHeightfield(arg0, arg1, &arg2[0], (float)arg3, + axis::Physics3DShape* ret = axis::Physics3DShape::createHeightfield(arg0, arg1, &arg2[0], (float)arg3, (float)arg4, (float)arg5, arg6, arg7); - object_to_luaval(L, "cc.Physics3DShape", (cocos2d::Physics3DShape*)ret); + object_to_luaval(L, "cc.Physics3DShape", (axis::Physics3DShape*)ret); return 1; } if (argc == 9) @@ -618,9 +618,9 @@ int lua_cocos2dx_physics3d_Physics3DShape_createHeightfield(lua_State* L) nullptr); return 0; } - cocos2d::Physics3DShape* ret = cocos2d::Physics3DShape::createHeightfield( + axis::Physics3DShape* ret = axis::Physics3DShape::createHeightfield( arg0, arg1, &arg2[0], (float)arg3, (float)arg4, (float)arg5, arg6, arg7, arg8); - object_to_luaval(L, "cc.Physics3DShape", (cocos2d::Physics3DShape*)ret); + object_to_luaval(L, "cc.Physics3DShape", (axis::Physics3DShape*)ret); return 1; } luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Physics3DShape:createHeightfield", @@ -650,7 +650,7 @@ int lua_cocos2dx_physics3d_Physics3DShape_createCompoundShape(lua_State* L) if (argc == 1) { - std::vector> shapes; + std::vector> shapes; if (!tolua_istable(L, 2, 0, &tolua_err)) { # if COCOS2D_DEBUG >= 1 @@ -662,8 +662,8 @@ int lua_cocos2dx_physics3d_Physics3DShape_createCompoundShape(lua_State* L) if (ok) { size_t len = lua_objlen(L, 2); - cocos2d::Physics3DShape* shape = nullptr; - cocos2d::Mat4 mat; + axis::Physics3DShape* shape = nullptr; + axis::Mat4 mat; for (size_t i = 0; i < len; i++) { lua_pushnumber(L, i + 1); @@ -686,8 +686,8 @@ int lua_cocos2dx_physics3d_Physics3DShape_createCompoundShape(lua_State* L) } } - cocos2d::Physics3DShape* ret = cocos2d::Physics3DShape::createCompoundShape(shapes); - object_to_luaval(L, "cc.Physics3DShape", (cocos2d::Physics3DShape*)ret); + axis::Physics3DShape* ret = axis::Physics3DShape::createCompoundShape(shapes); + object_to_luaval(L, "cc.Physics3DShape", (axis::Physics3DShape*)ret); return 1; } luaL_error(L, "%s has wrong number of arguments: %d, was expecting %d\n ", "cc.Physics3DShape:createCompoundShape", @@ -713,7 +713,7 @@ void extendPhysics3DShape(lua_State* L) lua_pop(L, 1); } -void CollisionPoint_to_luaval(lua_State* L, const cocos2d::Physics3DCollisionInfo::CollisionPoint& collisionPoint) +void CollisionPoint_to_luaval(lua_State* L, const axis::Physics3DCollisionInfo::CollisionPoint& collisionPoint) { if (nullptr == L) return; @@ -739,7 +739,7 @@ void CollisionPoint_to_luaval(lua_State* L, const cocos2d::Physics3DCollisionInf int lua_cocos2dx_physics3d_Physics3DObject_setCollisionCallback(lua_State* L) { int argc = 0; - cocos2d::Physics3DObject* cobj = nullptr; + axis::Physics3DObject* cobj = nullptr; # if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -750,7 +750,7 @@ int lua_cocos2dx_physics3d_Physics3DObject_setCollisionCallback(lua_State* L) goto tolua_lerror; # endif - cobj = (cocos2d::Physics3DObject*)tolua_tousertype(L, 1, 0); + cobj = (axis::Physics3DObject*)tolua_tousertype(L, 1, 0); # if COCOS2D_DEBUG >= 1 if (!cobj) @@ -771,7 +771,7 @@ int lua_cocos2dx_physics3d_Physics3DObject_setCollisionCallback(lua_State* L) } # endif LUA_FUNCTION handler = toluafix_ref_function(L, 2, 0); - cobj->setCollisionCallback([=](const cocos2d::Physics3DCollisionInfo& ci) { + cobj->setCollisionCallback([=](const axis::Physics3DCollisionInfo& ci) { auto stack = LuaEngine::getInstance()->getLuaStack(); auto Ls = stack->getLuaState(); lua_newtable(Ls); diff --git a/extensions/scripting/lua-bindings/manual/platform/android/CCLuaJavaBridge.cpp b/extensions/scripting/lua-bindings/manual/platform/android/CCLuaJavaBridge.cpp index c36261a0df..3f4059b2ae 100644 --- a/extensions/scripting/lua-bindings/manual/platform/android/CCLuaJavaBridge.cpp +++ b/extensions/scripting/lua-bindings/manual/platform/android/CCLuaJavaBridge.cpp @@ -67,7 +67,7 @@ bool LuaJavaBridge::CallInfo::execute() { m_retjs = (jstring)m_env->CallStaticObjectMethod(m_classID, m_methodID); bool bValidStr = true; - std::string strValue = cocos2d::StringUtils::getStringUTFCharsJNI(m_env, m_retjs, &bValidStr); + std::string strValue = axis::StringUtils::getStringUTFCharsJNI(m_env, m_retjs, &bValidStr); m_ret.stringValue = (false == bValidStr) ? nullptr : new string(strValue); break; } @@ -113,7 +113,7 @@ bool LuaJavaBridge::CallInfo::executeWithArgs(jvalue* args) { m_retjs = (jstring)m_env->CallStaticObjectMethodA(m_classID, m_methodID, args); bool bValidStr = true; - std::string strValue = cocos2d::StringUtils::getStringUTFCharsJNI(m_env, m_retjs, &bValidStr); + std::string strValue = axis::StringUtils::getStringUTFCharsJNI(m_env, m_retjs, &bValidStr); m_ret.stringValue = (false == bValidStr) ? nullptr : new string(strValue); break; } @@ -250,7 +250,7 @@ bool LuaJavaBridge::CallInfo::getMethodInfo() m_methodID = 0; m_env = 0; - JavaVM* jvm = cocos2d::JniHelper::getJavaVM(); + JavaVM* jvm = axis::JniHelper::getJavaVM(); jint ret = jvm->GetEnv((void**)&m_env, JNI_VERSION_1_4); switch (ret) { @@ -273,8 +273,8 @@ bool LuaJavaBridge::CallInfo::getMethodInfo() return false; } jstring _jstrClassName = m_env->NewStringUTF(m_className.c_str()); - m_classID = (jclass)m_env->CallObjectMethod(cocos2d::JniHelper::classloader, - cocos2d::JniHelper::loadclassMethod_methodID, _jstrClassName); + m_classID = (jclass)m_env->CallObjectMethod(axis::JniHelper::classloader, + axis::JniHelper::loadclassMethod_methodID, _jstrClassName); if (NULL == m_classID) { diff --git a/extensions/scripting/lua-bindings/manual/platform/android/jni/Cocos2dxLuaJavaBridge.cpp b/extensions/scripting/lua-bindings/manual/platform/android/jni/Cocos2dxLuaJavaBridge.cpp index ca38d4c26c..0874e55c60 100644 --- a/extensions/scripting/lua-bindings/manual/platform/android/jni/Cocos2dxLuaJavaBridge.cpp +++ b/extensions/scripting/lua-bindings/manual/platform/android/jni/Cocos2dxLuaJavaBridge.cpp @@ -41,7 +41,7 @@ JNIEXPORT jint JNICALL Java_org_cocos2dx_lib_Cocos2dxLuaJavaBridge_callLuaFuncti jint functionId, jstring value) { - std::string strValue = cocos2d::StringUtils::getStringUTFCharsJNI(env, value); + std::string strValue = axis::StringUtils::getStringUTFCharsJNI(env, value); int ret = LuaJavaBridge::callLuaFunctionById(functionId, strValue.c_str()); return ret; } @@ -52,8 +52,8 @@ Java_org_cocos2dx_lib_Cocos2dxLuaJavaBridge_callLuaGlobalFunctionWithString(JNIE jstring luaFunctionName, jstring value) { - std::string functionNameStr = cocos2d::StringUtils::getStringUTFCharsJNI(env, luaFunctionName); - std::string valueStr = cocos2d::StringUtils::getStringUTFCharsJNI(env, value); + std::string functionNameStr = axis::StringUtils::getStringUTFCharsJNI(env, luaFunctionName); + std::string valueStr = axis::StringUtils::getStringUTFCharsJNI(env, value); int ret = LuaJavaBridge::callLuaGlobalFunction(functionNameStr.c_str(), valueStr.c_str()); return ret; diff --git a/extensions/scripting/lua-bindings/manual/platform/ios/CCLuaObjcBridge.h b/extensions/scripting/lua-bindings/manual/platform/ios/CCLuaObjcBridge.h index e446ebdcac..f16663bd0e 100644 --- a/extensions/scripting/lua-bindings/manual/platform/ios/CCLuaObjcBridge.h +++ b/extensions/scripting/lua-bindings/manual/platform/ios/CCLuaObjcBridge.h @@ -32,7 +32,7 @@ * @{ */ -NS_CC_BEGIN +NS_AX_BEGIN /** * Build a bridge between ObjectC and Lua script. @@ -57,7 +57,7 @@ protected: static void pushValue(lua_State* L, void* val); }; -NS_CC_END +NS_AX_END // end group /// @} diff --git a/extensions/scripting/lua-bindings/manual/platform/ios/CCLuaObjcBridge.mm b/extensions/scripting/lua-bindings/manual/platform/ios/CCLuaObjcBridge.mm index cb5cbcecef..5af7dd9f9e 100644 --- a/extensions/scripting/lua-bindings/manual/platform/ios/CCLuaObjcBridge.mm +++ b/extensions/scripting/lua-bindings/manual/platform/ios/CCLuaObjcBridge.mm @@ -26,7 +26,7 @@ #include "scripting/lua-bindings/manual/platform/ios/CCLuaObjcBridge.h" #include -NS_CC_BEGIN +NS_AX_BEGIN void LuaObjcBridge::luaopen_luaoc(lua_State* L) { @@ -286,4 +286,4 @@ void LuaObjcBridge::pushValue(lua_State* L, void* val) } } -NS_CC_END +NS_AX_END diff --git a/extensions/scripting/lua-bindings/manual/spine/LuaSkeletonAnimation.cpp b/extensions/scripting/lua-bindings/manual/spine/LuaSkeletonAnimation.cpp index 649e088ee8..aa7cfb50c8 100644 --- a/extensions/scripting/lua-bindings/manual/spine/LuaSkeletonAnimation.cpp +++ b/extensions/scripting/lua-bindings/manual/spine/LuaSkeletonAnimation.cpp @@ -31,7 +31,7 @@ THE SOFTWARE. #include "scripting/lua-bindings/manual/CCLuaEngine.h" using namespace spine; -USING_NS_CC; +USING_NS_AX; LuaSkeletonAnimation::LuaSkeletonAnimation() : spine::SkeletonAnimation() {} diff --git a/extensions/scripting/lua-bindings/manual/tolua_fix.cpp b/extensions/scripting/lua-bindings/manual/tolua_fix.cpp index ea55c294ae..9d3c74a8ec 100644 --- a/extensions/scripting/lua-bindings/manual/tolua_fix.cpp +++ b/extensions/scripting/lua-bindings/manual/tolua_fix.cpp @@ -27,7 +27,7 @@ #include "scripting/lua-bindings/manual/LuaBasicConversions.h" #include -using namespace cocos2d; +USING_NS_AX; static int s_function_ref_id = 0; diff --git a/extensions/scripting/lua-bindings/manual/ui/lua_cocos2dx_ui_manual.cpp b/extensions/scripting/lua-bindings/manual/ui/lua_cocos2dx_ui_manual.cpp index 115ec0616c..c19be61083 100644 --- a/extensions/scripting/lua-bindings/manual/ui/lua_cocos2dx_ui_manual.cpp +++ b/extensions/scripting/lua-bindings/manual/ui/lua_cocos2dx_ui_manual.cpp @@ -50,7 +50,7 @@ using namespace ui; -static int handleUIEvent(int handler, cocos2d::Ref* sender, int eventType) +static int handleUIEvent(int handler, axis::Ref* sender, int eventType) { LuaStack* stack = LuaEngine::getInstance()->getLuaStack(); @@ -101,7 +101,7 @@ static int lua_cocos2dx_Widget_addTouchEventListener(lua_State* L) LUA_FUNCTION handler = (toluafix_ref_function(L, 2, 0)); self->addTouchEventListener( - [=](cocos2d::Ref* ref, Widget::TouchEventType eventType) { handleUIEvent(handler, ref, (int)eventType); }); + [=](axis::Ref* ref, Widget::TouchEventType eventType) { handleUIEvent(handler, ref, (int)eventType); }); ScriptHandlerMgr::getInstance()->addCustomHandler((void*)self, handler); return 0; @@ -155,7 +155,7 @@ static int lua_cocos2dx_Widget_addClickEventListener(lua_State* L) LUA_FUNCTION handler = (toluafix_ref_function(L, 2, 0)); - self->addClickEventListener([=](cocos2d::Ref* sender) { + self->addClickEventListener([=](axis::Ref* sender) { LuaStack* stack = LuaEngine::getInstance()->getLuaStack(); stack->pushObject(sender, "cc.Ref"); stack->executeFunctionByHandler(handler, 1); @@ -224,7 +224,7 @@ static int lua_cocos2dx_CheckBox_addEventListener(lua_State* L) LUA_FUNCTION handler = (toluafix_ref_function(L, 2, 0)); self->addEventListener( - [=](cocos2d::Ref* ref, CheckBox::EventType eventType) { handleUIEvent(handler, ref, (int)eventType); }); + [=](axis::Ref* ref, CheckBox::EventType eventType) { handleUIEvent(handler, ref, (int)eventType); }); ScriptHandlerMgr::getInstance()->addCustomHandler((void*)self, handler); return 0; @@ -428,7 +428,7 @@ static int lua_cocos2dx_Slider_addEventListener(lua_State* L) LUA_FUNCTION handler = (toluafix_ref_function(L, 2, 0)); self->addEventListener( - [=](cocos2d::Ref* ref, Slider::EventType eventType) { handleUIEvent(handler, ref, (int)eventType); }); + [=](axis::Ref* ref, Slider::EventType eventType) { handleUIEvent(handler, ref, (int)eventType); }); ScriptHandlerMgr::getInstance()->addCustomHandler((void*)self, handler); return 0; @@ -492,7 +492,7 @@ static int lua_cocos2dx_TextField_addEventListener(lua_State* L) LUA_FUNCTION handler = (toluafix_ref_function(L, 2, 0)); self->addEventListener( - [=](cocos2d::Ref* ref, TextField::EventType eventType) { handleUIEvent(handler, ref, (int)eventType); }); + [=](axis::Ref* ref, TextField::EventType eventType) { handleUIEvent(handler, ref, (int)eventType); }); ScriptHandlerMgr::getInstance()->addCustomHandler((void*)self, handler); return 0; @@ -554,7 +554,7 @@ static int lua_cocos2dx_PageView_addEventListener(lua_State* L) } #endif LUA_FUNCTION handler = (toluafix_ref_function(L, 2, 0)); - auto pageViewHandler = [=](cocos2d::Ref* ref, PageView::EventType eventType) { + auto pageViewHandler = [=](axis::Ref* ref, PageView::EventType eventType) { handleUIEvent(handler, ref, (int)eventType); }; self->addEventListener((PageView::ccPageViewCallback)pageViewHandler); @@ -621,7 +621,7 @@ static int lua_cocos2dx_ScrollView_addEventListener(lua_State* L) LUA_FUNCTION handler = (toluafix_ref_function(L, 2, 0)); self->addEventListener( - [=](cocos2d::Ref* ref, ScrollView::EventType eventType) { handleUIEvent(handler, ref, (int)eventType); }); + [=](axis::Ref* ref, ScrollView::EventType eventType) { handleUIEvent(handler, ref, (int)eventType); }); ScriptHandlerMgr::getInstance()->addCustomHandler((void*)self, handler); return 0; @@ -684,7 +684,7 @@ static int lua_cocos2dx_ListView_addEventListener(lua_State* L) #endif LUA_FUNCTION handler = (toluafix_ref_function(L, 2, 0)); - auto listViewCallback = [=](cocos2d::Ref* ref, ListView::EventType eventType) { + auto listViewCallback = [=](axis::Ref* ref, ListView::EventType eventType) { handleUIEvent(handler, ref, (int)eventType); }; self->addEventListener((ui::ListView::ccListViewCallback)listViewCallback); @@ -739,7 +739,7 @@ static int lua_cocos2dx_ListView_addScrollViewEventListener(lua_State* L) #endif LUA_FUNCTION handler = (toluafix_ref_function(L, 2, 0)); - auto scrollViewCallback = [=](cocos2d::Ref* ref, ui::ScrollView::EventType eventType) { + auto scrollViewCallback = [=](axis::Ref* ref, ui::ScrollView::EventType eventType) { handleUIEvent(handler, ref, (int)eventType); }; self->addEventListener((ui::ScrollView::ccScrollViewCallback)scrollViewCallback); @@ -1063,7 +1063,7 @@ static int tolua_cocos2dx_EventListenerFocus_create(lua_State* L) if (argc == 0) { - cocos2d::EventListenerFocus* tolua_ret = cocos2d::EventListenerFocus::create(); + axis::EventListenerFocus* tolua_ret = axis::EventListenerFocus::create(); if (nullptr == tolua_ret) return 0; @@ -1094,7 +1094,7 @@ static void cloneFocusHandler(const EventListenerFocus* src, EventListenerFocus* if (0 != handler) { int newscriptHandler = - cocos2d::ScriptEngineManager::getInstance()->getScriptEngine()->reallocateScriptHandler(handler); + axis::ScriptEngineManager::getInstance()->getScriptEngine()->reallocateScriptHandler(handler); ScriptHandlerMgr::getInstance()->addObjectHandler((void*)dst, newscriptHandler, ScriptHandlerMgr::HandlerType::EVENT_FOCUS); @@ -1138,7 +1138,7 @@ static int tolua_cocos2dx_EventListenerFocus_clone(lua_State* L) if (argc == 0) { - cocos2d::EventListenerFocus* tolua_ret = cocos2d::EventListenerFocus::create(); + axis::EventListenerFocus* tolua_ret = axis::EventListenerFocus::create(); if (nullptr == tolua_ret) return 0; diff --git a/extensions/scripting/lua-bindings/manual/ui/lua_cocos2dx_video_manual.cpp b/extensions/scripting/lua-bindings/manual/ui/lua_cocos2dx_video_manual.cpp index 771fad9371..0ecf731f92 100644 --- a/extensions/scripting/lua-bindings/manual/ui/lua_cocos2dx_video_manual.cpp +++ b/extensions/scripting/lua-bindings/manual/ui/lua_cocos2dx_video_manual.cpp @@ -34,7 +34,7 @@ static int lua_cocos2dx_video_VideoPlayer_addEventListener(lua_State* L) { int argc = 0; - cocos2d::ui::VideoPlayer* self = nullptr; + axis::ui::VideoPlayer* self = nullptr; # if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -42,7 +42,7 @@ static int lua_cocos2dx_video_VideoPlayer_addEventListener(lua_State* L) goto tolua_lerror; # endif - self = static_cast(tolua_tousertype(L, 1, 0)); + self = static_cast(tolua_tousertype(L, 1, 0)); # if COCOS2D_DEBUG >= 1 if (nullptr == self) @@ -65,7 +65,7 @@ static int lua_cocos2dx_video_VideoPlayer_addEventListener(lua_State* L) LUA_FUNCTION handler = (toluafix_ref_function(L, 2, 0)); - self->addEventListener([=](cocos2d::Ref* ref, cocos2d::ui::VideoPlayer::EventType eventType) { + self->addEventListener([=](axis::Ref* ref, axis::ui::VideoPlayer::EventType eventType) { LuaStack* stack = LuaEngine::getInstance()->getLuaStack(); stack->pushObject(ref, "cc.Ref"); diff --git a/extensions/scripting/lua-bindings/manual/ui/lua_cocos2dx_webview_manual.cpp b/extensions/scripting/lua-bindings/manual/ui/lua_cocos2dx_webview_manual.cpp index 15d34b4579..f268c09d42 100644 --- a/extensions/scripting/lua-bindings/manual/ui/lua_cocos2dx_webview_manual.cpp +++ b/extensions/scripting/lua-bindings/manual/ui/lua_cocos2dx_webview_manual.cpp @@ -33,7 +33,7 @@ static int lua_cocos2dx_WebView_setOnShouldStartLoading(lua_State* L) { int argc = 0; - cocos2d::ui::WebView* self = nullptr; + axis::ui::WebView* self = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -41,7 +41,7 @@ static int lua_cocos2dx_WebView_setOnShouldStartLoading(lua_State* L) goto tolua_lerror; #endif - self = static_cast(tolua_tousertype(L, 1, 0)); + self = static_cast(tolua_tousertype(L, 1, 0)); #if COCOS2D_DEBUG >= 1 if (nullptr == self) @@ -89,7 +89,7 @@ static int lua_cocos2dx_WebView_setOnDidFinishLoading(lua_State* L) { int argc = 0; - cocos2d::ui::WebView* self = nullptr; + axis::ui::WebView* self = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -97,7 +97,7 @@ static int lua_cocos2dx_WebView_setOnDidFinishLoading(lua_State* L) goto tolua_lerror; #endif - self = static_cast(tolua_tousertype(L, 1, 0)); + self = static_cast(tolua_tousertype(L, 1, 0)); #if COCOS2D_DEBUG >= 1 if (nullptr == self) @@ -144,7 +144,7 @@ static int lua_cocos2dx_WebView_setOnDidFailLoading(lua_State* L) { int argc = 0; - cocos2d::ui::WebView* self = nullptr; + axis::ui::WebView* self = nullptr; #if COCOS2D_DEBUG >= 1 tolua_Error tolua_err; @@ -152,7 +152,7 @@ static int lua_cocos2dx_WebView_setOnDidFailLoading(lua_State* L) goto tolua_lerror; #endif - self = static_cast(tolua_tousertype(L, 1, 0)); + self = static_cast(tolua_tousertype(L, 1, 0)); #if COCOS2D_DEBUG >= 1 if (nullptr == self) diff --git a/extensions/spine/AttachmentVertices.cpp b/extensions/spine/AttachmentVertices.cpp index 9fc2afe289..a76ee0d7b4 100644 --- a/extensions/spine/AttachmentVertices.cpp +++ b/extensions/spine/AttachmentVertices.cpp @@ -29,7 +29,7 @@ #include -USING_NS_CC; +USING_NS_AX; namespace spine { diff --git a/extensions/spine/AttachmentVertices.h b/extensions/spine/AttachmentVertices.h index b79ddbeee6..97ad08bb05 100644 --- a/extensions/spine/AttachmentVertices.h +++ b/extensions/spine/AttachmentVertices.h @@ -38,11 +38,11 @@ namespace spine { class SP_API AttachmentVertices { public: - AttachmentVertices (cocos2d::Texture2D* texture, int verticesCount, unsigned short* triangles, int trianglesCount); + AttachmentVertices (axis::Texture2D* texture, int verticesCount, unsigned short* triangles, int trianglesCount); virtual ~AttachmentVertices (); - cocos2d::Texture2D* _texture; - cocos2d::TrianglesCommand::Triangles* _triangles; + axis::Texture2D* _texture; + axis::TrianglesCommand::Triangles* _triangles; }; } diff --git a/extensions/spine/SkeletonAnimation.cpp b/extensions/spine/SkeletonAnimation.cpp index 28e4bc62b7..2edc8687c7 100644 --- a/extensions/spine/SkeletonAnimation.cpp +++ b/extensions/spine/SkeletonAnimation.cpp @@ -32,7 +32,7 @@ #include #include -USING_NS_CC; +USING_NS_AX; using std::min; using std::max; using std::vector; @@ -142,7 +142,7 @@ void SkeletonAnimation::update (float deltaTime) { if (_postUpdateListener) _postUpdateListener(this); } -void SkeletonAnimation::draw(cocos2d::Renderer *renderer, const cocos2d::Mat4 &transform, uint32_t transformFlags) { +void SkeletonAnimation::draw(axis::Renderer *renderer, const axis::Mat4 &transform, uint32_t transformFlags) { if (_firstDraw) { _firstDraw = false; update(0); diff --git a/extensions/spine/SkeletonAnimation.h b/extensions/spine/SkeletonAnimation.h index d2cf2989f4..6387c20a45 100644 --- a/extensions/spine/SkeletonAnimation.h +++ b/extensions/spine/SkeletonAnimation.h @@ -69,7 +69,7 @@ public: } virtual void update (float deltaTime) override; - virtual void draw (cocos2d::Renderer* renderer, const cocos2d::Mat4& transform, uint32_t transformFlags) override; + virtual void draw (axis::Renderer* renderer, const axis::Mat4& transform, uint32_t transformFlags) override; void setAnimationStateData (AnimationStateData* stateData); void setMix (const std::string& fromAnimation, const std::string& toAnimation, float duration); diff --git a/extensions/spine/SkeletonBatch.cpp b/extensions/spine/SkeletonBatch.cpp index 651a55145d..9e5bdb395b 100644 --- a/extensions/spine/SkeletonBatch.cpp +++ b/extensions/spine/SkeletonBatch.cpp @@ -33,7 +33,7 @@ #include #include -USING_NS_CC; +USING_NS_AX; #define EVENT_AFTER_DRAW_RESET_POSITION "director_after_draw" using std::max; #define INITIAL_SIZE (10000) @@ -115,11 +115,11 @@ void SkeletonBatch::update (float delta) { reset(); } -cocos2d::V3F_C4B_T2F* SkeletonBatch::allocateVertices(uint32_t numVertices) { +axis::V3F_C4B_T2F* SkeletonBatch::allocateVertices(uint32_t numVertices) { if (_vertices.size() - _numVertices < numVertices) { - cocos2d::V3F_C4B_T2F* oldData = _vertices.data(); + axis::V3F_C4B_T2F* oldData = _vertices.data(); _vertices.resize((_vertices.size() + numVertices) * 2 + 1); - cocos2d::V3F_C4B_T2F* newData = _vertices.data(); + axis::V3F_C4B_T2F* newData = _vertices.data(); for (uint32_t i = 0; i < this->_nextFreeCommand; i++) { SkeletonCommand* command = _commandsPool[i]; SkeletonCommand::Triangles& triangles = (SkeletonCommand::Triangles&)command->getTriangles(); @@ -127,7 +127,7 @@ cocos2d::V3F_C4B_T2F* SkeletonBatch::allocateVertices(uint32_t numVertices) { } } - cocos2d::V3F_C4B_T2F* vertices = _vertices.data() + _numVertices; + axis::V3F_C4B_T2F* vertices = _vertices.data() + _numVertices; _numVertices += numVertices; return vertices; } @@ -162,9 +162,9 @@ void SkeletonBatch::deallocateIndices(uint32_t numIndices) { } -cocos2d::TrianglesCommand* SkeletonBatch::addCommand(cocos2d::Renderer* renderer, float globalOrder, cocos2d::Texture2D* texture, backend::ProgramState* programState, cocos2d::BlendFunc blendType, const cocos2d::TrianglesCommand::Triangles& triangles, const cocos2d::Mat4& mv, uint32_t flags) { +axis::TrianglesCommand* SkeletonBatch::addCommand(axis::Renderer* renderer, float globalOrder, axis::Texture2D* texture, backend::ProgramState* programState, axis::BlendFunc blendType, const axis::TrianglesCommand::Triangles& triangles, const axis::Mat4& mv, uint32_t flags) { SkeletonCommand* command = nextFreeCommand(); - const cocos2d::Mat4& projectionMat = Director::getInstance()->getMatrix(MATRIX_STACK_TYPE::MATRIX_STACK_PROJECTION); + const axis::Mat4& projectionMat = Director::getInstance()->getMatrix(MATRIX_STACK_TYPE::MATRIX_STACK_PROJECTION); if (programState == nullptr) programState = _programState; diff --git a/extensions/spine/SkeletonBatch.h b/extensions/spine/SkeletonBatch.h index c89f90a7a9..228436aca1 100644 --- a/extensions/spine/SkeletonBatch.h +++ b/extensions/spine/SkeletonBatch.h @@ -39,9 +39,9 @@ namespace spine { - struct SkeletonCommand : public cocos2d::TrianglesCommand { - cocos2d::backend::UniformLocation _locMVP; - cocos2d::backend::UniformLocation _locTexture; + struct SkeletonCommand : public axis::TrianglesCommand { + axis::backend::UniformLocation _locMVP; + axis::backend::UniformLocation _locTexture; }; class SP_API SkeletonBatch { @@ -52,13 +52,13 @@ namespace spine { void update (float delta); - cocos2d::V3F_C4B_T2F* allocateVertices(uint32_t numVertices); + axis::V3F_C4B_T2F* allocateVertices(uint32_t numVertices); void deallocateVertices(uint32_t numVertices); unsigned short* allocateIndices(uint32_t numIndices); void deallocateIndices(uint32_t numVertices); - cocos2d::TrianglesCommand* addCommand(cocos2d::Renderer* renderer, float globalOrder, cocos2d::Texture2D* texture, cocos2d::backend::ProgramState* programState, cocos2d::BlendFunc blendType, const cocos2d::TrianglesCommand::Triangles& triangles, const cocos2d::Mat4& mv, uint32_t flags); + axis::TrianglesCommand* addCommand(axis::Renderer* renderer, float globalOrder, axis::Texture2D* texture, axis::backend::ProgramState* programState, axis::BlendFunc blendType, const axis::TrianglesCommand::Triangles& triangles, const axis::Mat4& mv, uint32_t flags); - cocos2d::backend::ProgramState* updateCommandPipelinePS(SkeletonCommand* command, cocos2d::backend::ProgramState* programState); + axis::backend::ProgramState* updateCommandPipelinePS(SkeletonCommand* command, axis::backend::ProgramState* programState); protected: SkeletonBatch (); @@ -70,14 +70,14 @@ namespace spine { SkeletonCommand* newCommand(); - cocos2d::backend::ProgramState* _programState; // The default program state + axis::backend::ProgramState* _programState; // The default program state // pool of commands std::vector _commandsPool; uint32_t _nextFreeCommand; // pool of vertices - std::vector _vertices; + std::vector _vertices; uint32_t _numVertices; // pool of indices diff --git a/extensions/spine/SkeletonRenderer.cpp b/extensions/spine/SkeletonRenderer.cpp index 9aecaf5be5..9019cb47b0 100644 --- a/extensions/spine/SkeletonRenderer.cpp +++ b/extensions/spine/SkeletonRenderer.cpp @@ -32,7 +32,7 @@ #include #include -USING_NS_CC; +USING_NS_AX; namespace spine { @@ -40,11 +40,11 @@ namespace { Cocos2dTextureLoader textureLoader; int computeTotalCoordCount(Skeleton& skeleton, int startSlotIndex, int endSlotIndex); - cocos2d::Rect computeBoundingRect(const float* coords, int vertexCount); + axis::Rect computeBoundingRect(const float* coords, int vertexCount); void interleaveCoordinates(float* dst, const float* src, int vertexCount, int dstStride); BlendFunc makeBlendFunc(BlendMode blendMode, bool premultipliedAlpha); void transformWorldVertices(float* dstCoord, int coordCount, Skeleton& skeleton, int startSlotIndex, int endSlotIndex); - bool cullRectangle(Renderer* renderer, const Mat4& transform, const cocos2d::Rect& rect); + bool cullRectangle(Renderer* renderer, const Mat4& transform, const axis::Rect& rect); Color4B ColorToColor4B(const Color& color); bool slotIsOutRange(Slot& slot, int startSlotIndex, int endSlotIndex); bool nothingToDraw(Slot& slot, int startSlotIndex, int endSlotIndex); @@ -267,7 +267,7 @@ void SkeletonRenderer::draw (Renderer* renderer, const Mat4& transform, uint32_t transformWorldVertices(worldCoords, coordCount, *_skeleton, _startSlotIndex, _endSlotIndex); #if CC_USE_CULLING - const cocos2d::Rect bb = computeBoundingRect(worldCoords, coordCount / 2); + const axis::Rect bb = computeBoundingRect(worldCoords, coordCount / 2); if (cullRectangle(renderer, transform, bb)) { VLA_FREE(worldCoords); @@ -304,7 +304,7 @@ void SkeletonRenderer::draw (Renderer* renderer, const Mat4& transform, uint32_t continue; } - cocos2d::TrianglesCommand::Triangles triangles; + axis::TrianglesCommand::Triangles triangles; TwoColorTriangles trianglesTwoColor; if (slot->getAttachment()->getRTTI().isExactly(RegionAttachment::rtti)) { @@ -319,7 +319,7 @@ void SkeletonRenderer::draw (Renderer* renderer, const Mat4& transform, uint32_t triangles.verts = batch->allocateVertices(attachmentVertices->_triangles->vertCount); triangles.vertCount = attachmentVertices->_triangles->vertCount; assert(triangles.vertCount == 4); - memcpy(triangles.verts, attachmentVertices->_triangles->verts, sizeof(cocos2d::V3F_C4B_T2F) * attachmentVertices->_triangles->vertCount); + memcpy(triangles.verts, attachmentVertices->_triangles->verts, sizeof(axis::V3F_C4B_T2F) * attachmentVertices->_triangles->vertCount); dstStride = sizeof(V3F_C4B_T2F) / sizeof(float); dstTriangleVertices = reinterpret_cast(triangles.verts); } else { @@ -352,7 +352,7 @@ void SkeletonRenderer::draw (Renderer* renderer, const Mat4& transform, uint32_t triangles.indexCount = attachmentVertices->_triangles->indexCount; triangles.verts = batch->allocateVertices(attachmentVertices->_triangles->vertCount); triangles.vertCount = attachmentVertices->_triangles->vertCount; - memcpy(triangles.verts, attachmentVertices->_triangles->verts, sizeof(cocos2d::V3F_C4B_T2F) * attachmentVertices->_triangles->vertCount); + memcpy(triangles.verts, attachmentVertices->_triangles->verts, sizeof(axis::V3F_C4B_T2F) * attachmentVertices->_triangles->vertCount); dstTriangleVertices = (float*)triangles.verts; dstStride = sizeof(V3F_C4B_T2F) / sizeof(float); dstVertexCount = triangles.vertCount; @@ -408,14 +408,14 @@ void SkeletonRenderer::draw (Renderer* renderer, const Mat4& transform, uint32_t color.b *= color.a; } - const cocos2d::Color4B color4B = ColorToColor4B(color); - const cocos2d::Color4B darkColor4B = ColorToColor4B(darkColor); + const axis::Color4B color4B = ColorToColor4B(color); + const axis::Color4B darkColor4B = ColorToColor4B(darkColor); const BlendFunc blendFunc = makeBlendFunc(slot->getData().getBlendMode(), attachmentVertices->_texture->hasPremultipliedAlpha()); _blendFunc = blendFunc; if (hasSingleTint) { if (_clipper->isClipping()) { - _clipper->clipTriangles((float*)&triangles.verts[0].vertices, triangles.indices, triangles.indexCount, (float*)&triangles.verts[0].texCoords, sizeof(cocos2d::V3F_C4B_T2F) / 4); + _clipper->clipTriangles((float*)&triangles.verts[0].vertices, triangles.indices, triangles.indexCount, (float*)&triangles.verts[0].texCoords, sizeof(axis::V3F_C4B_T2F) / 4); batch->deallocateVertices(triangles.vertCount); if (_clipper->getClippedTriangles().size() == 0) { @@ -431,9 +431,9 @@ void SkeletonRenderer::draw (Renderer* renderer, const Mat4& transform, uint32_t memcpy(triangles.indices, _clipper->getClippedTriangles().buffer(), sizeof(unsigned short) * _clipper->getClippedTriangles().size()); #if COCOS2D_VERSION < 0x00040000 - cocos2d::TrianglesCommand* batchedTriangles = batch->addCommand(renderer, _globalZOrder, attachmentVertices->_texture, _glProgramState, blendFunc, triangles, transform, transformFlags); + axis::TrianglesCommand* batchedTriangles = batch->addCommand(renderer, _globalZOrder, attachmentVertices->_texture, _glProgramState, blendFunc, triangles, transform, transformFlags); #else - cocos2d::TrianglesCommand* batchedTriangles = batch->addCommand(renderer, _globalZOrder, attachmentVertices->_texture, _programState, blendFunc, triangles, transform, transformFlags); + axis::TrianglesCommand* batchedTriangles = batch->addCommand(renderer, _globalZOrder, attachmentVertices->_texture, _programState, blendFunc, triangles, transform, transformFlags); #endif const float* verts = _clipper->getClippedVertices().buffer(); @@ -463,9 +463,9 @@ void SkeletonRenderer::draw (Renderer* renderer, const Mat4& transform, uint32_t } else { // Not clipping. #if COCOS2D_VERSION < 0x00040000 - cocos2d::TrianglesCommand* batchedTriangles = batch->addCommand(renderer, _globalZOrder, attachmentVertices->_texture, _glProgramState, blendFunc, triangles, transform, transformFlags); + axis::TrianglesCommand* batchedTriangles = batch->addCommand(renderer, _globalZOrder, attachmentVertices->_texture, _glProgramState, blendFunc, triangles, transform, transformFlags); #else - cocos2d::TrianglesCommand* batchedTriangles = batch->addCommand(renderer, _globalZOrder, attachmentVertices->_texture, _programState, blendFunc, triangles, transform, transformFlags); + axis::TrianglesCommand* batchedTriangles = batch->addCommand(renderer, _globalZOrder, attachmentVertices->_texture, _programState, blendFunc, triangles, transform, transformFlags); #endif if (_effect) { @@ -574,7 +574,7 @@ void SkeletonRenderer::draw (Renderer* renderer, const Mat4& transform, uint32_t if (!parent || parent->getChildrenCount() > 100 || getChildrenCount() != 0) { lastTwoColorTrianglesCommand->setForceFlush(true); } else { - const cocos2d::Vector& children = parent->getChildren(); + const axis::Vector& children = parent->getChildren(); Node* sibling = nullptr; for (ssize_t i = 0; i < children.size(); i++) { if (children.at(i) == this) { @@ -626,7 +626,7 @@ void SkeletonRenderer::drawDebug (Renderer* renderer, const Mat4 &transform, uin #else drawNode->setLineWidth(2.0f); #endif - const cocos2d::Rect brect = getBoundingBox(); + const axis::Rect brect = getBoundingBox(); const Vec2 points[4] = { brect.origin, @@ -731,12 +731,12 @@ void SkeletonRenderer::drawDebug (Renderer* renderer, const Mat4 &transform, uin #endif } -cocos2d::Rect SkeletonRenderer::getBoundingBox () const { +axis::Rect SkeletonRenderer::getBoundingBox () const { const int coordCount = computeTotalCoordCount(*_skeleton, _startSlotIndex, _endSlotIndex); if (coordCount == 0) return { 0, 0, 0, 0 }; VLA(float, worldCoords, coordCount); transformWorldVertices(worldCoords, coordCount, *_skeleton, _startSlotIndex, _endSlotIndex); - const cocos2d::Rect bb = computeBoundingRect(worldCoords, coordCount / 2); + const axis::Rect bb = computeBoundingRect(worldCoords, coordCount / 2); VLA_FREE(worldCoords); return bb; } @@ -885,7 +885,7 @@ bool SkeletonRenderer::isOpacityModifyRGB () const { } namespace { - cocos2d::Rect computeBoundingRect(const float* coords, int vertexCount) { + axis::Rect computeBoundingRect(const float* coords, int vertexCount) { assert(coords); assert(vertexCount > 0); @@ -1038,7 +1038,7 @@ namespace { } - bool cullRectangle(Renderer* renderer, const Mat4& transform, const cocos2d::Rect& rect) { + bool cullRectangle(Renderer* renderer, const Mat4& transform, const axis::Rect& rect) { if (Camera::getVisitingCamera() == nullptr) return false; diff --git a/extensions/spine/SkeletonRenderer.h b/extensions/spine/SkeletonRenderer.h index 46f1772e97..0d74bc01f4 100644 --- a/extensions/spine/SkeletonRenderer.h +++ b/extensions/spine/SkeletonRenderer.h @@ -38,7 +38,7 @@ namespace spine { class AttachmentVertices; /* Draws a skeleton. */ - class SP_API SkeletonRenderer: public cocos2d::Node, public cocos2d::BlendProtocol { + class SP_API SkeletonRenderer: public axis::Node, public axis::BlendProtocol { public: CREATE_FUNC(SkeletonRenderer); static SkeletonRenderer* createWithSkeleton(Skeleton* skeleton, bool ownsSkeleton = false, bool ownsSkeletonData = false); @@ -47,8 +47,8 @@ namespace spine { static SkeletonRenderer* createWithFile (const std::string& skeletonDataFile, const std::string& atlasFile, float scale = 1); void update (float deltaTime) override; - void draw (cocos2d::Renderer* renderer, const cocos2d::Mat4& transform, uint32_t transformFlags) override; - cocos2d::Rect getBoundingBox () const override; + void draw (axis::Renderer* renderer, const axis::Mat4& transform, uint32_t transformFlags) override; + axis::Rect getBoundingBox () const override; void onEnter () override; void onExit () override; @@ -109,8 +109,8 @@ namespace spine { void setSlotsRange(int startSlotIndex, int endSlotIndex); // --- BlendProtocol - void setBlendFunc (const cocos2d::BlendFunc& blendFunc)override; - const cocos2d::BlendFunc& getBlendFunc () const override; + void setBlendFunc (const axis::BlendFunc& blendFunc)override; + const axis::BlendFunc& getBlendFunc () const override; void setOpacityModifyRGB (bool value) override; bool isOpacityModifyRGB () const override; @@ -134,15 +134,15 @@ namespace spine { protected: void setSkeletonData (SkeletonData* skeletonData, bool ownsSkeletonData); void setupGLProgramState(bool twoColorTintEnabled); - virtual void drawDebug (cocos2d::Renderer* renderer, const cocos2d::Mat4& transform, uint32_t transformFlags); + virtual void drawDebug (axis::Renderer* renderer, const axis::Mat4& transform, uint32_t transformFlags); bool _ownsSkeletonData; bool _ownsSkeleton; bool _ownsAtlas = false; Atlas* _atlas; AttachmentLoader* _attachmentLoader; - cocos2d::CustomCommand _debugCommand; - cocos2d::BlendFunc _blendFunc; + axis::CustomCommand _debugCommand; + axis::BlendFunc _blendFunc; bool _premultipliedAlpha; Skeleton* _skeleton; float _timeScale; @@ -152,7 +152,7 @@ namespace spine { bool _debugBoundingRect; SkeletonClipping* _clipper; VertexEffect* _effect; - cocos2d::Rect _boundingRect; + axis::Rect _boundingRect; int _startSlotIndex; int _endSlotIndex; diff --git a/extensions/spine/SkeletonTwoColorBatch.cpp b/extensions/spine/SkeletonTwoColorBatch.cpp index 7802740130..fcdcbc6466 100644 --- a/extensions/spine/SkeletonTwoColorBatch.cpp +++ b/extensions/spine/SkeletonTwoColorBatch.cpp @@ -40,7 +40,7 @@ #include "renderer/ccShaders.h" #include "renderer/backend/Device.h" -USING_NS_CC; +USING_NS_AX; #define EVENT_AFTER_DRAW_RESET_POSITION "director_after_draw" using std::max; #define INITIAL_SIZE (10000) @@ -140,10 +140,10 @@ TwoColorTrianglesCommand::TwoColorTrianglesCommand() :_materialID(0), _texture(n _type = RenderCommand::Type::CUSTOM_COMMAND; } -void TwoColorTrianglesCommand::init(float globalOrder, cocos2d::Texture2D *texture, cocos2d::backend::ProgramState* programState, BlendFunc blendType, const TwoColorTriangles& triangles, const Mat4& mv, uint32_t flags) { +void TwoColorTrianglesCommand::init(float globalOrder, axis::Texture2D *texture, axis::backend::ProgramState* programState, BlendFunc blendType, const TwoColorTriangles& triangles, const Mat4& mv, uint32_t flags) { updateCommandPipelineDescriptor(programState); - const cocos2d::Mat4& projectionMat = Director::getInstance()->getMatrix(MATRIX_STACK_TYPE::MATRIX_STACK_PROJECTION); + const axis::Mat4& projectionMat = Director::getInstance()->getMatrix(MATRIX_STACK_TYPE::MATRIX_STACK_PROJECTION); auto finalMatrix = projectionMat * mv; @@ -181,7 +181,7 @@ void TwoColorTrianglesCommand::init(float globalOrder, cocos2d::Texture2D *textu -void TwoColorTrianglesCommand::updateCommandPipelineDescriptor(cocos2d::backend::ProgramState* programState) +void TwoColorTrianglesCommand::updateCommandPipelineDescriptor(axis::backend::ProgramState* programState) { // OPTIMIZE ME: all commands belong a same Node should share a same programState like SkeletonBatch if (!__twoColorProgramState) @@ -355,7 +355,7 @@ void SkeletonTwoColorBatch::deallocateIndices(uint32_t numIndices) { _indices.setSize(_indices.size() - numIndices, 0); } -TwoColorTrianglesCommand* SkeletonTwoColorBatch::addCommand(cocos2d::Renderer* renderer, float globalOrder, cocos2d::Texture2D* texture, backend::ProgramState* programState, cocos2d::BlendFunc blendType, const TwoColorTriangles& triangles, const cocos2d::Mat4& mv, uint32_t flags) { +TwoColorTrianglesCommand* SkeletonTwoColorBatch::addCommand(axis::Renderer* renderer, float globalOrder, axis::Texture2D* texture, backend::ProgramState* programState, axis::BlendFunc blendType, const TwoColorTriangles& triangles, const axis::Mat4& mv, uint32_t flags) { TwoColorTrianglesCommand* command = nextFreeCommand(); command->init(globalOrder, texture, programState, blendType, triangles, mv, flags); command->updateVertexAndIndexBuffer(renderer, triangles.verts, triangles.vertCount, triangles.indices, triangles.indexCount); @@ -363,7 +363,7 @@ TwoColorTrianglesCommand* SkeletonTwoColorBatch::addCommand(cocos2d::Renderer* r return command; } -void SkeletonTwoColorBatch::batch (cocos2d::Renderer *renderer, TwoColorTrianglesCommand* command) { +void SkeletonTwoColorBatch::batch (axis::Renderer *renderer, TwoColorTrianglesCommand* command) { if (_numVerticesBuffer + command->getTriangles().vertCount >= MAX_VERTICES || _numIndicesBuffer + command->getTriangles().indexCount >= MAX_INDICES) { flush(renderer, _lastCommand); } @@ -394,7 +394,7 @@ void SkeletonTwoColorBatch::batch (cocos2d::Renderer *renderer, TwoColorTriangle _lastCommand = command; } -void SkeletonTwoColorBatch::flush (cocos2d::Renderer *renderer, TwoColorTrianglesCommand* materialCommand) { +void SkeletonTwoColorBatch::flush (axis::Renderer *renderer, TwoColorTrianglesCommand* materialCommand) { if (!materialCommand) return; diff --git a/extensions/spine/SkeletonTwoColorBatch.h b/extensions/spine/SkeletonTwoColorBatch.h index e3e8309d22..3dc21c5824 100644 --- a/extensions/spine/SkeletonTwoColorBatch.h +++ b/extensions/spine/SkeletonTwoColorBatch.h @@ -39,10 +39,10 @@ namespace spine { struct V3F_C4B_C4B_T2F { - cocos2d::Vec3 position; - cocos2d::Color4B color; - cocos2d::Color4B color2; - cocos2d::Tex2F texCoords; + axis::Vec3 position; + axis::Color4B color; + axis::Color4B color2; + axis::Tex2F texCoords; }; struct TwoColorTriangles { @@ -52,21 +52,21 @@ namespace spine { int indexCount; }; - class SP_API TwoColorTrianglesCommand : public cocos2d::CustomCommand { + class SP_API TwoColorTrianglesCommand : public axis::CustomCommand { public: TwoColorTrianglesCommand(); ~TwoColorTrianglesCommand(); - void init(float globalOrder, cocos2d::Texture2D* texture, cocos2d::backend::ProgramState* programState, cocos2d::BlendFunc blendType, const TwoColorTriangles& triangles, const cocos2d::Mat4& mv, uint32_t flags); + void init(float globalOrder, axis::Texture2D* texture, axis::backend::ProgramState* programState, axis::BlendFunc blendType, const TwoColorTriangles& triangles, const axis::Mat4& mv, uint32_t flags); - void updateCommandPipelineDescriptor(cocos2d::backend::ProgramState* programState); + void updateCommandPipelineDescriptor(axis::backend::ProgramState* programState); - inline cocos2d::backend::TextureBackend* getTexture() const { return _texture; } + inline axis::backend::TextureBackend* getTexture() const { return _texture; } - void draw(cocos2d::Renderer *renderer); + void draw(axis::Renderer *renderer); - void updateVertexAndIndexBuffer(cocos2d::Renderer *renderer, V3F_C4B_C4B_T2F *vertices, int verticesSize, uint16_t *indices, int indicesSize); + void updateVertexAndIndexBuffer(axis::Renderer *renderer, V3F_C4B_C4B_T2F *vertices, int verticesSize, uint16_t *indices, int indicesSize); inline uint32_t getMaterialID() const { return _materialID; } @@ -80,9 +80,9 @@ namespace spine { inline const unsigned short* getIndices() const { return _triangles.indices; } - inline cocos2d::BlendFunc getBlendType() const { return _blendType; } + inline axis::BlendFunc getBlendType() const { return _blendType; } - inline const cocos2d::Mat4& getModelView() const { return _mv; } + inline const axis::Mat4& getModelView() const { return _mv; } void setForceFlush (bool forceFlush) { _forceFlush = forceFlush; } @@ -94,14 +94,14 @@ namespace spine { void *_prog = nullptr; - cocos2d::backend::TextureBackend *_texture = nullptr; - cocos2d::backend::ProgramState *_programState = nullptr; - cocos2d::backend::UniformLocation _locPMatrix; - cocos2d::backend::UniformLocation _locTexture; + axis::backend::TextureBackend *_texture = nullptr; + axis::backend::ProgramState *_programState = nullptr; + axis::backend::UniformLocation _locPMatrix; + axis::backend::UniformLocation _locTexture; - cocos2d::BlendFunc _blendType; + axis::BlendFunc _blendType; TwoColorTriangles _triangles; - cocos2d::Mat4 _mv; + axis::Mat4 _mv; bool _forceFlush; }; @@ -119,11 +119,11 @@ namespace spine { unsigned short* allocateIndices(uint32_t numIndices); void deallocateIndices(uint32_t numIndices); - TwoColorTrianglesCommand* addCommand(cocos2d::Renderer* renderer, float globalOrder, cocos2d::Texture2D* texture, cocos2d::backend::ProgramState* programState, cocos2d::BlendFunc blendType, const TwoColorTriangles& triangles, const cocos2d::Mat4& mv, uint32_t flags); + TwoColorTrianglesCommand* addCommand(axis::Renderer* renderer, float globalOrder, axis::Texture2D* texture, axis::backend::ProgramState* programState, axis::BlendFunc blendType, const TwoColorTriangles& triangles, const axis::Mat4& mv, uint32_t flags); - void batch(cocos2d::Renderer* renderer, TwoColorTrianglesCommand* command); + void batch(axis::Renderer* renderer, TwoColorTrianglesCommand* command); - void flush(cocos2d::Renderer* renderer, TwoColorTrianglesCommand* materialCommand); + void flush(axis::Renderer* renderer, TwoColorTrianglesCommand* materialCommand); uint32_t getNumBatches () { return _numBatches; }; diff --git a/extensions/spine/spine-cocos2dx.cpp b/extensions/spine/spine-cocos2dx.cpp index 2e8989ae5e..ebeeb4a930 100644 --- a/extensions/spine/spine-cocos2dx.cpp +++ b/extensions/spine/spine-cocos2dx.cpp @@ -31,7 +31,7 @@ #include #include -USING_NS_CC; +USING_NS_AX; using namespace spine; static void deleteAttachmentVertices (void* vertices) { diff --git a/templates/cpp-template-default/Classes/AppDelegate.cpp b/templates/cpp-template-default/Classes/AppDelegate.cpp index 82cb02ee50..b1501a3b0d 100644 --- a/templates/cpp-template-default/Classes/AppDelegate.cpp +++ b/templates/cpp-template-default/Classes/AppDelegate.cpp @@ -32,12 +32,12 @@ # include "audio/AudioEngine.h" #endif -USING_NS_CC; +USING_NS_AX; -static cocos2d::Size designResolutionSize = cocos2d::Size(1280, 720); -static cocos2d::Size smallResolutionSize = cocos2d::Size(480, 320); -static cocos2d::Size mediumResolutionSize = cocos2d::Size(1024, 768); -static cocos2d::Size largeResolutionSize = cocos2d::Size(2048, 1536); +static axis::Size designResolutionSize = axis::Size(1280, 720); +static axis::Size smallResolutionSize = axis::Size(480, 320); +static axis::Size mediumResolutionSize = axis::Size(1024, 768); +static axis::Size largeResolutionSize = axis::Size(2048, 1536); AppDelegate::AppDelegate() {} @@ -70,7 +70,7 @@ bool AppDelegate::applicationDidFinishLaunching() #if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC) || \ (CC_TARGET_PLATFORM == CC_PLATFORM_LINUX) glview = GLViewImpl::createWithRect( - "HelloCpp", cocos2d::Rect(0, 0, designResolutionSize.width, designResolutionSize.height)); + "HelloCpp", axis::Rect(0, 0, designResolutionSize.width, designResolutionSize.height)); #else glview = GLViewImpl::create("HelloCpp"); #endif diff --git a/templates/cpp-template-default/Classes/AppDelegate.h b/templates/cpp-template-default/Classes/AppDelegate.h index 4f6bdec272..174ca18c01 100644 --- a/templates/cpp-template-default/Classes/AppDelegate.h +++ b/templates/cpp-template-default/Classes/AppDelegate.h @@ -33,7 +33,7 @@ Private inheritance here hides part of interface from Director. */ -class AppDelegate : private cocos2d::Application +class AppDelegate : private axis::Application { public: AppDelegate(); diff --git a/templates/cpp-template-default/Classes/HelloWorldScene.cpp b/templates/cpp-template-default/Classes/HelloWorldScene.cpp index 5b8fcc2dc6..47d28aafea 100644 --- a/templates/cpp-template-default/Classes/HelloWorldScene.cpp +++ b/templates/cpp-template-default/Classes/HelloWorldScene.cpp @@ -25,7 +25,7 @@ #include "HelloWorldScene.h" -USING_NS_CC; +USING_NS_AX; // Print useful error message instead of segfaulting when files are not there. static void problemLoading(const char* filename) diff --git a/templates/cpp-template-default/Classes/HelloWorldScene.h b/templates/cpp-template-default/Classes/HelloWorldScene.h index e1c17bf8e6..ef8b19eec3 100644 --- a/templates/cpp-template-default/Classes/HelloWorldScene.h +++ b/templates/cpp-template-default/Classes/HelloWorldScene.h @@ -28,7 +28,7 @@ #include "cocos2d.h" -class HelloWorld : public cocos2d::Scene +class HelloWorld : public axis::Scene { public: virtual bool init() override; diff --git a/templates/cpp-template-default/proj.ios_mac/ios/AppController.mm b/templates/cpp-template-default/proj.ios_mac/ios/AppController.mm index 2dafa17d40..28c5b7e56b 100644 --- a/templates/cpp-template-default/proj.ios_mac/ios/AppController.mm +++ b/templates/cpp-template-default/proj.ios_mac/ios/AppController.mm @@ -42,11 +42,11 @@ static AppDelegate s_sharedApplication; - (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions { - cocos2d::Application* app = cocos2d::Application::getInstance(); + axis::Application* app = axis::Application::getInstance(); // Initialize the GLView attributes app->initGLContextAttrs(); - cocos2d::GLViewImpl::convertAttrs(); + axis::GLViewImpl::convertAttrs(); // Override point for customization after application launch. @@ -80,8 +80,8 @@ static AppDelegate s_sharedApplication; } // IMPORTANT: Setting the GLView should be done after creating the RootViewController - cocos2d::GLView* glview = cocos2d::GLViewImpl::createWithEAGLView((__bridge void*)_viewController.view); - cocos2d::Director::getInstance()->setOpenGLView(glview); + axis::GLView* glview = axis::GLViewImpl::createWithEAGLView((__bridge void*)_viewController.view); + axis::Director::getInstance()->setOpenGLView(glview); // run the cocos2d-x game scene app->run(); @@ -98,7 +98,7 @@ static AppDelegate s_sharedApplication; throttle down OpenGL ES frame rates. Games should use this method to pause the game. */ // We don't need to call this method any more. It will interrupt user defined game pause&resume logic - /* cocos2d::Director::getInstance()->pause(); */ + /* axis::Director::getInstance()->pause(); */ } - (void)applicationDidBecomeActive:(UIApplication*)application @@ -108,7 +108,7 @@ static AppDelegate s_sharedApplication; previously in the background, optionally refresh the user interface. */ // We don't need to call this method any more. It will interrupt user defined game pause&resume logic - /* cocos2d::Director::getInstance()->resume(); */ + /* axis::Director::getInstance()->resume(); */ } - (void)applicationDidEnterBackground:(UIApplication*)application @@ -118,7 +118,7 @@ static AppDelegate s_sharedApplication; information to restore your application to its current state in case it is terminated later. If your application supports background execution, called instead of applicationWillTerminate: when the user quits. */ - cocos2d::Application::getInstance()->applicationDidEnterBackground(); + axis::Application::getInstance()->applicationDidEnterBackground(); } - (void)applicationWillEnterForeground:(UIApplication*)application @@ -127,7 +127,7 @@ static AppDelegate s_sharedApplication; Called as part of transition from the background to the inactive state: here you can undo many of the changes made on entering the background. */ - cocos2d::Application::getInstance()->applicationWillEnterForeground(); + axis::Application::getInstance()->applicationWillEnterForeground(); } - (void)applicationWillTerminate:(UIApplication*)application diff --git a/templates/cpp-template-default/proj.ios_mac/ios/RootViewController.mm b/templates/cpp-template-default/proj.ios_mac/ios/RootViewController.mm index 8eaf237db9..a5ded72f81 100644 --- a/templates/cpp-template-default/proj.ios_mac/ios/RootViewController.mm +++ b/templates/cpp-template-default/proj.ios_mac/ios/RootViewController.mm @@ -46,12 +46,12 @@ customization that is not appropriate for viewDidLoad. { // Initialize the CCEAGLView CCEAGLView* eaglView = [CCEAGLView viewWithFrame:[UIScreen mainScreen].bounds - pixelFormat:(__bridge NSString*)cocos2d::GLViewImpl::_pixelFormat - depthFormat:cocos2d::GLViewImpl::_depthFormat + pixelFormat:(__bridge NSString*)axis::GLViewImpl::_pixelFormat + depthFormat:axis::GLViewImpl::_depthFormat preserveBackbuffer:NO sharegroup:nil - multiSampling:cocos2d::GLViewImpl::_multisamplingCount > 0 ? YES : NO - numberOfSamples:cocos2d::GLViewImpl::_multisamplingCount]; + multiSampling:axis::GLViewImpl::_multisamplingCount > 0 ? YES : NO + numberOfSamples:axis::GLViewImpl::_multisamplingCount]; // Enable or disable multiple touches [eaglView setMultipleTouchEnabled:NO]; @@ -93,7 +93,7 @@ customization that is not appropriate for viewDidLoad. { [super didRotateFromInterfaceOrientation:fromInterfaceOrientation]; - auto glview = cocos2d::Director::getInstance()->getOpenGLView(); + auto glview = axis::Director::getInstance()->getOpenGLView(); if (glview) { @@ -102,7 +102,7 @@ customization that is not appropriate for viewDidLoad. if (eaglview) { CGSize s = CGSizeMake([eaglview getWidth], [eaglview getHeight]); - cocos2d::Application::getInstance()->applicationScreenSizeChanged((int)s.width, (int)s.height); + axis::Application::getInstance()->applicationScreenSizeChanged((int)s.width, (int)s.height); } } } diff --git a/templates/cpp-template-default/proj.ios_mac/mac/main.cpp b/templates/cpp-template-default/proj.ios_mac/mac/main.cpp index 44045f8feb..59748b3c5f 100644 --- a/templates/cpp-template-default/proj.ios_mac/mac/main.cpp +++ b/templates/cpp-template-default/proj.ios_mac/mac/main.cpp @@ -26,7 +26,7 @@ #include "AppDelegate.h" #include "cocos2d.h" -USING_NS_CC; +USING_NS_AX; int main(int argc, char* argv[]) { diff --git a/templates/cpp-template-default/proj.linux/main.cpp b/templates/cpp-template-default/proj.linux/main.cpp index 3cbdb2bc35..dd68d8f841 100644 --- a/templates/cpp-template-default/proj.linux/main.cpp +++ b/templates/cpp-template-default/proj.linux/main.cpp @@ -29,7 +29,7 @@ #include #include -USING_NS_CC; +USING_NS_AX; int main(int argc, char** argv) { diff --git a/templates/cpp-template-default/proj.win32/main.cpp b/templates/cpp-template-default/proj.win32/main.cpp index 636fa57f07..1fdf40a681 100644 --- a/templates/cpp-template-default/proj.win32/main.cpp +++ b/templates/cpp-template-default/proj.win32/main.cpp @@ -26,7 +26,7 @@ #include "AppDelegate.h" #include "cocos2d.h" -USING_NS_CC; +USING_NS_AX; int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow) { diff --git a/templates/lua-template-default/frameworks/runtime-src/Classes/AppDelegate.cpp b/templates/lua-template-default/frameworks/runtime-src/Classes/AppDelegate.cpp index 8408bcdeab..ed1cd0743d 100644 --- a/templates/lua-template-default/frameworks/runtime-src/Classes/AppDelegate.cpp +++ b/templates/lua-template-default/frameworks/runtime-src/Classes/AppDelegate.cpp @@ -34,7 +34,7 @@ # include "audio/AudioEngine.h" #endif -USING_NS_CC; +USING_NS_AX; using namespace std; AppDelegate::AppDelegate() {} diff --git a/templates/lua-template-default/frameworks/runtime-src/Classes/AppDelegate.h b/templates/lua-template-default/frameworks/runtime-src/Classes/AppDelegate.h index 75ace5b5f5..736b73a156 100644 --- a/templates/lua-template-default/frameworks/runtime-src/Classes/AppDelegate.h +++ b/templates/lua-template-default/frameworks/runtime-src/Classes/AppDelegate.h @@ -32,7 +32,7 @@ Private inheritance here hides part of interface from Director. */ -class AppDelegate : private cocos2d::Application +class AppDelegate : private axis::Application { public: AppDelegate(); diff --git a/templates/lua-template-default/frameworks/runtime-src/proj.ios_mac/ios/AppController.mm b/templates/lua-template-default/frameworks/runtime-src/proj.ios_mac/ios/AppController.mm index 2dafa17d40..28c5b7e56b 100644 --- a/templates/lua-template-default/frameworks/runtime-src/proj.ios_mac/ios/AppController.mm +++ b/templates/lua-template-default/frameworks/runtime-src/proj.ios_mac/ios/AppController.mm @@ -42,11 +42,11 @@ static AppDelegate s_sharedApplication; - (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions { - cocos2d::Application* app = cocos2d::Application::getInstance(); + axis::Application* app = axis::Application::getInstance(); // Initialize the GLView attributes app->initGLContextAttrs(); - cocos2d::GLViewImpl::convertAttrs(); + axis::GLViewImpl::convertAttrs(); // Override point for customization after application launch. @@ -80,8 +80,8 @@ static AppDelegate s_sharedApplication; } // IMPORTANT: Setting the GLView should be done after creating the RootViewController - cocos2d::GLView* glview = cocos2d::GLViewImpl::createWithEAGLView((__bridge void*)_viewController.view); - cocos2d::Director::getInstance()->setOpenGLView(glview); + axis::GLView* glview = axis::GLViewImpl::createWithEAGLView((__bridge void*)_viewController.view); + axis::Director::getInstance()->setOpenGLView(glview); // run the cocos2d-x game scene app->run(); @@ -98,7 +98,7 @@ static AppDelegate s_sharedApplication; throttle down OpenGL ES frame rates. Games should use this method to pause the game. */ // We don't need to call this method any more. It will interrupt user defined game pause&resume logic - /* cocos2d::Director::getInstance()->pause(); */ + /* axis::Director::getInstance()->pause(); */ } - (void)applicationDidBecomeActive:(UIApplication*)application @@ -108,7 +108,7 @@ static AppDelegate s_sharedApplication; previously in the background, optionally refresh the user interface. */ // We don't need to call this method any more. It will interrupt user defined game pause&resume logic - /* cocos2d::Director::getInstance()->resume(); */ + /* axis::Director::getInstance()->resume(); */ } - (void)applicationDidEnterBackground:(UIApplication*)application @@ -118,7 +118,7 @@ static AppDelegate s_sharedApplication; information to restore your application to its current state in case it is terminated later. If your application supports background execution, called instead of applicationWillTerminate: when the user quits. */ - cocos2d::Application::getInstance()->applicationDidEnterBackground(); + axis::Application::getInstance()->applicationDidEnterBackground(); } - (void)applicationWillEnterForeground:(UIApplication*)application @@ -127,7 +127,7 @@ static AppDelegate s_sharedApplication; Called as part of transition from the background to the inactive state: here you can undo many of the changes made on entering the background. */ - cocos2d::Application::getInstance()->applicationWillEnterForeground(); + axis::Application::getInstance()->applicationWillEnterForeground(); } - (void)applicationWillTerminate:(UIApplication*)application diff --git a/templates/lua-template-default/frameworks/runtime-src/proj.ios_mac/ios/RootViewController.mm b/templates/lua-template-default/frameworks/runtime-src/proj.ios_mac/ios/RootViewController.mm index 1210e485cc..9550ce2961 100644 --- a/templates/lua-template-default/frameworks/runtime-src/proj.ios_mac/ios/RootViewController.mm +++ b/templates/lua-template-default/frameworks/runtime-src/proj.ios_mac/ios/RootViewController.mm @@ -46,8 +46,8 @@ customization that is not appropriate for viewDidLoad. { // Initialize the CCEAGLView CCEAGLView* eaglView = [CCEAGLView viewWithFrame:[UIScreen mainScreen].bounds - pixelFormat:(__bridge NSString*)cocos2d::GLViewImpl::_pixelFormat - depthFormat:cocos2d::GLViewImpl::_depthFormat + pixelFormat:(__bridge NSString*)axis::GLViewImpl::_pixelFormat + depthFormat:axis::GLViewImpl::_depthFormat preserveBackbuffer:NO sharegroup:nil multiSampling:NO @@ -93,7 +93,7 @@ customization that is not appropriate for viewDidLoad. { [super didRotateFromInterfaceOrientation:fromInterfaceOrientation]; - auto glview = cocos2d::Director::getInstance()->getOpenGLView(); + auto glview = axis::Director::getInstance()->getOpenGLView(); if (glview) { @@ -102,7 +102,7 @@ customization that is not appropriate for viewDidLoad. if (eaglview) { CGSize s = CGSizeMake([eaglview getWidth], [eaglview getHeight]); - cocos2d::Application::getInstance()->applicationScreenSizeChanged((int)s.width, (int)s.height); + axis::Application::getInstance()->applicationScreenSizeChanged((int)s.width, (int)s.height); } } } diff --git a/templates/lua-template-default/frameworks/runtime-src/proj.ios_mac/mac/main.cpp b/templates/lua-template-default/frameworks/runtime-src/proj.ios_mac/mac/main.cpp index 371a2b4fcc..b35979c91c 100644 --- a/templates/lua-template-default/frameworks/runtime-src/proj.ios_mac/mac/main.cpp +++ b/templates/lua-template-default/frameworks/runtime-src/proj.ios_mac/mac/main.cpp @@ -2,7 +2,7 @@ #include "AppDelegate.h" #include "cocos2d.h" -USING_NS_CC; +USING_NS_AX; int main(int argc, char* argv[]) { diff --git a/templates/lua-template-default/frameworks/runtime-src/proj.linux/main.cpp b/templates/lua-template-default/frameworks/runtime-src/proj.linux/main.cpp index c03ce74184..29bb6167ff 100644 --- a/templates/lua-template-default/frameworks/runtime-src/proj.linux/main.cpp +++ b/templates/lua-template-default/frameworks/runtime-src/proj.linux/main.cpp @@ -30,7 +30,7 @@ #include #include -USING_NS_CC; +USING_NS_AX; int main(int argc, char** argv) { diff --git a/templates/lua-template-default/frameworks/runtime-src/proj.win32/main.cpp b/templates/lua-template-default/frameworks/runtime-src/proj.win32/main.cpp index 0aa2a83d78..fd11942b53 100644 --- a/templates/lua-template-default/frameworks/runtime-src/proj.win32/main.cpp +++ b/templates/lua-template-default/frameworks/runtime-src/proj.win32/main.cpp @@ -25,7 +25,7 @@ #include "cocos2d.h" #include "../Classes/AppDelegate.h" -USING_NS_CC; +USING_NS_AX; // uncomment below line, open debug console #define USE_WIN32_CONSOLE diff --git a/tests/cpp-tests/Classes/ActionManagerTest/ActionManagerTest.cpp b/tests/cpp-tests/Classes/ActionManagerTest/ActionManagerTest.cpp index 020188180a..772a9af1ae 100644 --- a/tests/cpp-tests/Classes/ActionManagerTest/ActionManagerTest.cpp +++ b/tests/cpp-tests/Classes/ActionManagerTest/ActionManagerTest.cpp @@ -26,7 +26,7 @@ #include "../testResource.h" #include "cocos2d.h" -USING_NS_CC; +USING_NS_AX; enum { diff --git a/tests/cpp-tests/Classes/ActionManagerTest/ActionManagerTest.h b/tests/cpp-tests/Classes/ActionManagerTest/ActionManagerTest.h index b20d868a00..dfd5ec8880 100644 --- a/tests/cpp-tests/Classes/ActionManagerTest/ActionManagerTest.h +++ b/tests/cpp-tests/Classes/ActionManagerTest/ActionManagerTest.h @@ -32,7 +32,7 @@ DEFINE_TEST_SUITE(ActionManagerTests); class ActionManagerTest : public TestCase { protected: - cocos2d::TextureAtlas* _atlas; + axis::TextureAtlas* _atlas; std::string _title; diff --git a/tests/cpp-tests/Classes/ActionsEaseTest/ActionsEaseTest.cpp b/tests/cpp-tests/Classes/ActionsEaseTest/ActionsEaseTest.cpp index 007896e5db..8f87c0a626 100644 --- a/tests/cpp-tests/Classes/ActionsEaseTest/ActionsEaseTest.cpp +++ b/tests/cpp-tests/Classes/ActionsEaseTest/ActionsEaseTest.cpp @@ -27,7 +27,7 @@ #include "ActionsEaseTest.h" #include "../testResource.h" -USING_NS_CC; +USING_NS_AX; enum { diff --git a/tests/cpp-tests/Classes/ActionsEaseTest/ActionsEaseTest.h b/tests/cpp-tests/Classes/ActionsEaseTest/ActionsEaseTest.h index 8538079036..3553cad076 100644 --- a/tests/cpp-tests/Classes/ActionsEaseTest/ActionsEaseTest.h +++ b/tests/cpp-tests/Classes/ActionsEaseTest/ActionsEaseTest.h @@ -34,9 +34,9 @@ DEFINE_TEST_SUITE(ActionsEaseTests); class EaseSpriteDemo : public TestCase { protected: - cocos2d::Sprite* _grossini; - cocos2d::Sprite* _tamara; - cocos2d::Sprite* _kathia; + axis::Sprite* _grossini; + axis::Sprite* _tamara; + axis::Sprite* _kathia; std::string _title; diff --git a/tests/cpp-tests/Classes/ActionsProgressTest/ActionsProgressTest.cpp b/tests/cpp-tests/Classes/ActionsProgressTest/ActionsProgressTest.cpp index f4037be8ca..7c988cf4a6 100644 --- a/tests/cpp-tests/Classes/ActionsProgressTest/ActionsProgressTest.cpp +++ b/tests/cpp-tests/Classes/ActionsProgressTest/ActionsProgressTest.cpp @@ -27,7 +27,7 @@ #include "ActionsProgressTest.h" #include "../testResource.h" -USING_NS_CC; +USING_NS_AX; ActionsProgressTests::ActionsProgressTests() { diff --git a/tests/cpp-tests/Classes/ActionsTest/ActionsTest.cpp b/tests/cpp-tests/Classes/ActionsTest/ActionsTest.cpp index 2cb85e33e7..c8a5fefa31 100644 --- a/tests/cpp-tests/Classes/ActionsTest/ActionsTest.cpp +++ b/tests/cpp-tests/Classes/ActionsTest/ActionsTest.cpp @@ -33,8 +33,8 @@ THE SOFTWARE. #include "renderer/CCCustomCommand.h" #include "renderer/CCGroupCommand.h" -USING_NS_CC; -using namespace cocos2d::ui; +USING_NS_AX; +using namespace axis::ui; ActionsTests::ActionsTests() { @@ -1663,7 +1663,7 @@ void Issue1305::onEnter() void Issue1305::log(Node* sender) { - cocos2d::log("This message SHALL ONLY appear when the sprite is added to the scene, NOT BEFORE"); + axis::log("This message SHALL ONLY appear when the sprite is added to the scene, NOT BEFORE"); } void Issue1305::onExit() @@ -2140,11 +2140,11 @@ void ActionResize::onEnter() imageViewResize->setContentSize(Size(50.0f, 40.0f)); imageViewResize->setPosition(Vec2((widgetSize.width / 2.0f) + offset.x, (widgetSize.height / 2.0f) + offset.y)); - auto resizeDown = cocos2d::ResizeTo::create(2.8f, Size(50.0f, 40.0f)); - auto resizeUp = cocos2d::ResizeTo::create(2.8f, Size(300.0f, 40.0f)); + auto resizeDown = axis::ResizeTo::create(2.8f, Size(50.0f, 40.0f)); + auto resizeUp = axis::ResizeTo::create(2.8f, Size(300.0f, 40.0f)); - auto resizeByDown = cocos2d::ResizeBy::create(1.8f, Size(0.0f, -30.0f)); - auto resizeByUp = cocos2d::ResizeBy::create(1.8f, Size(0.0f, 30.0f)); + auto resizeByDown = axis::ResizeBy::create(1.8f, Size(0.0f, -30.0f)); + auto resizeByUp = axis::ResizeBy::create(1.8f, Size(0.0f, 30.0f)); addChild(imageViewResize); auto rep = RepeatForever::create(Sequence::create(resizeUp, resizeDown, resizeByDown, resizeByUp, nullptr)); imageViewResize->runAction(rep); @@ -2155,11 +2155,11 @@ void ActionResize::onEnter() imageViewScale->setContentSize(Size(50.0f, 40.0f)); imageViewScale->setPosition(Vec2(widgetSize.width / 2.0f, widgetSize.height / 2.0f)); - auto scaleDownScale = cocos2d::ScaleTo::create(2.8f, 1.0f); - auto scaleUpScale = cocos2d::ScaleTo::create(2.8f, 6.0f, 1.0f); + auto scaleDownScale = axis::ScaleTo::create(2.8f, 1.0f); + auto scaleUpScale = axis::ScaleTo::create(2.8f, 6.0f, 1.0f); - auto scaleByDownScale = cocos2d::ScaleBy::create(1.8f, 1.0f, 0.25f); - auto scaleByUpScale = cocos2d::ScaleBy::create(1.8f, 1.0f, 4.0f); + auto scaleByDownScale = axis::ScaleBy::create(1.8f, 1.0f, 0.25f); + auto scaleByUpScale = axis::ScaleBy::create(1.8f, 1.0f, 4.0f); addChild(imageViewScale); auto rep2 = RepeatForever::create( Sequence::create(scaleUpScale, scaleDownScale, scaleByDownScale, scaleByUpScale, nullptr)); @@ -2227,8 +2227,8 @@ void Issue14936_1::onEnter() ActionsDemo::onEnter(); centerSprites(0); - auto origin = cocos2d::Director::getInstance()->getVisibleOrigin(); - auto visibleSize = cocos2d::Director::getInstance()->getVisibleSize(); + auto origin = axis::Director::getInstance()->getVisibleOrigin(); + auto visibleSize = axis::Director::getInstance()->getVisibleSize(); _count = 0; @@ -2256,8 +2256,8 @@ void Issue14936_2::onEnter() ActionsDemo::onEnter(); centerSprites(0); - auto origin = cocos2d::Director::getInstance()->getVisibleOrigin(); - auto visibleSize = cocos2d::Director::getInstance()->getVisibleSize(); + auto origin = axis::Director::getInstance()->getVisibleOrigin(); + auto visibleSize = axis::Director::getInstance()->getVisibleSize(); _count = 0; auto counterLabel = Label::createWithTTF("0", "fonts/Marker Felt.ttf", 16.0f); @@ -2303,21 +2303,21 @@ void SequenceWithFinalInstant::onEnter() { TestCase::onEnter(); - _manager = new cocos2d::ActionManager(); + _manager = new axis::ActionManager(); - _target = cocos2d::Node::create(); + _target = axis::Node::create(); _target->setActionManager(_manager); _target->retain(); _target->onEnter(); bool called(false); const auto f([&called]() -> void { - cocos2d::log("Callback called."); + axis::log("Callback called."); called = true; }); const auto action = - cocos2d::Sequence::create(cocos2d::DelayTime::create(0.05f), cocos2d::CallFunc::create(f), nullptr); + axis::Sequence::create(axis::DelayTime::create(0.05f), axis::CallFunc::create(f), nullptr); _target->runAction(action); _manager->update(0); diff --git a/tests/cpp-tests/Classes/ActionsTest/ActionsTest.h b/tests/cpp-tests/Classes/ActionsTest/ActionsTest.h index c5a0879ae9..576c34726d 100644 --- a/tests/cpp-tests/Classes/ActionsTest/ActionsTest.h +++ b/tests/cpp-tests/Classes/ActionsTest/ActionsTest.h @@ -34,9 +34,9 @@ DEFINE_TEST_SUITE(ActionsTests); class ActionsDemo : public TestCase { protected: - cocos2d::Sprite* _grossini; - cocos2d::Sprite* _tamara; - cocos2d::Sprite* _kathia; + axis::Sprite* _grossini; + axis::Sprite* _tamara; + axis::Sprite* _kathia; public: virtual void onEnter() override; @@ -184,7 +184,7 @@ public: virtual std::string subtitle() const override; private: - cocos2d::EventListenerCustom* _frameDisplayedListener; + axis::EventListenerCustom* _frameDisplayedListener; }; class ActionSequence : public ActionsDemo @@ -402,9 +402,9 @@ public: virtual void onEnter() override; virtual std::string title() const override; virtual std::string subtitle() const override; - virtual void addNewSpriteWithCoords(cocos2d::Vec2 p); - virtual void runActionsInSprite(cocos2d::Sprite* sprite); - void onTouchesEnded(const std::vector& touches, cocos2d::Event* event); + virtual void addNewSpriteWithCoords(axis::Vec2 p); + virtual void runActionsInSprite(axis::Sprite* sprite); + void onTouchesEnded(const std::vector& touches, axis::Event* event); }; class ActionMoveStacked : public ActionStacked @@ -413,7 +413,7 @@ public: CREATE_FUNC(ActionMoveStacked); virtual std::string title() const override; - virtual void runActionsInSprite(cocos2d::Sprite* sprite) override; + virtual void runActionsInSprite(axis::Sprite* sprite) override; }; class ActionMoveJumpStacked : public ActionStacked @@ -422,7 +422,7 @@ public: CREATE_FUNC(ActionMoveJumpStacked); virtual std::string title() const override; - virtual void runActionsInSprite(cocos2d::Sprite* sprite) override; + virtual void runActionsInSprite(axis::Sprite* sprite) override; }; class ActionMoveBezierStacked : public ActionStacked @@ -431,7 +431,7 @@ public: CREATE_FUNC(ActionMoveBezierStacked); virtual std::string title() const override; - virtual void runActionsInSprite(cocos2d::Sprite* sprite) override; + virtual void runActionsInSprite(axis::Sprite* sprite) override; }; class ActionCatmullRomStacked : public ActionsDemo @@ -468,7 +468,7 @@ public: virtual std::string subtitle() const override; private: - cocos2d::Sprite* _spriteTmp; + axis::Sprite* _spriteTmp; }; class Issue1305_2 : public ActionsDemo @@ -513,7 +513,7 @@ public: virtual void onEnter() override; virtual std::string subtitle() const override; virtual std::string title() const override; - void logSprRotation(cocos2d::Sprite* sender); + void logSprRotation(axis::Sprite* sender); }; class Issue1398 : public ActionsDemo @@ -580,7 +580,7 @@ public: virtual std::string title() const override; private: - cocos2d::Vector _pausedTargets; + axis::Vector _pausedTargets; }; class ActionResize : public ActionsDemo @@ -637,8 +637,8 @@ public: virtual void onExit() override; private: - cocos2d::ActionManager* _manager; - cocos2d::Node* _target; + axis::ActionManager* _manager; + axis::Node* _target; }; class Issue18003 : public ActionsDemo @@ -651,8 +651,8 @@ public: virtual void onExit() override; private: - cocos2d::ActionManager* _manager; - cocos2d::Node* _target; + axis::ActionManager* _manager; + axis::Node* _target; }; #endif diff --git a/tests/cpp-tests/Classes/AppDelegate.cpp b/tests/cpp-tests/Classes/AppDelegate.cpp index e114e24948..666b3b77b3 100644 --- a/tests/cpp-tests/Classes/AppDelegate.cpp +++ b/tests/cpp-tests/Classes/AppDelegate.cpp @@ -32,7 +32,7 @@ // #include "extensions/cocostudio/CocoStudio.h" #include "extensions/cocos-ext.h" -USING_NS_CC; +USING_NS_AX; // Enable log on Debug version #ifndef NDEBUG diff --git a/tests/cpp-tests/Classes/AppDelegate.h b/tests/cpp-tests/Classes/AppDelegate.h index c7cbe62ba4..c9d35d0fa1 100644 --- a/tests/cpp-tests/Classes/AppDelegate.h +++ b/tests/cpp-tests/Classes/AppDelegate.h @@ -35,7 +35,7 @@ class TestController; Private inheritance here hides part of interface from Director. */ -class AppDelegate : private cocos2d::Application +class AppDelegate : private axis::Application { public: AppDelegate(); @@ -44,7 +44,7 @@ public: virtual void initGLContextAttrs(); /** - @brief Implement Director and cocos2d::Scene* init code here. + @brief Implement Director and axis::Scene* init code here. @return true Initialize success, app continue. @return false Initialize failed, app terminate. */ diff --git a/tests/cpp-tests/Classes/BaseTest.cpp b/tests/cpp-tests/Classes/BaseTest.cpp index df6b05ab1a..bb5434a283 100644 --- a/tests/cpp-tests/Classes/BaseTest.cpp +++ b/tests/cpp-tests/Classes/BaseTest.cpp @@ -27,8 +27,8 @@ #include "testResource.h" #include "controller.h" -USING_NS_CC; -USING_NS_CC_EXT; +USING_NS_AX; +USING_NS_AX_EXT; #define TABEL_LABEL_TAG 1024 diff --git a/tests/cpp-tests/Classes/BaseTest.h b/tests/cpp-tests/Classes/BaseTest.h index 725f0dc448..f88dfdfa87 100644 --- a/tests/cpp-tests/Classes/BaseTest.h +++ b/tests/cpp-tests/Classes/BaseTest.h @@ -38,7 +38,7 @@ class TestSuite; /** * Each test case should inherit from TestCase, and add to a TestSuite object. */ -class TestCase : public cocos2d::Scene +class TestCase : public axis::Scene { public: /** TestCase test type.*/ @@ -73,10 +73,10 @@ public: virtual std::string getActualOutput() const { return ""; } /** Callback functions.*/ - virtual void restartTestCallback(cocos2d::Ref* sender); - virtual void nextTestCallback(cocos2d::Ref* sender); - virtual void priorTestCallback(cocos2d::Ref* sender); - virtual void onBackCallback(cocos2d::Ref* sender); + virtual void restartTestCallback(axis::Ref* sender); + virtual void nextTestCallback(axis::Ref* sender); + virtual void priorTestCallback(axis::Ref* sender); + virtual void onBackCallback(axis::Ref* sender); /** * You should NEVER call this method, unless you know what you are doing. @@ -93,19 +93,19 @@ public: void setTestCaseName(std::string_view name) { _testCaseName = name; } std::string getTestCaseName() const { return _testCaseName; } - const cocos2d::Label* getSubtitleLable() const { return _subtitleLabel; } - const cocos2d::MenuItemImage* getRestartTestItem() const { return _restartTestItem; } + const axis::Label* getSubtitleLable() const { return _subtitleLabel; } + const axis::MenuItemImage* getRestartTestItem() const { return _restartTestItem; } virtual void onEnter() override; virtual bool init() override; protected: - cocos2d::MenuItemImage* _priorTestItem; - cocos2d::MenuItemImage* _restartTestItem; - cocos2d::MenuItemImage* _nextTestItem; + axis::MenuItemImage* _priorTestItem; + axis::MenuItemImage* _restartTestItem; + axis::MenuItemImage* _nextTestItem; - cocos2d::Label* _titleLabel; - cocos2d::Label* _subtitleLabel; + axis::Label* _titleLabel; + axis::Label* _subtitleLabel; private: TestSuite* _testSuite; @@ -121,7 +121,7 @@ private: * * @note You should not inherit from TestBase directly. */ -class TestBase : public cocos2d::Ref +class TestBase : public axis::Ref { public: virtual ~TestBase(); @@ -162,7 +162,7 @@ class TestController; class TestSuite : public TestBase { public: - void addTestCase(std::string_view testName, std::function callback); + void addTestCase(std::string_view testName, std::function callback); virtual void restartCurrTest(); virtual void enterNextTest(); @@ -172,7 +172,7 @@ public: virtual void runThisTest() override; private: - std::vector> _testCallbacks; + std::vector> _testCallbacks; int _currTestIndex; friend class TestController; @@ -184,8 +184,8 @@ class TestCustomTableView; * An instance of TestList is a means for displaying hierarchical lists of TestSuite. */ class TestList : public TestBase, - public cocos2d::extension::TableViewDataSource, - public cocos2d::extension::TableViewDelegate + public axis::extension::TableViewDataSource, + public axis::extension::TableViewDelegate { public: TestList(); @@ -195,15 +195,15 @@ public: virtual void runThisTest() override; - virtual void tableCellTouched(cocos2d::extension::TableView* table, - cocos2d::extension::TableViewCell* cell) override; - virtual cocos2d::extension::TableViewCell* tableCellAtIndex(cocos2d::extension::TableView* table, + virtual void tableCellTouched(axis::extension::TableView* table, + axis::extension::TableViewCell* cell) override; + virtual axis::extension::TableViewCell* tableCellAtIndex(axis::extension::TableView* table, ssize_t idx) override; - virtual cocos2d::Size tableCellSizeForIndex(cocos2d::extension::TableView* table, ssize_t idx) override; - virtual ssize_t numberOfCellsInTableView(cocos2d::extension::TableView* table) override; + virtual axis::Size tableCellSizeForIndex(axis::extension::TableView* table, ssize_t idx) override; + virtual ssize_t numberOfCellsInTableView(axis::extension::TableView* table) override; - virtual void scrollViewDidScroll(cocos2d::extension::ScrollView* view) override {} - virtual void scrollViewDidZoom(cocos2d::extension::ScrollView* view) override {} + virtual void scrollViewDidScroll(axis::extension::ScrollView* view) override {} + virtual void scrollViewDidZoom(axis::extension::ScrollView* view) override {} void deatchTableView(); @@ -211,7 +211,7 @@ private: std::vector> _testCallbacks; bool _cellTouchEnabled; bool _shouldRestoreTableOffset; - cocos2d::Vec2 _tableOffset; + axis::Vec2 _tableOffset; friend class TestController; TestCustomTableView* _tableView{}; }; @@ -238,15 +238,15 @@ private: * BaseTest is retained for compatibility with older versions. * @warning It should soon be removed. */ -class BaseTest : public cocos2d::Layer +class BaseTest : public axis::Layer { public: virtual std::string title() const { return ""; } virtual std::string subtitle() const { return ""; } - virtual void restartCallback(cocos2d::Ref* sender) {} - virtual void nextCallback(cocos2d::Ref* sender) {} - virtual void backCallback(cocos2d::Ref* sender) {} + virtual void restartCallback(axis::Ref* sender) {} + virtual void nextCallback(axis::Ref* sender) {} + virtual void backCallback(axis::Ref* sender) {} virtual void onEnter() override {} virtual void onExit() override {} diff --git a/tests/cpp-tests/Classes/BillBoardTest/BillBoardTest.cpp b/tests/cpp-tests/Classes/BillBoardTest/BillBoardTest.cpp index 5002149597..9be5cdae41 100644 --- a/tests/cpp-tests/Classes/BillBoardTest/BillBoardTest.cpp +++ b/tests/cpp-tests/Classes/BillBoardTest/BillBoardTest.cpp @@ -30,9 +30,9 @@ #include #include "../testResource.h" -USING_NS_CC; -USING_NS_CC_EXT; -using namespace cocos2d::ui; +USING_NS_AX; +USING_NS_AX_EXT; +using namespace axis::ui; BillBoardTests::BillBoardTests() { diff --git a/tests/cpp-tests/Classes/BillBoardTest/BillBoardTest.h b/tests/cpp-tests/Classes/BillBoardTest/BillBoardTest.h index 12a3f6b9b5..f17fa84abb 100644 --- a/tests/cpp-tests/Classes/BillBoardTest/BillBoardTest.h +++ b/tests/cpp-tests/Classes/BillBoardTest/BillBoardTest.h @@ -29,11 +29,10 @@ #include "../BaseTest.h" #include -namespace cocos2d -{ +NS_AX_BEGIN class BillBoard; class Camera; -} // namespace cocos2d +NS_AX_END // namespace axis class BillBoardRotationTest : public TestCase { @@ -56,19 +55,19 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; virtual void update(float dt) override; - void addNewBillBoardWithCoords(cocos2d::Vec3 p); - void addNewAniBillBoardWithCoords(cocos2d::Vec3 p); - void rotateCameraCallback(cocos2d::Ref* sender, float value); - void onTouchesMoved(const std::vector& touches, cocos2d::Event* event); + void addNewBillBoardWithCoords(axis::Vec3 p); + void addNewAniBillBoardWithCoords(axis::Vec3 p); + void rotateCameraCallback(axis::Ref* sender, float value); + void onTouchesMoved(const std::vector& touches, axis::Event* event); - void menuCallback_orientedPoint(cocos2d::Ref* sender); - void menuCallback_orientedPlane(cocos2d::Ref* sender); + void menuCallback_orientedPoint(axis::Ref* sender); + void menuCallback_orientedPlane(axis::Ref* sender); protected: - cocos2d::Camera* _camera; - cocos2d::Layer* _layerBillBoard; + axis::Camera* _camera; + axis::Layer* _layerBillBoard; - std::vector _billboards; + std::vector _billboards; }; DEFINE_TEST_SUITE(BillBoardTests); diff --git a/tests/cpp-tests/Classes/Box2DTest/Box2dTest.cpp b/tests/cpp-tests/Classes/Box2DTest/Box2dTest.cpp index 198a7ec92f..e4a26ac934 100644 --- a/tests/cpp-tests/Classes/Box2DTest/Box2dTest.cpp +++ b/tests/cpp-tests/Classes/Box2DTest/Box2dTest.cpp @@ -29,8 +29,8 @@ #include "renderer/CCRenderer.h" #include "renderer/CCCustomCommand.h" -USING_NS_CC; -USING_NS_CC_EXT; +USING_NS_AX; +USING_NS_AX_EXT; #define PTM_RATIO 32 @@ -290,7 +290,7 @@ void Box2DTest::addNewSpriteAtPosition(Vec2 p) parent->addChild(sprite); sprite->setB2Body(body); sprite->setPTMRatio(PTM_RATIO); - sprite->setPosition(cocos2d::Vec2(p.x, p.y)); + sprite->setPosition(axis::Vec2(p.x, p.y)); } void Box2DTest::update(float dt) diff --git a/tests/cpp-tests/Classes/Box2DTest/Box2dTest.h b/tests/cpp-tests/Classes/Box2DTest/Box2dTest.h index 510972867a..42a85d1a12 100644 --- a/tests/cpp-tests/Classes/Box2DTest/Box2dTest.h +++ b/tests/cpp-tests/Classes/Box2DTest/Box2dTest.h @@ -47,18 +47,18 @@ public: void initPhysics(); void createResetButton(); - void addNewSpriteAtPosition(cocos2d::Vec2 p); + void addNewSpriteAtPosition(axis::Vec2 p); void update(float dt) override; - void onTouchesEnded(const std::vector& touches, cocos2d::Event* event); + void onTouchesEnded(const std::vector& touches, axis::Event* event); - void toggleDebugCallback(cocos2d::Ref* sender); + void toggleDebugCallback(axis::Ref* sender); private: b2World* world; - cocos2d::Texture2D* _spriteTexture; - cocos2d::DrawNode* drawBox2D; - cocos2d::extension::PhysicsDebugNodeBox2D g_debugDraw; + axis::Texture2D* _spriteTexture; + axis::DrawNode* drawBox2D; + axis::extension::PhysicsDebugNodeBox2D g_debugDraw; bool showDebugDraw = true; }; diff --git a/tests/cpp-tests/Classes/Box2DTestBed/Box2DTestBed.cpp b/tests/cpp-tests/Classes/Box2DTestBed/Box2DTestBed.cpp index 954f10b2f7..90df124323 100644 --- a/tests/cpp-tests/Classes/Box2DTestBed/Box2DTestBed.cpp +++ b/tests/cpp-tests/Classes/Box2DTestBed/Box2DTestBed.cpp @@ -31,8 +31,8 @@ #include "tests/test.h" #include "tests/settings.h" -USING_NS_CC; -USING_NS_CC_EXT; +USING_NS_AX; +USING_NS_AX_EXT; enum { @@ -40,7 +40,7 @@ enum }; Settings settings; -cocos2d::Label* labelDebugDraw; +axis::Label* labelDebugDraw; enum { diff --git a/tests/cpp-tests/Classes/Box2DTestBed/Box2DTestBed.h b/tests/cpp-tests/Classes/Box2DTestBed/Box2DTestBed.h index 8dfce6fdd1..e3b43ae2c0 100644 --- a/tests/cpp-tests/Classes/Box2DTestBed/Box2DTestBed.h +++ b/tests/cpp-tests/Classes/Box2DTestBed/Box2DTestBed.h @@ -46,7 +46,7 @@ extern TestEntry g_testEntries[MAX_TESTS]; int RegisterTest(const char* category, const char* name, TestCreateFcn* fcn); -class Box2DTestBed : public TestCase, cocos2d::Layer +class Box2DTestBed : public TestCase, axis::Layer { public: static Box2DTestBed* createWithEntryID(int entryId); @@ -66,20 +66,20 @@ public: bool initWithEntryID(int entryId); - bool onTouchBegan(cocos2d::Touch* touch, cocos2d::Event* event); - void onTouchMoved(cocos2d::Touch* touch, cocos2d::Event* event); - void onTouchEnded(cocos2d::Touch* touch, cocos2d::Event* event); + bool onTouchBegan(axis::Touch* touch, axis::Event* event); + void onTouchMoved(axis::Touch* touch, axis::Event* event); + void onTouchEnded(axis::Touch* touch, axis::Event* event); - void onKeyPressed(cocos2d::EventKeyboard::KeyCode code, cocos2d::Event* event); - void onKeyReleased(cocos2d::EventKeyboard::KeyCode code, cocos2d::Event* event); + void onKeyPressed(axis::EventKeyboard::KeyCode code, axis::Event* event); + void onKeyReleased(axis::EventKeyboard::KeyCode code, axis::Event* event); - void onMouseDown(cocos2d::Event* event); - void onMouseUp(cocos2d::Event* event); - void onMouseMove(cocos2d::Event* event); - void onMouseScroll(cocos2d::Event* event); + void onMouseDown(axis::Event* event); + void onMouseUp(axis::Event* event); + void onMouseMove(axis::Event* event); + void onMouseScroll(axis::Event* event); - cocos2d::EventListenerTouchOneByOne* _touchListener; - cocos2d::EventListenerKeyboard* _keyboardListener; + axis::EventListenerTouchOneByOne* _touchListener; + axis::EventListenerKeyboard* _keyboardListener; TestEntry* m_entry; Test* m_test; @@ -87,15 +87,15 @@ public: private: b2World* world; - cocos2d::Texture2D* _spriteTexture; + axis::Texture2D* _spriteTexture; b2Vec2 pos; b2Vec2 oldPos; bool button[2]; // Debug stuff - cocos2d::DrawNode* debugDrawNode; - cocos2d::extension::PhysicsDebugNodeBox2D g_debugDraw; + axis::DrawNode* debugDrawNode; + axis::extension::PhysicsDebugNodeBox2D g_debugDraw; }; #endif diff --git a/tests/cpp-tests/Classes/Box2DTestBed/Test.cpp b/tests/cpp-tests/Classes/Box2DTestBed/Test.cpp index 1c60abf385..51f47aa572 100644 --- a/tests/cpp-tests/Classes/Box2DTestBed/Test.cpp +++ b/tests/cpp-tests/Classes/Box2DTestBed/Test.cpp @@ -24,11 +24,11 @@ #include -USING_NS_CC; -USING_NS_CC_EXT; +USING_NS_AX; +USING_NS_AX_EXT; #if defined(CC_PLATFORM_PC) -extern cocos2d::Label* labelDebugDraw; +extern axis::Label* labelDebugDraw; #endif void DestructionListener::SayGoodbye(b2Joint* joint) diff --git a/tests/cpp-tests/Classes/Box2DTestBed/tests/car.cpp b/tests/cpp-tests/Classes/Box2DTestBed/tests/car.cpp index c8bd9f0875..a6aaf83463 100644 --- a/tests/cpp-tests/Classes/Box2DTestBed/tests/car.cpp +++ b/tests/cpp-tests/Classes/Box2DTestBed/tests/car.cpp @@ -24,7 +24,7 @@ #include "test.h" #include "extensions/cocos-ext.h" -USING_NS_CC_EXT; +USING_NS_AX_EXT; // This is a fun demo that shows off the wheel joint class Car : public Test diff --git a/tests/cpp-tests/Classes/Box2DTestBed/tests/test.h b/tests/cpp-tests/Classes/Box2DTestBed/tests/test.h index f2a465e729..ee483a3884 100644 --- a/tests/cpp-tests/Classes/Box2DTestBed/tests/test.h +++ b/tests/cpp-tests/Classes/Box2DTestBed/tests/test.h @@ -115,8 +115,8 @@ public: void DrawAABB(b2AABB* aabb, const b2Color& color); void Flush(); - cocos2d::extension::PhysicsDebugNodeBox2D g_debugDraw; - cocos2d::DrawNode* debugDrawNode; + axis::extension::PhysicsDebugNodeBox2D g_debugDraw; + axis::DrawNode* debugDrawNode; std::string debugString = ""; b2World* m_world; diff --git a/tests/cpp-tests/Classes/BugsTest/Bug-1159.cpp b/tests/cpp-tests/Classes/BugsTest/Bug-1159.cpp index 231b82d11f..bc42f7feac 100644 --- a/tests/cpp-tests/Classes/BugsTest/Bug-1159.cpp +++ b/tests/cpp-tests/Classes/BugsTest/Bug-1159.cpp @@ -24,7 +24,7 @@ #include "Bug-1159.h" -USING_NS_CC; +USING_NS_AX; bool Bug1159Layer::init() { diff --git a/tests/cpp-tests/Classes/BugsTest/Bug-1159.h b/tests/cpp-tests/Classes/BugsTest/Bug-1159.h index a180c1dc6e..7783668081 100644 --- a/tests/cpp-tests/Classes/BugsTest/Bug-1159.h +++ b/tests/cpp-tests/Classes/BugsTest/Bug-1159.h @@ -34,7 +34,7 @@ public: virtual void onExit() override; virtual std::string title() const override { return "Bug1159"; } - void callBack(cocos2d::Ref* sender); + void callBack(axis::Ref* sender); CREATE_FUNC(Bug1159Layer); }; diff --git a/tests/cpp-tests/Classes/BugsTest/Bug-1174.cpp b/tests/cpp-tests/Classes/BugsTest/Bug-1174.cpp index 36e3611959..b20dec1707 100644 --- a/tests/cpp-tests/Classes/BugsTest/Bug-1174.cpp +++ b/tests/cpp-tests/Classes/BugsTest/Bug-1174.cpp @@ -29,7 +29,7 @@ #include "Bug-1174.h" -USING_NS_CC; +USING_NS_AX; int check_for_error(Vec2 p1, Vec2 p2, Vec2 p3, Vec2 p4, float s, float t); diff --git a/tests/cpp-tests/Classes/BugsTest/Bug-12847.cpp b/tests/cpp-tests/Classes/BugsTest/Bug-12847.cpp index 094cba5190..732d4ba2b0 100644 --- a/tests/cpp-tests/Classes/BugsTest/Bug-12847.cpp +++ b/tests/cpp-tests/Classes/BugsTest/Bug-12847.cpp @@ -33,7 +33,7 @@ #include "Bug-12847.h" -USING_NS_CC; +USING_NS_AX; Bug12847Layer::Bug12847Layer() { diff --git a/tests/cpp-tests/Classes/BugsTest/Bug-12847.h b/tests/cpp-tests/Classes/BugsTest/Bug-12847.h index 256abd609f..4e04be10ad 100644 --- a/tests/cpp-tests/Classes/BugsTest/Bug-12847.h +++ b/tests/cpp-tests/Classes/BugsTest/Bug-12847.h @@ -44,12 +44,12 @@ protected: virtual void onExit() override; private: - cocos2d::Sprite* sprite1; - cocos2d::Sprite* sprite2; - cocos2d::Sprite* sprite3; - cocos2d::Sprite* sprite4; + axis::Sprite* sprite1; + axis::Sprite* sprite2; + axis::Sprite* sprite3; + axis::Sprite* sprite4; - cocos2d::Director::Projection _projection = cocos2d::Director::Projection::_3D; + axis::Director::Projection _projection = axis::Director::Projection::_3D; }; #endif /* defined(__cocos2d_tests__Bug_12847__) */ diff --git a/tests/cpp-tests/Classes/BugsTest/Bug-14327.cpp b/tests/cpp-tests/Classes/BugsTest/Bug-14327.cpp index e3b65975d9..54ba591e62 100644 --- a/tests/cpp-tests/Classes/BugsTest/Bug-14327.cpp +++ b/tests/cpp-tests/Classes/BugsTest/Bug-14327.cpp @@ -35,7 +35,7 @@ #if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) -USING_NS_CC; +USING_NS_AX; bool Bug14327Layer::init() { @@ -92,18 +92,18 @@ void Bug14327Layer::update(float dt) } } -void Bug14327Layer::editBoxEditingDidBegin(cocos2d::ui::EditBox* editBox) +void Bug14327Layer::editBoxEditingDidBegin(axis::ui::EditBox* editBox) { log("editBox %p DidBegin !", editBox); } -void Bug14327Layer::editBoxEditingDidEndWithAction(cocos2d::ui::EditBox* editBox, - cocos2d::ui::EditBoxDelegate::EditBoxEndAction EditBoxEndAction) +void Bug14327Layer::editBoxEditingDidEndWithAction(axis::ui::EditBox* editBox, + axis::ui::EditBoxDelegate::EditBoxEndAction EditBoxEndAction) { log("editBox %p DidEnd !", editBox); } -void Bug14327Layer::editBoxTextChanged(cocos2d::ui::EditBox* editBox, std::string_view text) +void Bug14327Layer::editBoxTextChanged(axis::ui::EditBox* editBox, std::string_view text) { log("editBox %p TextChanged, text: %s ", editBox, text.data()); } diff --git a/tests/cpp-tests/Classes/BugsTest/Bug-14327.h b/tests/cpp-tests/Classes/BugsTest/Bug-14327.h index d0e6ed1104..9a19f0effc 100644 --- a/tests/cpp-tests/Classes/BugsTest/Bug-14327.h +++ b/tests/cpp-tests/Classes/BugsTest/Bug-14327.h @@ -31,7 +31,7 @@ # include "ui/UIEditBox/UIEditBox.h" -class Bug14327Layer : public BugsTestBase, public cocos2d::ui::EditBoxDelegate +class Bug14327Layer : public BugsTestBase, public axis::ui::EditBoxDelegate { public: CREATE_FUNC(Bug14327Layer); @@ -39,20 +39,20 @@ public: virtual bool init() override; virtual std::string title() const override { return "Bug14327"; } - virtual void editBoxEditingDidBegin(cocos2d::ui::EditBox* editBox) override; + virtual void editBoxEditingDidBegin(axis::ui::EditBox* editBox) override; virtual void editBoxEditingDidEndWithAction( - cocos2d::ui::EditBox* editBox, - cocos2d::ui::EditBoxDelegate::EditBoxEndAction EditBoxEndAction) override; - virtual void editBoxTextChanged(cocos2d::ui::EditBox* editBox, std::string_view text) override; - virtual void editBoxReturn(cocos2d::ui::EditBox* editBox) override; + axis::ui::EditBox* editBox, + axis::ui::EditBoxDelegate::EditBoxEndAction EditBoxEndAction) override; + virtual void editBoxTextChanged(axis::ui::EditBox* editBox, std::string_view text) override; + virtual void editBoxReturn(axis::ui::EditBox* editBox) override; protected: virtual void update(float dt) override; private: time_t _removeTime; - cocos2d::Label* _TTFShowTime; - cocos2d::ui::EditBox* _edit; + axis::Label* _TTFShowTime; + axis::ui::EditBox* _edit; }; #endif diff --git a/tests/cpp-tests/Classes/BugsTest/Bug-15594.cpp b/tests/cpp-tests/Classes/BugsTest/Bug-15594.cpp index c4e583ccf4..595ea00e7c 100644 --- a/tests/cpp-tests/Classes/BugsTest/Bug-15594.cpp +++ b/tests/cpp-tests/Classes/BugsTest/Bug-15594.cpp @@ -34,7 +34,7 @@ #include "Bug-15594.h" -USING_NS_CC; +USING_NS_AX; bool Bug15594Layer::init() { diff --git a/tests/cpp-tests/Classes/BugsTest/Bug-15776.cpp b/tests/cpp-tests/Classes/BugsTest/Bug-15776.cpp index 3f6bbd7011..b7415ea628 100644 --- a/tests/cpp-tests/Classes/BugsTest/Bug-15776.cpp +++ b/tests/cpp-tests/Classes/BugsTest/Bug-15776.cpp @@ -32,7 +32,7 @@ #include "Bug-15776.h" -USING_NS_CC; +USING_NS_AX; // // IMPORTANT: @@ -44,7 +44,7 @@ bool Bug15776Layer::init() { if (BugsTestBase::init()) { - cocos2d::Image* cocos2dxImage = new cocos2d::Image(); + axis::Image* cocos2dxImage = new axis::Image(); cocos2dxImage->initWithImageData(nullptr, 0, false); // should not crash. invalid cocos2dImage auto texture2d = Director::getInstance()->getTextureCache()->addImage(cocos2dxImage, "unused"); diff --git a/tests/cpp-tests/Classes/BugsTest/Bug-350.cpp b/tests/cpp-tests/Classes/BugsTest/Bug-350.cpp index be0671d226..f7e8932684 100644 --- a/tests/cpp-tests/Classes/BugsTest/Bug-350.cpp +++ b/tests/cpp-tests/Classes/BugsTest/Bug-350.cpp @@ -29,7 +29,7 @@ #include "Bug-350.h" -USING_NS_CC; +USING_NS_AX; bool Bug350Layer::init() { diff --git a/tests/cpp-tests/Classes/BugsTest/Bug-422.cpp b/tests/cpp-tests/Classes/BugsTest/Bug-422.cpp index 9874f156a4..bc2d41fed1 100644 --- a/tests/cpp-tests/Classes/BugsTest/Bug-422.cpp +++ b/tests/cpp-tests/Classes/BugsTest/Bug-422.cpp @@ -29,7 +29,7 @@ #include "Bug-422.h" -USING_NS_CC; +USING_NS_AX; bool Bug422Layer::init() { diff --git a/tests/cpp-tests/Classes/BugsTest/Bug-422.h b/tests/cpp-tests/Classes/BugsTest/Bug-422.h index 10478904ee..063f852d55 100644 --- a/tests/cpp-tests/Classes/BugsTest/Bug-422.h +++ b/tests/cpp-tests/Classes/BugsTest/Bug-422.h @@ -37,7 +37,7 @@ public: void reset(); void check(Node* target); - void menuCallback(cocos2d::Ref* sender); + void menuCallback(axis::Ref* sender); }; #endif // __BUG_422_H__ diff --git a/tests/cpp-tests/Classes/BugsTest/Bug-458/Bug-458.cpp b/tests/cpp-tests/Classes/BugsTest/Bug-458/Bug-458.cpp index ad0861e90c..9630652967 100644 --- a/tests/cpp-tests/Classes/BugsTest/Bug-458/Bug-458.cpp +++ b/tests/cpp-tests/Classes/BugsTest/Bug-458/Bug-458.cpp @@ -30,7 +30,7 @@ #include "Bug-458.h" #include "QuestionContainerSprite.h" -USING_NS_CC; +USING_NS_AX; bool Bug458Layer::init() { diff --git a/tests/cpp-tests/Classes/BugsTest/Bug-458/Bug-458.h b/tests/cpp-tests/Classes/BugsTest/Bug-458/Bug-458.h index 4fd7fd0f56..fea8fc7d09 100644 --- a/tests/cpp-tests/Classes/BugsTest/Bug-458/Bug-458.h +++ b/tests/cpp-tests/Classes/BugsTest/Bug-458/Bug-458.h @@ -33,7 +33,7 @@ public: CREATE_FUNC(Bug458Layer); virtual bool init() override; - void selectAnswer(cocos2d::Ref* sender); + void selectAnswer(axis::Ref* sender); }; #endif // __BUG_458_H__ diff --git a/tests/cpp-tests/Classes/BugsTest/Bug-458/QuestionContainerSprite.cpp b/tests/cpp-tests/Classes/BugsTest/Bug-458/QuestionContainerSprite.cpp index e151883228..23c15cf67e 100644 --- a/tests/cpp-tests/Classes/BugsTest/Bug-458/QuestionContainerSprite.cpp +++ b/tests/cpp-tests/Classes/BugsTest/Bug-458/QuestionContainerSprite.cpp @@ -26,7 +26,7 @@ #define kLabelTag -USING_NS_CC; +USING_NS_AX; bool QuestionContainerSprite::init() { diff --git a/tests/cpp-tests/Classes/BugsTest/Bug-458/QuestionContainerSprite.h b/tests/cpp-tests/Classes/BugsTest/Bug-458/QuestionContainerSprite.h index 49836de99d..55e3287d13 100644 --- a/tests/cpp-tests/Classes/BugsTest/Bug-458/QuestionContainerSprite.h +++ b/tests/cpp-tests/Classes/BugsTest/Bug-458/QuestionContainerSprite.h @@ -27,7 +27,7 @@ #include "cocos2d.h" -class QuestionContainerSprite : public cocos2d::Sprite +class QuestionContainerSprite : public axis::Sprite { public: virtual bool init() override; diff --git a/tests/cpp-tests/Classes/BugsTest/Bug-624.cpp b/tests/cpp-tests/Classes/BugsTest/Bug-624.cpp index ebbf081244..84d8466c23 100644 --- a/tests/cpp-tests/Classes/BugsTest/Bug-624.cpp +++ b/tests/cpp-tests/Classes/BugsTest/Bug-624.cpp @@ -29,7 +29,7 @@ #include "Bug-624.h" -USING_NS_CC; +USING_NS_AX; //////////////////////////////////////////////////////// // diff --git a/tests/cpp-tests/Classes/BugsTest/Bug-624.h b/tests/cpp-tests/Classes/BugsTest/Bug-624.h index 9b03162cf9..b0ad19c168 100644 --- a/tests/cpp-tests/Classes/BugsTest/Bug-624.h +++ b/tests/cpp-tests/Classes/BugsTest/Bug-624.h @@ -33,7 +33,7 @@ public: virtual ~Bug624Layer(); virtual bool init() override; void switchLayer(float dt); - virtual void onAcceleration(cocos2d::Acceleration* acc, cocos2d::Event* event); + virtual void onAcceleration(axis::Acceleration* acc, axis::Event* event); virtual std::string title() const override { return "Bug624"; } CREATE_FUNC(Bug624Layer); @@ -45,7 +45,7 @@ public: virtual ~Bug624Layer2(); virtual bool init() override; void switchLayer(float dt); - virtual void onAcceleration(cocos2d::Acceleration* acc, cocos2d::Event* event); + virtual void onAcceleration(axis::Acceleration* acc, axis::Event* event); virtual std::string title() const override { return "Bug624-2"; } CREATE_FUNC(Bug624Layer2); diff --git a/tests/cpp-tests/Classes/BugsTest/Bug-886.cpp b/tests/cpp-tests/Classes/BugsTest/Bug-886.cpp index edcd9030a4..b64801a6f5 100644 --- a/tests/cpp-tests/Classes/BugsTest/Bug-886.cpp +++ b/tests/cpp-tests/Classes/BugsTest/Bug-886.cpp @@ -29,7 +29,7 @@ #include "Bug-886.h" -USING_NS_CC; +USING_NS_AX; bool Bug886Layer::init() { diff --git a/tests/cpp-tests/Classes/BugsTest/Bug-899.cpp b/tests/cpp-tests/Classes/BugsTest/Bug-899.cpp index daf4c56106..692b93a33d 100644 --- a/tests/cpp-tests/Classes/BugsTest/Bug-899.cpp +++ b/tests/cpp-tests/Classes/BugsTest/Bug-899.cpp @@ -31,7 +31,7 @@ #include "Bug-899.h" -USING_NS_CC; +USING_NS_AX; bool Bug899Layer::init() { diff --git a/tests/cpp-tests/Classes/BugsTest/Bug-914.cpp b/tests/cpp-tests/Classes/BugsTest/Bug-914.cpp index 1e11a9f194..971785f289 100644 --- a/tests/cpp-tests/Classes/BugsTest/Bug-914.cpp +++ b/tests/cpp-tests/Classes/BugsTest/Bug-914.cpp @@ -25,7 +25,7 @@ // Import the interfaces #include "Bug-914.h" -USING_NS_CC; +USING_NS_AX; // on "init" you need to initialize your instance bool Bug914Layer::init() diff --git a/tests/cpp-tests/Classes/BugsTest/Bug-914.h b/tests/cpp-tests/Classes/BugsTest/Bug-914.h index d3e4464a9a..29044d469a 100644 --- a/tests/cpp-tests/Classes/BugsTest/Bug-914.h +++ b/tests/cpp-tests/Classes/BugsTest/Bug-914.h @@ -33,9 +33,9 @@ public: virtual bool init() override; virtual std::string title() const override { return "Bug914"; } - void onTouchesMoved(const std::vector& touches, cocos2d::Event* event); - void onTouchesBegan(const std::vector& touches, cocos2d::Event* event); - void restart(cocos2d::Ref* sender); + void onTouchesMoved(const std::vector& touches, axis::Event* event); + void onTouchesBegan(const std::vector& touches, axis::Event* event); + void restart(axis::Ref* sender); CREATE_FUNC(Bug914Layer); }; diff --git a/tests/cpp-tests/Classes/BugsTest/Bug-CCDrawNode.cpp b/tests/cpp-tests/Classes/BugsTest/Bug-CCDrawNode.cpp index 6a2705c6a9..9d6dd11bf5 100644 --- a/tests/cpp-tests/Classes/BugsTest/Bug-CCDrawNode.cpp +++ b/tests/cpp-tests/Classes/BugsTest/Bug-CCDrawNode.cpp @@ -32,7 +32,7 @@ #include "Bug-CCDrawNode.h" #include "renderer/backend/Types.h" -USING_NS_CC; +USING_NS_AX; bool BugDrawNodeLayer::init() { diff --git a/tests/cpp-tests/Classes/BugsTest/Bug-Child.cpp b/tests/cpp-tests/Classes/BugsTest/Bug-Child.cpp index 4b4b6615e8..dfe20001f0 100644 --- a/tests/cpp-tests/Classes/BugsTest/Bug-Child.cpp +++ b/tests/cpp-tests/Classes/BugsTest/Bug-Child.cpp @@ -32,7 +32,7 @@ #include "Bug-Child.h" -USING_NS_CC; +USING_NS_AX; bool BugChild::init() { diff --git a/tests/cpp-tests/Classes/BugsTest/Bug-Child.h b/tests/cpp-tests/Classes/BugsTest/Bug-Child.h index 5aaf8304e5..cc96a521f1 100644 --- a/tests/cpp-tests/Classes/BugsTest/Bug-Child.h +++ b/tests/cpp-tests/Classes/BugsTest/Bug-Child.h @@ -43,15 +43,15 @@ public: virtual bool init() override; virtual std::string title() const override { return "BugChild"; } - void switchChild(cocos2d::Ref* sender); + void switchChild(axis::Ref* sender); protected: - cocos2d::Sprite* parent1; - cocos2d::Sprite* parent2; + axis::Sprite* parent1; + axis::Sprite* parent2; - cocos2d::Sprite* child; + axis::Sprite* child; - cocos2d::Menu* menu; + axis::Menu* menu; }; class BugCameraMask : public BugsTestBase @@ -62,10 +62,10 @@ public: virtual bool init() override; virtual std::string title() const override { return "BugCameraMask"; } - void switchSpriteFlag(cocos2d::Ref* sender); + void switchSpriteFlag(axis::Ref* sender); void updateSpriteMaskLabel(); Node* _sprite; - cocos2d::Label* _spriteMaskLabel; + axis::Label* _spriteMaskLabel; }; #endif /* defined(__Bug_Child__) */ diff --git a/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp b/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp index c050bd57d9..c86e6b3345 100644 --- a/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp +++ b/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.cpp @@ -30,7 +30,7 @@ THE SOFTWARE. #include "platform/CCFileUtils.h" #include "renderer/backend/Device.h" -USING_NS_CC; +USING_NS_AX; #define SET_UNIFORM(name, addr, size) \ do \ @@ -409,8 +409,8 @@ void Camera3DTestDemo::addNewSpriteWithCoords(Vec3 p, } mesh->setScale(scale); } -void Camera3DTestDemo::onTouchesBegan(const std::vector& touches, cocos2d::Event* event) {} -void Camera3DTestDemo::onTouchesMoved(const std::vector& touches, cocos2d::Event* event) +void Camera3DTestDemo::onTouchesBegan(const std::vector& touches, axis::Event* event) {} +void Camera3DTestDemo::onTouchesMoved(const std::vector& touches, axis::Event* event) { if (touches.size() == 1) { @@ -489,7 +489,7 @@ void Camera3DTestDemo::updateState(float elapsedTime) } } } -void Camera3DTestDemo::onTouchesEnded(const std::vector& touches, cocos2d::Event* event) +void Camera3DTestDemo::onTouchesEnded(const std::vector& touches, axis::Event* event) { for (auto& item : touches) { @@ -528,7 +528,7 @@ void Camera3DTestDemo::onTouchesEnded(const std::vector& touches, cocos2 } } } -void onTouchesCancelled(const std::vector& touches, cocos2d::Event* event) {} +void onTouchesCancelled(const std::vector& touches, axis::Event* event) {} void Camera3DTestDemo::updateCamera(float fDelta) { if (_mesh) @@ -1118,7 +1118,7 @@ void CameraArcBallDemo::onTouchsMoved(const std::vector& touchs, Event* } } -void CameraArcBallDemo::calculateArcBall(cocos2d::Vec3& axis, float& angle, float p1x, float p1y, float p2x, float p2y) +void CameraArcBallDemo::calculateArcBall(axis::Vec3& axis, float& angle, float p1x, float p1y, float p2x, float p2y) { Mat4 rotation_matrix; Mat4::createRotation(_rotationQuat, &rotation_matrix); @@ -1379,7 +1379,7 @@ void FogTestDemo::onExit() void FogTestDemo::update(float dt) {} -void FogTestDemo::onTouchesMoved(const std::vector& touches, cocos2d::Event* event) +void FogTestDemo::onTouchesMoved(const std::vector& touches, axis::Event* event) { if (touches.size() == 1) { diff --git a/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.h b/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.h index 139df502f8..223ceeeacf 100644 --- a/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.h +++ b/tests/cpp-tests/Classes/Camera3DTest/Camera3DTest.h @@ -33,11 +33,10 @@ THE SOFTWARE. #include -namespace cocos2d -{ +NS_AX_BEGIN class MeshRenderer; class Delay; -} // namespace cocos2d +NS_AX_END // namespace axis enum State { @@ -69,10 +68,10 @@ class CameraBaseTest : public TestCase { public: protected: - cocos2d::BillBoard* bill1; - cocos2d::BillBoard* bill2; - cocos2d::Label* l1; - cocos2d::Label* l2; + axis::BillBoard* bill1; + axis::BillBoard* bill2; + axis::Label* l1; + axis::Label* l2; }; class CameraRotationTest : public CameraBaseTest @@ -93,9 +92,9 @@ public: virtual std::string subtitle() const override; protected: - cocos2d::Node* _camControlNode; - cocos2d::Node* _camNode; - cocos2d::EventListenerTouchOneByOne* _lis; + axis::Node* _camControlNode; + axis::Node* _camNode; + axis::EventListenerTouchOneByOne* _lis; }; class Camera3DTestDemo : public CameraBaseTest @@ -109,55 +108,55 @@ public: virtual void onExit() override; // overrides virtual std::string title() const override; - void addNewSpriteWithCoords(cocos2d::Vec3 p, + void addNewSpriteWithCoords(axis::Vec3 p, std::string fileName, bool playAnimation = false, float scale = 1.0f, bool bindCamera = false); - void onTouchesBegan(const std::vector& touches, cocos2d::Event* event); - void onTouchesMoved(const std::vector& touches, cocos2d::Event* event); - void onTouchesEnded(const std::vector& touches, cocos2d::Event* event); + void onTouchesBegan(const std::vector& touches, axis::Event* event); + void onTouchesMoved(const std::vector& touches, axis::Event* event); + void onTouchesEnded(const std::vector& touches, axis::Event* event); - void scaleCameraCallback(cocos2d::Ref* sender, float value); - void rotateCameraCallback(cocos2d::Ref* sender, float value); - void SwitchViewCallback(cocos2d::Ref* sender, CameraType cameraType); + void scaleCameraCallback(axis::Ref* sender, float value); + void rotateCameraCallback(axis::Ref* sender, float value); + void SwitchViewCallback(axis::Ref* sender, CameraType cameraType); void updateCamera(float fDelta); void move3D(float elapsedTime); void updateState(float elapsedTime); bool isState(unsigned int state, unsigned int bit) const; void reachEndCallBack(); - bool onTouchesCommon(cocos2d::Touch* touch, cocos2d::Event* event, bool* touchProperty); - bool onTouchesZoomOut(cocos2d::Touch* touch, cocos2d::Event* event); - void onTouchesZoomOutEnd(cocos2d::Touch* touch, cocos2d::Event* event); - bool onTouchesZoomIn(cocos2d::Touch* touch, cocos2d::Event* event); - void onTouchesZoomInEnd(cocos2d::Touch* touch, cocos2d::Event* event); + bool onTouchesCommon(axis::Touch* touch, axis::Event* event, bool* touchProperty); + bool onTouchesZoomOut(axis::Touch* touch, axis::Event* event); + void onTouchesZoomOutEnd(axis::Touch* touch, axis::Event* event); + bool onTouchesZoomIn(axis::Touch* touch, axis::Event* event); + void onTouchesZoomInEnd(axis::Touch* touch, axis::Event* event); - bool onTouchesRotateLeft(cocos2d::Touch* touch, cocos2d::Event* event); - void onTouchesRotateLeftEnd(cocos2d::Touch* touch, cocos2d::Event* event); - bool onTouchesRotateRight(cocos2d::Touch* touch, cocos2d::Event* event); - void onTouchesRotateRightEnd(cocos2d::Touch* touch, cocos2d::Event* event); + bool onTouchesRotateLeft(axis::Touch* touch, axis::Event* event); + void onTouchesRotateLeftEnd(axis::Touch* touch, axis::Event* event); + bool onTouchesRotateRight(axis::Touch* touch, axis::Event* event); + void onTouchesRotateRightEnd(axis::Touch* touch, axis::Event* event); protected: std::string _title; - cocos2d::Layer* _layer3D; - cocos2d::MeshRenderer* _mesh; - cocos2d::Vec3 _targetPos; + axis::Layer* _layer3D; + axis::MeshRenderer* _mesh; + axis::Vec3 _targetPos; CameraType _cameraType; - cocos2d::MenuItem* _incRot; - cocos2d::MenuItem* _decRot; + axis::MenuItem* _incRot; + axis::MenuItem* _decRot; unsigned int _curState; - cocos2d::Camera* _camera; - cocos2d::MoveTo* _moveAction; + axis::Camera* _camera; + axis::MoveTo* _moveAction; bool _bZoomOut; bool _bZoomIn; bool _bRotateLeft; bool _bRotateRight; - cocos2d::Label* _RotateRightlabel; - cocos2d::Label* _RotateLeftlabel; - cocos2d::Label* _ZoomInlabel; - cocos2d::Label* _ZoomOutlabel; + axis::Label* _RotateRightlabel; + axis::Label* _RotateLeftlabel; + axis::Label* _ZoomInlabel; + axis::Label* _ZoomOutlabel; }; class CameraCullingDemo : public CameraBaseTest @@ -175,22 +174,22 @@ public: // overrides virtual std::string title() const override; void reachEndCallBack(); - void switchViewCallback(cocos2d::Ref* sender); - void addMeshCallback(cocos2d::Ref* sender); - void delMeshCallback(cocos2d::Ref* sender); + void switchViewCallback(axis::Ref* sender); + void addMeshCallback(axis::Ref* sender); + void delMeshCallback(axis::Ref* sender); void drawCameraFrustum(); protected: - cocos2d::Label* _labelMeshCount; - cocos2d::Layer* _layer3D; - std::vector _objects; + axis::Label* _labelMeshCount; + axis::Layer* _layer3D; + std::vector _objects; CameraType _cameraType; - cocos2d::Camera* _cameraFirst; - cocos2d::Camera* _cameraThird; - cocos2d::MoveBy* _moveAction; - cocos2d::DrawNode3D* _drawAABB; - cocos2d::DrawNode3D* _drawFrustum; + axis::Camera* _cameraFirst; + axis::Camera* _cameraThird; + axis::MoveBy* _moveAction; + axis::DrawNode3D* _drawAABB; + axis::DrawNode3D* _drawFrustum; int _row; }; @@ -209,11 +208,11 @@ public: // overrides virtual std::string title() const override; - void switchOperateCallback(cocos2d::Ref* sender); - void switchTargetCallback(cocos2d::Ref* sender); - void onTouchsMoved(const std::vector& touchs, cocos2d::Event* event); + void switchOperateCallback(axis::Ref* sender); + void switchTargetCallback(axis::Ref* sender); + void onTouchsMoved(const std::vector& touchs, axis::Event* event); void updateCameraTransform(); - void calculateArcBall(cocos2d::Vec3& axis, + void calculateArcBall(axis::Vec3& axis, float& angle, float p1x, float p1y, @@ -222,18 +221,18 @@ public: float projectToSphere(float r, float x, float y); // points on the screen project to arc ball protected: - cocos2d::Layer* _layer3D; + axis::Layer* _layer3D; CameraType _cameraType; - cocos2d::Camera* _camera; - cocos2d::DrawNode3D* _drawGrid; - cocos2d::Quaternion _rotationQuat; // rotation Quaternion + axis::Camera* _camera; + axis::DrawNode3D* _drawGrid; + axis::Quaternion _rotationQuat; // rotation Quaternion float _radius; // arc ball radius float _distanceZ; OperateCamType _operate; // switch rotate or zoom - cocos2d::Vec3 _center; // camera look target + axis::Vec3 _center; // camera look target int _target; // switch camera look target - cocos2d::MeshRenderer* _mesh1; - cocos2d::MeshRenderer* _mesh2; + axis::MeshRenderer* _mesh1; + axis::MeshRenderer* _mesh2; }; class FogTestDemo : public CameraBaseTest @@ -251,21 +250,21 @@ public: // overrides virtual std::string title() const override; - void onTouchesMoved(const std::vector& touches, cocos2d::Event* event); + void onTouchesMoved(const std::vector& touches, axis::Event* event); - void switchTypeCallback(cocos2d::Ref* sender, int type); + void switchTypeCallback(axis::Ref* sender, int type); protected: CameraType _cameraType = CameraType::Free; - cocos2d::Layer* _layer3D = nullptr; - cocos2d::Camera* _camera = nullptr; - cocos2d::MeshRenderer* _mesh1 = nullptr; - cocos2d::MeshRenderer* _mesh2 = nullptr; - cocos2d::backend::ProgramState* _programState1 = nullptr; - cocos2d::backend::ProgramState* _programState2 = nullptr; + axis::Layer* _layer3D = nullptr; + axis::Camera* _camera = nullptr; + axis::MeshRenderer* _mesh1 = nullptr; + axis::MeshRenderer* _mesh2 = nullptr; + axis::backend::ProgramState* _programState1 = nullptr; + axis::backend::ProgramState* _programState2 = nullptr; #if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) - cocos2d::EventListenerCustom* _backToForegroundListener; + axis::EventListenerCustom* _backToForegroundListener; #endif }; diff --git a/tests/cpp-tests/Classes/ChipmunkTest/ChipmunkTest.cpp b/tests/cpp-tests/Classes/ChipmunkTest/ChipmunkTest.cpp index f8d018938c..7c8fdedabe 100644 --- a/tests/cpp-tests/Classes/ChipmunkTest/ChipmunkTest.cpp +++ b/tests/cpp-tests/Classes/ChipmunkTest/ChipmunkTest.cpp @@ -33,8 +33,8 @@ #include "ChipmunkTest.h" -USING_NS_CC; -USING_NS_CC_EXT; +USING_NS_AX; +USING_NS_AX_EXT; enum { @@ -84,7 +84,7 @@ ChipmunkTest::ChipmunkTest() #endif addChild(parent, 0, kTagParentNode); - addNewSpriteAtPosition(cocos2d::Vec2(200.0f, 200.0f)); + addNewSpriteAtPosition(axis::Vec2(200.0f, 200.0f)); // menu for debug layer MenuItemFont::setFontSize(18); @@ -202,7 +202,7 @@ void ChipmunkTest::reset(Ref* sender) getTestSuite()->restartCurrTest(); } -void ChipmunkTest::addNewSpriteAtPosition(cocos2d::Vec2 pos) +void ChipmunkTest::addNewSpriteAtPosition(axis::Vec2 pos) { int posx, posy; @@ -232,7 +232,7 @@ void ChipmunkTest::addNewSpriteAtPosition(cocos2d::Vec2 pos) cpShapeSetFriction(shape, 0.5f); cpSpaceAddShape(_space, shape); - auto sprite = PhysicsSpriteChipmunk2D::createWithTexture(_spriteTexture, cocos2d::Rect(posx, posy, 85, 121)); + auto sprite = PhysicsSpriteChipmunk2D::createWithTexture(_spriteTexture, axis::Rect(posx, posy, 85, 121)); parent->addChild(sprite); sprite->setCPBody(body); @@ -268,7 +268,7 @@ void ChipmunkTest::onAcceleration(Acceleration* acc, Event* event) prevX = accelX; prevY = accelY; - auto v = cocos2d::Vec2(accelX, accelY); + auto v = axis::Vec2(accelX, accelY); v = v * 200; cpSpaceSetGravity(_space, cpv(v.x, v.y)); } diff --git a/tests/cpp-tests/Classes/ChipmunkTest/ChipmunkTest.h b/tests/cpp-tests/Classes/ChipmunkTest/ChipmunkTest.h index 795fdbb2f4..2702886436 100644 --- a/tests/cpp-tests/Classes/ChipmunkTest/ChipmunkTest.h +++ b/tests/cpp-tests/Classes/ChipmunkTest/ChipmunkTest.h @@ -44,17 +44,17 @@ public: void onEnter() override; void initPhysics(); void createResetButton(); - void reset(cocos2d::Ref* sender); + void reset(axis::Ref* sender); - void addNewSpriteAtPosition(cocos2d::Vec2 p); + void addNewSpriteAtPosition(axis::Vec2 p); void update(float dt) override; - void toggleDebugCallback(cocos2d::Ref* sender); - void onTouchesEnded(const std::vector& touches, cocos2d::Event* event); - virtual void onAcceleration(cocos2d::Acceleration* acc, cocos2d::Event* event); + void toggleDebugCallback(axis::Ref* sender); + void onTouchesEnded(const std::vector& touches, axis::Event* event); + virtual void onAcceleration(axis::Acceleration* acc, axis::Event* event); private: - cocos2d::Texture2D* _spriteTexture; // weak ref - cocos2d::extension::PhysicsDebugNodeChipmunk2D* _debugLayer; // weak ref + axis::Texture2D* _spriteTexture; // weak ref + axis::extension::PhysicsDebugNodeChipmunk2D* _debugLayer; // weak ref cpSpace* _space; // strong ref cpShape* _walls[4]; diff --git a/tests/cpp-tests/Classes/ChipmunkTestBed/ChipmunkTestBed.cpp b/tests/cpp-tests/Classes/ChipmunkTestBed/ChipmunkTestBed.cpp index 172ddfc02a..402d0844e5 100644 --- a/tests/cpp-tests/Classes/ChipmunkTestBed/ChipmunkTestBed.cpp +++ b/tests/cpp-tests/Classes/ChipmunkTestBed/ChipmunkTestBed.cpp @@ -31,8 +31,8 @@ #include "ChipmunkTestBed.h" -USING_NS_CC; -USING_NS_CC_EXT; +USING_NS_AX; +USING_NS_AX_EXT; enum { @@ -100,7 +100,7 @@ char const* ChipmunkDemoMessageString = NULL; cpShapeFilter GRAB_FILTER = {CP_NO_GROUP, (unsigned int)GRABBABLE_MASK_BIT, (unsigned int)GRABBABLE_MASK_BIT}; cpShapeFilter NOT_GRABBABLE_FILTER = {CP_NO_GROUP, ~GRABBABLE_MASK_BIT, ~GRABBABLE_MASK_BIT}; -cocos2d::DrawNode* drawCP = NULL; +axis::DrawNode* drawCP = NULL; void ChipmunkDemoDefaultDrawImpl(cpSpace* space){}; @@ -168,7 +168,7 @@ void ChipmunkDebugDrawBB(cpBB bb, cpSpaceDebugColor color) Color4F(0.0f, 0.0f, 1.0f, 1.0f)); } -cocos2d::Label* label; +axis::Label* label; static int max_arbiters = 0; static int max_points = 0; diff --git a/tests/cpp-tests/Classes/ChipmunkTestBed/ChipmunkTestBed.h b/tests/cpp-tests/Classes/ChipmunkTestBed/ChipmunkTestBed.h index c080f57110..89c2a6a2a0 100644 --- a/tests/cpp-tests/Classes/ChipmunkTestBed/ChipmunkTestBed.h +++ b/tests/cpp-tests/Classes/ChipmunkTestBed/ChipmunkTestBed.h @@ -43,27 +43,27 @@ public: void onEnter() override; void createResetButton(); - void reset(cocos2d::Ref* sender); + void reset(axis::Ref* sender); void update(float dt) override; virtual void initPhysics(); - void onMouseDown(cocos2d::Event* event); - void onMouseUp(cocos2d::Event* event); - void onMouseMove(cocos2d::Event* event); + void onMouseDown(axis::Event* event); + void onMouseUp(axis::Event* event); + void onMouseMove(axis::Event* event); void DrawInfo(); void updateInit(ChipmunkDemo tt); cpSpace* _space; // strong ref - cocos2d::extension::PhysicsDebugNodeChipmunk2D* _debugLayer; // weak ref + axis::extension::PhysicsDebugNodeChipmunk2D* _debugLayer; // weak ref int keyPresses; bool mousePresses = false; private: - cocos2d::EventListenerMouse* _mouseListener; - cocos2d::Node* _trackNode; - cocos2d::DrawNode* draw; - cocos2d::Label* drawInfo; + axis::EventListenerMouse* _mouseListener; + axis::Node* _trackNode; + axis::DrawNode* draw; + axis::Label* drawInfo; }; class LogoSmashDemo : public ChipmunkTestBed diff --git a/tests/cpp-tests/Classes/ClickAndMoveTest/ClickAndMoveTest.cpp b/tests/cpp-tests/Classes/ClickAndMoveTest/ClickAndMoveTest.cpp index 27a38f4cba..38190cf496 100644 --- a/tests/cpp-tests/Classes/ClickAndMoveTest/ClickAndMoveTest.cpp +++ b/tests/cpp-tests/Classes/ClickAndMoveTest/ClickAndMoveTest.cpp @@ -25,7 +25,7 @@ #include "ClickAndMoveTest.h" #include "../testResource.h" -USING_NS_CC; +USING_NS_AX; enum { diff --git a/tests/cpp-tests/Classes/ClickAndMoveTest/ClickAndMoveTest.h b/tests/cpp-tests/Classes/ClickAndMoveTest/ClickAndMoveTest.h index 81ce29e919..34c7b3b88f 100644 --- a/tests/cpp-tests/Classes/ClickAndMoveTest/ClickAndMoveTest.h +++ b/tests/cpp-tests/Classes/ClickAndMoveTest/ClickAndMoveTest.h @@ -35,8 +35,8 @@ public: CREATE_FUNC(ClickAndMoveTestCase); ClickAndMoveTestCase(); - bool onTouchBegan(cocos2d::Touch* touch, cocos2d::Event* event); - void onTouchEnded(cocos2d::Touch* touch, cocos2d::Event* event); + bool onTouchBegan(axis::Touch* touch, axis::Event* event); + void onTouchEnded(axis::Touch* touch, axis::Event* event); }; #endif diff --git a/tests/cpp-tests/Classes/ClippingNodeTest/ClippingNodeTest.cpp b/tests/cpp-tests/Classes/ClippingNodeTest/ClippingNodeTest.cpp index 7704acf48b..9bba454c7c 100644 --- a/tests/cpp-tests/Classes/ClippingNodeTest/ClippingNodeTest.cpp +++ b/tests/cpp-tests/Classes/ClippingNodeTest/ClippingNodeTest.cpp @@ -35,7 +35,7 @@ #include "renderer/backend/ProgramState.h" #include "renderer/ccShaders.h" -USING_NS_CC; +USING_NS_AX; enum { diff --git a/tests/cpp-tests/Classes/ClippingNodeTest/ClippingNodeTest.h b/tests/cpp-tests/Classes/ClippingNodeTest/ClippingNodeTest.h index a818890861..3bcc11319a 100644 --- a/tests/cpp-tests/Classes/ClippingNodeTest/ClippingNodeTest.h +++ b/tests/cpp-tests/Classes/ClippingNodeTest/ClippingNodeTest.h @@ -27,13 +27,12 @@ #include "renderer/CCCustomCommand.h" #include -namespace cocos2d -{ +NS_AX_BEGIN namespace backend { class ProgramState; } -} // namespace cocos2d +NS_AX_END // namespace axis DEFINE_TEST_SUITE(ClippingNodeTests); @@ -58,15 +57,15 @@ public: virtual std::string subtitle() const override; virtual void setup() override; - virtual cocos2d::Action* actionRotate(); - virtual cocos2d::Action* actionScale(); + virtual axis::Action* actionRotate(); + virtual axis::Action* actionScale(); - virtual cocos2d::DrawNode* shape(); - virtual cocos2d::Sprite* grossini(); + virtual axis::DrawNode* shape(); + virtual axis::Sprite* grossini(); - virtual cocos2d::Node* stencil(); - virtual cocos2d::ClippingNode* clipper(); - virtual cocos2d::Node* content(); + virtual axis::Node* stencil(); + virtual axis::ClippingNode* clipper(); + virtual axis::Node* content(); }; class ShapeTest : public BasicTest @@ -77,8 +76,8 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; - virtual cocos2d::Node* stencil() override; - virtual cocos2d::Node* content() override; + virtual axis::Node* stencil() override; + virtual axis::Node* content() override; }; class ShapeInvertedTest : public ShapeTest @@ -88,7 +87,7 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; - virtual cocos2d::ClippingNode* clipper() override; + virtual axis::ClippingNode* clipper() override; }; class SpriteTest : public BasicTest @@ -99,9 +98,9 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; - virtual cocos2d::Node* stencil() override; - virtual cocos2d::ClippingNode* clipper() override; - virtual cocos2d::Node* content() override; + virtual axis::Node* stencil() override; + virtual axis::ClippingNode* clipper() override; + virtual axis::Node* content() override; }; class SpriteNoAlphaTest : public SpriteTest @@ -111,7 +110,7 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; - virtual cocos2d::ClippingNode* clipper() override; + virtual axis::ClippingNode* clipper() override; }; class SpriteInvertedTest : public SpriteTest @@ -121,7 +120,7 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; - virtual cocos2d::ClippingNode* clipper() override; + virtual axis::ClippingNode* clipper() override; }; class NestedTest : public BaseClippingNodeTest @@ -143,13 +142,13 @@ public: virtual void setup() override; virtual std::string title() const override; virtual std::string subtitle() const override; - void pokeHoleAtPoint(cocos2d::Vec2 point); - void onTouchesBegan(const std::vector& touches, cocos2d::Event* event); + void pokeHoleAtPoint(axis::Vec2 point); + void onTouchesBegan(const std::vector& touches, axis::Event* event); private: - cocos2d::ClippingNode* _outerClipper; - cocos2d::Node* _holes; - cocos2d::Node* _holesStencil; + axis::ClippingNode* _outerClipper; + axis::Node* _holes; + axis::Node* _holesStencil; }; class ScrollViewDemo : public BaseClippingNodeTest @@ -160,13 +159,13 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; virtual void setup() override; - void onTouchesBegan(const std::vector& touches, cocos2d::Event* event); - void onTouchesMoved(const std::vector& touches, cocos2d::Event* event); - void onTouchesEnded(const std::vector& touches, cocos2d::Event* event); + void onTouchesBegan(const std::vector& touches, axis::Event* event); + void onTouchesMoved(const std::vector& touches, axis::Event* event); + void onTouchesEnded(const std::vector& touches, axis::Event* event); private: bool _scrolling; - cocos2d::Vec2 _lastPoint; + axis::Vec2 _lastPoint; }; //#if COCOS2D_DEBUG > 1 @@ -181,7 +180,7 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; virtual void setup() override; - virtual void draw(cocos2d::Renderer* renderer, const cocos2d::Mat4& transform, uint32_t flags) override; + virtual void draw(axis::Renderer* renderer, const axis::Mat4& transform, uint32_t flags) override; virtual void setupStencilForClippingOnPlane(int plane); virtual void setupStencilForDrawingOnPlane(int plane); @@ -191,13 +190,13 @@ protected: void onBeforeDrawSprite(int planeIndex); void initCommands(); - std::vector _renderCmds; -// cocos2d::CallbackCommand _enableStencilCallback; -// cocos2d::CallbackCommand _disableStencilCallback; - cocos2d::Vector _sprites; - cocos2d::Vector _spritesStencil; - cocos2d::backend::UniformLocation _locColor; - cocos2d::backend::UniformLocation _locMVPMatrix; + std::vector _renderCmds; +// axis::CallbackCommand _enableStencilCallback; +// axis::CallbackCommand _disableStencilCallback; + axis::Vector _sprites; + axis::Vector _spritesStencil; + axis::backend::UniformLocation _locColor; + axis::backend::UniformLocation _locMVPMatrix; }; class RawStencilBufferTest2 : public RawStencilBufferTest @@ -236,7 +235,7 @@ public: virtual void setupStencilForDrawingOnPlane(int plane) override; private: - cocos2d::backend::UniformLocation _alphaMVPMatrix; + axis::backend::UniformLocation _alphaMVPMatrix; }; class RawStencilBufferTest5 : public RawStencilBufferTestAlphaTest diff --git a/tests/cpp-tests/Classes/ConfigurationTest/ConfigurationTest.cpp b/tests/cpp-tests/Classes/ConfigurationTest/ConfigurationTest.cpp index 44479ff867..95f9bc8f8e 100644 --- a/tests/cpp-tests/Classes/ConfigurationTest/ConfigurationTest.cpp +++ b/tests/cpp-tests/Classes/ConfigurationTest/ConfigurationTest.cpp @@ -26,7 +26,7 @@ #include "../testResource.h" #include "cocos2d.h" -USING_NS_CC; +USING_NS_AX; ConfigurationTests::ConfigurationTests() { diff --git a/tests/cpp-tests/Classes/ConsoleTest/ConsoleTest.cpp b/tests/cpp-tests/Classes/ConsoleTest/ConsoleTest.cpp index 8fabdf95c9..230da0f134 100644 --- a/tests/cpp-tests/Classes/ConsoleTest/ConsoleTest.cpp +++ b/tests/cpp-tests/Classes/ConsoleTest/ConsoleTest.cpp @@ -37,7 +37,7 @@ # include #endif -USING_NS_CC; +USING_NS_AX; //------------------------------------------------------------------ // diff --git a/tests/cpp-tests/Classes/ConsoleTest/ConsoleTest.h b/tests/cpp-tests/Classes/ConsoleTest/ConsoleTest.h index ed5b2c7478..503665ec2b 100644 --- a/tests/cpp-tests/Classes/ConsoleTest/ConsoleTest.h +++ b/tests/cpp-tests/Classes/ConsoleTest/ConsoleTest.h @@ -52,7 +52,7 @@ protected: ConsoleCustomCommand(); virtual ~ConsoleCustomCommand(); - cocos2d::Console* _console; + axis::Console* _console; private: CC_DISALLOW_COPY_AND_ASSIGN(ConsoleCustomCommand); diff --git a/tests/cpp-tests/Classes/CurlTest/CurlTest.cpp b/tests/cpp-tests/Classes/CurlTest/CurlTest.cpp index 3085e22659..6e150b9e5b 100644 --- a/tests/cpp-tests/Classes/CurlTest/CurlTest.cpp +++ b/tests/cpp-tests/Classes/CurlTest/CurlTest.cpp @@ -28,7 +28,7 @@ #include "stdlib.h" #include "curl/curl.h" -USING_NS_CC; +USING_NS_AX; CurlTests::CurlTests() { diff --git a/tests/cpp-tests/Classes/CurlTest/CurlTest.h b/tests/cpp-tests/Classes/CurlTest/CurlTest.h index 1820fbb50e..74e9fd9725 100644 --- a/tests/cpp-tests/Classes/CurlTest/CurlTest.h +++ b/tests/cpp-tests/Classes/CurlTest/CurlTest.h @@ -38,10 +38,10 @@ public: CurlTest(); ~CurlTest(); - void onTouchesEnded(const std::vector& touches, cocos2d::Event* event); + void onTouchesEnded(const std::vector& touches, axis::Event* event); private: - cocos2d::Label* _label; + axis::Label* _label; }; #endif // _CURL_TEST_H_ diff --git a/tests/cpp-tests/Classes/CurrentLanguageTest/CurrentLanguageTest.cpp b/tests/cpp-tests/Classes/CurrentLanguageTest/CurrentLanguageTest.cpp index e67e9564c2..ad9b32154a 100644 --- a/tests/cpp-tests/Classes/CurrentLanguageTest/CurrentLanguageTest.cpp +++ b/tests/cpp-tests/Classes/CurrentLanguageTest/CurrentLanguageTest.cpp @@ -24,7 +24,7 @@ #include "CurrentLanguageTest.h" -USING_NS_CC; +USING_NS_AX; CurrentLanguageTests::CurrentLanguageTests() { diff --git a/tests/cpp-tests/Classes/DataVisitorTest/DataVisitorTest.cpp b/tests/cpp-tests/Classes/DataVisitorTest/DataVisitorTest.cpp index f20e59c3b4..c1c7b4bd30 100644 --- a/tests/cpp-tests/Classes/DataVisitorTest/DataVisitorTest.cpp +++ b/tests/cpp-tests/Classes/DataVisitorTest/DataVisitorTest.cpp @@ -25,7 +25,7 @@ #include "DataVisitorTest.h" #include "../testResource.h" -USING_NS_CC; +USING_NS_AX; DataVisitorTests::DataVisitorTests() { diff --git a/tests/cpp-tests/Classes/DrawPrimitivesTest/DrawPrimitivesTest.cpp b/tests/cpp-tests/Classes/DrawPrimitivesTest/DrawPrimitivesTest.cpp index 9c1b701153..477fb6eb23 100644 --- a/tests/cpp-tests/Classes/DrawPrimitivesTest/DrawPrimitivesTest.cpp +++ b/tests/cpp-tests/Classes/DrawPrimitivesTest/DrawPrimitivesTest.cpp @@ -26,7 +26,7 @@ #include "renderer/CCRenderer.h" #include "renderer/CCCustomCommand.h" -USING_NS_CC; +USING_NS_AX; using namespace std; diff --git a/tests/cpp-tests/Classes/EffectsAdvancedTest/EffectsAdvancedTest.cpp b/tests/cpp-tests/Classes/EffectsAdvancedTest/EffectsAdvancedTest.cpp index 1216f32e76..2e50548ca2 100644 --- a/tests/cpp-tests/Classes/EffectsAdvancedTest/EffectsAdvancedTest.cpp +++ b/tests/cpp-tests/Classes/EffectsAdvancedTest/EffectsAdvancedTest.cpp @@ -24,7 +24,7 @@ #include "EffectsAdvancedTest.h" -USING_NS_CC; +USING_NS_AX; enum { diff --git a/tests/cpp-tests/Classes/EffectsAdvancedTest/EffectsAdvancedTest.h b/tests/cpp-tests/Classes/EffectsAdvancedTest/EffectsAdvancedTest.h index c780723f65..54642192a5 100644 --- a/tests/cpp-tests/Classes/EffectsAdvancedTest/EffectsAdvancedTest.h +++ b/tests/cpp-tests/Classes/EffectsAdvancedTest/EffectsAdvancedTest.h @@ -33,13 +33,13 @@ DEFINE_TEST_SUITE(EffectAdvanceTests); class EffectAdvanceBaseTest : public TestCase { protected: - cocos2d::TextureAtlas* _atlas; + axis::TextureAtlas* _atlas; std::string _title; - cocos2d::Node* _bgNode; - cocos2d::Node* _target1; - cocos2d::Node* _target2; + axis::Node* _bgNode; + axis::Node* _target1; + axis::Node* _target2; public: virtual void onEnter() override; diff --git a/tests/cpp-tests/Classes/EffectsTest/EffectsTest.cpp b/tests/cpp-tests/Classes/EffectsTest/EffectsTest.cpp index ad57f9c242..2d3fb4896d 100644 --- a/tests/cpp-tests/Classes/EffectsTest/EffectsTest.cpp +++ b/tests/cpp-tests/Classes/EffectsTest/EffectsTest.cpp @@ -25,7 +25,7 @@ #include "EffectsTest.h" #include "../testResource.h" -USING_NS_CC; +USING_NS_AX; EffectTests::EffectTests() { @@ -60,7 +60,7 @@ Shaky3DDemo::Shaky3DDemo() _subtitle = ""; } -cocos2d::ActionInterval* Shaky3DDemo::createEffect(float t) +axis::ActionInterval* Shaky3DDemo::createEffect(float t) { return Shaky3D::create(t, Size(15, 10), 5, false); } @@ -71,12 +71,12 @@ Waves3DDemo::Waves3DDemo() _subtitle = ""; } -cocos2d::ActionInterval* Waves3DDemo::createEffect(float t) +axis::ActionInterval* Waves3DDemo::createEffect(float t) { return Waves3D::create(t, Size(15, 10), 5, 40); } -cocos2d::ActionInterval* FlipX3DDemo::createEffect(float t) +axis::ActionInterval* FlipX3DDemo::createEffect(float t) { auto flipx = FlipX3D::create(t); auto flipx_back = flipx->reverse(); @@ -90,7 +90,7 @@ FlipX3DDemo::FlipX3DDemo() _subtitle = ""; } -cocos2d::ActionInterval* FlipY3DDemo::createEffect(float t) +axis::ActionInterval* FlipY3DDemo::createEffect(float t) { auto flipy = FlipY3D::create(t); auto flipy_back = flipy->reverse(); @@ -105,7 +105,7 @@ FlipY3DDemo::FlipY3DDemo() _subtitle = ""; } -cocos2d::ActionInterval* Lens3DDemo::createEffect(float t) +axis::ActionInterval* Lens3DDemo::createEffect(float t) { auto size = Director::getInstance()->getWinSize(); return Lens3D::create(t, Size(15, 10), Vec2(size.width / 2, size.height / 2), 240); @@ -117,7 +117,7 @@ Lens3DDemo::Lens3DDemo() _subtitle = ""; } -cocos2d::ActionInterval* Ripple3DDemo::createEffect(float t) +axis::ActionInterval* Ripple3DDemo::createEffect(float t) { auto size = Director::getInstance()->getWinSize(); return Ripple3D::create(t, Size(32, 24), Vec2(size.width / 2, size.height / 2), 240, 4, 160); @@ -129,7 +129,7 @@ Ripple3DDemo::Ripple3DDemo() _subtitle = ""; } -cocos2d::ActionInterval* LiquidDemo::createEffect(float t) +axis::ActionInterval* LiquidDemo::createEffect(float t) { return Liquid::create(t, Size(16, 12), 4, 20); } @@ -140,7 +140,7 @@ LiquidDemo::LiquidDemo() _subtitle = ""; } -cocos2d::ActionInterval* WavesDemo::createEffect(float t) +axis::ActionInterval* WavesDemo::createEffect(float t) { return Waves::create(t, Size(16, 12), 4, 20, true, true); } @@ -151,7 +151,7 @@ WavesDemo::WavesDemo() _subtitle = ""; } -cocos2d::ActionInterval* TwirlDemo::createEffect(float t) +axis::ActionInterval* TwirlDemo::createEffect(float t) { auto size = Director::getInstance()->getWinSize(); return Twirl::create(t, Size(12, 8), Vec2(size.width / 2, size.height / 2), 1, 2.5f); @@ -163,7 +163,7 @@ TwirlDemo::TwirlDemo() _subtitle = ""; } -cocos2d::ActionInterval* ShakyTiles3DDemo::createEffect(float t) +axis::ActionInterval* ShakyTiles3DDemo::createEffect(float t) { return ShakyTiles3D::create(t, Size(16, 12), 5, false); } @@ -174,7 +174,7 @@ ShakyTiles3DDemo::ShakyTiles3DDemo() _subtitle = ""; } -cocos2d::ActionInterval* ShatteredTiles3DDemo::createEffect(float t) +axis::ActionInterval* ShatteredTiles3DDemo::createEffect(float t) { return ShatteredTiles3D::create(t, Size(16, 12), 5, false); } @@ -185,7 +185,7 @@ ShatteredTiles3DDemo::ShatteredTiles3DDemo() _subtitle = ""; } -cocos2d::ActionInterval* ShuffleTilesDemo::createEffect(float t) +axis::ActionInterval* ShuffleTilesDemo::createEffect(float t) { auto shuffle = ShuffleTiles::create(t, Size(16, 12), 25); auto shuffle_back = shuffle->reverse(); @@ -200,7 +200,7 @@ ShuffleTilesDemo::ShuffleTilesDemo() _subtitle = ""; } -cocos2d::ActionInterval* FadeOutTRTilesDemo::createEffect(float t) +axis::ActionInterval* FadeOutTRTilesDemo::createEffect(float t) { auto fadeout = FadeOutTRTiles::create(t, Size(16, 12)); auto back = fadeout->reverse(); @@ -215,7 +215,7 @@ FadeOutTRTilesDemo::FadeOutTRTilesDemo() _subtitle = ""; } -cocos2d::ActionInterval* FadeOutBLTilesDemo::createEffect(float t) +axis::ActionInterval* FadeOutBLTilesDemo::createEffect(float t) { auto fadeout = FadeOutBLTiles::create(t, Size(16, 12)); auto back = fadeout->reverse(); @@ -230,7 +230,7 @@ FadeOutBLTilesDemo::FadeOutBLTilesDemo() _subtitle = ""; } -cocos2d::ActionInterval* FadeOutUpTilesDemo::createEffect(float t) +axis::ActionInterval* FadeOutUpTilesDemo::createEffect(float t) { auto fadeout = FadeOutUpTiles::create(t, Size(16, 12)); auto back = fadeout->reverse(); @@ -245,7 +245,7 @@ FadeOutUpTilesDemo::FadeOutUpTilesDemo() _subtitle = ""; } -cocos2d::ActionInterval* FadeOutDownTilesDemo::createEffect(float t) +axis::ActionInterval* FadeOutDownTilesDemo::createEffect(float t) { auto fadeout = FadeOutDownTiles::create(t, Size(16, 12)); auto back = fadeout->reverse(); @@ -260,7 +260,7 @@ FadeOutDownTilesDemo::FadeOutDownTilesDemo() _subtitle = ""; } -cocos2d::ActionInterval* TurnOffTilesDemo::createEffect(float t) +axis::ActionInterval* TurnOffTilesDemo::createEffect(float t) { auto fadeout = TurnOffTiles::create(t, Size(48, 32), 25); auto back = fadeout->reverse(); @@ -275,7 +275,7 @@ TurnOffTilesDemo::TurnOffTilesDemo() _subtitle = ""; } -cocos2d::ActionInterval* WavesTiles3DDemo::createEffect(float t) +axis::ActionInterval* WavesTiles3DDemo::createEffect(float t) { return WavesTiles3D::create(t, Size(15, 10), 4, 120); } @@ -286,7 +286,7 @@ WavesTiles3DDemo::WavesTiles3DDemo() _subtitle = ""; } -cocos2d::ActionInterval* JumpTiles3DDemo::createEffect(float t) +axis::ActionInterval* JumpTiles3DDemo::createEffect(float t) { return JumpTiles3D::create(t, Size(15, 10), 2, 30); } @@ -297,7 +297,7 @@ JumpTiles3DDemo::JumpTiles3DDemo() _subtitle = ""; } -cocos2d::ActionInterval* SplitRowsDemo::createEffect(float t) +axis::ActionInterval* SplitRowsDemo::createEffect(float t) { return SplitRows::create(t, 9); } @@ -308,7 +308,7 @@ SplitRowsDemo::SplitRowsDemo() _subtitle = ""; } -cocos2d::ActionInterval* SplitColsDemo::createEffect(float t) +axis::ActionInterval* SplitColsDemo::createEffect(float t) { return SplitCols::create(t, 9); } @@ -319,7 +319,7 @@ SplitColsDemo::SplitColsDemo() _subtitle = ""; } -cocos2d::ActionInterval* PageTurn3DDemo::createEffect(float t) +axis::ActionInterval* PageTurn3DDemo::createEffect(float t) { return PageTurn3D::create(t, Size(15, 10)); } @@ -330,7 +330,7 @@ PageTurn3DDemo::PageTurn3DDemo() _subtitle = ""; } -cocos2d::ActionInterval* PageTurn3DRectDemo::createEffect(float t) +axis::ActionInterval* PageTurn3DRectDemo::createEffect(float t) { return PageTurn3D::create(t, Size(15, 10)); } diff --git a/tests/cpp-tests/Classes/EffectsTest/EffectsTest.h b/tests/cpp-tests/Classes/EffectsTest/EffectsTest.h index b5156df1de..42a8d54748 100644 --- a/tests/cpp-tests/Classes/EffectsTest/EffectsTest.h +++ b/tests/cpp-tests/Classes/EffectsTest/EffectsTest.h @@ -37,14 +37,14 @@ public: protected: virtual bool init() override; - virtual cocos2d::ActionInterval* createEffect(float t) { return nullptr; } + virtual axis::ActionInterval* createEffect(float t) { return nullptr; } void checkAnim(float dt); virtual bool isRectEffect() { return false; } virtual std::string title() const override { return _title; }; virtual std::string subtitle() const override { return _subtitle; }; std::string _title; std::string _subtitle; - cocos2d::NodeGrid* _gridNodeTarget; + axis::NodeGrid* _gridNodeTarget; }; class Shaky3DDemo : public EffectBaseTest @@ -54,7 +54,7 @@ public: Shaky3DDemo(); protected: - virtual cocos2d::ActionInterval* createEffect(float t) override; + virtual axis::ActionInterval* createEffect(float t) override; }; class Waves3DDemo : public EffectBaseTest @@ -64,7 +64,7 @@ public: Waves3DDemo(); protected: - virtual cocos2d::ActionInterval* createEffect(float t) override; + virtual axis::ActionInterval* createEffect(float t) override; }; class FlipX3DDemo : public EffectBaseTest @@ -74,7 +74,7 @@ public: FlipX3DDemo(); protected: - virtual cocos2d::ActionInterval* createEffect(float t) override; + virtual axis::ActionInterval* createEffect(float t) override; }; class FlipY3DDemo : public EffectBaseTest @@ -84,7 +84,7 @@ public: FlipY3DDemo(); protected: - virtual cocos2d::ActionInterval* createEffect(float t) override; + virtual axis::ActionInterval* createEffect(float t) override; }; class Lens3DDemo : public EffectBaseTest @@ -94,7 +94,7 @@ public: Lens3DDemo(); protected: - virtual cocos2d::ActionInterval* createEffect(float t) override; + virtual axis::ActionInterval* createEffect(float t) override; }; class Ripple3DDemo : public EffectBaseTest @@ -104,7 +104,7 @@ public: Ripple3DDemo(); protected: - virtual cocos2d::ActionInterval* createEffect(float t) override; + virtual axis::ActionInterval* createEffect(float t) override; }; class LiquidDemo : public EffectBaseTest @@ -114,7 +114,7 @@ public: LiquidDemo(); protected: - virtual cocos2d::ActionInterval* createEffect(float t) override; + virtual axis::ActionInterval* createEffect(float t) override; }; class WavesDemo : public EffectBaseTest @@ -124,7 +124,7 @@ public: WavesDemo(); protected: - virtual cocos2d::ActionInterval* createEffect(float t) override; + virtual axis::ActionInterval* createEffect(float t) override; }; class TwirlDemo : public EffectBaseTest @@ -134,7 +134,7 @@ public: TwirlDemo(); protected: - virtual cocos2d::ActionInterval* createEffect(float t) override; + virtual axis::ActionInterval* createEffect(float t) override; }; class ShakyTiles3DDemo : public EffectBaseTest @@ -144,7 +144,7 @@ public: ShakyTiles3DDemo(); protected: - virtual cocos2d::ActionInterval* createEffect(float t) override; + virtual axis::ActionInterval* createEffect(float t) override; }; class ShatteredTiles3DDemo : public EffectBaseTest @@ -154,7 +154,7 @@ public: ShatteredTiles3DDemo(); protected: - virtual cocos2d::ActionInterval* createEffect(float t) override; + virtual axis::ActionInterval* createEffect(float t) override; }; class ShuffleTilesDemo : public EffectBaseTest @@ -164,7 +164,7 @@ public: ShuffleTilesDemo(); protected: - virtual cocos2d::ActionInterval* createEffect(float t) override; + virtual axis::ActionInterval* createEffect(float t) override; }; class FadeOutTRTilesDemo : public EffectBaseTest @@ -174,7 +174,7 @@ public: FadeOutTRTilesDemo(); protected: - virtual cocos2d::ActionInterval* createEffect(float t) override; + virtual axis::ActionInterval* createEffect(float t) override; }; class FadeOutBLTilesDemo : public EffectBaseTest @@ -184,7 +184,7 @@ public: FadeOutBLTilesDemo(); protected: - virtual cocos2d::ActionInterval* createEffect(float t) override; + virtual axis::ActionInterval* createEffect(float t) override; }; class FadeOutUpTilesDemo : public EffectBaseTest @@ -194,7 +194,7 @@ public: FadeOutUpTilesDemo(); protected: - virtual cocos2d::ActionInterval* createEffect(float t) override; + virtual axis::ActionInterval* createEffect(float t) override; }; class FadeOutDownTilesDemo : public EffectBaseTest @@ -204,7 +204,7 @@ public: FadeOutDownTilesDemo(); protected: - virtual cocos2d::ActionInterval* createEffect(float t) override; + virtual axis::ActionInterval* createEffect(float t) override; }; class TurnOffTilesDemo : public EffectBaseTest @@ -214,7 +214,7 @@ public: TurnOffTilesDemo(); protected: - virtual cocos2d::ActionInterval* createEffect(float t) override; + virtual axis::ActionInterval* createEffect(float t) override; }; class WavesTiles3DDemo : public EffectBaseTest @@ -224,7 +224,7 @@ public: WavesTiles3DDemo(); protected: - virtual cocos2d::ActionInterval* createEffect(float t) override; + virtual axis::ActionInterval* createEffect(float t) override; }; class JumpTiles3DDemo : public EffectBaseTest @@ -234,7 +234,7 @@ public: JumpTiles3DDemo(); protected: - virtual cocos2d::ActionInterval* createEffect(float t) override; + virtual axis::ActionInterval* createEffect(float t) override; }; class SplitRowsDemo : public EffectBaseTest @@ -244,7 +244,7 @@ public: SplitRowsDemo(); protected: - virtual cocos2d::ActionInterval* createEffect(float t) override; + virtual axis::ActionInterval* createEffect(float t) override; }; class SplitColsDemo : public EffectBaseTest @@ -254,7 +254,7 @@ public: SplitColsDemo(); protected: - virtual cocos2d::ActionInterval* createEffect(float t) override; + virtual axis::ActionInterval* createEffect(float t) override; }; class PageTurn3DDemo : public EffectBaseTest @@ -264,7 +264,7 @@ public: PageTurn3DDemo(); protected: - virtual cocos2d::ActionInterval* createEffect(float t) override; + virtual axis::ActionInterval* createEffect(float t) override; }; class PageTurn3DRectDemo : public EffectBaseTest @@ -275,7 +275,7 @@ public: protected: virtual bool isRectEffect() override { return true; } - virtual cocos2d::ActionInterval* createEffect(float t) override; + virtual axis::ActionInterval* createEffect(float t) override; }; #endif diff --git a/tests/cpp-tests/Classes/ExtensionsTest/AssetsManagerExTest/AssetsManagerExTest.cpp b/tests/cpp-tests/Classes/ExtensionsTest/AssetsManagerExTest/AssetsManagerExTest.cpp index e982e0be66..898bb25b72 100644 --- a/tests/cpp-tests/Classes/ExtensionsTest/AssetsManagerExTest/AssetsManagerExTest.cpp +++ b/tests/cpp-tests/Classes/ExtensionsTest/AssetsManagerExTest/AssetsManagerExTest.cpp @@ -26,8 +26,8 @@ #include "../../testResource.h" #include "cocos2d.h" -USING_NS_CC; -USING_NS_CC_EXT; +USING_NS_AX; +USING_NS_AX_EXT; const char* sceneManifests[] = {"Manifests/AMTestScene1/project.manifest", "Manifests/AMTestScene2/project.manifest", "Manifests/AMTestScene3/project.manifest"}; @@ -127,7 +127,7 @@ void AssetsManagerExLoaderScene::startDownloadCallback(Ref* sender) else { _amListener = - cocos2d::extension::EventListenerAssetsManagerEx::create(_am, [this](EventAssetsManagerEx* event) { + axis::extension::EventListenerAssetsManagerEx::create(_am, [this](EventAssetsManagerEx* event) { static int failCount = 0; switch (event->getEventCode()) { diff --git a/tests/cpp-tests/Classes/ExtensionsTest/AssetsManagerExTest/AssetsManagerExTest.h b/tests/cpp-tests/Classes/ExtensionsTest/AssetsManagerExTest/AssetsManagerExTest.h index caae0845ea..a2aa4367d2 100644 --- a/tests/cpp-tests/Classes/ExtensionsTest/AssetsManagerExTest/AssetsManagerExTest.h +++ b/tests/cpp-tests/Classes/ExtensionsTest/AssetsManagerExTest/AssetsManagerExTest.h @@ -37,7 +37,7 @@ public: AssetsManagerExLoaderScene(int testIndex); - void startDownloadCallback(cocos2d::Ref* sender); + void startDownloadCallback(axis::Ref* sender); virtual std::string title() const override; @@ -46,12 +46,12 @@ public: private: int _testIndex; - cocos2d::Layer* _loadLayer; - cocos2d::Menu* _downloadMenu; + axis::Layer* _loadLayer; + axis::Menu* _downloadMenu; - cocos2d::extension::AssetsManagerEx* _am; - cocos2d::Label* _progress; - cocos2d::extension::EventListenerAssetsManagerEx* _amListener; + axis::extension::AssetsManagerEx* _am; + axis::Label* _progress; + axis::extension::EventListenerAssetsManagerEx* _amListener; void onLoadEnd(); }; diff --git a/tests/cpp-tests/Classes/ExtensionsTest/TableViewTest/CustomTableViewCell.cpp b/tests/cpp-tests/Classes/ExtensionsTest/TableViewTest/CustomTableViewCell.cpp index 11e77fa064..ec7e3f4bfc 100644 --- a/tests/cpp-tests/Classes/ExtensionsTest/TableViewTest/CustomTableViewCell.cpp +++ b/tests/cpp-tests/Classes/ExtensionsTest/TableViewTest/CustomTableViewCell.cpp @@ -24,7 +24,7 @@ #include "CustomTableViewCell.h" -USING_NS_CC; +USING_NS_AX; void CustomTableViewCell::draw(Renderer* renderer, const Mat4& transform, uint32_t flags) { diff --git a/tests/cpp-tests/Classes/ExtensionsTest/TableViewTest/CustomTableViewCell.h b/tests/cpp-tests/Classes/ExtensionsTest/TableViewTest/CustomTableViewCell.h index f7bb9847fb..b07bb70b0c 100644 --- a/tests/cpp-tests/Classes/ExtensionsTest/TableViewTest/CustomTableViewCell.h +++ b/tests/cpp-tests/Classes/ExtensionsTest/TableViewTest/CustomTableViewCell.h @@ -31,10 +31,10 @@ #include "GUI/CCScrollView/CCScrollView.h" #include "GUI/CCScrollView/CCTableView.h" -class CustomTableViewCell : public cocos2d::extension::TableViewCell +class CustomTableViewCell : public axis::extension::TableViewCell { public: - virtual void draw(cocos2d::Renderer* renderer, const cocos2d::Mat4& transform, uint32_t flags) override; + virtual void draw(axis::Renderer* renderer, const axis::Mat4& transform, uint32_t flags) override; }; #endif /* __CUSTOMTABELVIEWCELL_H__ */ diff --git a/tests/cpp-tests/Classes/ExtensionsTest/TableViewTest/TableViewTestScene.cpp b/tests/cpp-tests/Classes/ExtensionsTest/TableViewTest/TableViewTestScene.cpp index f9e7c94e2c..a199e6341f 100644 --- a/tests/cpp-tests/Classes/ExtensionsTest/TableViewTest/TableViewTestScene.cpp +++ b/tests/cpp-tests/Classes/ExtensionsTest/TableViewTest/TableViewTestScene.cpp @@ -26,8 +26,8 @@ #include "CustomTableViewCell.h" #include "../ExtensionsTest.h" -USING_NS_CC; -USING_NS_CC_EXT; +USING_NS_AX; +USING_NS_AX_EXT; TableViewTests::TableViewTests() { diff --git a/tests/cpp-tests/Classes/ExtensionsTest/TableViewTest/TableViewTestScene.h b/tests/cpp-tests/Classes/ExtensionsTest/TableViewTest/TableViewTestScene.h index df902c70c2..921292a9f2 100644 --- a/tests/cpp-tests/Classes/ExtensionsTest/TableViewTest/TableViewTestScene.h +++ b/tests/cpp-tests/Classes/ExtensionsTest/TableViewTest/TableViewTestScene.h @@ -32,22 +32,22 @@ DEFINE_TEST_SUITE(TableViewTests); class TableViewTest : public TestCase, - public cocos2d::extension::TableViewDataSource, - public cocos2d::extension::TableViewDelegate + public axis::extension::TableViewDataSource, + public axis::extension::TableViewDelegate { public: CREATE_FUNC(TableViewTest); virtual bool init() override; - virtual void scrollViewDidScroll(cocos2d::extension::ScrollView* view) override{}; - virtual void scrollViewDidZoom(cocos2d::extension::ScrollView* view) override {} - virtual void tableCellTouched(cocos2d::extension::TableView* table, - cocos2d::extension::TableViewCell* cell) override; - virtual cocos2d::Size tableCellSizeForIndex(cocos2d::extension::TableView* table, ssize_t idx) override; - virtual cocos2d::extension::TableViewCell* tableCellAtIndex(cocos2d::extension::TableView* table, + virtual void scrollViewDidScroll(axis::extension::ScrollView* view) override{}; + virtual void scrollViewDidZoom(axis::extension::ScrollView* view) override {} + virtual void tableCellTouched(axis::extension::TableView* table, + axis::extension::TableViewCell* cell) override; + virtual axis::Size tableCellSizeForIndex(axis::extension::TableView* table, ssize_t idx) override; + virtual axis::extension::TableViewCell* tableCellAtIndex(axis::extension::TableView* table, ssize_t idx) override; - virtual ssize_t numberOfCellsInTableView(cocos2d::extension::TableView* table) override; + virtual ssize_t numberOfCellsInTableView(axis::extension::TableView* table) override; }; #endif // __TABLEVIEWTESTSCENE_H__ diff --git a/tests/cpp-tests/Classes/FileUtilsTest/FileUtilsTest.cpp b/tests/cpp-tests/Classes/FileUtilsTest/FileUtilsTest.cpp index 442fee15e1..5c7feffd64 100644 --- a/tests/cpp-tests/Classes/FileUtilsTest/FileUtilsTest.cpp +++ b/tests/cpp-tests/Classes/FileUtilsTest/FileUtilsTest.cpp @@ -24,7 +24,7 @@ #include "FileUtilsTest.h" -USING_NS_CC; +USING_NS_AX; FileUtilsTests::FileUtilsTests() { diff --git a/tests/cpp-tests/Classes/FontTest/FontTest.cpp b/tests/cpp-tests/Classes/FontTest/FontTest.cpp index 7dff9ab94d..1510355afb 100644 --- a/tests/cpp-tests/Classes/FontTest/FontTest.cpp +++ b/tests/cpp-tests/Classes/FontTest/FontTest.cpp @@ -27,7 +27,7 @@ #include "2d/CCFontAtlasCache.h" #include "2d/CCFontFreeType.h" -USING_NS_CC; +USING_NS_AX; enum { diff --git a/tests/cpp-tests/Classes/ImGuiTest/ImGuiTest.cpp b/tests/cpp-tests/Classes/ImGuiTest/ImGuiTest.cpp index 3e56b477ed..5f9327e680 100644 --- a/tests/cpp-tests/Classes/ImGuiTest/ImGuiTest.cpp +++ b/tests/cpp-tests/Classes/ImGuiTest/ImGuiTest.cpp @@ -3,8 +3,8 @@ #include "ImGui/ImGuiPresenter.h" -USING_NS_CC; -USING_NS_CC_EXT; +USING_NS_AX; +USING_NS_AX_EXT; #if defined(CC_PLATFORM_PC) diff --git a/tests/cpp-tests/Classes/InputTest/MouseTest.cpp b/tests/cpp-tests/Classes/InputTest/MouseTest.cpp index d222246886..bbea5819c0 100644 --- a/tests/cpp-tests/Classes/InputTest/MouseTest.cpp +++ b/tests/cpp-tests/Classes/InputTest/MouseTest.cpp @@ -24,7 +24,7 @@ #include "MouseTest.h" -USING_NS_CC; +USING_NS_AX; template std::string tostr(const T& t) diff --git a/tests/cpp-tests/Classes/InputTest/MouseTest.h b/tests/cpp-tests/Classes/InputTest/MouseTest.h index adcfd3368b..a01c0a9aa4 100644 --- a/tests/cpp-tests/Classes/InputTest/MouseTest.h +++ b/tests/cpp-tests/Classes/InputTest/MouseTest.h @@ -42,18 +42,18 @@ public: MouseEventTest(); ~MouseEventTest(); - void onMouseDown(cocos2d::Event* event); - void onMouseUp(cocos2d::Event* event); - void onMouseMove(cocos2d::Event* event); - void onMouseScroll(cocos2d::Event* event); + void onMouseDown(axis::Event* event); + void onMouseUp(axis::Event* event); + void onMouseMove(axis::Event* event); + void onMouseScroll(axis::Event* event); virtual std::string title() const override; virtual std::string subtitle() const override; private: - cocos2d::Label* _labelAction; - cocos2d::Label* _labelPosition; - cocos2d::EventListenerMouse* _mouseListener; + axis::Label* _labelAction; + axis::Label* _labelPosition; + axis::EventListenerMouse* _mouseListener; }; class HideMouseTest : public BaseMouseTest @@ -67,7 +67,7 @@ public: virtual std::string subtitle() const override; private: - cocos2d::EventListenerMouse* _lis; + axis::EventListenerMouse* _lis; }; #endif diff --git a/tests/cpp-tests/Classes/IntervalTest/IntervalTest.cpp b/tests/cpp-tests/Classes/IntervalTest/IntervalTest.cpp index 24f85aa1f7..a4c6784db3 100644 --- a/tests/cpp-tests/Classes/IntervalTest/IntervalTest.cpp +++ b/tests/cpp-tests/Classes/IntervalTest/IntervalTest.cpp @@ -25,7 +25,7 @@ #include "IntervalTest.h" #include "../testResource.h" -USING_NS_CC; +USING_NS_AX; #define SID_STEP1 100 #define SID_STEP2 101 diff --git a/tests/cpp-tests/Classes/IntervalTest/IntervalTest.h b/tests/cpp-tests/Classes/IntervalTest/IntervalTest.h index 9a8aa5084d..b625dc7b2c 100644 --- a/tests/cpp-tests/Classes/IntervalTest/IntervalTest.h +++ b/tests/cpp-tests/Classes/IntervalTest/IntervalTest.h @@ -41,11 +41,11 @@ public: // CREATE_NODE(IntervalLayer); protected: - cocos2d::Label* _label0; - cocos2d::Label* _label1; - cocos2d::Label* _label2; - cocos2d::Label* _label3; - cocos2d::Label* _label4; + axis::Label* _label0; + axis::Label* _label1; + axis::Label* _label2; + axis::Label* _label3; + axis::Label* _label4; float _time0, _time1, _time2, _time3, _time4; }; diff --git a/tests/cpp-tests/Classes/JNITest/JNITest.cpp b/tests/cpp-tests/Classes/JNITest/JNITest.cpp index 3d455b126a..c7391063c6 100644 --- a/tests/cpp-tests/Classes/JNITest/JNITest.cpp +++ b/tests/cpp-tests/Classes/JNITest/JNITest.cpp @@ -31,7 +31,7 @@ # include -USING_NS_CC; +USING_NS_AX; JNITests::JNITests() { diff --git a/tests/cpp-tests/Classes/LabelTest/LabelTestNew.cpp b/tests/cpp-tests/Classes/LabelTest/LabelTestNew.cpp index f1de540f0e..b484b50344 100644 --- a/tests/cpp-tests/Classes/LabelTest/LabelTestNew.cpp +++ b/tests/cpp-tests/Classes/LabelTest/LabelTestNew.cpp @@ -27,7 +27,7 @@ #include "renderer/CCRenderer.h" #include "2d/CCFontAtlasCache.h" -USING_NS_CC; +USING_NS_AX; using namespace ui; using namespace extension; @@ -673,7 +673,7 @@ std::string LabelFNTMultiLineAlignment::subtitle() const return ""; } -void LabelFNTMultiLineAlignment::selectAlignmentItem(cocos2d::MenuItemFont* item) +void LabelFNTMultiLineAlignment::selectAlignmentItem(axis::MenuItemFont* item) { if (this->_lastAlignmentItem && this->_lastAlignmentItem != item) { @@ -700,7 +700,7 @@ void LabelFNTMultiLineAlignment::selectAlignmentItem(cocos2d::MenuItemFont* item } } -void LabelFNTMultiLineAlignment::selectSentenceItem(cocos2d::MenuItemFont* item) +void LabelFNTMultiLineAlignment::selectSentenceItem(axis::MenuItemFont* item) { if (this->_lastSentenceItem && this->_lastSentenceItem != item) { @@ -714,7 +714,7 @@ void LabelFNTMultiLineAlignment::selectSentenceItem(cocos2d::MenuItemFont* item) this->_label->setString(str); } -std::string LabelFNTMultiLineAlignment::getItemString(cocos2d::MenuItemFont* item) +std::string LabelFNTMultiLineAlignment::getItemString(axis::MenuItemFont* item) { std::string str; @@ -737,7 +737,7 @@ std::string LabelFNTMultiLineAlignment::getItemString(cocos2d::MenuItemFont* ite return str; } -void LabelFNTMultiLineAlignment::stringChanged(cocos2d::Ref* sender) +void LabelFNTMultiLineAlignment::stringChanged(axis::Ref* sender) { auto item = (MenuItemFont*)sender; @@ -746,7 +746,7 @@ void LabelFNTMultiLineAlignment::stringChanged(cocos2d::Ref* sender) this->snapArrowsToEdge(); } -void LabelFNTMultiLineAlignment::alignmentChanged(cocos2d::Ref* sender) +void LabelFNTMultiLineAlignment::alignmentChanged(axis::Ref* sender) { auto item = static_cast(sender); @@ -755,7 +755,7 @@ void LabelFNTMultiLineAlignment::alignmentChanged(cocos2d::Ref* sender) this->snapArrowsToEdge(); } -void LabelFNTMultiLineAlignment::onTouchesBegan(const std::vector& touches, cocos2d::Event* event) +void LabelFNTMultiLineAlignment::onTouchesBegan(const std::vector& touches, axis::Event* event) { auto touch = touches[0]; auto location = touch->getLocationInView(); @@ -767,7 +767,7 @@ void LabelFNTMultiLineAlignment::onTouchesBegan(const std::vector& touch } } -void LabelFNTMultiLineAlignment::onTouchesEnded(const std::vector& touches, cocos2d::Event* event) +void LabelFNTMultiLineAlignment::onTouchesEnded(const std::vector& touches, axis::Event* event) { _drag = false; this->snapArrowsToEdge(); @@ -775,7 +775,7 @@ void LabelFNTMultiLineAlignment::onTouchesEnded(const std::vector& touch this->_arrowsBar->setVisible(false); } -void LabelFNTMultiLineAlignment::onTouchesMoved(const std::vector& touches, cocos2d::Event* event) +void LabelFNTMultiLineAlignment::onTouchesMoved(const std::vector& touches, axis::Event* event) { if (!_drag) { @@ -835,7 +835,7 @@ std::string LabelFNTMultiLineAlignmentUNICODE::subtitle() const return ""; } -std::string LabelFNTMultiLineAlignmentUNICODE::getItemString(cocos2d::MenuItemFont* item) +std::string LabelFNTMultiLineAlignmentUNICODE::getItemString(axis::MenuItemFont* item) { std::string str; @@ -1208,8 +1208,8 @@ LabelTTFEmoji::LabelTTFEmoji() auto label = Label::createWithTTF(emojiString, "fonts/NotoEmoji-Regular.ttf", 23); label->setPosition(winSize.width / 2, winSize.height / 2); label->setDimensions(winSize.width, winSize.height); - label->setVerticalAlignment(cocos2d::TextVAlignment::CENTER); - label->setHorizontalAlignment(cocos2d::TextHAlignment::CENTER); + label->setVerticalAlignment(axis::TextVAlignment::CENTER); + label->setHorizontalAlignment(axis::TextHAlignment::CENTER); addChild(label); } @@ -2261,7 +2261,7 @@ LabelLayoutBaseTest::LabelLayoutBaseTest() this->initSliders(size); } -void LabelLayoutBaseTest::initFontSizeChange(const cocos2d::Size& size) +void LabelLayoutBaseTest::initFontSizeChange(const axis::Size& size) { auto fontSizeLabel = Label::createWithSystemFont("font size:20", "Arial", 10); fontSizeLabel->setName("fontSize"); @@ -2281,7 +2281,7 @@ void LabelLayoutBaseTest::initFontSizeChange(const cocos2d::Size& size) this->addChild(fontSizeLabel); } -void LabelLayoutBaseTest::initWrapOption(const cocos2d::Size& size) +void LabelLayoutBaseTest::initWrapOption(const axis::Size& size) { auto label = Label::createWithSystemFont("Enable Wrap:", "Arial", 10); label->setColor(Color3B::WHITE); @@ -2310,7 +2310,7 @@ void LabelLayoutBaseTest::initWrapOption(const cocos2d::Size& size) this->addChild(checkBox); } -void LabelLayoutBaseTest::initToggleLabelTypeOption(const cocos2d::Size& size) +void LabelLayoutBaseTest::initToggleLabelTypeOption(const axis::Size& size) { auto label = Label::createWithSystemFont("Toggle Label Type:", "Arial", 10); label->setColor(Color3B::WHITE); @@ -2347,7 +2347,7 @@ void LabelLayoutBaseTest::initToggleLabelTypeOption(const cocos2d::Size& size) this->addChild(checkBox); } -void LabelLayoutBaseTest::initAlignmentOption(const cocos2d::Size& size) +void LabelLayoutBaseTest::initAlignmentOption(const axis::Size& size) { // add text alignment settings MenuItemFont::setFontSize(30); @@ -2368,7 +2368,7 @@ void LabelLayoutBaseTest::initAlignmentOption(const cocos2d::Size& size) this->addChild(menu); } -void LabelLayoutBaseTest::initSliders(const cocos2d::Size& size) +void LabelLayoutBaseTest::initSliders(const axis::Size& size) { auto slider = ui::Slider::create(); slider->setTag(1); @@ -2417,7 +2417,7 @@ void LabelLayoutBaseTest::initSliders(const cocos2d::Size& size) }); } -void LabelLayoutBaseTest::initTestLabel(const cocos2d::Size& size) +void LabelLayoutBaseTest::initTestLabel(const axis::Size& size) { auto center = VisibleRect::center(); _label = Label::createWithTTF("五六七八This is a very long sentence一二三四.", "fonts/HKYuanMini.ttf", 20); @@ -2429,7 +2429,7 @@ void LabelLayoutBaseTest::initTestLabel(const cocos2d::Size& size) _labelType = 0; } -void LabelLayoutBaseTest::initDrawNode(const cocos2d::Size& size) +void LabelLayoutBaseTest::initDrawNode(const axis::Size& size) { _drawNode = DrawNode::create(); @@ -2468,7 +2468,7 @@ void LabelLayoutBaseTest::setAlignmentBottom(Ref* sender) _label->setVerticalAlignment(TextVAlignment::BOTTOM); } -void LabelLayoutBaseTest::valueChanged(cocos2d::Ref* sender, cocos2d::extension::Control::EventType controlEvent) +void LabelLayoutBaseTest::valueChanged(axis::Ref* sender, axis::extension::Control::EventType controlEvent) { ControlStepper* pControl = (ControlStepper*)sender; // Change value of label. @@ -2501,7 +2501,7 @@ void LabelLayoutBaseTest::valueChanged(cocos2d::Ref* sender, cocos2d::extension: // CCLOG("label line height = %f", _label->getLineHeight()); } -void LabelLayoutBaseTest::updateDrawNodeSize(const cocos2d::Size& drawNodeSize) +void LabelLayoutBaseTest::updateDrawNodeSize(const axis::Size& drawNodeSize) { auto origin = Director::getInstance()->getWinSize(); auto labelSize = _label->getContentSize(); @@ -3077,7 +3077,7 @@ LabelItalics::LabelItalics() addChild(_label2a, 0, kTagBitmapAtlas2); _label2a->setPosition(Vec2(s.width / 2, s.height * 1 / 6)); - auto menuItem = MenuItemFont::create("disable italics", [&](cocos2d::Ref* sender) { + auto menuItem = MenuItemFont::create("disable italics", [&](axis::Ref* sender) { _label2a->disableEffect(LabelEffect::ITALICS); _label1a->disableEffect(LabelEffect::ITALICS); }); @@ -3129,7 +3129,7 @@ LabelBold::LabelBold() addChild(_label2a, 0, kTagBitmapAtlas2); _label2a->setPosition(Vec2(s.width / 2, s.height * 1 / 6)); - auto menuItem = MenuItemFont::create("disable bold", [&](cocos2d::Ref* sender) { + auto menuItem = MenuItemFont::create("disable bold", [&](axis::Ref* sender) { _label2a->disableEffect(LabelEffect::BOLD); _label1a->disableEffect(LabelEffect::BOLD); }); @@ -3181,7 +3181,7 @@ LabelUnderline::LabelUnderline() addChild(_label2a, 0, kTagBitmapAtlas2); _label2a->setPosition(Vec2(s.width / 2, s.height * 1 / 6)); - auto menuItem = MenuItemFont::create("disable underline", [&](cocos2d::Ref* sender) { + auto menuItem = MenuItemFont::create("disable underline", [&](axis::Ref* sender) { _label2a->disableEffect(LabelEffect::UNDERLINE); _label1a->disableEffect(LabelEffect::UNDERLINE); }); @@ -3223,7 +3223,7 @@ LabelUnderlineMultiline::LabelUnderlineMultiline() addChild(_label2a, 0, kTagBitmapAtlas2); _label2a->setPosition(Vec2(s.width / 2, s.height * 1 / 3)); - auto menuItem = MenuItemFont::create("disable underline", [&](cocos2d::Ref* sender) { + auto menuItem = MenuItemFont::create("disable underline", [&](axis::Ref* sender) { _label2a->disableEffect(LabelEffect::UNDERLINE); _label1a->disableEffect(LabelEffect::UNDERLINE); }); @@ -3265,7 +3265,7 @@ LabelStrikethrough::LabelStrikethrough() addChild(_label2a, 0, kTagBitmapAtlas2); _label2a->setPosition(Vec2(s.width / 2, s.height * 1 / 3)); - auto menuItem = MenuItemFont::create("disable underline", [&](cocos2d::Ref* sender) { + auto menuItem = MenuItemFont::create("disable underline", [&](axis::Ref* sender) { _label2a->disableEffect(LabelEffect::STRIKETHROUGH); _label1a->disableEffect(LabelEffect::STRIKETHROUGH); }); @@ -3403,14 +3403,14 @@ LabelIssue15214::LabelIssue15214() // 1 Label* label = Label::createWithTTF("TTF with setColor()", "fonts/arial.ttf", 24.0f); label->enableUnderline(); - label->setColor(cocos2d::Color3B::BLUE); + label->setColor(axis::Color3B::BLUE); label->setPosition(size.width / 2, size.height / 5 * 4); this->addChild(label); // 2 Label* label2 = Label::createWithSystemFont("System with setColor()", "Verdana", 24.0f); label2->enableUnderline(); - label2->setColor(cocos2d::Color3B::BLUE); + label2->setColor(axis::Color3B::BLUE); label2->setPosition(size.width / 2, size.height / 5 * 3); this->addChild(label2); @@ -3597,7 +3597,7 @@ LabelIssue20523::LabelIssue20523() auto size = Director::getInstance()->getWinSize(); auto _crashingLabel = Label::createWithTTF("0", "fonts/Marker Felt.ttf", 120); _crashingLabel->setPosition(Vec2(size.width / 2, size.height / 2)); - _crashingLabel->setColor(cocos2d::Color3B(200, 200, 200)); + _crashingLabel->setColor(axis::Color3B(200, 200, 200)); addChild(_crashingLabel, 1); //_crashingLabel->setWidth(size.width); @@ -3646,7 +3646,7 @@ std::string LabelLetterColorsTest::subtitle() const return "Should not crash!"; } -void LabelLetterColorsTest::setLetterColors(cocos2d::Label* label, const cocos2d::Color3B& color) +void LabelLetterColorsTest::setLetterColors(axis::Label* label, const axis::Color3B& color) { int n = label->getStringLength(); for (int i = 0; i < n; ++i) diff --git a/tests/cpp-tests/Classes/LabelTest/LabelTestNew.h b/tests/cpp-tests/Classes/LabelTest/LabelTestNew.h index 7de37d509c..517205bb35 100644 --- a/tests/cpp-tests/Classes/LabelTest/LabelTestNew.h +++ b/tests/cpp-tests/Classes/LabelTest/LabelTestNew.h @@ -170,22 +170,22 @@ public: void snapArrowsToEdge(); virtual std::string title() const override; virtual std::string subtitle() const override; - void stringChanged(cocos2d::Ref* sender); - void alignmentChanged(cocos2d::Ref* sender); - void onTouchesBegan(const std::vector& touches, cocos2d::Event* event); - void onTouchesEnded(const std::vector& touches, cocos2d::Event* event); - void onTouchesMoved(const std::vector& touches, cocos2d::Event* event); - void selectAlignmentItem(cocos2d::MenuItemFont* item); - void selectSentenceItem(cocos2d::MenuItemFont* item); - virtual std::string getItemString(cocos2d::MenuItemFont* item); + void stringChanged(axis::Ref* sender); + void alignmentChanged(axis::Ref* sender); + void onTouchesBegan(const std::vector& touches, axis::Event* event); + void onTouchesEnded(const std::vector& touches, axis::Event* event); + void onTouchesMoved(const std::vector& touches, axis::Event* event); + void selectAlignmentItem(axis::MenuItemFont* item); + void selectSentenceItem(axis::MenuItemFont* item); + virtual std::string getItemString(axis::MenuItemFont* item); protected: - cocos2d::Label* _label = nullptr; - cocos2d::Sprite* _arrowsBar = nullptr; - cocos2d::Sprite* _arrows = nullptr; - std::vector _menuItems; - cocos2d::MenuItemFont* _lastSentenceItem = nullptr; - cocos2d::MenuItemFont* _lastAlignmentItem = nullptr; + axis::Label* _label = nullptr; + axis::Sprite* _arrowsBar = nullptr; + axis::Sprite* _arrows = nullptr; + std::vector _menuItems; + axis::MenuItemFont* _lastSentenceItem = nullptr; + axis::MenuItemFont* _lastAlignmentItem = nullptr; bool _drag = false; }; @@ -198,7 +198,7 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; - virtual std::string getItemString(cocos2d::MenuItemFont* item) override; + virtual std::string getItemString(axis::MenuItemFont* item) override; }; class LabelFNTUNICODELanguages : public AtlasDemoNew @@ -286,13 +286,13 @@ public: virtual std::string subtitle() const override; private: - void setAlignmentLeft(cocos2d::Ref* sender); - void setAlignmentCenter(cocos2d::Ref* sender); - void setAlignmentRight(cocos2d::Ref* sender); + void setAlignmentLeft(axis::Ref* sender); + void setAlignmentCenter(axis::Ref* sender); + void setAlignmentRight(axis::Ref* sender); void updateAlignment(); - cocos2d::Label* _label; - cocos2d::TextHAlignment _horizAlign; + axis::Label* _label; + axis::TextHAlignment _horizAlign; }; class LabelTTFEmoji : public AtlasDemoNew @@ -374,13 +374,13 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; - void sliderEvent(cocos2d::Ref* sender, cocos2d::ui::Slider::EventType type); + void sliderEvent(axis::Ref* sender, axis::ui::Slider::EventType type); private: - cocos2d::Label* shadowLabelOutline; - cocos2d::Label* shadowLabelTTF; - cocos2d::Label* shadowLabelGrow; - cocos2d::Label* shadowLabelBMFont; + axis::Label* shadowLabelOutline; + axis::Label* shadowLabelTTF; + axis::Label* shadowLabelGrow; + axis::Label* shadowLabelBMFont; }; class LabelCharMapTest : public AtlasDemoNew @@ -459,14 +459,14 @@ public: virtual std::string subtitle() const override; private: - void setAlignmentLeft(cocos2d::Ref* sender); - void setAlignmentCenter(cocos2d::Ref* sender); - void setAlignmentRight(cocos2d::Ref* sender); - void setAlignmentTop(cocos2d::Ref* sender); - void setAlignmentMiddle(cocos2d::Ref* sender); - void setAlignmentBottom(cocos2d::Ref* sender); + void setAlignmentLeft(axis::Ref* sender); + void setAlignmentCenter(axis::Ref* sender); + void setAlignmentRight(axis::Ref* sender); + void setAlignmentTop(axis::Ref* sender); + void setAlignmentMiddle(axis::Ref* sender); + void setAlignmentBottom(axis::Ref* sender); - cocos2d::Label* _label; + axis::Label* _label; }; class LabelIssue4428Test : public AtlasDemoNew @@ -501,10 +501,10 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; - void sliderEvent(cocos2d::Ref* sender, cocos2d::ui::Slider::EventType type); + void sliderEvent(axis::Ref* sender, axis::ui::Slider::EventType type); private: - cocos2d::Label* label; + axis::Label* label; }; class LabelAdditionalKerningTest : public AtlasDemoNew @@ -517,10 +517,10 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; - void sliderEvent(cocos2d::Ref* sender, cocos2d::ui::Slider::EventType type); + void sliderEvent(axis::Ref* sender, axis::ui::Slider::EventType type); private: - cocos2d::Label* label; + axis::Label* label; }; class LabelIssue8492Test : public AtlasDemoNew @@ -704,27 +704,27 @@ class LabelLayoutBaseTest : public AtlasDemoNew { public: LabelLayoutBaseTest(); - void updateDrawNodeSize(const cocos2d::Size& drawNodeSize); - cocos2d::extension::ControlStepper* makeControlStepper(); - void valueChanged(cocos2d::Ref* sender, cocos2d::extension::Control::EventType controlEvent); + void updateDrawNodeSize(const axis::Size& drawNodeSize); + axis::extension::ControlStepper* makeControlStepper(); + void valueChanged(axis::Ref* sender, axis::extension::Control::EventType controlEvent); protected: - void setAlignmentLeft(cocos2d::Ref* sender); - void setAlignmentCenter(cocos2d::Ref* sender); - void setAlignmentRight(cocos2d::Ref* sender); - void setAlignmentTop(cocos2d::Ref* sender); - void setAlignmentMiddle(cocos2d::Ref* sender); - void setAlignmentBottom(cocos2d::Ref* sender); + void setAlignmentLeft(axis::Ref* sender); + void setAlignmentCenter(axis::Ref* sender); + void setAlignmentRight(axis::Ref* sender); + void setAlignmentTop(axis::Ref* sender); + void setAlignmentMiddle(axis::Ref* sender); + void setAlignmentBottom(axis::Ref* sender); - void initWrapOption(const cocos2d::Size& size); - void initToggleLabelTypeOption(const cocos2d::Size& size); - void initAlignmentOption(const cocos2d::Size& size); - void initFontSizeChange(const cocos2d::Size& size); - void initSliders(const cocos2d::Size& size); - void initTestLabel(const cocos2d::Size& size); - void initDrawNode(const cocos2d::Size& size); - cocos2d::DrawNode* _drawNode; - cocos2d::Label* _label; + void initWrapOption(const axis::Size& size); + void initToggleLabelTypeOption(const axis::Size& size); + void initAlignmentOption(const axis::Size& size); + void initFontSizeChange(const axis::Size& size); + void initSliders(const axis::Size& size); + void initTestLabel(const axis::Size& size); + void initDrawNode(const axis::Size& size); + axis::DrawNode* _drawNode; + axis::Label* _label; int _labelType; }; @@ -801,7 +801,7 @@ public: LabelToggleTypeTest(); void initToggleCheckboxes(); - void onChangedRadioButtonSelect(cocos2d::ui::RadioButton* radioButton, cocos2d::ui::RadioButton::EventType type); + void onChangedRadioButtonSelect(axis::ui::RadioButton* radioButton, axis::ui::RadioButton::EventType type); virtual std::string title() const override; virtual std::string subtitle() const override; @@ -814,7 +814,7 @@ public: LabelSystemFontTest(); void initToggleCheckboxes(); - void onChangedRadioButtonSelect(cocos2d::ui::RadioButton* radioButton, cocos2d::ui::RadioButton::EventType type); + void onChangedRadioButtonSelect(axis::ui::RadioButton* radioButton, axis::ui::RadioButton::EventType type); virtual std::string title() const override; virtual std::string subtitle() const override; @@ -861,8 +861,8 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; - cocos2d::Label* _label1a; - cocos2d::Label* _label2a; + axis::Label* _label1a; + axis::Label* _label2a; }; class LabelBold : public AtlasDemoNew @@ -874,8 +874,8 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; - cocos2d::Label* _label1a; - cocos2d::Label* _label2a; + axis::Label* _label1a; + axis::Label* _label2a; }; class LabelUnderline : public AtlasDemoNew @@ -887,8 +887,8 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; - cocos2d::Label* _label1a; - cocos2d::Label* _label2a; + axis::Label* _label1a; + axis::Label* _label2a; }; class LabelUnderlineMultiline : public AtlasDemoNew @@ -900,8 +900,8 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; - cocos2d::Label* _label1a; - cocos2d::Label* _label2a; + axis::Label* _label1a; + axis::Label* _label2a; }; class LabelStrikethrough : public AtlasDemoNew @@ -913,8 +913,8 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; - cocos2d::Label* _label1a; - cocos2d::Label* _label2a; + axis::Label* _label1a; + axis::Label* _label2a; }; class LabelLocalizationTest : public AtlasDemoNew @@ -923,13 +923,13 @@ public: CREATE_FUNC(LabelLocalizationTest); LabelLocalizationTest(); - void onChangedRadioButtonSelect(cocos2d::ui::RadioButton* radioButton, cocos2d::ui::RadioButton::EventType type); + void onChangedRadioButtonSelect(axis::ui::RadioButton* radioButton, axis::ui::RadioButton::EventType type); virtual std::string title() const override; virtual std::string subtitle() const override; - cocos2d::Label* _label1; - cocos2d::Label* _label2; + axis::Label* _label1; + axis::Label* _label2; cocostudio::ILocalizationManager* _localizationJson; cocostudio::ILocalizationManager* _localizationBin; }; @@ -1027,7 +1027,7 @@ public: virtual std::string subtitle() const override; private: - static void setLetterColors(cocos2d::Label* label, const cocos2d::Color3B& color); + static void setLetterColors(axis::Label* label, const axis::Color3B& color); }; #endif diff --git a/tests/cpp-tests/Classes/LayerTest/LayerTest.cpp b/tests/cpp-tests/Classes/LayerTest/LayerTest.cpp index 7d3b229dfe..9204a3e344 100644 --- a/tests/cpp-tests/Classes/LayerTest/LayerTest.cpp +++ b/tests/cpp-tests/Classes/LayerTest/LayerTest.cpp @@ -26,7 +26,7 @@ #include "../testResource.h" #include "../core/ui/UIText.h" -USING_NS_CC; +USING_NS_AX; enum { @@ -855,7 +855,7 @@ void LayerRadialGradientTest::onEnter() addChild(listview); } -cocos2d::ui::Slider* LayerRadialGradientTest::createSlider() +axis::ui::Slider* LayerRadialGradientTest::createSlider() { auto slider = ui::Slider::create(); slider->setTouchEnabled(true); @@ -870,18 +870,18 @@ cocos2d::ui::Slider* LayerRadialGradientTest::createSlider() return slider; } -void LayerRadialGradientTest::listviewCallback(cocos2d::Ref* sender, cocos2d::ui::ListView::EventType type) +void LayerRadialGradientTest::listviewCallback(axis::Ref* sender, axis::ui::ListView::EventType type) { // clear all text to white - auto listview = static_cast(sender); + auto listview = static_cast(sender); for (auto& item : listview->getItems()) - static_cast(item)->setColor(cocos2d::Color3B::WHITE); + static_cast(item)->setColor(axis::Color3B::WHITE); _currentSeletedItemIndex = (int)listview->getCurSelectedIndex(); - listview->getItem(_currentSeletedItemIndex)->setColor(cocos2d::Color3B::RED); + listview->getItem(_currentSeletedItemIndex)->setColor(axis::Color3B::RED); int percent = 100; - auto slider = static_cast(getChildByTag(101)); + auto slider = static_cast(getChildByTag(101)); switch (_currentSeletedItemIndex) { case 0: @@ -910,9 +910,9 @@ void LayerRadialGradientTest::listviewCallback(cocos2d::Ref* sender, cocos2d::ui } } -void LayerRadialGradientTest::sliderCallback(cocos2d::Ref* sender, cocos2d::ui::Slider::EventType type) +void LayerRadialGradientTest::sliderCallback(axis::Ref* sender, axis::ui::Slider::EventType type) { - auto slider = static_cast(sender); + auto slider = static_cast(sender); float percent = slider->getPercent() / 100.f; switch (_currentSeletedItemIndex) { @@ -946,32 +946,32 @@ void LayerRadialGradientTest::sliderCallback(cocos2d::Ref* sender, cocos2d::ui:: } } -cocos2d::ui::ListView* LayerRadialGradientTest::createListView() +axis::ui::ListView* LayerRadialGradientTest::createListView() { - auto listview = cocos2d::ui::ListView::create(); + auto listview = axis::ui::ListView::create(); - auto scale = cocos2d::ui::Text::create(); + auto scale = axis::ui::Text::create(); scale->setString("scale[0-2]"); - scale->setColor(cocos2d::Color3B::RED); // default seleted item + scale->setColor(axis::Color3B::RED); // default seleted item scale->setTouchEnabled(true); listview->pushBackCustomItem(scale); - auto skewx = cocos2d::ui::Text::create(); + auto skewx = axis::ui::Text::create(); skewx->setString("skewx[0-90]"); skewx->setTouchEnabled(true); listview->pushBackCustomItem(skewx); - auto skewy = cocos2d::ui::Text::create(); + auto skewy = axis::ui::Text::create(); skewy->setString("skewy[0-90]"); skewy->setTouchEnabled(true); listview->pushBackCustomItem(skewy); - auto expand = cocos2d::ui::Text::create(); + auto expand = axis::ui::Text::create(); expand->setString("expand[0-1]"); expand->setTouchEnabled(true); listview->pushBackCustomItem(expand); - auto radius = cocos2d::ui::Text::create(); + auto radius = axis::ui::Text::create(); radius->setString("radius[0-300]"); radius->setTouchEnabled(true); listview->pushBackCustomItem(radius); diff --git a/tests/cpp-tests/Classes/LayerTest/LayerTest.h b/tests/cpp-tests/Classes/LayerTest/LayerTest.h index a010b26737..4ca1d97cf6 100644 --- a/tests/cpp-tests/Classes/LayerTest/LayerTest.h +++ b/tests/cpp-tests/Classes/LayerTest/LayerTest.h @@ -96,11 +96,11 @@ public: virtual void onEnter() override; virtual std::string subtitle() const override; - void updateSize(cocos2d::Vec2& touchLocation); + void updateSize(axis::Vec2& touchLocation); - void onTouchesBegan(const std::vector& touches, cocos2d::Event* event); - void onTouchesMoved(const std::vector& touches, cocos2d::Event* event); - void onTouchesEnded(const std::vector& touches, cocos2d::Event* event); + void onTouchesBegan(const std::vector& touches, axis::Event* event); + void onTouchesMoved(const std::vector& touches, axis::Event* event); + void onTouchesEnded(const std::vector& touches, axis::Event* event); }; class LayerTest2 : public LayerTest @@ -126,10 +126,10 @@ class LayerGradientTest : public LayerTest public: CREATE_FUNC(LayerGradientTest); LayerGradientTest(); - void onTouchesMoved(const std::vector& touches, cocos2d::Event* event); + void onTouchesMoved(const std::vector& touches, axis::Event* event); virtual std::string title() const override; virtual std::string subtitle() const override; - void toggleItem(cocos2d::Ref* sender); + void toggleItem(axis::Ref* sender); }; class LayerGradientTest2 : public LayerTest @@ -146,7 +146,7 @@ class LayerIgnoreAnchorPointPos : public LayerTest public: CREATE_FUNC(LayerIgnoreAnchorPointPos); virtual void onEnter() override; - void onToggle(cocos2d::Ref* pObject); + void onToggle(axis::Ref* pObject); virtual std::string title() const override; virtual std::string subtitle() const override; }; @@ -156,7 +156,7 @@ class LayerIgnoreAnchorPointRot : public LayerTest public: CREATE_FUNC(LayerIgnoreAnchorPointRot); virtual void onEnter() override; - void onToggle(cocos2d::Ref* pObject); + void onToggle(axis::Ref* pObject); virtual std::string title() const override; virtual std::string subtitle() const override; }; @@ -166,7 +166,7 @@ class LayerIgnoreAnchorPointScale : public LayerTest public: CREATE_FUNC(LayerIgnoreAnchorPointScale); virtual void onEnter() override; - void onToggle(cocos2d::Ref* pObject); + void onToggle(axis::Ref* pObject); virtual std::string title() const override; virtual std::string subtitle() const override; }; @@ -191,7 +191,7 @@ public: void step(float dt); private: - cocos2d::LayerColor* _layer[3]; + axis::LayerColor* _layer[3]; }; class LayerBug3162B : public LayerTest @@ -205,7 +205,7 @@ public: void step(float dt); private: - cocos2d::LayerColor* _layer[3]; + axis::LayerColor* _layer[3]; }; class LayerColorOccludeBug : public LayerTest @@ -218,7 +218,7 @@ public: virtual std::string subtitle() const override; private: - cocos2d::LayerColor* _layer; + axis::LayerColor* _layer; }; class LayerRadialGradientTest : public LayerTest @@ -228,14 +228,14 @@ public: virtual void onEnter() override; virtual std::string title() const override; - void sliderCallback(cocos2d::Ref* sender, cocos2d::ui::Slider::EventType type); - void listviewCallback(cocos2d::Ref* sender, cocos2d::ui::ListView::EventType type); + void sliderCallback(axis::Ref* sender, axis::ui::Slider::EventType type); + void listviewCallback(axis::Ref* sender, axis::ui::ListView::EventType type); private: - cocos2d::ui::Slider* createSlider(); - cocos2d::ui::ListView* createListView(); + axis::ui::Slider* createSlider(); + axis::ui::ListView* createListView(); - cocos2d::LayerRadialGradient* _layer; + axis::LayerRadialGradient* _layer; int _currentSeletedItemIndex; }; diff --git a/tests/cpp-tests/Classes/LightTest/LightTest.cpp b/tests/cpp-tests/Classes/LightTest/LightTest.cpp index 75e0f2fd1a..268acd7679 100644 --- a/tests/cpp-tests/Classes/LightTest/LightTest.cpp +++ b/tests/cpp-tests/Classes/LightTest/LightTest.cpp @@ -24,7 +24,7 @@ #include "LightTest.h" -USING_NS_CC; +USING_NS_AX; LightTests::LightTests() { diff --git a/tests/cpp-tests/Classes/LightTest/LightTest.h b/tests/cpp-tests/Classes/LightTest/LightTest.h index 62c033e55f..3fe4699557 100644 --- a/tests/cpp-tests/Classes/LightTest/LightTest.h +++ b/tests/cpp-tests/Classes/LightTest/LightTest.h @@ -41,22 +41,22 @@ public: virtual void update(float delta) override; - void SwitchLight(cocos2d::Ref* sender, cocos2d::LightType lightType); + void SwitchLight(axis::Ref* sender, axis::LightType lightType); private: void addSprite(); void addLights(); private: - cocos2d::AmbientLight* _ambientLight; - cocos2d::DirectionLight* _directionalLight; - cocos2d::PointLight* _pointLight; - cocos2d::SpotLight* _spotLight; + axis::AmbientLight* _ambientLight; + axis::DirectionLight* _directionalLight; + axis::PointLight* _pointLight; + axis::SpotLight* _spotLight; - cocos2d::Label* _ambientLightLabel; - cocos2d::Label* _directionalLightLabel; - cocos2d::Label* _pointLightLabel; - cocos2d::Label* _spotLightLabel; + axis::Label* _ambientLightLabel; + axis::Label* _directionalLightLabel; + axis::Label* _pointLightLabel; + axis::Label* _spotLightLabel; }; #endif diff --git a/tests/cpp-tests/Classes/MaterialSystemTest/MaterialSystemTest.cpp b/tests/cpp-tests/Classes/MaterialSystemTest/MaterialSystemTest.cpp index 266818faff..57b8685a44 100644 --- a/tests/cpp-tests/Classes/MaterialSystemTest/MaterialSystemTest.cpp +++ b/tests/cpp-tests/Classes/MaterialSystemTest/MaterialSystemTest.cpp @@ -33,7 +33,7 @@ #include "cocos2d.h" #include "ui/CocosGUI.h" -USING_NS_CC; +USING_NS_AX; static void printProperties(Properties* properties, int indent); diff --git a/tests/cpp-tests/Classes/MaterialSystemTest/MaterialSystemTest.h b/tests/cpp-tests/Classes/MaterialSystemTest/MaterialSystemTest.h index 89947def3d..41b228aa56 100644 --- a/tests/cpp-tests/Classes/MaterialSystemTest/MaterialSystemTest.h +++ b/tests/cpp-tests/Classes/MaterialSystemTest/MaterialSystemTest.h @@ -69,12 +69,12 @@ public: private: struct Locations { - Locations(cocos2d::backend::ProgramState* ps, cocos2d::backend::UniformLocation loc) + Locations(axis::backend::ProgramState* ps, axis::backend::UniformLocation loc) : programState(ps), location(loc) {} - cocos2d::backend::ProgramState* programState = nullptr; - cocos2d::backend::UniformLocation location; + axis::backend::ProgramState* programState = nullptr; + axis::backend::UniformLocation location; }; std::vector timeUniforms; }; @@ -94,9 +94,9 @@ public: void updateUniformTime(float); private: - cocos2d::backend::UniformLocation _locationTime; + axis::backend::UniformLocation _locationTime; EffectAutoBindingResolver* _resolver = nullptr; - cocos2d::backend::ProgramState* _noiseProgramState = nullptr; + axis::backend::ProgramState* _noiseProgramState = nullptr; }; class Material_setTechnique : public MaterialSystemBaseTest @@ -110,7 +110,7 @@ public: private: void changeMaterial(float dt); - cocos2d::MeshRenderer* _mesh; + axis::MeshRenderer* _mesh; int _techniqueState; }; diff --git a/tests/cpp-tests/Classes/MenuTest/MenuTest.cpp b/tests/cpp-tests/Classes/MenuTest/MenuTest.cpp index 74b3bfdd3b..06b20683d5 100644 --- a/tests/cpp-tests/Classes/MenuTest/MenuTest.cpp +++ b/tests/cpp-tests/Classes/MenuTest/MenuTest.cpp @@ -27,7 +27,7 @@ #include "MenuTest.h" #include "../testResource.h" -USING_NS_CC; +USING_NS_AX; enum { @@ -478,7 +478,7 @@ void BugsTest::issue1410MenuCallback(Ref* sender) log("NO CRASHES"); } -void BugsTest::issue1410v2MenuCallback(cocos2d::Ref* pSender) +void BugsTest::issue1410v2MenuCallback(axis::Ref* pSender) { auto menu = static_cast(static_cast(pSender)->getParent()); menu->setEnabled(true); @@ -487,7 +487,7 @@ void BugsTest::issue1410v2MenuCallback(cocos2d::Ref* pSender) log("NO CRASHES. AND MENU SHOULD STOP WORKING"); } -void BugsTest::backMenuCallback(cocos2d::Ref* pSender) +void BugsTest::backMenuCallback(axis::Ref* pSender) { static_cast(_parent)->switchTo(0, false); } diff --git a/tests/cpp-tests/Classes/MenuTest/MenuTest.h b/tests/cpp-tests/Classes/MenuTest/MenuTest.h index 1537334755..caba923103 100644 --- a/tests/cpp-tests/Classes/MenuTest/MenuTest.h +++ b/tests/cpp-tests/Classes/MenuTest/MenuTest.h @@ -40,39 +40,39 @@ public: virtual bool init() override; }; -class MenuLayerMainMenu : public cocos2d::Layer +class MenuLayerMainMenu : public axis::Layer { protected: - cocos2d::MenuItem* _disabledItem; - cocos2d::EventListenerTouchOneByOne* _touchListener; + axis::MenuItem* _disabledItem; + axis::EventListenerTouchOneByOne* _touchListener; public: MenuLayerMainMenu(); ~MenuLayerMainMenu(); public: - bool touchBegan(cocos2d::Touch* touch, cocos2d::Event* event); - void touchEnded(cocos2d::Touch* touch, cocos2d::Event* event); - void touchCancelled(cocos2d::Touch* touch, cocos2d::Event* event); - void touchMoved(cocos2d::Touch* touch, cocos2d::Event* event); + bool touchBegan(axis::Touch* touch, axis::Event* event); + void touchEnded(axis::Touch* touch, axis::Event* event); + void touchCancelled(axis::Touch* touch, axis::Event* event); + void touchMoved(axis::Touch* touch, axis::Event* event); void allowTouches(float dt); - void menuCallback(cocos2d::Ref* sender); - void menuCallbackConfig(cocos2d::Ref* sender); - void menuCallbackDisabled(cocos2d::Ref* sender); - void menuCallback2(cocos2d::Ref* sender); - void menuCallbackPriorityTest(cocos2d::Ref* sender); - void menuCallbackBugsTest(cocos2d::Ref* pSender); - void onQuit(cocos2d::Ref* sender); - void menuMovingCallback(cocos2d::Ref* pSender); + void menuCallback(axis::Ref* sender); + void menuCallbackConfig(axis::Ref* sender); + void menuCallbackDisabled(axis::Ref* sender); + void menuCallback2(axis::Ref* sender); + void menuCallbackPriorityTest(axis::Ref* sender); + void menuCallbackBugsTest(axis::Ref* pSender); + void onQuit(axis::Ref* sender); + void menuMovingCallback(axis::Ref* pSender); // CREATE_NODE(MenuLayer1); }; -class MenuLayer2 : public cocos2d::Layer +class MenuLayer2 : public axis::Layer { protected: - cocos2d::Vec2 _centeredMenu; + axis::Vec2 _centeredMenu; bool _alignedH; void alignMenusH(); @@ -82,56 +82,56 @@ public: MenuLayer2(); ~MenuLayer2(); - void menuCallback(cocos2d::Ref* sender); - void menuCallbackOpacity(cocos2d::Ref* sender); - void menuCallbackAlign(cocos2d::Ref* sender); + void menuCallback(axis::Ref* sender); + void menuCallbackOpacity(axis::Ref* sender); + void menuCallbackAlign(axis::Ref* sender); // CREATE_NODE(MenuLayer2); }; -class MenuLayer3 : public cocos2d::Layer +class MenuLayer3 : public axis::Layer { protected: - cocos2d::MenuItem* _disabledItem; + axis::MenuItem* _disabledItem; public: MenuLayer3(); ~MenuLayer3(); }; -class MenuLayer4 : public cocos2d::Layer +class MenuLayer4 : public axis::Layer { public: MenuLayer4(); ~MenuLayer4(); - void menuCallback(cocos2d::Ref* sender); - void backCallback(cocos2d::Ref* sender); + void menuCallback(axis::Ref* sender); + void backCallback(axis::Ref* sender); }; -class BugsTest : public cocos2d::Layer +class BugsTest : public axis::Layer { public: BugsTest(); - void issue1410MenuCallback(cocos2d::Ref* pSender); - void issue1410v2MenuCallback(cocos2d::Ref* pSender); - void backMenuCallback(cocos2d::Ref* pSender); + void issue1410MenuCallback(axis::Ref* pSender); + void issue1410v2MenuCallback(axis::Ref* pSender); + void backMenuCallback(axis::Ref* pSender); }; -class RemoveMenuItemWhenMove : public cocos2d::Layer +class RemoveMenuItemWhenMove : public axis::Layer { public: RemoveMenuItemWhenMove(); ~RemoveMenuItemWhenMove(); - bool onTouchBegan(cocos2d::Touch* touch, cocos2d::Event* event); - void onTouchMoved(cocos2d::Touch* touch, cocos2d::Event* event); + bool onTouchBegan(axis::Touch* touch, axis::Event* event); + void onTouchMoved(axis::Touch* touch, axis::Event* event); - void goBack(cocos2d::Ref* pSender); + void goBack(axis::Ref* pSender); private: - cocos2d::MenuItemFont* item; - cocos2d::EventListenerTouchOneByOne* _touchListener; + axis::MenuItemFont* item; + axis::EventListenerTouchOneByOne* _touchListener; }; #endif diff --git a/tests/cpp-tests/Classes/MeshRendererTest/DrawNode3D.cpp b/tests/cpp-tests/Classes/MeshRendererTest/DrawNode3D.cpp index b00fa71a17..8a4964a36f 100644 --- a/tests/cpp-tests/Classes/MeshRendererTest/DrawNode3D.cpp +++ b/tests/cpp-tests/Classes/MeshRendererTest/DrawNode3D.cpp @@ -25,7 +25,7 @@ #include "DrawNode3D.h" #include "renderer/backend/Buffer.h" -NS_CC_BEGIN +NS_AX_BEGIN DrawNode3D::DrawNode3D() { @@ -140,7 +140,7 @@ void DrawNode3D::draw(Renderer* renderer, const Mat4& transform, uint32_t flags) } } -void DrawNode3D::updateCommand(cocos2d::Renderer* renderer, const Mat4& transform, uint32_t flags) +void DrawNode3D::updateCommand(axis::Renderer* renderer, const Mat4& transform, uint32_t flags) { auto& matrixP = Director::getInstance()->getMatrix(MATRIX_STACK_TYPE::MATRIX_STACK_PROJECTION); auto mvp = matrixP * transform; @@ -223,4 +223,4 @@ void DrawNode3D::onAfterDraw() renderer->setDepthTest(_rendererDepthTestEnabled); } -NS_CC_END +NS_AX_END diff --git a/tests/cpp-tests/Classes/MeshRendererTest/DrawNode3D.h b/tests/cpp-tests/Classes/MeshRendererTest/DrawNode3D.h index bbee7e28d4..df9e7c5102 100644 --- a/tests/cpp-tests/Classes/MeshRendererTest/DrawNode3D.h +++ b/tests/cpp-tests/Classes/MeshRendererTest/DrawNode3D.h @@ -28,21 +28,21 @@ #include "cocos2d.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * Copy DrawNode for 3D geometry drawing. */ -class DrawNode3D : public cocos2d::Node +class DrawNode3D : public axis::Node { public: /** creates and initialize a DrawNode3D node */ - static cocos2d::DrawNode3D* create(); + static axis::DrawNode3D* create(); /** * Draw 3D Line */ - void drawLine(const cocos2d::Vec3& from, const cocos2d::Vec3& to, const Color4F& color); + void drawLine(const axis::Vec3& from, const axis::Vec3& to, const Color4F& color); /** * Draw 3D cube @@ -57,7 +57,7 @@ public: * vertices[7]:Left-top-back. * @param color */ - void drawCube(cocos2d::Vec3* vertices, const Color4F& color); + void drawCube(axis::Vec3* vertices, const Color4F& color); /** Clear the geometry in the node's buffer. */ void clear(); @@ -77,10 +77,10 @@ public: */ void setBlendFunc(const BlendFunc& blendFunc); - void updateCommand(cocos2d::Renderer* renderer, const cocos2d::Mat4& transform, uint32_t flags); + void updateCommand(axis::Renderer* renderer, const axis::Mat4& transform, uint32_t flags); // Overrides - virtual void draw(cocos2d::Renderer* renderer, const cocos2d::Mat4& transform, uint32_t flags) override; + virtual void draw(axis::Renderer* renderer, const axis::Mat4& transform, uint32_t flags) override; DrawNode3D(); virtual ~DrawNode3D(); @@ -92,13 +92,13 @@ protected: struct V3F_C4B { - cocos2d::Vec3 vertices; + axis::Vec3 vertices; Color4B colors; }; void ensureCapacity(int count); BlendFunc _blendFunc; - cocos2d::CustomCommand _customCommand; + axis::CustomCommand _customCommand; backend::ProgramState* _programStateLine = nullptr; backend::DepthStencilDescriptor* _depthstencilDescriptor = nullptr; backend::UniformLocation _locMVPMatrix; @@ -111,6 +111,6 @@ private: bool _rendererDepthTestEnabled = true; }; -NS_CC_END +NS_AX_END #endif // __DRAW_NODE_3D_H__ diff --git a/tests/cpp-tests/Classes/MeshRendererTest/MeshRendererTest.cpp b/tests/cpp-tests/Classes/MeshRendererTest/MeshRendererTest.cpp index 7627fd8f6f..b1e1679a84 100644 --- a/tests/cpp-tests/Classes/MeshRendererTest/MeshRendererTest.cpp +++ b/tests/cpp-tests/Classes/MeshRendererTest/MeshRendererTest.cpp @@ -35,7 +35,7 @@ #include #include "../testResource.h" -USING_NS_CC; +USING_NS_AX; MeshRendererTests::MeshRendererTests() { @@ -95,7 +95,7 @@ MeshRendererTestDemo::~MeshRendererTestDemo() //------------------------------------------------------------------ MeshRendererForceDepthTest::MeshRendererForceDepthTest() { - auto orc = cocos2d::MeshRenderer::create("MeshRendererTest/orc.c3b"); + auto orc = axis::MeshRenderer::create("MeshRendererTest/orc.c3b"); orc->setScale(5); orc->setPositionNormalized(Vec2(.5f, .3f)); orc->setPositionZ(40); @@ -180,7 +180,7 @@ void MeshRendererBasicTest::addNewMeshWithCoords(Vec2 p) mesh->setTexture("MeshRendererTest/boss.png"); // - // mesh->setEffect(cocos2d::EFFECT_OUTLINE); + // mesh->setEffect(axis::EFFECT_OUTLINE); // add to scene addChild(mesh); @@ -398,7 +398,7 @@ std::string MeshRendererFakeShadowTest::subtitle() const return "touch the screen to move around"; } -void MeshRendererFakeShadowTest::Move(cocos2d::Ref* sender, int value) +void MeshRendererFakeShadowTest::Move(axis::Ref* sender, int value) { _orc->setPositionX(_orc->getPositionX() + value); } @@ -498,11 +498,11 @@ bool MeshRendererFakeShadowTest::isState(unsigned int state, unsigned int bit) c return (state & bit) == bit; } -void MeshRendererFakeShadowTest::onTouchesBegan(const std::vector& touches, cocos2d::Event* event) {} +void MeshRendererFakeShadowTest::onTouchesBegan(const std::vector& touches, axis::Event* event) {} -void MeshRendererFakeShadowTest::onTouchesMoved(const std::vector& touches, cocos2d::Event* event) {} +void MeshRendererFakeShadowTest::onTouchesMoved(const std::vector& touches, axis::Event* event) {} -void MeshRendererFakeShadowTest::onTouchesEnded(const std::vector& touches, cocos2d::Event* event) +void MeshRendererFakeShadowTest::onTouchesEnded(const std::vector& touches, axis::Event* event) { for (auto& item : touches) { @@ -634,7 +634,7 @@ std::string MeshRendererLightMapTest::subtitle() const return "drag the screen to move around"; } -void MeshRendererLightMapTest::onTouchesMoved(const std::vector& touches, cocos2d::Event* event) +void MeshRendererLightMapTest::onTouchesMoved(const std::vector& touches, axis::Event* event) { if (touches.size() == 1) { @@ -2125,7 +2125,7 @@ void MeshRendererCubeMapTest::addNewMeshWithCoords(Vec2 p) #endif } -void MeshRendererCubeMapTest::onTouchesMoved(const std::vector& touches, cocos2d::Event* event) +void MeshRendererCubeMapTest::onTouchesMoved(const std::vector& touches, axis::Event* event) { if (touches.size()) { @@ -2165,7 +2165,7 @@ Issue9767::Issue9767() Issue9767::~Issue9767() {} -void Issue9767::menuCallback_SwitchShader(cocos2d::Ref* sender) +void Issue9767::menuCallback_SwitchShader(axis::Ref* sender) { CC_SAFE_RELEASE_NULL(_programState); if (_shaderType == Issue9767::ShaderType::SHADER_TEX) @@ -2271,7 +2271,7 @@ Animate3DCallbackTest::Animate3DCallbackTest() ((PUParticleSystem3D*)node)->startParticleSystem(); } - cocos2d::log("frame %d", info->frame); + axis::log("frame %d", info->frame); }); Director::getInstance()->getEventDispatcher()->addEventListenerWithFixedPriority(listener, -1); } @@ -2365,7 +2365,7 @@ CameraBackgroundClearTest::CameraBackgroundClearTest() _label->setPosition(s.width / 2.f, VisibleRect::top().y * 0.8f); } -void CameraBackgroundClearTest::switch_CameraClearMode(cocos2d::Ref* sender) +void CameraBackgroundClearTest::switch_CameraClearMode(axis::Ref* sender) { auto brush = _camera->getBackgroundBrush(); CameraBackgroundBrush::BrushType type = CameraBackgroundBrush::BrushType::NONE; @@ -2585,7 +2585,7 @@ std::string MeshRendererPropertyTest::subtitle() const } void MeshRendererPropertyTest::update(float delta) {} -void MeshRendererPropertyTest::printMeshName(cocos2d::Ref* sender) +void MeshRendererPropertyTest::printMeshName(axis::Ref* sender) { CCLOG("MeshName Begin"); Vector meshes = _mesh->getMeshes(); @@ -2595,7 +2595,7 @@ void MeshRendererPropertyTest::printMeshName(cocos2d::Ref* sender) } CCLOG("MeshName End"); } -void MeshRendererPropertyTest::removeUsedTexture(cocos2d::Ref* sender) +void MeshRendererPropertyTest::removeUsedTexture(axis::Ref* sender) { if (_meshTex != nullptr) { @@ -2604,7 +2604,7 @@ void MeshRendererPropertyTest::removeUsedTexture(cocos2d::Ref* sender) } } -void MeshRendererPropertyTest::resetTexture(cocos2d::Ref* sender) +void MeshRendererPropertyTest::resetTexture(axis::Ref* sender) { if (_meshTex != nullptr) { @@ -2628,7 +2628,7 @@ void MeshRendererPropertyTest::refreshMeshRender() cacheTex = Director::getInstance()->getTextureCache()->addImage(image, "/dummyTexture"); image->release(); } - mesh->setTexture(cacheTex, cocos2d::NTextureData::Usage::Diffuse, false); + mesh->setTexture(cacheTex, axis::NTextureData::Usage::Diffuse, false); } } @@ -2645,7 +2645,7 @@ Issue16155Test::Issue16155Test() addChild(mesh); removeChild(mesh); - cocos2d::log("Issue 16155: Ref count:%d. Run this test again. RC should be the same", rcBefore); + axis::log("Issue 16155: Ref count:%d. Run this test again. RC should be the same", rcBefore); } std::string Issue16155Test::title() const diff --git a/tests/cpp-tests/Classes/MeshRendererTest/MeshRendererTest.h b/tests/cpp-tests/Classes/MeshRendererTest/MeshRendererTest.h index 0cea9aa2dc..f06cef6c74 100644 --- a/tests/cpp-tests/Classes/MeshRendererTest/MeshRendererTest.h +++ b/tests/cpp-tests/Classes/MeshRendererTest/MeshRendererTest.h @@ -28,8 +28,7 @@ #include "renderer/backend/ProgramState.h" #include -namespace cocos2d -{ +NS_AX_BEGIN class Animate3D; class MeshRenderer; class Delay; @@ -37,7 +36,7 @@ class Ray; class DrawNode3D; class GLProgramState; class MotionStreak3D; -} // namespace cocos2d +NS_AX_END // namespace axis DEFINE_TEST_SUITE(MeshRendererTests); @@ -76,8 +75,8 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; - void addNewMeshWithCoords(cocos2d::Vec2 p); - void onTouchesEnded(const std::vector& touches, cocos2d::Event* event); + void addNewMeshWithCoords(axis::Vec2 p); + void onTouchesEnded(const std::vector& touches, axis::Event* event); }; class MeshRendererUVAnimationTest : public MeshRendererTestDemo @@ -94,10 +93,10 @@ protected: float _cylinder_texture_offset; float _shining_duration; - cocos2d::backend::ProgramState* _state = nullptr; + axis::backend::ProgramState* _state = nullptr; #if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) - cocos2d::EventListenerCustom* _backToForegroundListener; + axis::EventListenerCustom* _backToForegroundListener; #endif }; @@ -116,25 +115,25 @@ public: virtual ~MeshRendererFakeShadowTest(); virtual std::string title() const override; virtual std::string subtitle() const override; - void Move(cocos2d::Ref* sender, int value); + void Move(axis::Ref* sender, int value); void updateCamera(float fDelta); void move3D(float elapsedTime); void updateState(float elapsedTime); bool isState(unsigned int state, unsigned int bit) const; - void onTouchesBegan(const std::vector& touches, cocos2d::Event* event); - void onTouchesMoved(const std::vector& touches, cocos2d::Event* event); - void onTouchesEnded(const std::vector& touches, cocos2d::Event* event); + void onTouchesBegan(const std::vector& touches, axis::Event* event); + void onTouchesMoved(const std::vector& touches, axis::Event* event); + void onTouchesEnded(const std::vector& touches, axis::Event* event); private: - cocos2d::Camera* _camera; - cocos2d::Vec3 _targetPos; + axis::Camera* _camera; + axis::Vec3 _targetPos; unsigned int _curState; - cocos2d::MeshRenderer* _plane; - cocos2d::MeshRenderer* _orc; - cocos2d::backend::ProgramState* _state = nullptr; + axis::MeshRenderer* _plane; + axis::MeshRenderer* _orc; + axis::backend::ProgramState* _state = nullptr; #if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) - cocos2d::EventListenerCustom* _backToForegroundListener; + axis::EventListenerCustom* _backToForegroundListener; #endif }; @@ -146,10 +145,10 @@ public: virtual ~MeshRendererLightMapTest(); virtual std::string title() const override; virtual std::string subtitle() const override; - void onTouchesMoved(const std::vector& touches, cocos2d::Event* event); + void onTouchesMoved(const std::vector& touches, axis::Event* event); private: - cocos2d::Camera* _camera; + axis::Camera* _camera; }; class MeshRendererBasicToonShaderTest : public MeshRendererTestDemo @@ -162,10 +161,10 @@ public: virtual std::string subtitle() const override; protected: - cocos2d::backend::ProgramState* _state; + axis::backend::ProgramState* _state; #if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) - cocos2d::EventListenerCustom* _backToForegroundListener; + axis::EventListenerCustom* _backToForegroundListener; #endif }; @@ -187,15 +186,15 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; - void addNewMeshWithCoords(cocos2d::Vec2 p); + void addNewMeshWithCoords(axis::Vec2 p); - void onTouchesEnded(const std::vector& touches, cocos2d::Event* event); + void onTouchesEnded(const std::vector& touches, axis::Event* event); protected: - std::vector _meshes; + std::vector _meshes; #if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) - cocos2d::EventListenerCustom* _backToForegroundListener; + axis::EventListenerCustom* _backToForegroundListener; #endif }; @@ -208,9 +207,9 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; - void menuCallback_asyncLoadMesh(cocos2d::Ref* sender); + void menuCallback_asyncLoadMesh(axis::Ref* sender); - void asyncLoad_Callback(cocos2d::MeshRenderer* mesh, void* param); + void asyncLoad_Callback(axis::MeshRenderer* mesh, void* param); protected: std::vector _paths; // model paths to be loaded @@ -224,17 +223,17 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; - void addNewMeshWithCoords(cocos2d::Vec2 p); + void addNewMeshWithCoords(axis::Vec2 p); - void switchAnimationQualityCallback(cocos2d::Ref* sender); - void onTouchesEnded(const std::vector& touches, cocos2d::Event* event); + void switchAnimationQualityCallback(axis::Ref* sender); + void onTouchesEnded(const std::vector& touches, axis::Event* event); std::string getAnimationQualityMessage() const; private: - std::vector _meshes; + std::vector _meshes; int _animateQuality; - cocos2d::MenuItemFont* _menuItem; + axis::MenuItemFont* _menuItem; }; class MeshRendererWithSkinOutlineTest : public MeshRendererTestDemo @@ -246,15 +245,15 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; - void addNewMeshWithCoords(cocos2d::Vec2 p); + void addNewMeshWithCoords(axis::Vec2 p); - void onTouchesEnded(const std::vector& touches, cocos2d::Event* event); + void onTouchesEnded(const std::vector& touches, axis::Event* event); protected: - std::vector _meshes; + std::vector _meshes; #if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) - cocos2d::EventListenerCustom* _backToForegroundListener; + axis::EventListenerCustom* _backToForegroundListener; #endif }; @@ -267,7 +266,7 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; - void onTouchesEnded(const std::vector& touches, cocos2d::Event* event); + void onTouchesEnded(const std::vector& touches, axis::Event* event); virtual void update(float dt) override; @@ -286,16 +285,16 @@ protected: void renewCallBack(); - cocos2d::MeshRenderer* _mesh; + axis::MeshRenderer* _mesh; - cocos2d::Action* _swim; - cocos2d::Animate3D* _hurt; + axis::Action* _swim; + axis::Animate3D* _hurt; float _elapseTransTime; State _state; - cocos2d::MoveTo* _moveAction; + axis::MoveTo* _moveAction; }; class AttachmentTest : public MeshRendererTestDemo @@ -306,13 +305,13 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; - void onTouchesEnded(const std::vector& touches, cocos2d::Event* event); + void onTouchesEnded(const std::vector& touches, axis::Event* event); - void addNewMeshWithCoords(cocos2d::Vec2 p); + void addNewMeshWithCoords(axis::Vec2 p); protected: bool _hasWeapon; - cocos2d::MeshRenderer* _mesh; + axis::MeshRenderer* _mesh; }; class MeshRendererReskinTest : public MeshRendererTestDemo @@ -322,10 +321,10 @@ public: MeshRendererReskinTest(); virtual std::string title() const override; virtual std::string subtitle() const override; - void onTouchesEnded(const std::vector& touches, cocos2d::Event* event); - void addNewMeshWithCoords(cocos2d::Vec2 p); + void onTouchesEnded(const std::vector& touches, axis::Event* event); + void addNewMeshWithCoords(axis::Vec2 p); - void menuCallback_reSkin(cocos2d::Ref* sender); + void menuCallback_reSkin(axis::Ref* sender); protected: void applyCurSkin(); @@ -344,7 +343,7 @@ protected: std::vector _skins[(int)SkinType::MAX_TYPE]; // all skins int _curSkin[(int)SkinType::MAX_TYPE]; // current skin index - cocos2d::MeshRenderer* _mesh; + axis::MeshRenderer* _mesh; }; class MeshRendererWithOBBPerformanceTest : public MeshRendererTestDemo @@ -355,35 +354,35 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; virtual void update(float dt) override; - void addNewOBBWithCoords(cocos2d::Vec2 p); - void addNewMeshWithCoords(cocos2d::Vec2 p); - void onTouchesBegan(const std::vector& touches, cocos2d::Event* event); - void onTouchesEnded(const std::vector& touches, cocos2d::Event* event); - void onTouchesMoved(const std::vector& touches, cocos2d::Event* event); - void addOBBCallback(cocos2d::Ref* sender); - void delOBBCallback(cocos2d::Ref* sender); + void addNewOBBWithCoords(axis::Vec2 p); + void addNewMeshWithCoords(axis::Vec2 p); + void onTouchesBegan(const std::vector& touches, axis::Event* event); + void onTouchesEnded(const std::vector& touches, axis::Event* event); + void onTouchesMoved(const std::vector& touches, axis::Event* event); + void addOBBCallback(axis::Ref* sender); + void delOBBCallback(axis::Ref* sender); void addOBBWithCount(float value); void delOBBWithCount(float value); protected: - cocos2d::MeshRenderer* _mesh; - std::vector _obb; - cocos2d::DrawNode3D* _drawOBB; - cocos2d::Label* _labelCubeCount; - cocos2d::MoveTo* _moveAction; - cocos2d::OBB _obbt; - cocos2d::OBB _obbtOri; // tortoise origin obb - cocos2d::DrawNode3D* _drawDebug; + axis::MeshRenderer* _mesh; + std::vector _obb; + axis::DrawNode3D* _drawOBB; + axis::Label* _labelCubeCount; + axis::MoveTo* _moveAction; + axis::OBB _obbt; + axis::OBB _obbtOri; // tortoise origin obb + axis::DrawNode3D* _drawDebug; bool _hasCollider; std::set _intersetList; void initDrawBox(); void reachEndCallBack(); - void unproject(const cocos2d::Mat4& viewProjection, - const cocos2d::Size* viewport, - cocos2d::Vec3* src, - cocos2d::Vec3* dst); - void calculateRayByLocationInView(cocos2d::Ray* ray, const cocos2d::Vec2& location); + void unproject(const axis::Mat4& viewProjection, + const axis::Size* viewport, + axis::Vec3* src, + axis::Vec3* dst); + void calculateRayByLocationInView(axis::Ray* ray, const axis::Vec2& location); }; class MeshRendererMirrorTest : public MeshRendererTestDemo @@ -394,12 +393,12 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; - void addNewMeshWithCoords(cocos2d::Vec2 p); + void addNewMeshWithCoords(axis::Vec2 p); protected: bool _hasWeapon; - cocos2d::MeshRenderer* _mesh; - cocos2d::MeshRenderer* _mirrorMesh; + axis::MeshRenderer* _mesh; + axis::MeshRenderer* _mirrorMesh; }; class QuaternionTest : public MeshRendererTestDemo @@ -410,11 +409,11 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; - void addNewMeshWithCoords(cocos2d::Vec2 p); + void addNewMeshWithCoords(axis::Vec2 p); virtual void update(float delta) override; protected: - cocos2d::MeshRenderer* _mesh; + axis::MeshRenderer* _mesh; float _arcSpeed; float _radius; float _accAngle; @@ -431,7 +430,7 @@ public: virtual void update(float delta) override; - void menuCallback_Message(cocos2d::Ref* sender); + void menuCallback_Message(axis::Ref* sender); protected: void switchCase(); @@ -442,7 +441,7 @@ protected: _UI_3D_UI, MAX_CASE_NUM, }; - cocos2d::Label* _label; + axis::Label* _label; int _caseIdx; // use case index std::string _useCaseTitles[(int)USECASE::MAX_CASE_NUM]; }; @@ -456,18 +455,17 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; - void addNewMeshWithCoords(cocos2d::Vec2 p); + void addNewMeshWithCoords(axis::Vec2 p); protected: - std::vector _meshes; + std::vector _meshes; int _vectorIndex; }; -namespace cocos2d -{ +NS_AX_BEGIN class TextureCube; class Skybox; -} // namespace cocos2d +NS_AX_END // namespace axis class MeshRendererCubeMapTest : public MeshRendererTestDemo { @@ -478,18 +476,18 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; - void addNewMeshWithCoords(cocos2d::Vec2); + void addNewMeshWithCoords(axis::Vec2); - void onTouchesMoved(const std::vector& touches, cocos2d::Event* event); + void onTouchesMoved(const std::vector& touches, axis::Event* event); protected: - cocos2d::TextureCube* _textureCube; - cocos2d::Skybox* _skyBox; - cocos2d::MeshRenderer* _teapot; - cocos2d::Camera* _camera; + axis::TextureCube* _textureCube; + axis::Skybox* _skyBox; + axis::MeshRenderer* _teapot; + axis::Camera* _camera; #if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) - cocos2d::EventListenerCustom* _backToForegroundListener; + axis::EventListenerCustom* _backToForegroundListener; #endif }; @@ -509,11 +507,11 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; - void menuCallback_SwitchShader(cocos2d::Ref* sender); + void menuCallback_SwitchShader(axis::Ref* sender); protected: ShaderType _shaderType; - cocos2d::MeshRenderer* _mesh; + axis::MeshRenderer* _mesh; }; /// Clipping MeshRenderer @@ -537,7 +535,7 @@ public: virtual std::string subtitle() const override; protected: - cocos2d::MeshRenderer* _meshRenderer; + axis::MeshRenderer* _meshRenderer; }; class CameraBackgroundClearTest : public MeshRendererTestDemo @@ -548,11 +546,11 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; - void switch_CameraClearMode(cocos2d::Ref* sender); + void switch_CameraClearMode(axis::Ref* sender); protected: - cocos2d::Camera* _camera; - cocos2d::Label* _label; + axis::Camera* _camera; + axis::Label* _label; }; class MeshRendererVertexColorTest : public MeshRendererTestDemo @@ -566,9 +564,9 @@ public: virtual ~MeshRendererVertexColorTest(); protected: - cocos2d::MeshRenderer* _mesh; + axis::MeshRenderer* _mesh; #if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) - cocos2d::EventListenerCustom* _backToForegroundListener; + axis::EventListenerCustom* _backToForegroundListener; #endif }; @@ -582,8 +580,8 @@ public: virtual void update(float delta) override; protected: - cocos2d::MeshRenderer* _mesh; - cocos2d::MotionStreak3D* _streak; + axis::MeshRenderer* _mesh; + axis::MotionStreak3D* _streak; }; class MeshRendererNormalMappingTest : public MeshRendererTestDemo @@ -607,15 +605,15 @@ public: virtual std::string subtitle() const override; virtual void update(float delta) override; - void printMeshName(cocos2d::Ref* sender); - void removeUsedTexture(cocos2d::Ref* sender); - void resetTexture(cocos2d::Ref* sender); + void printMeshName(axis::Ref* sender); + void removeUsedTexture(axis::Ref* sender); + void resetTexture(axis::Ref* sender); void refreshMeshRender(); protected: - cocos2d::MeshRenderer* _mesh; - cocos2d::Texture2D* _meshTex; + axis::MeshRenderer* _mesh; + axis::Texture2D* _meshTex; std::string _texFile; }; diff --git a/tests/cpp-tests/Classes/MotionStreakTest/MotionStreakTest.cpp b/tests/cpp-tests/Classes/MotionStreakTest/MotionStreakTest.cpp index 1dd1ee3877..b3b2bb7df6 100644 --- a/tests/cpp-tests/Classes/MotionStreakTest/MotionStreakTest.cpp +++ b/tests/cpp-tests/Classes/MotionStreakTest/MotionStreakTest.cpp @@ -25,7 +25,7 @@ #include "MotionStreakTest.h" #include "../testResource.h" -USING_NS_CC; +USING_NS_AX; enum { diff --git a/tests/cpp-tests/Classes/MotionStreakTest/MotionStreakTest.h b/tests/cpp-tests/Classes/MotionStreakTest/MotionStreakTest.h index 8bf0fbccc2..bfd2744662 100644 --- a/tests/cpp-tests/Classes/MotionStreakTest/MotionStreakTest.h +++ b/tests/cpp-tests/Classes/MotionStreakTest/MotionStreakTest.h @@ -39,17 +39,17 @@ public: virtual std::string subtitle() const override; virtual void onEnter() override; - void modeCallback(cocos2d::Ref* sender); + void modeCallback(axis::Ref* sender); protected: - cocos2d::MotionStreak* _streak; + axis::MotionStreak* _streak; }; class MotionStreakTest1 : public MotionStreakTest { protected: - cocos2d::Node* _root; - cocos2d::Node* _target; + axis::Node* _root; + axis::Node* _target; public: CREATE_FUNC(MotionStreakTest1); @@ -61,13 +61,13 @@ public: class MotionStreakTest2 : public MotionStreakTest { protected: - cocos2d::Node* _root; - cocos2d::Node* _target; + axis::Node* _root; + axis::Node* _target; public: CREATE_FUNC(MotionStreakTest2); virtual void onEnter() override; - void onTouchesMoved(const std::vector& touches, cocos2d::Event* event); + void onTouchesMoved(const std::vector& touches, axis::Event* event); virtual std::string title() const override; virtual std::string subtitle() const override; }; @@ -83,7 +83,7 @@ public: virtual void update(float dt) override; private: - cocos2d::Vec2 _center; + axis::Vec2 _center; float _radius; float _angle; }; diff --git a/tests/cpp-tests/Classes/MultiTouchTest/MultiTouchTest.cpp b/tests/cpp-tests/Classes/MultiTouchTest/MultiTouchTest.cpp index f93b4382e5..d08cae63bf 100644 --- a/tests/cpp-tests/Classes/MultiTouchTest/MultiTouchTest.cpp +++ b/tests/cpp-tests/Classes/MultiTouchTest/MultiTouchTest.cpp @@ -24,7 +24,7 @@ #include "MultiTouchTest.h" -USING_NS_CC; +USING_NS_AX; MultiTouchTests::MultiTouchTests() { diff --git a/tests/cpp-tests/Classes/MultiTouchTest/MultiTouchTest.h b/tests/cpp-tests/Classes/MultiTouchTest/MultiTouchTest.h index 175591494c..b9949729bb 100644 --- a/tests/cpp-tests/Classes/MultiTouchTest/MultiTouchTest.h +++ b/tests/cpp-tests/Classes/MultiTouchTest/MultiTouchTest.h @@ -36,10 +36,10 @@ public: virtual bool init() override; - void onTouchesBegan(const std::vector& touches, cocos2d::Event* event); - void onTouchesMoved(const std::vector& touches, cocos2d::Event* event); - void onTouchesEnded(const std::vector& touches, cocos2d::Event* event); - void onTouchesCancelled(const std::vector& touches, cocos2d::Event* event); + void onTouchesBegan(const std::vector& touches, axis::Event* event); + void onTouchesMoved(const std::vector& touches, axis::Event* event); + void onTouchesEnded(const std::vector& touches, axis::Event* event); + void onTouchesCancelled(const std::vector& touches, axis::Event* event); }; #endif /* __MULTITOUCHTEST_H__ */ diff --git a/tests/cpp-tests/Classes/NavMeshTest/NavMeshTest.cpp b/tests/cpp-tests/Classes/NavMeshTest/NavMeshTest.cpp index 64150b0ed1..27651c7f13 100644 --- a/tests/cpp-tests/Classes/NavMeshTest/NavMeshTest.cpp +++ b/tests/cpp-tests/Classes/NavMeshTest/NavMeshTest.cpp @@ -30,8 +30,8 @@ #include "3d/CCBundle3D.h" #include "2d/CCLight.h" -USING_NS_CC_EXT; -USING_NS_CC; +USING_NS_AX_EXT; +USING_NS_AX; struct AgentUserData { @@ -105,13 +105,13 @@ bool NavMeshBaseTestDemo::init() return true; } -void NavMeshBaseTestDemo::onTouchesBegan(const std::vector& touches, cocos2d::Event* event) +void NavMeshBaseTestDemo::onTouchesBegan(const std::vector& touches, axis::Event* event) { _needMoveAgents = true; touchesBegan(touches, event); } -void NavMeshBaseTestDemo::onTouchesMoved(const std::vector& touches, cocos2d::Event* event) +void NavMeshBaseTestDemo::onTouchesMoved(const std::vector& touches, axis::Event* event) { if (touches.size() && _camera) { @@ -130,7 +130,7 @@ void NavMeshBaseTestDemo::onTouchesMoved(const std::vector& tou touchesMoved(touches, event); } -void NavMeshBaseTestDemo::onTouchesEnded(const std::vector& touches, cocos2d::Event* event) +void NavMeshBaseTestDemo::onTouchesEnded(const std::vector& touches, axis::Event* event) { touchesEnded(touches, event); } @@ -220,7 +220,7 @@ Vec3 jump(const Vec3* pV1, const Vec3* pV2, float height, float t) return pOut; } -void NavMeshBaseTestDemo::moveAgents(const cocos2d::Vec3& des) +void NavMeshBaseTestDemo::moveAgents(const axis::Vec3& des) { for (auto iter : _agents) { @@ -279,7 +279,7 @@ std::string NavMeshBasicTestDemo::subtitle() const return "Basic Test"; } -void NavMeshBasicTestDemo::touchesEnded(const std::vector& touches, cocos2d::Event* event) +void NavMeshBasicTestDemo::touchesEnded(const std::vector& touches, axis::Event* event) { if (!_needMoveAgents) return; @@ -355,8 +355,8 @@ bool NavMeshAdvanceTestDemo::init() _debugLabel->retain(); auto menuItem0 = MenuItemLabel::create(_obstacleLabel, [=](Ref*) { - float x = cocos2d::random(-50.0f, 50.0f); - float z = cocos2d::random(-50.0f, 50.0f); + float x = axis::random(-50.0f, 50.0f); + float z = axis::random(-50.0f, 50.0f); Physics3DWorld::HitResult result; getPhysics3DWorld()->rayCast(Vec3(x, 50.0f, z), Vec3(x, -50.0f, z), &result); createObstacle(result.hitPosition); @@ -365,8 +365,8 @@ bool NavMeshAdvanceTestDemo::init() menuItem0->setPosition(Vec2(VisibleRect::left().x, VisibleRect::top().y - 50)); auto menuItem1 = MenuItemLabel::create(_agentLabel, [=](Ref*) { - float x = cocos2d::random(-50.0f, 50.0f); - float z = cocos2d::random(-50.0f, 50.0f); + float x = axis::random(-50.0f, 50.0f); + float z = axis::random(-50.0f, 50.0f); Physics3DWorld::HitResult result; getPhysics3DWorld()->rayCast(Vec3(x, 50.0f, z), Vec3(x, -50.0f, z), &result); createAgent(result.hitPosition); @@ -415,7 +415,7 @@ std::string NavMeshAdvanceTestDemo::subtitle() const return "Advance Test"; } -void NavMeshAdvanceTestDemo::touchesEnded(const std::vector& touches, cocos2d::Event* event) +void NavMeshAdvanceTestDemo::touchesEnded(const std::vector& touches, axis::Event* event) { if (!_needMoveAgents) return; diff --git a/tests/cpp-tests/Classes/NavMeshTest/NavMeshTest.h b/tests/cpp-tests/Classes/NavMeshTest/NavMeshTest.h index 331be95568..83f138ee4d 100644 --- a/tests/cpp-tests/Classes/NavMeshTest/NavMeshTest.h +++ b/tests/cpp-tests/Classes/NavMeshTest/NavMeshTest.h @@ -52,23 +52,23 @@ public: // overrides virtual bool init() override; virtual void update(float delta) override; - virtual void onTouchesBegan(const std::vector& touches, cocos2d::Event* event); - virtual void onTouchesMoved(const std::vector& touches, cocos2d::Event* event); - virtual void onTouchesEnded(const std::vector& touches, cocos2d::Event* event); + virtual void onTouchesBegan(const std::vector& touches, axis::Event* event); + virtual void onTouchesMoved(const std::vector& touches, axis::Event* event); + virtual void onTouchesEnded(const std::vector& touches, axis::Event* event); protected: void initScene(); - void createAgent(const cocos2d::Vec3& pos); - void createObstacle(const cocos2d::Vec3& pos); - void moveAgents(const cocos2d::Vec3& des); - virtual void touchesBegan(const std::vector& touches, cocos2d::Event* event){}; - virtual void touchesMoved(const std::vector& touches, cocos2d::Event* event){}; - virtual void touchesEnded(const std::vector& touches, cocos2d::Event* event){}; + void createAgent(const axis::Vec3& pos); + void createObstacle(const axis::Vec3& pos); + void moveAgents(const axis::Vec3& des); + virtual void touchesBegan(const std::vector& touches, axis::Event* event){}; + virtual void touchesMoved(const std::vector& touches, axis::Event* event){}; + virtual void touchesEnded(const std::vector& touches, axis::Event* event){}; protected: - cocos2d::Camera* _camera; + axis::Camera* _camera; float _angle; - std::vector> _agents; + std::vector> _agents; bool _needMoveAgents; }; @@ -87,12 +87,12 @@ public: virtual void onEnter() override; protected: - virtual void touchesBegan(const std::vector& touches, cocos2d::Event* event) override{}; - virtual void touchesMoved(const std::vector& touches, cocos2d::Event* event) override{}; - virtual void touchesEnded(const std::vector& touches, cocos2d::Event* event) override; + virtual void touchesBegan(const std::vector& touches, axis::Event* event) override{}; + virtual void touchesMoved(const std::vector& touches, axis::Event* event) override{}; + virtual void touchesEnded(const std::vector& touches, axis::Event* event) override; protected: - cocos2d::Label* _debugLabel; + axis::Label* _debugLabel; }; class NavMeshAdvanceTestDemo : public NavMeshBaseTestDemo @@ -110,14 +110,14 @@ public: virtual void onEnter() override; protected: - virtual void touchesBegan(const std::vector& touches, cocos2d::Event* event) override{}; - virtual void touchesMoved(const std::vector& touches, cocos2d::Event* event) override{}; - virtual void touchesEnded(const std::vector& touches, cocos2d::Event* event) override; + virtual void touchesBegan(const std::vector& touches, axis::Event* event) override{}; + virtual void touchesMoved(const std::vector& touches, axis::Event* event) override{}; + virtual void touchesEnded(const std::vector& touches, axis::Event* event) override; protected: - cocos2d::Label* _obstacleLabel; - cocos2d::Label* _agentLabel; - cocos2d::Label* _debugLabel; + axis::Label* _obstacleLabel; + axis::Label* _agentLabel; + axis::Label* _debugLabel; }; #endif diff --git a/tests/cpp-tests/Classes/NetworkTest/DownloaderTest/DownloaderTest.cpp b/tests/cpp-tests/Classes/NetworkTest/DownloaderTest/DownloaderTest.cpp index aeb69d278c..794599a07d 100644 --- a/tests/cpp-tests/Classes/NetworkTest/DownloaderTest/DownloaderTest.cpp +++ b/tests/cpp-tests/Classes/NetworkTest/DownloaderTest/DownloaderTest.cpp @@ -32,7 +32,7 @@ #include "ui/UIButton.h" #include "network/CCDownloader.h" -USING_NS_CC; +USING_NS_AX; static const char* sURLList[] = { "https://www.cocos2d-x.org/attachments/802/cocos2dx_landscape.png", "https://cocos2d-x.org/images/logo.png", @@ -66,7 +66,7 @@ struct DownloaderTest : public TestCase TAG_SPRITE, }; - Node* createDownloadView(const char* name, const cocos2d::ui::Button::ccWidgetClickCallback& callback) + Node* createDownloadView(const char* name, const axis::ui::Button::ccWidgetClickCallback& callback) { Size viewSize(220, 120); float margin = 5; @@ -217,7 +217,7 @@ struct DownloaderTest : public TestCase }; // define success callback - downloader->onDataTaskSuccess = [this](const cocos2d::network::DownloadTask& task, + downloader->onDataTaskSuccess = [this](const axis::network::DownloadTask& task, std::vector& data) { // create texture from data Texture2D* texture = nullptr; @@ -252,7 +252,7 @@ struct DownloaderTest : public TestCase CC_SAFE_RELEASE(texture); }; - downloader->onFileTaskSuccess = [this](const cocos2d::network::DownloadTask& task) { + downloader->onFileTaskSuccess = [this](const axis::network::DownloadTask& task) { Texture2D* texture = nullptr; do { @@ -286,7 +286,7 @@ struct DownloaderTest : public TestCase }; // define failed callback - downloader->onTaskError = [this](const cocos2d::network::DownloadTask& task, int errorCode, + downloader->onTaskError = [this](const axis::network::DownloadTask& task, int errorCode, int errorCodeInternal, std::string_view errorStr) { log("Failed to download : %s, identifier(%s) error code(%d), internal error code(%d) desc(%s)", task.requestURL.c_str(), task.identifier.c_str(), errorCode, errorCodeInternal, errorStr.data()); diff --git a/tests/cpp-tests/Classes/NetworkTest/HttpClientTest/HttpClientTest.cpp b/tests/cpp-tests/Classes/NetworkTest/HttpClientTest/HttpClientTest.cpp index f1c0ea9e4d..ded15ee714 100644 --- a/tests/cpp-tests/Classes/NetworkTest/HttpClientTest/HttpClientTest.cpp +++ b/tests/cpp-tests/Classes/NetworkTest/HttpClientTest/HttpClientTest.cpp @@ -26,8 +26,8 @@ #include "HttpClientTest.h" #include -USING_NS_CC; -using namespace cocos2d::network; +USING_NS_AX; +using namespace axis::network; #define CHROME_UA \ "User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 " \ @@ -102,7 +102,7 @@ HttpClientTest::~HttpClientTest() HttpClient::destroyInstance(); } -void HttpClientTest::onMenuGetTestClicked(cocos2d::Ref* sender) +void HttpClientTest::onMenuGetTestClicked(axis::Ref* sender) { // test 1(sync request test) { @@ -175,7 +175,7 @@ void HttpClientTest::onMenuGetTestClicked(cocos2d::Ref* sender) _labelStatusCode->setString("waiting..."); } -void HttpClientTest::onMenuPostTestClicked(cocos2d::Ref* sender) +void HttpClientTest::onMenuPostTestClicked(axis::Ref* sender) { // test 1 { @@ -213,7 +213,7 @@ void HttpClientTest::onMenuPostTestClicked(cocos2d::Ref* sender) _labelStatusCode->setString("waiting..."); } -void HttpClientTest::onMenuPostBinaryTestClicked(cocos2d::Ref* sender) +void HttpClientTest::onMenuPostBinaryTestClicked(axis::Ref* sender) { HttpRequest* request = new HttpRequest(); request->setUrl("https://httpbin.org/post"); @@ -381,7 +381,7 @@ HttpClientClearRequestsTest::~HttpClientClearRequestsTest() HttpClient::destroyInstance(); } -void HttpClientClearRequestsTest::onMenuCancelAllClicked(cocos2d::Ref* sender) +void HttpClientClearRequestsTest::onMenuCancelAllClicked(axis::Ref* sender) { for (int i = 0; i < 10; i++) { @@ -409,7 +409,7 @@ void HttpClientClearRequestsTest::onMenuCancelAllClicked(cocos2d::Ref* sender) _labelStatusCode->setString("waiting..."); } -void HttpClientClearRequestsTest::onMenuCancelSomeClicked(cocos2d::Ref* sender) +void HttpClientClearRequestsTest::onMenuCancelSomeClicked(axis::Ref* sender) { // test 1 for (int i = 0; i < 10; i++) diff --git a/tests/cpp-tests/Classes/NetworkTest/HttpClientTest/HttpClientTest.h b/tests/cpp-tests/Classes/NetworkTest/HttpClientTest/HttpClientTest.h index 1bcb762463..4172d39b00 100644 --- a/tests/cpp-tests/Classes/NetworkTest/HttpClientTest/HttpClientTest.h +++ b/tests/cpp-tests/Classes/NetworkTest/HttpClientTest/HttpClientTest.h @@ -41,19 +41,19 @@ public: virtual ~HttpClientTest(); // Menu Callbacks - void onMenuGetTestClicked(cocos2d::Ref* sender); - void onMenuPostTestClicked(cocos2d::Ref* sender); - void onMenuPostBinaryTestClicked(cocos2d::Ref* sender); - void onMenuPutTestClicked(cocos2d::Ref* sender); - void onMenuDeleteTestClicked(cocos2d::Ref* sender); + void onMenuGetTestClicked(axis::Ref* sender); + void onMenuPostTestClicked(axis::Ref* sender); + void onMenuPostBinaryTestClicked(axis::Ref* sender); + void onMenuPutTestClicked(axis::Ref* sender); + void onMenuDeleteTestClicked(axis::Ref* sender); // Http Response Callback - void onHttpRequestCompleted(cocos2d::network::HttpClient* sender, cocos2d::network::HttpResponse* response); + void onHttpRequestCompleted(axis::network::HttpClient* sender, axis::network::HttpResponse* response); virtual std::string title() const override { return "Http Request Test"; } private: - cocos2d::Label* _labelStatusCode; + axis::Label* _labelStatusCode; }; class HttpClientClearRequestsTest : public TestCase @@ -65,19 +65,19 @@ public: virtual ~HttpClientClearRequestsTest(); // Menu Callbacks - void onMenuCancelAllClicked(cocos2d::Ref* sender); - void onMenuCancelSomeClicked(cocos2d::Ref* sender); + void onMenuCancelAllClicked(axis::Ref* sender); + void onMenuCancelSomeClicked(axis::Ref* sender); // Http Response Callback - void onHttpRequestCompleted(cocos2d::network::HttpClient* sender, cocos2d::network::HttpResponse* response); + void onHttpRequestCompleted(axis::network::HttpClient* sender, axis::network::HttpResponse* response); virtual std::string title() const override { return "Http Request Test"; } private: int _totalExpectedRequests; int _totalProcessedRequests; - cocos2d::Label* _labelTrakingData; - cocos2d::Label* _labelStatusCode; + axis::Label* _labelTrakingData; + axis::Label* _labelStatusCode; }; #endif //__HTTPREQUESTHTTP_H diff --git a/tests/cpp-tests/Classes/NewAudioEngineTest/NewAudioEngineTest.cpp b/tests/cpp-tests/Classes/NewAudioEngineTest/NewAudioEngineTest.cpp index da24336db0..dab995f0e4 100644 --- a/tests/cpp-tests/Classes/NewAudioEngineTest/NewAudioEngineTest.cpp +++ b/tests/cpp-tests/Classes/NewAudioEngineTest/NewAudioEngineTest.cpp @@ -28,8 +28,8 @@ #include "NewAudioEngineTest.h" #include "ui/CocosGUI.h" -using namespace cocos2d; -using namespace cocos2d::ui; +USING_NS_AX; +using namespace axis::ui; AudioEngineTests::AudioEngineTests() { @@ -62,7 +62,7 @@ AudioEngineTests::AudioEngineTests() namespace { -class TextButton : public cocos2d::Label +class TextButton : public axis::Label { public: static TextButton* create(std::string_view text, const std::function& onTriggered) @@ -213,7 +213,7 @@ std::string AudioEngineTestDemo::title() const return "New Audio Engine Test"; } -void AudioEngineTestDemo::onBackCallback(cocos2d::Ref* sender) +void AudioEngineTestDemo::onBackCallback(axis::Ref* sender) { AudioEngine::end(); TestCase::onBackCallback(sender); @@ -897,7 +897,7 @@ bool AudioPerformanceTest::init() unschedule("test"); schedule( [audioFiles](float dt) { - int index = cocos2d::random(0, (int)(audioFiles.size() - 1)); + int index = axis::random(0, (int)(audioFiles.size() - 1)); CC_PROFILER_START("play2d"); AudioEngine::play2d(audioFiles[index]); CC_PROFILER_STOP("play2d"); diff --git a/tests/cpp-tests/Classes/NewAudioEngineTest/NewAudioEngineTest.h b/tests/cpp-tests/Classes/NewAudioEngineTest/NewAudioEngineTest.h index a457f047ab..a18e7fe6db 100644 --- a/tests/cpp-tests/Classes/NewAudioEngineTest/NewAudioEngineTest.h +++ b/tests/cpp-tests/Classes/NewAudioEngineTest/NewAudioEngineTest.h @@ -44,7 +44,7 @@ public: virtual std::string title() const override; virtual void onExit() override; - virtual void onBackCallback(cocos2d::Ref* sender) override; + virtual void onBackCallback(axis::Ref* sender) override; protected: std::shared_ptr _isDestroyed; @@ -74,7 +74,7 @@ private: void* _timeSlider; bool _updateTimeSlider; bool _isStopped; - cocos2d::Label* _playOverLabel; + axis::Label* _playOverLabel; }; class AudioWavTest : public AudioEngineTestDemo @@ -96,7 +96,7 @@ private: int _curIndex = -1; std::vector _wavFiles; - cocos2d::Label* _stateLabel = nullptr; + axis::Label* _stateLabel = nullptr; }; class PlaySimultaneouslyTest : public AudioEngineTestDemo @@ -135,10 +135,10 @@ public: private: static const int FILE_COUNT = 2; std::string _files[FILE_COUNT]; - cocos2d::AudioProfile _audioProfile; + axis::AudioProfile _audioProfile; int _audioCount; - cocos2d::Label* _showLabel; + axis::Label* _showLabel; float _time; float _minDelay; void* _timeSlider; diff --git a/tests/cpp-tests/Classes/NewEventDispatcherTest/NewEventDispatcherTest.cpp b/tests/cpp-tests/Classes/NewEventDispatcherTest/NewEventDispatcherTest.cpp index 747d5c5343..6ac70b1a2a 100644 --- a/tests/cpp-tests/Classes/NewEventDispatcherTest/NewEventDispatcherTest.cpp +++ b/tests/cpp-tests/Classes/NewEventDispatcherTest/NewEventDispatcherTest.cpp @@ -33,7 +33,7 @@ #include "NewEventDispatcherTest.h" #include "testResource.h" -USING_NS_CC; +USING_NS_AX; namespace { @@ -1707,7 +1707,7 @@ Issue8194::Issue8194() #define tagB 101 // dispatch custom event in another custom event, make the custom event "Issue8194" take effect immediately _listener = - getEventDispatcher()->addCustomEventListener(Director::EVENT_AFTER_UPDATE, [this](cocos2d::EventCustom* event) { + getEventDispatcher()->addCustomEventListener(Director::EVENT_AFTER_UPDATE, [this](axis::EventCustom* event) { if (nodesAdded) { // CCLOG("Fire Issue8194 Event"); @@ -1728,8 +1728,8 @@ Issue8194::Issue8194() auto nodeA = Node::create(); addChild(nodeA, 1, tagA); - cocos2d::EventListenerCustom* listenerA = - cocos2d::EventListenerCustom::create("Issue8194", [&](cocos2d::EventCustom* event) { + axis::EventListenerCustom* listenerA = + axis::EventListenerCustom::create("Issue8194", [&](axis::EventCustom* event) { _subtitleLabel->setString("Bug has been fixed."); event->stopPropagation(); }); @@ -1739,8 +1739,8 @@ Issue8194::Issue8194() auto nodeB = Node::create(); addChild(nodeB, -1, tagB); - cocos2d::EventListenerCustom* listenerB = - cocos2d::EventListenerCustom::create("Issue8194", [&](cocos2d::EventCustom* event) { + axis::EventListenerCustom* listenerB = + axis::EventListenerCustom::create("Issue8194", [&](axis::EventCustom* event) { _subtitleLabel->setString("Bug exist yet."); event->stopPropagation(); }); @@ -1778,7 +1778,7 @@ Issue9898::Issue9898() auto nodeA = Node::create(); addChild(nodeA); - _listener = cocos2d::EventListenerCustom::create("Issue9898", [&](cocos2d::EventCustom* event) { + _listener = axis::EventListenerCustom::create("Issue9898", [&](axis::EventCustom* event) { _eventDispatcher->removeEventListener(_listener); _eventDispatcher->dispatchCustomEvent("Issue9898"); }); diff --git a/tests/cpp-tests/Classes/NewEventDispatcherTest/NewEventDispatcherTest.h b/tests/cpp-tests/Classes/NewEventDispatcherTest/NewEventDispatcherTest.h index 49553105cb..2fac0d499c 100644 --- a/tests/cpp-tests/Classes/NewEventDispatcherTest/NewEventDispatcherTest.h +++ b/tests/cpp-tests/Classes/NewEventDispatcherTest/NewEventDispatcherTest.h @@ -81,8 +81,8 @@ public: virtual std::string subtitle() const override; private: - cocos2d::EventListenerCustom* _listener; - cocos2d::EventListenerCustom* _listener2; + axis::EventListenerCustom* _listener; + axis::EventListenerCustom* _listener2; }; class LabelKeyboardEventTest : public EventDispatcherTestDemo @@ -114,7 +114,7 @@ public: virtual std::string subtitle() const override; private: - cocos2d::Sprite* _sprite; + axis::Sprite* _sprite; bool _spriteSaved; }; @@ -138,16 +138,16 @@ public: virtual void update(float dt) override; - void onEvent1(cocos2d::EventCustom* event); - void onEvent2(cocos2d::EventCustom* event); + void onEvent1(axis::EventCustom* event); + void onEvent2(axis::EventCustom* event); virtual std::string title() const override; virtual std::string subtitle() const override; protected: int _count1, _count2, _count3, _count4; - cocos2d::Label *_label1, *_label2, *_label3, *_label4; - cocos2d::EventListenerCustom *_event1, *_event2, *_event3, *_event4; + axis::Label *_label1, *_label2, *_label3, *_label4; + axis::EventListenerCustom *_event1, *_event2, *_event3, *_event4; }; class GlobalZTouchTest : public EventDispatcherTestDemo @@ -162,7 +162,7 @@ public: virtual std::string subtitle() const override; protected: - cocos2d::Sprite* _sprite; + axis::Sprite* _sprite; float _accum; }; @@ -176,8 +176,8 @@ public: virtual std::string subtitle() const override; protected: - bool isPointInNode(cocos2d::Vec2 pt, cocos2d::Node* node); - bool isPointInTopHalfAreaOfScreen(cocos2d::Vec2 pt); + bool isPointInNode(axis::Vec2 pt, axis::Node* node); + bool isPointInTopHalfAreaOfScreen(axis::Vec2 pt); }; class PauseResumeTargetTest : public EventDispatcherTestDemo @@ -204,11 +204,11 @@ public: virtual std::string subtitle() const override; private: - cocos2d::Sprite* _touchableSprite; - cocos2d::MenuItemFont* _itemPauseTouch; - cocos2d::MenuItemFont* _itemResumeTouch; - cocos2d::MenuItemFont* _itemAddToScene; - cocos2d::MenuItemFont* _itemRemoveFromScene; + axis::Sprite* _touchableSprite; + axis::MenuItemFont* _itemPauseTouch; + axis::MenuItemFont* _itemResumeTouch; + axis::MenuItemFont* _itemAddToScene; + axis::MenuItemFont* _itemRemoveFromScene; }; class PauseResumeTargetTest3 : public EventDispatcherTestDemo @@ -222,7 +222,7 @@ public: virtual std::string subtitle() const override; private: - cocos2d::Sprite* _touchableSprite; + axis::Sprite* _touchableSprite; }; class Issue4129 : public EventDispatcherTestDemo @@ -236,7 +236,7 @@ public: virtual std::string subtitle() const override; private: - cocos2d::EventListenerCustom* _customlistener; + axis::EventListenerCustom* _customlistener; bool _bugFixed; }; @@ -295,7 +295,7 @@ public: virtual std::string subtitle() const override; private: - cocos2d::EventListenerCustom* _listener; + axis::EventListenerCustom* _listener; }; class Issue9898 : public EventDispatcherTestDemo @@ -308,7 +308,7 @@ public: virtual std::string subtitle() const override; private: - cocos2d::EventListenerCustom* _listener; + axis::EventListenerCustom* _listener; }; #endif /* defined(__samples__NewEventDispatcherTest__) */ diff --git a/tests/cpp-tests/Classes/NewRendererTest/NewRendererTest.cpp b/tests/cpp-tests/Classes/NewRendererTest/NewRendererTest.cpp index 735ed53ccf..267e582363 100644 --- a/tests/cpp-tests/Classes/NewRendererTest/NewRendererTest.cpp +++ b/tests/cpp-tests/Classes/NewRendererTest/NewRendererTest.cpp @@ -38,7 +38,7 @@ enum CustomProgramType : uint32_t }; } -USING_NS_CC; +USING_NS_AX; class DurationRecorder { @@ -552,13 +552,13 @@ void SpriteCreation::doTest() spriteCache.clear(); } -void SpriteCreation::addSpritesCallback(cocos2d::Ref*) +void SpriteCreation::addSpritesCallback(axis::Ref*) { updateSpriteCountLabel(totalSprites + suggestDelta); doTest(); } -void SpriteCreation::delSpritesCallback(cocos2d::Ref*) +void SpriteCreation::delSpritesCallback(axis::Ref*) { updateSpriteCountLabel(totalSprites - suggestDelta); doTest(); @@ -752,7 +752,7 @@ void CaptureNodeTest::onCaptured(Ref*) BugAutoCulling::BugAutoCulling() { Size s = Director::getInstance()->getWinSize(); - auto fastmap = cocos2d::FastTMXTiledMap::create("TileMaps/orthogonal-test2.tmx"); + auto fastmap = axis::FastTMXTiledMap::create("TileMaps/orthogonal-test2.tmx"); this->addChild(fastmap); for (int i = 0; i < 30; i++) { @@ -854,7 +854,7 @@ RendererUniformBatch::RendererUniformBatch() } } -cocos2d::backend::ProgramState* RendererUniformBatch::createBlurProgramState() +axis::backend::ProgramState* RendererUniformBatch::createBlurProgramState() { auto programState = new backend::ProgramState(backend::ProgramCache::getInstance()->getCustomProgram(CustomProgramType::BLUR)); @@ -875,7 +875,7 @@ cocos2d::backend::ProgramState* RendererUniformBatch::createBlurProgramState() return programState; } -cocos2d::backend::ProgramState* RendererUniformBatch::createSepiaProgramState() +axis::backend::ProgramState* RendererUniformBatch::createSepiaProgramState() { auto programState = new backend::ProgramState(backend::ProgramCache::getInstance()->getCustomProgram(CustomProgramType::SEPIA)); diff --git a/tests/cpp-tests/Classes/NewRendererTest/NewRendererTest.h b/tests/cpp-tests/Classes/NewRendererTest/NewRendererTest.h index 141c4f7bdc..5650614710 100644 --- a/tests/cpp-tests/Classes/NewRendererTest/NewRendererTest.h +++ b/tests/cpp-tests/Classes/NewRendererTest/NewRendererTest.h @@ -53,7 +53,7 @@ public: void createSpriteTest(); void createNewSpriteTest(); - void onTouchesEnded(const std::vector& touches, cocos2d::Event* event); + void onTouchesEnded(const std::vector& touches, axis::Event* event); protected: NewSpriteTest(); @@ -80,16 +80,16 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; - void onTouchesBegan(const std::vector& touches, cocos2d::Event* event); - void onTouchesMoved(const std::vector& touches, cocos2d::Event* event); - void onTouchesEnded(const std::vector& touches, cocos2d::Event* event); + void onTouchesBegan(const std::vector& touches, axis::Event* event); + void onTouchesMoved(const std::vector& touches, axis::Event* event); + void onTouchesEnded(const std::vector& touches, axis::Event* event); protected: NewClippingNodeTest(); virtual ~NewClippingNodeTest(); bool _scrolling; - cocos2d::Vec2 _lastPoint; + axis::Vec2 _lastPoint; }; class NewDrawNodeTest : public MultiSceneTest @@ -114,9 +114,9 @@ public: protected: NewCullingTest(); virtual ~NewCullingTest(); - bool onTouchBegan(cocos2d::Touch* touch, cocos2d::Event* event); - void onTouchMoved(cocos2d::Touch* touch, cocos2d::Event* event); - cocos2d::Vec2 _lastPos; + bool onTouchBegan(axis::Touch* touch, axis::Event* event); + void onTouchMoved(axis::Touch* touch, axis::Event* event); + axis::Vec2 _lastPos; }; class SpriteCreation : public MultiSceneTest @@ -136,9 +136,9 @@ public: protected: int totalSprites = 1000; int suggestDelta = 100; - cocos2d::Label* _labelSpriteNum = nullptr; - cocos2d::Label* labelCreate = nullptr; - cocos2d::Label* labelDestory = nullptr; + axis::Label* _labelSpriteNum = nullptr; + axis::Label* labelCreate = nullptr; + axis::Label* labelDestory = nullptr; SpriteCreation(); virtual ~SpriteCreation(); }; @@ -168,7 +168,7 @@ protected: CaptureScreenTest(); ~CaptureScreenTest(); - void onCaptured(cocos2d::Ref*); + void onCaptured(axis::Ref*); void afterCaptured(bool succeed, std::string_view outputFile); std::string _filename; @@ -187,7 +187,7 @@ protected: CaptureNodeTest(); ~CaptureNodeTest(); - void onCaptured(cocos2d::Ref*); + void onCaptured(axis::Ref*); std::string _filename; }; @@ -224,8 +224,8 @@ public: protected: RendererUniformBatch(); - cocos2d::backend::ProgramState* createBlurProgramState(); - cocos2d::backend::ProgramState* createSepiaProgramState(); + axis::backend::ProgramState* createBlurProgramState(); + axis::backend::ProgramState* createSepiaProgramState(); }; class RendererUniformBatch2 : public MultiSceneTest @@ -238,8 +238,8 @@ public: protected: RendererUniformBatch2(); - cocos2d::backend::ProgramState* createBlurProgramState(); - cocos2d::backend::ProgramState* createSepiaProgramState(); + axis::backend::ProgramState* createBlurProgramState(); + axis::backend::ProgramState* createSepiaProgramState(); }; class NonBatchSprites : public MultiSceneTest @@ -274,7 +274,7 @@ protected: float _maDt = 1.0f / 60.0f; float _rmaDt = 1.0f / 60.0f; const float DEST_DT_30FPS = 1.0f / 30.0f; - cocos2d::Label* _totalSprites = nullptr; + axis::Label* _totalSprites = nullptr; Ticker _contSlow = Ticker(20); Ticker _contFast = Ticker(2); Ticker _around30fps = Ticker(60 * 3); diff --git a/tests/cpp-tests/Classes/NodeTest/NodeTest.cpp b/tests/cpp-tests/Classes/NodeTest/NodeTest.cpp index fe56e4bbd6..418989ae23 100644 --- a/tests/cpp-tests/Classes/NodeTest/NodeTest.cpp +++ b/tests/cpp-tests/Classes/NodeTest/NodeTest.cpp @@ -28,7 +28,7 @@ #include #include "../testResource.h" -USING_NS_CC; +USING_NS_AX; enum { diff --git a/tests/cpp-tests/Classes/NodeTest/NodeTest.h b/tests/cpp-tests/Classes/NodeTest/NodeTest.h index c26e3636fd..c492805a8f 100644 --- a/tests/cpp-tests/Classes/NodeTest/NodeTest.h +++ b/tests/cpp-tests/Classes/NodeTest/NodeTest.h @@ -41,7 +41,7 @@ protected: TestCocosNodeDemo(); virtual ~TestCocosNodeDemo(); - cocos2d::Director::Projection _preProjection; + axis::Director::Projection _preProjection; }; class NodeTest2 : public TestCocosNodeDemo @@ -208,8 +208,8 @@ public: protected: CameraTest1(); - cocos2d::Sprite* _sprite1; - cocos2d::Sprite* _sprite2; + axis::Sprite* _sprite1; + axis::Sprite* _sprite2; }; class CameraTest2 : public TestCocosNodeDemo @@ -224,15 +224,15 @@ public: protected: CameraTest2(); - cocos2d::Sprite* _sprite1; - cocos2d::Sprite* _sprite2; + axis::Sprite* _sprite1; + axis::Sprite* _sprite2; }; class ConvertToNode : public TestCocosNodeDemo { public: CREATE_FUNC(ConvertToNode); - void onTouchesEnded(const std::vector& touches, cocos2d::Event* event); + void onTouchesEnded(const std::vector& touches, axis::Event* event); virtual std::string title() const override; virtual std::string subtitle() const override; @@ -273,7 +273,7 @@ public: protected: NodeGlobalZValueTest(); - cocos2d::Sprite* _sprite; + axis::Sprite* _sprite; }; class NodeNormalizedPositionTest1 : public TestCocosNodeDemo @@ -298,7 +298,7 @@ protected: NodeNormalizedPositionTest2(); void update(float dt) override; - cocos2d::Size _copyContentSize; + axis::Size _copyContentSize; float _accum; }; @@ -314,7 +314,7 @@ protected: void update(float dt) override; float _accum; - cocos2d::Sprite* sprite; + axis::Sprite* sprite; }; class NodeNameTest : public TestCocosNodeDemo diff --git a/tests/cpp-tests/Classes/OpenURLTest/OpenURLTest.cpp b/tests/cpp-tests/Classes/OpenURLTest/OpenURLTest.cpp index a75891c6f4..2d397c0846 100644 --- a/tests/cpp-tests/Classes/OpenURLTest/OpenURLTest.cpp +++ b/tests/cpp-tests/Classes/OpenURLTest/OpenURLTest.cpp @@ -24,7 +24,7 @@ #include "OpenURLTest.h" -USING_NS_CC; +USING_NS_AX; OpenURLTests::OpenURLTests() { diff --git a/tests/cpp-tests/Classes/OpenURLTest/OpenURLTest.h b/tests/cpp-tests/Classes/OpenURLTest/OpenURLTest.h index 645f0fc9af..d96100c3fe 100644 --- a/tests/cpp-tests/Classes/OpenURLTest/OpenURLTest.h +++ b/tests/cpp-tests/Classes/OpenURLTest/OpenURLTest.h @@ -37,10 +37,10 @@ public: OpenURLTest(); ~OpenURLTest(); - void onTouchesEnded(const std::vector& touches, cocos2d::Event* event); + void onTouchesEnded(const std::vector& touches, axis::Event* event); private: - cocos2d::Label* _label; + axis::Label* _label; }; #endif // _OPEN_URL_TEST_H_ diff --git a/tests/cpp-tests/Classes/ParallaxTest/ParallaxTest.cpp b/tests/cpp-tests/Classes/ParallaxTest/ParallaxTest.cpp index 4b9f794aa0..4751a28a27 100644 --- a/tests/cpp-tests/Classes/ParallaxTest/ParallaxTest.cpp +++ b/tests/cpp-tests/Classes/ParallaxTest/ParallaxTest.cpp @@ -25,7 +25,7 @@ #include "ParallaxTest.h" #include "../testResource.h" -USING_NS_CC; +USING_NS_AX; enum { diff --git a/tests/cpp-tests/Classes/ParallaxTest/ParallaxTest.h b/tests/cpp-tests/Classes/ParallaxTest/ParallaxTest.h index e2073923c7..a128838512 100644 --- a/tests/cpp-tests/Classes/ParallaxTest/ParallaxTest.h +++ b/tests/cpp-tests/Classes/ParallaxTest/ParallaxTest.h @@ -32,15 +32,15 @@ DEFINE_TEST_SUITE(ParallaxTests); class ParallaxDemo : public TestCase { protected: - cocos2d::TextureAtlas* _atlas; + axis::TextureAtlas* _atlas; }; class Parallax1 : public ParallaxDemo { protected: - cocos2d::Node* _root; - cocos2d::Node* _target; - cocos2d::MotionStreak* _streak; + axis::Node* _root; + axis::Node* _target; + axis::MotionStreak* _streak; public: CREATE_FUNC(Parallax1); @@ -51,15 +51,15 @@ public: class Parallax2 : public ParallaxDemo { protected: - cocos2d::Node* _root; - cocos2d::Node* _target; - cocos2d::MotionStreak* _streak; + axis::Node* _root; + axis::Node* _target; + axis::MotionStreak* _streak; public: CREATE_FUNC(Parallax2); Parallax2(); - void onTouchesMoved(const std::vector& touches, cocos2d::Event* event); + void onTouchesMoved(const std::vector& touches, axis::Event* event); virtual std::string title() const override; }; @@ -67,16 +67,16 @@ public: class Issue2572 : public ParallaxDemo { protected: - cocos2d::ParallaxNode* _paraNode; + axis::ParallaxNode* _paraNode; float _moveTimer; float _addTimer; - cocos2d::Vector _childList; + axis::Vector _childList; ssize_t _preListSize; int _printCount; float _addChildStep; float _wholeMoveTime; - cocos2d::Vec2 _wholeMoveSize; + axis::Vec2 _wholeMoveSize; virtual void update(float dt) override; diff --git a/tests/cpp-tests/Classes/Particle3DTest/Particle3DTest.cpp b/tests/cpp-tests/Classes/Particle3DTest/Particle3DTest.cpp index e9be89ba14..42b909f51a 100644 --- a/tests/cpp-tests/Classes/Particle3DTest/Particle3DTest.cpp +++ b/tests/cpp-tests/Classes/Particle3DTest/Particle3DTest.cpp @@ -28,7 +28,7 @@ #include "Particle3D/CCParticleSystem3D.h" #include "Particle3D/PU/CCPUParticleSystem3D.h" -USING_NS_CC; +USING_NS_AX; #define PARTICLE_SYSTEM_TAG 0x0001 @@ -90,9 +90,9 @@ bool Particle3DTestDemo::init() return true; } -void Particle3DTestDemo::onTouchesBegan(const std::vector& touches, cocos2d::Event* event) {} +void Particle3DTestDemo::onTouchesBegan(const std::vector& touches, axis::Event* event) {} -void Particle3DTestDemo::onTouchesMoved(const std::vector& touches, cocos2d::Event* event) +void Particle3DTestDemo::onTouchesMoved(const std::vector& touches, axis::Event* event) { if (touches.size()) { @@ -105,7 +105,7 @@ void Particle3DTestDemo::onTouchesMoved(const std::vector& touches, coco } } -void Particle3DTestDemo::onTouchesEnded(const std::vector& touches, cocos2d::Event* event) {} +void Particle3DTestDemo::onTouchesEnded(const std::vector& touches, axis::Event* event) {} Particle3DTestDemo::Particle3DTestDemo(void) : _angle(0.0f) {} diff --git a/tests/cpp-tests/Classes/Particle3DTest/Particle3DTest.h b/tests/cpp-tests/Classes/Particle3DTest/Particle3DTest.h index 2e3af2fdc0..f47c0eb33d 100644 --- a/tests/cpp-tests/Classes/Particle3DTest/Particle3DTest.h +++ b/tests/cpp-tests/Classes/Particle3DTest/Particle3DTest.h @@ -44,14 +44,14 @@ public: virtual std::string title() const override; virtual void update(float delta) override; - void onTouchesBegan(const std::vector& touches, cocos2d::Event* event); - void onTouchesMoved(const std::vector& touches, cocos2d::Event* event); - void onTouchesEnded(const std::vector& touches, cocos2d::Event* event); + void onTouchesBegan(const std::vector& touches, axis::Event* event); + void onTouchesMoved(const std::vector& touches, axis::Event* event); + void onTouchesEnded(const std::vector& touches, axis::Event* event); protected: std::string _title; - cocos2d::Camera* _camera; - cocos2d::Label* _particleLab; + axis::Camera* _camera; + axis::Label* _particleLab; float _angle; }; diff --git a/tests/cpp-tests/Classes/ParticleTest/ParticleTest.cpp b/tests/cpp-tests/Classes/ParticleTest/ParticleTest.cpp index da79cbea3f..b5ba510e8c 100644 --- a/tests/cpp-tests/Classes/ParticleTest/ParticleTest.cpp +++ b/tests/cpp-tests/Classes/ParticleTest/ParticleTest.cpp @@ -26,7 +26,7 @@ #include "../testResource.h" #include "cocostudio/CocosStudioExtension.h" -USING_NS_CC; +USING_NS_AX; enum { diff --git a/tests/cpp-tests/Classes/ParticleTest/ParticleTest.h b/tests/cpp-tests/Classes/ParticleTest/ParticleTest.h index 061c57b823..aaf53e7765 100644 --- a/tests/cpp-tests/Classes/ParticleTest/ParticleTest.h +++ b/tests/cpp-tests/Classes/ParticleTest/ParticleTest.h @@ -32,9 +32,9 @@ DEFINE_TEST_SUITE(ParticleTests); class ParticleDemo : public TestCase { protected: - cocos2d::ParticleSystemQuad* _emitter; - cocos2d::Sprite* _background; - cocos2d::LayerColor* _color; + axis::ParticleSystemQuad* _emitter; + axis::Sprite* _background; + axis::LayerColor* _color; public: ~ParticleDemo(); @@ -44,11 +44,11 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; - void toggleCallback(cocos2d::Ref* sender); + void toggleCallback(axis::Ref* sender); - void onTouchesBegan(const std::vector& touches, cocos2d::Event* event); - void onTouchesMoved(const std::vector& touches, cocos2d::Event* event); - void onTouchesEnded(const std::vector& touches, cocos2d::Event* event); + void onTouchesBegan(const std::vector& touches, axis::Event* event); + void onTouchesMoved(const std::vector& touches, axis::Event* event); + void onTouchesEnded(const std::vector& touches, axis::Event* event); virtual void update(float dt) override; void setEmitterPosition(); @@ -484,8 +484,8 @@ public: virtual std::string subtitle() const override; private: - cocos2d::Node* _parent1; - cocos2d::Node* _parent2; + axis::Node* _parent1; + axis::Node* _parent2; }; class ParticleBatchMultipleEmitters : public ParticleDemo @@ -542,7 +542,7 @@ public: virtual std::string subtitle() const override; private: - cocos2d::ParticleBatchNode* _batchNode; + axis::ParticleBatchNode* _batchNode; }; class ReorderParticleSystems : public ParticleDemo @@ -556,7 +556,7 @@ public: virtual std::string subtitle() const override; private: - cocos2d::ParticleBatchNode* _batchNode; + axis::ParticleBatchNode* _batchNode; }; class PremultipliedAlphaTest : public ParticleDemo diff --git a/tests/cpp-tests/Classes/Physics3DTest/Physics3DTest.cpp b/tests/cpp-tests/Classes/Physics3DTest/Physics3DTest.cpp index 56a60da5b3..8ede42f65e 100644 --- a/tests/cpp-tests/Classes/Physics3DTest/Physics3DTest.cpp +++ b/tests/cpp-tests/Classes/Physics3DTest/Physics3DTest.cpp @@ -30,8 +30,8 @@ #include "3d/CCBundle3D.h" #include "physics3d/CCPhysics3D.h" #include "extensions/Particle3D/PU/CCPUParticleSystem3D.h" -USING_NS_CC_EXT; -USING_NS_CC; +USING_NS_AX_EXT; +USING_NS_AX; enum { @@ -48,7 +48,7 @@ enum #define ARRAY_SIZE_Y 3 #define ARRAY_SIZE_Z 4 -static cocos2d::Scene* physicsScene = nullptr; +static axis::Scene* physicsScene = nullptr; Physics3DTests::Physics3DTests() { @@ -139,13 +139,13 @@ bool Physics3DTestDemo::init() return false; } -void Physics3DTestDemo::onTouchesBegan(const std::vector& touches, cocos2d::Event* event) +void Physics3DTestDemo::onTouchesBegan(const std::vector& touches, axis::Event* event) { _needShootBox = true; event->stopPropagation(); } -void Physics3DTestDemo::onTouchesMoved(const std::vector& touches, cocos2d::Event* event) +void Physics3DTestDemo::onTouchesMoved(const std::vector& touches, axis::Event* event) { if (touches.size() && _camera) { @@ -164,7 +164,7 @@ void Physics3DTestDemo::onTouchesMoved(const std::vector& touches, cocos } } -void Physics3DTestDemo::onTouchesEnded(const std::vector& touches, cocos2d::Event* event) +void Physics3DTestDemo::onTouchesEnded(const std::vector& touches, axis::Event* event) { if (!_needShootBox) return; @@ -187,7 +187,7 @@ void Physics3DTestDemo::update(float /*delta*/) {} Physics3DTestDemo::~Physics3DTestDemo() {} -void Physics3DTestDemo::shootBox(const cocos2d::Vec3& des) +void Physics3DTestDemo::shootBox(const axis::Vec3& des) { Physics3DRigidBodyDes rbDes; Vec3 linearVel = des - _camera->getPosition3D(); @@ -502,7 +502,7 @@ bool Physics3DConstraintDemo::init() return true; } -void Physics3DConstraintDemo::onTouchesBegan(const std::vector& touches, cocos2d::Event* event) +void Physics3DConstraintDemo::onTouchesBegan(const std::vector& touches, axis::Event* event) { // ray trace if (_camera) @@ -534,7 +534,7 @@ void Physics3DConstraintDemo::onTouchesBegan(const std::vector& Physics3DTestDemo::onTouchesBegan(touches, event); _needShootBox = false; } -void Physics3DConstraintDemo::onTouchesMoved(const std::vector& touches, cocos2d::Event* event) +void Physics3DConstraintDemo::onTouchesMoved(const std::vector& touches, axis::Event* event) { if (_constraint) { @@ -554,7 +554,7 @@ void Physics3DConstraintDemo::onTouchesMoved(const std::vector& } Physics3DTestDemo::onTouchesMoved(touches, event); } -void Physics3DConstraintDemo::onTouchesEnded(const std::vector& touches, cocos2d::Event* event) +void Physics3DConstraintDemo::onTouchesEnded(const std::vector& touches, axis::Event* event) { if (_constraint) { diff --git a/tests/cpp-tests/Classes/Physics3DTest/Physics3DTest.h b/tests/cpp-tests/Classes/Physics3DTest/Physics3DTest.h index b4151c8644..083c5142f1 100644 --- a/tests/cpp-tests/Classes/Physics3DTest/Physics3DTest.h +++ b/tests/cpp-tests/Classes/Physics3DTest/Physics3DTest.h @@ -29,10 +29,11 @@ #include "../BaseTest.h" #include -namespace cocos2d -{ +NS_AX_BEGIN + class Physics3DConstraint; -} + +NS_AX_END DEFINE_TEST_SUITE(Physics3DTests); @@ -59,16 +60,16 @@ public: virtual std::string subtitle() const override; virtual void update(float delta) override; - virtual void onTouchesBegan(const std::vector& touches, cocos2d::Event* event); - virtual void onTouchesMoved(const std::vector& touches, cocos2d::Event* event); - virtual void onTouchesEnded(const std::vector& touches, cocos2d::Event* event); + virtual void onTouchesBegan(const std::vector& touches, axis::Event* event); + virtual void onTouchesMoved(const std::vector& touches, axis::Event* event); + virtual void onTouchesEnded(const std::vector& touches, axis::Event* event); protected: - void shootBox(const cocos2d::Vec3& des); + void shootBox(const axis::Vec3& des); protected: std::string _title; - cocos2d::Camera* _camera = nullptr; + axis::Camera* _camera = nullptr; float _angle = 0.f; bool _needShootBox = false; }; @@ -96,12 +97,12 @@ public: virtual bool init() override; - virtual void onTouchesBegan(const std::vector& touches, cocos2d::Event* event) override; - virtual void onTouchesMoved(const std::vector& touches, cocos2d::Event* event) override; - virtual void onTouchesEnded(const std::vector& touches, cocos2d::Event* event) override; + virtual void onTouchesBegan(const std::vector& touches, axis::Event* event) override; + virtual void onTouchesMoved(const std::vector& touches, axis::Event* event) override; + virtual void onTouchesEnded(const std::vector& touches, axis::Event* event) override; protected: - cocos2d::Physics3DConstraint* _constraint; // for picking + axis::Physics3DConstraint* _constraint; // for picking float _pickingDistance; // picking distance }; diff --git a/tests/cpp-tests/Classes/PhysicsTest/PhysicsTest.cpp b/tests/cpp-tests/Classes/PhysicsTest/PhysicsTest.cpp index cc4b795e5a..e2dd28fd18 100644 --- a/tests/cpp-tests/Classes/PhysicsTest/PhysicsTest.cpp +++ b/tests/cpp-tests/Classes/PhysicsTest/PhysicsTest.cpp @@ -30,7 +30,7 @@ # include "ui/CocosGUI.h" # include "../testResource.h" -USING_NS_CC; +USING_NS_AX; PhysicsTests::PhysicsTests() { diff --git a/tests/cpp-tests/Classes/PhysicsTest/PhysicsTest.h b/tests/cpp-tests/Classes/PhysicsTest/PhysicsTest.h index 28090bf303..803ef2a55f 100644 --- a/tests/cpp-tests/Classes/PhysicsTest/PhysicsTest.h +++ b/tests/cpp-tests/Classes/PhysicsTest/PhysicsTest.h @@ -42,31 +42,31 @@ public: virtual void onEnter() override; virtual std::string title() const override; - void toggleDebugCallback(cocos2d::Ref* sender); + void toggleDebugCallback(axis::Ref* sender); - cocos2d::Sprite* addGrossiniAtPosition(cocos2d::Vec2 p, float scale = 1.0); - cocos2d::Sprite* makeBall(cocos2d::Vec2 point, + axis::Sprite* addGrossiniAtPosition(axis::Vec2 p, float scale = 1.0); + axis::Sprite* makeBall(axis::Vec2 point, float radius, - cocos2d::PhysicsMaterial material = cocos2d::PHYSICSBODY_MATERIAL_DEFAULT); - cocos2d::Sprite* makeBox(cocos2d::Vec2 point, - cocos2d::Size size, + axis::PhysicsMaterial material = axis::PHYSICSBODY_MATERIAL_DEFAULT); + axis::Sprite* makeBox(axis::Vec2 point, + axis::Size size, int color = 0, - cocos2d::PhysicsMaterial material = cocos2d::PHYSICSBODY_MATERIAL_DEFAULT); - cocos2d::Sprite* makeTriangle(cocos2d::Vec2 point, - cocos2d::Size size, + axis::PhysicsMaterial material = axis::PHYSICSBODY_MATERIAL_DEFAULT); + axis::Sprite* makeTriangle(axis::Vec2 point, + axis::Size size, int color = 0, - cocos2d::PhysicsMaterial material = cocos2d::PHYSICSBODY_MATERIAL_DEFAULT); + axis::PhysicsMaterial material = axis::PHYSICSBODY_MATERIAL_DEFAULT); - bool onTouchBegan(cocos2d::Touch* touch, cocos2d::Event* event); - void onTouchMoved(cocos2d::Touch* touch, cocos2d::Event* event); - void onTouchEnded(cocos2d::Touch* touch, cocos2d::Event* event); + bool onTouchBegan(axis::Touch* touch, axis::Event* event); + void onTouchMoved(axis::Touch* touch, axis::Event* event); + void onTouchEnded(axis::Touch* touch, axis::Event* event); void toggleDebug(); protected: - cocos2d::Texture2D* _spriteTexture; - cocos2d::SpriteBatchNode* _ball; - std::unordered_map _mouses; + axis::Texture2D* _spriteTexture; + axis::SpriteBatchNode* _ball; + std::unordered_map _mouses; bool _debugDraw; }; @@ -88,8 +88,8 @@ public: void onEnter() override; virtual std::string subtitle() const override; - void onTouchesEnded(const std::vector& touches, cocos2d::Event* event); - void onAcceleration(cocos2d::Acceleration* acc, cocos2d::Event* event); + void onTouchesEnded(const std::vector& touches, axis::Event* event); + void onAcceleration(axis::Acceleration* acc, axis::Event* event); }; class PhysicsDemoPyramidStack : public PhysicsDemo @@ -112,15 +112,15 @@ public: void onEnter() override; virtual std::string title() const override; void update(float delta) override; - void onTouchesEnded(const std::vector& touches, cocos2d::Event* event); + void onTouchesEnded(const std::vector& touches, axis::Event* event); - void changeModeCallback(cocos2d::Ref* sender); + void changeModeCallback(axis::Ref* sender); - bool anyRay(cocos2d::PhysicsWorld& world, const cocos2d::PhysicsRayCastInfo& info, void* data); + bool anyRay(axis::PhysicsWorld& world, const axis::PhysicsRayCastInfo& info, void* data); private: float _angle; - cocos2d::DrawNode* _node; + axis::DrawNode* _node; int _mode; }; @@ -152,9 +152,9 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; - bool onTouchBegan(cocos2d::Touch* touch, cocos2d::Event* event); - void onTouchMoved(cocos2d::Touch* touch, cocos2d::Event* event); - void onTouchEnded(cocos2d::Touch* touch, cocos2d::Event* event); + bool onTouchBegan(axis::Touch* touch, axis::Event* event); + void onTouchMoved(axis::Touch* touch, axis::Event* event); + void onTouchEnded(axis::Touch* touch, axis::Event* event); private: float _distance; @@ -169,7 +169,7 @@ public: void onEnter() override; virtual std::string title() const override; - bool onContactBegin(cocos2d::PhysicsContact& contact); + bool onContactBegin(axis::PhysicsContact& contact); }; class PhysicsDemoSlice : public PhysicsDemo @@ -181,10 +181,10 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; - bool slice(cocos2d::PhysicsWorld& world, const cocos2d::PhysicsRayCastInfo& info, void* data); - void clipPoly(cocos2d::PhysicsShapePolygon* shape, cocos2d::Vec2 normal, float distance); + bool slice(axis::PhysicsWorld& world, const axis::PhysicsRayCastInfo& info, void* data); + void clipPoly(axis::PhysicsShapePolygon* shape, axis::Vec2 normal, float distance); - void onTouchEnded(cocos2d::Touch* touch, cocos2d::Event* event); + void onTouchEnded(axis::Touch* touch, axis::Event* event); private: int _sliceTag; @@ -207,12 +207,12 @@ public: void onEnter() override; void resetTest(); - bool onContactBegin(cocos2d::PhysicsContact& contact); + bool onContactBegin(axis::PhysicsContact& contact); virtual std::string title() const override; virtual std::string subtitle() const override; - void onDecrease(cocos2d::Ref* sender); - void onIncrease(cocos2d::Ref* sender); + void onDecrease(axis::Ref* sender); + void onIncrease(axis::Ref* sender); private: int _yellowBoxNum; @@ -251,13 +251,13 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; - void changeBodyCallback(cocos2d::Ref* sender); + void changeBodyCallback(axis::Ref* sender); private: - cocos2d::Sprite* _nodeA; - cocos2d::Sprite* _nodeB; - cocos2d::PhysicsBody* _body; - cocos2d::MenuItemFont* _button; + axis::Sprite* _nodeA; + axis::Sprite* _nodeB; + axis::PhysicsBody* _body; + axis::MenuItemFont* _button; bool _bodyInA; }; @@ -281,11 +281,11 @@ public: void onEnter() override; virtual std::string title() const override; - bool onTouchBegan(cocos2d::Touch* touch, cocos2d::Event* event); + bool onTouchBegan(axis::Touch* touch, axis::Event* event); private: - cocos2d::Sprite* _parentSprite; - cocos2d::Layer* _rootLayer; + axis::Sprite* _parentSprite; + axis::Layer* _rootLayer; }; class PhysicsIssue9959 : public PhysicsDemo diff --git a/tests/cpp-tests/Classes/ReleasePoolTest/ReleasePoolTest.cpp b/tests/cpp-tests/Classes/ReleasePoolTest/ReleasePoolTest.cpp index 2fb1d3512b..6fb7594aad 100644 --- a/tests/cpp-tests/Classes/ReleasePoolTest/ReleasePoolTest.cpp +++ b/tests/cpp-tests/Classes/ReleasePoolTest/ReleasePoolTest.cpp @@ -24,7 +24,7 @@ #include "ReleasePoolTest.h" -using namespace cocos2d; +USING_NS_AX; ReleasePoolTests::ReleasePoolTests() { diff --git a/tests/cpp-tests/Classes/RenderTextureTest/RenderTextureTest.cpp b/tests/cpp-tests/Classes/RenderTextureTest/RenderTextureTest.cpp index 0b0963463d..18d1ec4e11 100644 --- a/tests/cpp-tests/Classes/RenderTextureTest/RenderTextureTest.cpp +++ b/tests/cpp-tests/Classes/RenderTextureTest/RenderTextureTest.cpp @@ -24,8 +24,8 @@ #include "RenderTextureTest.h" -USING_NS_CC; -using namespace cocos2d::ui; +USING_NS_AX; +using namespace axis::ui; RenderTextureTests::RenderTextureTests() { @@ -85,17 +85,17 @@ std::string RenderTextureSave::subtitle() const return "Press 'Save Image' to create an snapshot of the render texture"; } -void RenderTextureSave::clearImage(cocos2d::Ref* sender) +void RenderTextureSave::clearImage(axis::Ref* sender) { _target->clear(CCRANDOM_0_1(), CCRANDOM_0_1(), CCRANDOM_0_1(), CCRANDOM_0_1()); } -void RenderTextureSave::clearImageTransparent(cocos2d::Ref* sender) +void RenderTextureSave::clearImageTransparent(axis::Ref* sender) { _target->clear(0, 0, 0, 0); } -void RenderTextureSave::saveImageWithPremultipliedAlpha(cocos2d::Ref* sender) +void RenderTextureSave::saveImageWithPremultipliedAlpha(axis::Ref* sender) { static int counter = 0; @@ -120,7 +120,7 @@ void RenderTextureSave::saveImageWithPremultipliedAlpha(cocos2d::Ref* sender) counter++; } -void RenderTextureSave::saveImageWithNonPremultipliedAlpha(cocos2d::Ref* sender) +void RenderTextureSave::saveImageWithNonPremultipliedAlpha(axis::Ref* sender) { static int counter = 0; @@ -146,7 +146,7 @@ void RenderTextureSave::saveImageWithNonPremultipliedAlpha(cocos2d::Ref* sender) counter++; } -void RenderTextureSave::addImage(cocos2d::Ref* sender) +void RenderTextureSave::addImage(axis::Ref* sender) { auto s = Director::getInstance()->getWinSize(); diff --git a/tests/cpp-tests/Classes/RenderTextureTest/RenderTextureTest.h b/tests/cpp-tests/Classes/RenderTextureTest/RenderTextureTest.h index 115946760d..7402c63a4e 100644 --- a/tests/cpp-tests/Classes/RenderTextureTest/RenderTextureTest.h +++ b/tests/cpp-tests/Classes/RenderTextureTest/RenderTextureTest.h @@ -42,16 +42,16 @@ public: ~RenderTextureSave(); virtual std::string title() const override; virtual std::string subtitle() const override; - void onTouchesMoved(const std::vector& touches, cocos2d::Event* event); - void clearImage(cocos2d::Ref* pSender); - void clearImageTransparent(cocos2d::Ref* sender); - void saveImageWithPremultipliedAlpha(cocos2d::Ref* pSender); - void saveImageWithNonPremultipliedAlpha(cocos2d::Ref* pSender); - void addImage(cocos2d::Ref* sender); + void onTouchesMoved(const std::vector& touches, axis::Event* event); + void clearImage(axis::Ref* pSender); + void clearImageTransparent(axis::Ref* sender); + void saveImageWithPremultipliedAlpha(axis::Ref* pSender); + void saveImageWithNonPremultipliedAlpha(axis::Ref* pSender); + void addImage(axis::Ref* sender); private: - cocos2d::RenderTexture* _target; - cocos2d::Vector _brushs; + axis::RenderTexture* _target; + axis::Vector _brushs; }; class RenderTextureIssue937 : public RenderTextureTest @@ -69,26 +69,26 @@ public: CREATE_FUNC(RenderTextureZbuffer); RenderTextureZbuffer(); - void onTouchesMoved(const std::vector& touches, cocos2d::Event* event); - void onTouchesBegan(const std::vector& touches, cocos2d::Event* event); - void onTouchesEnded(const std::vector& touches, cocos2d::Event* event); + void onTouchesMoved(const std::vector& touches, axis::Event* event); + void onTouchesBegan(const std::vector& touches, axis::Event* event); + void onTouchesEnded(const std::vector& touches, axis::Event* event); virtual std::string title() const override; virtual std::string subtitle() const override; void renderScreenShot(); private: - cocos2d::SpriteBatchNode* mgr; + axis::SpriteBatchNode* mgr; - cocos2d::Sprite* sp1; - cocos2d::Sprite* sp2; - cocos2d::Sprite* sp3; - cocos2d::Sprite* sp4; - cocos2d::Sprite* sp5; - cocos2d::Sprite* sp6; - cocos2d::Sprite* sp7; - cocos2d::Sprite* sp8; - cocos2d::Sprite* sp9; + axis::Sprite* sp1; + axis::Sprite* sp2; + axis::Sprite* sp3; + axis::Sprite* sp4; + axis::Sprite* sp5; + axis::Sprite* sp6; + axis::Sprite* sp7; + axis::Sprite* sp8; + axis::Sprite* sp9; }; class RenderTextureTestDepthStencil : public RenderTextureTest @@ -99,28 +99,28 @@ public: virtual ~RenderTextureTestDepthStencil(); virtual std::string title() const override; virtual std::string subtitle() const override; - virtual void draw(cocos2d::Renderer* renderer, const cocos2d::Mat4& transform, uint32_t flags) override; + virtual void draw(axis::Renderer* renderer, const axis::Mat4& transform, uint32_t flags) override; private: -// cocos2d::CallbackCommand _renderCmds[4]; +// axis::CallbackCommand _renderCmds[4]; void onBeforeClear(); void onBeforeStencil(); void onBeforeDraw(); void onAfterDraw(); private: - cocos2d::Renderer* _renderer; - cocos2d::backend::DepthStencilDescriptor _dsDesc; - cocos2d::RenderTexture* _rtx; - cocos2d::Sprite* _spriteDS; - cocos2d::Sprite* _spriteDraw; + axis::Renderer* _renderer; + axis::backend::DepthStencilDescriptor _dsDesc; + axis::RenderTexture* _rtx; + axis::Sprite* _spriteDS; + axis::Sprite* _spriteDraw; }; class RenderTextureTargetNode : public RenderTextureTest { private: - cocos2d::Sprite *sprite1, *sprite2; - cocos2d::RenderTexture* renderTexture; + axis::Sprite *sprite1, *sprite2; + axis::RenderTexture* renderTexture; public: CREATE_FUNC(RenderTextureTargetNode); @@ -130,7 +130,7 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; - void touched(cocos2d::Ref* sender); + void touched(axis::Ref* sender); }; class RenderTexturePartTest : public RenderTextureTest @@ -143,34 +143,34 @@ public: virtual std::string subtitle() const override; private: - cocos2d::RenderTexture* _rend; - cocos2d::Sprite* _spriteDraw; + axis::RenderTexture* _rend; + axis::Sprite* _spriteDraw; }; class SpriteRenderTextureBug : public RenderTextureTest { public: - class SimpleSprite : public cocos2d::Sprite + class SimpleSprite : public axis::Sprite { public: - static SimpleSprite* create(const char* filename, const cocos2d::Rect& rect); + static SimpleSprite* create(const char* filename, const axis::Rect& rect); SimpleSprite(); ~SimpleSprite(); - virtual void draw(cocos2d::Renderer* renderer, const cocos2d::Mat4& transform, uint32_t flags); + virtual void draw(axis::Renderer* renderer, const axis::Mat4& transform, uint32_t flags); public: - cocos2d::RenderTexture* _rt; + axis::RenderTexture* _rt; }; public: CREATE_FUNC(SpriteRenderTextureBug); SpriteRenderTextureBug(); - void onTouchesEnded(const std::vector& touches, cocos2d::Event* event); + void onTouchesEnded(const std::vector& touches, axis::Event* event); virtual std::string title() const override; virtual std::string subtitle() const override; - SimpleSprite* addNewSpriteWithCoords(const cocos2d::Vec2& p); + SimpleSprite* addNewSpriteWithCoords(const axis::Vec2& p); }; class Issue16113Test : public RenderTextureTest diff --git a/tests/cpp-tests/Classes/RotateWorldTest/RotateWorldTest.cpp b/tests/cpp-tests/Classes/RotateWorldTest/RotateWorldTest.cpp index 9399b428f0..367140338b 100644 --- a/tests/cpp-tests/Classes/RotateWorldTest/RotateWorldTest.cpp +++ b/tests/cpp-tests/Classes/RotateWorldTest/RotateWorldTest.cpp @@ -25,7 +25,7 @@ #include "RotateWorldTest.h" #include "../testResource.h" -USING_NS_CC; +USING_NS_AX; RotateWorldTests::RotateWorldTests() { diff --git a/tests/cpp-tests/Classes/RotateWorldTest/RotateWorldTest.h b/tests/cpp-tests/Classes/RotateWorldTest/RotateWorldTest.h index 363aa1478d..4f738c34a1 100644 --- a/tests/cpp-tests/Classes/RotateWorldTest/RotateWorldTest.h +++ b/tests/cpp-tests/Classes/RotateWorldTest/RotateWorldTest.h @@ -37,14 +37,14 @@ public: virtual bool init() override; }; -class SpriteLayer : public cocos2d::Layer +class SpriteLayer : public axis::Layer { public: virtual void onEnter() override; CREATE_FUNC(SpriteLayer) }; -class TestLayer : public cocos2d::Layer +class TestLayer : public axis::Layer { public: virtual void onEnter() override; @@ -52,7 +52,7 @@ public: CREATE_FUNC(TestLayer) }; -class RotateWorldMainLayer : public cocos2d::Layer +class RotateWorldMainLayer : public axis::Layer { public: virtual void onEnter() override; diff --git a/tests/cpp-tests/Classes/Scene3DTest/Scene3DTest.cpp b/tests/cpp-tests/Classes/Scene3DTest/Scene3DTest.cpp index 33533a2858..3c0c0befef 100644 --- a/tests/cpp-tests/Classes/Scene3DTest/Scene3DTest.cpp +++ b/tests/cpp-tests/Classes/Scene3DTest/Scene3DTest.cpp @@ -31,7 +31,7 @@ #include "../testResource.h" #include "../TerrainTest/TerrainTest.h" -USING_NS_CC; +USING_NS_AX; using namespace spine; class SkeletonAnimationCullingFix : public SkeletonAnimation @@ -39,11 +39,11 @@ class SkeletonAnimationCullingFix : public SkeletonAnimation public: SkeletonAnimationCullingFix() : SkeletonAnimation() {} - virtual void draw(cocos2d::Renderer* renderer, const cocos2d::Mat4& transform, uint32_t transformFlags) override + virtual void draw(axis::Renderer* renderer, const axis::Mat4& transform, uint32_t transformFlags) override { glDisable(GL_CULL_FACE); SkeletonAnimation::draw(renderer, transform, transformFlags); - RenderState::StateBlock::invalidate(cocos2d::RenderState::StateBlock::RS_ALL_ONES); + RenderState::StateBlock::invalidate(axis::RenderState::StateBlock::RS_ALL_ONES); } static SkeletonAnimationCullingFix* createWithFile(std::string_view skeletonDataFile, @@ -100,7 +100,7 @@ private: // init in createWorld3D() TextureCube* _textureCube; Skybox* _skyBox; - cocos2d::Terrain* _terrain; + axis::Terrain* _terrain; Player* _player; Node* _monsters[2]; @@ -130,7 +130,7 @@ private: std::vector _skins[(int)SkinType::MAX_TYPE]; // all skins int _curSkin[(int)SkinType::MAX_TYPE]; // current skin index - cocos2d::MeshRenderer* _reskinGirl; + axis::MeshRenderer* _reskinGirl; // for capture screen static const int SNAPSHOT_TAG = 119; diff --git a/tests/cpp-tests/Classes/SceneTest/SceneTest.cpp b/tests/cpp-tests/Classes/SceneTest/SceneTest.cpp index 89bcb337f8..8ab329dbca 100644 --- a/tests/cpp-tests/Classes/SceneTest/SceneTest.cpp +++ b/tests/cpp-tests/Classes/SceneTest/SceneTest.cpp @@ -25,7 +25,7 @@ #include "SceneTest.h" #include "../testResource.h" -USING_NS_CC; +USING_NS_AX; SceneTests::SceneTests() { diff --git a/tests/cpp-tests/Classes/SceneTest/SceneTest.h b/tests/cpp-tests/Classes/SceneTest/SceneTest.h index a134a84896..dfe4cdca2a 100644 --- a/tests/cpp-tests/Classes/SceneTest/SceneTest.h +++ b/tests/cpp-tests/Classes/SceneTest/SceneTest.h @@ -30,7 +30,7 @@ DEFINE_TEST_SUITE(SceneTests); -class SceneTestLayer1 : public cocos2d::Layer +class SceneTestLayer1 : public axis::Layer { public: CREATE_FUNC(SceneTestLayer1); @@ -42,12 +42,12 @@ public: virtual void onEnterTransitionDidFinish() override; void testDealloc(float dt); - void onPushScene(cocos2d::Ref* sender); - void onPushSceneTran(cocos2d::Ref* sender); - void onQuit(cocos2d::Ref* sender); + void onPushScene(axis::Ref* sender); + void onPushSceneTran(axis::Ref* sender); + void onQuit(axis::Ref* sender); }; -class SceneTestLayer2 : public cocos2d::Layer +class SceneTestLayer2 : public axis::Layer { float _timeCounter; @@ -57,12 +57,12 @@ public: SceneTestLayer2(); void testDealloc(float dt); - void onGoBack(cocos2d::Ref* sender); - void onReplaceScene(cocos2d::Ref* sender); - void onReplaceSceneTran(cocos2d::Ref* sender); + void onGoBack(axis::Ref* sender); + void onReplaceScene(axis::Ref* sender); + void onReplaceSceneTran(axis::Ref* sender); }; -class SceneTestLayer3 : public cocos2d::LayerColor +class SceneTestLayer3 : public axis::LayerColor { public: CREATE_FUNC(SceneTestLayer3); @@ -71,10 +71,10 @@ public: virtual bool init() override; virtual void testDealloc(float dt); - void item0Clicked(cocos2d::Ref* sender); - void item1Clicked(cocos2d::Ref* sender); - void item2Clicked(cocos2d::Ref* sender); - void item3Clicked(cocos2d::Ref* sender); + void item0Clicked(axis::Ref* sender); + void item1Clicked(axis::Ref* sender); + void item2Clicked(axis::Ref* sender); + void item3Clicked(axis::Ref* sender); }; class SceneTestScene : public TestCase diff --git a/tests/cpp-tests/Classes/SchedulerTest/SchedulerTest.cpp b/tests/cpp-tests/Classes/SchedulerTest/SchedulerTest.cpp index 8870bfaa7b..6272d15a0a 100644 --- a/tests/cpp-tests/Classes/SchedulerTest/SchedulerTest.cpp +++ b/tests/cpp-tests/Classes/SchedulerTest/SchedulerTest.cpp @@ -27,9 +27,9 @@ #include "ui/UIText.h" #include "controller.h" -USING_NS_CC; -USING_NS_CC_EXT; -using namespace cocos2d::ui; +USING_NS_AX; +USING_NS_AX_EXT; +using namespace axis::ui; enum { @@ -1004,7 +1004,7 @@ public: ~TestNode2() { - cocos2d::log("Delete TestNode (should not crash)"); + axis::log("Delete TestNode (should not crash)"); this->unscheduleAllCallbacks(); } @@ -1383,7 +1383,7 @@ void SchedulerRemoveEntryWhileUpdate::onExit() SchedulerTestLayer::onExit(); } -SchedulerRemoveEntryWhileUpdate::TestClass::TestClass(int index, TestClass* nextObj, cocos2d::Scheduler* scheduler) +SchedulerRemoveEntryWhileUpdate::TestClass::TestClass(int index, TestClass* nextObj, axis::Scheduler* scheduler) : _nextObj(nextObj), _index(index), _scheduler(scheduler) {} @@ -1446,7 +1446,7 @@ void SchedulerRemoveSelectorDuringCall::callback(float) { if (!_scheduled) { - cocos2d::log("Error: unscheduled callback must not be called."); + axis::log("Error: unscheduled callback must not be called."); return; } diff --git a/tests/cpp-tests/Classes/SchedulerTest/SchedulerTest.h b/tests/cpp-tests/Classes/SchedulerTest/SchedulerTest.h index d0b4b2b153..03ef311998 100644 --- a/tests/cpp-tests/Classes/SchedulerTest/SchedulerTest.h +++ b/tests/cpp-tests/Classes/SchedulerTest/SchedulerTest.h @@ -222,7 +222,7 @@ public: void stopUpdate(float dt); }; -class TestNode : public cocos2d::Node +class TestNode : public axis::Node { public: CREATE_FUNC(TestNode); @@ -272,9 +272,9 @@ public: void onExit() override; virtual std::string title() const override; virtual std::string subtitle() const override; - cocos2d::extension::ControlSlider* sliderCtl(); - void sliderAction(cocos2d::Ref* sender, cocos2d::extension::Control::EventType controlEvent); - cocos2d::extension::ControlSlider* _sliderCtl; + axis::extension::ControlSlider* sliderCtl(); + void sliderAction(axis::Ref* sender, axis::extension::Control::EventType controlEvent); + axis::extension::ControlSlider* _sliderCtl; }; class TwoSchedulers : public SchedulerTestLayer @@ -286,15 +286,15 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; void onEnter() override; - cocos2d::extension::ControlSlider* sliderCtl(); - void sliderAction(cocos2d::Ref* sender, cocos2d::extension::Control::EventType controlEvent); - cocos2d::Scheduler* sched1; - cocos2d::Scheduler* sched2; - cocos2d::ActionManager* actionManager1; - cocos2d::ActionManager* actionManager2; + axis::extension::ControlSlider* sliderCtl(); + void sliderAction(axis::Ref* sender, axis::extension::Control::EventType controlEvent); + axis::Scheduler* sched1; + axis::Scheduler* sched2; + axis::ActionManager* actionManager1; + axis::ActionManager* actionManager2; - cocos2d::extension::ControlSlider* sliderCtl1; - cocos2d::extension::ControlSlider* sliderCtl2; + axis::extension::ControlSlider* sliderCtl1; + axis::extension::ControlSlider* sliderCtl2; }; class SchedulerIssue2268 : public SchedulerTestLayer @@ -309,7 +309,7 @@ public: void update(float dt) override; private: - cocos2d::Node* testNode; + axis::Node* testNode; }; class SchedulerIssueWithReschedule : public SchedulerTestLayer @@ -349,7 +349,7 @@ public: virtual void update(float dt) override; - bool onTouchBegan(cocos2d::Touch* touch, cocos2d::Event* event); + bool onTouchBegan(axis::Touch* touch, axis::Event* event); }; class SchedulerIssue10232 : public SchedulerTestLayer @@ -376,7 +376,7 @@ public: void update(float dt) override; private: - cocos2d::Sprite* _sprite; + axis::Sprite* _sprite; }; class SchedulerIssue17149 : public SchedulerTestLayer @@ -432,13 +432,13 @@ private: class TestClass { public: - TestClass(int index, TestClass* nextObj, cocos2d::Scheduler* scheduler); + TestClass(int index, TestClass* nextObj, axis::Scheduler* scheduler); void update(float dt); private: TestClass* _nextObj = nullptr; int _index = 0; - cocos2d::Scheduler* _scheduler = nullptr; + axis::Scheduler* _scheduler = nullptr; bool _cleanedUp = false; }; std::vector _testvector; diff --git a/tests/cpp-tests/Classes/ShaderTest/ShaderTest.cpp b/tests/cpp-tests/Classes/ShaderTest/ShaderTest.cpp index 6ef94531ba..9319646c46 100644 --- a/tests/cpp-tests/Classes/ShaderTest/ShaderTest.cpp +++ b/tests/cpp-tests/Classes/ShaderTest/ShaderTest.cpp @@ -28,8 +28,8 @@ #include "renderer/ccShaders.h" #include "renderer/backend/Device.h" -USING_NS_CC; -USING_NS_CC_EXT; +USING_NS_AX; +USING_NS_AX_EXT; #define SET_UNIFORM(ps, name, value) \ do \ @@ -413,7 +413,7 @@ SpriteBlur* SpriteBlur::create(const char* pszFileName) { SpriteBlur* pRet = new SpriteBlur(); bool result = pRet->initWithFile(""); - cocos2d::log("Test call Sprite::initWithFile with bad file name result is : %s", result ? "true" : "false"); + axis::log("Test call Sprite::initWithFile with bad file name result is : %s", result ? "true" : "false"); if (pRet->initWithFile(pszFileName)) { diff --git a/tests/cpp-tests/Classes/ShaderTest/ShaderTest.h b/tests/cpp-tests/Classes/ShaderTest/ShaderTest.h index 3f00a11532..cd451f50fd 100644 --- a/tests/cpp-tests/Classes/ShaderTest/ShaderTest.h +++ b/tests/cpp-tests/Classes/ShaderTest/ShaderTest.h @@ -112,13 +112,13 @@ public: virtual std::string subtitle() const override; virtual bool init() override; void createSliderCtls(); - void onRadiusChanged(cocos2d::Ref* sender, cocos2d::extension::Control::EventType controlEvent); - void onSampleNumChanged(cocos2d::Ref* sender, cocos2d::extension::Control::EventType controlEvent); + void onRadiusChanged(axis::Ref* sender, axis::extension::Control::EventType controlEvent); + void onSampleNumChanged(axis::Ref* sender, axis::extension::Control::EventType controlEvent); protected: SpriteBlur* _blurSprite; - cocos2d::extension::ControlSlider* _sliderRadiusCtl; - cocos2d::extension::ControlSlider* _sliderNumCtrl; + axis::extension::ControlSlider* _sliderRadiusCtl; + axis::extension::ControlSlider* _sliderNumCtrl; }; class ShaderRetroEffect : public ShaderTestDemo @@ -132,19 +132,19 @@ public: virtual void update(float dt) override; protected: - cocos2d::Label* _label; + axis::Label* _label; float _accum; }; -class ShaderNode : public cocos2d::Node +class ShaderNode : public axis::Node { public: CREATE_FUNC(ShaderNode); static ShaderNode* shaderNodeWithVertex(std::string_view vert, std::string_view frag); virtual void update(float dt) override; - virtual void setPosition(const cocos2d::Vec2& newPosition) override; - virtual void draw(cocos2d::Renderer* renderer, const cocos2d::Mat4& transform, uint32_t flags) override; + virtual void setPosition(const axis::Vec2& newPosition) override; + virtual void draw(axis::Renderer* renderer, const axis::Mat4& transform, uint32_t flags) override; protected: ShaderNode(); @@ -153,7 +153,7 @@ protected: bool initWithVertex(std::string_view vert, std::string_view frag); void loadShaderVertex(std::string_view vert, std::string_view frag); - virtual bool setProgramState(cocos2d::backend::ProgramState* programState, bool needsRetain = true) override + virtual bool setProgramState(axis::backend::ProgramState* programState, bool needsRetain = true) override { if (Node::setProgramState(programState, needsRetain)) { @@ -166,20 +166,20 @@ protected: void updateUniforms(); - cocos2d::Vec2 _center; - cocos2d::Vec2 _resolution; + axis::Vec2 _center; + axis::Vec2 _resolution; float _time; std::string _vertFileName; std::string _fragFileName; - cocos2d::CustomCommand _customCommand; + axis::CustomCommand _customCommand; - cocos2d::backend::UniformLocation _locResolution; - cocos2d::backend::UniformLocation _locCenter; - cocos2d::backend::UniformLocation _locMVP; - cocos2d::backend::UniformLocation _locTime; - cocos2d::backend::UniformLocation _locSinTime; - cocos2d::backend::UniformLocation _locCosTime; - cocos2d::backend::UniformLocation _locScreenSize; + axis::backend::UniformLocation _locResolution; + axis::backend::UniformLocation _locCenter; + axis::backend::UniformLocation _locMVP; + axis::backend::UniformLocation _locTime; + axis::backend::UniformLocation _locSinTime; + axis::backend::UniformLocation _locCosTime; + axis::backend::UniformLocation _locScreenSize; }; class ShaderLensFlare : public ShaderTestDemo @@ -211,10 +211,10 @@ class ShaderMultiTexture : public ShaderTestDemo public: CREATE_FUNC(ShaderMultiTexture); ShaderMultiTexture(); - cocos2d::ui::Slider* createSliderCtl(); - void changeTexture(cocos2d::Ref*); + axis::ui::Slider* createSliderCtl(); + void changeTexture(axis::Ref*); int _changedTextureId; - cocos2d::Sprite* _sprite; + axis::Sprite* _sprite; virtual std::string title() const override; virtual std::string subtitle() const override; diff --git a/tests/cpp-tests/Classes/ShaderTest/ShaderTest2.cpp b/tests/cpp-tests/Classes/ShaderTest/ShaderTest2.cpp index 009d065c1f..1cdeab29ee 100644 --- a/tests/cpp-tests/Classes/ShaderTest/ShaderTest2.cpp +++ b/tests/cpp-tests/Classes/ShaderTest/ShaderTest2.cpp @@ -30,7 +30,7 @@ #include "renderer/backend/Device.h" #include -USING_NS_CC; +USING_NS_AX; #define SET_UNIFORM(ps, name, value) \ do \ diff --git a/tests/cpp-tests/Classes/ShaderTest/ShaderTest2.h b/tests/cpp-tests/Classes/ShaderTest/ShaderTest2.h index 5e93e3eb57..d025387e96 100644 --- a/tests/cpp-tests/Classes/ShaderTest/ShaderTest2.h +++ b/tests/cpp-tests/Classes/ShaderTest/ShaderTest2.h @@ -41,20 +41,20 @@ public: // class EffectSprite; -class Effect : public cocos2d::Ref +class Effect : public axis::Ref { public: - cocos2d::backend::ProgramState* getProgramState() const { return _programState; } + axis::backend::ProgramState* getProgramState() const { return _programState; } virtual void setTarget(EffectSprite* sprite) {} protected: bool initProgramState(std::string_view fragmentFilename); Effect(); virtual ~Effect(); - cocos2d::backend::ProgramState* _programState = nullptr; + axis::backend::ProgramState* _programState = nullptr; #if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) std::string _fragSource; - cocos2d::EventListenerCustom* _backgroundListener; + axis::EventListenerCustom* _backgroundListener; #endif }; @@ -68,7 +68,7 @@ public: protected: ssize_t _vectorIndex; - cocos2d::Vector _effects; + axis::Vector _effects; EffectSprite* _sprite; }; @@ -81,14 +81,14 @@ public: virtual std::string subtitle() const { return "Sprite Lamp effects"; } // callback public: - virtual void onTouchesBegan(const std::vector& touches, cocos2d::Event* unused_event); - virtual void onTouchesMoved(const std::vector& touches, cocos2d::Event* unused_event); - virtual void onTouchesEnded(const std::vector& touches, cocos2d::Event* unused_event); + virtual void onTouchesBegan(const std::vector& touches, axis::Event* unused_event); + virtual void onTouchesMoved(const std::vector& touches, axis::Event* unused_event); + virtual void onTouchesEnded(const std::vector& touches, axis::Event* unused_event); protected: EffectSprite* _sprite; Effect* _effect; - cocos2d::Sprite* _lightSprite; + axis::Sprite* _lightSprite; }; #endif diff --git a/tests/cpp-tests/Classes/SpineTest/SpineTest.cpp b/tests/cpp-tests/Classes/SpineTest/SpineTest.cpp index d8fc202f47..5df58d1732 100644 --- a/tests/cpp-tests/Classes/SpineTest/SpineTest.cpp +++ b/tests/cpp-tests/Classes/SpineTest/SpineTest.cpp @@ -30,7 +30,7 @@ #include "spine/spine.h" #include "renderer/CCColorizer.h" -using namespace cocos2d; +USING_NS_AX; using namespace std; using namespace spine; @@ -103,7 +103,7 @@ bool SpineTestLayer::init() return false; EventListenerTouchOneByOne* listener = EventListenerTouchOneByOne::create(); - listener->onTouchBegan = [this](Touch* touch, cocos2d::Event* event) -> bool { + listener->onTouchBegan = [this](Touch* touch, axis::Event* event) -> bool { if (!skeletonNode) return true; _touchIndex = (_touchIndex + 1) % 3; @@ -262,7 +262,7 @@ bool IKExample::init() // the current mouse location. The location is converted // to the skeleton's coordinate system. EventListenerMouse* mouseListener = EventListenerMouse::create(); - mouseListener->onMouseMove = [this](cocos2d::Event* event) -> void { + mouseListener->onMouseMove = [this](axis::Event* event) -> void { // convert the mosue location to the skeleton's coordinate space // and store it. EventMouse* mouseEvent = dynamic_cast(event); diff --git a/tests/cpp-tests/Classes/SpineTest/SpineTest.h b/tests/cpp-tests/Classes/SpineTest/SpineTest.h index 9413e0d905..f21d591bab 100644 --- a/tests/cpp-tests/Classes/SpineTest/SpineTest.h +++ b/tests/cpp-tests/Classes/SpineTest/SpineTest.h @@ -103,7 +103,7 @@ public: virtual bool init(); private: - cocos2d::Vec2 position; + axis::Vec2 position; }; class MixAndMatchExample : public SpineTestLayer @@ -144,7 +144,7 @@ public: private: spine::SkeletonRenderer* frontNode; - cocos2d::DrawNode* betweenNode; + axis::DrawNode* betweenNode; }; class SpineboyExample : public SpineTestLayer diff --git a/tests/cpp-tests/Classes/SpriteFrameCacheTest/SpriteFrameCacheTest.cpp b/tests/cpp-tests/Classes/SpriteFrameCacheTest/SpriteFrameCacheTest.cpp index c341067357..54a61163d0 100644 --- a/tests/cpp-tests/Classes/SpriteFrameCacheTest/SpriteFrameCacheTest.cpp +++ b/tests/cpp-tests/Classes/SpriteFrameCacheTest/SpriteFrameCacheTest.cpp @@ -32,7 +32,7 @@ #include "CCNinePatchImageParser.h" -USING_NS_CC; +USING_NS_AX; SpriteFrameCacheTests::SpriteFrameCacheTests() { @@ -48,7 +48,7 @@ SpriteFrameCachePixelFormatTest::SpriteFrameCachePixelFormatTest() infoLabel = Label::create(); infoLabel->setAnchorPoint(Point(0.5f, 1.0f)); - infoLabel->setAlignment(cocos2d::TextHAlignment::CENTER); + infoLabel->setAlignment(axis::TextHAlignment::CENTER); infoLabel->setPosition(screenSize.width * 0.5f, screenSize.height * 0.7f); addChild(infoLabel); @@ -77,7 +77,7 @@ SpriteFrameCachePixelFormatTest::SpriteFrameCachePixelFormatTest() } void SpriteFrameCachePixelFormatTest::loadSpriteFrames(std::string_view file, - cocos2d::backend::PixelFormat expectedFormat) + axis::backend::PixelFormat expectedFormat) { SpriteFrameCache::getInstance()->addSpriteFramesWithFile(file); SpriteFrame* spriteFrame = SpriteFrameCache::getInstance()->getSpriteFrameByName("sprite_frames_test/grossini.png"); @@ -108,7 +108,7 @@ SpriteFrameCacheLoadMultipleTimes::SpriteFrameCacheLoadMultipleTimes() } void SpriteFrameCacheLoadMultipleTimes::loadSpriteFrames(std::string_view file, - cocos2d::backend::PixelFormat expectedFormat) + axis::backend::PixelFormat expectedFormat) { SpriteFrameCache::getInstance()->addSpriteFramesWithFile(file); SpriteFrame* spriteFrame = SpriteFrameCache::getInstance()->getSpriteFrameByName("sprite_frames_test/grossini.png"); @@ -126,7 +126,7 @@ SpriteFrameCacheFullCheck::SpriteFrameCacheFullCheck() loadSpriteFrames("Images/test_polygon.plist", backend::PixelFormat::RGBA8); } -void SpriteFrameCacheFullCheck::loadSpriteFrames(std::string_view file, cocos2d::backend::PixelFormat expectedFormat) +void SpriteFrameCacheFullCheck::loadSpriteFrames(std::string_view file, axis::backend::PixelFormat expectedFormat) { auto cache = SpriteFrameCache::getInstance(); @@ -477,7 +477,7 @@ SpriteFrameCacheJsonAtlasTest::SpriteFrameCacheJsonAtlasTest() infoLabel = Label::create(); infoLabel->setAnchorPoint(Point(0.5f, 1.0f)); - infoLabel->setAlignment(cocos2d::TextHAlignment::CENTER); + infoLabel->setAlignment(axis::TextHAlignment::CENTER); infoLabel->setPosition(screenSize.width * 0.5f, screenSize.height * 0.7f); addChild(infoLabel); @@ -491,7 +491,7 @@ SpriteFrameCacheJsonAtlasTest::~SpriteFrameCacheJsonAtlasTest() } void SpriteFrameCacheJsonAtlasTest::loadSpriteFrames(std::string_view file, - cocos2d::backend::PixelFormat expectedFormat) + axis::backend::PixelFormat expectedFormat) { SpriteFrameCache::getInstance()->addSpriteFramesWithFile(file, GenericJsonArraySpriteSheetLoader::FORMAT); SpriteFrame* spriteFrame = diff --git a/tests/cpp-tests/Classes/SpriteFrameCacheTest/SpriteFrameCacheTest.h b/tests/cpp-tests/Classes/SpriteFrameCacheTest/SpriteFrameCacheTest.h index 97b723f790..68370b2f01 100644 --- a/tests/cpp-tests/Classes/SpriteFrameCacheTest/SpriteFrameCacheTest.h +++ b/tests/cpp-tests/Classes/SpriteFrameCacheTest/SpriteFrameCacheTest.h @@ -41,10 +41,10 @@ public: SpriteFrameCachePixelFormatTest(); private: - void loadSpriteFrames(std::string_view file, cocos2d::backend::PixelFormat expectedFormat); + void loadSpriteFrames(std::string_view file, axis::backend::PixelFormat expectedFormat); private: - cocos2d::Label* infoLabel; + axis::Label* infoLabel; }; class SpriteFrameCacheLoadMultipleTimes : public TestCase @@ -58,7 +58,7 @@ public: SpriteFrameCacheLoadMultipleTimes(); private: - void loadSpriteFrames(std::string_view file, cocos2d::backend::PixelFormat expectedFormat); + void loadSpriteFrames(std::string_view file, axis::backend::PixelFormat expectedFormat); }; class SpriteFrameCacheFullCheck : public TestCase @@ -72,7 +72,7 @@ public: SpriteFrameCacheFullCheck(); private: - void loadSpriteFrames(std::string_view file, cocos2d::backend::PixelFormat expectedFormat); + void loadSpriteFrames(std::string_view file, axis::backend::PixelFormat expectedFormat); }; class SpriteFrameCacheJsonAtlasTest : public TestCase @@ -87,7 +87,7 @@ public: ~SpriteFrameCacheJsonAtlasTest() override; private: - void loadSpriteFrames(std::string_view file, cocos2d::backend::PixelFormat expectedFormat); + void loadSpriteFrames(std::string_view file, axis::backend::PixelFormat expectedFormat); - cocos2d::Label* infoLabel; + axis::Label* infoLabel; }; diff --git a/tests/cpp-tests/Classes/SpritePolygonTest/SpritePolygonTest.cpp b/tests/cpp-tests/Classes/SpritePolygonTest/SpritePolygonTest.cpp index f1f5ff5073..921b9bfc9f 100644 --- a/tests/cpp-tests/Classes/SpritePolygonTest/SpritePolygonTest.cpp +++ b/tests/cpp-tests/Classes/SpritePolygonTest/SpritePolygonTest.cpp @@ -26,7 +26,7 @@ #include "../testResource.h" #include "ui/CocosGUI.h" -USING_NS_CC; +USING_NS_AX; SpritePolygonTest::SpritePolygonTest() { @@ -294,7 +294,7 @@ bool SpritePolygonTestSlider::init() void SpritePolygonTestSlider::initSliders() { auto vsize = Director::getInstance()->getVisibleSize(); - cocos2d::ui::Slider* slider = cocos2d::ui::Slider::create(); + axis::ui::Slider* slider = axis::ui::Slider::create(); slider->loadBarTexture("cocosui/sliderTrack.png"); slider->loadSlidBallTextures("cocosui/sliderThumb.png", "cocosui/sliderThumb.png", ""); slider->loadProgressBarTexture("cocosui/sliderProgress.png"); @@ -321,11 +321,11 @@ void SpritePolygonTestSlider::makeSprites(const std::string* list, const int cou } } -void SpritePolygonTestSlider::changeEpsilon(cocos2d::Ref* pSender, cocos2d::ui::Slider::EventType type) +void SpritePolygonTestSlider::changeEpsilon(axis::Ref* pSender, axis::ui::Slider::EventType type) { - if (type == cocos2d::ui::Slider::EventType::ON_PERCENTAGE_CHANGED) + if (type == axis::ui::Slider::EventType::ON_PERCENTAGE_CHANGED) { - cocos2d::ui::Slider* slider = dynamic_cast(pSender); + axis::ui::Slider* slider = dynamic_cast(pSender); float epsilon = powf(slider->getPercent() / 100.0, 2) * 19.0f + 1.0f; for (auto child : _children) { @@ -343,7 +343,7 @@ void SpritePolygonTestSlider::changeEpsilon(cocos2d::Ref* pSender, cocos2d::ui:: } } -void SpritePolygonTestSlider::updateLabel(const cocos2d::Sprite* sp, const PolygonInfo& pinfo) +void SpritePolygonTestSlider::updateLabel(const axis::Sprite* sp, const PolygonInfo& pinfo) { Label* label = (Label*)(sp->getChildByName(sp->getName())); auto filename = sp->getName(); diff --git a/tests/cpp-tests/Classes/SpritePolygonTest/SpritePolygonTest.h b/tests/cpp-tests/Classes/SpritePolygonTest/SpritePolygonTest.h index 2f8c9b754e..418d17eb6b 100644 --- a/tests/cpp-tests/Classes/SpritePolygonTest/SpritePolygonTest.h +++ b/tests/cpp-tests/Classes/SpritePolygonTest/SpritePolygonTest.h @@ -36,7 +36,7 @@ protected: std::string _subtitle; bool _isDebugDraw; bool _isNeedDebugMenu; - cocos2d::Vector _drawNodes; + axis::Vector _drawNodes; virtual std::string title() const override { return _title; }; virtual std::string subtitle() const override { return _subtitle; }; virtual bool init() override; @@ -50,8 +50,8 @@ protected: class SpritePolygonTestDemo : public SpritePolygonTestCase { protected: - cocos2d::Sprite* _polygonSprite; - cocos2d::Sprite* _normalSprite; + axis::Sprite* _polygonSprite; + axis::Sprite* _normalSprite; virtual bool init() override; virtual void initSprites(){}; void initTouches(); @@ -76,15 +76,15 @@ public: class SpritePolygonTestSlider : public SpritePolygonTestCase { protected: - cocos2d::Label* _epsilonLabel; + axis::Label* _epsilonLabel; int _tagIndex; - cocos2d::Sprite* makeSprite(std::string_view filename, const cocos2d::Vec2& pos); + axis::Sprite* makeSprite(std::string_view filename, const axis::Vec2& pos); virtual bool init() override; void initSliders(); virtual void initSprites(){}; void makeSprites(const std::string* list, const int count, const float y); - void changeEpsilon(Ref* pSender, cocos2d::ui::Slider::EventType type); - void updateLabel(const cocos2d::Sprite* sp, const cocos2d::PolygonInfo& pinfo); + void changeEpsilon(Ref* pSender, axis::ui::Slider::EventType type); + void updateLabel(const axis::Sprite* sp, const axis::PolygonInfo& pinfo); }; class SpritePolygonTest3 : public SpritePolygonTestSlider @@ -113,11 +113,11 @@ protected: virtual bool init() override; void initTouch(); void loadDefaultSprites(); - void addSpritePolygon(const cocos2d::Vec2& pos); + void addSpritePolygon(const axis::Vec2& pos); void update(float dt) override; private: - cocos2d::PolygonInfo _polygonInfo; + axis::PolygonInfo _polygonInfo; int _tagIndex; }; @@ -133,7 +133,7 @@ protected: int _triCount; int _pixelCount; float _elapsedTime; - cocos2d::Label* _perfLabel; + axis::Label* _perfLabel; int _continuousLowDt; float _continuousHighDtTime; float _waitingTime; @@ -166,8 +166,8 @@ public: SpritePolygonPerformanceTestDynamic(); protected: - cocos2d::Sprite* makeSprite() override; - cocos2d::PolygonInfo _pinfo; + axis::Sprite* makeSprite() override; + axis::PolygonInfo _pinfo; virtual void initIncrementStats() override; }; @@ -178,7 +178,7 @@ public: SpritePerformanceTestDynamic(); protected: - virtual cocos2d::Sprite* makeSprite() override; + virtual axis::Sprite* makeSprite() override; virtual void initIncrementStats() override; }; diff --git a/tests/cpp-tests/Classes/SpriteTest/SpriteTest.cpp b/tests/cpp-tests/Classes/SpriteTest/SpriteTest.cpp index 5c891683ad..1760c1584e 100644 --- a/tests/cpp-tests/Classes/SpriteTest/SpriteTest.cpp +++ b/tests/cpp-tests/Classes/SpriteTest/SpriteTest.cpp @@ -32,7 +32,7 @@ #include "../testResource.h" #include "cocostudio/CocosStudioExtension.h" -USING_NS_CC; +USING_NS_AX; enum { diff --git a/tests/cpp-tests/Classes/SpriteTest/SpriteTest.h b/tests/cpp-tests/Classes/SpriteTest/SpriteTest.h index 5559633f90..e8ff0f4ce4 100644 --- a/tests/cpp-tests/Classes/SpriteTest/SpriteTest.h +++ b/tests/cpp-tests/Classes/SpriteTest/SpriteTest.h @@ -48,8 +48,8 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; - void addNewSpriteWithCoords(cocos2d::Vec2 p); - void onTouchesEnded(const std::vector& touches, cocos2d::Event* event); + void addNewSpriteWithCoords(axis::Vec2 p); + void onTouchesEnded(const std::vector& touches, axis::Event* event); }; class SpriteBatchNode1 : public SpriteTestDemo @@ -57,8 +57,8 @@ class SpriteBatchNode1 : public SpriteTestDemo public: CREATE_FUNC(SpriteBatchNode1); SpriteBatchNode1(); - void addNewSpriteWithCoords(cocos2d::Vec2 p); - void onTouchesEnded(const std::vector& touches, cocos2d::Event* event); + void addNewSpriteWithCoords(axis::Vec2 p); + void onTouchesEnded(const std::vector& touches, axis::Event* event); virtual std::string title() const override; virtual std::string subtitle() const override; }; @@ -151,13 +151,13 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; void reorderSprite(float dt); - cocos2d::Sprite* makeSpriteZ(int aZ); + axis::Sprite* makeSpriteZ(int aZ); private: - cocos2d::SpriteBatchNode* batchNode; - cocos2d::Sprite* sprite1; - cocos2d::Sprite* sprite2; - cocos2d::Sprite* sprite3; + axis::SpriteBatchNode* batchNode; + axis::Sprite* sprite1; + axis::Sprite* sprite2; + axis::Sprite* sprite3; }; class SpriteBatchNodeReorderIssue767 : public SpriteTestDemo @@ -293,14 +293,14 @@ public: SpriteNewTexture(); virtual ~SpriteNewTexture(); void addNewSprite(); - void onTouchesEnded(const std::vector& touches, cocos2d::Event* event); + void onTouchesEnded(const std::vector& touches, axis::Event* event); virtual std::string title() const override; virtual std::string subtitle() const override; protected: bool _usingTexture1; - cocos2d::Texture2D* _texture1; - cocos2d::Texture2D* _texture2; + axis::Texture2D* _texture1; + axis::Texture2D* _texture2; }; class SpriteBatchNodeNewTexture : public SpriteTestDemo @@ -310,13 +310,13 @@ public: SpriteBatchNodeNewTexture(); virtual ~SpriteBatchNodeNewTexture(); void addNewSprite(); - void onTouchesEnded(const std::vector& touches, cocos2d::Event* event); + void onTouchesEnded(const std::vector& touches, axis::Event* event); virtual std::string title() const override; virtual std::string subtitle() const override; protected: - cocos2d::Texture2D* _texture1; - cocos2d::Texture2D* _texture2; + axis::Texture2D* _texture1; + axis::Texture2D* _texture2; }; class SpriteFrameTest : public SpriteTestDemo @@ -332,8 +332,8 @@ public: void flipSprites(float dt); private: - cocos2d::Sprite* _sprite1; - cocos2d::Sprite* _sprite2; + axis::Sprite* _sprite1; + axis::Sprite* _sprite2; int _counter; }; @@ -655,12 +655,12 @@ public: void reorderSprite(float dt); private: - cocos2d::Node* _node; - cocos2d::Sprite* _sprite1; - cocos2d::Sprite* _sprite2; - cocos2d::Sprite* _sprite3; - cocos2d::Sprite* _sprite4; - cocos2d::Sprite* _sprite5; + axis::Node* _node; + axis::Sprite* _sprite1; + axis::Sprite* _sprite2; + axis::Sprite* _sprite3; + axis::Sprite* _sprite4; + axis::Sprite* _sprite5; }; class SpriteBatchNodeReorderSameIndex : public SpriteTestDemo @@ -674,12 +674,12 @@ public: void reorderSprite(float dt); private: - cocos2d::SpriteBatchNode* _batchNode; - cocos2d::Sprite* _sprite1; - cocos2d::Sprite* _sprite2; - cocos2d::Sprite* _sprite3; - cocos2d::Sprite* _sprite4; - cocos2d::Sprite* _sprite5; + axis::SpriteBatchNode* _batchNode; + axis::Sprite* _sprite1; + axis::Sprite* _sprite2; + axis::Sprite* _sprite3; + axis::Sprite* _sprite4; + axis::Sprite* _sprite5; }; class SpriteBatchNodeReorderOneChild : public SpriteTestDemo @@ -691,8 +691,8 @@ public: virtual std::string title() const override; private: - cocos2d::SpriteBatchNode* _batchNode; - cocos2d::Sprite* _reorderSprite; + axis::SpriteBatchNode* _batchNode; + axis::Sprite* _reorderSprite; }; class SpriteBatchNodeSkewNegativeScaleChildren : public SpriteTestDemo @@ -791,10 +791,10 @@ public: virtual std::string subtitle() const override { return "Rotation should based on the anchor point"; }; protected: - cocos2d::Sprite* sprite1; - cocos2d::Sprite* sprite2; + axis::Sprite* sprite1; + axis::Sprite* sprite2; - cocos2d::Vec3 rotation; + axis::Vec3 rotation; }; class SpriteSlice9Test1 : public SpriteTestDemo @@ -844,7 +844,7 @@ public: virtual void update(float dt) override; private: - cocos2d::Sprite* _sprites[3]; + axis::Sprite* _sprites[3]; float _elapsed; }; @@ -859,7 +859,7 @@ public: virtual void update(float dt) override; private: - cocos2d::Sprite* _sprites[3]; + axis::Sprite* _sprites[3]; float _elapsed; }; @@ -920,10 +920,10 @@ public: protected: float _accum; - cocos2d::Sprite* _s1; - cocos2d::Sprite* _s2; - cocos2d::Sprite* _s3; - cocos2d::Sprite* _s4; + axis::Sprite* _s1; + axis::Sprite* _s2; + axis::Sprite* _s3; + axis::Sprite* _s4; }; #endif diff --git a/tests/cpp-tests/Classes/TerrainTest/TerrainTest.cpp b/tests/cpp-tests/Classes/TerrainTest/TerrainTest.cpp index 3e0081e0ad..93613aa65d 100644 --- a/tests/cpp-tests/Classes/TerrainTest/TerrainTest.cpp +++ b/tests/cpp-tests/Classes/TerrainTest/TerrainTest.cpp @@ -24,7 +24,7 @@ #include "TerrainTest.h" -USING_NS_CC; +USING_NS_AX; TerrainTests::TerrainTests() { @@ -78,7 +78,7 @@ std::string TerrainSimple::subtitle() const return "Drag to walkThru"; } -void TerrainSimple::onTouchesMoved(const std::vector& touches, cocos2d::Event* event) +void TerrainSimple::onTouchesMoved(const std::vector& touches, axis::Event* event) { float delta = Director::getInstance()->getDeltaTime(); auto touch = touches[0]; @@ -168,9 +168,9 @@ TerrainWalkThru::TerrainWalkThru() addChild(_terrain); } -void TerrainWalkThru::onTouchesBegan(const std::vector& touches, cocos2d::Event* event) {} +void TerrainWalkThru::onTouchesBegan(const std::vector& touches, axis::Event* event) {} -void TerrainWalkThru::onTouchesEnd(const std::vector& touches, cocos2d::Event* event) +void TerrainWalkThru::onTouchesEnd(const std::vector& touches, axis::Event* event) { auto touch = touches[0]; auto location = touch->getLocationInView(); @@ -372,7 +372,7 @@ std::string TerrainWithLightMap::subtitle() const { return "Drag to walkThru"; } -void TerrainWithLightMap::onTouchesMoved(const std::vector& touches, cocos2d::Event* event) +void TerrainWithLightMap::onTouchesMoved(const std::vector& touches, axis::Event* event) { float delta = Director::getInstance()->getDeltaTime(); auto touch = touches[0]; diff --git a/tests/cpp-tests/Classes/TerrainTest/TerrainTest.h b/tests/cpp-tests/Classes/TerrainTest/TerrainTest.h index 0027a33e19..16df9dcecd 100644 --- a/tests/cpp-tests/Classes/TerrainTest/TerrainTest.h +++ b/tests/cpp-tests/Classes/TerrainTest/TerrainTest.h @@ -46,11 +46,11 @@ public: TerrainSimple(); virtual std::string title() const override; virtual std::string subtitle() const override; - void onTouchesMoved(const std::vector& touches, cocos2d::Event* event); - cocos2d::Terrain* _terrain; + void onTouchesMoved(const std::vector& touches, axis::Event* event); + axis::Terrain* _terrain; protected: - cocos2d::Camera* _camera; + axis::Camera* _camera; }; # define PLAYER_STATE_LEFT 0 @@ -59,10 +59,10 @@ protected: # define PLAYER_STATE_FORWARD 3 # define PLAYER_STATE_BACKWARD 4 -class Player : public cocos2d::MeshRenderer +class Player : public axis::MeshRenderer { public: - static Player* create(const char* file, cocos2d::Camera* cam, cocos2d::Terrain* terrain); + static Player* create(const char* file, axis::Camera* cam, axis::Terrain* terrain); virtual bool isDone() const; virtual void update(float dt); @@ -71,14 +71,14 @@ public: void forward(); void backward(); void idle(); - cocos2d::Vec3 _targetPos; + axis::Vec3 _targetPos; void updateState(); float _headingAngle; - cocos2d::Vec3 _headingAxis; + axis::Vec3 _headingAxis; private: - cocos2d::Terrain* _terrain; - cocos2d::Camera* _cam; + axis::Terrain* _terrain; + axis::Camera* _cam; int _playerState; }; @@ -89,12 +89,12 @@ public: TerrainWalkThru(); virtual std::string title() const override; virtual std::string subtitle() const override; - void onTouchesBegan(const std::vector& touches, cocos2d::Event* event); - void onTouchesEnd(const std::vector& touches, cocos2d::Event* event); + void onTouchesBegan(const std::vector& touches, axis::Event* event); + void onTouchesEnd(const std::vector& touches, axis::Event* event); protected: - cocos2d::Camera* _camera; - cocos2d::Terrain* _terrain; + axis::Camera* _camera; + axis::Terrain* _terrain; Player* _player; }; @@ -105,11 +105,11 @@ public: TerrainWithLightMap(); virtual std::string title() const override; virtual std::string subtitle() const override; - void onTouchesMoved(const std::vector& touches, cocos2d::Event* event); + void onTouchesMoved(const std::vector& touches, axis::Event* event); protected: - cocos2d::Terrain* _terrain; - cocos2d::Camera* _camera; + axis::Terrain* _terrain; + axis::Camera* _camera; }; #endif // !TERRAIN_TESH_H diff --git a/tests/cpp-tests/Classes/TextInputTest/TextInputTest.cpp b/tests/cpp-tests/Classes/TextInputTest/TextInputTest.cpp index cba24e096f..8efaf45fca 100644 --- a/tests/cpp-tests/Classes/TextInputTest/TextInputTest.cpp +++ b/tests/cpp-tests/Classes/TextInputTest/TextInputTest.cpp @@ -24,7 +24,7 @@ #include "TextInputTest.h" -USING_NS_CC; +USING_NS_AX; #define FONT_NAME "fonts/Thonburi.ttf" #define FONT_SIZE 36 diff --git a/tests/cpp-tests/Classes/TextInputTest/TextInputTest.h b/tests/cpp-tests/Classes/TextInputTest/TextInputTest.h index b981342253..0cd219c5b9 100644 --- a/tests/cpp-tests/Classes/TextInputTest/TextInputTest.h +++ b/tests/cpp-tests/Classes/TextInputTest/TextInputTest.h @@ -35,21 +35,21 @@ DEFINE_TEST_SUITE(TextInputTests); // KeyboardNotificationLayer for test IME keyboard notification. ////////////////////////////////////////////////////////////////////////// -class KeyboardNotificationLayer : public TestCase, public cocos2d::IMEDelegate +class KeyboardNotificationLayer : public TestCase, public axis::IMEDelegate { public: KeyboardNotificationLayer(); virtual std::string title() const override; - virtual void onClickTrackNode(bool bClicked, const cocos2d::Vec2& touchPos) = 0; + virtual void onClickTrackNode(bool bClicked, const axis::Vec2& touchPos) = 0; - virtual void keyboardWillShow(cocos2d::IMEKeyboardNotificationInfo& info) override; + virtual void keyboardWillShow(axis::IMEKeyboardNotificationInfo& info) override; - bool onTouchBegan(cocos2d::Touch* touch, cocos2d::Event* event); - void onTouchEnded(cocos2d::Touch* touch, cocos2d::Event* event); + bool onTouchBegan(axis::Touch* touch, axis::Event* event); + void onTouchEnded(axis::Touch* touch, axis::Event* event); protected: - cocos2d::Node* _trackNode; - cocos2d::Vec2 _beginPos; + axis::Node* _trackNode; + axis::Vec2 _beginPos; }; ////////////////////////////////////////////////////////////////////////// @@ -62,7 +62,7 @@ public: CREATE_FUNC(TextFieldTTFDefaultTest); // KeyboardNotificationLayer virtual std::string subtitle() const override; - virtual void onClickTrackNode(bool bClicked, const cocos2d::Vec2& touchPos) override; + virtual void onClickTrackNode(bool bClicked, const axis::Vec2& touchPos) override; // Layer virtual void onEnter() override; @@ -72,10 +72,10 @@ public: // TextFieldTTFActionTest ////////////////////////////////////////////////////////////////////////// -class TextFieldTTFActionTest : public KeyboardNotificationLayer, public cocos2d::TextFieldDelegate +class TextFieldTTFActionTest : public KeyboardNotificationLayer, public axis::TextFieldDelegate { - cocos2d::TextFieldTTF* _textField; - cocos2d::Action* _textFieldAction; + axis::TextFieldTTF* _textField; + axis::Action* _textFieldAction; bool _action; size_t _charLimit; // the textfield max char limit @@ -85,18 +85,18 @@ public: // KeyboardNotificationLayer virtual std::string subtitle() const override; - virtual void onClickTrackNode(bool bClicked, const cocos2d::Vec2& touchPos) override; + virtual void onClickTrackNode(bool bClicked, const axis::Vec2& touchPos) override; // Layer virtual void onEnter() override; virtual void onExit() override; // TextFieldDelegate - virtual bool onTextFieldAttachWithIME(cocos2d::TextFieldTTF* sender) override; - virtual bool onTextFieldDetachWithIME(cocos2d::TextFieldTTF* sender) override; - virtual bool onTextFieldInsertText(cocos2d::TextFieldTTF* sender, const char* text, size_t nLen) override; - virtual bool onTextFieldDeleteBackward(cocos2d::TextFieldTTF* sender, const char* delText, size_t nLen) override; - virtual bool onDraw(cocos2d::TextFieldTTF* sender); + virtual bool onTextFieldAttachWithIME(axis::TextFieldTTF* sender) override; + virtual bool onTextFieldDetachWithIME(axis::TextFieldTTF* sender) override; + virtual bool onTextFieldInsertText(axis::TextFieldTTF* sender, const char* text, size_t nLen) override; + virtual bool onTextFieldDeleteBackward(axis::TextFieldTTF* sender, const char* delText, size_t nLen) override; + virtual bool onDraw(axis::TextFieldTTF* sender); }; ////////////////////////////////////////////////////////////////////////// @@ -123,7 +123,7 @@ public: CREATE_FUNC(TextFieldTTSetCursorFromPoint); // KeyboardNotificationLayer virtual std::string subtitle() const override; - virtual void onClickTrackNode(bool bClicked, const cocos2d::Vec2& touchPos) override; + virtual void onClickTrackNode(bool bClicked, const axis::Vec2& touchPos) override; // Layer virtual void onEnter() override; diff --git a/tests/cpp-tests/Classes/Texture2dTest/Texture2dTest.cpp b/tests/cpp-tests/Classes/Texture2dTest/Texture2dTest.cpp index d3eafdd79d..1fb9c1766d 100644 --- a/tests/cpp-tests/Classes/Texture2dTest/Texture2dTest.cpp +++ b/tests/cpp-tests/Classes/Texture2dTest/Texture2dTest.cpp @@ -30,7 +30,7 @@ #include "Texture2dTest.h" #include "../testResource.h" -USING_NS_CC; +USING_NS_AX; enum { @@ -2129,7 +2129,7 @@ void TextureMemoryAlloc::onEnter() menu2->setPosition(Vec2(s.width / 2, s.height / 4)); } -void TextureMemoryAlloc::changeBackgroundVisible(cocos2d::Ref* sender) +void TextureMemoryAlloc::changeBackgroundVisible(axis::Ref* sender) { if (_background) { @@ -2137,7 +2137,7 @@ void TextureMemoryAlloc::changeBackgroundVisible(cocos2d::Ref* sender) } } -void TextureMemoryAlloc::updateImage(cocos2d::Ref* sender) +void TextureMemoryAlloc::updateImage(axis::Ref* sender) { if (_background) { @@ -2223,7 +2223,7 @@ std::string TexturePVRv3Premult::subtitle() const return "All images should look exactly the same"; } -void TexturePVRv3Premult::transformSprite(cocos2d::Sprite* sprite) +void TexturePVRv3Premult::transformSprite(axis::Sprite* sprite) { auto fade = FadeOut::create(2); auto dl = DelayTime::create(2); diff --git a/tests/cpp-tests/Classes/Texture2dTest/Texture2dTest.h b/tests/cpp-tests/Classes/Texture2dTest/Texture2dTest.h index 5ec1bda622..af0c9ba473 100644 --- a/tests/cpp-tests/Classes/Texture2dTest/Texture2dTest.h +++ b/tests/cpp-tests/Classes/Texture2dTest/Texture2dTest.h @@ -45,7 +45,7 @@ public: virtual std::string title() const override; virtual void onEnter() override; - cocos2d::Node* _background; + axis::Node* _background; }; class TextureETC1Alpha : public TextureDemo @@ -57,10 +57,10 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; - void addNewSpriteWithCoords(cocos2d::Vec2 p); - void onTouchesEnded(const std::vector& touches, cocos2d::Event* event); + void addNewSpriteWithCoords(axis::Vec2 p); + void onTouchesEnded(const std::vector& touches, axis::Event* event); - cocos2d::Node* _background; + axis::Node* _background; }; class TextureETC2 : public TextureDemo @@ -73,9 +73,9 @@ public: virtual std::string subtitle() const override; void addNewSpriteWithCoords(); - void onTouchesEnded(const std::vector& touches, cocos2d::Event* event); + void onTouchesEnded(const std::vector& touches, axis::Event* event); - cocos2d::Node* _background; + axis::Node* _background; }; class TextureBMP : public TextureDemo @@ -86,8 +86,8 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; - void addNewSpriteWithCoords(cocos2d::Vec2 p); - void onTouchesEnded(const std::vector& touches, cocos2d::Event* event); + void addNewSpriteWithCoords(axis::Vec2 p); + void onTouchesEnded(const std::vector& touches, axis::Event* event); }; class TextureTGA : public TextureDemo @@ -460,7 +460,7 @@ public: virtual float getDuration() const override { return 5.0f; } void loadImages(float dt); - void imageLoaded(cocos2d::Texture2D* texture); + void imageLoaded(axis::Texture2D* texture); virtual std::string title() const override; virtual std::string subtitle() const override; virtual void onEnter() override; @@ -515,12 +515,12 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; virtual void onEnter() override; - virtual void draw(cocos2d::Renderer* renderer, const cocos2d::Mat4& transform, uint32_t flags) override; + virtual void draw(axis::Renderer* renderer, const axis::Mat4& transform, uint32_t flags) override; protected: - void onDraw(const cocos2d::Mat4& transform, uint32_t flags); + void onDraw(const axis::Mat4& transform, uint32_t flags); - cocos2d::Texture2D *_tex1, *_Tex2F; + axis::Texture2D *_tex1, *_Tex2F; }; class TextureDrawInRect : public TextureDemo @@ -531,12 +531,12 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; virtual void onEnter() override; - virtual void draw(cocos2d::Renderer* renderer, const cocos2d::Mat4& transform, uint32_t flags) override; + virtual void draw(axis::Renderer* renderer, const axis::Mat4& transform, uint32_t flags) override; protected: - void onDraw(const cocos2d::Mat4& transform, uint32_t flags); + void onDraw(const axis::Mat4& transform, uint32_t flags); - cocos2d::Texture2D *_tex1, *_Tex2F; + axis::Texture2D *_tex1, *_Tex2F; }; class TextureMemoryAlloc : public TextureDemo @@ -546,11 +546,11 @@ public: virtual void onEnter() override; virtual std::string title() const override; virtual std::string subtitle() const override; - void updateImage(cocos2d::Ref* sender); - void changeBackgroundVisible(cocos2d::Ref* sender); + void updateImage(axis::Ref* sender); + void changeBackgroundVisible(axis::Ref* sender); private: - cocos2d::Sprite* _background; + axis::Sprite* _background; }; class TexturePVRv3Premult : public TextureDemo @@ -562,7 +562,7 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; - void transformSprite(cocos2d::Sprite* sprite); + void transformSprite(axis::Sprite* sprite); }; // S3TC Dxt1 texture format test diff --git a/tests/cpp-tests/Classes/TextureCacheTest/TextureCacheTest.cpp b/tests/cpp-tests/Classes/TextureCacheTest/TextureCacheTest.cpp index b586b2a8d6..97070a63bb 100644 --- a/tests/cpp-tests/Classes/TextureCacheTest/TextureCacheTest.cpp +++ b/tests/cpp-tests/Classes/TextureCacheTest/TextureCacheTest.cpp @@ -24,7 +24,7 @@ #include "TextureCacheTest.h" -USING_NS_CC; +USING_NS_AX; TextureCacheTests::TextureCacheTests() { @@ -88,7 +88,7 @@ TextureCacheTest::TextureCacheTest() : _numberOfSprites(20), _numberOfLoadedSpri CC_CALLBACK_1(TextureCacheTest::loadingCallBack, this)); } -void TextureCacheTest::loadingCallBack(cocos2d::Texture2D* texture) +void TextureCacheTest::loadingCallBack(axis::Texture2D* texture) { ++_numberOfLoadedSprites; char tmp[10]; diff --git a/tests/cpp-tests/Classes/TextureCacheTest/TextureCacheTest.h b/tests/cpp-tests/Classes/TextureCacheTest/TextureCacheTest.h index a558c5aa0f..70e907d0a4 100644 --- a/tests/cpp-tests/Classes/TextureCacheTest/TextureCacheTest.h +++ b/tests/cpp-tests/Classes/TextureCacheTest/TextureCacheTest.h @@ -38,13 +38,13 @@ public: TextureCacheTest(); void addSprite(); - void loadingCallBack(cocos2d::Texture2D* texture); + void loadingCallBack(axis::Texture2D* texture); virtual float getDuration() const override { return 3.5f; } private: - cocos2d::Label* _labelLoading; - cocos2d::Label* _labelPercent; + axis::Label* _labelLoading; + axis::Label* _labelPercent; int _numberOfSprites; int _numberOfLoadedSprites; }; @@ -57,8 +57,8 @@ public: TextureCacheUnbindTest(); private: - void textureLoadedA(cocos2d::Texture2D* texture); - void textureLoadedB(cocos2d::Texture2D* texture); + void textureLoadedA(axis::Texture2D* texture); + void textureLoadedB(axis::Texture2D* texture); }; #endif // _TEXTURECACHE_TEST_H_ diff --git a/tests/cpp-tests/Classes/TexturePackerEncryptionTest/TextureAtlasEncryptionTest.cpp b/tests/cpp-tests/Classes/TexturePackerEncryptionTest/TextureAtlasEncryptionTest.cpp index d6fe1eb471..0878895901 100644 --- a/tests/cpp-tests/Classes/TexturePackerEncryptionTest/TextureAtlasEncryptionTest.cpp +++ b/tests/cpp-tests/Classes/TexturePackerEncryptionTest/TextureAtlasEncryptionTest.cpp @@ -25,7 +25,7 @@ #include "TextureAtlasEncryptionTest.h" #include "../testResource.h" -USING_NS_CC; +USING_NS_AX; TextureAtlasEncryptionTests::TextureAtlasEncryptionTests() { diff --git a/tests/cpp-tests/Classes/TileMapTest/TileMapTest2.cpp b/tests/cpp-tests/Classes/TileMapTest/TileMapTest2.cpp index be9707e25e..10b55810d5 100644 --- a/tests/cpp-tests/Classes/TileMapTest/TileMapTest2.cpp +++ b/tests/cpp-tests/Classes/TileMapTest/TileMapTest2.cpp @@ -28,7 +28,7 @@ #include "2d/CCFastTMXLayer.h" #include "2d/CCFastTMXTiledMap.h" -USING_NS_CC; +USING_NS_AX; enum { @@ -223,7 +223,7 @@ TMXOrthoTestNew::TMXOrthoTestNew() // auto color = LayerColor::create( Color4B(64,64,64,255) ); // addChild(color, -1); - auto map = cocos2d::FastTMXTiledMap::create("TileMaps/orthogonal-test2.tmx"); + auto map = axis::FastTMXTiledMap::create("TileMaps/orthogonal-test2.tmx"); addChild(map, 0, kTagTileMap); @@ -266,7 +266,7 @@ std::string TMXOrthoTestNew::title() const //------------------------------------------------------------------ TMXOrthoTest2New::TMXOrthoTest2New() { - auto map = cocos2d::FastTMXTiledMap::create("TileMaps/orthogonal-test1.tmx"); + auto map = axis::FastTMXTiledMap::create("TileMaps/orthogonal-test1.tmx"); addChild(map, 0, kTagTileMap); Size CC_UNUSED s = map->getContentSize(); @@ -287,7 +287,7 @@ std::string TMXOrthoTest2New::title() const //------------------------------------------------------------------ TMXOrthoTest3New::TMXOrthoTest3New() { - auto map = cocos2d::FastTMXTiledMap::create("TileMaps/orthogonal-test3.tmx"); + auto map = axis::FastTMXTiledMap::create("TileMaps/orthogonal-test3.tmx"); addChild(map, 0, kTagTileMap); Size CC_UNUSED s = map->getContentSize(); @@ -309,7 +309,7 @@ std::string TMXOrthoTest3New::title() const //------------------------------------------------------------------ TMXOrthoTest4New::TMXOrthoTest4New() { - auto map = cocos2d::FastTMXTiledMap::create("TileMaps/orthogonal-test4.tmx"); + auto map = axis::FastTMXTiledMap::create("TileMaps/orthogonal-test4.tmx"); addChild(map, 0, kTagTileMap); Size CC_UNUSED s1 = map->getContentSize(); @@ -337,7 +337,7 @@ void TMXOrthoTest4New::removeSprite(float dt) { unschedule(CC_SCHEDULE_SELECTOR(TMXOrthoTest4New::removeSprite)); - auto map = static_cast(getChildByTag(kTagTileMap)); + auto map = static_cast(getChildByTag(kTagTileMap)); auto layer = map->getLayer("Layer 0"); auto s = layer->getLayerSize(); @@ -370,7 +370,7 @@ TMXReadWriteTestNew::TMXReadWriteTestNew() { _gid = 0; - auto map = cocos2d::FastTMXTiledMap::create("TileMaps/orthogonal-test2.tmx"); + auto map = axis::FastTMXTiledMap::create("TileMaps/orthogonal-test2.tmx"); addChild(map, 0, kTagTileMap); Size CC_UNUSED s = map->getContentSize(); @@ -434,8 +434,8 @@ void TMXReadWriteTestNew::removeSprite(Node* sender) void TMXReadWriteTestNew::updateCol(float dt) { - auto map = (cocos2d::FastTMXTiledMap*)getChildByTag(kTagTileMap); - auto layer = (cocos2d::FastTMXLayer*)map->getChildByTag(0); + auto map = (axis::FastTMXTiledMap*)getChildByTag(kTagTileMap); + auto layer = (axis::FastTMXLayer*)map->getChildByTag(0); ////----CCLOG("++++atlas quantity: %d", layer->textureAtlas()->getTotalQuads()); ////----CCLOG("++++children: %d", layer->getChildren()->count() ); @@ -454,8 +454,8 @@ void TMXReadWriteTestNew::repaintWithGID(float dt) { // unschedule:_cmd); - auto map = (cocos2d::FastTMXTiledMap*)getChildByTag(kTagTileMap); - auto layer = (cocos2d::FastTMXLayer*)map->getChildByTag(0); + auto map = (axis::FastTMXTiledMap*)getChildByTag(kTagTileMap); + auto layer = (axis::FastTMXLayer*)map->getChildByTag(0); auto s = layer->getLayerSize(); for (int x = 0; x < s.width; x++) @@ -470,8 +470,8 @@ void TMXReadWriteTestNew::removeTiles(float dt) { unschedule(CC_SCHEDULE_SELECTOR(TMXReadWriteTestNew::removeTiles)); - auto map = (cocos2d::FastTMXTiledMap*)getChildByTag(kTagTileMap); - auto layer = (cocos2d::FastTMXLayer*)map->getChildByTag(0); + auto map = (axis::FastTMXTiledMap*)getChildByTag(kTagTileMap); + auto layer = (axis::FastTMXLayer*)map->getChildByTag(0); auto s = layer->getLayerSize(); for (int y = 0; y < s.height; y++) @@ -495,7 +495,7 @@ TMXHexTestNew::TMXHexTestNew() auto color = LayerColor::create(Color4B(64, 64, 64, 255)); addChild(color, -1); - auto map = cocos2d::FastTMXTiledMap::create("TileMaps/hexa-test.tmx"); + auto map = axis::FastTMXTiledMap::create("TileMaps/hexa-test.tmx"); addChild(map, 0, kTagTileMap); Size CC_UNUSED s = map->getContentSize(); @@ -517,7 +517,7 @@ TMXIsoTestNew::TMXIsoTestNew() auto color = LayerColor::create(Color4B(64, 64, 64, 255)); addChild(color, -1); - auto map = cocos2d::FastTMXTiledMap::create("TileMaps/iso-test.tmx"); + auto map = axis::FastTMXTiledMap::create("TileMaps/iso-test.tmx"); addChild(map, 0, kTagTileMap); // move map to the center of the screen @@ -541,7 +541,7 @@ TMXIsoTest1New::TMXIsoTest1New() auto color = LayerColor::create(Color4B(64, 64, 64, 255)); addChild(color, -1); - auto map = cocos2d::FastTMXTiledMap::create("TileMaps/iso-test1.tmx"); + auto map = axis::FastTMXTiledMap::create("TileMaps/iso-test1.tmx"); addChild(map, 0, kTagTileMap); Size CC_UNUSED s = map->getContentSize(); @@ -565,7 +565,7 @@ TMXIsoTest2New::TMXIsoTest2New() auto color = LayerColor::create(Color4B(64, 64, 64, 255)); addChild(color, -1); - auto map = cocos2d::FastTMXTiledMap::create("TileMaps/iso-test2.tmx"); + auto map = axis::FastTMXTiledMap::create("TileMaps/iso-test2.tmx"); addChild(map, 0, kTagTileMap); Size CC_UNUSED s = map->getContentSize(); @@ -592,7 +592,7 @@ TMXUncompressedTestNew::TMXUncompressedTestNew() auto color = LayerColor::create(Color4B(64, 64, 64, 255)); addChild(color, -1); - auto map = cocos2d::FastTMXTiledMap::create("TileMaps/iso-test2-uncompressed.tmx"); + auto map = axis::FastTMXTiledMap::create("TileMaps/iso-test2-uncompressed.tmx"); addChild(map, 0, kTagTileMap); Size CC_UNUSED s = map->getContentSize(); @@ -626,7 +626,7 @@ std::string TMXUncompressedTestNew::title() const //------------------------------------------------------------------ TMXTilesetTestNew::TMXTilesetTestNew() { - auto map = cocos2d::FastTMXTiledMap::create("TileMaps/orthogonal-test5.tmx"); + auto map = axis::FastTMXTiledMap::create("TileMaps/orthogonal-test5.tmx"); addChild(map, 0, kTagTileMap); Size CC_UNUSED s = map->getContentSize(); @@ -645,7 +645,7 @@ std::string TMXTilesetTestNew::title() const //------------------------------------------------------------------ TMXOrthoObjectsTestNew::TMXOrthoObjectsTestNew() { - auto map = cocos2d::FastTMXTiledMap::create("TileMaps/ortho-objects.tmx"); + auto map = axis::FastTMXTiledMap::create("TileMaps/ortho-objects.tmx"); addChild(map, -1, kTagTileMap); Size CC_UNUSED s = map->getContentSize(); @@ -694,7 +694,7 @@ std::string TMXOrthoObjectsTestNew::subtitle() const TMXIsoObjectsTestNew::TMXIsoObjectsTestNew() { - auto map = cocos2d::FastTMXTiledMap::create("TileMaps/iso-test-objectgroup.tmx"); + auto map = axis::FastTMXTiledMap::create("TileMaps/iso-test-objectgroup.tmx"); addChild(map, -1, kTagTileMap); Size CC_UNUSED s = map->getContentSize(); @@ -744,13 +744,13 @@ std::string TMXIsoObjectsTestNew::subtitle() const TMXResizeTestNew::TMXResizeTestNew() { - auto map = cocos2d::FastTMXTiledMap::create("TileMaps/orthogonal-test5.tmx"); + auto map = axis::FastTMXTiledMap::create("TileMaps/orthogonal-test5.tmx"); addChild(map, 0, kTagTileMap); Size CC_UNUSED s = map->getContentSize(); CCLOG("ContentSize: %f, %f", s.width, s.height); - cocos2d::FastTMXLayer* layer; + axis::FastTMXLayer* layer; layer = map->getLayer("Layer 0"); auto ls = layer->getLayerSize(); @@ -781,7 +781,7 @@ std::string TMXResizeTestNew::subtitle() const TMXIsoZorderNew::TMXIsoZorderNew() { Director::getInstance()->getRenderer()->setDepthTest(false); - auto map = cocos2d::FastTMXTiledMap::create("TileMaps/iso-test-zorder.tmx"); + auto map = axis::FastTMXTiledMap::create("TileMaps/iso-test-zorder.tmx"); addChild(map, 0, kTagTileMap); auto s = map->getContentSize(); @@ -848,7 +848,7 @@ std::string TMXIsoZorderNew::subtitle() const //------------------------------------------------------------------ TMXOrthoZorderNew::TMXOrthoZorderNew() { - auto map = cocos2d::FastTMXTiledMap::create("TileMaps/orthogonal-test-zorder.tmx"); + auto map = axis::FastTMXTiledMap::create("TileMaps/orthogonal-test-zorder.tmx"); addChild(map, 0, kTagTileMap); Size CC_UNUSED s = map->getContentSize(); @@ -907,7 +907,7 @@ std::string TMXOrthoZorderNew::subtitle() const //------------------------------------------------------------------ TMXIsoVertexZNew::TMXIsoVertexZNew() { - auto map = cocos2d::FastTMXTiledMap::create("TileMaps/iso-test-vertexz.tmx"); + auto map = axis::FastTMXTiledMap::create("TileMaps/iso-test-vertexz.tmx"); addChild(map, 0, kTagTileMap); auto s = map->getContentSize(); @@ -979,7 +979,7 @@ std::string TMXIsoVertexZNew::subtitle() const //------------------------------------------------------------------ TMXOrthoVertexZNew::TMXOrthoVertexZNew() { - auto map = cocos2d::FastTMXTiledMap::create("TileMaps/orthogonal-test-vertexz.tmx"); + auto map = axis::FastTMXTiledMap::create("TileMaps/orthogonal-test-vertexz.tmx"); addChild(map, 0, kTagTileMap); Size CC_UNUSED s = map->getContentSize(); @@ -1050,7 +1050,7 @@ std::string TMXOrthoVertexZNew::subtitle() const //------------------------------------------------------------------ TMXIsoMoveLayerNew::TMXIsoMoveLayerNew() { - auto map = cocos2d::FastTMXTiledMap::create("TileMaps/iso-test-movelayer.tmx"); + auto map = axis::FastTMXTiledMap::create("TileMaps/iso-test-movelayer.tmx"); addChild(map, 0, kTagTileMap); map->setPosition(Vec2(-700.0f, -50.0f)); @@ -1076,7 +1076,7 @@ std::string TMXIsoMoveLayerNew::subtitle() const //------------------------------------------------------------------ TMXOrthoMoveLayerNew::TMXOrthoMoveLayerNew() { - auto map = cocos2d::FastTMXTiledMap::create("TileMaps/orthogonal-test-movelayer.tmx"); + auto map = axis::FastTMXTiledMap::create("TileMaps/orthogonal-test-movelayer.tmx"); addChild(map, 0, kTagTileMap); Size CC_UNUSED s = map->getContentSize(); @@ -1101,7 +1101,7 @@ std::string TMXOrthoMoveLayerNew::subtitle() const TMXTilePropertyTestNew::TMXTilePropertyTestNew() { - auto map = cocos2d::FastTMXTiledMap::create("TileMaps/ortho-tile-property.tmx"); + auto map = axis::FastTMXTiledMap::create("TileMaps/ortho-tile-property.tmx"); addChild(map, 0, kTagTileMap); for (int i = 1; i <= 20; i++) @@ -1131,7 +1131,7 @@ std::string TMXTilePropertyTestNew::subtitle() const TMXOrthoFlipTestNew::TMXOrthoFlipTestNew() { - auto map = cocos2d::FastTMXTiledMap::create("TileMaps/ortho-rotation-test.tmx"); + auto map = axis::FastTMXTiledMap::create("TileMaps/ortho-rotation-test.tmx"); addChild(map, 0, kTagTileMap); Size CC_UNUSED s = map->getContentSize(); @@ -1154,7 +1154,7 @@ std::string TMXOrthoFlipTestNew::title() const TMXOrthoFlipRunTimeTestNew::TMXOrthoFlipRunTimeTestNew() { - auto map = cocos2d::FastTMXTiledMap::create("TileMaps/ortho-rotation-test.tmx"); + auto map = axis::FastTMXTiledMap::create("TileMaps/ortho-rotation-test.tmx"); addChild(map, 0, kTagTileMap); auto s = map->getContentSize(); @@ -1178,7 +1178,7 @@ std::string TMXOrthoFlipRunTimeTestNew::subtitle() const void TMXOrthoFlipRunTimeTestNew::flipIt(float dt) { - auto map = (cocos2d::FastTMXTiledMap*)getChildByTag(kTagTileMap); + auto map = (axis::FastTMXTiledMap*)getChildByTag(kTagTileMap); auto layer = map->getLayer("Layer 0"); // blue diamond @@ -1224,7 +1224,7 @@ TMXOrthoFromXMLTestNew::TMXOrthoFromXMLTestNew() auto fileUtils = FileUtils::getInstance(); std::string str = fileUtils->getStringFromFile(fileUtils->fullPathForFilename(file.c_str())); - auto map = cocos2d::FastTMXTiledMap::createWithXML(str, resources.c_str()); + auto map = axis::FastTMXTiledMap::createWithXML(str, resources.c_str()); addChild(map, 0, kTagTileMap); auto s = map->getContentSize(); @@ -1250,7 +1250,7 @@ TMXOrthoXMLFormatTestNew::TMXOrthoXMLFormatTestNew() // 1. load xml format tilemap // 2. gid lower than firstgid is ignored // 3. firstgid in tsx is ignored, tile property in tsx loaded correctly. - auto map = cocos2d::FastTMXTiledMap::create("TileMaps/xml-test.tmx"); + auto map = axis::FastTMXTiledMap::create("TileMaps/xml-test.tmx"); addChild(map, 0, kTagTileMap); auto s = map->getContentSize(); @@ -1277,7 +1277,7 @@ std::string TMXOrthoXMLFormatTestNew::title() const //------------------------------------------------------------------ TMXBug987New::TMXBug987New() { - auto map = cocos2d::FastTMXTiledMap::create("TileMaps/orthogonal-test6.tmx"); + auto map = axis::FastTMXTiledMap::create("TileMaps/orthogonal-test6.tmx"); addChild(map, 0, kTagTileMap); Size CC_UNUSED s1 = map->getContentSize(); @@ -1305,7 +1305,7 @@ std::string TMXBug987New::subtitle() const //------------------------------------------------------------------ TMXBug787New::TMXBug787New() { - auto map = cocos2d::FastTMXTiledMap::create("TileMaps/iso-test-bug787.tmx"); + auto map = axis::FastTMXTiledMap::create("TileMaps/iso-test-bug787.tmx"); addChild(map, 0, kTagTileMap); map->setScale(0.25f); @@ -1328,7 +1328,7 @@ std::string TMXBug787New::subtitle() const //------------------------------------------------------------------ TMXGIDObjectsTestNew::TMXGIDObjectsTestNew() { - auto map = cocos2d::FastTMXTiledMap::create("TileMaps/test-object-layer.tmx"); + auto map = axis::FastTMXTiledMap::create("TileMaps/test-object-layer.tmx"); addChild(map, -1, kTagTileMap); Size CC_UNUSED s = map->getContentSize(); @@ -1393,7 +1393,7 @@ std::string TileAnimTestNew::title() const return "Tile animation test. Click to toggle the animation"; } -void TileAnimTestNew::onTouchBegan(const std::vector& touches, cocos2d::Event* event) +void TileAnimTestNew::onTouchBegan(const std::vector& touches, axis::Event* event) { _animStarted = !_animStarted; map->setTileAnimEnabled(_animStarted); diff --git a/tests/cpp-tests/Classes/TileMapTest/TileMapTest2.h b/tests/cpp-tests/Classes/TileMapTest/TileMapTest2.h index 03327a466e..bb4e410e69 100644 --- a/tests/cpp-tests/Classes/TileMapTest/TileMapTest2.h +++ b/tests/cpp-tests/Classes/TileMapTest/TileMapTest2.h @@ -39,7 +39,7 @@ public: virtual std::string subtitle() const override; virtual void onExit() override; - void onTouchesMoved(const std::vector& touches, cocos2d::Event* event); + void onTouchesMoved(const std::vector& touches, axis::Event* event); }; class TileMapTestNew : public TileDemoNew @@ -192,7 +192,7 @@ public: class TMXIsoZorderNew : public TileDemoNew { - cocos2d::Sprite* _tamara; + axis::Sprite* _tamara; public: CREATE_FUNC(TMXIsoZorderNew); @@ -207,7 +207,7 @@ public: class TMXOrthoZorderNew : public TileDemoNew { - cocos2d::Sprite* _tamara; + axis::Sprite* _tamara; public: CREATE_FUNC(TMXOrthoZorderNew); @@ -221,7 +221,7 @@ public: class TMXIsoVertexZNew : public TileDemoNew { - cocos2d::Sprite* _tamara; + axis::Sprite* _tamara; public: CREATE_FUNC(TMXIsoVertexZNew); @@ -237,7 +237,7 @@ public: class TMXOrthoVertexZNew : public TileDemoNew { - cocos2d::Sprite* _tamara; + axis::Sprite* _tamara; public: CREATE_FUNC(TMXOrthoVertexZNew); @@ -346,9 +346,9 @@ public: TileAnimTestNew(); virtual std::string title() const override; - cocos2d::FastTMXTiledMap* map; + axis::FastTMXTiledMap* map; bool _animStarted = true; - void onTouchBegan(const std::vector& touches, cocos2d::Event* event); + void onTouchBegan(const std::vector& touches, axis::Event* event); }; #endif diff --git a/tests/cpp-tests/Classes/TouchesTest/Ball.cpp b/tests/cpp-tests/Classes/TouchesTest/Ball.cpp index da0eaf2160..bc25589f49 100644 --- a/tests/cpp-tests/Classes/TouchesTest/Ball.cpp +++ b/tests/cpp-tests/Classes/TouchesTest/Ball.cpp @@ -26,7 +26,7 @@ #include "Paddle.h" #include "../VisibleRect.h" -USING_NS_CC; +USING_NS_AX; Ball::Ball() {} diff --git a/tests/cpp-tests/Classes/TouchesTest/Ball.h b/tests/cpp-tests/Classes/TouchesTest/Ball.h index 9e9a54f762..53600bf82b 100644 --- a/tests/cpp-tests/Classes/TouchesTest/Ball.h +++ b/tests/cpp-tests/Classes/TouchesTest/Ball.h @@ -29,26 +29,26 @@ class Paddle; -class Ball : public cocos2d::Sprite +class Ball : public axis::Sprite { - cocos2d::Vec2 _velocity; + axis::Vec2 _velocity; public: Ball(); virtual ~Ball(); float radius(); - // BOOL initWithTexture(cocos2d::Texture2D* aTexture); - // virtual void setTexture(cocos2d::Texture2D* newTexture); + // BOOL initWithTexture(axis::Texture2D* aTexture); + // virtual void setTexture(axis::Texture2D* newTexture); void move(float delta); void collideWithPaddle(Paddle* paddle); public: - void setVelocity(cocos2d::Vec2 velocity) { _velocity = velocity; } - cocos2d::Vec2 getVelocity() { return _velocity; } + void setVelocity(axis::Vec2 velocity) { _velocity = velocity; } + axis::Vec2 getVelocity() { return _velocity; } public: - static Ball* ballWithTexture(cocos2d::Texture2D* aTexture); + static Ball* ballWithTexture(axis::Texture2D* aTexture); }; #endif diff --git a/tests/cpp-tests/Classes/TouchesTest/Paddle.cpp b/tests/cpp-tests/Classes/TouchesTest/Paddle.cpp index df89cfca48..1dde9bc49d 100644 --- a/tests/cpp-tests/Classes/TouchesTest/Paddle.cpp +++ b/tests/cpp-tests/Classes/TouchesTest/Paddle.cpp @@ -24,7 +24,7 @@ #include "Paddle.h" -USING_NS_CC; +USING_NS_AX; Paddle::Paddle() {} diff --git a/tests/cpp-tests/Classes/TouchesTest/Paddle.h b/tests/cpp-tests/Classes/TouchesTest/Paddle.h index ea45a234cd..8d7b10acf3 100644 --- a/tests/cpp-tests/Classes/TouchesTest/Paddle.h +++ b/tests/cpp-tests/Classes/TouchesTest/Paddle.h @@ -33,7 +33,7 @@ typedef enum tagPaddleState kPaddleStateUngrabbed } PaddleState; -class Paddle : public cocos2d::Sprite, public cocos2d::Clonable +class Paddle : public axis::Sprite, public axis::Clonable { PaddleState _state; @@ -41,17 +41,17 @@ public: Paddle(); virtual ~Paddle(); - cocos2d::Rect getRect(); - bool initWithTexture(cocos2d::Texture2D* aTexture) override; + axis::Rect getRect(); + bool initWithTexture(axis::Texture2D* aTexture) override; virtual void onEnter() override; virtual void onExit() override; - bool containsTouchLocation(cocos2d::Touch* touch); - bool onTouchBegan(cocos2d::Touch* touch, cocos2d::Event* event); - void onTouchMoved(cocos2d::Touch* touch, cocos2d::Event* event); - void onTouchEnded(cocos2d::Touch* touch, cocos2d::Event* event); + bool containsTouchLocation(axis::Touch* touch); + bool onTouchBegan(axis::Touch* touch, axis::Event* event); + void onTouchMoved(axis::Touch* touch, axis::Event* event); + void onTouchEnded(axis::Touch* touch, axis::Event* event); virtual Paddle* clone() const override; - static Paddle* createWithTexture(cocos2d::Texture2D* aTexture); + static Paddle* createWithTexture(axis::Texture2D* aTexture); }; #endif diff --git a/tests/cpp-tests/Classes/TouchesTest/TouchesTest.cpp b/tests/cpp-tests/Classes/TouchesTest/TouchesTest.cpp index b505865d84..12fec743c3 100644 --- a/tests/cpp-tests/Classes/TouchesTest/TouchesTest.cpp +++ b/tests/cpp-tests/Classes/TouchesTest/TouchesTest.cpp @@ -27,7 +27,7 @@ #include "Paddle.h" #include "../testResource.h" -USING_NS_CC; +USING_NS_AX; enum tagPlayer { @@ -172,9 +172,9 @@ std::string ForceTouchTest::subtitle() const return std::string("Touch with force to see info label changes\nOnly work on iPhone6s / iPhone6s Plus"); } -void ForceTouchTest::onTouchesBegan(const std::vector& touches, cocos2d::Event* event) {} +void ForceTouchTest::onTouchesBegan(const std::vector& touches, axis::Event* event) {} -void ForceTouchTest::onTouchesMoved(const std::vector& touches, cocos2d::Event* event) +void ForceTouchTest::onTouchesMoved(const std::vector& touches, axis::Event* event) { for (auto& t : touches) { @@ -185,7 +185,7 @@ void ForceTouchTest::onTouchesMoved(const std::vector& touches, } } -void ForceTouchTest::onTouchesEnded(const std::vector& touches, cocos2d::Event* event) +void ForceTouchTest::onTouchesEnded(const std::vector& touches, axis::Event* event) { sprintf(formatBuffer, _Info_Formatter, 0.0f, 0.0f); _infoLabel->setString(std::string(formatBuffer)); diff --git a/tests/cpp-tests/Classes/TouchesTest/TouchesTest.h b/tests/cpp-tests/Classes/TouchesTest/TouchesTest.h index 2c8c8bb87c..e3e6254230 100644 --- a/tests/cpp-tests/Classes/TouchesTest/TouchesTest.h +++ b/tests/cpp-tests/Classes/TouchesTest/TouchesTest.h @@ -39,12 +39,12 @@ public: class Ball; class Paddle; -class PongLayer : public cocos2d::Layer +class PongLayer : public axis::Layer { private: Ball* _ball; - cocos2d::Vector _paddles; - cocos2d::Vec2 _ballStartingVelocity; + axis::Vector _paddles; + axis::Vec2 _ballStartingVelocity; public: CREATE_FUNC(PongLayer); @@ -63,15 +63,15 @@ public: virtual std::string title() const override; virtual std::string subtitle() const override; - void onTouchesBegan(const std::vector& touches, cocos2d::Event* event); - void onTouchesMoved(const std::vector& touches, cocos2d::Event* event); - void onTouchesEnded(const std::vector& touches, cocos2d::Event* event); + void onTouchesBegan(const std::vector& touches, axis::Event* event); + void onTouchesMoved(const std::vector& touches, axis::Event* event); + void onTouchesEnded(const std::vector& touches, axis::Event* event); protected: ForceTouchTest(); virtual ~ForceTouchTest(); - cocos2d::Label* _infoLabel; + axis::Label* _infoLabel; }; #endif diff --git a/tests/cpp-tests/Classes/TransitionsTest/TransitionsTest.cpp b/tests/cpp-tests/Classes/TransitionsTest/TransitionsTest.cpp index 37f9bf9b5d..29a5fd3cc9 100644 --- a/tests/cpp-tests/Classes/TransitionsTest/TransitionsTest.cpp +++ b/tests/cpp-tests/Classes/TransitionsTest/TransitionsTest.cpp @@ -27,7 +27,7 @@ #include "TransitionsTest.h" #include "../testResource.h" -USING_NS_CC; +USING_NS_AX; #define TRANSITION_DURATION (1.2f) diff --git a/tests/cpp-tests/Classes/TransitionsTest/TransitionsTest.h b/tests/cpp-tests/Classes/TransitionsTest/TransitionsTest.h index 8dcf98f90a..ec16362a00 100644 --- a/tests/cpp-tests/Classes/TransitionsTest/TransitionsTest.h +++ b/tests/cpp-tests/Classes/TransitionsTest/TransitionsTest.h @@ -37,7 +37,7 @@ public: CREATE_FUNC(TransitionsTest); }; -class TestLayer1 : public cocos2d::Layer +class TestLayer1 : public axis::Layer { public: static TestLayer1* create(std::string_view transitionName); @@ -53,7 +53,7 @@ public: virtual void onExit() override; }; -class TestLayer2 : public cocos2d::Layer +class TestLayer2 : public axis::Layer { public: static TestLayer2* create(std::string_view transitionName); diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIButtonTest/UIButtonTest.cpp b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIButtonTest/UIButtonTest.cpp index 90cad4e6a2..860cc52f92 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIButtonTest/UIButtonTest.cpp +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIButtonTest/UIButtonTest.cpp @@ -24,8 +24,8 @@ #include "UIButtonTest.h" -USING_NS_CC; -using namespace cocos2d::ui; +USING_NS_AX; +using namespace axis::ui; UIButtonTests::UIButtonTests() { @@ -147,13 +147,13 @@ void UIButtonTest::touchEvent(Ref* pSender, Widget::TouchEventType type) } } -void UIButtonTest::printWidgetResources(cocos2d::Ref* sender) +void UIButtonTest::printWidgetResources(axis::Ref* sender) { - cocos2d::ResourceData normalFileName = _button->getNormalFile(); + axis::ResourceData normalFileName = _button->getNormalFile(); CCLOG("normalFileName Name : %s, Type: %d", normalFileName.file.c_str(), normalFileName.type); - cocos2d::ResourceData clickedFileName = _button->getPressedFile(); + axis::ResourceData clickedFileName = _button->getPressedFile(); CCLOG("clickedFileName Name : %s, Type: %d", clickedFileName.file.c_str(), clickedFileName.type); - cocos2d::ResourceData disabledFileName = _button->getDisabledFile(); + axis::ResourceData disabledFileName = _button->getDisabledFile(); CCLOG("disabledFileName Name : %s, Type: %d", disabledFileName.file.c_str(), disabledFileName.type); } diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIButtonTest/UIButtonTest.h b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIButtonTest/UIButtonTest.h index b29ded118e..e7b4ed6f51 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIButtonTest/UIButtonTest.h +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIButtonTest/UIButtonTest.h @@ -39,13 +39,13 @@ public: ~UIButtonTest(); virtual bool init() override; - void touchEvent(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); + void touchEvent(axis::Ref* sender, axis::ui::Widget::TouchEventType type); - void printWidgetResources(cocos2d::Ref* sender); + void printWidgetResources(axis::Ref* sender); protected: - cocos2d::ui::Text* _displayValueLabel; - cocos2d::ui::Button* _button; + axis::ui::Text* _displayValueLabel; + axis::ui::Button* _button; }; class UIButtonTest_Scale9 : public UIScene @@ -57,10 +57,10 @@ public: ~UIButtonTest_Scale9(); virtual bool init() override; - void touchEvent(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); + void touchEvent(axis::Ref* sender, axis::ui::Widget::TouchEventType type); protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UIButtonTest_Scale9_State_Change : public UIScene @@ -72,10 +72,10 @@ public: ~UIButtonTest_Scale9_State_Change(); virtual bool init() override; - void touchEvent(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); + void touchEvent(axis::Ref* sender, axis::ui::Widget::TouchEventType type); protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UIButtonTest_PressedAction : public UIScene @@ -87,10 +87,10 @@ public: ~UIButtonTest_PressedAction(); virtual bool init() override; - void touchEvent(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); + void touchEvent(axis::Ref* sender, axis::ui::Widget::TouchEventType type); protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UIButtonTest_Title : public UIScene @@ -102,10 +102,10 @@ public: ~UIButtonTest_Title(); virtual bool init() override; - void touchEvent(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); + void touchEvent(axis::Ref* sender, axis::ui::Widget::TouchEventType type); protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UIButtonTestRemoveSelf : public UIScene @@ -117,10 +117,10 @@ public: ~UIButtonTestRemoveSelf(); virtual bool init() override; - void touchEvent(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); + void touchEvent(axis::Ref* sender, axis::ui::Widget::TouchEventType type); protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UIButtonTestSwitchScale9 : public UIScene @@ -132,10 +132,10 @@ public: ~UIButtonTestSwitchScale9(); virtual bool init() override; - void touchEvent(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); + void touchEvent(axis::Ref* sender, axis::ui::Widget::TouchEventType type); protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UIButtonTestZoomScale : public UIScene @@ -147,10 +147,10 @@ public: ~UIButtonTestZoomScale(); virtual bool init() override; - void sliderEvent(cocos2d::Ref* sender, cocos2d::ui::Slider::EventType type); + void sliderEvent(axis::Ref* sender, axis::ui::Slider::EventType type); protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UIButtonTextOnly : public UIScene @@ -164,7 +164,7 @@ public: virtual bool init() override; protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UIButtonIgnoreContentSizeTest : public UIScene @@ -178,7 +178,7 @@ public: virtual bool init() override; protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UIButtonTitleEffectTest : public UIScene @@ -192,7 +192,7 @@ public: virtual bool init() override; protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UIButtonFlipTest : public UIScene @@ -206,7 +206,7 @@ public: virtual bool init() override; protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UIButtonNormalDefaultTest : public UIScene @@ -220,7 +220,7 @@ public: virtual bool init() override; protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UIButtonDisableDefaultTest : public UIScene @@ -234,7 +234,7 @@ public: virtual bool init() override; protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UIButtonCloneTest : public UIScene @@ -248,7 +248,7 @@ public: virtual bool init() override; protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class Issue12249 : public UIScene @@ -261,7 +261,7 @@ public: virtual bool init() override; protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class Issue17116 : public UIScene diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UICheckBoxTest/UICheckBoxTest.cpp b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UICheckBoxTest/UICheckBoxTest.cpp index e07358ddd6..491eb11e09 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UICheckBoxTest/UICheckBoxTest.cpp +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UICheckBoxTest/UICheckBoxTest.cpp @@ -24,8 +24,8 @@ #include "UICheckBoxTest.h" -USING_NS_CC; -using namespace cocos2d::ui; +USING_NS_AX; +using namespace axis::ui; UICheckBoxTests::UICheckBoxTests() { @@ -98,19 +98,19 @@ void UICheckBoxTest::selectedEvent(Ref* pSender, CheckBox::EventType type) } } -void UICheckBoxTest::printWidgetResources(cocos2d::Ref* sender) +void UICheckBoxTest::printWidgetResources(axis::Ref* sender) { - cocos2d::ResourceData backGroundFileName = _checkBox->getBackNormalFile(); + axis::ResourceData backGroundFileName = _checkBox->getBackNormalFile(); CCLOG("backGroundFile Name : %s, Type: %d", backGroundFileName.file.c_str(), backGroundFileName.type); - cocos2d::ResourceData backGroundSelectedFileName = _checkBox->getBackPressedFile(); + axis::ResourceData backGroundSelectedFileName = _checkBox->getBackPressedFile(); CCLOG("backGroundSelectedFile Name : %s, Type: %d", backGroundSelectedFileName.file.c_str(), backGroundSelectedFileName.type); - cocos2d::ResourceData backGroundDisabledFileName = _checkBox->getBackDisabledFile(); + axis::ResourceData backGroundDisabledFileName = _checkBox->getBackDisabledFile(); CCLOG("backGroundDisabledFile Name : %s, Type: %d", backGroundDisabledFileName.file.c_str(), backGroundDisabledFileName.type); - cocos2d::ResourceData frontCrossFileName = _checkBox->getCrossNormalFile(); + axis::ResourceData frontCrossFileName = _checkBox->getCrossNormalFile(); CCLOG("frontCrossFile Name : %s, Type: %d", frontCrossFileName.file.c_str(), frontCrossFileName.type); - cocos2d::ResourceData frontCrossDisabledFileName = _checkBox->getCrossDisabledFile(); + axis::ResourceData frontCrossDisabledFileName = _checkBox->getCrossDisabledFile(); CCLOG("frontCrossDisabledFile Name : %s, Type: %d", frontCrossDisabledFileName.file.c_str(), frontCrossDisabledFileName.type); } diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UICheckBoxTest/UICheckBoxTest.h b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UICheckBoxTest/UICheckBoxTest.h index 89e200ca37..050b8647c7 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UICheckBoxTest/UICheckBoxTest.h +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UICheckBoxTest/UICheckBoxTest.h @@ -39,13 +39,13 @@ public: ~UICheckBoxTest(); virtual bool init() override; - void selectedEvent(cocos2d::Ref* sender, cocos2d::ui::CheckBox::EventType type); + void selectedEvent(axis::Ref* sender, axis::ui::CheckBox::EventType type); - void printWidgetResources(cocos2d::Ref* sender); + void printWidgetResources(axis::Ref* sender); protected: - cocos2d::ui::Text* _displayValueLabel; - cocos2d::ui::CheckBox* _checkBox; + axis::ui::Text* _displayValueLabel; + axis::ui::CheckBox* _checkBox; }; class UICheckBoxDefaultBehaviorTest : public UIScene @@ -59,7 +59,7 @@ public: virtual bool init() override; protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UICheckBoxCopyTest : public UIScene @@ -73,6 +73,6 @@ public: virtual bool init() override; protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; #endif /* defined(__TestCpp__UICheckBoxTest__) */ diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIEditBoxTest.cpp b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIEditBoxTest.cpp index b81a21ee32..537ac673a0 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIEditBoxTest.cpp +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIEditBoxTest.cpp @@ -26,9 +26,9 @@ #include "UIEditBoxTest.h" #include "testResource.h" -USING_NS_CC; -USING_NS_CC_EXT; -using namespace cocos2d::ui; +USING_NS_AX; +USING_NS_AX_EXT; +using namespace axis::ui; UIEditBoxTests::UIEditBoxTests() { @@ -137,18 +137,18 @@ bool UIEditBoxTest::init() return false; } -void UIEditBoxTest::editBoxEditingDidBegin(cocos2d::ui::EditBox* editBox) +void UIEditBoxTest::editBoxEditingDidBegin(axis::ui::EditBox* editBox) { log("editBox %p DidBegin !", editBox); } -void UIEditBoxTest::editBoxEditingDidEndWithAction(cocos2d::ui::EditBox* editBox, - cocos2d::ui::EditBoxDelegate::EditBoxEndAction action) +void UIEditBoxTest::editBoxEditingDidEndWithAction(axis::ui::EditBox* editBox, + axis::ui::EditBoxDelegate::EditBoxEndAction action) { log("editBox %p DidEnd with action %d!", editBox, action); } -void UIEditBoxTest::editBoxTextChanged(cocos2d::ui::EditBox* editBox, std::string_view text) +void UIEditBoxTest::editBoxTextChanged(axis::ui::EditBox* editBox, std::string_view text) { log("editBox %p TextChanged, text: %s ", editBox, text.data()); editBox->setText(text.data()); @@ -270,12 +270,12 @@ bool UIEditBoxTestToggleVisibility::init() return false; } -void UIEditBoxTestToggleVisibility::editBoxEditingDidBegin(cocos2d::ui::EditBox* editBox) +void UIEditBoxTestToggleVisibility::editBoxEditingDidBegin(axis::ui::EditBox* editBox) { log("editBox %p DidBegin !", editBox); } -void UIEditBoxTestToggleVisibility::editBoxTextChanged(cocos2d::ui::EditBox* editBox, std::string_view text) +void UIEditBoxTestToggleVisibility::editBoxTextChanged(axis::ui::EditBox* editBox, std::string_view text) { log("editBox %p TextChanged, text: %s ", editBox, text.data()); } diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIEditBoxTest.h b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIEditBoxTest.h index 0d9be7e402..a9eb1c4d67 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIEditBoxTest.h +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIEditBoxTest.h @@ -30,44 +30,44 @@ DEFINE_TEST_SUITE(UIEditBoxTests); -class UIEditBoxTest : public UIScene, public cocos2d::ui::EditBoxDelegate +class UIEditBoxTest : public UIScene, public axis::ui::EditBoxDelegate { public: CREATE_FUNC(UIEditBoxTest); virtual bool init() override; - virtual void editBoxEditingDidBegin(cocos2d::ui::EditBox* editBox) override; - virtual void editBoxEditingDidEndWithAction(cocos2d::ui::EditBox* editBox, - cocos2d::ui::EditBoxDelegate::EditBoxEndAction action) override; - virtual void editBoxTextChanged(cocos2d::ui::EditBox* editBox, std::string_view text) override; - virtual void editBoxReturn(cocos2d::ui::EditBox* editBox) override; + virtual void editBoxEditingDidBegin(axis::ui::EditBox* editBox) override; + virtual void editBoxEditingDidEndWithAction(axis::ui::EditBox* editBox, + axis::ui::EditBoxDelegate::EditBoxEndAction action) override; + virtual void editBoxTextChanged(axis::ui::EditBox* editBox, std::string_view text) override; + virtual void editBoxReturn(axis::ui::EditBox* editBox) override; protected: - cocos2d::Label* _TTFShowEditReturn; - cocos2d::ui::EditBox* _editName; - cocos2d::ui::EditBox* _editPassword; - cocos2d::ui::EditBox* _editEmail; - cocos2d::Node* _editEmailParent; + axis::Label* _TTFShowEditReturn; + axis::ui::EditBox* _editName; + axis::ui::EditBox* _editPassword; + axis::ui::EditBox* _editEmail; + axis::Node* _editEmailParent; }; -class UIEditBoxTestToggleVisibility : public UIScene, public cocos2d::ui::EditBoxDelegate +class UIEditBoxTestToggleVisibility : public UIScene, public axis::ui::EditBoxDelegate { public: CREATE_FUNC(UIEditBoxTestToggleVisibility); virtual bool init() override; - virtual void editBoxEditingDidBegin(cocos2d::ui::EditBox* editBox) override; - virtual void editBoxTextChanged(cocos2d::ui::EditBox* editBox, std::string_view text) override; - virtual void editBoxReturn(cocos2d::ui::EditBox* editBox) override; + virtual void editBoxEditingDidBegin(axis::ui::EditBox* editBox) override; + virtual void editBoxTextChanged(axis::ui::EditBox* editBox, std::string_view text) override; + virtual void editBoxReturn(axis::ui::EditBox* editBox) override; protected: - cocos2d::Label* _TTFShowEditReturn; - cocos2d::ui::EditBox* _editName; - cocos2d::ui::EditBox* _editPassword; - cocos2d::ui::EditBox* _editEmail; - cocos2d::Node* _editEmailParent; + axis::Label* _TTFShowEditReturn; + axis::ui::EditBox* _editName; + axis::ui::EditBox* _editPassword; + axis::ui::EditBox* _editEmail; + axis::Node* _editEmailParent; }; class UIEditBoxTestTextHorizontalAlignment : public UIScene diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIFocusTest/UIFocusTest.cpp b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIFocusTest/UIFocusTest.cpp index 5f474cf113..e8e8628a4a 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIFocusTest/UIFocusTest.cpp +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIFocusTest/UIFocusTest.cpp @@ -32,8 +32,8 @@ #include "UIFocusTest.h" -USING_NS_CC; -using namespace cocos2d::ui; +USING_NS_AX; +using namespace axis::ui; UIFocusTests::UIFocusTests() { @@ -103,7 +103,7 @@ bool UIFocusTestBase::init() return false; } -void UIFocusTestBase::onImageViewClicked(cocos2d::Ref* ref, Widget::TouchEventType touchType) +void UIFocusTestBase::onImageViewClicked(axis::Ref* ref, Widget::TouchEventType touchType) { if (touchType == Widget::TouchEventType::ENDED) { @@ -123,33 +123,33 @@ void UIFocusTestBase::onImageViewClicked(cocos2d::Ref* ref, Widget::TouchEventTy void UIFocusTestBase::onLeftKeyPressed() { - cocos2d::EventKeyboard::KeyCode cocos2dKey = EventKeyboard::KeyCode::KEY_DPAD_LEFT; - cocos2d::EventKeyboard event(cocos2dKey, false); - cocos2d::Director::getInstance()->getEventDispatcher()->dispatchEvent(&event); + axis::EventKeyboard::KeyCode cocos2dKey = EventKeyboard::KeyCode::KEY_DPAD_LEFT; + axis::EventKeyboard event(cocos2dKey, false); + axis::Director::getInstance()->getEventDispatcher()->dispatchEvent(&event); } void UIFocusTestBase::onRightKeyPressed() { - cocos2d::EventKeyboard::KeyCode cocos2dKey = EventKeyboard::KeyCode::KEY_DPAD_RIGHT; - cocos2d::EventKeyboard event(cocos2dKey, false); - cocos2d::Director::getInstance()->getEventDispatcher()->dispatchEvent(&event); + axis::EventKeyboard::KeyCode cocos2dKey = EventKeyboard::KeyCode::KEY_DPAD_RIGHT; + axis::EventKeyboard event(cocos2dKey, false); + axis::Director::getInstance()->getEventDispatcher()->dispatchEvent(&event); } void UIFocusTestBase::onUpKeyPressed() { - cocos2d::EventKeyboard::KeyCode cocos2dKey = EventKeyboard::KeyCode::KEY_DPAD_UP; - cocos2d::EventKeyboard event(cocos2dKey, false); - cocos2d::Director::getInstance()->getEventDispatcher()->dispatchEvent(&event); + axis::EventKeyboard::KeyCode cocos2dKey = EventKeyboard::KeyCode::KEY_DPAD_UP; + axis::EventKeyboard event(cocos2dKey, false); + axis::Director::getInstance()->getEventDispatcher()->dispatchEvent(&event); } void UIFocusTestBase::onDownKeyPressed() { - cocos2d::EventKeyboard::KeyCode cocos2dKey = EventKeyboard::KeyCode::KEY_DPAD_DOWN; - cocos2d::EventKeyboard event(cocos2dKey, false); - cocos2d::Director::getInstance()->getEventDispatcher()->dispatchEvent(&event); + axis::EventKeyboard::KeyCode cocos2dKey = EventKeyboard::KeyCode::KEY_DPAD_DOWN; + axis::EventKeyboard event(cocos2dKey, false); + axis::Director::getInstance()->getEventDispatcher()->dispatchEvent(&event); } -void UIFocusTestBase::onFocusChanged(cocos2d::ui::Widget* widgetLostFocus, cocos2d::ui::Widget* widgetGetFocus) +void UIFocusTestBase::onFocusChanged(axis::ui::Widget* widgetLostFocus, axis::ui::Widget* widgetGetFocus) { if (widgetGetFocus && widgetGetFocus->isFocusEnabled()) { @@ -211,7 +211,7 @@ bool UIFocusTestHorizontal::init() return false; } -void UIFocusTestHorizontal::toggleFocusLoop(cocos2d::Ref* pObjc, Widget::TouchEventType type) +void UIFocusTestHorizontal::toggleFocusLoop(axis::Ref* pObjc, Widget::TouchEventType type) { if (type == Widget::TouchEventType::ENDED) { @@ -271,7 +271,7 @@ bool UIFocusTestVertical::init() return false; } -void UIFocusTestVertical::toggleFocusLoop(cocos2d::Ref* pObjc, Widget::TouchEventType type) +void UIFocusTestVertical::toggleFocusLoop(axis::Ref* pObjc, Widget::TouchEventType type) { if (type == Widget::TouchEventType::ENDED) { @@ -367,7 +367,7 @@ bool UIFocusTestNestedLayout1::init() return false; } -void UIFocusTestNestedLayout1::toggleFocusLoop(cocos2d::Ref* pObjc, Widget::TouchEventType type) +void UIFocusTestNestedLayout1::toggleFocusLoop(axis::Ref* pObjc, Widget::TouchEventType type) { if (type == Widget::TouchEventType::ENDED) { @@ -463,7 +463,7 @@ bool UIFocusTestNestedLayout2::init() return false; } -void UIFocusTestNestedLayout2::toggleFocusLoop(cocos2d::Ref* pObjc, Widget::TouchEventType type) +void UIFocusTestNestedLayout2::toggleFocusLoop(axis::Ref* pObjc, Widget::TouchEventType type) { if (type == Widget::TouchEventType::ENDED) { @@ -564,7 +564,7 @@ bool UIFocusTestNestedLayout3::init() return false; } -void UIFocusTestNestedLayout3::toggleFocusLoop(cocos2d::Ref* pObjc, Widget::TouchEventType type) +void UIFocusTestNestedLayout3::toggleFocusLoop(axis::Ref* pObjc, Widget::TouchEventType type) { if (type == Widget::TouchEventType::ENDED) { diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIFocusTest/UIFocusTest.h b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIFocusTest/UIFocusTest.h index f67c94803a..f6b80397d2 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIFocusTest/UIFocusTest.h +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIFocusTest/UIFocusTest.h @@ -49,15 +49,15 @@ public: virtual void onRightKeyPressed(); virtual void onUpKeyPressed(); virtual void onDownKeyPressed(); - virtual void onFocusChanged(cocos2d::ui::Widget* widgetLostFocus, cocos2d::ui::Widget* widgetGetFocus); + virtual void onFocusChanged(axis::ui::Widget* widgetLostFocus, axis::ui::Widget* widgetGetFocus); - void onImageViewClicked(cocos2d::Ref* ref, cocos2d::ui::Widget::TouchEventType touchType); + void onImageViewClicked(axis::Ref* ref, axis::ui::Widget::TouchEventType touchType); protected: - cocos2d::Menu* _dpadMenu; - cocos2d::ui::Widget* _firstFocusedWidget; - cocos2d::EventListenerFocus* _eventListener; - cocos2d::ui::Button* _toggleButton; + axis::Menu* _dpadMenu; + axis::ui::Widget* _firstFocusedWidget; + axis::EventListenerFocus* _eventListener; + axis::ui::Button* _toggleButton; }; class UIFocusTestHorizontal : public UIFocusTestBase @@ -70,11 +70,11 @@ public: virtual bool init() override; - void toggleFocusLoop(cocos2d::Ref*, cocos2d::ui::Widget::TouchEventType); + void toggleFocusLoop(axis::Ref*, axis::ui::Widget::TouchEventType); protected: - cocos2d::ui::Layout* _horizontalLayout; - cocos2d::ui::Text* _loopText; + axis::ui::Layout* _horizontalLayout; + axis::ui::Text* _loopText; }; class UIFocusTestVertical : public UIFocusTestBase @@ -87,11 +87,11 @@ public: virtual bool init() override; - void toggleFocusLoop(cocos2d::Ref*, cocos2d::ui::Widget::TouchEventType); + void toggleFocusLoop(axis::Ref*, axis::ui::Widget::TouchEventType); protected: - cocos2d::ui::Layout* _verticalLayout; - cocos2d::ui::Text* _loopText; + axis::ui::Layout* _verticalLayout; + axis::ui::Text* _loopText; }; class UIFocusTestNestedLayout1 : public UIFocusTestBase @@ -104,11 +104,11 @@ public: virtual bool init() override; - void toggleFocusLoop(cocos2d::Ref*, cocos2d::ui::Widget::TouchEventType); + void toggleFocusLoop(axis::Ref*, axis::ui::Widget::TouchEventType); protected: - cocos2d::ui::Layout* _verticalLayout; - cocos2d::ui::Text* _loopText; + axis::ui::Layout* _verticalLayout; + axis::ui::Text* _loopText; }; class UIFocusTestNestedLayout2 : public UIFocusTestBase @@ -121,11 +121,11 @@ public: virtual bool init() override; - void toggleFocusLoop(cocos2d::Ref*, cocos2d::ui::Widget::TouchEventType); + void toggleFocusLoop(axis::Ref*, axis::ui::Widget::TouchEventType); protected: - cocos2d::ui::Layout* _horizontalLayout; - cocos2d::ui::Text* _loopText; + axis::ui::Layout* _horizontalLayout; + axis::ui::Text* _loopText; }; class UIFocusTestNestedLayout3 : public UIFocusTestBase @@ -138,11 +138,11 @@ public: virtual bool init() override; - void toggleFocusLoop(cocos2d::Ref*, cocos2d::ui::Widget::TouchEventType); + void toggleFocusLoop(axis::Ref*, axis::ui::Widget::TouchEventType); protected: - cocos2d::ui::Layout* _verticalLayout; - cocos2d::ui::Text* _loopText; + axis::ui::Layout* _verticalLayout; + axis::ui::Text* _loopText; }; #endif /* defined(__cocos2d_tests__UIFocusTest__) */ diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIImageViewTest/UIImageViewTest.cpp b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIImageViewTest/UIImageViewTest.cpp index 75549e50e7..1fc33daa7d 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIImageViewTest/UIImageViewTest.cpp +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIImageViewTest/UIImageViewTest.cpp @@ -24,8 +24,8 @@ #include "UIImageViewTest.h" -USING_NS_CC; -using namespace cocos2d::ui; +USING_NS_AX; +using namespace axis::ui; UIImageViewTests::UIImageViewTests() { @@ -74,9 +74,9 @@ bool UIImageViewTest::init() return false; } -void UIImageViewTest::printWidgetResources(cocos2d::Ref* sender) +void UIImageViewTest::printWidgetResources(axis::Ref* sender) { - cocos2d::ResourceData textureFile = _image->getRenderFile(); + axis::ResourceData textureFile = _image->getRenderFile(); CCLOG("textureFile Name : %s, Type: %d", textureFile.file.c_str(), textureFile.type); } diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIImageViewTest/UIImageViewTest.h b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIImageViewTest/UIImageViewTest.h index 08fb5c3651..5d90fef0ef 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIImageViewTest/UIImageViewTest.h +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIImageViewTest/UIImageViewTest.h @@ -37,10 +37,10 @@ public: virtual bool init() override; - void printWidgetResources(cocos2d::Ref* sender); + void printWidgetResources(axis::Ref* sender); protected: - cocos2d::ui::ImageView* _image; + axis::ui::ImageView* _image; }; class UIImageViewTest_Scale9 : public UIScene diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UILayoutTest/UILayoutTest.cpp b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UILayoutTest/UILayoutTest.cpp index 63eb14bc21..992a0d5f02 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UILayoutTest/UILayoutTest.cpp +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UILayoutTest/UILayoutTest.cpp @@ -24,8 +24,8 @@ #include "UILayoutTest.h" -USING_NS_CC; -using namespace cocos2d::ui; +USING_NS_AX; +using namespace axis::ui; UILayoutTests::UILayoutTests() { @@ -294,9 +294,9 @@ bool UILayoutTest_BackGroundImage::init() return false; } -void UILayoutTest_BackGroundImage::printWidgetResources(cocos2d::Ref* sender) +void UILayoutTest_BackGroundImage::printWidgetResources(axis::Ref* sender) { - cocos2d::ResourceData textureFile = _layout->getRenderFile(); + axis::ResourceData textureFile = _layout->getRenderFile(); CCLOG("textureFile Name : %s, Type: %d", textureFile.file.c_str(), textureFile.type); } @@ -979,7 +979,7 @@ bool UILayout_Clipping_Test::init() Layout* layout1 = Layout::create(); layout1->setClippingEnabled(true); layout1->setContentSize(Size(widgetSize.width / 4, widgetSize.height / 3)); - layout1->setClippingType(cocos2d::ui::Layout::ClippingType::SCISSOR); + layout1->setClippingType(axis::ui::Layout::ClippingType::SCISSOR); layout1->setPosition(Vec2(widgetSize.width / 4.0f, widgetSize.height / 2.0f)); layout1->setAnchorPoint(Vec2(0.5, 0.5)); _uiLayer->addChild(layout1); @@ -988,7 +988,7 @@ bool UILayout_Clipping_Test::init() sublayout1->setClippingEnabled(true); sublayout1->setBackGroundImage("cocosui/Hello.png"); sublayout1->setContentSize(Size(widgetSize.width / 6, widgetSize.width / 2)); - sublayout1->setClippingType(cocos2d::ui::Layout::ClippingType::STENCIL); + sublayout1->setClippingType(axis::ui::Layout::ClippingType::STENCIL); sublayout1->setPosition(Vec2(widgetSize.width / 8.0f + widgetSize.width / 16.0f, widgetSize.height / 6.0f)); sublayout1->setAnchorPoint(Vec2(0.5, 0.5)); sublayout1->runAction(RepeatForever::create(Sequence::createWithTwoActions( @@ -998,7 +998,7 @@ bool UILayout_Clipping_Test::init() Layout* layout2 = Layout::create(); layout2->setClippingEnabled(true); layout2->setContentSize(Size(widgetSize.width / 4, widgetSize.height / 3)); - layout2->setClippingType(cocos2d::ui::Layout::ClippingType::SCISSOR); + layout2->setClippingType(axis::ui::Layout::ClippingType::SCISSOR); layout2->setPosition(Vec2(widgetSize.width * 3.0f / 4.0f, widgetSize.height / 2.0f)); layout2->setAnchorPoint(Vec2(0.5, 0.5)); _uiLayer->addChild(layout2); @@ -1007,7 +1007,7 @@ bool UILayout_Clipping_Test::init() sublayout2->setClippingEnabled(true); sublayout2->setBackGroundImage("cocosui/Hello.png"); sublayout2->setContentSize(Size(widgetSize.width / 6, widgetSize.width / 2)); - sublayout2->setClippingType(cocos2d::ui::Layout::ClippingType::SCISSOR); + sublayout2->setClippingType(axis::ui::Layout::ClippingType::SCISSOR); sublayout2->setPosition(Vec2(widgetSize.width / 8.0f + widgetSize.width / 16.0f, widgetSize.height / 6.0f)); sublayout2->setAnchorPoint(Vec2(0.5, 0.5)); sublayout2->runAction(RepeatForever::create(Sequence::createWithTwoActions( diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UILayoutTest/UILayoutTest.h b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UILayoutTest/UILayoutTest.h index f461e44328..08d03564df 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UILayoutTest/UILayoutTest.h +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UILayoutTest/UILayoutTest.h @@ -69,10 +69,10 @@ public: CREATE_FUNC(UILayoutTest_BackGroundImage); - void printWidgetResources(cocos2d::Ref* sender); + void printWidgetResources(axis::Ref* sender); protected: - cocos2d::ui::Layout* _layout; + axis::ui::Layout* _layout; }; class UILayoutTest_BackGroundImage_Scale9 : public UIScene @@ -141,10 +141,10 @@ public: CREATE_FUNC(UILayoutComponentTest); virtual bool init() override; - void touchEvent(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); + void touchEvent(axis::Ref* sender, axis::ui::Widget::TouchEventType type); protected: - cocos2d::LayerColor* _baseLayer; + axis::LayerColor* _baseLayer; }; class UILayoutComponent_Berth_Test : public UILayoutComponentTest diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIListViewTest/UIListViewTest.cpp b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIListViewTest/UIListViewTest.cpp index 8ca38a0bab..3c11c5ef20 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIListViewTest/UIListViewTest.cpp +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIListViewTest/UIListViewTest.cpp @@ -24,8 +24,8 @@ #include "UIListViewTest.h" -USING_NS_CC; -using namespace cocos2d::ui; +USING_NS_AX; +using namespace axis::ui; const char* font_UIListViewTest = "fonts/Marker Felt.ttf"; @@ -192,7 +192,7 @@ bool UIListViewTest_Vertical::init() return false; } -float UIListViewTest_Vertical::getItemPositionYInView(cocos2d::ui::Widget* item) const +float UIListViewTest_Vertical::getItemPositionYInView(axis::ui::Widget* item) const { auto worldPos = item->getParent()->convertToWorldSpaceAR(item->getPosition()); auto viewPos = this->_listView->convertToNodeSpaceAR(worldPos); @@ -258,14 +258,14 @@ void UIListViewTest_Vertical::selectedItemEvent(Ref* pSender, ListView::EventTyp { switch (type) { - case cocos2d::ui::ListView::EventType::ON_SELECTED_ITEM_START: + case axis::ui::ListView::EventType::ON_SELECTED_ITEM_START: { ListView* listView = static_cast(pSender); auto item = listView->getItem(listView->getCurSelectedIndex()); log("select child start index = %d", item->getTag()); break; } - case cocos2d::ui::ListView::EventType::ON_SELECTED_ITEM_END: + case axis::ui::ListView::EventType::ON_SELECTED_ITEM_END: { ListView* listView = static_cast(pSender); auto item = listView->getItem(listView->getCurSelectedIndex()); @@ -399,7 +399,7 @@ bool UIListViewTest_Horizontal::init() return false; } -float UIListViewTest_Horizontal::getItemPositionXInView(cocos2d::ui::Widget* item) const +float UIListViewTest_Horizontal::getItemPositionXInView(axis::ui::Widget* item) const { auto worldPos = item->getParent()->convertToWorldSpaceAR(item->getPosition()); auto viewPos = this->_listView->convertToNodeSpaceAR(worldPos); @@ -463,14 +463,14 @@ void UIListViewTest_Horizontal::selectedItemEvent(Ref* pSender, ListView::EventT { switch (type) { - case cocos2d::ui::ListView::EventType::ON_SELECTED_ITEM_START: + case axis::ui::ListView::EventType::ON_SELECTED_ITEM_START: { ListView* listView = static_cast(pSender); auto item = listView->getItem(listView->getCurSelectedIndex()); log("select child start index = %d", item->getTag()); break; } - case cocos2d::ui::ListView::EventType::ON_SELECTED_ITEM_END: + case axis::ui::ListView::EventType::ON_SELECTED_ITEM_END: { ListView* listView = static_cast(pSender); auto item = listView->getItem(listView->getCurSelectedIndex()); diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIListViewTest/UIListViewTest.h b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIListViewTest/UIListViewTest.h index db59ec5de5..d84b9c0fc9 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIListViewTest/UIListViewTest.h +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIListViewTest/UIListViewTest.h @@ -40,15 +40,15 @@ public: ~UIListViewTest_Vertical(); virtual bool init() override; - void selectedItemEvent(cocos2d::Ref* sender, cocos2d::ui::ListView::EventType type); - void selectedItemEventScrollView(cocos2d::Ref* sender, cocos2d::ui::ScrollView::EventType type); + void selectedItemEvent(axis::Ref* sender, axis::ui::ListView::EventType type); + void selectedItemEventScrollView(axis::Ref* sender, axis::ui::ScrollView::EventType type); virtual void update(float dt) override; protected: - float getItemPositionYInView(cocos2d::ui::Widget* item) const; + float getItemPositionYInView(axis::ui::Widget* item) const; void updateItem(int itemID, int templateID); - cocos2d::ui::Text* _displayValueLabel = nullptr; + axis::ui::Text* _displayValueLabel = nullptr; // How many items we actually spawn, these items will be reused. // Should > listview.width / templateWidth + 2. int _spawnCount = 5; @@ -64,9 +64,9 @@ protected: // Use this value to detect if we are scrolling left or right float _lastContentPosY = 0.f; float _reuseItemOffset = 0.f; - cocos2d::ui::ListView* _listView = nullptr; + axis::ui::ListView* _listView = nullptr; std::vector _array; - cocos2d::ui::Text* _indexLabels[3] = {nullptr}; + axis::ui::Text* _indexLabels[3] = {nullptr}; }; class UIListViewTest_Horizontal : public UIScene @@ -78,14 +78,14 @@ public: ~UIListViewTest_Horizontal(); virtual bool init() override; - void selectedItemEvent(cocos2d::Ref* sender, cocos2d::ui::ListView::EventType type); + void selectedItemEvent(axis::Ref* sender, axis::ui::ListView::EventType type); virtual void update(float dt) override; protected: - float getItemPositionXInView(cocos2d::ui::Widget* item) const; + float getItemPositionXInView(axis::ui::Widget* item) const; void updateItem(int itemID, int templateID); - cocos2d::ui::Text* _displayValueLabel = nullptr; + axis::ui::Text* _displayValueLabel = nullptr; // How many items we actually spawn, these items will be reused. // Should > listview.width / templateWidth + 2. int _spawnCount = 4; @@ -99,7 +99,7 @@ protected: float _updateTimer = 0.f; float _lastContentPosX = 0.f; float _reuseItemOffset = 0.f; - cocos2d::ui::ListView* _listView = nullptr; + axis::ui::ListView* _listView = nullptr; std::vector _array; }; @@ -125,10 +125,10 @@ class UIListViewTest_ScrollToItem : public UIScene { protected: virtual bool init() override; - virtual cocos2d::ui::ScrollView::Direction getListViewDirection() const = 0; + virtual axis::ui::ScrollView::Direction getListViewDirection() const = 0; - cocos2d::ui::ListView* _listView; - cocos2d::ui::Text* _titleLabel; + axis::ui::ListView* _listView; + axis::ui::Text* _titleLabel; int _nextIndex; }; @@ -136,9 +136,9 @@ class UIListViewTest_ScrollToItemVertical : public UIListViewTest_ScrollToItem { public: CREATE_FUNC(UIListViewTest_ScrollToItemVertical); - virtual cocos2d::ui::ScrollView::Direction getListViewDirection() const + virtual axis::ui::ScrollView::Direction getListViewDirection() const { - return cocos2d::ui::ScrollView::Direction::VERTICAL; + return axis::ui::ScrollView::Direction::VERTICAL; } }; @@ -146,9 +146,9 @@ class UIListViewTest_ScrollToItemHorizontal : public UIListViewTest_ScrollToItem { public: CREATE_FUNC(UIListViewTest_ScrollToItemHorizontal); - virtual cocos2d::ui::ScrollView::Direction getListViewDirection() const + virtual axis::ui::ScrollView::Direction getListViewDirection() const { - return cocos2d::ui::ScrollView::Direction::HORIZONTAL; + return axis::ui::ScrollView::Direction::HORIZONTAL; } }; @@ -157,20 +157,20 @@ class UIListViewTest_Magnetic : public UIScene { protected: virtual bool init() override; - virtual cocos2d::ui::ScrollView::Direction getListViewDirection() const = 0; + virtual axis::ui::ScrollView::Direction getListViewDirection() const = 0; - cocos2d::ui::ListView* _listView; - cocos2d::ui::Text* _titleLabel; - cocos2d::ui::Text* _indexLabels[5]; + axis::ui::ListView* _listView; + axis::ui::Text* _titleLabel; + axis::ui::Text* _indexLabels[5]; }; class UIListViewTest_MagneticVertical : public UIListViewTest_Magnetic { public: CREATE_FUNC(UIListViewTest_MagneticVertical); - virtual cocos2d::ui::ScrollView::Direction getListViewDirection() const + virtual axis::ui::ScrollView::Direction getListViewDirection() const { - return cocos2d::ui::ScrollView::Direction::VERTICAL; + return axis::ui::ScrollView::Direction::VERTICAL; } }; @@ -178,9 +178,9 @@ class UIListViewTest_MagneticHorizontal : public UIListViewTest_Magnetic { public: CREATE_FUNC(UIListViewTest_MagneticHorizontal); - virtual cocos2d::ui::ScrollView::Direction getListViewDirection() const + virtual axis::ui::ScrollView::Direction getListViewDirection() const { - return cocos2d::ui::ScrollView::Direction::HORIZONTAL; + return axis::ui::ScrollView::Direction::HORIZONTAL; } }; @@ -189,23 +189,23 @@ class UIListViewTest_Padding : public UIScene { protected: virtual bool init() override; - virtual cocos2d::ui::ScrollView::Direction getListViewDirection() const = 0; + virtual axis::ui::ScrollView::Direction getListViewDirection() const = 0; - void sliderEvent(cocos2d::Ref* pSender, cocos2d::ui::Slider::EventType type); + void sliderEvent(axis::Ref* pSender, axis::ui::Slider::EventType type); - cocos2d::ui::ListView* _listView; - cocos2d::ui::Text* _titleLabel; - cocos2d::ui::Text* _indexLabels[5]; - cocos2d::ui::Text* _paddingLabels[4]; + axis::ui::ListView* _listView; + axis::ui::Text* _titleLabel; + axis::ui::Text* _indexLabels[5]; + axis::ui::Text* _paddingLabels[4]; }; class UIListViewTest_PaddingVertical : public UIListViewTest_Padding { public: CREATE_FUNC(UIListViewTest_PaddingVertical); - virtual cocos2d::ui::ScrollView::Direction getListViewDirection() const + virtual axis::ui::ScrollView::Direction getListViewDirection() const { - return cocos2d::ui::ScrollView::Direction::VERTICAL; + return axis::ui::ScrollView::Direction::VERTICAL; } }; @@ -213,9 +213,9 @@ class UIListViewTest_PaddingHorizontal : public UIListViewTest_Padding { public: CREATE_FUNC(UIListViewTest_PaddingHorizontal); - virtual cocos2d::ui::ScrollView::Direction getListViewDirection() const + virtual axis::ui::ScrollView::Direction getListViewDirection() const { - return cocos2d::ui::ScrollView::Direction::HORIZONTAL; + return axis::ui::ScrollView::Direction::HORIZONTAL; } }; diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UILoadingBarTest/UILoadingBarTest.cpp b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UILoadingBarTest/UILoadingBarTest.cpp index 6f837a8c0f..3eff94fa2e 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UILoadingBarTest/UILoadingBarTest.cpp +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UILoadingBarTest/UILoadingBarTest.cpp @@ -24,8 +24,8 @@ #include "UILoadingBarTest.h" -USING_NS_CC; -using namespace cocos2d::ui; +USING_NS_AX; +using namespace axis::ui; UILoadingBarTests::UILoadingBarTests() { @@ -126,9 +126,9 @@ void UILoadingBarTest_Left::update(float delta) loadingBarCopy->setPercent(_count); } -void UILoadingBarTest_Left::printWidgetResources(cocos2d::Ref* sender) +void UILoadingBarTest_Left::printWidgetResources(axis::Ref* sender) { - cocos2d::ResourceData textureFile = _loadingBar->getRenderFile(); + axis::ResourceData textureFile = _loadingBar->getRenderFile(); CCLOG("textureFile Name : %s, Type: %d", textureFile.file.c_str(), textureFile.type); } diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UILoadingBarTest/UILoadingBarTest.h b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UILoadingBarTest/UILoadingBarTest.h index f3acba0514..6a0d36b7a7 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UILoadingBarTest/UILoadingBarTest.h +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UILoadingBarTest/UILoadingBarTest.h @@ -39,11 +39,11 @@ public: ~UILoadingBarTest_Left(); virtual bool init() override; void update(float delta) override; - void printWidgetResources(cocos2d::Ref* sender); + void printWidgetResources(axis::Ref* sender); protected: int _count; - cocos2d::ui::LoadingBar* _loadingBar; + axis::ui::LoadingBar* _loadingBar; }; class UILoadingBarTest_Right : public UIScene @@ -140,7 +140,7 @@ public: protected: int _count; - cocos2d::ui::LoadingBar* _loadingBar; + axis::ui::LoadingBar* _loadingBar; }; #endif /* defined(__TestCpp__UILoadingBarTest__) */ diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIPageViewTest/UIPageViewTest.cpp b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIPageViewTest/UIPageViewTest.cpp index 8c5b685132..d68d1c8f8b 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIPageViewTest/UIPageViewTest.cpp +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIPageViewTest/UIPageViewTest.cpp @@ -25,8 +25,8 @@ #include "UIPageViewTest.h" #include "cocos2d.h" -USING_NS_CC; -using namespace cocos2d::ui; +USING_NS_AX; +using namespace axis::ui; UIPageViewTests::UIPageViewTests() { @@ -104,7 +104,7 @@ bool UIPageViewTest::init() pageView->removeItem(0); pageView->scrollToItem(pageCount - 2); - cocos2d::log("TODO in %s %s %d", __FILE__, __FUNCTION__, __LINE__); + axis::log("TODO in %s %s %d", __FILE__, __FUNCTION__, __LINE__); pageView->setIndicatorIndexNodesOpacity(255); diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIPageViewTest/UIPageViewTest.h b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIPageViewTest/UIPageViewTest.h index 925527db81..3486ed55e6 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIPageViewTest/UIPageViewTest.h +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIPageViewTest/UIPageViewTest.h @@ -39,10 +39,10 @@ public: ~UIPageViewTest(); virtual bool init() override; - void pageViewEvent(cocos2d::Ref* sender, cocos2d::ui::PageView::EventType type); + void pageViewEvent(axis::Ref* sender, axis::ui::PageView::EventType type); protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UIPageViewButtonTest : public UIScene @@ -54,11 +54,11 @@ public: ~UIPageViewButtonTest(); virtual bool init() override; - void pageViewEvent(cocos2d::Ref* sender, cocos2d::ui::PageView::EventType type); - void onButtonClicked(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); + void pageViewEvent(axis::Ref* sender, axis::ui::PageView::EventType type); + void onButtonClicked(axis::Ref* sender, axis::ui::Widget::TouchEventType type); protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UIPageViewTouchPropagationTest : public UIScene @@ -70,11 +70,11 @@ public: ~UIPageViewTouchPropagationTest(); virtual bool init() override; - void pageViewEvent(cocos2d::Ref* sender, cocos2d::ui::PageView::EventType type); - void onButtonClicked(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); + void pageViewEvent(axis::Ref* sender, axis::ui::PageView::EventType type); + void onButtonClicked(axis::Ref* sender, axis::ui::Widget::TouchEventType type); protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UIPageViewDynamicAddAndRemoveTest : public UIScene @@ -86,11 +86,11 @@ public: ~UIPageViewDynamicAddAndRemoveTest(); virtual bool init() override; - void pageViewEvent(cocos2d::Ref* sender, cocos2d::ui::PageView::EventType type); - void onButtonClicked(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); + void pageViewEvent(axis::Ref* sender, axis::ui::PageView::EventType type); + void onButtonClicked(axis::Ref* sender, axis::ui::Widget::TouchEventType type); protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UIPageViewJumpToPageTest : public UIScene @@ -103,7 +103,7 @@ public: virtual bool init() override; protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UIPageViewVerticalTest : public UIScene @@ -115,10 +115,10 @@ public: ~UIPageViewVerticalTest(); virtual bool init() override; - void pageViewEvent(cocos2d::Ref* sender, cocos2d::ui::PageView::EventType type); + void pageViewEvent(axis::Ref* sender, axis::ui::PageView::EventType type); protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UIPageViewDisableTouchTest : public UIScene @@ -131,7 +131,7 @@ public: virtual bool init() override; protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UIPageViewChildSizeTest : public UIScene @@ -143,10 +143,10 @@ public: ~UIPageViewChildSizeTest(); virtual bool init() override; - void pageViewEvent(cocos2d::Ref* sender, cocos2d::ui::PageView::EventType type); + void pageViewEvent(axis::Ref* sender, axis::ui::PageView::EventType type); protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UIPageViewIndicatorTest : public UIScene @@ -159,7 +159,7 @@ public: virtual bool init() override; protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; #endif /* defined(__TestCpp__UIPageViewTest__) */ diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIRadioButtonTest/UIRadioButtonTest.cpp b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIRadioButtonTest/UIRadioButtonTest.cpp index 8ae2e33601..1e5b14a8d2 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIRadioButtonTest/UIRadioButtonTest.cpp +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIRadioButtonTest/UIRadioButtonTest.cpp @@ -24,8 +24,8 @@ #include "UIRadioButtonTest.h" -USING_NS_CC; -using namespace cocos2d::ui; +USING_NS_AX; +using namespace axis::ui; UIRadioButtonTests::UIRadioButtonTests() { @@ -236,7 +236,7 @@ bool UIRadioButtonTwoGroupsTest::init() void UIRadioButtonTwoGroupsTest::onChangedRadioButtonGroup1(RadioButton* radioButton, int index, - cocos2d::ui::RadioButtonGroup::EventType type) + axis::ui::RadioButtonGroup::EventType type) { CCASSERT(index == _radioButtonGroups[0]->getSelectedButtonIndex(), "The two indexes must match!"); auto text = StringUtils::format("RadioButtonGroup1 : %d", index); @@ -246,7 +246,7 @@ void UIRadioButtonTwoGroupsTest::onChangedRadioButtonGroup1(RadioButton* radioBu void UIRadioButtonTwoGroupsTest::onChangedRadioButtonGroup2(RadioButton* radioButton, int index, - cocos2d::ui::RadioButtonGroup::EventType type) + axis::ui::RadioButtonGroup::EventType type) { CCASSERT(index == _radioButtonGroups[1]->getSelectedButtonIndex(), "The two indexes must match!"); auto text = StringUtils::format("RadioButtonGroup2 : %d", index); diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIRadioButtonTest/UIRadioButtonTest.h b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIRadioButtonTest/UIRadioButtonTest.h index bb2277c6c1..95d578b48d 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIRadioButtonTest/UIRadioButtonTest.h +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIRadioButtonTest/UIRadioButtonTest.h @@ -44,8 +44,8 @@ public: void deleteRadioButton(Ref* sender); private: - cocos2d::ui::RadioButtonGroup* _radioButtonGroup; - cocos2d::ui::Text* _allowNoSelectionText; + axis::ui::RadioButtonGroup* _radioButtonGroup; + axis::ui::Text* _allowNoSelectionText; }; class UIRadioButtonTwoGroupsTest : public UIScene @@ -57,22 +57,22 @@ public: ~UIRadioButtonTwoGroupsTest(); virtual bool init() override; - void onChangedRadioButtonGroup1(cocos2d::ui::RadioButton* radioButton, + void onChangedRadioButtonGroup1(axis::ui::RadioButton* radioButton, int index, - cocos2d::ui::RadioButtonGroup::EventType type); - void onChangedRadioButtonGroup2(cocos2d::ui::RadioButton* radioButton, + axis::ui::RadioButtonGroup::EventType type); + void onChangedRadioButtonGroup2(axis::ui::RadioButton* radioButton, int index, - cocos2d::ui::RadioButtonGroup::EventType type); - void onChangedRadioButtonSelect(cocos2d::ui::RadioButton* radioButton, cocos2d::ui::RadioButton::EventType type); + axis::ui::RadioButtonGroup::EventType type); + void onChangedRadioButtonSelect(axis::ui::RadioButton* radioButton, axis::ui::RadioButton::EventType type); void clearRadioButtonGroup(Ref* sender); protected: void addLog(std::string_view log); - cocos2d::ui::RadioButtonGroup* _radioButtonGroups[2]; - cocos2d::ui::Text* _groupEventLabel; - cocos2d::ui::Text* _buttonEventLabel; - cocos2d::ui::Text* _logConsole; + axis::ui::RadioButtonGroup* _radioButtonGroups[2]; + axis::ui::Text* _groupEventLabel; + axis::ui::Text* _buttonEventLabel; + axis::ui::Text* _logConsole; int _numberOfLogLines; }; diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIRichTextTest/UIRichTextTest.cpp b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIRichTextTest/UIRichTextTest.cpp index 4e651fa23b..e47b9e72b4 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIRichTextTest/UIRichTextTest.cpp +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIRichTextTest/UIRichTextTest.cpp @@ -26,8 +26,8 @@ THE SOFTWARE. #include "cocostudio/CCArmatureDataManager.h" #include "cocostudio/CCArmature.h" -USING_NS_CC; -using namespace cocos2d::ui; +USING_NS_AX; +using namespace axis::ui; UIRichTextTests::UIRichTextTests() { diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIRichTextTest/UIRichTextTest.h b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIRichTextTest/UIRichTextTest.h index fb1b97869f..9b1b585262 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIRichTextTest/UIRichTextTest.h +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIRichTextTest/UIRichTextTest.h @@ -35,12 +35,12 @@ public: CREATE_FUNC(UIRichTextTest); bool init() override; - void touchEvent(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); - void switchWrapMode(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); - void switchAlignment(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); + void touchEvent(axis::Ref* sender, axis::ui::Widget::TouchEventType type); + void switchWrapMode(axis::Ref* sender, axis::ui::Widget::TouchEventType type); + void switchAlignment(axis::Ref* sender, axis::ui::Widget::TouchEventType type); protected: - cocos2d::ui::RichText* _richText; + axis::ui::RichText* _richText; }; class UIRichTextXMLBasic : public UIScene @@ -49,12 +49,12 @@ public: CREATE_FUNC(UIRichTextXMLBasic); bool init() override; - void touchEvent(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); - void switchWrapMode(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); - void switchAlignment(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); + void touchEvent(axis::Ref* sender, axis::ui::Widget::TouchEventType type); + void switchWrapMode(axis::Ref* sender, axis::ui::Widget::TouchEventType type); + void switchAlignment(axis::Ref* sender, axis::ui::Widget::TouchEventType type); protected: - cocos2d::ui::RichText* _richText; + axis::ui::RichText* _richText; }; class UIRichTextXMLSmallBig : public UIScene @@ -63,12 +63,12 @@ public: CREATE_FUNC(UIRichTextXMLSmallBig); bool init() override; - void touchEvent(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); - void switchWrapMode(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); - void switchAlignment(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); + void touchEvent(axis::Ref* sender, axis::ui::Widget::TouchEventType type); + void switchWrapMode(axis::Ref* sender, axis::ui::Widget::TouchEventType type); + void switchAlignment(axis::Ref* sender, axis::ui::Widget::TouchEventType type); protected: - cocos2d::ui::RichText* _richText; + axis::ui::RichText* _richText; }; class UIRichTextXMLColor : public UIScene @@ -77,12 +77,12 @@ public: CREATE_FUNC(UIRichTextXMLColor); bool init() override; - void touchEvent(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); - void switchWrapMode(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); - void switchAlignment(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); + void touchEvent(axis::Ref* sender, axis::ui::Widget::TouchEventType type); + void switchWrapMode(axis::Ref* sender, axis::ui::Widget::TouchEventType type); + void switchAlignment(axis::Ref* sender, axis::ui::Widget::TouchEventType type); protected: - cocos2d::ui::RichText* _richText; + axis::ui::RichText* _richText; }; class UIRichTextXMLSUIB : public UIScene @@ -91,12 +91,12 @@ public: CREATE_FUNC(UIRichTextXMLSUIB); bool init() override; - void touchEvent(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); - void switchWrapMode(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); - void switchAlignment(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); + void touchEvent(axis::Ref* sender, axis::ui::Widget::TouchEventType type); + void switchWrapMode(axis::Ref* sender, axis::ui::Widget::TouchEventType type); + void switchAlignment(axis::Ref* sender, axis::ui::Widget::TouchEventType type); protected: - cocos2d::ui::RichText* _richText; + axis::ui::RichText* _richText; }; class UIRichTextXMLSUIB2 : public UIScene @@ -105,12 +105,12 @@ public: CREATE_FUNC(UIRichTextXMLSUIB2); bool init() override; - void touchEvent(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); - void switchWrapMode(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); - void switchAlignment(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); + void touchEvent(axis::Ref* sender, axis::ui::Widget::TouchEventType type); + void switchWrapMode(axis::Ref* sender, axis::ui::Widget::TouchEventType type); + void switchAlignment(axis::Ref* sender, axis::ui::Widget::TouchEventType type); protected: - cocos2d::ui::RichText* _richText; + axis::ui::RichText* _richText; }; class UIRichTextXMLSUIB3 : public UIScene @@ -119,12 +119,12 @@ public: CREATE_FUNC(UIRichTextXMLSUIB3); bool init() override; - void touchEvent(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); - void switchWrapMode(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); - void switchAlignment(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); + void touchEvent(axis::Ref* sender, axis::ui::Widget::TouchEventType type); + void switchWrapMode(axis::Ref* sender, axis::ui::Widget::TouchEventType type); + void switchAlignment(axis::Ref* sender, axis::ui::Widget::TouchEventType type); protected: - cocos2d::ui::RichText* _richText; + axis::ui::RichText* _richText; }; class UIRichTextXMLImg : public UIScene @@ -133,12 +133,12 @@ public: CREATE_FUNC(UIRichTextXMLImg); bool init() override; - void touchEvent(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); - void switchWrapMode(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); - void switchAlignment(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); + void touchEvent(axis::Ref* sender, axis::ui::Widget::TouchEventType type); + void switchWrapMode(axis::Ref* sender, axis::ui::Widget::TouchEventType type); + void switchAlignment(axis::Ref* sender, axis::ui::Widget::TouchEventType type); protected: - cocos2d::ui::RichText* _richText; + axis::ui::RichText* _richText; }; class UIRichTextXMLUrl : public UIScene @@ -147,12 +147,12 @@ public: CREATE_FUNC(UIRichTextXMLUrl); bool init() override; - void touchEvent(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); - void switchWrapMode(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); - void switchAlignment(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); + void touchEvent(axis::Ref* sender, axis::ui::Widget::TouchEventType type); + void switchWrapMode(axis::Ref* sender, axis::ui::Widget::TouchEventType type); + void switchAlignment(axis::Ref* sender, axis::ui::Widget::TouchEventType type); protected: - cocos2d::ui::RichText* _richText; + axis::ui::RichText* _richText; }; class UIRichTextXMLUrlImg : public UIScene @@ -161,12 +161,12 @@ public: CREATE_FUNC(UIRichTextXMLUrlImg); bool init() override; - void touchEvent(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); - void switchWrapMode(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); - void switchAlignment(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); + void touchEvent(axis::Ref* sender, axis::ui::Widget::TouchEventType type); + void switchWrapMode(axis::Ref* sender, axis::ui::Widget::TouchEventType type); + void switchAlignment(axis::Ref* sender, axis::ui::Widget::TouchEventType type); protected: - cocos2d::ui::RichText* _richText; + axis::ui::RichText* _richText; }; class UIRichTextXMLFace : public UIScene @@ -175,12 +175,12 @@ public: CREATE_FUNC(UIRichTextXMLFace); bool init() override; - void touchEvent(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); - void switchWrapMode(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); - void switchAlignment(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); + void touchEvent(axis::Ref* sender, axis::ui::Widget::TouchEventType type); + void switchWrapMode(axis::Ref* sender, axis::ui::Widget::TouchEventType type); + void switchAlignment(axis::Ref* sender, axis::ui::Widget::TouchEventType type); protected: - cocos2d::ui::RichText* _richText; + axis::ui::RichText* _richText; }; class UIRichTextXMLBR : public UIScene @@ -189,12 +189,12 @@ public: CREATE_FUNC(UIRichTextXMLBR); bool init() override; - void touchEvent(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); - void switchWrapMode(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); - void switchAlignment(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); + void touchEvent(axis::Ref* sender, axis::ui::Widget::TouchEventType type); + void switchWrapMode(axis::Ref* sender, axis::ui::Widget::TouchEventType type); + void switchAlignment(axis::Ref* sender, axis::ui::Widget::TouchEventType type); protected: - cocos2d::ui::RichText* _richText; + axis::ui::RichText* _richText; }; class UIRichTextXMLInvalid : public UIScene @@ -205,7 +205,7 @@ public: bool init() override; protected: - cocos2d::ui::RichText* _richText; + axis::ui::RichText* _richText; }; class UIRichTextXMLOutline : public UIScene @@ -214,12 +214,12 @@ public: CREATE_FUNC(UIRichTextXMLOutline); bool init() override; - void touchEvent(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); - void switchWrapMode(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); - void switchAlignment(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); + void touchEvent(axis::Ref* sender, axis::ui::Widget::TouchEventType type); + void switchWrapMode(axis::Ref* sender, axis::ui::Widget::TouchEventType type); + void switchAlignment(axis::Ref* sender, axis::ui::Widget::TouchEventType type); protected: - cocos2d::ui::RichText* _richText; + axis::ui::RichText* _richText; }; class UIRichTextXMLShadow : public UIScene @@ -228,12 +228,12 @@ public: CREATE_FUNC(UIRichTextXMLShadow); bool init() override; - void touchEvent(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); - void switchWrapMode(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); - void switchAlignment(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); + void touchEvent(axis::Ref* sender, axis::ui::Widget::TouchEventType type); + void switchWrapMode(axis::Ref* sender, axis::ui::Widget::TouchEventType type); + void switchAlignment(axis::Ref* sender, axis::ui::Widget::TouchEventType type); protected: - cocos2d::ui::RichText* _richText; + axis::ui::RichText* _richText; }; class UIRichTextXMLGlow : public UIScene @@ -242,12 +242,12 @@ public: CREATE_FUNC(UIRichTextXMLGlow); bool init() override; - void touchEvent(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); - void switchWrapMode(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); - void switchAlignment(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); + void touchEvent(axis::Ref* sender, axis::ui::Widget::TouchEventType type); + void switchWrapMode(axis::Ref* sender, axis::ui::Widget::TouchEventType type); + void switchAlignment(axis::Ref* sender, axis::ui::Widget::TouchEventType type); protected: - cocos2d::ui::RichText* _richText; + axis::ui::RichText* _richText; }; class UIRichTextXMLExtend : public UIScene @@ -256,12 +256,12 @@ public: CREATE_FUNC(UIRichTextXMLExtend); bool init() override; - void touchEvent(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); - void switchWrapMode(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); - void switchAlignment(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); + void touchEvent(axis::Ref* sender, axis::ui::Widget::TouchEventType type); + void switchWrapMode(axis::Ref* sender, axis::ui::Widget::TouchEventType type); + void switchAlignment(axis::Ref* sender, axis::ui::Widget::TouchEventType type); protected: - cocos2d::ui::RichText* _richText; + axis::ui::RichText* _richText; }; class UIRichTextXMLSpace : public UIScene @@ -270,12 +270,12 @@ public: CREATE_FUNC(UIRichTextXMLSpace); bool init() override; - void touchEvent(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); - void switchWrapMode(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); - void switchAlignment(cocos2d::Ref* sender, cocos2d::ui::Widget::TouchEventType type); + void touchEvent(axis::Ref* sender, axis::ui::Widget::TouchEventType type); + void switchWrapMode(axis::Ref* sender, axis::ui::Widget::TouchEventType type); + void switchAlignment(axis::Ref* sender, axis::ui::Widget::TouchEventType type); protected: - cocos2d::ui::RichText* _richText; + axis::ui::RichText* _richText; }; #endif /* defined(__TestCpp__UIRichTextTest__) */ diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIScale9SpriteTest.cpp b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIScale9SpriteTest.cpp index ee4debdb67..7a8b2241af 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIScale9SpriteTest.cpp +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIScale9SpriteTest.cpp @@ -26,8 +26,8 @@ #include "UIScale9SpriteTest.h" #include "testResource.h" -USING_NS_CC; -using namespace cocos2d::ui; +USING_NS_AX; +using namespace axis::ui; UIScale9SpriteTests::UIScale9SpriteTests() { @@ -105,7 +105,7 @@ bool UIScale9SpriteTest::init() this->addChild(sp1); sp1->runAction((FiniteTimeAction*)action2); - cocos2d::ui::Scale9Sprite* sp2 = ui::Scale9Sprite::create("cocosui/animationbuttonnormal.png"); + axis::ui::Scale9Sprite* sp2 = ui::Scale9Sprite::create("cocosui/animationbuttonnormal.png"); sp2->setPosition(350.0f, 160.0f); sp2->setPreferredSize(sp1->getContentSize() * 1.2f); sp2->setColor(Color3B::GREEN); @@ -160,7 +160,7 @@ bool UIScale9SpriteHierarchialTest::init() this->addChild(sp1); sp1->runAction((FiniteTimeAction*)action2); - cocos2d::ui::Scale9Sprite* sp2 = ui::Scale9Sprite::create("cocosui/animationbuttonnormal.png"); + axis::ui::Scale9Sprite* sp2 = ui::Scale9Sprite::create("cocosui/animationbuttonnormal.png"); sp2->setPreferredSize(sp1->getContentSize() * 1.2f); sp2->setColor(Color3B::GREEN); sp2->setFlippedX(true); @@ -186,7 +186,7 @@ bool UIScale9SpriteTouchTest::init() Size size = Director::getInstance()->getVisibleSize(); auto containerForSprite1 = Node::create(); - auto sprite1 = cocos2d::ui::Scale9Sprite::create("Images/CyanSquare.png"); + auto sprite1 = axis::ui::Scale9Sprite::create("Images/CyanSquare.png"); sprite1->setPosition(origin + Vec2(size.width / 2, size.height / 2) + Vec2(-80.0f, 80.0f)); containerForSprite1->addChild(sprite1); addChild(containerForSprite1, 10); @@ -1182,7 +1182,7 @@ bool UIS9GrayStateOpacityTest::init() return false; } -void UIS9GrayStateOpacityTest::sliderEvent(cocos2d::Ref* sender, cocos2d::ui::Slider::EventType type) +void UIS9GrayStateOpacityTest::sliderEvent(axis::Ref* sender, axis::ui::Slider::EventType type) { if (type == Slider::EventType::ON_PERCENTAGE_CHANGED) { diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIScale9SpriteTest.h b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIScale9SpriteTest.h index b066874d00..71f9736bda 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIScale9SpriteTest.h +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIScale9SpriteTest.h @@ -314,7 +314,7 @@ class UIS9GrayStateOpacityTest : public UIScene { public: CREATE_FUNC(UIS9GrayStateOpacityTest); - void sliderEvent(cocos2d::Ref* sender, cocos2d::ui::Slider::EventType type); + void sliderEvent(axis::Ref* sender, axis::ui::Slider::EventType type); virtual bool init() override; }; diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIScene.cpp b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIScene.cpp index 5d3acae760..16f2d82583 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIScene.cpp +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIScene.cpp @@ -28,8 +28,8 @@ #include "cocostudio/CCSGUIReader.h" #include "CocosGUIScene.h" -USING_NS_CC; -using namespace cocos2d::ui; +USING_NS_AX; +using namespace axis::ui; UIScene::UIScene() : _uiLayer(nullptr), _sceneTitle(nullptr) {} diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIScene.h b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIScene.h index d85e2c35f3..30a011f47b 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIScene.h +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIScene.h @@ -41,9 +41,9 @@ public: virtual void onEnter() override; protected: - cocos2d::Layer* _uiLayer; - cocos2d::ui::Layout* _widget; - cocos2d::ui::Text* _sceneTitle; + axis::Layer* _uiLayer; + axis::ui::Layout* _widget; + axis::ui::Text* _sceneTitle; }; #endif /* defined(__TestCpp__UIScene__) */ diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIScrollViewTest/UIScrollViewTest.cpp b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIScrollViewTest/UIScrollViewTest.cpp index 021c021b40..f195a097eb 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIScrollViewTest/UIScrollViewTest.cpp +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIScrollViewTest/UIScrollViewTest.cpp @@ -24,8 +24,8 @@ #include "UIScrollViewTest.h" -USING_NS_CC; -using namespace cocos2d::ui; +USING_NS_AX; +using namespace axis::ui; UIScrollViewTests::UIScrollViewTests() { diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIScrollViewTest/UIScrollViewTest.h b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIScrollViewTest/UIScrollViewTest.h index 0da2619640..38d5589378 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIScrollViewTest/UIScrollViewTest.h +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIScrollViewTest/UIScrollViewTest.h @@ -40,7 +40,7 @@ public: virtual bool init() override; protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UIScrollViewTest_Horizontal : public UIScene @@ -53,7 +53,7 @@ public: virtual bool init() override; protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UIScrollViewTest_Both : public UIScene @@ -66,7 +66,7 @@ public: virtual bool init() override; protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UIScrollViewTest_ScrollToPercentBothDirection : public UIScene @@ -79,7 +79,7 @@ public: virtual bool init() override; protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UIScrollViewTest_ScrollToPercentBothDirection_Bounce : public UIScene @@ -92,7 +92,7 @@ public: virtual bool init() override; protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UIScrollViewNestTest : public UIScene @@ -105,7 +105,7 @@ public: virtual bool init() override; protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UIScrollViewRotated : public UIScene @@ -118,7 +118,7 @@ public: virtual bool init() override; protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UIScrollViewDisableTest : public UIScene @@ -131,7 +131,7 @@ public: virtual bool init() override; protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UIScrollViewInnerSize : public UIScene @@ -144,7 +144,7 @@ public: virtual bool init() override; protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UIScrollViewTestEvents : public UIScene @@ -156,7 +156,7 @@ public: virtual bool init() override; protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UIScrollViewStopScrollingTest : public UIScene @@ -170,8 +170,8 @@ public: virtual void update(float dt) override; protected: - cocos2d::ui::Text* _displayValueLabel; - cocos2d::ui::ScrollView* _scrollView; + axis::ui::Text* _displayValueLabel; + axis::ui::ScrollView* _scrollView; float _remainingTime; }; #endif /* defined(__TestCpp__UIScrollViewTest__) */ diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UISliderTest/UISliderTest.cpp b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UISliderTest/UISliderTest.cpp index 197fb14200..7b903f4588 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UISliderTest/UISliderTest.cpp +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UISliderTest/UISliderTest.cpp @@ -24,8 +24,8 @@ #include "UISliderTest.h" -USING_NS_CC; -using namespace cocos2d::ui; +USING_NS_AX; +using namespace axis::ui; UISliderTests::UISliderTests() { @@ -100,20 +100,20 @@ void UISliderTest::sliderEvent(Ref* pSender, Slider::EventType type) _displayValueLabel->setString(StringUtils::format("Percent %f", 10000.0 * percent / maxPercent)); } } -void UISliderTest::printWidgetResources(cocos2d::Ref* /*sender*/) +void UISliderTest::printWidgetResources(axis::Ref* /*sender*/) { - cocos2d::ResourceData textureFile = _slider->getBackFile(); + axis::ResourceData textureFile = _slider->getBackFile(); CCLOG("textureFile Name : %s, Type: %d", textureFile.file.c_str(), textureFile.type); - cocos2d::ResourceData progressBarTextureFile = _slider->getProgressBarFile(); + axis::ResourceData progressBarTextureFile = _slider->getProgressBarFile(); CCLOG("progressBarTextureFile Name : %s, Type: %d", progressBarTextureFile.file.c_str(), progressBarTextureFile.type); - cocos2d::ResourceData slidBallNormalTextureFile = _slider->getBallNormalFile(); + axis::ResourceData slidBallNormalTextureFile = _slider->getBallNormalFile(); CCLOG("slidBallNormalTextureFile Name : %s, Type: %d", slidBallNormalTextureFile.file.c_str(), slidBallNormalTextureFile.type); - cocos2d::ResourceData slidBallPressedTextureFile = _slider->getBallPressedFile(); + axis::ResourceData slidBallPressedTextureFile = _slider->getBallPressedFile(); CCLOG("slidBallPressedTextureFile Name : %s, Type: %d", slidBallPressedTextureFile.file.c_str(), slidBallPressedTextureFile.type); - cocos2d::ResourceData slidBallDisabledTextureFile = _slider->getBallDisabledFile(); + axis::ResourceData slidBallDisabledTextureFile = _slider->getBallDisabledFile(); CCLOG("slidBallDisabledTextureFile Name : %s, Type: %d", slidBallDisabledTextureFile.file.c_str(), slidBallDisabledTextureFile.type); } diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UISliderTest/UISliderTest.h b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UISliderTest/UISliderTest.h index b9acc0efb8..bc11a9e773 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UISliderTest/UISliderTest.h +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UISliderTest/UISliderTest.h @@ -38,12 +38,12 @@ public: UISliderTest(); ~UISliderTest(); virtual bool init() override; - void sliderEvent(cocos2d::Ref* sender, cocos2d::ui::Slider::EventType type); - void printWidgetResources(cocos2d::Ref* sender); + void sliderEvent(axis::Ref* sender, axis::ui::Slider::EventType type); + void printWidgetResources(axis::Ref* sender); protected: - cocos2d::ui::TextBMFont* _displayValueLabel; - cocos2d::ui::Slider* _slider; + axis::ui::TextBMFont* _displayValueLabel; + axis::ui::Slider* _slider; }; class UISliderTest_Scale9 : public UIScene @@ -54,10 +54,10 @@ public: UISliderTest_Scale9(); ~UISliderTest_Scale9(); virtual bool init() override; - void sliderEvent(cocos2d::Ref* sender, cocos2d::ui::Slider::EventType type); + void sliderEvent(axis::Ref* sender, axis::ui::Slider::EventType type); protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UISliderTest_Scale9_State_Change : public UIScene @@ -68,10 +68,10 @@ public: UISliderTest_Scale9_State_Change(); ~UISliderTest_Scale9_State_Change(); virtual bool init() override; - void sliderEvent(cocos2d::Ref* sender, cocos2d::ui::Slider::EventType type); + void sliderEvent(axis::Ref* sender, axis::ui::Slider::EventType type); protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UISliderNormalDefaultTest : public UIScene @@ -84,7 +84,7 @@ public: virtual bool init() override; protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UISliderDisabledDefaultTest : public UIScene @@ -97,7 +97,7 @@ public: virtual bool init() override; protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UISliderNewEventCallbackTest : public UIScene @@ -110,7 +110,7 @@ public: virtual bool init() override; protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UISliderIssue12249Test : public UIScene @@ -121,9 +121,9 @@ public: UISliderIssue12249Test(); ~UISliderIssue12249Test(); virtual bool init() override; - void sliderEvent(cocos2d::Ref* sender, cocos2d::ui::Slider::EventType type); + void sliderEvent(axis::Ref* sender, axis::ui::Slider::EventType type); protected: - cocos2d::ui::TextBMFont* _displayValueLabel; + axis::ui::TextBMFont* _displayValueLabel; }; #endif /* defined(__TestCpp__UISliderTest__) */ diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UITabControlTest/UITabControlTest.cpp b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UITabControlTest/UITabControlTest.cpp index 4a0fedbda8..b342638693 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UITabControlTest/UITabControlTest.cpp +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UITabControlTest/UITabControlTest.cpp @@ -26,8 +26,8 @@ #include "ui/UITabControl.h" #include "UITabControlTest.h" -USING_NS_CC; -using namespace cocos2d::ui; +USING_NS_AX; +using namespace axis::ui; UITabControlTests::UITabControlTests() { diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UITextAtlasTest/UITextAtlasTest.cpp b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UITextAtlasTest/UITextAtlasTest.cpp index e9f06178a1..014bc4a43f 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UITextAtlasTest/UITextAtlasTest.cpp +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UITextAtlasTest/UITextAtlasTest.cpp @@ -24,8 +24,8 @@ #include "UITextAtlasTest.h" -USING_NS_CC; -using namespace cocos2d::ui; +USING_NS_AX; +using namespace axis::ui; UITextAtlasTests::UITextAtlasTests() { @@ -73,9 +73,9 @@ bool UITextAtlasTest::init() } return false; } -void UITextAtlasTest::printWidgetResources(cocos2d::Ref* sender) +void UITextAtlasTest::printWidgetResources(axis::Ref* sender) { - cocos2d::ResourceData textureFile = _textAtlas->getRenderFile(); + axis::ResourceData textureFile = _textAtlas->getRenderFile(); CCLOG("textureFile Name : %s, Type: %d", textureFile.file.c_str(), textureFile.type); } @@ -123,8 +123,8 @@ bool UITextAtlasETC1ShadowTest::init() } return false; } -void UITextAtlasETC1ShadowTest::printWidgetResources(cocos2d::Ref* sender) +void UITextAtlasETC1ShadowTest::printWidgetResources(axis::Ref* sender) { - cocos2d::ResourceData textureFile = _textAtlas->getRenderFile(); + axis::ResourceData textureFile = _textAtlas->getRenderFile(); CCLOG("textureFile Name : %s, Type: %d", textureFile.file.c_str(), textureFile.type); } diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UITextAtlasTest/UITextAtlasTest.h b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UITextAtlasTest/UITextAtlasTest.h index 9c742f9260..6fd122b8d2 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UITextAtlasTest/UITextAtlasTest.h +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UITextAtlasTest/UITextAtlasTest.h @@ -35,10 +35,10 @@ public: CREATE_FUNC(UITextAtlasTest); virtual bool init() override; - void printWidgetResources(cocos2d::Ref* sender); + void printWidgetResources(axis::Ref* sender); protected: - cocos2d::ui::TextAtlas* _textAtlas; + axis::ui::TextAtlas* _textAtlas; }; class UITextAtlasETC1ShadowTest : public UIScene @@ -47,10 +47,10 @@ public: CREATE_FUNC(UITextAtlasETC1ShadowTest); virtual bool init() override; - void printWidgetResources(cocos2d::Ref* sender); + void printWidgetResources(axis::Ref* sender); protected: - cocos2d::ui::TextAtlas* _textAtlas; + axis::ui::TextAtlas* _textAtlas; }; #endif /* defined(__TestCpp__UITextAtlasTest__) */ diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UITextBMFontTest/UITextBMFontTest.cpp b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UITextBMFontTest/UITextBMFontTest.cpp index 6f27a9612b..f6815ae8ea 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UITextBMFontTest/UITextBMFontTest.cpp +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UITextBMFontTest/UITextBMFontTest.cpp @@ -24,8 +24,8 @@ #include "UITextBMFontTest.h" -USING_NS_CC; -using namespace cocos2d::ui; +USING_NS_AX; +using namespace axis::ui; UITextBMFontTests::UITextBMFontTests() { @@ -66,8 +66,8 @@ bool UITextBMFontTest::init() } return false; } -void UITextBMFontTest::printWidgetResources(cocos2d::Ref* sender) +void UITextBMFontTest::printWidgetResources(axis::Ref* sender) { - cocos2d::ResourceData textureFile = _textBMFont->getRenderFile(); + axis::ResourceData textureFile = _textBMFont->getRenderFile(); CCLOG("textureFile Name : %s, Type: %d", textureFile.file.c_str(), textureFile.type); } diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UITextBMFontTest/UITextBMFontTest.h b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UITextBMFontTest/UITextBMFontTest.h index 37a3788b28..639c5340d0 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UITextBMFontTest/UITextBMFontTest.h +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UITextBMFontTest/UITextBMFontTest.h @@ -36,10 +36,10 @@ public: CREATE_FUNC(UITextBMFontTest) virtual bool init() override; - void printWidgetResources(cocos2d::Ref* sender); + void printWidgetResources(axis::Ref* sender); protected: - cocos2d::ui::TextBMFont* _textBMFont; + axis::ui::TextBMFont* _textBMFont; }; #endif /* defined(__TestCpp__UITextBMFontTest__) */ diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UITextFieldTest/UITextFieldTest.cpp b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UITextFieldTest/UITextFieldTest.cpp index 36f6aec625..527cb43030 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UITextFieldTest/UITextFieldTest.cpp +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UITextFieldTest/UITextFieldTest.cpp @@ -24,8 +24,8 @@ #include "UITextFieldTest.h" -USING_NS_CC; -using namespace cocos2d::ui; +USING_NS_AX; +using namespace axis::ui; UITextFieldTests::UITextFieldTests() { diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UITextFieldTest/UITextFieldTest.h b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UITextFieldTest/UITextFieldTest.h index 62d0e201e0..7cfe03eb04 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UITextFieldTest/UITextFieldTest.h +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UITextFieldTest/UITextFieldTest.h @@ -38,10 +38,10 @@ public: UITextFieldTest(); ~UITextFieldTest(); virtual bool init() override; - void textFieldEvent(cocos2d::Ref* sender, cocos2d::ui::TextField::EventType type); + void textFieldEvent(axis::Ref* sender, axis::ui::TextField::EventType type); protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UITextFieldTest_MaxLength : public UIScene @@ -52,10 +52,10 @@ public: UITextFieldTest_MaxLength(); ~UITextFieldTest_MaxLength(); virtual bool init() override; - void textFieldEvent(cocos2d::Ref* sender, cocos2d::ui::TextField::EventType type); + void textFieldEvent(axis::Ref* sender, axis::ui::TextField::EventType type); protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UITextFieldTest_Password : public UIScene @@ -66,10 +66,10 @@ public: UITextFieldTest_Password(); ~UITextFieldTest_Password(); virtual bool init() override; - void textFieldEvent(cocos2d::Ref* sender, cocos2d::ui::TextField::EventType type); + void textFieldEvent(axis::Ref* sender, axis::ui::TextField::EventType type); protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UITextFieldTest_LineWrap : public UIScene @@ -80,10 +80,10 @@ public: UITextFieldTest_LineWrap(); ~UITextFieldTest_LineWrap(); virtual bool init() override; - void textFieldEvent(cocos2d::Ref* sender, cocos2d::ui::TextField::EventType type); + void textFieldEvent(axis::Ref* sender, axis::ui::TextField::EventType type); protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UITextFieldTest_TrueTypeFont : public UIScene @@ -94,10 +94,10 @@ public: UITextFieldTest_TrueTypeFont(); ~UITextFieldTest_TrueTypeFont(); virtual bool init() override; - void textFieldEvent(cocos2d::Ref* sender, cocos2d::ui::TextField::EventType type); + void textFieldEvent(axis::Ref* sender, axis::ui::TextField::EventType type); protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UITextFieldTest_BMFont : public UIScene @@ -108,10 +108,10 @@ public: UITextFieldTest_BMFont(); ~UITextFieldTest_BMFont(); virtual bool init() override; - void textFieldEvent(cocos2d::Ref* sender, cocos2d::ui::TextField::EventType type); + void textFieldEvent(axis::Ref* sender, axis::ui::TextField::EventType type); protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; class UITextFieldTest_PlaceHolderColor : public UIScene @@ -122,9 +122,9 @@ public: UITextFieldTest_PlaceHolderColor(); ~UITextFieldTest_PlaceHolderColor(); virtual bool init() override; - void textFieldEvent(cocos2d::Ref* sender, cocos2d::ui::TextField::EventType type); + void textFieldEvent(axis::Ref* sender, axis::ui::TextField::EventType type); protected: - cocos2d::ui::Text* _displayValueLabel; + axis::ui::Text* _displayValueLabel; }; #endif /* defined(__TestCpp__UITextFieldTest__) */ diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UITextTest/UITextTest.cpp b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UITextTest/UITextTest.cpp index 0724736d4e..eb07f3fe35 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UITextTest/UITextTest.cpp +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UITextTest/UITextTest.cpp @@ -24,9 +24,9 @@ #include "UITextTest.h" -USING_NS_CC; -USING_NS_CC_EXT; -using namespace cocos2d::ui; +USING_NS_AX; +USING_NS_AX_EXT; +using namespace axis::ui; UITextTests::UITextTests() { diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIVideoPlayerTest/UIVideoPlayerTest.cpp b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIVideoPlayerTest/UIVideoPlayerTest.cpp index b26d70e0b6..aed5f0167b 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIVideoPlayerTest/UIVideoPlayerTest.cpp +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIVideoPlayerTest/UIVideoPlayerTest.cpp @@ -25,8 +25,8 @@ #include "UIVideoPlayerTest.h" -USING_NS_CC; -using namespace cocos2d::ui; +USING_NS_AX; +using namespace axis::ui; VideoPlayerTests::VideoPlayerTests() { @@ -285,7 +285,7 @@ void VideoPlayerTest::videoEventCallback(Ref* sender, VideoPlayer::EventType eve SimpleVideoPlayerTest::SimpleVideoPlayerTest() { _videoPlayer = nullptr; - _style = cocos2d::ui::VideoPlayer::StyleType::NONE; + _style = axis::ui::VideoPlayer::StyleType::NONE; _userInputEnabled = true; _switchUserInputEnabled = nullptr; @@ -305,12 +305,12 @@ void SimpleVideoPlayerTest::updateButtonsTexts() std::string str = " - "; switch (_style) { - case cocos2d::ui::VideoPlayer::StyleType::NONE: + case axis::ui::VideoPlayer::StyleType::NONE: _switchUserInputEnabled->setVisible(false); str = "< NO Sytle >"; break; - case cocos2d::ui::VideoPlayer::StyleType::DEFAULT: + case axis::ui::VideoPlayer::StyleType::DEFAULT: str = "< Default Style >"; _switchUserInputEnabled->setVisible(true); break; @@ -381,12 +381,12 @@ void SimpleVideoPlayerTest::switchStyleCallback(Ref* sender) { switch (_style) { - case cocos2d::ui::VideoPlayer::StyleType::NONE: - _style = cocos2d::ui::VideoPlayer::StyleType::DEFAULT; + case axis::ui::VideoPlayer::StyleType::NONE: + _style = axis::ui::VideoPlayer::StyleType::DEFAULT; break; - case cocos2d::ui::VideoPlayer::StyleType::DEFAULT: - _style = cocos2d::ui::VideoPlayer::StyleType::NONE; + case axis::ui::VideoPlayer::StyleType::DEFAULT: + _style = axis::ui::VideoPlayer::StyleType::NONE; break; default: diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIVideoPlayerTest/UIVideoPlayerTest.h b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIVideoPlayerTest/UIVideoPlayerTest.h index cc3e1684a5..310076d406 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIVideoPlayerTest/UIVideoPlayerTest.h +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIVideoPlayerTest/UIVideoPlayerTest.h @@ -37,22 +37,22 @@ public: virtual bool init() override; - void menuCloseCallback(cocos2d::Ref* sender); + void menuCloseCallback(axis::Ref* sender); - void menuRatioCallback(cocos2d::Ref* sender); - void menuResourceVideoCallback(cocos2d::Ref* sender); - void menuOnlineVideoCallback(cocos2d::Ref* sender); + void menuRatioCallback(axis::Ref* sender); + void menuResourceVideoCallback(axis::Ref* sender); + void menuOnlineVideoCallback(axis::Ref* sender); - void menuFullScreenCallback(cocos2d::Ref* sender); - void menuPauseCallback(cocos2d::Ref* sender); - void menuResumeCallback(cocos2d::Ref* sender); - void menuStopCallback(cocos2d::Ref* sender); - void menuHintCallback(cocos2d::Ref* sender); - void menuLoopCallback(cocos2d::Ref* sender); + void menuFullScreenCallback(axis::Ref* sender); + void menuPauseCallback(axis::Ref* sender); + void menuResumeCallback(axis::Ref* sender); + void menuStopCallback(axis::Ref* sender); + void menuHintCallback(axis::Ref* sender); + void menuLoopCallback(axis::Ref* sender); - void sliderCallback(cocos2d::Ref* sender, cocos2d::ui::Slider::EventType eventType); + void sliderCallback(axis::Ref* sender, axis::ui::Slider::EventType eventType); - void videoEventCallback(cocos2d::Ref* sender, cocos2d::ui::VideoPlayer::EventType eventType); + void videoEventCallback(axis::Ref* sender, axis::ui::VideoPlayer::EventType eventType); void onEnter() override; void onExit() override; @@ -61,10 +61,10 @@ private: void createVideo(); void createSlider(); - cocos2d::ui::VideoPlayer* _videoPlayer = nullptr; - cocos2d::Label* _videoStateLabel; - cocos2d::Label* _loopStatusLabel; - cocos2d::Rect _visibleRect; + axis::ui::VideoPlayer* _videoPlayer = nullptr; + axis::Label* _videoStateLabel; + axis::Label* _loopStatusLabel; + axis::Rect _visibleRect; }; class SimpleVideoPlayerTest : public UIScene @@ -76,9 +76,9 @@ public: virtual bool init() override; - void menuCloseCallback(cocos2d::Ref* sender); - void switchStyleCallback(cocos2d::Ref* sender); - void switchUserInputCallback(cocos2d::Ref* sender); + void menuCloseCallback(axis::Ref* sender); + void switchStyleCallback(axis::Ref* sender); + void switchUserInputCallback(axis::Ref* sender); void onEnter() override; void onExit() override; @@ -86,14 +86,14 @@ public: private: void createVideo(); - cocos2d::Rect _visibleRect; - cocos2d::ui::VideoPlayer* _videoPlayer = nullptr; + axis::Rect _visibleRect; + axis::ui::VideoPlayer* _videoPlayer = nullptr; - cocos2d::MenuItemFont* _switchUserInputEnabled; - cocos2d::MenuItemFont* _switchStyle; + axis::MenuItemFont* _switchUserInputEnabled; + axis::MenuItemFont* _switchStyle; bool _userInputEnabled; - cocos2d::ui::VideoPlayer::StyleType _style; + axis::ui::VideoPlayer::StyleType _style; void updateButtonsTexts(); }; diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIWebViewTest/UIWebViewTest.cpp b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIWebViewTest/UIWebViewTest.cpp index cd16ac8351..1fa295c514 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIWebViewTest/UIWebViewTest.cpp +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIWebViewTest/UIWebViewTest.cpp @@ -25,8 +25,8 @@ #include "UIWebViewTest.h" -USING_NS_CC; -using namespace cocos2d::ui; +USING_NS_AX; +using namespace axis::ui; WebViewTests::WebViewTests() { @@ -39,7 +39,7 @@ bool WebViewTest::init() { Size winSize = Director::getInstance()->getVisibleSize(); - _webView = cocos2d::ui::WebView::create(); + _webView = axis::ui::WebView::create(); _webView->setPosition(winSize / 2); _webView->setContentSize(winSize * 0.5); _webView->loadURL("https://www.baidu.com"); diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIWebViewTest/UIWebViewTest.h b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIWebViewTest/UIWebViewTest.h index 729b88127d..34fe75005b 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIWebViewTest/UIWebViewTest.h +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIWebViewTest/UIWebViewTest.h @@ -37,12 +37,12 @@ public: CREATE_FUNC(WebViewTest); virtual bool init() override; - bool onWebViewShouldStartLoading(cocos2d::ui::WebView* sender, std::string_view url); - void onWebViewDidFinishLoading(cocos2d::ui::WebView* sender, std::string_view url); - void onWebViewDidFailLoading(cocos2d::ui::WebView* sender, std::string_view url); + bool onWebViewShouldStartLoading(axis::ui::WebView* sender, std::string_view url); + void onWebViewDidFinishLoading(axis::ui::WebView* sender, std::string_view url); + void onWebViewDidFailLoading(axis::ui::WebView* sender, std::string_view url); private: - cocos2d::ui::WebView* _webView; + axis::ui::WebView* _webView; }; #endif /* defined(__cocos2d_tests__UIWebViewTest__) */ diff --git a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIWidgetAddNodeTest/UIWidgetAddNodeTest.cpp b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIWidgetAddNodeTest/UIWidgetAddNodeTest.cpp index 111cd91f68..36f8d6a7a1 100644 --- a/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIWidgetAddNodeTest/UIWidgetAddNodeTest.cpp +++ b/tests/cpp-tests/Classes/UITest/CocoStudioGUITest/UIWidgetAddNodeTest/UIWidgetAddNodeTest.cpp @@ -24,8 +24,8 @@ #include "UIWidgetAddNodeTest.h" -USING_NS_CC; -using namespace cocos2d::ui; +USING_NS_AX; +using namespace axis::ui; UIWidgetAddNodeTests::UIWidgetAddNodeTests() { diff --git a/tests/cpp-tests/Classes/UnitTest/UnitTest.cpp b/tests/cpp-tests/Classes/UnitTest/UnitTest.cpp index e55f6ec9ec..99be32e2d1 100644 --- a/tests/cpp-tests/Classes/UnitTest/UnitTest.cpp +++ b/tests/cpp-tests/Classes/UnitTest/UnitTest.cpp @@ -29,8 +29,8 @@ #include "base/ccUtils.h" #include "yasio/detail/byte_buffer.hpp" -USING_NS_CC; -using namespace cocos2d::network; +USING_NS_AX; +using namespace axis::network; #if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) # if defined(__arm64__) @@ -771,7 +771,7 @@ void UIHelperSubStringTest::onEnter() { UnitTestDemo::onEnter(); - using cocos2d::ui::Helper; + using axis::ui::Helper; { // Trivial case std::string source = "abcdefghij"; @@ -884,7 +884,7 @@ void ParseIntegerListTest::onEnter() UnitTestDemo::onEnter(); { - using cocos2d::utils::parseIntegerList; + using axis::utils::parseIntegerList; std::vector res1{}; EXPECT_EQ(res1, parseIntegerList("")); @@ -1432,7 +1432,7 @@ namespace UnitTest } // namespace UnitTest // I know the next line looks ugly, but it's a way to test MathUtil. :) -using namespace UnitTest::cocos2d; +using namespace UnitTest::axis; static void __checkMathUtilResult(const char* description, const float* a1, const float* a2, int size) { diff --git a/tests/cpp-tests/Classes/UnitTest/UnitTest.h b/tests/cpp-tests/Classes/UnitTest/UnitTest.h index 8b24180ee6..55a6681cbb 100644 --- a/tests/cpp-tests/Classes/UnitTest/UnitTest.h +++ b/tests/cpp-tests/Classes/UnitTest/UnitTest.h @@ -43,7 +43,7 @@ public: CREATE_FUNC(TemplateVectorTest); virtual void onEnter() override; virtual std::string subtitle() const override; - void constFunc(const cocos2d::Vector& vec) const; + void constFunc(const axis::Vector& vec) const; }; class TemplateMapTest : public UnitTestDemo @@ -52,7 +52,7 @@ public: CREATE_FUNC(TemplateMapTest); virtual void onEnter() override; virtual std::string subtitle() const override; - void constFunc(const cocos2d::StringMap& map) const; + void constFunc(const axis::StringMap& map) const; }; class ValueTest : public UnitTestDemo @@ -61,7 +61,7 @@ public: CREATE_FUNC(ValueTest); virtual void onEnter() override; virtual std::string subtitle() const override; - void constFunc(const cocos2d::Value& value) const; + void constFunc(const axis::Value& value) const; }; class UTFConversionTest : public UnitTestDemo diff --git a/tests/cpp-tests/Classes/UserDefaultTest/UserDefaultTest.cpp b/tests/cpp-tests/Classes/UserDefaultTest/UserDefaultTest.cpp index 98a9fea990..996f147e80 100644 --- a/tests/cpp-tests/Classes/UserDefaultTest/UserDefaultTest.cpp +++ b/tests/cpp-tests/Classes/UserDefaultTest/UserDefaultTest.cpp @@ -32,7 +32,7 @@ using namespace std; -USING_NS_CC; +USING_NS_AX; UserDefaultTests::UserDefaultTests() { diff --git a/tests/cpp-tests/Classes/UserDefaultTest/UserDefaultTest.h b/tests/cpp-tests/Classes/UserDefaultTest/UserDefaultTest.h index eb182c2e71..e1a2c16f81 100644 --- a/tests/cpp-tests/Classes/UserDefaultTest/UserDefaultTest.h +++ b/tests/cpp-tests/Classes/UserDefaultTest/UserDefaultTest.h @@ -41,7 +41,7 @@ public: private: void doTest(); void printValue(); - cocos2d::Label* _label; + axis::Label* _label; }; #endif // _USERDEFAULT_TEST_H_ diff --git a/tests/cpp-tests/Classes/VRTest/VRTest.cpp b/tests/cpp-tests/Classes/VRTest/VRTest.cpp index aa4ff2abad..a164429317 100644 --- a/tests/cpp-tests/Classes/VRTest/VRTest.cpp +++ b/tests/cpp-tests/Classes/VRTest/VRTest.cpp @@ -26,7 +26,7 @@ #include "VRTest.h" -USING_NS_CC; +USING_NS_AX; VRTests::VRTests() { diff --git a/tests/cpp-tests/Classes/VibrateTest/VibrateTest.cpp b/tests/cpp-tests/Classes/VibrateTest/VibrateTest.cpp index 601a0dba5a..65fd69b069 100644 --- a/tests/cpp-tests/Classes/VibrateTest/VibrateTest.cpp +++ b/tests/cpp-tests/Classes/VibrateTest/VibrateTest.cpp @@ -28,8 +28,8 @@ #include "VibrateTest.h" #include "ui/CocosGUI.h" -using namespace cocos2d; -using namespace cocos2d::ui; +USING_NS_AX; +using namespace axis::ui; VibrateTests::VibrateTests() { @@ -38,7 +38,7 @@ VibrateTests::VibrateTests() namespace { -class TextButton : public cocos2d::Label +class TextButton : public axis::Label { public: static TextButton* create(std::string_view text, const std::function& onTriggered) diff --git a/tests/cpp-tests/Classes/VisibleRect.cpp b/tests/cpp-tests/Classes/VisibleRect.cpp index a5c3ae2f1f..4052647fa9 100644 --- a/tests/cpp-tests/Classes/VisibleRect.cpp +++ b/tests/cpp-tests/Classes/VisibleRect.cpp @@ -25,7 +25,7 @@ #include "VisibleRect.h" -USING_NS_CC; +USING_NS_AX; Rect VisibleRect::s_visibleRect; diff --git a/tests/cpp-tests/Classes/VisibleRect.h b/tests/cpp-tests/Classes/VisibleRect.h index 684d17c900..8d35b46e91 100644 --- a/tests/cpp-tests/Classes/VisibleRect.h +++ b/tests/cpp-tests/Classes/VisibleRect.h @@ -30,21 +30,21 @@ class VisibleRect { public: - static cocos2d::Rect getVisibleRect(); + static axis::Rect getVisibleRect(); - static cocos2d::Vec2 left(); - static cocos2d::Vec2 right(); - static cocos2d::Vec2 top(); - static cocos2d::Vec2 bottom(); - static cocos2d::Vec2 center(); - static cocos2d::Vec2 leftTop(); - static cocos2d::Vec2 rightTop(); - static cocos2d::Vec2 leftBottom(); - static cocos2d::Vec2 rightBottom(); + static axis::Vec2 left(); + static axis::Vec2 right(); + static axis::Vec2 top(); + static axis::Vec2 bottom(); + static axis::Vec2 center(); + static axis::Vec2 leftTop(); + static axis::Vec2 rightTop(); + static axis::Vec2 leftBottom(); + static axis::Vec2 rightBottom(); private: static void lazyInit(); - static cocos2d::Rect s_visibleRect; + static axis::Rect s_visibleRect; }; #endif /* __VISIBLERECT_H__ */ diff --git a/tests/cpp-tests/Classes/WindowTest/WindowTest.cpp b/tests/cpp-tests/Classes/WindowTest/WindowTest.cpp index fc28e8e918..a77fde5041 100644 --- a/tests/cpp-tests/Classes/WindowTest/WindowTest.cpp +++ b/tests/cpp-tests/Classes/WindowTest/WindowTest.cpp @@ -26,7 +26,7 @@ #if (CC_TARGET_PLATFORM == CC_PLATFORM_MAC || CC_TARGET_PLATFORM == CC_PLATFORM_WIN32 || \ CC_TARGET_PLATFORM == CC_PLATFORM_LINUX) -USING_NS_CC; +USING_NS_AX; WindowTests::WindowTests() { diff --git a/tests/cpp-tests/Classes/ZipTest/ZipTests.cpp b/tests/cpp-tests/Classes/ZipTest/ZipTests.cpp index 0d6dee7fc6..696e91d650 100644 --- a/tests/cpp-tests/Classes/ZipTest/ZipTests.cpp +++ b/tests/cpp-tests/Classes/ZipTest/ZipTests.cpp @@ -29,7 +29,7 @@ #include "unzip/unzip.h" #include "unzip/crypt.h" -using namespace cocos2d; +USING_NS_AX; ZipTests::ZipTests() { @@ -50,7 +50,7 @@ static void unzipTest(Label* label, { auto fu = FileUtils::getInstance(); - cocos2d::Data origContent; + axis::Data origContent; const int BUFF_SIZE = 1024; char* buff = nullptr; std::vector fileData; diff --git a/tests/cpp-tests/Classes/ZwoptexTest/ZwoptexTest.cpp b/tests/cpp-tests/Classes/ZwoptexTest/ZwoptexTest.cpp index 66fe75e41e..301fb40976 100644 --- a/tests/cpp-tests/Classes/ZwoptexTest/ZwoptexTest.cpp +++ b/tests/cpp-tests/Classes/ZwoptexTest/ZwoptexTest.cpp @@ -25,7 +25,7 @@ #include "ZwoptexTest.h" #include "../testResource.h" -USING_NS_CC; +USING_NS_AX; ZwoptexTests::ZwoptexTests() { diff --git a/tests/cpp-tests/Classes/ZwoptexTest/ZwoptexTest.h b/tests/cpp-tests/Classes/ZwoptexTest/ZwoptexTest.h index 1293296067..ec81ce0899 100644 --- a/tests/cpp-tests/Classes/ZwoptexTest/ZwoptexTest.h +++ b/tests/cpp-tests/Classes/ZwoptexTest/ZwoptexTest.h @@ -49,8 +49,8 @@ public: virtual std::string subtitle() const override; protected: - cocos2d::Sprite* sprite1; - cocos2d::Sprite* sprite2; + axis::Sprite* sprite1; + axis::Sprite* sprite2; int counter; }; diff --git a/tests/cpp-tests/Classes/controller.cpp b/tests/cpp-tests/Classes/controller.cpp index 46ddfe2eb0..265b91f7bd 100644 --- a/tests/cpp-tests/Classes/controller.cpp +++ b/tests/cpp-tests/Classes/controller.cpp @@ -28,7 +28,7 @@ #include "BaseTest.h" #include "tests.h" -USING_NS_CC; +USING_NS_AX; #define TEST_TIME_OUT 50 #define CREATE_TIME_OUT 25 diff --git a/tests/cpp-tests/Classes/controller.h b/tests/cpp-tests/Classes/controller.h index 6a85f2e86a..44d1e261cc 100644 --- a/tests/cpp-tests/Classes/controller.h +++ b/tests/cpp-tests/Classes/controller.h @@ -31,17 +31,18 @@ THE SOFTWARE. #include #include +#include "platform/CCPlatformMacros.h" + class TestList; class TestSuite; class TestCase; -namespace cocos2d -{ +NS_AX_BEGIN class Director; class Touch; class Event; class EventListenerTouchOneByOne; -} // namespace cocos2d +NS_AX_END // namespace axis class TestController { @@ -59,7 +60,7 @@ public: void onEnterBackground(); void onEnterForeground(); - bool blockTouchBegan(cocos2d::Touch* touch, cocos2d::Event* event); + bool blockTouchBegan(axis::Touch* touch, axis::Event* event); void setCurrTestSuite(TestSuite* testSuite) { _testSuite = testSuite; } TestSuite* getCurrTestSuite() { return _testSuite; } @@ -87,8 +88,8 @@ private: std::condition_variable _sleepCondition; std::unique_lock* _sleepUniqueLock; - cocos2d::Director* _director; - cocos2d::EventListenerTouchOneByOne* _touchListener; + axis::Director* _director; + axis::EventListenerTouchOneByOne* _touchListener; std::string _logIndentation; }; diff --git a/tests/cpp-tests/Classes/testBasic.h b/tests/cpp-tests/Classes/testBasic.h index 23b79f96a0..268dffd942 100644 --- a/tests/cpp-tests/Classes/testBasic.h +++ b/tests/cpp-tests/Classes/testBasic.h @@ -32,7 +32,7 @@ * TestScene is retained for compatibility with older versions. * @warning It should soon be removed. */ -class TestScene : public cocos2d::Scene +class TestScene : public axis::Scene { public: TestScene(bool bPortrait = false, bool physics = false) {} diff --git a/tests/cpp-tests/proj.ios/Classes/testsAppDelegate.mm b/tests/cpp-tests/proj.ios/Classes/testsAppDelegate.mm index 1d45ffa6b9..d7c2da05d4 100644 --- a/tests/cpp-tests/proj.ios/Classes/testsAppDelegate.mm +++ b/tests/cpp-tests/proj.ios/Classes/testsAppDelegate.mm @@ -42,9 +42,9 @@ static AppDelegate s_sharedApplication; - (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions { - cocos2d::Application* app = cocos2d::Application::getInstance(); + axis::Application* app = axis::Application::getInstance(); app->initGLContextAttrs(); - cocos2d::GLViewImpl::convertAttrs(); + axis::GLViewImpl::convertAttrs(); // Override point for customization after application launch. @@ -53,12 +53,12 @@ static AppDelegate s_sharedApplication; // Init the CCEAGLView CCEAGLView* eaglView = [CCEAGLView viewWithFrame:[window bounds] - pixelFormat:(NSString*)cocos2d::GLViewImpl::_pixelFormat - depthFormat:cocos2d::GLViewImpl::_depthFormat + pixelFormat:(NSString*)axis::GLViewImpl::_pixelFormat + depthFormat:axis::GLViewImpl::_depthFormat preserveBackbuffer:NO sharegroup:nil - multiSampling:cocos2d::GLViewImpl::_multisamplingCount > 0 ? YES : NO - numberOfSamples:cocos2d::GLViewImpl::_multisamplingCount]; + multiSampling:axis::GLViewImpl::_multisamplingCount > 0 ? YES : NO + numberOfSamples:axis::GLViewImpl::_multisamplingCount]; #if !defined(CC_TARGET_OS_TVOS) [eaglView setMultipleTouchEnabled:YES]; @@ -90,8 +90,8 @@ static AppDelegate s_sharedApplication; #endif // IMPORTANT: Setting the GLView should be done after creating the RootViewController - cocos2d::GLView* glview = cocos2d::GLViewImpl::createWithEAGLView(eaglView); - cocos2d::Director::getInstance()->setOpenGLView(glview); + axis::GLView* glview = axis::GLViewImpl::createWithEAGLView(eaglView); + axis::Director::getInstance()->setOpenGLView(glview); app->run(); @@ -107,7 +107,7 @@ static AppDelegate s_sharedApplication; throttle down OpenGL ES frame rates. Games should use this method to pause the game. */ // We don't need to call this method any more. It will interrupt user defined game pause&resume logic - // cocos2d::Director::getInstance()->pause(); + // axis::Director::getInstance()->pause(); } - (void)applicationDidBecomeActive:(UIApplication*)application @@ -117,7 +117,7 @@ static AppDelegate s_sharedApplication; previously in the background, optionally refresh the user interface. */ // We don't need to call this method any more. It will interrupt user defined game pause&resume logic - // cocos2d::Director::getInstance()->resume(); + // axis::Director::getInstance()->resume(); } - (void)applicationDidEnterBackground:(UIApplication*)application @@ -127,7 +127,7 @@ static AppDelegate s_sharedApplication; information to restore your application to its current state in case it is terminated later. If your application supports background execution, called instead of applicationWillTerminate: when the user quits. */ - cocos2d::Application::getInstance()->applicationDidEnterBackground(); + axis::Application::getInstance()->applicationDidEnterBackground(); } - (void)applicationWillEnterForeground:(UIApplication*)application @@ -136,7 +136,7 @@ static AppDelegate s_sharedApplication; Called as part of transition from the background to the inactive state: here you can undo many of the changes made on entering the background. */ - cocos2d::Application::getInstance()->applicationWillEnterForeground(); + axis::Application::getInstance()->applicationWillEnterForeground(); } - (void)applicationWillTerminate:(UIApplication*)application diff --git a/tests/cpp-tests/proj.linux/main.cpp b/tests/cpp-tests/proj.linux/main.cpp index 1554a1b0ed..72dd261dc2 100644 --- a/tests/cpp-tests/proj.linux/main.cpp +++ b/tests/cpp-tests/proj.linux/main.cpp @@ -30,7 +30,7 @@ #include #include -USING_NS_CC; +USING_NS_AX; int main(int argc, char** argv) { diff --git a/tests/cpp-tests/proj.mac/main.cpp b/tests/cpp-tests/proj.mac/main.cpp index 39e5e500c0..045d45839c 100644 --- a/tests/cpp-tests/proj.mac/main.cpp +++ b/tests/cpp-tests/proj.mac/main.cpp @@ -24,7 +24,7 @@ ****************************************************************************/ #include "../Classes/AppDelegate.h" -USING_NS_CC; +USING_NS_AX; int main(int argc, char* argv[]) { diff --git a/tests/cpp-tests/proj.win32/main.cpp b/tests/cpp-tests/proj.win32/main.cpp index 810fc1a5b4..df73128c02 100644 --- a/tests/cpp-tests/proj.win32/main.cpp +++ b/tests/cpp-tests/proj.win32/main.cpp @@ -25,7 +25,7 @@ #include "main.h" #include "AppDelegate.h" -USING_NS_CC; +USING_NS_AX; int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow) { diff --git a/tests/fairygui-tests/Classes/AppDelegate.cpp b/tests/fairygui-tests/Classes/AppDelegate.cpp index fe2188bd37..8aa8059469 100644 --- a/tests/fairygui-tests/Classes/AppDelegate.cpp +++ b/tests/fairygui-tests/Classes/AppDelegate.cpp @@ -3,12 +3,12 @@ #include "audio/AudioEngine.h" -USING_NS_CC; +USING_NS_AX; -static cocos2d::Size designResolutionSize = cocos2d::Size(1136, 640); -static cocos2d::Size smallResolutionSize = cocos2d::Size(480, 320); -static cocos2d::Size mediumResolutionSize = cocos2d::Size(1024, 768); -static cocos2d::Size largeResolutionSize = cocos2d::Size(2048, 1536); +static axis::Size designResolutionSize = axis::Size(1136, 640); +static axis::Size smallResolutionSize = axis::Size(480, 320); +static axis::Size mediumResolutionSize = axis::Size(1024, 768); +static axis::Size largeResolutionSize = axis::Size(2048, 1536); AppDelegate::AppDelegate() { @@ -42,7 +42,7 @@ bool AppDelegate::applicationDidFinishLaunching() { auto glview = director->getOpenGLView(); if (!glview) { #if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC) || (CC_TARGET_PLATFORM == CC_PLATFORM_LINUX) - glview = GLViewImpl::createWithRect("Examples", cocos2d::Rect(0, 0, 1280, 720)); + glview = GLViewImpl::createWithRect("Examples", axis::Rect(0, 0, 1280, 720)); #else glview = GLViewImpl::create("Examples"); #endif diff --git a/tests/fairygui-tests/Classes/AppDelegate.h b/tests/fairygui-tests/Classes/AppDelegate.h index 562ccbd961..04aa48fd89 100644 --- a/tests/fairygui-tests/Classes/AppDelegate.h +++ b/tests/fairygui-tests/Classes/AppDelegate.h @@ -8,7 +8,7 @@ Private inheritance here hides part of interface from Director. */ -class AppDelegate : private cocos2d::Application +class AppDelegate : private axis::Application { public: AppDelegate(); diff --git a/tests/fairygui-tests/Classes/BagScene.cpp b/tests/fairygui-tests/Classes/BagScene.cpp index 99d9efd0f0..7c83e454aa 100644 --- a/tests/fairygui-tests/Classes/BagScene.cpp +++ b/tests/fairygui-tests/Classes/BagScene.cpp @@ -1,6 +1,6 @@ #include "BagScene.h" -USING_NS_CC; +USING_NS_AX; BagScene::BagScene() :_bagWindow(nullptr) { diff --git a/tests/fairygui-tests/Classes/BagWindow.cpp b/tests/fairygui-tests/Classes/BagWindow.cpp index dbd19239f5..3afa32194f 100644 --- a/tests/fairygui-tests/Classes/BagWindow.cpp +++ b/tests/fairygui-tests/Classes/BagWindow.cpp @@ -1,6 +1,6 @@ #include "BagWindow.h" -USING_NS_CC; +USING_NS_AX; void BagWindow::onInit() { diff --git a/tests/fairygui-tests/Classes/BasicsScene.cpp b/tests/fairygui-tests/Classes/BasicsScene.cpp index 6ce442b641..17eb0b1351 100644 --- a/tests/fairygui-tests/Classes/BasicsScene.cpp +++ b/tests/fairygui-tests/Classes/BasicsScene.cpp @@ -2,7 +2,7 @@ #include "Window1.h" #include "Window2.h" -USING_NS_CC; +USING_NS_AX; void BasicsScene::continueInit() { @@ -238,10 +238,10 @@ void BasicsScene::playDragDrop() void BasicsScene::playProgress() { GComponent* obj = _demoObjects.at("ProgressBar"); - cocos2d::Director::getInstance()->getScheduler()->schedule( + axis::Director::getInstance()->getScheduler()->schedule( CC_SCHEDULE_SELECTOR(BasicsScene::onPlayProgress), this, 0.02f, false); obj->addEventListener(UIEventType::Exit, [this](EventContext*) { - cocos2d::Director::getInstance()->getScheduler()->unschedule(CC_SCHEDULE_SELECTOR(BasicsScene::onPlayProgress), this); + axis::Director::getInstance()->getScheduler()->unschedule(CC_SCHEDULE_SELECTOR(BasicsScene::onPlayProgress), this); }); } diff --git a/tests/fairygui-tests/Classes/BasicsScene.h b/tests/fairygui-tests/Classes/BasicsScene.h index 92410a3985..3aa10a2e62 100644 --- a/tests/fairygui-tests/Classes/BasicsScene.h +++ b/tests/fairygui-tests/Classes/BasicsScene.h @@ -43,7 +43,7 @@ private: PopupMenu* _pm; GComponent* _popupCom; - cocos2d::Map _demoObjects; + axis::Map _demoObjects; }; diff --git a/tests/fairygui-tests/Classes/ChatScene.cpp b/tests/fairygui-tests/Classes/ChatScene.cpp index dbfe6bf3a0..69870f0fdc 100644 --- a/tests/fairygui-tests/Classes/ChatScene.cpp +++ b/tests/fairygui-tests/Classes/ChatScene.cpp @@ -1,7 +1,7 @@ #include "ChatScene.h" #include "EmojiParser.h" -USING_NS_CC; +USING_NS_AX; ChatScene::ChatScene() :_emojiSelectUI(nullptr) { diff --git a/tests/fairygui-tests/Classes/CooldownScene.cpp b/tests/fairygui-tests/Classes/CooldownScene.cpp index f1d3f2d501..54cd1e15e5 100644 --- a/tests/fairygui-tests/Classes/CooldownScene.cpp +++ b/tests/fairygui-tests/Classes/CooldownScene.cpp @@ -1,6 +1,6 @@ #include "CooldownScene.h" -USING_NS_CC; +USING_NS_AX; void CooldownScene::continueInit() { diff --git a/tests/fairygui-tests/Classes/DemoScene.cpp b/tests/fairygui-tests/Classes/DemoScene.cpp index 0e9451b5d3..3d1174b528 100644 --- a/tests/fairygui-tests/Classes/DemoScene.cpp +++ b/tests/fairygui-tests/Classes/DemoScene.cpp @@ -1,7 +1,7 @@ #include "DemoScene.h" #include "MenuScene.h" -USING_NS_CC; +USING_NS_AX; bool DemoScene::init() { diff --git a/tests/fairygui-tests/Classes/DemoScene.h b/tests/fairygui-tests/Classes/DemoScene.h index 8c745916d6..ec67dff181 100644 --- a/tests/fairygui-tests/Classes/DemoScene.h +++ b/tests/fairygui-tests/Classes/DemoScene.h @@ -6,7 +6,7 @@ USING_NS_FGUI; -class DemoScene : public cocos2d::Scene +class DemoScene : public axis::Scene { public: bool init(); diff --git a/tests/fairygui-tests/Classes/GuideScene.cpp b/tests/fairygui-tests/Classes/GuideScene.cpp index 54fafdfd2c..4231136228 100644 --- a/tests/fairygui-tests/Classes/GuideScene.cpp +++ b/tests/fairygui-tests/Classes/GuideScene.cpp @@ -1,6 +1,6 @@ #include "GuideScene.h" -USING_NS_CC; +USING_NS_AX; GuideScene::GuideScene():_guideLayer(nullptr) { diff --git a/tests/fairygui-tests/Classes/HitTestScene.cpp b/tests/fairygui-tests/Classes/HitTestScene.cpp index d6916f227d..85cda5dd40 100644 --- a/tests/fairygui-tests/Classes/HitTestScene.cpp +++ b/tests/fairygui-tests/Classes/HitTestScene.cpp @@ -1,6 +1,6 @@ #include "HitTestScene.h" -USING_NS_CC; +USING_NS_AX; void HitTestScene::continueInit() { diff --git a/tests/fairygui-tests/Classes/JoystickModule.cpp b/tests/fairygui-tests/Classes/JoystickModule.cpp index 7f2d39028b..2121f7cd59 100644 --- a/tests/fairygui-tests/Classes/JoystickModule.cpp +++ b/tests/fairygui-tests/Classes/JoystickModule.cpp @@ -1,6 +1,6 @@ #include "JoystickModule.h" -USING_NS_CC; +USING_NS_AX; JoystickModule * JoystickModule::create(GComponent * mainView) { diff --git a/tests/fairygui-tests/Classes/JoystickScene.cpp b/tests/fairygui-tests/Classes/JoystickScene.cpp index 5afd2916ea..1ad53ab691 100644 --- a/tests/fairygui-tests/Classes/JoystickScene.cpp +++ b/tests/fairygui-tests/Classes/JoystickScene.cpp @@ -1,6 +1,6 @@ #include "JoystickScene.h" -USING_NS_CC; +USING_NS_AX; JoystickScene::~JoystickScene() { diff --git a/tests/fairygui-tests/Classes/ListEffectScene.cpp b/tests/fairygui-tests/Classes/ListEffectScene.cpp index edb2df6c22..54613cde70 100644 --- a/tests/fairygui-tests/Classes/ListEffectScene.cpp +++ b/tests/fairygui-tests/Classes/ListEffectScene.cpp @@ -2,7 +2,7 @@ #include "MailItem.h" #include "GList.h" -USING_NS_CC; +USING_NS_AX; void ListEffectScene::continueInit() { diff --git a/tests/fairygui-tests/Classes/LoopListScene.cpp b/tests/fairygui-tests/Classes/LoopListScene.cpp index ff6eda1e47..9ac842eec2 100644 --- a/tests/fairygui-tests/Classes/LoopListScene.cpp +++ b/tests/fairygui-tests/Classes/LoopListScene.cpp @@ -1,6 +1,6 @@ #include "LoopListScene.h" -USING_NS_CC; +USING_NS_AX; void LoopListScene::continueInit() { diff --git a/tests/fairygui-tests/Classes/MenuScene.cpp b/tests/fairygui-tests/Classes/MenuScene.cpp index 5b96ab98c6..a1d21edf4a 100644 --- a/tests/fairygui-tests/Classes/MenuScene.cpp +++ b/tests/fairygui-tests/Classes/MenuScene.cpp @@ -15,7 +15,7 @@ #include "VirtualListScene.h" #include "CooldownScene.h" -USING_NS_CC; +USING_NS_AX; void MenuScene::continueInit() { diff --git a/tests/fairygui-tests/Classes/ModalWaitingScene.cpp b/tests/fairygui-tests/Classes/ModalWaitingScene.cpp index 426d7d5356..c989cc5e65 100644 --- a/tests/fairygui-tests/Classes/ModalWaitingScene.cpp +++ b/tests/fairygui-tests/Classes/ModalWaitingScene.cpp @@ -1,6 +1,6 @@ #include "ModalWaitingScene.h" -USING_NS_CC; +USING_NS_AX; ModalWaitingScene::ModalWaitingScene():_testWin(nullptr) { diff --git a/tests/fairygui-tests/Classes/PullToRefreshScene.cpp b/tests/fairygui-tests/Classes/PullToRefreshScene.cpp index 5e02c93295..0600d04365 100644 --- a/tests/fairygui-tests/Classes/PullToRefreshScene.cpp +++ b/tests/fairygui-tests/Classes/PullToRefreshScene.cpp @@ -1,6 +1,6 @@ #include "PullToRefreshScene.h" -USING_NS_CC; +USING_NS_AX; class ScrollPaneHeader : public GComponent { diff --git a/tests/fairygui-tests/Classes/ScrollPaneScene.cpp b/tests/fairygui-tests/Classes/ScrollPaneScene.cpp index d7832f4baf..dc0029881c 100644 --- a/tests/fairygui-tests/Classes/ScrollPaneScene.cpp +++ b/tests/fairygui-tests/Classes/ScrollPaneScene.cpp @@ -1,7 +1,7 @@ #include "ScrollPaneScene.h" #include "GList.h" -USING_NS_CC; +USING_NS_AX; void ScrollPaneScene::continueInit() { @@ -56,7 +56,7 @@ void ScrollPaneScene::onClickList(EventContext * context) return; } item->getScrollPane()->setPosX(0, true); - //avoid scroll pane default behavior + //avoid scroll pane default behavior�� item->getScrollPane()->cancelDragging(); _list->getScrollPane()->cancelDragging(); break; diff --git a/tests/fairygui-tests/Classes/TransitionDemoScene.cpp b/tests/fairygui-tests/Classes/TransitionDemoScene.cpp index a7df73a834..0e6dd17394 100644 --- a/tests/fairygui-tests/Classes/TransitionDemoScene.cpp +++ b/tests/fairygui-tests/Classes/TransitionDemoScene.cpp @@ -1,6 +1,6 @@ #include "TransitionDemoScene.h" -USING_NS_CC; +USING_NS_AX; TransitionDemoScene::~TransitionDemoScene() { diff --git a/tests/fairygui-tests/Classes/TreeViewScene.cpp b/tests/fairygui-tests/Classes/TreeViewScene.cpp index 99981937a2..e63ed7da3c 100644 --- a/tests/fairygui-tests/Classes/TreeViewScene.cpp +++ b/tests/fairygui-tests/Classes/TreeViewScene.cpp @@ -1,6 +1,6 @@ #include "TreeViewScene.h" -USING_NS_CC; +USING_NS_AX; TreeViewScene::TreeViewScene() : _tree1(nullptr) { diff --git a/tests/fairygui-tests/Classes/VirtualListScene.cpp b/tests/fairygui-tests/Classes/VirtualListScene.cpp index b3af9b0eb5..b3ea94f235 100644 --- a/tests/fairygui-tests/Classes/VirtualListScene.cpp +++ b/tests/fairygui-tests/Classes/VirtualListScene.cpp @@ -1,7 +1,7 @@ #include "VirtualListScene.h" #include "MailItem.h" -USING_NS_CC; +USING_NS_AX; void VirtualListScene::continueInit() { diff --git a/tests/fairygui-tests/Classes/Window1.cpp b/tests/fairygui-tests/Classes/Window1.cpp index 58375a7da9..8d3a06575a 100644 --- a/tests/fairygui-tests/Classes/Window1.cpp +++ b/tests/fairygui-tests/Classes/Window1.cpp @@ -1,6 +1,6 @@ #include "Window1.h" -USING_NS_CC; +USING_NS_AX; void Window1::onInit() { diff --git a/tests/fairygui-tests/Classes/Window2.cpp b/tests/fairygui-tests/Classes/Window2.cpp index fb7fab6ee3..fc7e803dcb 100644 --- a/tests/fairygui-tests/Classes/Window2.cpp +++ b/tests/fairygui-tests/Classes/Window2.cpp @@ -1,6 +1,6 @@ #include "Window2.h" -USING_NS_CC; +USING_NS_AX; void Window2::onInit() { diff --git a/tests/fairygui-tests/proj.ios/AppController.mm b/tests/fairygui-tests/proj.ios/AppController.mm index 22816bc3fa..c438c2caaf 100644 --- a/tests/fairygui-tests/proj.ios/AppController.mm +++ b/tests/fairygui-tests/proj.ios/AppController.mm @@ -39,9 +39,9 @@ static AppDelegate s_sharedApplication; - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { - cocos2d::Application *app = cocos2d::Application::getInstance(); + axis::Application *app = axis::Application::getInstance(); app->initGLContextAttrs(); - cocos2d::GLViewImpl::convertAttrs(); + axis::GLViewImpl::convertAttrs(); // Override point for customization after application launch. @@ -49,12 +49,12 @@ static AppDelegate s_sharedApplication; window = [[UIWindow alloc] initWithFrame: [[UIScreen mainScreen] bounds]]; CCEAGLView *eaglView = [CCEAGLView viewWithFrame: [window bounds] - pixelFormat: (NSString*)cocos2d::GLViewImpl::_pixelFormat - depthFormat: cocos2d::GLViewImpl::_depthFormat + pixelFormat: (NSString*)axis::GLViewImpl::_pixelFormat + depthFormat: axis::GLViewImpl::_depthFormat preserveBackbuffer: NO sharegroup: nil - multiSampling: cocos2d::GLViewImpl::_multisamplingCount > 0 ? YES : NO - numberOfSamples: cocos2d::GLViewImpl::_multisamplingCount]; + multiSampling: axis::GLViewImpl::_multisamplingCount > 0 ? YES : NO + numberOfSamples: axis::GLViewImpl::_multisamplingCount]; // Use RootViewController manage CCEAGLView @@ -85,8 +85,8 @@ static AppDelegate s_sharedApplication; } // IMPORTANT: Setting the GLView should be done after creating the RootViewController - cocos2d::GLViewImpl *glview = cocos2d::GLViewImpl::createWithEAGLView(eaglView); - cocos2d::Director::getInstance()->setOpenGLView(glview); + axis::GLViewImpl *glview = axis::GLViewImpl::createWithEAGLView(eaglView); + axis::Director::getInstance()->setOpenGLView(glview); app->run(); return YES; @@ -98,14 +98,14 @@ static AppDelegate s_sharedApplication; Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. */ - cocos2d::Director::getInstance()->pause(); + axis::Director::getInstance()->pause(); } - (void)applicationDidBecomeActive:(UIApplication *)application { /* Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. */ - cocos2d::Director::getInstance()->resume(); + axis::Director::getInstance()->resume(); } - (void)applicationDidEnterBackground:(UIApplication *)application { @@ -113,14 +113,14 @@ static AppDelegate s_sharedApplication; Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. If your application supports background execution, called instead of applicationWillTerminate: when the user quits. */ - cocos2d::Application::getInstance()->applicationDidEnterBackground(); + axis::Application::getInstance()->applicationDidEnterBackground(); } - (void)applicationWillEnterForeground:(UIApplication *)application { /* Called as part of transition from the background to the inactive state: here you can undo many of the changes made on entering the background. */ - cocos2d::Application::getInstance()->applicationWillEnterForeground(); + axis::Application::getInstance()->applicationWillEnterForeground(); } - (void)applicationWillTerminate:(UIApplication *)application { diff --git a/tests/fairygui-tests/proj.linux/main.cpp b/tests/fairygui-tests/proj.linux/main.cpp index 1e4ab2d14a..78e6261b8a 100644 --- a/tests/fairygui-tests/proj.linux/main.cpp +++ b/tests/fairygui-tests/proj.linux/main.cpp @@ -30,7 +30,7 @@ #include #include -USING_NS_CC; +USING_NS_AX; int main(int argc, char **argv) { diff --git a/tests/fairygui-tests/proj.mac/main.cpp b/tests/fairygui-tests/proj.mac/main.cpp index a75a3013d9..c1601ac405 100644 --- a/tests/fairygui-tests/proj.mac/main.cpp +++ b/tests/fairygui-tests/proj.mac/main.cpp @@ -25,7 +25,7 @@ #include "../Classes/AppDelegate.h" -USING_NS_CC; +USING_NS_AX; int main(int argc, char *argv[]) { diff --git a/tests/fairygui-tests/proj.win32/main.cpp b/tests/fairygui-tests/proj.win32/main.cpp index f8601fe128..58248ed4d0 100644 --- a/tests/fairygui-tests/proj.win32/main.cpp +++ b/tests/fairygui-tests/proj.win32/main.cpp @@ -25,7 +25,7 @@ #include "main.h" #include "../Classes/AppDelegate.h" -USING_NS_CC; +USING_NS_AX; int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, diff --git a/tests/live2d-tests/Classes/AppDelegate.cpp b/tests/live2d-tests/Classes/AppDelegate.cpp index 827d188709..7904e7095d 100644 --- a/tests/live2d-tests/Classes/AppDelegate.cpp +++ b/tests/live2d-tests/Classes/AppDelegate.cpp @@ -17,18 +17,18 @@ #if USE_AUDIO_ENGINE #include "audio/include/AudioEngine.h" -using namespace cocos2d::experimental; +using namespace axis::experimental; #elif USE_SIMPLE_AUDIO_ENGINE #include "audio/include/SimpleAudioEngine.h" using namespace CocosDenshion; #endif -USING_NS_CC; +USING_NS_AX; -static cocos2d::Size designResolutionSize = cocos2d::Size(LAppDefine::RenderTargetWidth, LAppDefine::RenderTargetHeight); -static cocos2d::Size smallResolutionSize = cocos2d::Size(480, 320); -static cocos2d::Size mediumResolutionSize = cocos2d::Size(1024, 768); -static cocos2d::Size largeResolutionSize = cocos2d::Size(2048, 1536); +static axis::Size designResolutionSize = axis::Size(LAppDefine::RenderTargetWidth, LAppDefine::RenderTargetHeight); +static axis::Size smallResolutionSize = axis::Size(480, 320); +static axis::Size mediumResolutionSize = axis::Size(1024, 768); +static axis::Size largeResolutionSize = axis::Size(2048, 1536); AppDelegate::AppDelegate() { @@ -72,7 +72,7 @@ bool AppDelegate::applicationDidFinishLaunching() if(!glview) { #if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC) || (CC_TARGET_PLATFORM == CC_PLATFORM_LINUX) - glview = GLViewImpl::createWithRect("Demo", cocos2d::Rect(0, 0, designResolutionSize.width, designResolutionSize.height)); + glview = GLViewImpl::createWithRect("Demo", axis::Rect(0, 0, designResolutionSize.width, designResolutionSize.height)); #else glview = GLViewImpl::create("Demo"); #endif @@ -111,7 +111,7 @@ bool AppDelegate::applicationDidFinishLaunching() _cubismOption.LoggingLevel = LAppDefine::CubismLoggingLevel; Csm::CubismFramework::StartUp(&_cubismAllocator, &_cubismOption); - _recreatedEventlistener = cocos2d::EventListenerCustom::create(EVENT_RENDERER_RECREATED, [this](EventCustom*) + _recreatedEventlistener = axis::EventListenerCustom::create(EVENT_RENDERER_RECREATED, [this](EventCustom*) { LAppLive2DManager::GetInstance()->RecreateRenderer(); }); diff --git a/tests/live2d-tests/Classes/AppDelegate.h b/tests/live2d-tests/Classes/AppDelegate.h index 2cc1cfb4ad..423cd9b64b 100644 --- a/tests/live2d-tests/Classes/AppDelegate.h +++ b/tests/live2d-tests/Classes/AppDelegate.h @@ -20,7 +20,7 @@ Private inheritance here hides part of interface from Director. */ -class AppDelegate : private cocos2d::Application +class AppDelegate : private axis::Application { public: AppDelegate(); @@ -48,7 +48,7 @@ public: virtual void applicationWillEnterForeground(); private: - cocos2d::EventListenerCustom* _recreatedEventlistener; + axis::EventListenerCustom* _recreatedEventlistener; LAppAllocator _cubismAllocator; Csm::CubismFramework::Option _cubismOption; diff --git a/tests/live2d-tests/Classes/AppMacros.h b/tests/live2d-tests/Classes/AppMacros.h index 5a75936c98..9c2cdf82fa 100644 --- a/tests/live2d-tests/Classes/AppMacros.h +++ b/tests/live2d-tests/Classes/AppMacros.h @@ -32,25 +32,25 @@ typedef struct tagResource { - cocos2d::CCSize size; + axis::CCSize size; char directory[100]; } Resource; -static Resource smallResource = {cocos2d::CCSizeMake(480, 320), "iphone"}; -static Resource mediumResource = {cocos2d::CCSizeMake(1024, 768), "ipad"}; -static Resource largeResource = {cocos2d::CCSizeMake(2048, 1536), "ipadhd"}; +static Resource smallResource = {axis::CCSizeMake(480, 320), "iphone"}; +static Resource mediumResource = {axis::CCSizeMake(1024, 768), "ipad"}; +static Resource largeResource = {axis::CCSizeMake(2048, 1536), "ipadhd"}; #if (TARGET_DESIGN_RESOLUTION_SIZE == DESIGN_RESOLUTION_480X320) -static cocos2d::CCSize designResolutionSize = cocos2d::CCSizeMake(480, 320); +static axis::CCSize designResolutionSize = axis::CCSizeMake(480, 320); #elif (TARGET_DESIGN_RESOLUTION_SIZE == DESIGN_RESOLUTION_1024X768) -static cocos2d::CCSize designResolutionSize = cocos2d::CCSizeMake(1024, 768); +static axis::CCSize designResolutionSize = axis::CCSizeMake(1024, 768); #elif (TARGET_DESIGN_RESOLUTION_SIZE == DESIGN_RESOLUTION_2048X1536) -static cocos2d::CCSize designResolutionSize = cocos2d::CCSizeMake(2048, 1536); +static axis::CCSize designResolutionSize = axis::CCSizeMake(2048, 1536); #else #error unknown target design resolution! #endif // The font size 24 is designed for small resolution, so we should change it to fit for current design resolution -#define TITLE_FONT_SIZE (cocos2d::CCEGLView::sharedOpenGLView()->getDesignResolutionSize().width / smallResource.size.width * 24) +#define TITLE_FONT_SIZE (axis::CCEGLView::sharedOpenGLView()->getDesignResolutionSize().width / smallResource.size.width * 24) #endif /* __APPMACROS_H__ */ diff --git a/tests/live2d-tests/Classes/LAppLive2DManager.cpp b/tests/live2d-tests/Classes/LAppLive2DManager.cpp index 193b94d70f..df8ffac86f 100644 --- a/tests/live2d-tests/Classes/LAppLive2DManager.cpp +++ b/tests/live2d-tests/Classes/LAppLive2DManager.cpp @@ -27,7 +27,7 @@ using namespace LAppDefine; //#define USE_RENDER_TARGET //#define USE_MODEL_RENDER_TARGET -USING_NS_CC; +USING_NS_AX; namespace { LAppLive2DManager* s_instance = NULL; @@ -74,8 +74,8 @@ LAppLive2DManager::LAppLive2DManager() CreateShader(); - int width = static_cast(cocos2d::Director::getInstance()->getOpenGLView()->getFrameSize().width); - int height = static_cast(cocos2d::Director::getInstance()->getOpenGLView()->getFrameSize().height); + int width = static_cast(axis::Director::getInstance()->getOpenGLView()->getFrameSize().width); + int height = static_cast(axis::Director::getInstance()->getOpenGLView()->getFrameSize().height); // 画面全体を覆うサイズ _sprite = new LAppSprite(_program); @@ -343,7 +343,7 @@ void LAppLive2DManager::CreateShader() " gl_FragColor = vec4(gl_FragColor.rgb * gl_FragColor.a, gl_FragColor.a);" "}"; - auto program = cocos2d::backend::Device::getInstance()->newProgram(vertexShader, fragmentShader); + auto program = axis::backend::Device::getInstance()->newProgram(vertexShader, fragmentShader); _program = program; } diff --git a/tests/live2d-tests/Classes/LAppLive2DManager.hpp b/tests/live2d-tests/Classes/LAppLive2DManager.hpp index 35ca5fff3a..d5ee8df191 100644 --- a/tests/live2d-tests/Classes/LAppLive2DManager.hpp +++ b/tests/live2d-tests/Classes/LAppLive2DManager.hpp @@ -150,6 +150,6 @@ private: LAppSprite* _sprite; ///< テクスチャの単純描画クラス Csm::Rendering::CubismOffscreenFrame_Cocos2dx* _renderBuffer; ///< モードによってはCubismモデル結果をこっちにレンダリング float _clearColor[4]; ///< レンダリングターゲットのクリアカラー - cocos2d::backend::Program* _program; + axis::backend::Program* _program; }; diff --git a/tests/live2d-tests/Classes/LAppModel.cpp b/tests/live2d-tests/Classes/LAppModel.cpp index 26705dad65..b711b54d9f 100644 --- a/tests/live2d-tests/Classes/LAppModel.cpp +++ b/tests/live2d-tests/Classes/LAppModel.cpp @@ -29,17 +29,17 @@ using namespace Csm; using namespace Csm::Constant; using namespace Csm::DefaultParameterId; using namespace LAppDefine; -using namespace cocos2d::backend; +using namespace axis::backend; #if USE_AUDIO_ENGINE #include "audio/include/AudioEngine.h" -using namespace cocos2d::experimental; +using namespace axis::experimental; #elif USE_SIMPLE_AUDIO_ENGINE #include "audio/include/SimpleAudioEngine.h" using namespace CocosDenshion; #endif -USING_NS_CC; +USING_NS_AX; namespace { csmByte* CreateBuffer(const csmChar* path, csmSizeInt* size) @@ -774,7 +774,7 @@ void LAppModel::MakeRenderingTarget() Size visibleSize = Director::getInstance()->getVisibleSize(); Point origin = Director::getInstance()->getVisibleOrigin(); - _renderSprite = RenderTexture::create(frameW, frameH, cocos2d::backend::PixelFormat::RGBA8); + _renderSprite = RenderTexture::create(frameW, frameH, axis::backend::PixelFormat::RGBA8); _renderSprite->setPosition(Point(visibleSize.width / 2 + origin.x, visibleSize.height / 2 + origin.y)); _renderSprite->getSprite()->getTexture()->setAntiAliasTexParameters(); _renderSprite->getSprite()->setBlendFunc(BlendFunc::ALPHA_NON_PREMULTIPLIED); @@ -785,11 +785,11 @@ void LAppModel::MakeRenderingTarget() // _renderSpriteのテクスチャを作成する _renderSprite->getSprite()->getTexture()->setTexParameters( - cocos2d::Texture2D::TexParams( - cocos2d::backend::SamplerFilter::LINEAR, // MagFilter - cocos2d::backend::SamplerFilter::LINEAR, // MinFilter - cocos2d::backend::SamplerAddressMode::CLAMP_TO_EDGE, // AddressingMode S - cocos2d::backend::SamplerAddressMode::CLAMP_TO_EDGE // AddressingMode T + axis::Texture2D::TexParams( + axis::backend::SamplerFilter::LINEAR, // MagFilter + axis::backend::SamplerFilter::LINEAR, // MinFilter + axis::backend::SamplerAddressMode::CLAMP_TO_EDGE, // AddressingMode S + axis::backend::SamplerAddressMode::CLAMP_TO_EDGE // AddressingMode T ) ); diff --git a/tests/live2d-tests/Classes/LAppModel.hpp b/tests/live2d-tests/Classes/LAppModel.hpp index 5eaf8ece7c..e3b5cb29c4 100644 --- a/tests/live2d-tests/Classes/LAppModel.hpp +++ b/tests/live2d-tests/Classes/LAppModel.hpp @@ -204,10 +204,10 @@ private: const Csm::CubismId* _idParamEyeBallY; ///< パラメータID: ParamEyeBallXY Csm::Rendering::CubismOffscreenFrame_Cocos2dx* _renderBuffer; ///< モードによってはCubismOffscreenFrameのテクスチャを描画 - cocos2d::RenderTexture* _renderSprite; ///< _renderBufferを描画するスプライト + axis::RenderTexture* _renderSprite; ///< _renderBufferを描画するスプライト float _clearColor[4]; ///< _renderBufferをクリアする際の色 - Csm::csmVector _loadedTextures; - cocos2d::GroupCommand _groupCommand; + Csm::csmVector _loadedTextures; + axis::GroupCommand _groupCommand; }; diff --git a/tests/live2d-tests/Classes/LAppPal.cpp b/tests/live2d-tests/Classes/LAppPal.cpp index 053a618a00..ce2048c939 100644 --- a/tests/live2d-tests/Classes/LAppPal.cpp +++ b/tests/live2d-tests/Classes/LAppPal.cpp @@ -10,7 +10,7 @@ #include "cocos2d.h" using namespace Csm; -USING_NS_CC; +USING_NS_AX; csmByte* LAppPal::LoadFileAsBytes(const csmChar* filePath, csmSizeInt* outSize) { @@ -40,7 +40,7 @@ void LAppPal::PrintLog(const csmChar* format, ...) csmChar buf[256]; va_start(args, format); vsnprintf(buf, sizeof(buf), format, args); // 標準出力でレンダリング - cocos2d::log("%s", buf); // cocos2dのログ関数で出力 + axis::log("%s", buf); // cocos2dのログ関数で出力 va_end(args); } diff --git a/tests/live2d-tests/Classes/LAppSprite.cpp b/tests/live2d-tests/Classes/LAppSprite.cpp index 9afd42a345..b450cecfb3 100644 --- a/tests/live2d-tests/Classes/LAppSprite.cpp +++ b/tests/live2d-tests/Classes/LAppSprite.cpp @@ -29,14 +29,14 @@ void LAppSprite::RenderImmidiate(Csm::Rendering::CubismCommandBuffer_Cocos2dx* c backend::BlendDescriptor* blendDescriptor = drawCommandBuffer->GetCommandDraw()->GetBlendDescriptor(); backend::ProgramState* programState = pipelineDescriptor->programState; - drawCommandBuffer->GetCommandDraw()->GetCommand()->setDrawType(cocos2d::CustomCommand::DrawType::ELEMENT); - drawCommandBuffer->GetCommandDraw()->GetCommand()->setPrimitiveType(cocos2d::backend::PrimitiveType::TRIANGLE); + drawCommandBuffer->GetCommandDraw()->GetCommand()->setDrawType(axis::CustomCommand::DrawType::ELEMENT); + drawCommandBuffer->GetCommandDraw()->GetCommand()->setPrimitiveType(axis::backend::PrimitiveType::TRIANGLE); drawCommandBuffer->CreateVertexBuffer(sizeof(float) * 2, 4 * 2); drawCommandBuffer->CreateIndexBuffer(6); // 画面サイズを取得する - cocos2d::Size visibleSize = cocos2d::Director::getInstance()->getVisibleSize(); - cocos2d::Size winSize = cocos2d::Director::getInstance()->getWinSize(); + axis::Size visibleSize = axis::Director::getInstance()->getVisibleSize(); + axis::Size winSize = axis::Director::getInstance()->getWinSize(); // 頂点データ float positionVertex[] = @@ -59,7 +59,7 @@ void LAppSprite::RenderImmidiate(Csm::Rendering::CubismCommandBuffer_Cocos2dx* c if (!programState) { - programState = new cocos2d::backend::ProgramState(_program); + programState = new axis::backend::ProgramState(_program); } // attribute属性を登録 @@ -73,10 +73,10 @@ void LAppSprite::RenderImmidiate(Csm::Rendering::CubismCommandBuffer_Cocos2dx* c programState->getVertexLayout()->setLayout(sizeof(float) * 4); - blendDescriptor->sourceRGBBlendFactor = cocos2d::backend::BlendFactor::ONE; - blendDescriptor->destinationRGBBlendFactor = cocos2d::backend::BlendFactor::ONE_MINUS_SRC_ALPHA; - blendDescriptor->sourceAlphaBlendFactor = cocos2d::backend::BlendFactor::ONE; - blendDescriptor->destinationAlphaBlendFactor = cocos2d::backend::BlendFactor::ONE_MINUS_SRC_ALPHA; + blendDescriptor->sourceRGBBlendFactor = axis::backend::BlendFactor::ONE; + blendDescriptor->destinationRGBBlendFactor = axis::backend::BlendFactor::ONE_MINUS_SRC_ALPHA; + blendDescriptor->sourceAlphaBlendFactor = axis::backend::BlendFactor::ONE; + blendDescriptor->destinationAlphaBlendFactor = axis::backend::BlendFactor::ONE_MINUS_SRC_ALPHA; blendDescriptor->blendEnabled = true; pipelineDescriptor->programState = programState; diff --git a/tests/live2d-tests/Classes/LAppSprite.hpp b/tests/live2d-tests/Classes/LAppSprite.hpp index b35e5efd7c..91952f7c89 100644 --- a/tests/live2d-tests/Classes/LAppSprite.hpp +++ b/tests/live2d-tests/Classes/LAppSprite.hpp @@ -11,7 +11,7 @@ #include "Rendering/axis/CubismCommandBuffer_Cocos2dx.hpp" #include "cocos2d.h" -USING_NS_CC; +USING_NS_AX; /** * @brief スプライトを実装するクラス。 @@ -71,6 +71,6 @@ private: float _spriteColor[4]; ///< 表示カラー - cocos2d::backend::Program* _program; + axis::backend::Program* _program; }; diff --git a/tests/live2d-tests/Classes/LAppView.cpp b/tests/live2d-tests/Classes/LAppView.cpp index be5bc5ec4c..f29f9db94b 100644 --- a/tests/live2d-tests/Classes/LAppView.cpp +++ b/tests/live2d-tests/Classes/LAppView.cpp @@ -14,7 +14,7 @@ using namespace Csm; using namespace LAppDefine; -USING_NS_CC; +USING_NS_AX; LAppView::LAppView(): DrawNode() , _debugRects(NULL) @@ -94,13 +94,13 @@ void LAppView::onExit() delete viewMatrix; } -void LAppView::draw(cocos2d::Renderer* renderer, const cocos2d::Mat4& transform, uint32_t flags) +void LAppView::draw(axis::Renderer* renderer, const axis::Mat4& transform, uint32_t flags) { DrawNode::draw(renderer, transform, flags); onDraw(transform, flags); } -void LAppView::onDraw(const cocos2d::Mat4& transform, uint32_t flags) +void LAppView::onDraw(const axis::Mat4& transform, uint32_t flags) { _commandBuffer.PushCommandGroup(); @@ -160,7 +160,7 @@ void LAppView::onTouchesMoved(const std::vector& touches, Event* event) live2DMgr->OnDrag(viewX, viewY); } -void LAppView::onTouchesEnded(const std::vector& touches, cocos2d::Event* event) +void LAppView::onTouchesEnded(const std::vector& touches, axis::Event* event) { // タッチ終了 LAppLive2DManager* live2DMgr = LAppLive2DManager::GetInstance(); diff --git a/tests/live2d-tests/Classes/LAppView.hpp b/tests/live2d-tests/Classes/LAppView.hpp index a33ad1fe22..f597425de7 100644 --- a/tests/live2d-tests/Classes/LAppView.hpp +++ b/tests/live2d-tests/Classes/LAppView.hpp @@ -16,7 +16,7 @@ #include #include "LAppLive2DManager.hpp" -class LAppView : public cocos2d::DrawNode +class LAppView : public axis::DrawNode { public: LAppView(); @@ -25,12 +25,12 @@ public: virtual void onEnter(); virtual void onExit(); - virtual void draw(cocos2d::Renderer* renderer, const cocos2d::Mat4& transform, uint32_t flags); - void onDraw(const cocos2d::Mat4& transform, uint32_t flags); + virtual void draw(axis::Renderer* renderer, const axis::Mat4& transform, uint32_t flags); + void onDraw(const axis::Mat4& transform, uint32_t flags); - void onTouchesBegan(const std::vector& touches, cocos2d::Event* event); - void onTouchesMoved(const std::vector& touches, cocos2d::Event* event); - void onTouchesEnded(const std::vector& touches, cocos2d::Event* event); + void onTouchesBegan(const std::vector& touches, axis::Event* event); + void onTouchesMoved(const std::vector& touches, axis::Event* event); + void onTouchesEnded(const std::vector& touches, axis::Event* event); void updateViewMatrix(float dx, float dy, float cx, float cy, float scale); float transformViewX(float deviceX); diff --git a/tests/live2d-tests/Classes/SampleScene.cpp b/tests/live2d-tests/Classes/SampleScene.cpp index ab979f8fa4..ef1e102684 100644 --- a/tests/live2d-tests/Classes/SampleScene.cpp +++ b/tests/live2d-tests/Classes/SampleScene.cpp @@ -11,7 +11,7 @@ #include "LAppDefine.hpp" #include "LAppPal.hpp" -USING_NS_CC; +USING_NS_AX; namespace { diff --git a/tests/live2d-tests/Classes/SampleScene.h b/tests/live2d-tests/Classes/SampleScene.h index 46be2b172a..5d72c4c48a 100644 --- a/tests/live2d-tests/Classes/SampleScene.h +++ b/tests/live2d-tests/Classes/SampleScene.h @@ -13,10 +13,10 @@ class LAppView; -class SampleScene : public cocos2d::Scene +class SampleScene : public axis::Scene { public: - static cocos2d::Scene* createScene(); + static axis::Scene* createScene(); static SampleScene* getInstance(); @@ -27,8 +27,8 @@ public: virtual void onExit() override; // a selector callback - void menuCloseCallback(cocos2d::Ref* pSender); - void menuChangeCallback(cocos2d::Ref* pSender); + void menuCloseCallback(axis::Ref* pSender); + void menuChangeCallback(axis::Ref* pSender); // implement the "static create()" method manually CREATE_FUNC(SampleScene); @@ -39,8 +39,8 @@ public: private: LAppView* _pView; - cocos2d::MenuItemImage* _changeItem; - cocos2d::MenuItemImage* _closeItem; + axis::MenuItemImage* _changeItem; + axis::MenuItemImage* _closeItem; }; #endif // __SAMPLE_SCENE_H__ diff --git a/tests/live2d-tests/Classes/TouchManager.cpp b/tests/live2d-tests/Classes/TouchManager.cpp index 474d88e6c3..78432cf59a 100644 --- a/tests/live2d-tests/Classes/TouchManager.cpp +++ b/tests/live2d-tests/Classes/TouchManager.cpp @@ -63,7 +63,7 @@ void TouchManager::touchesBegan(float x1, float y1, float x2, float y2) touchSingle = false; } -void TouchManager::touchesMoved(cocos2d::Point touches[], int num) +void TouchManager::touchesMoved(axis::Point touches[], int num) { // 前回のクリック位置に最も近いものを選びだす // pt1、pt2の両点への距離の和が最小となる点の組み合わせを総当たりで探す @@ -72,13 +72,13 @@ void TouchManager::touchesMoved(cocos2d::Point touches[], int num) index2 = 1; for (int i1 = 0; i1 < num; i1 ++) { - cocos2d::Point pp1 = touches[i1]; + axis::Point pp1 = touches[i1]; for (int i2 = 0; i2 < num; i2++) { if (i1 == i2) continue ; - cocos2d::Point pp2 = touches[i2]; + axis::Point pp2 = touches[i2]; int distTotal = ((lastX1 - pp1.x) * (lastX1 - pp1.x) + (lastY1 - pp1.y) * (lastY1 - pp1.y)) + ((lastX2 - pp2.x) * (lastX2 - pp2.x) + (lastY2 - pp2.y) * (lastY2 - pp2.y)); @@ -94,8 +94,8 @@ void TouchManager::touchesMoved(cocos2d::Point touches[], int num) if (minDist2 > 70 * 70 * 2 && num > 2) return; // 処理しない // pt2に一番近い点 - cocos2d::Point pt1 = touches[index1]; - cocos2d::Point pt2 = touches[index2]; + axis::Point pt1 = touches[index1]; + axis::Point pt2 = touches[index2]; touchesMoved(pt1.x, pt1.y, pt2.x, pt2.y); } diff --git a/tests/live2d-tests/Classes/TouchManager.h b/tests/live2d-tests/Classes/TouchManager.h index a3b817715e..8784874d18 100644 --- a/tests/live2d-tests/Classes/TouchManager.h +++ b/tests/live2d-tests/Classes/TouchManager.h @@ -53,7 +53,7 @@ public: void touchesBegan(float deviceX, float deviceY); void touchesBegan(float deviceX1, float deviceY1, float deviceX2, float deviceY2); - void touchesMoved(cocos2d::Point touches[], int num); + void touchesMoved(axis::Point touches[], int num); void touchesMoved(float deviceX, float deviceY); void touchesMoved(float deviceX1, float deviceY1, float deviceX2, float deviceY2); float getFlickDistance(); diff --git a/tests/live2d-tests/proj.ios_mac/ios/AppController.mm b/tests/live2d-tests/proj.ios_mac/ios/AppController.mm index 2dafa17d40..28c5b7e56b 100644 --- a/tests/live2d-tests/proj.ios_mac/ios/AppController.mm +++ b/tests/live2d-tests/proj.ios_mac/ios/AppController.mm @@ -42,11 +42,11 @@ static AppDelegate s_sharedApplication; - (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions { - cocos2d::Application* app = cocos2d::Application::getInstance(); + axis::Application* app = axis::Application::getInstance(); // Initialize the GLView attributes app->initGLContextAttrs(); - cocos2d::GLViewImpl::convertAttrs(); + axis::GLViewImpl::convertAttrs(); // Override point for customization after application launch. @@ -80,8 +80,8 @@ static AppDelegate s_sharedApplication; } // IMPORTANT: Setting the GLView should be done after creating the RootViewController - cocos2d::GLView* glview = cocos2d::GLViewImpl::createWithEAGLView((__bridge void*)_viewController.view); - cocos2d::Director::getInstance()->setOpenGLView(glview); + axis::GLView* glview = axis::GLViewImpl::createWithEAGLView((__bridge void*)_viewController.view); + axis::Director::getInstance()->setOpenGLView(glview); // run the cocos2d-x game scene app->run(); @@ -98,7 +98,7 @@ static AppDelegate s_sharedApplication; throttle down OpenGL ES frame rates. Games should use this method to pause the game. */ // We don't need to call this method any more. It will interrupt user defined game pause&resume logic - /* cocos2d::Director::getInstance()->pause(); */ + /* axis::Director::getInstance()->pause(); */ } - (void)applicationDidBecomeActive:(UIApplication*)application @@ -108,7 +108,7 @@ static AppDelegate s_sharedApplication; previously in the background, optionally refresh the user interface. */ // We don't need to call this method any more. It will interrupt user defined game pause&resume logic - /* cocos2d::Director::getInstance()->resume(); */ + /* axis::Director::getInstance()->resume(); */ } - (void)applicationDidEnterBackground:(UIApplication*)application @@ -118,7 +118,7 @@ static AppDelegate s_sharedApplication; information to restore your application to its current state in case it is terminated later. If your application supports background execution, called instead of applicationWillTerminate: when the user quits. */ - cocos2d::Application::getInstance()->applicationDidEnterBackground(); + axis::Application::getInstance()->applicationDidEnterBackground(); } - (void)applicationWillEnterForeground:(UIApplication*)application @@ -127,7 +127,7 @@ static AppDelegate s_sharedApplication; Called as part of transition from the background to the inactive state: here you can undo many of the changes made on entering the background. */ - cocos2d::Application::getInstance()->applicationWillEnterForeground(); + axis::Application::getInstance()->applicationWillEnterForeground(); } - (void)applicationWillTerminate:(UIApplication*)application diff --git a/tests/live2d-tests/proj.ios_mac/ios/RootViewController.mm b/tests/live2d-tests/proj.ios_mac/ios/RootViewController.mm index 8eaf237db9..a5ded72f81 100644 --- a/tests/live2d-tests/proj.ios_mac/ios/RootViewController.mm +++ b/tests/live2d-tests/proj.ios_mac/ios/RootViewController.mm @@ -46,12 +46,12 @@ customization that is not appropriate for viewDidLoad. { // Initialize the CCEAGLView CCEAGLView* eaglView = [CCEAGLView viewWithFrame:[UIScreen mainScreen].bounds - pixelFormat:(__bridge NSString*)cocos2d::GLViewImpl::_pixelFormat - depthFormat:cocos2d::GLViewImpl::_depthFormat + pixelFormat:(__bridge NSString*)axis::GLViewImpl::_pixelFormat + depthFormat:axis::GLViewImpl::_depthFormat preserveBackbuffer:NO sharegroup:nil - multiSampling:cocos2d::GLViewImpl::_multisamplingCount > 0 ? YES : NO - numberOfSamples:cocos2d::GLViewImpl::_multisamplingCount]; + multiSampling:axis::GLViewImpl::_multisamplingCount > 0 ? YES : NO + numberOfSamples:axis::GLViewImpl::_multisamplingCount]; // Enable or disable multiple touches [eaglView setMultipleTouchEnabled:NO]; @@ -93,7 +93,7 @@ customization that is not appropriate for viewDidLoad. { [super didRotateFromInterfaceOrientation:fromInterfaceOrientation]; - auto glview = cocos2d::Director::getInstance()->getOpenGLView(); + auto glview = axis::Director::getInstance()->getOpenGLView(); if (glview) { @@ -102,7 +102,7 @@ customization that is not appropriate for viewDidLoad. if (eaglview) { CGSize s = CGSizeMake([eaglview getWidth], [eaglview getHeight]); - cocos2d::Application::getInstance()->applicationScreenSizeChanged((int)s.width, (int)s.height); + axis::Application::getInstance()->applicationScreenSizeChanged((int)s.width, (int)s.height); } } } diff --git a/tests/live2d-tests/proj.ios_mac/mac/main.cpp b/tests/live2d-tests/proj.ios_mac/mac/main.cpp index 44045f8feb..59748b3c5f 100644 --- a/tests/live2d-tests/proj.ios_mac/mac/main.cpp +++ b/tests/live2d-tests/proj.ios_mac/mac/main.cpp @@ -26,7 +26,7 @@ #include "AppDelegate.h" #include "cocos2d.h" -USING_NS_CC; +USING_NS_AX; int main(int argc, char* argv[]) { diff --git a/tests/live2d-tests/proj.linux/main.cpp b/tests/live2d-tests/proj.linux/main.cpp index 3cbdb2bc35..dd68d8f841 100644 --- a/tests/live2d-tests/proj.linux/main.cpp +++ b/tests/live2d-tests/proj.linux/main.cpp @@ -29,7 +29,7 @@ #include #include -USING_NS_CC; +USING_NS_AX; int main(int argc, char** argv) { diff --git a/tests/live2d-tests/proj.win32/main.cpp b/tests/live2d-tests/proj.win32/main.cpp index 636fa57f07..1fdf40a681 100644 --- a/tests/live2d-tests/proj.win32/main.cpp +++ b/tests/live2d-tests/proj.win32/main.cpp @@ -26,7 +26,7 @@ #include "AppDelegate.h" #include "cocos2d.h" -USING_NS_CC; +USING_NS_AX; int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow) { diff --git a/tests/lua-tests/project/Classes/AppDelegate.cpp b/tests/lua-tests/project/Classes/AppDelegate.cpp index 415dc811a8..a15a770105 100644 --- a/tests/lua-tests/project/Classes/AppDelegate.cpp +++ b/tests/lua-tests/project/Classes/AppDelegate.cpp @@ -30,7 +30,7 @@ #include "scripting/lua-bindings/manual/lua_module_register.h" #include "lua_test_bindings.h" -USING_NS_CC; +USING_NS_AX; AppDelegate::AppDelegate() {} diff --git a/tests/lua-tests/project/Classes/AppDelegate.h b/tests/lua-tests/project/Classes/AppDelegate.h index 4185ab389e..ef7fa08ad8 100644 --- a/tests/lua-tests/project/Classes/AppDelegate.h +++ b/tests/lua-tests/project/Classes/AppDelegate.h @@ -32,7 +32,7 @@ Private inheritance here hides part of interface from Director. */ -class AppDelegate : private cocos2d::Application +class AppDelegate : private axis::Application { public: AppDelegate(); diff --git a/tests/lua-tests/project/Classes/lua_assetsmanager_test_sample.cpp b/tests/lua-tests/project/Classes/lua_assetsmanager_test_sample.cpp index acdfa4d6c5..ba919eefac 100644 --- a/tests/lua-tests/project/Classes/lua_assetsmanager_test_sample.cpp +++ b/tests/lua-tests/project/Classes/lua_assetsmanager_test_sample.cpp @@ -34,8 +34,8 @@ # include #endif -USING_NS_CC; -USING_NS_CC_EXT; +USING_NS_AX; +USING_NS_AX_EXT; static int lua_cocos2dx_createDownloadDir(lua_State* L) { diff --git a/tests/lua-tests/project/Classes/lua_test_bindings.cpp b/tests/lua-tests/project/Classes/lua_test_bindings.cpp index 91ad4bc613..a57d5a175f 100644 --- a/tests/lua-tests/project/Classes/lua_test_bindings.cpp +++ b/tests/lua-tests/project/Classes/lua_test_bindings.cpp @@ -26,7 +26,7 @@ #include "cocos2d.h" #include "scripting/lua-bindings/manual/LuaBasicConversions.h" -NS_CC_BEGIN +NS_AX_BEGIN /** * Copy DrawNode for 3D geometry drawing. @@ -329,12 +329,12 @@ ValueTypeJudgeInTable* ValueTypeJudgeInTable::create(ValueMap valueMap) return ret; } -NS_CC_END +NS_AX_END int lua_cocos2dx_DrawNode3D_getBlendFunc(lua_State* L) { int argc = 0; - cocos2d::DrawNode3D* cobj = nullptr; + axis::DrawNode3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -346,7 +346,7 @@ int lua_cocos2dx_DrawNode3D_getBlendFunc(lua_State* L) goto tolua_lerror; #endif - cobj = (cocos2d::DrawNode3D*)tolua_tousertype(L, 1, 0); + cobj = (axis::DrawNode3D*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -361,7 +361,7 @@ int lua_cocos2dx_DrawNode3D_getBlendFunc(lua_State* L) { if (!ok) return 0; - const cocos2d::BlendFunc& ret = cobj->getBlendFunc(); + const axis::BlendFunc& ret = cobj->getBlendFunc(); blendfunc_to_luaval(L, ret); return 1; } @@ -379,7 +379,7 @@ tolua_lerror: int lua_cocos2dx_DrawNode3D_setBlendFunc(lua_State* L) { int argc = 0; - cocos2d::DrawNode3D* cobj = nullptr; + axis::DrawNode3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -391,7 +391,7 @@ int lua_cocos2dx_DrawNode3D_setBlendFunc(lua_State* L) goto tolua_lerror; #endif - cobj = (cocos2d::DrawNode3D*)tolua_tousertype(L, 1, 0); + cobj = (axis::DrawNode3D*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -404,7 +404,7 @@ int lua_cocos2dx_DrawNode3D_setBlendFunc(lua_State* L) argc = lua_gettop(L) - 1; if (argc == 1) { - cocos2d::BlendFunc arg0; + axis::BlendFunc arg0; ok &= luaval_to_blendfunc(L, 2, &arg0, "cc.Sprite3D:setBlendFunc"); if (!ok) @@ -430,7 +430,7 @@ tolua_lerror: int lua_cocos2dx_DrawNode3D_drawLine(lua_State* L) { int argc = 0; - cocos2d::DrawNode3D* cobj = nullptr; + axis::DrawNode3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -442,7 +442,7 @@ int lua_cocos2dx_DrawNode3D_drawLine(lua_State* L) goto tolua_lerror; #endif - cobj = (cocos2d::DrawNode3D*)tolua_tousertype(L, 1, 0); + cobj = (axis::DrawNode3D*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -455,9 +455,9 @@ int lua_cocos2dx_DrawNode3D_drawLine(lua_State* L) argc = lua_gettop(L) - 1; if (argc == 3) { - cocos2d::Vec3 arg0; - cocos2d::Vec3 arg1; - cocos2d::Color4F arg2; + axis::Vec3 arg0; + axis::Vec3 arg1; + axis::Color4F arg2; ok &= luaval_to_vec3(L, 2, &arg0, "cc.DrawNode3D:drawLine"); @@ -483,7 +483,7 @@ tolua_lerror: int lua_cocos2dx_DrawNode3D_clear(lua_State* L) { int argc = 0; - cocos2d::DrawNode3D* cobj = nullptr; + axis::DrawNode3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -495,7 +495,7 @@ int lua_cocos2dx_DrawNode3D_clear(lua_State* L) goto tolua_lerror; #endif - cobj = (cocos2d::DrawNode3D*)tolua_tousertype(L, 1, 0); + cobj = (axis::DrawNode3D*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -527,7 +527,7 @@ tolua_lerror: int lua_cocos2dx_DrawNode3D_drawCube(lua_State* L) { int argc = 0; - cocos2d::DrawNode3D* cobj = nullptr; + axis::DrawNode3D* cobj = nullptr; bool ok = true; #if COCOS2D_DEBUG >= 1 @@ -539,7 +539,7 @@ int lua_cocos2dx_DrawNode3D_drawCube(lua_State* L) goto tolua_lerror; #endif - cobj = (cocos2d::DrawNode3D*)tolua_tousertype(L, 1, 0); + cobj = (axis::DrawNode3D*)tolua_tousertype(L, 1, 0); #if COCOS2D_DEBUG >= 1 if (!cobj) @@ -552,8 +552,8 @@ int lua_cocos2dx_DrawNode3D_drawCube(lua_State* L) argc = lua_gettop(L) - 1; if (argc == 2) { - std::vector arg0; - cocos2d::Color4F arg1; + std::vector arg0; + axis::Color4F arg1; Vec3 vec3; #if COCOS2D_DEBUG >= 1 if (!tolua_istable(L, 2, 0, &tolua_err)) @@ -622,8 +622,8 @@ int lua_cocos2dx_DrawNode3D_create(lua_State* L) { if (!ok) return 0; - cocos2d::DrawNode3D* ret = cocos2d::DrawNode3D::create(); - object_to_luaval(L, "cc.DrawNode3D", (cocos2d::DrawNode3D*)ret); + axis::DrawNode3D* ret = axis::DrawNode3D::create(); + object_to_luaval(L, "cc.DrawNode3D", (axis::DrawNode3D*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "cc.DrawNode3D:create", argc, 0); @@ -647,7 +647,7 @@ int lua_register_cocos2dx_DrawNode3D(lua_State* L) tolua_function(L, "drawCube", lua_cocos2dx_DrawNode3D_drawCube); tolua_function(L, "create", lua_cocos2dx_DrawNode3D_create); tolua_endmodule(L); - auto typeName = typeid(cocos2d::DrawNode3D).name(); + auto typeName = typeid(axis::DrawNode3D).name(); g_luaType[reinterpret_cast(typeName)] = "cc.DrawNode3D"; g_typeCast[typeName] = "cc.DrawNode3D"; return 1; @@ -671,13 +671,13 @@ int lua_cocos2dx_ValueTypeJudgeInTable_create(lua_State* L) if (argc == 1) { - cocos2d::ValueMap arg0; + axis::ValueMap arg0; ok &= luaval_to_ccvaluemap(L, 2, &arg0, "cc.ValueTypeJudgeInTable:create"); if (!ok) return 0; - cocos2d::ValueTypeJudgeInTable* ret = cocos2d::ValueTypeJudgeInTable::create(arg0); - object_to_luaval(L, "cc.ValueTypeJudgeInTable", - (cocos2d::ValueTypeJudgeInTable*)ret); + axis::ValueTypeJudgeInTable* ret = axis::ValueTypeJudgeInTable::create(arg0); + object_to_luaval(L, "cc.ValueTypeJudgeInTable", + (axis::ValueTypeJudgeInTable*)ret); return 1; } CCLOG("%s has wrong number of arguments: %d, was expecting %d\n ", "cc.ValueTypeJudgeInTable:create", argc, 1); @@ -697,7 +697,7 @@ int lua_register_cocos2dx_ValueTypeJudgeInTable(lua_State* L) tolua_beginmodule(L, "ValueTypeJudgeInTable"); tolua_function(L, "create", lua_cocos2dx_ValueTypeJudgeInTable_create); tolua_endmodule(L); - auto typeName = typeid(cocos2d::ValueTypeJudgeInTable).name(); + auto typeName = typeid(axis::ValueTypeJudgeInTable).name(); g_luaType[reinterpret_cast(typeName)] = "cc.ValueTypeJudgeInTable"; g_typeCast[typeName] = "cc.ValueTypeJudgeInTable"; return 1; diff --git a/tests/lua-tests/project/proj.ios_mac/ios/AppController.mm b/tests/lua-tests/project/proj.ios_mac/ios/AppController.mm index 719a7ad920..3445999a14 100644 --- a/tests/lua-tests/project/proj.ios_mac/ios/AppController.mm +++ b/tests/lua-tests/project/proj.ios_mac/ios/AppController.mm @@ -41,20 +41,20 @@ static AppDelegate s_sharedApplication; - (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions { - cocos2d::Application* app = cocos2d::Application::getInstance(); + axis::Application* app = axis::Application::getInstance(); app->initGLContextAttrs(); - cocos2d::GLViewImpl::convertAttrs(); + axis::GLViewImpl::convertAttrs(); // Override point for customization after application launch. // Add the view controller's view to the window and display. window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; CCEAGLView* eaglView = [CCEAGLView viewWithFrame:[window bounds] - pixelFormat:(NSString*)cocos2d::GLViewImpl::_pixelFormat - depthFormat:cocos2d::GLViewImpl::_depthFormat + pixelFormat:(NSString*)axis::GLViewImpl::_pixelFormat + depthFormat:axis::GLViewImpl::_depthFormat preserveBackbuffer:NO sharegroup:nil - multiSampling:cocos2d::GLViewImpl::_multisamplingCount > 0 ? YES : NO - numberOfSamples:cocos2d::GLViewImpl::_multisamplingCount]; + multiSampling:axis::GLViewImpl::_multisamplingCount > 0 ? YES : NO + numberOfSamples:axis::GLViewImpl::_multisamplingCount]; #if !defined(CC_TARGET_OS_TVOS) [eaglView setMultipleTouchEnabled:YES]; @@ -92,8 +92,8 @@ static AppDelegate s_sharedApplication; } // IMPORTANT: Setting the GLView should be done after creating the RootViewController - cocos2d::GLView* glview = cocos2d::GLViewImpl::createWithEAGLView(eaglView); - cocos2d::Director::getInstance()->setOpenGLView(glview); + axis::GLView* glview = axis::GLViewImpl::createWithEAGLView(eaglView); + axis::Director::getInstance()->setOpenGLView(glview); app->run(); return YES; @@ -107,7 +107,7 @@ static AppDelegate s_sharedApplication; it begins the transition to the background state. Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. */ - cocos2d::Director::getInstance()->pause(); + axis::Director::getInstance()->pause(); } - (void)applicationDidBecomeActive:(UIApplication*)application @@ -116,7 +116,7 @@ static AppDelegate s_sharedApplication; Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. */ - cocos2d::Director::getInstance()->resume(); + axis::Director::getInstance()->resume(); } - (void)applicationDidEnterBackground:(UIApplication*)application @@ -126,7 +126,7 @@ static AppDelegate s_sharedApplication; information to restore your application to its current state in case it is terminated later. If your application supports background execution, called instead of applicationWillTerminate: when the user quits. */ - cocos2d::Application::getInstance()->applicationDidEnterBackground(); + axis::Application::getInstance()->applicationDidEnterBackground(); } - (void)applicationWillEnterForeground:(UIApplication*)application @@ -135,7 +135,7 @@ static AppDelegate s_sharedApplication; Called as part of transition from the background to the inactive state: here you can undo many of the changes made on entering the background. */ - cocos2d::Application::getInstance()->applicationWillEnterForeground(); + axis::Application::getInstance()->applicationWillEnterForeground(); } - (void)applicationWillTerminate:(UIApplication*)application @@ -155,7 +155,7 @@ static AppDelegate s_sharedApplication; Free up as much memory as possible by purging cached data objects that can be recreated (or reloaded from disk) later. */ - cocos2d::Director::getInstance()->purgeCachedData(); + axis::Director::getInstance()->purgeCachedData(); } - (void)dealloc diff --git a/tests/lua-tests/project/proj.ios_mac/ios/LuaObjectCBridgeTest.mm b/tests/lua-tests/project/proj.ios_mac/ios/LuaObjectCBridgeTest.mm index 26c188c95f..f38419d205 100644 --- a/tests/lua-tests/project/proj.ios_mac/ios/LuaObjectCBridgeTest.mm +++ b/tests/lua-tests/project/proj.ios_mac/ios/LuaObjectCBridgeTest.mm @@ -28,7 +28,7 @@ #include "scripting/lua-bindings/manual/CCLuaEngine.h" #include "scripting/lua-bindings/manual/CCLuaBridge.h" -using namespace cocos2d; +USING_NS_AX; @implementation LuaObjectCBridgeTest diff --git a/tests/lua-tests/project/proj.ios_mac/mac/LuaObjectCBridgeTest.mm b/tests/lua-tests/project/proj.ios_mac/mac/LuaObjectCBridgeTest.mm index 26c188c95f..f38419d205 100644 --- a/tests/lua-tests/project/proj.ios_mac/mac/LuaObjectCBridgeTest.mm +++ b/tests/lua-tests/project/proj.ios_mac/mac/LuaObjectCBridgeTest.mm @@ -28,7 +28,7 @@ #include "scripting/lua-bindings/manual/CCLuaEngine.h" #include "scripting/lua-bindings/manual/CCLuaBridge.h" -using namespace cocos2d; +USING_NS_AX; @implementation LuaObjectCBridgeTest diff --git a/tests/lua-tests/project/proj.ios_mac/mac/main.cpp b/tests/lua-tests/project/proj.ios_mac/mac/main.cpp index 78b81c5959..69f7a148f4 100644 --- a/tests/lua-tests/project/proj.ios_mac/mac/main.cpp +++ b/tests/lua-tests/project/proj.ios_mac/mac/main.cpp @@ -25,7 +25,7 @@ #include "AppDelegate.h" -USING_NS_CC; +USING_NS_AX; int main(int argc, char* argv[]) { diff --git a/tests/lua-tests/project/proj.linux/main.cpp b/tests/lua-tests/project/proj.linux/main.cpp index 1554a1b0ed..72dd261dc2 100644 --- a/tests/lua-tests/project/proj.linux/main.cpp +++ b/tests/lua-tests/project/proj.linux/main.cpp @@ -30,7 +30,7 @@ #include #include -USING_NS_CC; +USING_NS_AX; int main(int argc, char** argv) { diff --git a/tests/lua-tests/project/proj.win32/main.cpp b/tests/lua-tests/project/proj.win32/main.cpp index d465ffd0b7..75a48cff7e 100644 --- a/tests/lua-tests/project/proj.win32/main.cpp +++ b/tests/lua-tests/project/proj.win32/main.cpp @@ -26,7 +26,7 @@ #include "AppDelegate.h" #include "cocos2d.h" -USING_NS_CC; +USING_NS_AX; // uncomment below line, open debug console #define USE_WIN32_CONSOLE diff --git a/tools/console/plugins/plugin_generate/bin-templates/cpp-template-default/Classes/AppDelegate.cpp b/tools/console/plugins/plugin_generate/bin-templates/cpp-template-default/Classes/AppDelegate.cpp index bc0fc0d64f..49dd6796b8 100644 --- a/tools/console/plugins/plugin_generate/bin-templates/cpp-template-default/Classes/AppDelegate.cpp +++ b/tools/console/plugins/plugin_generate/bin-templates/cpp-template-default/Classes/AppDelegate.cpp @@ -1,7 +1,7 @@ #include "AppDelegate.h" #include "HelloWorldScene.h" -USING_NS_CC; +USING_NS_AX; AppDelegate::AppDelegate() { diff --git a/tools/console/plugins/plugin_generate/bin-templates/cpp-template-default/Classes/HelloWorldScene.cpp b/tools/console/plugins/plugin_generate/bin-templates/cpp-template-default/Classes/HelloWorldScene.cpp index 45a84caec6..7a795176b0 100644 --- a/tools/console/plugins/plugin_generate/bin-templates/cpp-template-default/Classes/HelloWorldScene.cpp +++ b/tools/console/plugins/plugin_generate/bin-templates/cpp-template-default/Classes/HelloWorldScene.cpp @@ -2,7 +2,7 @@ #include "extensions/cocostudio/CocoStudio.h" #include "ui/CocosGUI.h" -USING_NS_CC; +USING_NS_AX; using namespace cocostudio::timeline; diff --git a/tools/console/plugins/plugin_generate/bin-templates/cpp-template-default/Classes/HelloWorldScene.h b/tools/console/plugins/plugin_generate/bin-templates/cpp-template-default/Classes/HelloWorldScene.h index 97c7312abe..7af58869c3 100644 --- a/tools/console/plugins/plugin_generate/bin-templates/cpp-template-default/Classes/HelloWorldScene.h +++ b/tools/console/plugins/plugin_generate/bin-templates/cpp-template-default/Classes/HelloWorldScene.h @@ -3,11 +3,11 @@ #include "cocos2d.h" -class HelloWorld : public cocos2d::Layer +class HelloWorld : public axis::Layer { public: // there's no 'id' in cpp, so we recommend returning the class instance pointer - static cocos2d::Scene* createScene(); + static axis::Scene* createScene(); // Here's a difference. Method 'init' in cocos2d-x returns bool, instead of returning 'id' in cocos2d-iphone virtual bool init();