Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: nacltoons/bindings/lua_level_layer.cpp

Issue 12579005: [nacltoons] Rename core classes in accordance with doc. (Closed) Base URL: https://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « nacltoons/bindings/lua_level_layer.h ('k') | nacltoons/bindings/lua_physics_layer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: nacltoons/bindings/lua_level_layer.cpp
diff --git a/nacltoons/bindings/lua_physics_layer.cpp b/nacltoons/bindings/lua_level_layer.cpp
similarity index 54%
rename from nacltoons/bindings/lua_physics_layer.cpp
rename to nacltoons/bindings/lua_level_layer.cpp
index a6da64df1746e35ebe30702944f0a9ce7fbf5914..fdc10aaac5fdfef9f68cfc90ebd544075f1ed63e 100644
--- a/nacltoons/bindings/lua_physics_layer.cpp
+++ b/nacltoons/bindings/lua_level_layer.cpp
@@ -1,33 +1,33 @@
/*
-** Lua binding: physics_layer
+** Lua binding: level_layer
** Generated automatically by tolua++-1.0.93 on Mon Feb 25 16:17:52 2013.
*/
-#include "lua_physics_layer.h"
-#include "physics_layer.h"
+#include "lua_level_layer.h"
+#include "level_layer.h"
/* function to register type */
static void tolua_reg_types (lua_State* tolua_S)
{
tolua_usertype(tolua_S,"CCLayerColor");
- tolua_usertype(tolua_S,"PhysicsLayer");
+ tolua_usertype(tolua_S,"LevelLayer");
tolua_usertype(tolua_S,"b2World");
}
-/* method: GetWorld of class PhysicsLayer */
-#ifndef TOLUA_DISABLE_tolua_physics_layer_PhysicsLayer_GetWorld00
-static int tolua_physics_layer_PhysicsLayer_GetWorld00(lua_State* tolua_S)
+/* method: GetWorld of class LevelLayer */
+#ifndef TOLUA_DISABLE_tolua_level_layer_LevelLayer_GetWorld00
+static int tolua_level_layer_LevelLayer_GetWorld00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
tolua_Error tolua_err;
if (
- !tolua_isusertype(tolua_S,1,"PhysicsLayer",0,&tolua_err) ||
+ !tolua_isusertype(tolua_S,1,"LevelLayer",0,&tolua_err) ||
!tolua_isnoobj(tolua_S,2,&tolua_err)
)
goto tolua_lerror;
else
#endif
{
- PhysicsLayer* self = (PhysicsLayer*) tolua_tousertype(tolua_S,1,0);
+ LevelLayer* self = (LevelLayer*) tolua_tousertype(tolua_S,1,0);
#ifndef TOLUA_RELEASE
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetWorld'", NULL);
#endif
@@ -45,21 +45,21 @@ static int tolua_physics_layer_PhysicsLayer_GetWorld00(lua_State* tolua_S)
}
#endif //#ifndef TOLUA_DISABLE
-/* method: GetWorld of class PhysicsLayer */
-#ifndef TOLUA_DISABLE_tolua_physics_layer_PhysicsLayer_LevelComplete00
-static int tolua_physics_layer_PhysicsLayer_LevelComplete00(lua_State* tolua_S)
+/* method: GetWorld of class LevelLayer */
+#ifndef TOLUA_DISABLE_tolua_level_layer_LevelLayer_LevelComplete00
+static int tolua_level_layer_LevelLayer_LevelComplete00(lua_State* tolua_S)
{
#ifndef TOLUA_RELEASE
tolua_Error tolua_err;
if (
- !tolua_isusertype(tolua_S,1,"PhysicsLayer",0,&tolua_err) ||
+ !tolua_isusertype(tolua_S,1,"LevelLayer",0,&tolua_err) ||
!tolua_isnoobj(tolua_S,2,&tolua_err)
)
goto tolua_lerror;
else
#endif
{
- PhysicsLayer* self = (PhysicsLayer*) tolua_tousertype(tolua_S,1,0);
+ LevelLayer* self = (LevelLayer*) tolua_tousertype(tolua_S,1,0);
#ifndef TOLUA_RELEASE
if (!self) tolua_error(tolua_S,"invalid 'self' in function 'GetWorld'", NULL);
#endif
@@ -77,16 +77,16 @@ static int tolua_physics_layer_PhysicsLayer_LevelComplete00(lua_State* tolua_S)
#endif //#ifndef TOLUA_DISABLE
/* Open function */
-TOLUA_API int tolua_physics_layer_open (lua_State* tolua_S)
+TOLUA_API int tolua_level_layer_open (lua_State* tolua_S)
{
tolua_open(tolua_S);
tolua_reg_types(tolua_S);
tolua_module(tolua_S,NULL,0);
tolua_beginmodule(tolua_S,NULL);
- tolua_cclass(tolua_S,"PhysicsLayer","PhysicsLayer","CCLayerColor",NULL);
- tolua_beginmodule(tolua_S,"PhysicsLayer");
- tolua_function(tolua_S,"GetWorld",tolua_physics_layer_PhysicsLayer_GetWorld00);
- tolua_function(tolua_S,"LevelComplete",tolua_physics_layer_PhysicsLayer_LevelComplete00);
+ tolua_cclass(tolua_S,"LevelLayer","LevelLayer","CCLayerColor",NULL);
+ tolua_beginmodule(tolua_S,"LevelLayer");
+ tolua_function(tolua_S,"GetWorld",tolua_level_layer_LevelLayer_GetWorld00);
+ tolua_function(tolua_S,"LevelComplete",tolua_level_layer_LevelLayer_LevelComplete00);
tolua_endmodule(tolua_S);
tolua_endmodule(tolua_S);
return 1;
@@ -94,8 +94,8 @@ TOLUA_API int tolua_physics_layer_open (lua_State* tolua_S)
#if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501
- TOLUA_API int luaopen_physics_layer (lua_State* tolua_S) {
- return tolua_physics_layer_open(tolua_S);
+ TOLUA_API int luaopen_level_layer (lua_State* tolua_S) {
+ return tolua_level_layer_open(tolua_S);
};
#endif
« no previous file with comments | « nacltoons/bindings/lua_level_layer.h ('k') | nacltoons/bindings/lua_physics_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698