mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-25 15:13:36 +00:00
23 lines
669 B
C++
23 lines
669 B
C++
#pragma once
|
|
//using namespace std;
|
|
|
|
#include "GameRuleDefinition.h"
|
|
#include "../../Minecraft.World/WorldGen/Features/StructureFeature.h"
|
|
|
|
class StartFeature : public GameRuleDefinition
|
|
{
|
|
private:
|
|
int m_chunkX, m_chunkZ;
|
|
StructureFeature::EFeatureTypes m_feature;
|
|
|
|
public:
|
|
StartFeature();
|
|
|
|
virtual ConsoleGameRules::EGameRuleType getActionType() { return ConsoleGameRules::eGameRuleType_StartFeature; }
|
|
|
|
virtual void writeAttributes(DataOutputStream *dos, UINT numAttrs);
|
|
virtual void addAttribute(const std::wstring &attributeName, const std::wstring &attributeValue);
|
|
|
|
bool isFeatureChunk(int chunkX, int chunkZ, StructureFeature::EFeatureTypes feature);
|
|
};
|