lua/wrappers/game/lua_store.cpp
/**
	 * Removes the given inventory from the store.
	 *
	 * @param am.inventory inventory The inventory to remove.
	 * @returns boolean True if the inventory was successfully removed, false if the inventory was nil or not part of the store.
	 */
Removes the given inventory from the store.
Removes the given inventory from the store .
int Store_remove_inventory(lua_State *lua)
	{
		Store *store = castUData<Store>(lua, 1);
		if (store)
		{
			Inventory *inv = castUData<Inventory>(lua, 2);
			if (inv)
			{
				lua_pushboolean(lua, store->removeStoreInventory(inv));
				return 1;
			}
			return LuaState::expectedArgs(lua, "remove_inventory", "am.inventory inventory");
		}
		return LuaState::expectedContext(lua, "remove_inventory", "am.store");
	}
int Store_remove_inventory ( lua_State * lua ) { Store * store = castUData < Store > ( lua , 1 ) ; if ( store ) { Inventory * inv = castUData < Inventory > ( lua , 2 ) ; if ( inv ) { lua_pushboolean ( lua , store -> removeStoreInventory ( inv ) ) ; return 1 ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Removes the given inventory from the store.
Removes the given inventory from the store .