This code was not tested and breaks in Release builds, reverting to restore
functionality of the nightly. All in-game menus do not work and generating
a world crashes.
This reverts commit a9be52c41a.
25 lines
850 B
C++
25 lines
850 B
C++
#pragma once
|
|
#include "TutorialTask.h"
|
|
|
|
class CraftTask : public TutorialTask
|
|
{
|
|
public:
|
|
CraftTask( int itemId, int auxValue, int quantity,
|
|
Tutorial *tutorial, int descriptionId, bool enablePreCompletion = true, vector<TutorialConstraint *> *inConstraints = NULL,
|
|
bool bShowMinimumTime=false, bool bAllowFade=true, bool m_bTaskReminders=true );
|
|
CraftTask( int *items, int *auxValues, int numItems, int quantity,
|
|
Tutorial *tutorial, int descriptionId, bool enablePreCompletion = true, vector<TutorialConstraint *> *inConstraints = NULL,
|
|
bool bShowMinimumTime=false, bool bAllowFade=true, bool m_bTaskReminders=true );
|
|
|
|
~CraftTask();
|
|
|
|
virtual bool isCompleted() { return bIsCompleted; }
|
|
virtual void onCrafted(shared_ptr<ItemInstance> item);
|
|
|
|
private:
|
|
int *m_items;
|
|
int *m_auxValues;
|
|
int m_numItems;
|
|
int m_quantity;
|
|
int m_count;
|
|
}; |