From 917d82d3e814a82d8f58d5155723934c3c88b189 Mon Sep 17 00:00:00 2001 From: "Bob.Song" Date: Wed, 24 Dec 2025 18:02:47 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E6=97=A0=E7=94=A8=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Entity/Game/Map/Entity/MapRoom.cs | 2 +- Entity/Game/Map/Entity/MapUnitComponent.cs | 5 --- Entity/Game/Map/Entity/MapUnitGear.cs | 42 ------------------- .../Handler/C2Map_TakeItemRequestHandler.cs | 14 +++---- Hotfix/Game/Map/System/MapUnitSystem.cs | 13 ------ Hotfix/Game/Player/Entity/PlayerSystem.cs | 2 + 6 files changed, 10 insertions(+), 68 deletions(-) delete mode 100644 Entity/Game/Map/Entity/MapUnitGear.cs diff --git a/Entity/Game/Map/Entity/MapRoom.cs b/Entity/Game/Map/Entity/MapRoom.cs index 88e2b0b..1d2408a 100644 --- a/Entity/Game/Map/Entity/MapRoom.cs +++ b/Entity/Game/Map/Entity/MapRoom.cs @@ -26,7 +26,7 @@ public class MapRoom : Entity /// 房间玩家 /// public Dictionary Units = new Dictionary(); - + /// /// 房主 /// diff --git a/Entity/Game/Map/Entity/MapUnitComponent.cs b/Entity/Game/Map/Entity/MapUnitComponent.cs index a8261ae..6ce6049 100644 --- a/Entity/Game/Map/Entity/MapUnitComponent.cs +++ b/Entity/Game/Map/Entity/MapUnitComponent.cs @@ -17,11 +17,6 @@ public class MapUnitComponent : Entity /// 旋转 /// public float3 Rotation; - - /// - /// 钓组信息 - /// - public List Gears = new List(); /// /// 房间Id diff --git a/Entity/Game/Map/Entity/MapUnitGear.cs b/Entity/Game/Map/Entity/MapUnitGear.cs deleted file mode 100644 index bcf7bfd..0000000 --- a/Entity/Game/Map/Entity/MapUnitGear.cs +++ /dev/null @@ -1,42 +0,0 @@ -using Fantasy.Entitas; -using Unity.Mathematics; - -namespace NB.Game; - -public enum MapGearState -{ - None = 0, - Take = 1, - Put = 2, -} - -/// -/// 钓组信息 -/// -public class MapUnitGear : Entity -{ - /// - /// 杆子 - /// - public long Item; - - /// - /// 杆子配件 - /// - public List Rings = new List(); - - /// - /// 杆子状态 - /// - public MapGearState State; - - /// - /// 位置 - /// - public float3 Position; - - /// - /// 旋转 - /// - public float3 Rotation; -} \ No newline at end of file diff --git a/Hotfix/Game/Map/Handler/C2Map_TakeItemRequestHandler.cs b/Hotfix/Game/Map/Handler/C2Map_TakeItemRequestHandler.cs index 3c95820..bccfbcf 100644 --- a/Hotfix/Game/Map/Handler/C2Map_TakeItemRequestHandler.cs +++ b/Hotfix/Game/Map/Handler/C2Map_TakeItemRequestHandler.cs @@ -32,13 +32,13 @@ public class C2Map_TakeItemRequestHandler : RouteRPC t.Item == item.Id); - if (mapItem == null) - { - mapItem = new MapUnitGear(); - mapItem.Item = item.Id; - self.Gears.Add(mapItem); - } - - return mapItem; - } - public static List ToMapUnitInfo(this MapUnitComponent self) { List ret = new List(); diff --git a/Hotfix/Game/Player/Entity/PlayerSystem.cs b/Hotfix/Game/Player/Entity/PlayerSystem.cs index 3361666..44def76 100644 --- a/Hotfix/Game/Player/Entity/PlayerSystem.cs +++ b/Hotfix/Game/Player/Entity/PlayerSystem.cs @@ -82,6 +82,8 @@ public static class PlayerSystem ret.Rotation.x = mapUnit.Rotation.x; ret.Rotation.y = mapUnit.Rotation.y; ret.Rotation.z = mapUnit.Rotation.z; + + // ret.Gears return ret; }