mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-11 20:11:18 +03:00
* Finish level saving.
This commit is contained in:
40
source/World/Storage/ExternalFileLevelStorageSource.hpp
Normal file
40
source/World/Storage/ExternalFileLevelStorageSource.hpp
Normal file
@@ -0,0 +1,40 @@
|
||||
/********************************************************************
|
||||
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>&);
|
||||
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
|
||||
Reference in New Issue
Block a user