diff --git a/Assets/Scripts/Fishing2/Unit/Event/SetUnitGearEvent.cs b/Assets/Scripts/Fishing2/Unit/Event/SetUnitGearEvent.cs deleted file mode 100644 index 78610dcf5..000000000 --- a/Assets/Scripts/Fishing2/Unit/Event/SetUnitGearEvent.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace NBF.Fishing2 -{ - public struct UseGearEvent - { - public UnitGearComponent Gear; - } -} \ No newline at end of file diff --git a/Assets/Scripts/Fishing2/Unit/Event/SetUnitGearEvent.cs.meta b/Assets/Scripts/Fishing2/Unit/Event/SetUnitGearEvent.cs.meta deleted file mode 100644 index 30399c07d..000000000 --- a/Assets/Scripts/Fishing2/Unit/Event/SetUnitGearEvent.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 6172898013ee4551afc0686399136d8f -timeCreated: 1765523056 \ No newline at end of file diff --git a/Assets/Scripts/Fishing2/Unit/Gear/Child.meta b/Assets/Scripts/Fishing2/Unit/Gear/Child.meta deleted file mode 100644 index a91a0f6b9..000000000 --- a/Assets/Scripts/Fishing2/Unit/Gear/Child.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 629d828f3fc74ce78482025124c31f85 -timeCreated: 1756047176 \ No newline at end of file diff --git a/Assets/Scripts/Fishing2/Unit/Gear/Child/GearBaitComponent.cs b/Assets/Scripts/Fishing2/Unit/Gear/Child/GearBaitComponent.cs deleted file mode 100644 index 0dbf6c794..000000000 --- a/Assets/Scripts/Fishing2/Unit/Gear/Child/GearBaitComponent.cs +++ /dev/null @@ -1,9 +0,0 @@ -using Fantasy.Entitas; - -namespace NBF.Fishing2 -{ - public class GearBaitComponent : Entity - { - public int ConfigId; - } -} \ No newline at end of file diff --git a/Assets/Scripts/Fishing2/Unit/Gear/Child/GearBaitComponent.cs.meta b/Assets/Scripts/Fishing2/Unit/Gear/Child/GearBaitComponent.cs.meta deleted file mode 100644 index 5f67a8f55..000000000 --- a/Assets/Scripts/Fishing2/Unit/Gear/Child/GearBaitComponent.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: ee9d5fa0951c490fafb108bfb3e1d496 -timeCreated: 1756047193 \ No newline at end of file diff --git a/Assets/Scripts/Fishing2/Unit/Gear/Child/GearBobberComponent.cs b/Assets/Scripts/Fishing2/Unit/Gear/Child/GearBobberComponent.cs deleted file mode 100644 index 8539926c0..000000000 --- a/Assets/Scripts/Fishing2/Unit/Gear/Child/GearBobberComponent.cs +++ /dev/null @@ -1,9 +0,0 @@ -using Fantasy.Entitas; - -namespace NBF.Fishing2 -{ - public class GearBobberComponent : Entity - { - public int ConfigId; - } -} \ No newline at end of file diff --git a/Assets/Scripts/Fishing2/Unit/Gear/Child/GearBobberComponent.cs.meta b/Assets/Scripts/Fishing2/Unit/Gear/Child/GearBobberComponent.cs.meta deleted file mode 100644 index 841872535..000000000 --- a/Assets/Scripts/Fishing2/Unit/Gear/Child/GearBobberComponent.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 3f772262a6ee45ebaa276d716c191ddd -timeCreated: 1756047151 \ No newline at end of file diff --git a/Assets/Scripts/Fishing2/Unit/Gear/Child/GearHookComponent.cs b/Assets/Scripts/Fishing2/Unit/Gear/Child/GearHookComponent.cs deleted file mode 100644 index 4a1ac444c..000000000 --- a/Assets/Scripts/Fishing2/Unit/Gear/Child/GearHookComponent.cs +++ /dev/null @@ -1,9 +0,0 @@ -using Fantasy.Entitas; - -namespace NBF.Fishing2 -{ - public class GearHookComponent : Entity - { - public int ConfigId; - } -} \ No newline at end of file diff --git a/Assets/Scripts/Fishing2/Unit/Gear/Child/GearHookComponent.cs.meta b/Assets/Scripts/Fishing2/Unit/Gear/Child/GearHookComponent.cs.meta deleted file mode 100644 index a63a49e38..000000000 --- a/Assets/Scripts/Fishing2/Unit/Gear/Child/GearHookComponent.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 601122a982d048789ee9131376c72158 -timeCreated: 1756047164 \ No newline at end of file diff --git a/Assets/Scripts/Fishing2/Unit/Gear/Child/GearLineComponent.cs b/Assets/Scripts/Fishing2/Unit/Gear/Child/GearLineComponent.cs deleted file mode 100644 index 992ee75c8..000000000 --- a/Assets/Scripts/Fishing2/Unit/Gear/Child/GearLineComponent.cs +++ /dev/null @@ -1,9 +0,0 @@ -using Fantasy.Entitas; - -namespace NBF.Fishing2 -{ - public class GearLineComponent : Entity - { - public int ConfigId; - } -} \ No newline at end of file diff --git a/Assets/Scripts/Fishing2/Unit/Gear/Child/GearLineComponent.cs.meta b/Assets/Scripts/Fishing2/Unit/Gear/Child/GearLineComponent.cs.meta deleted file mode 100644 index 3b16c473e..000000000 --- a/Assets/Scripts/Fishing2/Unit/Gear/Child/GearLineComponent.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 3e1209cd4f4242c2af9fbfbbb7480f6b -timeCreated: 1756047232 \ No newline at end of file diff --git a/Assets/Scripts/Fishing2/Unit/Gear/Child/GearLureComponent.cs b/Assets/Scripts/Fishing2/Unit/Gear/Child/GearLureComponent.cs deleted file mode 100644 index 1ce51c97b..000000000 --- a/Assets/Scripts/Fishing2/Unit/Gear/Child/GearLureComponent.cs +++ /dev/null @@ -1,9 +0,0 @@ -using Fantasy.Entitas; - -namespace NBF.Fishing2 -{ - public class GearLureComponent : Entity - { - public int ConfigId; - } -} \ No newline at end of file diff --git a/Assets/Scripts/Fishing2/Unit/Gear/Child/GearLureComponent.cs.meta b/Assets/Scripts/Fishing2/Unit/Gear/Child/GearLureComponent.cs.meta deleted file mode 100644 index d85b3f922..000000000 --- a/Assets/Scripts/Fishing2/Unit/Gear/Child/GearLureComponent.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 5537f49777ef40f0adeb36bb7687356d -timeCreated: 1756047207 \ No newline at end of file diff --git a/Assets/Scripts/Fishing2/Unit/Gear/Child/GearReelComponent.cs b/Assets/Scripts/Fishing2/Unit/Gear/Child/GearReelComponent.cs deleted file mode 100644 index 76952571b..000000000 --- a/Assets/Scripts/Fishing2/Unit/Gear/Child/GearReelComponent.cs +++ /dev/null @@ -1,9 +0,0 @@ -using Fantasy.Entitas; - -namespace NBF.Fishing2 -{ - public class GearReelComponent : Entity - { - public int ConfigId; - } -} \ No newline at end of file diff --git a/Assets/Scripts/Fishing2/Unit/Gear/Child/GearReelComponent.cs.meta b/Assets/Scripts/Fishing2/Unit/Gear/Child/GearReelComponent.cs.meta deleted file mode 100644 index 917327a49..000000000 --- a/Assets/Scripts/Fishing2/Unit/Gear/Child/GearReelComponent.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 60c6ee2c8c084dd29267b0653a1a239d -timeCreated: 1756047139 \ No newline at end of file diff --git a/Assets/Scripts/Fishing2/Unit/Gear/Child/GearRodComponent.cs b/Assets/Scripts/Fishing2/Unit/Gear/Child/GearRodComponent.cs deleted file mode 100644 index eab5cf0e8..000000000 --- a/Assets/Scripts/Fishing2/Unit/Gear/Child/GearRodComponent.cs +++ /dev/null @@ -1,9 +0,0 @@ -using Fantasy.Entitas; - -namespace NBF.Fishing2 -{ - public class GearRodComponent : Entity - { - public int ConfigId; - } -} \ No newline at end of file diff --git a/Assets/Scripts/Fishing2/Unit/Gear/Child/GearRodComponent.cs.meta b/Assets/Scripts/Fishing2/Unit/Gear/Child/GearRodComponent.cs.meta deleted file mode 100644 index 322159c93..000000000 --- a/Assets/Scripts/Fishing2/Unit/Gear/Child/GearRodComponent.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 8a353dda940c4dd9bddcf7420d1c2108 -timeCreated: 1756047099 \ No newline at end of file diff --git a/Assets/Scripts/Fishing2/Unit/Gear/Child/GearWeightComponent.cs b/Assets/Scripts/Fishing2/Unit/Gear/Child/GearWeightComponent.cs deleted file mode 100644 index f24f171bf..000000000 --- a/Assets/Scripts/Fishing2/Unit/Gear/Child/GearWeightComponent.cs +++ /dev/null @@ -1,9 +0,0 @@ -using Fantasy.Entitas; - -namespace NBF.Fishing2 -{ - public class GearWeightComponent : Entity - { - public int ConfigId; - } -} \ No newline at end of file diff --git a/Assets/Scripts/Fishing2/Unit/Gear/Child/GearWeightComponent.cs.meta b/Assets/Scripts/Fishing2/Unit/Gear/Child/GearWeightComponent.cs.meta deleted file mode 100644 index dc85f9f67..000000000 --- a/Assets/Scripts/Fishing2/Unit/Gear/Child/GearWeightComponent.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 82411b517dd84b9ca7839a4ddb486a66 -timeCreated: 1756047222 \ No newline at end of file diff --git a/Assets/Scripts/Fishing2/Unit/Gear/MapUnitGear.cs b/Assets/Scripts/Fishing2/Unit/Gear/MapUnitGear.cs new file mode 100644 index 000000000..78f54feea --- /dev/null +++ b/Assets/Scripts/Fishing2/Unit/Gear/MapUnitGear.cs @@ -0,0 +1,16 @@ +using System.Collections.Generic; +using Fantasy.Entitas; + +namespace NBF.Fishing2 +{ + /// + /// 玩家组件 + /// + public class MapUnitGear : Entity + { + /// + /// 绑定的子组件 + /// + public List Binding = new List(); + } +} \ No newline at end of file diff --git a/Assets/Scripts/Fishing2/Unit/Gear/MapUnitGear.cs.meta b/Assets/Scripts/Fishing2/Unit/Gear/MapUnitGear.cs.meta new file mode 100644 index 000000000..9d25b0583 --- /dev/null +++ b/Assets/Scripts/Fishing2/Unit/Gear/MapUnitGear.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 01c5cf0e015042fbae5000cff14bb419 +timeCreated: 1766325287 \ No newline at end of file diff --git a/Assets/Scripts/Fishing2/Unit/Gear/MapUnitGearPart.cs b/Assets/Scripts/Fishing2/Unit/Gear/MapUnitGearPart.cs new file mode 100644 index 000000000..44bb8cdbd --- /dev/null +++ b/Assets/Scripts/Fishing2/Unit/Gear/MapUnitGearPart.cs @@ -0,0 +1,12 @@ +using Fantasy.Entitas; + +namespace NBF.Fishing2 +{ + public class MapUnitGearPart : Entity + { + /// + /// 配置表id + /// + public int ConfigId { get; set; } + } +} \ No newline at end of file diff --git a/Assets/Scripts/Fishing2/Unit/Gear/MapUnitGearPart.cs.meta b/Assets/Scripts/Fishing2/Unit/Gear/MapUnitGearPart.cs.meta new file mode 100644 index 000000000..76305d81b --- /dev/null +++ b/Assets/Scripts/Fishing2/Unit/Gear/MapUnitGearPart.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: a83db5681be745a3b692da5c82496a40 +timeCreated: 1766325663 \ No newline at end of file diff --git a/Assets/Scripts/Fishing2/Unit/Gear/UnitGearComponent.cs b/Assets/Scripts/Fishing2/Unit/Gear/UnitGearComponent.cs deleted file mode 100644 index 735c11dfb..000000000 --- a/Assets/Scripts/Fishing2/Unit/Gear/UnitGearComponent.cs +++ /dev/null @@ -1,31 +0,0 @@ -using NBC; -using Fantasy.Entitas; - -namespace NBF.Fishing2 -{ - /// - /// 钓组组件 - /// - public class UnitGearComponent : Entity - { - /// - /// 线长度 - /// - public float LineLength { get; set; } - - /// - /// 旋转速度 - /// - public float ReelSpeed { get; set; } - - /// - /// 鱼竿设置 - /// - public int RedSetting { get; set; } - - /// - /// 是否拿在手里 - /// - public bool InHand { get; set; } - } -} \ No newline at end of file diff --git a/Assets/Scripts/Fishing2/Unit/Gear/UnitGearComponent.cs.meta b/Assets/Scripts/Fishing2/Unit/Gear/UnitGearComponent.cs.meta deleted file mode 100644 index c121b1132..000000000 --- a/Assets/Scripts/Fishing2/Unit/Gear/UnitGearComponent.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 3c9a70a1145b41e2ad6c57384d7c922c -timeCreated: 1755921173 \ No newline at end of file diff --git a/Assets/Scripts/Fishing2/Unit/MapUnit.cs b/Assets/Scripts/Fishing2/Unit/MapUnit.cs index 9334f41b5..abe94d094 100644 --- a/Assets/Scripts/Fishing2/Unit/MapUnit.cs +++ b/Assets/Scripts/Fishing2/Unit/MapUnit.cs @@ -1,4 +1,5 @@ -using Fantasy; +using System.Collections.Generic; +using Fantasy; using Fantasy.Async; using NBC; using Fantasy.Entitas; @@ -15,6 +16,11 @@ namespace NBF.Fishing2 { public int ConfigId { get; set; } //配置表id + /// + /// 钓组信息 + /// + public List Gears = new List(); + /// /// 是否在地面 ///