4jcraft/targets/minecraft/client/level/DemoLevel.h

31 lines
702 B
C++

#pragma once
#include <stdint.h>
#include <memory>
#include <string>
#include "minecraft/world/level/Level.h"
class Dimension;
class LevelSettings;
class LevelStorage;
class DemoLevel : public Level {
private:
static const int64_t DEMO_LEVEL_SEED =
0; // 4J - TODO - was "Don't Look Back".hashCode();
static const int DEMO_SPAWN_X = 796;
static const int DEMO_SPAWN_Y = 72;
static const int DEMO_SPAWN_Z = -731;
static LevelSettings DEMO_LEVEL_SETTINGS;
public:
DemoLevel(std::shared_ptr<LevelStorage> levelStorage,
const std::string& levelName);
DemoLevel(Level* level, Dimension* dimension);
protected:
virtual void setInitialSpawn();
};