From 341a8bfde91ae3ec9e37936df377a2aa48472328 Mon Sep 17 00:00:00 2001 From: HungDK <> Date: Mon, 15 Dec 2025 16:17:22 +0700 Subject: [PATCH] Remove duplicate struct --- .../Scripts/Task/TaskTempl.Struct.cs | 56 ------------------- 1 file changed, 56 deletions(-) diff --git a/Assets/PerfectWorld/Scripts/Task/TaskTempl.Struct.cs b/Assets/PerfectWorld/Scripts/Task/TaskTempl.Struct.cs index e5b737752f..9929273a4d 100644 --- a/Assets/PerfectWorld/Scripts/Task/TaskTempl.Struct.cs +++ b/Assets/PerfectWorld/Scripts/Task/TaskTempl.Struct.cs @@ -491,62 +491,6 @@ namespace BrewMonster.Scripts.Task } } - [ StructLayout(LayoutKind.Sequential, Pack = 1)] - public struct TaskFinishCountEntry - { - public ushort TaskId; - public uint FinishCount; - public uint FinishTime; - public uint Unused2; - } - - [ StructLayout(LayoutKind.Sequential, Pack = 1)] - public struct TaskFinishCountList - { - public ushort m_uCount; - - [MarshalAs(UnmanagedType.ByValArray, SizeConst = TaskInterfaceConstants.TASK_FINISH_COUNT_MAX_LEN)] - public TaskFinishCountEntry[] m_aList; - - public TaskFinishCountList(byte[] data) - { - int offset = 0; - m_uCount = BitConverter.ToUInt16(data, offset); - offset += 2; - - m_aList = new TaskFinishCountEntry[TaskInterfaceConstants.TASK_FINISH_COUNT_MAX_LEN]; - int entrySize = Marshal.SizeOf(); - for (int i=0; i < m_uCount; i++) - { - m_aList[i] = GPDataTypeHelper.FromBytes(data[offset..]); - offset += entrySize; - } - } - - public uint Search(uint ulID, uint ulTime) - { - // TODO: Implement logic to search - return 0; - } - - public void ResetAt(uint ulID) - { - // TODO: Implement logic to reset at - } - - public void AddOrUpdate(uint ulID, uint ulFinishTime) - { - - } - - public void RemoveAll() - { - m_uCount = 0; - m_aList = Array.Empty(); - } - - public bool IsValid() { return m_uCount <= TaskInterfaceConstants.TASK_FINISH_COUNT_MAX_LEN; } - }; public struct FnshedTaskEntryOld {