the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 27 lines 753 B view raw
1#pragma once 2using namespace std; 3#include "Tutorial.h" 4#include "TutorialTask.h" 5 6class StateChangeTask : public TutorialTask 7{ 8private: 9 eTutorial_State m_state; 10public: 11 StateChangeTask(eTutorial_State state, 12 Tutorial *tutorial, int descriptionId = -1, bool enablePreCompletion = false, vector<TutorialConstraint *> *inConstraints = NULL, 13 bool bShowMinimumTime=false, bool bAllowFade=true, bool m_bTaskReminders=true ) : 14 TutorialTask(tutorial, descriptionId, enablePreCompletion, inConstraints, bShowMinimumTime, bAllowFade, m_bTaskReminders ), 15 m_state( state ) 16 {} 17 18 virtual bool isCompleted() { return bIsCompleted; } 19 20 virtual void onStateChange(eTutorial_State newState) 21 { 22 if(newState == m_state) 23 { 24 bIsCompleted = true; 25 } 26 } 27};