增加任务逻辑
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace TcgEngine
|
||||
@@ -208,4 +208,45 @@ namespace TcgEngine
|
||||
public string last_online_time;
|
||||
}
|
||||
|
||||
// 任务相关请求和响应结构
|
||||
[Serializable]
|
||||
public struct TaskDataResponse
|
||||
{
|
||||
public string id;
|
||||
public string name;
|
||||
public string desc;
|
||||
public int condition;
|
||||
public int value1;
|
||||
public string value2;
|
||||
public string value3;
|
||||
public int[] rewardTypes;
|
||||
public int[] rewardNums;
|
||||
public bool isDailyTask;
|
||||
public int durationHours;
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public struct PlayerTaskResponse
|
||||
{
|
||||
public string taskId;
|
||||
public long assignedTime;
|
||||
public long expireTime;
|
||||
public int status;
|
||||
public int progress;
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public struct PlayerTasksResponse
|
||||
{
|
||||
public PlayerTaskResponse[] tasks;
|
||||
public long lastDailyTaskAssigned;
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public struct PlayerTaskSaveRequest
|
||||
{
|
||||
public PlayerTaskResponse[] tasks;
|
||||
public long lastDailyTaskAssigned;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user