<?php

/**
 * 获取驾照等级
 */

namespace Game\Model\Task\Logic;

use Game\Constant\ConstTemplate\TemplateTask;
use Game\Constant\GameConstantDefine;
use Game\Data\TaskData;

class TaskLogicDrivingLicenseLevel extends TaskLogicBase
{
    public function getDefaultValue(TaskData $taskData, array $param)
    {
    }

    public function updateTask(TaskData $taskData, array $param)
    {
        $this->updateTaskSchedule($taskData, $param[GameConstantDefine::EVENT_KEY_NUM]);
        if ($this->checkIsDone($taskData)) {
            $taskData->schedule = $taskData->taskConfig[TemplateTask::Target];
            $taskData->status = TaskData::STATUS_DONE;
        }
    }
}
