mirror of
https://github.com/celisej567/mcpe.git
synced 2026-01-03 05:49:04 +03:00
48 lines
1.1 KiB
C++
48 lines
1.1 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 "world/phys/Vec3.hpp"
|
|
#include "world/level/levelgen/biome/BiomeSource.hpp"
|
|
#include "world/level/levelgen/chunk/ChunkSource.hpp"
|
|
#include "Level.hpp"
|
|
|
|
class Level; // if included from Level.hpp
|
|
|
|
class Dimension
|
|
{
|
|
public:
|
|
Dimension();
|
|
virtual ~Dimension();
|
|
static Dimension* getNew(int type);
|
|
|
|
virtual Vec3 getFogColor(float, float);
|
|
virtual void init();
|
|
virtual bool mayRespawn();
|
|
virtual bool isValidSpawn(int x, int z);
|
|
|
|
float* getSunriseColor(float, float);
|
|
float getTimeOfDay(TLong, float);
|
|
void init(Level* pLevel);
|
|
void updateLightRamp();
|
|
|
|
ChunkSource* createRandomLevelSource();
|
|
|
|
public:
|
|
Level* m_pLevel;
|
|
BiomeSource* m_pBiomeSource;
|
|
bool field_C;
|
|
bool field_D;
|
|
bool field_E;
|
|
float field_10[16];
|
|
int field_50;
|
|
float m_sunriseColor[4];
|
|
};
|
|
|