mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-29 09:33:37 +00:00
24 lines
596 B
C++
24 lines
596 B
C++
#pragma once
|
|
//using namespace std;
|
|
|
|
#include "GameRuleDefinition.h"
|
|
|
|
class BiomeOverride : public GameRuleDefinition
|
|
{
|
|
private:
|
|
std::uint8_t m_topTile;
|
|
std::uint8_t m_tile;
|
|
int m_biomeId;
|
|
|
|
public:
|
|
BiomeOverride();
|
|
|
|
virtual ConsoleGameRules::EGameRuleType getActionType() { return ConsoleGameRules::eGameRuleType_BiomeOverride; }
|
|
|
|
virtual void writeAttributes(DataOutputStream *dos, UINT numAttrs);
|
|
virtual void addAttribute(const std::wstring &attributeName, const std::wstring &attributeValue);
|
|
|
|
bool isBiome(int id);
|
|
void getTileValues(std::uint8_t &tile, std::uint8_t &topTile);
|
|
};
|