the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 26 lines 693 B view raw
1#pragma once 2 3#include "CompoundGameRuleDefinition.h" 4 5class CompleteAllRuleDefinition : public CompoundGameRuleDefinition 6{ 7private: 8 typedef struct _packetData 9 { 10 int goal; 11 int progress; 12 } PacketData; 13 14public: 15 ConsoleGameRules::EGameRuleType getActionType() { return ConsoleGameRules::eGameRuleType_CompleteAllRule; } 16 17 virtual void getChildren(vector<GameRuleDefinition *> *children); 18 19 virtual bool onUseTile(GameRule *rule, int tileId, int x, int y, int z); 20 virtual bool onCollectItem(GameRule *rule, shared_ptr<ItemInstance> item); 21 22 static wstring generateDescriptionString(const wstring &description, void *data, int dataLength); 23 24private: 25 void updateStatus(GameRule *rule); 26};