mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-25 19:13:37 +00:00
27 lines
699 B
C++
27 lines
699 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,
|
|
unsigned int 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; }
|
|
};
|