//------------------------------------------------------------------------- void _init(TaskMgr task_mgr, Entity et, TaskData task_data) { TaskMgr = task_mgr; Entity = et; TaskData = task_data; if (TaskData.task_data == null) { TaskData.task_data = new Dictionary <byte, string>(); } TbDataTask = EbDataMgr.Instance.getData <TbDataTask>(TaskData.task_id); onInit(); }
//------------------------------------------------------------------------- public TaskDialogue(TaskMgr task_mgr, Entity et, TaskData task_data) : base(task_mgr, et, task_data) { }
//------------------------------------------------------------------------- public override TaskBase createTask(TaskData task_data) { var task = new TaskDialogue(TaskMgr, Entity, task_data); return(task); }
//------------------------------------------------------------------------- public TaskCollectItem(TaskMgr task_mgr, Entity et, TaskData task_data) : base(task_mgr, et, task_data) { }
//------------------------------------------------------------------------- public override TaskBase createTask(TaskData task_data) { var task = new TaskCollectItem(TaskMgr, Entity, task_data); return(task); }
//------------------------------------------------------------------------- public TaskKillMonster(TaskMgr task_mgr, Entity et, TaskData task_data) : base(task_mgr, et, task_data) { }
//------------------------------------------------------------------------- public override TaskBase createTask(TaskData task_data) { var task = new TaskKillMonster(TaskMgr, Entity, task_data); return task; }
//------------------------------------------------------------------------- public void clientUpdateTask(TaskData task_data) { TaskData = task_data; }
//------------------------------------------------------------------------- public TaskBase(TaskMgr task_mgr, Entity et, TaskData task_data) { _init(task_mgr, et, task_data); }
//------------------------------------------------------------------------- public abstract TaskBase createTask(TaskData task_data);