mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-07 06:07:46 +00:00
24 lines
590 B
C++
24 lines
590 B
C++
#pragma once
|
|
|
|
#include "GameRuleDefinition.h"
|
|
|
|
class NamedAreaRuleDefinition : public GameRuleDefinition
|
|
{
|
|
private:
|
|
std::wstring m_name;
|
|
AABB *m_area;
|
|
|
|
public:
|
|
NamedAreaRuleDefinition();
|
|
~NamedAreaRuleDefinition();
|
|
|
|
virtual void writeAttributes(DataOutputStream *dos, UINT numAttributes);
|
|
|
|
virtual ConsoleGameRules::EGameRuleType getActionType() { return ConsoleGameRules::eGameRuleType_NamedArea; }
|
|
|
|
virtual void addAttribute(const std::wstring &attributeName, const std::wstring &attributeValue);
|
|
|
|
AABB *getArea() { return m_area; }
|
|
std::wstring getName() { return m_name; }
|
|
};
|