lua/wrappers/game/lua_tile_instance.cpp
/**
	 * Creates a new tile instance with the given tile.
	 *
	 * @param am.tile tile The tile this instance.
	 */
Creates a new tile instance with the given tile.
Creates a new tile instance with the given tile .
int TileInstance_ctor(lua_State *lua)
	{
		int args = lua_gettop(lua);
		if (args == 0)
		{
			TileInstance *inst = new TileInstance();
			wrapObject<TileInstance>(lua, inst);
			return 1;
		}
		else if (args == 1)
		{
			Tile *tile = castUData<Tile>(lua, 1);
			if (tile)
			{
				TileInstance *inst = new TileInstance(tile);
				wrapObject<TileInstance>(lua, inst);
				return 1;
			}
		}
		return LuaState::expectedArgs(lua, "@new", 2, "", "am.tile tile");
	}
int TileInstance_ctor ( lua_State * lua ) { int args = lua_gettop ( lua ) ; if ( args == 0 ) { TileInstance * inst = new TileInstance ( ) ; wrapObject < TileInstance > ( lua , inst ) ; return 1 ; } else if ( args == 1 ) { Tile * tile = castUData < Tile > ( lua , 1 ) ; if ( tile ) { TileInstance * inst = new TileInstance ( tile ) ; wrapObject < TileInstance > ( lua , inst ) ; return 1 ; } } return LuaState :: expectedArgs ( lua , " " , 2 , " " , " " ) ; }
Creates a new tile instance with the given tile.
Creates a new tile instance with the given tile .