lua/wrappers/game/lua_engine.cpp
/**
	 * @static
	 * Sets the grid size in pixels for the tiles in the game.
	 * @param number size The grid size
	 */
@static
Sets the grid size in pixels for the tiles in the game.
@param number size The grid size
@static Sets the grid size in pixels for the tiles in the game . @param number size The grid size
int Engine_grid_size(lua_State *lua)
	{
		if (lua_gettop(lua) == 0)
		{
			lua_pushnumber(lua, Engine::getEngine()->getGridSize());
			return 1;
		}
		if (lua_isnum(lua, 1))
		{
			Engine::getEngine()->setGridSize(static_cast<float>(lua_tonumber(lua, 1)));
			return 0;
		}
		return LuaState::expectedArgs(lua, "@grid_size", "number size");
	}
int Engine_grid_size ( lua_State * lua ) { if ( lua_gettop ( lua ) == 0 ) { lua_pushnumber ( lua , Engine :: getEngine ( ) -> getGridSize ( ) ) ; return 1 ; } if ( lua_isnum ( lua , 1 ) ) { Engine :: getEngine ( ) -> setGridSize ( static_cast < float > ( lua_tonumber ( lua , 1 ) ) ) ; return 0 ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; }
@static
 Sets the grid size in pixels for the tiles in the game.
@static Sets the grid size in pixels for the tiles in the game .