From 09bc892c7283df8757a07b646d5af21ddaa263d1 Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期四, 06 十一月 2025 18:22:34 +0800
Subject: [PATCH] 164 天子的考验-客户端
---
Main/System/KnapSack/BackpackData.cs | 92 +++++++++++++++-------------------------------
1 files changed, 30 insertions(+), 62 deletions(-)
diff --git a/Main/System/KnapSack/BackpackData.cs b/Main/System/KnapSack/BackpackData.cs
index 20015b7..5dac9ab 100644
--- a/Main/System/KnapSack/BackpackData.cs
+++ b/Main/System/KnapSack/BackpackData.cs
@@ -6,69 +6,37 @@
using System.Collections;
- public struct Item
+public struct Item
+{
+ public int id;
+ public long countEx;
+ public int quality;
+ public int bind; //缁戝畾 鎴栬�� 鎷嶅崠 浜ゆ槗
+
+ public Item(int _id, long _count)
{
- public int id;
- public int count; //鍏煎鏃т唬鐮佷繚鐣�
- public ulong countEx; //鍏煎鏃т唬鐮乧ount锛屽綋鏁伴噺瓒呰繃浜�32浣嶆棤娉曡〃绀烘椂浣跨敤
- public int quality;
- public int bind;
+ this.id = _id;
+ this.quality = 0;
+ this.bind = 0;
+ this.countEx = _count;
+ }
+
- public Item(int _id, ulong _count)
- {
- this.id = _id;
- this.count = (int)_count;
- this.quality = 0;
- this.bind = 0;
- this.countEx = _count;
- }
+ public Item(int _id, long _count, int _quality)
+ {
+ this.id = _id;
+ this.quality = _quality;
+ this.bind = 0;
+ this.countEx = _count;
+ }
- public Item(int _id, ulong _count, int _quality)
- {
- this.id = _id;
- this.count = (int)_count;
- this.quality = _quality;
- this.bind = 0;
- this.countEx = _count;
- }
+ public Item(int _id, long _count, int _bind = 0, int _quality = 0)
+ {
+ this.id = _id;
+ this.quality = _quality;
+ this.bind = _bind;
+ this.countEx = _count;
+ }
- public Item(int _id, ulong _count, int _bind = 0, int _quality = 0)
- {
- this.id = _id;
- this.count = (int)_count;
- this.quality = _quality;
- this.bind = _bind;
- this.countEx = _count;
- }
-
- #region 鏃т唬鐮佸吋瀹� 鏄剧ず鏃犳硶瓒呰繃32浣�
-
- public Item(int _id, int _count)
- {
- this.id = _id;
- this.count = _count;
- this.quality = 0;
- this.bind = 0;
- this.countEx = (ulong)_count;
- }
-
- public Item(int _id, int _count, int _quality)
- {
- this.id = _id;
- this.count = _count;
- this.quality = _quality;
- this.bind = 0;
- this.countEx = (ulong)_count;
- }
-
-
- public Item(int _id, int _count, int _bind = 0, int _quality = 0)
- {
- this.id = _id;
- this.count = _count;
- this.quality = _quality;
- this.bind = _bind;
- this.countEx = (ulong)_count;
- }
- #endregion
- }
\ No newline at end of file
+
+}
\ No newline at end of file
--
Gitblit v1.8.0