mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 15:13:37 +00:00
28 lines
799 B
C++
28 lines
799 B
C++
#pragma once
|
|
|
|
#include "CompoundGameRuleDefinition.h"
|
|
|
|
class CompleteAllRuleDefinition : public CompoundGameRuleDefinition {
|
|
private:
|
|
typedef struct _packetData {
|
|
int goal;
|
|
int progress;
|
|
} PacketData;
|
|
|
|
public:
|
|
ConsoleGameRules::EGameRuleType getActionType() {
|
|
return ConsoleGameRules::eGameRuleType_CompleteAllRule;
|
|
}
|
|
|
|
virtual void getChildren(std::vector<GameRuleDefinition*>* children);
|
|
|
|
virtual bool onUseTile(GameRule* rule, int tileId, int x, int y, int z);
|
|
virtual bool onCollectItem(GameRule* rule,
|
|
std::shared_ptr<ItemInstance> item);
|
|
|
|
static std::wstring generateDescriptionString(
|
|
const std::wstring& description, void* data, int dataLength);
|
|
|
|
private:
|
|
void updateStatus(GameRule* rule);
|
|
}; |