Files
mcpe/source/World/Dimension.hpp
iProgramInCpp 5884302836 * Change long to TLong.
This allows a potential linux port to become reality much easier.
2023-07-31 21:08:31 +03:00

47 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 "Vec3.hpp"
#include "BiomeSource.hpp"
#include "Level.hpp"
#include "ChunkSource.hpp"
class Level; // if included from Level.hpp
class Dimension
{
public:
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 = nullptr;
BiomeSource* m_pBiomeSource = nullptr;
bool field_C = false;
bool field_D = false;
bool field_E = false;
float field_10[16];
int field_50 = 0;
float m_sunriseColor[4];
};