mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-27 02:04:11 +00:00
31 lines
879 B
C++
31 lines
879 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
#include "app/common/GameRules/ConsoleGameRulesConstants.h"
|
|
#include "XboxStructureActionPlaceBlock.h"
|
|
|
|
class StructurePiece;
|
|
class Level;
|
|
class BoundingBox;
|
|
class GRFObject;
|
|
|
|
class XboxStructureActionPlaceSpawner : public XboxStructureActionPlaceBlock {
|
|
private:
|
|
std::string 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::string& attributeName,
|
|
const std::string& attributeValue);
|
|
|
|
bool placeSpawnerInLevel(StructurePiece* structure, Level* level,
|
|
BoundingBox* chunkBB);
|
|
}; |