mirror of
https://github.com/celisej567/mcpe.git
synced 2026-01-02 01:48:27 +03:00
* macOS Support & Cleanup * Fix malformed comments in build-wasm.bat * Emscripten Fixes * * Add shebang to the grabsounds.py script Since it was changed from rw- to rwx, I'll add the shebang so that it actually runs properly. * * Re-add the patch_data and readme files. * * Remove sound data. * Fix some more things. * Think it's ready to pull now... --------- Co-authored-by: BrentDaMage <BrentDaMage@users.noreply.github.com> Co-authored-by: iProgramInCpp <iprogramincpp@gmail.com>
41 lines
1.2 KiB
C++
41 lines
1.2 KiB
C++
/********************************************************************
|
|
Minecraft: Pocket Edition - Decompilation Project
|
|
Copyright (C) 2023 iProgramInCpp
|
|
|
|
The following code is licensed under the BSD 1 clause license.
|
|
SPDX-License-Identifier: BSD-1-Clause
|
|
********************************************************************/
|
|
|
|
#pragma once
|
|
|
|
#include <set>
|
|
#include <sstream>
|
|
#include "LevelStorageSource.hpp"
|
|
|
|
#ifndef DEMO
|
|
|
|
class ExternalFileLevelStorageSource : public LevelStorageSource
|
|
{
|
|
public:
|
|
ExternalFileLevelStorageSource(const std::string& path);
|
|
|
|
std::string getName() override;
|
|
LevelStorage* selectLevel(const std::string&, bool) override;
|
|
void getLevelList(std::vector<LevelSummary>&) override;
|
|
void clearAll() override;
|
|
int getDataTagFor(const std::string&) override;
|
|
bool isNewLevelIdAcceptable(const std::string&) override;
|
|
void deleteLevel(const std::string&) override;
|
|
void renameLevel(const std::string&, const std::string&) override;
|
|
bool isConvertible(const std::string&) override;
|
|
bool requiresConversion(const std::string&) override;
|
|
int convertLevel(const std::string&, ProgressListener*) override;
|
|
|
|
void addLevelSummaryIfExists(std::vector<LevelSummary>& vls, const char* name);
|
|
|
|
public:
|
|
std::string m_worldsPath;
|
|
};
|
|
|
|
#endif
|