mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 20:13:40 +00:00
28 lines
803 B
C++
28 lines
803 B
C++
#pragma once
|
|
|
|
#include "XboxStructureActionPlaceBlock.h"
|
|
|
|
class StructurePiece;
|
|
class Level;
|
|
class BoundingBox;
|
|
class GRFObject;
|
|
|
|
class XboxStructureActionPlaceSpawner : public XboxStructureActionPlaceBlock {
|
|
private:
|
|
std::wstring m_entityId;
|
|
|
|
public:
|
|
XboxStructureActionPlaceSpawner();
|
|
~XboxStructureActionPlaceSpawner();
|
|
|
|
virtual ConsoleGameRules::EGameRuleType getActionType() {
|
|
return ConsoleGameRules::eGameRuleType_PlaceSpawner;
|
|
}
|
|
|
|
virtual void writeAttributes(DataOutputStream* dos, unsigned int numAttrs);
|
|
virtual void addAttribute(const std::wstring& attributeName,
|
|
const std::wstring& attributeValue);
|
|
|
|
bool placeSpawnerInLevel(StructurePiece* structure, Level* level,
|
|
BoundingBox* chunkBB);
|
|
}; |