Fix duplicate and wrong argument
This commit is contained in:
@@ -586,7 +586,8 @@ namespace BrewMonster.Scripts.Task
|
||||
FinishedTaskList pFnsh = GetFinishedTaskList();
|
||||
// TaskFinishTimeList* pFnshTime = static_cast<TaskFinishTimeList*>(GetFinishedTimeList());
|
||||
TaskFinishTimeList pFnshTime = new TaskFinishTimeList(GetFinishedTimeList());
|
||||
TaskFinishCountList pFnshCount = new TaskFinishCountList(GetFinishedCntList());
|
||||
TaskFinishCountList pFnshCount = new TaskFinishCountList();
|
||||
pFnshCount.ReadFromBytes(GetFinishedCntList());
|
||||
ActiveTaskEntry[] pEntries = pLst.m_TaskEntries;
|
||||
ATaskTemplMan pMan = GetTaskTemplMan();
|
||||
|
||||
@@ -1567,6 +1568,17 @@ namespace BrewMonster.Scripts.Task
|
||||
return ret;
|
||||
}
|
||||
|
||||
// 设置存储任务列表缓冲区 // Set storage task list buffer
|
||||
public void SetStorageTaskListBuffer(byte[] data)
|
||||
{
|
||||
if (data == null || m_pStorageTaskListBuf == null) return;
|
||||
int copy = Mathf.Min(data.Length, m_pStorageTaskListBuf.Length);
|
||||
if (copy > 0)
|
||||
{
|
||||
System.Buffer.BlockCopy(data, 0, m_pStorageTaskListBuf, 0, copy);
|
||||
}
|
||||
}
|
||||
|
||||
public uint GetTaskMask()
|
||||
{
|
||||
return 0;
|
||||
@@ -1684,10 +1696,6 @@ namespace BrewMonster.Scripts.Task
|
||||
UnityGameSession.c2s_CmdTaskNotify(pBuf, sz);
|
||||
}
|
||||
|
||||
public byte[] GetFinishedCntList()
|
||||
{
|
||||
return m_pFinishedCountListBuf;
|
||||
}
|
||||
|
||||
#region Emote
|
||||
|
||||
|
||||
Reference in New Issue
Block a user