the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2
3#include "GameRuleDefinition.h"
4
5class CompoundGameRuleDefinition : public GameRuleDefinition
6{
7protected:
8 vector<GameRuleDefinition *> m_children;
9protected:
10 GameRuleDefinition *m_lastRuleStatusChanged;
11public:
12 CompoundGameRuleDefinition();
13 virtual ~CompoundGameRuleDefinition();
14
15 virtual void getChildren(vector<GameRuleDefinition *> *children);
16 virtual GameRuleDefinition *addChild(ConsoleGameRules::EGameRuleType ruleType);
17
18 virtual void populateGameRule(GameRulesInstance::EGameRulesInstanceType type, GameRule *rule);
19
20 virtual bool onUseTile(GameRule *rule, int tileId, int x, int y, int z);
21 virtual bool onCollectItem(GameRule *rule, shared_ptr<ItemInstance> item);
22 virtual void postProcessPlayer(shared_ptr<Player> player);
23};