the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at master 24 lines 714 B view raw
1#pragma once 2using namespace std; 3#include <vector> 4#include "GameRule.h" 5 6class GameRuleDefinition; 7 8// The game rule manager belongs to a player/server or other object, and maintains their current state for each of 9// the rules that apply to them 10class GameRulesInstance : public GameRule 11{ 12public: 13 // These types are used by the GameRuleDefinition to know which rules to add to this GameRulesInstance 14 enum EGameRulesInstanceType 15 { 16 eGameRulesInstanceType_ServerPlayer, 17 eGameRulesInstanceType_Server, 18 eGameRulesInstanceType_Count 19 }; 20 21public: 22 GameRulesInstance(GameRuleDefinition *definition, Connection *connection) : GameRule(definition,connection) {} 23 // Functions for all the hooks should go here 24};