lua/wrappers/game/lua_game_object.cpp
/**
	 * Returns a table of all the passible tile types for this GameObject.
	 * @returns table Table of all the tile types.
	 */
Returns a table of all the passible tile types for this GameObject.
@returns table Table of all the tile types.
Returns a table of all the passible tile types for this GameObject . @returns table Table of all the tile types .
int GameObject_get_passible_types(lua_State *lua, GameObject *obj)
	{
		if (!obj)
		{
			return 0;
		}
		LuaState L(lua);
		L.newTable();
		const GameObject::PassibleTypeList &list = obj->getPassibleTypes();
		for (int i = 0; i < static_cast<int>(list.size()); i++)
		{
			lua_pushinteger(lua, i);
			wrapObject<TileType>(lua, list[i]);
			lua_settable(lua, -3);
		}
		return 1;
	}
int GameObject_get_passible_types ( lua_State * lua , GameObject * obj ) { if ( ! obj ) { return 0 ; } LuaState L ( lua ) ; L . newTable ( ) ; const GameObject :: PassibleTypeList & list = obj -> getPassibleTypes ( ) ; for ( int i = 0 ; i < static_cast < int > ( list . size ( ) ) ; i ++ ) { lua_pushinteger ( lua , i ) ; wrapObject < TileType > ( lua , list [ i ] ) ; lua_settable ( lua , -3 ) ; } return 1 ; }
Returns a table of all the passible tile types for this GameObject.
Returns a table of all the passible tile types for this GameObject .