Esempio n. 1
0
    public void AwardTask(Task task)
    {
        int            taskID     = task.TaskID;
        TaskConfigData configData = ConfigInterface.Instance.TaskConfigHelper.GetTaskData(taskID);

        this.RewardResource(configData.RewardGold, configData.RewardFood, configData.RewardOil, configData.RewardGem, configData.RewardExp);

        AwardTaskRequestParameter request = new AwardTaskRequestParameter();

        request.TaskID      = taskID;
        request.OperateTick = LogicTimer.Instance.GetServerTick();
        CommunicationUtility.Instance.AwardTask(request);

        this.m_TaskModule.AwardTask(task);
    }
 public void AwardTask(AwardTaskRequestParameter parameter)
 {
     this.CommunicateWithServer(parameter.GetHashtableFromParameter(), ClientCommandConsts.AWARD_TASK_COMMAND);
 }