2026-03-01 12:16:08 +08:00
|
|
|
#pragma once
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
|
|
#include "GameRuleDefinition.h"
|
|
|
|
|
#include "..\..\..\Minecraft.World\StructureFeature.h"
|
|
|
|
|
|
|
|
|
|
class StartFeature : public GameRuleDefinition
|
|
|
|
|
{
|
|
|
|
|
private:
|
2026-03-03 03:04:10 +08:00
|
|
|
int m_chunkX, m_chunkZ, m_orientation;
|
2026-03-01 12:16:08 +08:00
|
|
|
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 wstring &attributeName, const wstring &attributeValue);
|
|
|
|
|
|
2026-03-03 03:04:10 +08:00
|
|
|
bool isFeatureChunk(int chunkX, int chunkZ, StructureFeature::EFeatureTypes feature, int *orientation);
|
2026-03-01 12:16:08 +08:00
|
|
|
};
|