/scripting/lua/cocos2dx_support/Lua_extensions_CCB.cpp

https://bitbucket.org/gontamoteam/gontamo-repo · C++ · 1519 lines · 1421 code · 51 blank · 47 comment · 84 complexity · acd20ebec8324dc03985384a37654c13 MD5 · raw file

  1. #ifdef __cplusplus
  2. extern "C" {
  3. #endif
  4. #include "tolua_fix.h"
  5. #ifdef __cplusplus
  6. }
  7. #endif
  8. #include <map>
  9. #include <string>
  10. #include "Lua_extensions_CCB.h"
  11. #include "cocos2d.h"
  12. #include "cocos-ext.h"
  13. #include "CCBProxy.h"
  14. using namespace cocos2d;
  15. using namespace cocos2d::extension;
  16. #ifdef __cplusplus
  17. static int tolua_collect_CCBAnimationManager (lua_State* tolua_S)
  18. {
  19. CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0);
  20. Mtolua_delete(self);
  21. return 0;
  22. }
  23. static int tolua_collect_CCBReader (lua_State* tolua_S)
  24. {
  25. CCBReader* self = (CCBReader*) tolua_tousertype(tolua_S,1,0);
  26. Mtolua_delete(self);
  27. return 0;
  28. }
  29. static int tolua_collect_CCBProxy (lua_State* tolua_S)
  30. {
  31. CCBProxy *self = (CCBProxy*) tolua_tousertype(tolua_S,1,0);
  32. Mtolua_delete(self);
  33. return 0;
  34. }
  35. #endif
  36. /* function to release collected object via destructor */
  37. static void tolua_reg_extensions_ccb_type(lua_State* tolua_S)
  38. {
  39. tolua_usertype(tolua_S, "CCBAnimationManager");
  40. tolua_usertype(tolua_S, "CCBReader");
  41. tolua_usertype(tolua_S, "CCBProxy");
  42. }
  43. /* method: delete of class CCBReader */
  44. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBReader_delete00
  45. static int tolua_Cocos2d_CCBReader_delete00(lua_State* tolua_S)
  46. {
  47. #ifndef TOLUA_RELEASE
  48. tolua_Error tolua_err;
  49. if (
  50. !tolua_isusertype(tolua_S,1,"CCBReader",0,&tolua_err) ||
  51. !tolua_isnoobj(tolua_S,2,&tolua_err)
  52. )
  53. goto tolua_lerror;
  54. else
  55. #endif
  56. {
  57. CCBReader* self = (CCBReader*) tolua_tousertype(tolua_S,1,0);
  58. #ifndef TOLUA_RELEASE
  59. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL);
  60. #endif
  61. Mtolua_delete(self);
  62. }
  63. return 0;
  64. #ifndef TOLUA_RELEASE
  65. tolua_lerror:
  66. tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
  67. return 0;
  68. #endif
  69. }
  70. #endif //#ifndef TOLUA_DISABLE
  71. /* method: new of class CCBReader */
  72. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBReader_new00
  73. static int tolua_Cocos2d_CCBReader_new00(lua_State* tolua_S)
  74. {
  75. #ifndef TOLUA_RELEASE
  76. tolua_Error tolua_err;
  77. if (
  78. !tolua_isusertable(tolua_S,1,"CCBReader",0,&tolua_err) ||
  79. !tolua_isnoobj(tolua_S,2,&tolua_err)
  80. )
  81. goto tolua_lerror;
  82. else
  83. #endif
  84. {
  85. {
  86. CCBReader* tolua_ret = (CCBReader*) Mtolua_new((CCBReader)());
  87. int nID = (tolua_ret) ? (int)tolua_ret->m_uID : -1;
  88. int* pLuaID = (tolua_ret) ? &tolua_ret->m_nLuaID : NULL;
  89. toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCBReader");
  90. }
  91. }
  92. return 1;
  93. #ifndef TOLUA_RELEASE
  94. tolua_lerror:
  95. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  96. return 0;
  97. #endif
  98. }
  99. #endif //#ifndef TOLUA_DISABLE
  100. /* method: new_local of class CCBReader */
  101. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBReader_new00_local
  102. static int tolua_Cocos2d_CCBReader_new00_local(lua_State* tolua_S)
  103. {
  104. #ifndef TOLUA_RELEASE
  105. tolua_Error tolua_err;
  106. if (
  107. !tolua_isusertable(tolua_S,1,"CCBReader",0,&tolua_err) ||
  108. !tolua_isnoobj(tolua_S,2,&tolua_err)
  109. )
  110. goto tolua_lerror;
  111. else
  112. #endif
  113. {
  114. {
  115. CCBReader* tolua_ret = (CCBReader*) Mtolua_new((CCBReader)());
  116. int nID = (tolua_ret) ? (int)tolua_ret->m_uID : -1;
  117. int* pLuaID = (tolua_ret) ? &tolua_ret->m_nLuaID : NULL;
  118. toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCBReader");
  119. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  120. }
  121. }
  122. return 1;
  123. #ifndef TOLUA_RELEASE
  124. tolua_lerror:
  125. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  126. return 0;
  127. #endif
  128. }
  129. #endif //#ifndef TOLUA_DISABLE
  130. /* method: getOwnerCallbackNames of class CCBReader */
  131. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBReader_getOwnerCallbackNames00
  132. static int tolua_Cocos2d_CCBReader_getOwnerCallbackNames00(lua_State* tolua_S)
  133. {
  134. #ifndef TOLUA_RELEASE
  135. tolua_Error tolua_err;
  136. if (
  137. !tolua_isusertype(tolua_S,1,"CCBReader",0,&tolua_err) ||
  138. !tolua_isnoobj(tolua_S,2,&tolua_err)
  139. )
  140. goto tolua_lerror;
  141. else
  142. #endif
  143. {
  144. CCBReader* self = (CCBReader*) tolua_tousertype(tolua_S,1,0);
  145. #ifndef TOLUA_RELEASE
  146. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getOwnerCallbackNames'", NULL);
  147. #endif
  148. {
  149. CCArray* tolua_ret = (CCArray*) self->getOwnerCallbackNames();
  150. int nID = (tolua_ret) ? (int)tolua_ret->m_uID : -1;
  151. int* pLuaID = (tolua_ret) ? &tolua_ret->m_nLuaID : NULL;
  152. toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCArray");
  153. }
  154. }
  155. return 1;
  156. #ifndef TOLUA_RELEASE
  157. tolua_lerror:
  158. tolua_error(tolua_S,"#ferror in function 'getOwnerCallbackNames'.",&tolua_err);
  159. return 0;
  160. #endif
  161. }
  162. #endif //#ifndef TOLUA_DISABLE
  163. /* method: setCCBRootPath of class CCBReader */
  164. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBReader_setCCBRootPath00
  165. static int tolua_Cocos2d_CCBReader_setCCBRootPath00(lua_State* tolua_S)
  166. {
  167. #ifndef TOLUA_RELEASE
  168. tolua_Error tolua_err;
  169. if (
  170. !tolua_isusertype(tolua_S,1,"CCBReader",0,&tolua_err) ||
  171. !tolua_isstring(tolua_S,2,0,&tolua_err) ||
  172. !tolua_isnoobj(tolua_S,3,&tolua_err)
  173. )
  174. goto tolua_lerror;
  175. else
  176. #endif
  177. {
  178. CCBReader* self = (CCBReader*) tolua_tousertype(tolua_S,1,0);
  179. const char* pCCBRootPath = ((const char*) tolua_tostring(tolua_S,2,0));
  180. #ifndef TOLUA_RELEASE
  181. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setCCBRootPath'", NULL);
  182. #endif
  183. {
  184. self->setCCBRootPath(pCCBRootPath);
  185. }
  186. }
  187. return 0;
  188. #ifndef TOLUA_RELEASE
  189. tolua_lerror:
  190. tolua_error(tolua_S,"#ferror in function 'setCCBRootPath'.",&tolua_err);
  191. return 0;
  192. #endif
  193. }
  194. #endif //#ifndef TOLUA_DISABLE
  195. /* method: getOwnerCallbackNodes of class CCBReader */
  196. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBReader_getOwnerCallbackNodes00
  197. static int tolua_Cocos2d_CCBReader_getOwnerCallbackNodes00(lua_State* tolua_S)
  198. {
  199. #ifndef TOLUA_RELEASE
  200. tolua_Error tolua_err;
  201. if (
  202. !tolua_isusertype(tolua_S,1,"CCBReader",0,&tolua_err) ||
  203. !tolua_isnoobj(tolua_S,2,&tolua_err)
  204. )
  205. goto tolua_lerror;
  206. else
  207. #endif
  208. {
  209. CCBReader* self = (CCBReader*) tolua_tousertype(tolua_S,1,0);
  210. #ifndef TOLUA_RELEASE
  211. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getOwnerCallbackNodes'", NULL);
  212. #endif
  213. {
  214. CCArray* tolua_ret = (CCArray*) self->getOwnerCallbackNodes();
  215. int nID = (tolua_ret) ? (int)tolua_ret->m_uID : -1;
  216. int* pLuaID = (tolua_ret) ? &tolua_ret->m_nLuaID : NULL;
  217. toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCArray");
  218. }
  219. }
  220. return 1;
  221. #ifndef TOLUA_RELEASE
  222. tolua_lerror:
  223. tolua_error(tolua_S,"#ferror in function 'getOwnerCallbackNodes'.",&tolua_err);
  224. return 0;
  225. #endif
  226. }
  227. #endif //#ifndef TOLUA_DISABLE
  228. /* method: getCCBRootPath of class CCBReader */
  229. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBReader_getCCBRootPath00
  230. static int tolua_Cocos2d_CCBReader_getCCBRootPath00(lua_State* tolua_S)
  231. {
  232. #ifndef TOLUA_RELEASE
  233. tolua_Error tolua_err;
  234. if (
  235. !tolua_isusertype(tolua_S,1,"const CCBReader",0,&tolua_err) ||
  236. !tolua_isnoobj(tolua_S,2,&tolua_err)
  237. )
  238. goto tolua_lerror;
  239. else
  240. #endif
  241. {
  242. const CCBReader* self = (const CCBReader*) tolua_tousertype(tolua_S,1,0);
  243. #ifndef TOLUA_RELEASE
  244. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getCCBRootPath'", NULL);
  245. #endif
  246. {
  247. const std::string tolua_ret = (const std::string) self->getCCBRootPath();
  248. tolua_pushcppstring(tolua_S,(const char*)tolua_ret);
  249. }
  250. }
  251. return 1;
  252. #ifndef TOLUA_RELEASE
  253. tolua_lerror:
  254. tolua_error(tolua_S,"#ferror in function 'getCCBRootPath'.",&tolua_err);
  255. return 0;
  256. #endif
  257. }
  258. #endif //#ifndef TOLUA_DISABLE
  259. /* method: getOwnerOutletNodes of class CCBReader */
  260. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBReader_getOwnerOutletNodes00
  261. static int tolua_Cocos2d_CCBReader_getOwnerOutletNodes00(lua_State* tolua_S)
  262. {
  263. #ifndef TOLUA_RELEASE
  264. tolua_Error tolua_err;
  265. if (
  266. !tolua_isusertype(tolua_S,1,"CCBReader",0,&tolua_err) ||
  267. !tolua_isnoobj(tolua_S,2,&tolua_err)
  268. )
  269. goto tolua_lerror;
  270. else
  271. #endif
  272. {
  273. CCBReader* self = (CCBReader*) tolua_tousertype(tolua_S,1,0);
  274. #ifndef TOLUA_RELEASE
  275. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getOwnerOutletNodes'", NULL);
  276. #endif
  277. {
  278. CCArray* tolua_ret = (CCArray*) self->getOwnerOutletNodes();
  279. int nID = (tolua_ret) ? (int)tolua_ret->m_uID : -1;
  280. int* pLuaID = (tolua_ret) ? &tolua_ret->m_nLuaID : NULL;
  281. toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCArray");
  282. }
  283. }
  284. return 1;
  285. #ifndef TOLUA_RELEASE
  286. tolua_lerror:
  287. tolua_error(tolua_S,"#ferror in function 'getOwnerOutletNodes'.",&tolua_err);
  288. return 0;
  289. #endif
  290. }
  291. #endif //#ifndef TOLUA_DISABLE
  292. /* method: readUTF8 of class CCBReader */
  293. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBReader_readUTF800
  294. static int tolua_Cocos2d_CCBReader_readUTF800(lua_State* tolua_S)
  295. {
  296. #ifndef TOLUA_RELEASE
  297. tolua_Error tolua_err;
  298. if (
  299. !tolua_isusertype(tolua_S,1,"CCBReader",0,&tolua_err) ||
  300. !tolua_isnoobj(tolua_S,2,&tolua_err)
  301. )
  302. goto tolua_lerror;
  303. else
  304. #endif
  305. {
  306. CCBReader* self = (CCBReader*) tolua_tousertype(tolua_S,1,0);
  307. #ifndef TOLUA_RELEASE
  308. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'readUTF8'", NULL);
  309. #endif
  310. {
  311. std::string tolua_ret = (std::string) self->readUTF8();
  312. tolua_pushcppstring(tolua_S,(const char*)tolua_ret);
  313. }
  314. }
  315. return 1;
  316. #ifndef TOLUA_RELEASE
  317. tolua_lerror:
  318. tolua_error(tolua_S,"#ferror in function 'readUTF8'.",&tolua_err);
  319. return 0;
  320. #endif
  321. }
  322. #endif //#ifndef TOLUA_DISABLE
  323. /* method: getOwnerOutletNames of class CCBReader */
  324. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBReader_getOwnerOutletNames00
  325. static int tolua_Cocos2d_CCBReader_getOwnerOutletNames00(lua_State* tolua_S)
  326. {
  327. #ifndef TOLUA_RELEASE
  328. tolua_Error tolua_err;
  329. if (
  330. !tolua_isusertype(tolua_S,1,"CCBReader",0,&tolua_err) ||
  331. !tolua_isnoobj(tolua_S,2,&tolua_err)
  332. )
  333. goto tolua_lerror;
  334. else
  335. #endif
  336. {
  337. CCBReader* self = (CCBReader*) tolua_tousertype(tolua_S,1,0);
  338. #ifndef TOLUA_RELEASE
  339. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getOwnerOutletNames'", NULL);
  340. #endif
  341. {
  342. CCArray* tolua_ret = (CCArray*) self->getOwnerOutletNames();
  343. int nID = (tolua_ret) ? (int)tolua_ret->m_uID : -1;
  344. int* pLuaID = (tolua_ret) ? &tolua_ret->m_nLuaID : NULL;
  345. toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCArray");
  346. }
  347. }
  348. return 1;
  349. #ifndef TOLUA_RELEASE
  350. tolua_lerror:
  351. tolua_error(tolua_S,"#ferror in function 'getOwnerOutletNames'.",&tolua_err);
  352. return 0;
  353. #endif
  354. }
  355. #endif //#ifndef TOLUA_DISABLE
  356. /* method: setAnimationManagers of class CCBReader */
  357. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBReader_setAnimationManagers00
  358. static int tolua_Cocos2d_CCBReader_setAnimationManagers00(lua_State* tolua_S)
  359. {
  360. #ifndef TOLUA_RELEASE
  361. tolua_Error tolua_err;
  362. if (
  363. !tolua_isusertype(tolua_S,1,"CCBReader",0,&tolua_err) ||
  364. !tolua_isusertype(tolua_S,2,"CCDictionary",0,&tolua_err) ||
  365. !tolua_isnoobj(tolua_S,3,&tolua_err)
  366. )
  367. goto tolua_lerror;
  368. else
  369. #endif
  370. {
  371. CCBReader* self = (CCBReader*) tolua_tousertype(tolua_S,1,0);
  372. CCDictionary* x = ((CCDictionary*) tolua_tousertype(tolua_S,2,0));
  373. #ifndef TOLUA_RELEASE
  374. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setAnimationManagers'", NULL);
  375. #endif
  376. {
  377. self->setAnimationManagers(x);
  378. }
  379. }
  380. return 0;
  381. #ifndef TOLUA_RELEASE
  382. tolua_lerror:
  383. tolua_error(tolua_S,"#ferror in function 'setAnimationManagers'.",&tolua_err);
  384. return 0;
  385. #endif
  386. }
  387. #endif //#ifndef TOLUA_DISABLE
  388. /* method: getAnimationManagersForNodes of class CCBReader */
  389. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBReader_getAnimationManagersForNodes00
  390. static int tolua_Cocos2d_CCBReader_getAnimationManagersForNodes00(lua_State* tolua_S)
  391. {
  392. #ifndef TOLUA_RELEASE
  393. tolua_Error tolua_err;
  394. if (
  395. !tolua_isusertype(tolua_S,1,"CCBReader",0,&tolua_err) ||
  396. !tolua_isnoobj(tolua_S,2,&tolua_err)
  397. )
  398. goto tolua_lerror;
  399. else
  400. #endif
  401. {
  402. CCBReader* self = (CCBReader*) tolua_tousertype(tolua_S,1,0);
  403. #ifndef TOLUA_RELEASE
  404. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getAnimationManagersForNodes'", NULL);
  405. #endif
  406. {
  407. CCArray* tolua_ret = (CCArray*) self->getAnimationManagersForNodes();
  408. int nID = (tolua_ret) ? (int)tolua_ret->m_uID : -1;
  409. int* pLuaID = (tolua_ret) ? &tolua_ret->m_nLuaID : NULL;
  410. toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCArray");
  411. }
  412. }
  413. return 1;
  414. #ifndef TOLUA_RELEASE
  415. tolua_lerror:
  416. tolua_error(tolua_S,"#ferror in function 'getAnimationManagersForNodes'.",&tolua_err);
  417. return 0;
  418. #endif
  419. }
  420. #endif //#ifndef TOLUA_DISABLE
  421. /* method: getNodesWithAnimationManagers of class CCBReader */
  422. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBReader_getNodesWithAnimationManagers00
  423. static int tolua_Cocos2d_CCBReader_getNodesWithAnimationManagers00(lua_State* tolua_S)
  424. {
  425. #ifndef TOLUA_RELEASE
  426. tolua_Error tolua_err;
  427. if (
  428. !tolua_isusertype(tolua_S,1,"CCBReader",0,&tolua_err) ||
  429. !tolua_isnoobj(tolua_S,2,&tolua_err)
  430. )
  431. goto tolua_lerror;
  432. else
  433. #endif
  434. {
  435. CCBReader* self = (CCBReader*) tolua_tousertype(tolua_S,1,0);
  436. #ifndef TOLUA_RELEASE
  437. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getNodesWithAnimationManagers'", NULL);
  438. #endif
  439. {
  440. CCArray* tolua_ret = (CCArray*) self->getNodesWithAnimationManagers();
  441. int nID = (tolua_ret) ? (int)tolua_ret->m_uID : -1;
  442. int* pLuaID = (tolua_ret) ? &tolua_ret->m_nLuaID : NULL;
  443. toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCArray");
  444. }
  445. }
  446. return 1;
  447. #ifndef TOLUA_RELEASE
  448. tolua_lerror:
  449. tolua_error(tolua_S,"#ferror in function 'getNodesWithAnimationManagers'.",&tolua_err);
  450. return 0;
  451. #endif
  452. }
  453. #endif //#ifndef TOLUA_DISABLE
  454. /* method: getAnimationManager of class CCBReader */
  455. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBReader_getAnimationManager00
  456. static int tolua_Cocos2d_CCBReader_getAnimationManager00(lua_State* tolua_S)
  457. {
  458. #ifndef TOLUA_RELEASE
  459. tolua_Error tolua_err;
  460. if (
  461. !tolua_isusertype(tolua_S,1,"CCBReader",0,&tolua_err) ||
  462. !tolua_isnoobj(tolua_S,2,&tolua_err)
  463. )
  464. goto tolua_lerror;
  465. else
  466. #endif
  467. {
  468. CCBReader* self = (CCBReader*) tolua_tousertype(tolua_S,1,0);
  469. #ifndef TOLUA_RELEASE
  470. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getAnimationManager'", NULL);
  471. #endif
  472. {
  473. CCBAnimationManager* tolua_ret = (CCBAnimationManager*) self->getAnimationManager();
  474. int nID = (tolua_ret) ? (int)tolua_ret->m_uID : -1;
  475. int* pLuaID = (tolua_ret) ? &tolua_ret->m_nLuaID : NULL;
  476. toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCBAnimationManager");
  477. }
  478. }
  479. return 1;
  480. #ifndef TOLUA_RELEASE
  481. tolua_lerror:
  482. tolua_error(tolua_S,"#ferror in function 'getAnimationManager'.",&tolua_err);
  483. return 0;
  484. #endif
  485. }
  486. #endif //#ifndef TOLUA_DISABLE
  487. /* method: setResolutionScale of class CCBReader */
  488. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBReader_setResolutionScale00
  489. static int tolua_Cocos2d_CCBReader_setResolutionScale00(lua_State* tolua_S)
  490. {
  491. #ifndef TOLUA_RELEASE
  492. tolua_Error tolua_err;
  493. if (
  494. !tolua_isusertable(tolua_S,1,"CCBReader",0,&tolua_err) ||
  495. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  496. !tolua_isnoobj(tolua_S,3,&tolua_err)
  497. )
  498. goto tolua_lerror;
  499. else
  500. #endif
  501. {
  502. float scale = ((float) tolua_tonumber(tolua_S,2,0));
  503. {
  504. CCBReader::setResolutionScale(scale);
  505. }
  506. }
  507. return 0;
  508. #ifndef TOLUA_RELEASE
  509. tolua_lerror:
  510. tolua_error(tolua_S,"#ferror in function 'setResolutionScale'.",&tolua_err);
  511. return 0;
  512. #endif
  513. }
  514. #endif //#ifndef TOLUA_DISABLE
  515. /* method: new of class CCBReader */
  516. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBReader_new01
  517. static int tolua_Cocos2d_CCBReader_new01(lua_State* tolua_S)
  518. {
  519. tolua_Error tolua_err;
  520. if (
  521. !tolua_isusertable(tolua_S,1,"CCBReader",0,&tolua_err) ||
  522. !tolua_isnoobj(tolua_S,2,&tolua_err)
  523. )
  524. goto tolua_lerror;
  525. else
  526. {
  527. {
  528. CCBReader* tolua_ret = (CCBReader*) Mtolua_new((CCBReader)());
  529. int nID = (tolua_ret) ? (int)tolua_ret->m_uID : -1;
  530. int* pLuaID = (tolua_ret) ? &tolua_ret->m_nLuaID : NULL;
  531. toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCBReader");
  532. }
  533. }
  534. return 1;
  535. tolua_lerror:
  536. return tolua_Cocos2d_CCBReader_new00(tolua_S);
  537. }
  538. #endif //#ifndef TOLUA_DISABLE
  539. /* method: new_local of class CCBReader */
  540. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBReader_new01_local
  541. static int tolua_Cocos2d_CCBReader_new01_local(lua_State* tolua_S)
  542. {
  543. tolua_Error tolua_err;
  544. if (
  545. !tolua_isusertable(tolua_S,1,"CCBReader",0,&tolua_err) ||
  546. !tolua_isnoobj(tolua_S,2,&tolua_err)
  547. )
  548. goto tolua_lerror;
  549. else
  550. {
  551. {
  552. CCBReader* tolua_ret = (CCBReader*) Mtolua_new((CCBReader)());
  553. int nID = (tolua_ret) ? (int)tolua_ret->m_uID : -1;
  554. int* pLuaID = (tolua_ret) ? &tolua_ret->m_nLuaID : NULL;
  555. toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCBReader");
  556. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  557. }
  558. }
  559. return 1;
  560. tolua_lerror:
  561. return tolua_Cocos2d_CCBReader_new00_local(tolua_S);
  562. }
  563. #endif //#ifndef TOLUA_DISABLE
  564. /* method: getOwner of class CCBReader */
  565. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBReader_getAnimationManager00
  566. static int tolua_Cocos2d_ccbreader_getOwner00(lua_State* tolua_S)
  567. {
  568. #ifndef TOLUA_RELEASE
  569. tolua_Error tolua_err;
  570. if (
  571. !tolua_isusertype(tolua_S,1,"CCBReader",0,&tolua_err) ||
  572. !tolua_isnoobj(tolua_S,2,&tolua_err)
  573. )
  574. goto tolua_lerror;
  575. else
  576. #endif
  577. {
  578. CCBReader* self = (CCBReader*) tolua_tousertype(tolua_S,1,0);
  579. #ifndef TOLUA_RELEASE
  580. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getOwner'", NULL);
  581. #endif
  582. {
  583. CCObject* tolua_ret = (CCObject*)self->getOwner();
  584. int nID = (tolua_ret) ? (int)tolua_ret->m_uID : -1;
  585. int* pLuaID = (tolua_ret) ? &tolua_ret->m_nLuaID : NULL;
  586. toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCObject");
  587. }
  588. }
  589. return 1;
  590. #ifndef TOLUA_RELEASE
  591. tolua_lerror:
  592. tolua_error(tolua_S,"#ferror in function 'getOwner'.",&tolua_err);
  593. return 0;
  594. #endif
  595. }
  596. #endif//#ifndef TOLUA_DISABLE
  597. /* method: new of class CCBAnimationManager */
  598. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_new00
  599. static int tolua_Cocos2d_CCBAnimationManager_new00(lua_State* tolua_S)
  600. {
  601. #ifndef TOLUA_RELEASE
  602. tolua_Error tolua_err;
  603. if (
  604. !tolua_isusertable(tolua_S,1,"CCBAnimationManager",0,&tolua_err) ||
  605. !tolua_isnoobj(tolua_S,2,&tolua_err)
  606. )
  607. goto tolua_lerror;
  608. else
  609. #endif
  610. {
  611. {
  612. CCBAnimationManager* tolua_ret = (CCBAnimationManager*) Mtolua_new((CCBAnimationManager)());
  613. int nID = (tolua_ret) ? (int)tolua_ret->m_uID : -1;
  614. int* pLuaID = (tolua_ret) ? &tolua_ret->m_nLuaID : NULL;
  615. toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCBAnimationManager");
  616. }
  617. }
  618. return 1;
  619. #ifndef TOLUA_RELEASE
  620. tolua_lerror:
  621. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  622. return 0;
  623. #endif
  624. }
  625. #endif //#ifndef TOLUA_DISABLE
  626. /* method: new_local of class CCBAnimationManager */
  627. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_new00_local
  628. static int tolua_Cocos2d_CCBAnimationManager_new00_local(lua_State* tolua_S)
  629. {
  630. #ifndef TOLUA_RELEASE
  631. tolua_Error tolua_err;
  632. if (
  633. !tolua_isusertable(tolua_S,1,"CCBAnimationManager",0,&tolua_err) ||
  634. !tolua_isnoobj(tolua_S,2,&tolua_err)
  635. )
  636. goto tolua_lerror;
  637. else
  638. #endif
  639. {
  640. {
  641. CCBAnimationManager* tolua_ret = (CCBAnimationManager*) Mtolua_new((CCBAnimationManager)());
  642. int nID = (tolua_ret) ? (int)tolua_ret->m_uID : -1;
  643. int* pLuaID = (tolua_ret) ? &tolua_ret->m_nLuaID : NULL;
  644. toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCBAnimationManager");
  645. tolua_register_gc(tolua_S,lua_gettop(tolua_S));
  646. }
  647. }
  648. return 1;
  649. #ifndef TOLUA_RELEASE
  650. tolua_lerror:
  651. tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
  652. return 0;
  653. #endif
  654. }
  655. #endif //#ifndef TOLUA_DISABLE
  656. /* method: delete of class CCBAnimationManager */
  657. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_delete00
  658. static int tolua_Cocos2d_CCBAnimationManager_delete00(lua_State* tolua_S)
  659. {
  660. #ifndef TOLUA_RELEASE
  661. tolua_Error tolua_err;
  662. if (
  663. !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) ||
  664. !tolua_isnoobj(tolua_S,2,&tolua_err)
  665. )
  666. goto tolua_lerror;
  667. else
  668. #endif
  669. {
  670. CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0);
  671. #ifndef TOLUA_RELEASE
  672. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'delete'", NULL);
  673. #endif
  674. Mtolua_delete(self);
  675. }
  676. return 0;
  677. #ifndef TOLUA_RELEASE
  678. tolua_lerror:
  679. tolua_error(tolua_S,"#ferror in function 'delete'.",&tolua_err);
  680. return 0;
  681. #endif
  682. }
  683. #endif //#ifndef TOLUA_DISABLE
  684. /* method: moveAnimationsFromNode of class CCBAnimationManager */
  685. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_moveAnimationsFromNode00
  686. static int tolua_Cocos2d_CCBAnimationManager_moveAnimationsFromNode00(lua_State* tolua_S)
  687. {
  688. #ifndef TOLUA_RELEASE
  689. tolua_Error tolua_err;
  690. if (
  691. !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) ||
  692. !tolua_isusertype(tolua_S,2,"CCNode",0,&tolua_err) ||
  693. !tolua_isusertype(tolua_S,3,"CCNode",0,&tolua_err) ||
  694. !tolua_isnoobj(tolua_S,4,&tolua_err)
  695. )
  696. goto tolua_lerror;
  697. else
  698. #endif
  699. {
  700. CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0);
  701. CCNode* fromNode = ((CCNode*) tolua_tousertype(tolua_S,2,0));
  702. CCNode* toNode = ((CCNode*) tolua_tousertype(tolua_S,3,0));
  703. #ifndef TOLUA_RELEASE
  704. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'moveAnimationsFromNode'", NULL);
  705. #endif
  706. {
  707. self->moveAnimationsFromNode(fromNode,toNode);
  708. }
  709. }
  710. return 0;
  711. #ifndef TOLUA_RELEASE
  712. tolua_lerror:
  713. tolua_error(tolua_S,"#ferror in function 'moveAnimationsFromNode'.",&tolua_err);
  714. return 0;
  715. #endif
  716. }
  717. #endif //#ifndef TOLUA_DISABLE
  718. /* method: setAutoPlaySequenceId of class CCBAnimationManager */
  719. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_setAutoPlaySequenceId00
  720. static int tolua_Cocos2d_CCBAnimationManager_setAutoPlaySequenceId00(lua_State* tolua_S)
  721. {
  722. #ifndef TOLUA_RELEASE
  723. tolua_Error tolua_err;
  724. if (
  725. !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) ||
  726. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  727. !tolua_isnoobj(tolua_S,3,&tolua_err)
  728. )
  729. goto tolua_lerror;
  730. else
  731. #endif
  732. {
  733. CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0);
  734. int autoPlaySequenceId = ((int) tolua_tonumber(tolua_S,2,0));
  735. #ifndef TOLUA_RELEASE
  736. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setAutoPlaySequenceId'", NULL);
  737. #endif
  738. {
  739. self->setAutoPlaySequenceId(autoPlaySequenceId);
  740. }
  741. }
  742. return 0;
  743. #ifndef TOLUA_RELEASE
  744. tolua_lerror:
  745. tolua_error(tolua_S,"#ferror in function 'setAutoPlaySequenceId'.",&tolua_err);
  746. return 0;
  747. #endif
  748. }
  749. #endif //#ifndef TOLUA_DISABLE
  750. /* method: getDocumentCallbackNames of class CCBAnimationManager */
  751. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_getDocumentCallbackNames00
  752. static int tolua_Cocos2d_CCBAnimationManager_getDocumentCallbackNames00(lua_State* tolua_S)
  753. {
  754. #ifndef TOLUA_RELEASE
  755. tolua_Error tolua_err;
  756. if (
  757. !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) ||
  758. !tolua_isnoobj(tolua_S,2,&tolua_err)
  759. )
  760. goto tolua_lerror;
  761. else
  762. #endif
  763. {
  764. CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0);
  765. #ifndef TOLUA_RELEASE
  766. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getDocumentCallbackNames'", NULL);
  767. #endif
  768. {
  769. CCArray* tolua_ret = (CCArray*) self->getDocumentCallbackNames();
  770. int nID = (tolua_ret) ? (int)tolua_ret->m_uID : -1;
  771. int* pLuaID = (tolua_ret) ? &tolua_ret->m_nLuaID : NULL;
  772. toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCArray");
  773. }
  774. }
  775. return 1;
  776. #ifndef TOLUA_RELEASE
  777. tolua_lerror:
  778. tolua_error(tolua_S,"#ferror in function 'getDocumentCallbackNames'.",&tolua_err);
  779. return 0;
  780. #endif
  781. }
  782. #endif //#ifndef TOLUA_DISABLE
  783. /* method: setBaseValue of class CCBAnimationManager */
  784. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_setBaseValue00
  785. static int tolua_Cocos2d_CCBAnimationManager_setBaseValue00(lua_State* tolua_S)
  786. {
  787. #ifndef TOLUA_RELEASE
  788. tolua_Error tolua_err;
  789. if (
  790. !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) ||
  791. !tolua_isusertype(tolua_S,2,"CCObject",0,&tolua_err) ||
  792. !tolua_isusertype(tolua_S,3,"CCNode",0,&tolua_err) ||
  793. !tolua_isstring(tolua_S,4,0,&tolua_err) ||
  794. !tolua_isnoobj(tolua_S,5,&tolua_err)
  795. )
  796. goto tolua_lerror;
  797. else
  798. #endif
  799. {
  800. CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0);
  801. CCObject* pValue = ((CCObject*) tolua_tousertype(tolua_S,2,0));
  802. CCNode* pNode = ((CCNode*) tolua_tousertype(tolua_S,3,0));
  803. const char* pPropName = ((const char*) tolua_tostring(tolua_S,4,0));
  804. #ifndef TOLUA_RELEASE
  805. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setBaseValue'", NULL);
  806. #endif
  807. {
  808. self->setBaseValue(pValue,pNode,pPropName);
  809. }
  810. }
  811. return 0;
  812. #ifndef TOLUA_RELEASE
  813. tolua_lerror:
  814. tolua_error(tolua_S,"#ferror in function 'setBaseValue'.",&tolua_err);
  815. return 0;
  816. #endif
  817. }
  818. #endif //#ifndef TOLUA_DISABLE
  819. /* method: getDocumentOutletNodes of class CCBAnimationManager */
  820. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_getDocumentOutletNodes00
  821. static int tolua_Cocos2d_CCBAnimationManager_getDocumentOutletNodes00(lua_State* tolua_S)
  822. {
  823. #ifndef TOLUA_RELEASE
  824. tolua_Error tolua_err;
  825. if (
  826. !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) ||
  827. !tolua_isnoobj(tolua_S,2,&tolua_err)
  828. )
  829. goto tolua_lerror;
  830. else
  831. #endif
  832. {
  833. CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0);
  834. #ifndef TOLUA_RELEASE
  835. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getDocumentOutletNodes'", NULL);
  836. #endif
  837. {
  838. CCArray* tolua_ret = (CCArray*) self->getDocumentOutletNodes();
  839. int nID = (tolua_ret) ? (int)tolua_ret->m_uID : -1;
  840. int* pLuaID = (tolua_ret) ? &tolua_ret->m_nLuaID : NULL;
  841. toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCArray");
  842. }
  843. }
  844. return 1;
  845. #ifndef TOLUA_RELEASE
  846. tolua_lerror:
  847. tolua_error(tolua_S,"#ferror in function 'getDocumentOutletNodes'.",&tolua_err);
  848. return 0;
  849. #endif
  850. }
  851. #endif //#ifndef TOLUA_DISABLE
  852. /* method: addNode of class CCBAnimationManager */
  853. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_addNode00
  854. static int tolua_Cocos2d_CCBAnimationManager_addNode00(lua_State* tolua_S)
  855. {
  856. #ifndef TOLUA_RELEASE
  857. tolua_Error tolua_err;
  858. if (
  859. !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) ||
  860. !tolua_isusertype(tolua_S,2,"CCNode",0,&tolua_err) ||
  861. !tolua_isusertype(tolua_S,3,"CCDictionary",0,&tolua_err) ||
  862. !tolua_isnoobj(tolua_S,4,&tolua_err)
  863. )
  864. goto tolua_lerror;
  865. else
  866. #endif
  867. {
  868. CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0);
  869. CCNode* pNode = ((CCNode*) tolua_tousertype(tolua_S,2,0));
  870. CCDictionary* pSeq = ((CCDictionary*) tolua_tousertype(tolua_S,3,0));
  871. #ifndef TOLUA_RELEASE
  872. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'addNode'", NULL);
  873. #endif
  874. {
  875. self->addNode(pNode,pSeq);
  876. }
  877. }
  878. return 0;
  879. #ifndef TOLUA_RELEASE
  880. tolua_lerror:
  881. tolua_error(tolua_S,"#ferror in function 'addNode'.",&tolua_err);
  882. return 0;
  883. #endif
  884. }
  885. #endif //#ifndef TOLUA_DISABLE
  886. /* method: getLastCompletedSequenceName of class CCBAnimationManager */
  887. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_getLastCompletedSequenceName00
  888. static int tolua_Cocos2d_CCBAnimationManager_getLastCompletedSequenceName00(lua_State* tolua_S)
  889. {
  890. #ifndef TOLUA_RELEASE
  891. tolua_Error tolua_err;
  892. if (
  893. !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) ||
  894. !tolua_isnoobj(tolua_S,2,&tolua_err)
  895. )
  896. goto tolua_lerror;
  897. else
  898. #endif
  899. {
  900. CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0);
  901. #ifndef TOLUA_RELEASE
  902. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getLastCompletedSequenceName'", NULL);
  903. #endif
  904. {
  905. std::string tolua_ret = (std::string) self->getLastCompletedSequenceName();
  906. tolua_pushcppstring(tolua_S,(const char*)tolua_ret);
  907. }
  908. }
  909. return 1;
  910. #ifndef TOLUA_RELEASE
  911. tolua_lerror:
  912. tolua_error(tolua_S,"#ferror in function 'getLastCompletedSequenceName'.",&tolua_err);
  913. return 0;
  914. #endif
  915. }
  916. #endif //#ifndef TOLUA_DISABLE
  917. /* method: setRootNode of class CCBAnimationManager */
  918. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_setRootNode00
  919. static int tolua_Cocos2d_CCBAnimationManager_setRootNode00(lua_State* tolua_S)
  920. {
  921. #ifndef TOLUA_RELEASE
  922. tolua_Error tolua_err;
  923. if (
  924. !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) ||
  925. !tolua_isusertype(tolua_S,2,"CCNode",0,&tolua_err) ||
  926. !tolua_isnoobj(tolua_S,3,&tolua_err)
  927. )
  928. goto tolua_lerror;
  929. else
  930. #endif
  931. {
  932. CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0);
  933. CCNode* pRootNode = ((CCNode*) tolua_tousertype(tolua_S,2,0));
  934. #ifndef TOLUA_RELEASE
  935. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setRootNode'", NULL);
  936. #endif
  937. {
  938. self->setRootNode(pRootNode);
  939. }
  940. }
  941. return 0;
  942. #ifndef TOLUA_RELEASE
  943. tolua_lerror:
  944. tolua_error(tolua_S,"#ferror in function 'setRootNode'.",&tolua_err);
  945. return 0;
  946. #endif
  947. }
  948. #endif //#ifndef TOLUA_DISABLE
  949. /* method: addDocumentOutletName of class CCBAnimationManager */
  950. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_addDocumentOutletName00
  951. static int tolua_Cocos2d_CCBAnimationManager_addDocumentOutletName00(lua_State* tolua_S)
  952. {
  953. #ifndef TOLUA_RELEASE
  954. tolua_Error tolua_err;
  955. if (
  956. !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) ||
  957. !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
  958. !tolua_isnoobj(tolua_S,3,&tolua_err)
  959. )
  960. goto tolua_lerror;
  961. else
  962. #endif
  963. {
  964. CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0);
  965. std::string name = ((std::string) tolua_tocppstring(tolua_S,2,0));
  966. #ifndef TOLUA_RELEASE
  967. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'addDocumentOutletName'", NULL);
  968. #endif
  969. {
  970. self->addDocumentOutletName(name);
  971. }
  972. }
  973. return 0;
  974. #ifndef TOLUA_RELEASE
  975. tolua_lerror:
  976. tolua_error(tolua_S,"#ferror in function 'addDocumentOutletName'.",&tolua_err);
  977. return 0;
  978. #endif
  979. }
  980. #endif //#ifndef TOLUA_DISABLE
  981. /* method: getSequences of class CCBAnimationManager */
  982. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_getSequences00
  983. static int tolua_Cocos2d_CCBAnimationManager_getSequences00(lua_State* tolua_S)
  984. {
  985. #ifndef TOLUA_RELEASE
  986. tolua_Error tolua_err;
  987. if (
  988. !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) ||
  989. !tolua_isnoobj(tolua_S,2,&tolua_err)
  990. )
  991. goto tolua_lerror;
  992. else
  993. #endif
  994. {
  995. CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0);
  996. #ifndef TOLUA_RELEASE
  997. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getSequences'", NULL);
  998. #endif
  999. {
  1000. CCArray* tolua_ret = (CCArray*) self->getSequences();
  1001. int nID = (tolua_ret) ? (int)tolua_ret->m_uID : -1;
  1002. int* pLuaID = (tolua_ret) ? &tolua_ret->m_nLuaID : NULL;
  1003. toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCArray");
  1004. }
  1005. }
  1006. return 1;
  1007. #ifndef TOLUA_RELEASE
  1008. tolua_lerror:
  1009. tolua_error(tolua_S,"#ferror in function 'getSequences'.",&tolua_err);
  1010. return 0;
  1011. #endif
  1012. }
  1013. #endif //#ifndef TOLUA_DISABLE
  1014. /* method: getRootContainerSize of class CCBAnimationManager */
  1015. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_getRootContainerSize00
  1016. static int tolua_Cocos2d_CCBAnimationManager_getRootContainerSize00(lua_State* tolua_S)
  1017. {
  1018. #ifndef TOLUA_RELEASE
  1019. tolua_Error tolua_err;
  1020. if (
  1021. !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) ||
  1022. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1023. )
  1024. goto tolua_lerror;
  1025. else
  1026. #endif
  1027. {
  1028. CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0);
  1029. #ifndef TOLUA_RELEASE
  1030. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getRootContainerSize'", NULL);
  1031. #endif
  1032. {
  1033. const CCSize& tolua_ret = (const CCSize&) self->getRootContainerSize();
  1034. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const CCSize");
  1035. }
  1036. }
  1037. return 1;
  1038. #ifndef TOLUA_RELEASE
  1039. tolua_lerror:
  1040. tolua_error(tolua_S,"#ferror in function 'getRootContainerSize'.",&tolua_err);
  1041. return 0;
  1042. #endif
  1043. }
  1044. #endif //#ifndef TOLUA_DISABLE
  1045. /* method: setDocumentControllerName of class CCBAnimationManager */
  1046. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_setDocumentControllerName00
  1047. static int tolua_Cocos2d_CCBAnimationManager_setDocumentControllerName00(lua_State* tolua_S)
  1048. {
  1049. #ifndef TOLUA_RELEASE
  1050. tolua_Error tolua_err;
  1051. if (
  1052. !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) ||
  1053. !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
  1054. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1055. )
  1056. goto tolua_lerror;
  1057. else
  1058. #endif
  1059. {
  1060. CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0);
  1061. const std::string name = ((const std::string) tolua_tocppstring(tolua_S,2,0));
  1062. #ifndef TOLUA_RELEASE
  1063. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setDocumentControllerName'", NULL);
  1064. #endif
  1065. {
  1066. self->setDocumentControllerName(name);
  1067. tolua_pushcppstring(tolua_S,(const char*)name);
  1068. }
  1069. }
  1070. return 1;
  1071. #ifndef TOLUA_RELEASE
  1072. tolua_lerror:
  1073. tolua_error(tolua_S,"#ferror in function 'setDocumentControllerName'.",&tolua_err);
  1074. return 0;
  1075. #endif
  1076. }
  1077. #endif //#ifndef TOLUA_DISABLE
  1078. /* method: getContainerSize of class CCBAnimationManager */
  1079. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_getContainerSize00
  1080. static int tolua_Cocos2d_CCBAnimationManager_getContainerSize00(lua_State* tolua_S)
  1081. {
  1082. #ifndef TOLUA_RELEASE
  1083. tolua_Error tolua_err;
  1084. if (
  1085. !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) ||
  1086. !tolua_isusertype(tolua_S,2,"CCNode",0,&tolua_err) ||
  1087. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1088. )
  1089. goto tolua_lerror;
  1090. else
  1091. #endif
  1092. {
  1093. CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0);
  1094. CCNode* pNode = ((CCNode*) tolua_tousertype(tolua_S,2,0));
  1095. #ifndef TOLUA_RELEASE
  1096. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getContainerSize'", NULL);
  1097. #endif
  1098. {
  1099. const CCSize& tolua_ret = (const CCSize&) self->getContainerSize(pNode);
  1100. tolua_pushusertype(tolua_S,(void*)&tolua_ret,"const CCSize");
  1101. }
  1102. }
  1103. return 1;
  1104. #ifndef TOLUA_RELEASE
  1105. tolua_lerror:
  1106. tolua_error(tolua_S,"#ferror in function 'getContainerSize'.",&tolua_err);
  1107. return 0;
  1108. #endif
  1109. }
  1110. #endif //#ifndef TOLUA_DISABLE
  1111. /* method: getDocumentOutletNames of class CCBAnimationManager */
  1112. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_getDocumentOutletNames00
  1113. static int tolua_Cocos2d_CCBAnimationManager_getDocumentOutletNames00(lua_State* tolua_S)
  1114. {
  1115. #ifndef TOLUA_RELEASE
  1116. tolua_Error tolua_err;
  1117. if (
  1118. !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) ||
  1119. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1120. )
  1121. goto tolua_lerror;
  1122. else
  1123. #endif
  1124. {
  1125. CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0);
  1126. #ifndef TOLUA_RELEASE
  1127. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getDocumentOutletNames'", NULL);
  1128. #endif
  1129. {
  1130. CCArray* tolua_ret = (CCArray*) self->getDocumentOutletNames();
  1131. int nID = (tolua_ret) ? (int)tolua_ret->m_uID : -1;
  1132. int* pLuaID = (tolua_ret) ? &tolua_ret->m_nLuaID : NULL;
  1133. toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCArray");
  1134. }
  1135. }
  1136. return 1;
  1137. #ifndef TOLUA_RELEASE
  1138. tolua_lerror:
  1139. tolua_error(tolua_S,"#ferror in function 'getDocumentOutletNames'.",&tolua_err);
  1140. return 0;
  1141. #endif
  1142. }
  1143. #endif //#ifndef TOLUA_DISABLE
  1144. /* method: init of class CCBAnimationManager */
  1145. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_init00
  1146. static int tolua_Cocos2d_CCBAnimationManager_init00(lua_State* tolua_S)
  1147. {
  1148. #ifndef TOLUA_RELEASE
  1149. tolua_Error tolua_err;
  1150. if (
  1151. !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) ||
  1152. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1153. )
  1154. goto tolua_lerror;
  1155. else
  1156. #endif
  1157. {
  1158. CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0);
  1159. #ifndef TOLUA_RELEASE
  1160. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'init'", NULL);
  1161. #endif
  1162. {
  1163. bool tolua_ret = (bool) self->init();
  1164. tolua_pushboolean(tolua_S,(bool)tolua_ret);
  1165. }
  1166. }
  1167. return 1;
  1168. #ifndef TOLUA_RELEASE
  1169. tolua_lerror:
  1170. tolua_error(tolua_S,"#ferror in function 'init'.",&tolua_err);
  1171. return 0;
  1172. #endif
  1173. }
  1174. #endif //#ifndef TOLUA_DISABLE
  1175. /* method: getKeyframeCallbacks of class CCBAnimationManager */
  1176. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_getKeyframeCallbacks00
  1177. static int tolua_Cocos2d_CCBAnimationManager_getKeyframeCallbacks00(lua_State* tolua_S)
  1178. {
  1179. #ifndef TOLUA_RELEASE
  1180. tolua_Error tolua_err;
  1181. if (
  1182. !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) ||
  1183. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1184. )
  1185. goto tolua_lerror;
  1186. else
  1187. #endif
  1188. {
  1189. CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0);
  1190. #ifndef TOLUA_RELEASE
  1191. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getKeyframeCallbacks'", NULL);
  1192. #endif
  1193. {
  1194. CCArray* tolua_ret = (CCArray*) self->getKeyframeCallbacks();
  1195. int nID = (tolua_ret) ? (int)tolua_ret->m_uID : -1;
  1196. int* pLuaID = (tolua_ret) ? &tolua_ret->m_nLuaID : NULL;
  1197. toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCArray");
  1198. }
  1199. }
  1200. return 1;
  1201. #ifndef TOLUA_RELEASE
  1202. tolua_lerror:
  1203. tolua_error(tolua_S,"#ferror in function 'getKeyframeCallbacks'.",&tolua_err);
  1204. return 0;
  1205. #endif
  1206. }
  1207. #endif //#ifndef TOLUA_DISABLE
  1208. /* method: runAnimationsForSequenceNamedTweenDuration of class CCBAnimationManager */
  1209. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_runAnimationsForSequenceNamedTweenDuration00
  1210. static int tolua_Cocos2d_CCBAnimationManager_runAnimationsForSequenceNamedTweenDuration00(lua_State* tolua_S)
  1211. {
  1212. #ifndef TOLUA_RELEASE
  1213. tolua_Error tolua_err;
  1214. if (
  1215. !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) ||
  1216. !tolua_isstring(tolua_S,2,0,&tolua_err) ||
  1217. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  1218. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1219. )
  1220. goto tolua_lerror;
  1221. else
  1222. #endif
  1223. {
  1224. CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0);
  1225. const char* pName = ((const char*) tolua_tostring(tolua_S,2,0));
  1226. float fTweenDuration = ((float) tolua_tonumber(tolua_S,3,0));
  1227. #ifndef TOLUA_RELEASE
  1228. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'runAnimationsForSequenceNamedTweenDuration'", NULL);
  1229. #endif
  1230. {
  1231. self->runAnimationsForSequenceNamedTweenDuration(pName,fTweenDuration);
  1232. }
  1233. }
  1234. return 0;
  1235. #ifndef TOLUA_RELEASE
  1236. tolua_lerror:
  1237. tolua_error(tolua_S,"#ferror in function 'runAnimationsForSequenceNamedTweenDuration'.",&tolua_err);
  1238. return 0;
  1239. #endif
  1240. }
  1241. #endif //#ifndef TOLUA_DISABLE
  1242. /* method: setRootContainerSize of class CCBAnimationManager */
  1243. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_setRootContainerSize00
  1244. static int tolua_Cocos2d_CCBAnimationManager_setRootContainerSize00(lua_State* tolua_S)
  1245. {
  1246. #ifndef TOLUA_RELEASE
  1247. tolua_Error tolua_err;
  1248. if (
  1249. !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) ||
  1250. (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const CCSize",0,&tolua_err)) ||
  1251. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1252. )
  1253. goto tolua_lerror;
  1254. else
  1255. #endif
  1256. {
  1257. CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0);
  1258. const CCSize* rootContainerSize = ((const CCSize*) tolua_tousertype(tolua_S,2,0));
  1259. #ifndef TOLUA_RELEASE
  1260. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'setRootContainerSize'", NULL);
  1261. #endif
  1262. {
  1263. self->setRootContainerSize(*rootContainerSize);
  1264. }
  1265. }
  1266. return 0;
  1267. #ifndef TOLUA_RELEASE
  1268. tolua_lerror:
  1269. tolua_error(tolua_S,"#ferror in function 'setRootContainerSize'.",&tolua_err);
  1270. return 0;
  1271. #endif
  1272. }
  1273. #endif //#ifndef TOLUA_DISABLE
  1274. /* method: runAnimationsForSequenceIdTweenDuration of class CCBAnimationManager */
  1275. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_runAnimationsForSequenceIdTweenDuration00
  1276. static int tolua_Cocos2d_CCBAnimationManager_runAnimationsForSequenceIdTweenDuration00(lua_State* tolua_S)
  1277. {
  1278. #ifndef TOLUA_RELEASE
  1279. tolua_Error tolua_err;
  1280. if (
  1281. !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) ||
  1282. !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
  1283. !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
  1284. !tolua_isnoobj(tolua_S,4,&tolua_err)
  1285. )
  1286. goto tolua_lerror;
  1287. else
  1288. #endif
  1289. {
  1290. CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0);
  1291. int nSeqId = ((int) tolua_tonumber(tolua_S,2,0));
  1292. float fTweenDuraiton = ((float) tolua_tonumber(tolua_S,3,0));
  1293. #ifndef TOLUA_RELEASE
  1294. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'runAnimationsForSequenceIdTweenDuration'", NULL);
  1295. #endif
  1296. {
  1297. self->runAnimationsForSequenceIdTweenDuration(nSeqId,fTweenDuraiton);
  1298. }
  1299. }
  1300. return 0;
  1301. #ifndef TOLUA_RELEASE
  1302. tolua_lerror:
  1303. tolua_error(tolua_S,"#ferror in function 'runAnimationsForSequenceIdTweenDuration'.",&tolua_err);
  1304. return 0;
  1305. #endif
  1306. }
  1307. #endif //#ifndef TOLUA_DISABLE
  1308. /* method: getRunningSequenceName of class CCBAnimationManager */
  1309. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_getRunningSequenceName00
  1310. static int tolua_Cocos2d_CCBAnimationManager_getRunningSequenceName00(lua_State* tolua_S)
  1311. {
  1312. #ifndef TOLUA_RELEASE
  1313. tolua_Error tolua_err;
  1314. if (
  1315. !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) ||
  1316. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1317. )
  1318. goto tolua_lerror;
  1319. else
  1320. #endif
  1321. {
  1322. CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0);
  1323. #ifndef TOLUA_RELEASE
  1324. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getRunningSequenceName'", NULL);
  1325. #endif
  1326. {
  1327. const char* tolua_ret = (const char*) self->getRunningSequenceName();
  1328. tolua_pushstring(tolua_S,(const char*)tolua_ret);
  1329. }
  1330. }
  1331. return 1;
  1332. #ifndef TOLUA_RELEASE
  1333. tolua_lerror:
  1334. tolua_error(tolua_S,"#ferror in function 'getRunningSequenceName'.",&tolua_err);
  1335. return 0;
  1336. #endif
  1337. }
  1338. #endif //#ifndef TOLUA_DISABLE
  1339. /* method: getAutoPlaySequenceId of class CCBAnimationManager */
  1340. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_getAutoPlaySequenceId00
  1341. static int tolua_Cocos2d_CCBAnimationManager_getAutoPlaySequenceId00(lua_State* tolua_S)
  1342. {
  1343. #ifndef TOLUA_RELEASE
  1344. tolua_Error tolua_err;
  1345. if (
  1346. !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) ||
  1347. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1348. )
  1349. goto tolua_lerror;
  1350. else
  1351. #endif
  1352. {
  1353. CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0);
  1354. #ifndef TOLUA_RELEASE
  1355. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getAutoPlaySequenceId'", NULL);
  1356. #endif
  1357. {
  1358. int tolua_ret = (int) self->getAutoPlaySequenceId();
  1359. tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
  1360. }
  1361. }
  1362. return 1;
  1363. #ifndef TOLUA_RELEASE
  1364. tolua_lerror:
  1365. tolua_error(tolua_S,"#ferror in function 'getAutoPlaySequenceId'.",&tolua_err);
  1366. return 0;
  1367. #endif
  1368. }
  1369. #endif //#ifndef TOLUA_DISABLE
  1370. /* method: addDocumentCallbackName of class CCBAnimationManager */
  1371. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_addDocumentCallbackName00
  1372. static int tolua_Cocos2d_CCBAnimationManager_addDocumentCallbackName00(lua_State* tolua_S)
  1373. {
  1374. #ifndef TOLUA_RELEASE
  1375. tolua_Error tolua_err;
  1376. if (
  1377. !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) ||
  1378. !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
  1379. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1380. )
  1381. goto tolua_lerror;
  1382. else
  1383. #endif
  1384. {
  1385. CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0);
  1386. std::string name = ((std::string) tolua_tocppstring(tolua_S,2,0));
  1387. #ifndef TOLUA_RELEASE
  1388. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'addDocumentCallbackName'", NULL);
  1389. #endif
  1390. {
  1391. self->addDocumentCallbackName(name);
  1392. }
  1393. }
  1394. return 0;
  1395. #ifndef TOLUA_RELEASE
  1396. tolua_lerror:
  1397. tolua_error(tolua_S,"#ferror in function 'addDocumentCallbackName'.",&tolua_err);
  1398. return 0;
  1399. #endif
  1400. }
  1401. #endif //#ifndef TOLUA_DISABLE
  1402. /* method: getRootNode of class CCBAnimationManager */
  1403. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_getRootNode00
  1404. static int tolua_Cocos2d_CCBAnimationManager_getRootNode00(lua_State* tolua_S)
  1405. {
  1406. #ifndef TOLUA_RELEASE
  1407. tolua_Error tolua_err;
  1408. if (
  1409. !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) ||
  1410. !tolua_isnoobj(tolua_S,2,&tolua_err)
  1411. )
  1412. goto tolua_lerror;
  1413. else
  1414. #endif
  1415. {
  1416. CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0);
  1417. #ifndef TOLUA_RELEASE
  1418. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'getRootNode'", NULL);
  1419. #endif
  1420. {
  1421. CCNode* tolua_ret = (CCNode*) self->getRootNode();
  1422. int nID = (tolua_ret) ? (int)tolua_ret->m_uID : -1;
  1423. int* pLuaID = (tolua_ret) ? &tolua_ret->m_nLuaID : NULL;
  1424. toluafix_pushusertype_ccobject(tolua_S, nID, pLuaID, (void*)tolua_ret,"CCNode");
  1425. }
  1426. }
  1427. return 1;
  1428. #ifndef TOLUA_RELEASE
  1429. tolua_lerror:
  1430. tolua_error(tolua_S,"#ferror in function 'getRootNode'.",&tolua_err);
  1431. return 0;
  1432. #endif
  1433. }
  1434. #endif //#ifndef TOLUA_DISABLE
  1435. /* method: addDocumentOutletNode of class CCBAnimationManager */
  1436. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_addDocumentOutletNode00
  1437. static int tolua_Cocos2d_CCBAnimationManager_addDocumentOutletNode00(lua_State* tolua_S)
  1438. {
  1439. #ifndef TOLUA_RELEASE
  1440. tolua_Error tolua_err;
  1441. if (
  1442. !tolua_isusertype(tolua_S,1,"CCBAnimationManager",0,&tolua_err) ||
  1443. !tolua_isusertype(tolua_S,2,"CCNode",0,&tolua_err) ||
  1444. !tolua_isnoobj(tolua_S,3,&tolua_err)
  1445. )
  1446. goto tolua_lerror;
  1447. else
  1448. #endif
  1449. {
  1450. CCBAnimationManager* self = (CCBAnimationManager*) tolua_tousertype(tolua_S,1,0);
  1451. CCNode* node = ((CCNode*) tolua_tousertype(tolua_S,2,0));
  1452. #ifndef TOLUA_RELEASE
  1453. if (!self) tolua_error(tolua_S,"invalid 'self' in function 'addDocumentOutletNode'", NULL);
  1454. #endif
  1455. {
  1456. self->addDocumentOutletNode(node);
  1457. }
  1458. }
  1459. return 0;
  1460. #ifndef TOLUA_RELEASE
  1461. tolua_lerror:
  1462. tolua_error(tolua_S,"#ferror in function 'addDocumentOutletNode'.",&tolua_err);
  1463. return 0;
  1464. #endif
  1465. }
  1466. #endif //#ifndef TOLUA_DISABLE
  1467. /* method: addDocumentCallbackNode of class CCBAnimationManager */
  1468. #ifndef TOLUA_DISABLE_tolua_Cocos2d_CCBAnimationManager_addDocum