feat.支持肉鸽干员技能选择字段

This commit is contained in:
MistEO
2022-03-13 19:19:19 +08:00
parent 92c27fcaa3
commit cd007ee786
23 changed files with 364 additions and 33 deletions

View File

@@ -19,6 +19,9 @@
#include "InfrastTask.h"
#include "RecruitTask.h"
#include "RoguelikeTask.h"
#ifdef ASST_DEBUG
#include "DebugTask.h"
#endif
using namespace asst;
@@ -104,6 +107,11 @@ asst::Assistant::TaskId asst::Assistant::append_task(const std::string& type, co
else if (type == RoguelikeTask::TaskType) {
ptr = std::make_shared<RoguelikeTask>(task_callback, (void*)this);
}
#ifdef ASST_DEBUG
else if (type == DebugTask::TaskType) {
ptr = std::make_shared<DebugTask>(task_callback, (void*)this);
}
#endif
else {
Log.error(__FUNCTION__, "| invalid type:", type);
return 0;