OLD | NEW |
1 /* | 1 /* |
2 ** Lua binding: extensions | 2 ** Lua binding: extensions |
3 ** Generated automatically by tolua++-1.0.93 on Mon Feb 25 16:44:34 2013. | 3 ** Generated automatically by tolua++-1.0.93 on Fri Mar 8 12:24:32 2013. |
4 */ | 4 */ |
| 5 |
| 6 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 7 // Use of this source code is governed by a BSD-style license that can be |
| 8 // found in the LICENSE file. |
| 9 #ifndef __cplusplus |
| 10 #include "stdlib.h" |
| 11 #endif |
| 12 #include "string.h" |
| 13 |
| 14 #include "tolua++.h" |
| 15 |
| 16 /* Exported function */ |
| 17 TOLUA_API int tolua_extensions_open (lua_State* tolua_S); |
| 18 |
5 #include "LuaCocos2dExtensions.h" | 19 #include "LuaCocos2dExtensions.h" |
6 #include "cocos2d.h" | |
7 #include "CCLuaEngine.h" | |
8 #include "physics_nodes/CCPhysicsSprite.h" | 20 #include "physics_nodes/CCPhysicsSprite.h" |
9 | 21 #include "tolua_fix.h" |
10 USING_NS_CC; | 22 USING_NS_CC; |
11 USING_NS_CC_EXT; | 23 USING_NS_CC_EXT; |
12 | 24 |
13 /* function to register type */ | 25 /* function to register type */ |
14 static void tolua_reg_types (lua_State* tolua_S) | 26 static void tolua_reg_types (lua_State* tolua_S) |
15 { | 27 { |
16 tolua_usertype(tolua_S,"CCTexture2D"); | 28 tolua_usertype(tolua_S,"CCTexture2D"); |
17 tolua_usertype(tolua_S,"CCSprite"); | 29 tolua_usertype(tolua_S,"CCSprite"); |
18 tolua_usertype(tolua_S,"CCPhysicsSprite"); | 30 tolua_usertype(tolua_S,"CCPhysicsSprite"); |
19 tolua_usertype(tolua_S,"b2Body"); | 31 tolua_usertype(tolua_S,"b2Body"); |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 return 1; | 399 return 1; |
388 } | 400 } |
389 | 401 |
390 | 402 |
391 #if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501 | 403 #if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501 |
392 TOLUA_API int luaopen_extensions (lua_State* tolua_S) { | 404 TOLUA_API int luaopen_extensions (lua_State* tolua_S) { |
393 return tolua_extensions_open(tolua_S); | 405 return tolua_extensions_open(tolua_S); |
394 }; | 406 }; |
395 #endif | 407 #endif |
396 | 408 |
OLD | NEW |