From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Scripts/XMainClient/ActivityHelpReward.cs | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/ActivityHelpReward.cs (limited to 'Client/Assets/Scripts/XMainClient/ActivityHelpReward.cs') diff --git a/Client/Assets/Scripts/XMainClient/ActivityHelpReward.cs b/Client/Assets/Scripts/XMainClient/ActivityHelpReward.cs new file mode 100644 index 00000000..81d24535 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ActivityHelpReward.cs @@ -0,0 +1,33 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + public class ActivityHelpReward + { + public int index; + + public SuperActivityTask.RowData tableData; + + public uint state; + + public int sort; + + public uint progress; + + public static int Compare(ActivityHelpReward x, ActivityHelpReward y) + { + bool flag = x.sort != y.sort; + int result; + if (flag) + { + result = y.sort - x.sort; + } + else + { + result = x.index - y.index; + } + return result; + } + } +} -- cgit v1.1-26-g67d0