表格相关逻辑修改和组件定义
This commit is contained in:
3
Assets/Scripts/Fishing2/Data/Carrier.meta
Normal file
3
Assets/Scripts/Fishing2/Data/Carrier.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5432d229611d4f8e8fa72a637035bb40
|
||||
timeCreated: 1756044768
|
||||
@@ -1,3 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1258cbf54dfc4d1c906fd83dfa5943be
|
||||
timeCreated: 1755921708
|
||||
3
Assets/Scripts/Fishing2/Data/Map.meta
Normal file
3
Assets/Scripts/Fishing2/Data/Map.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6ce24e5f59f2424faadee3d97e357365
|
||||
timeCreated: 1756049282
|
||||
19
Assets/Scripts/Fishing2/Data/Map/Map.cs
Normal file
19
Assets/Scripts/Fishing2/Data/Map/Map.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using NBC.Entitas;
|
||||
|
||||
namespace NBF.Fishing2
|
||||
{
|
||||
public class Map : Entity
|
||||
{
|
||||
/// <summary>
|
||||
/// 好友房地图
|
||||
/// </summary>
|
||||
public bool IsRoomMap;
|
||||
|
||||
/// <summary>
|
||||
/// 地图中的单位
|
||||
/// </summary>
|
||||
public Dictionary<long, Unit> Units = new Dictionary<long, Unit>();
|
||||
}
|
||||
}
|
||||
3
Assets/Scripts/Fishing2/Data/Map/Map.cs.meta
Normal file
3
Assets/Scripts/Fishing2/Data/Map/Map.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2acb8a2309ee4443a812939b0e02c18f
|
||||
timeCreated: 1756049289
|
||||
3
Assets/Scripts/Fishing2/Data/Unit/Gear/Child.meta
Normal file
3
Assets/Scripts/Fishing2/Data/Unit/Gear/Child.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 629d828f3fc74ce78482025124c31f85
|
||||
timeCreated: 1756047176
|
||||
@@ -0,0 +1,9 @@
|
||||
using NBC.Entitas;
|
||||
|
||||
namespace NBF.Fishing2
|
||||
{
|
||||
public class GearBaitComponent : Entity
|
||||
{
|
||||
public int ConfigId;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ee9d5fa0951c490fafb108bfb3e1d496
|
||||
timeCreated: 1756047193
|
||||
@@ -0,0 +1,9 @@
|
||||
using NBC.Entitas;
|
||||
|
||||
namespace NBF.Fishing2
|
||||
{
|
||||
public class GearBobberComponent : Entity
|
||||
{
|
||||
public int ConfigId;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3f772262a6ee45ebaa276d716c191ddd
|
||||
timeCreated: 1756047151
|
||||
@@ -0,0 +1,9 @@
|
||||
using NBC.Entitas;
|
||||
|
||||
namespace NBF.Fishing2
|
||||
{
|
||||
public class GearHookComponent : Entity
|
||||
{
|
||||
public int ConfigId;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 601122a982d048789ee9131376c72158
|
||||
timeCreated: 1756047164
|
||||
@@ -0,0 +1,9 @@
|
||||
using NBC.Entitas;
|
||||
|
||||
namespace NBF.Fishing2
|
||||
{
|
||||
public class GearLineComponent : Entity
|
||||
{
|
||||
public int ConfigId;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3e1209cd4f4242c2af9fbfbbb7480f6b
|
||||
timeCreated: 1756047232
|
||||
@@ -0,0 +1,9 @@
|
||||
using NBC.Entitas;
|
||||
|
||||
namespace NBF.Fishing2
|
||||
{
|
||||
public class GearLureComponent : Entity
|
||||
{
|
||||
public int ConfigId;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5537f49777ef40f0adeb36bb7687356d
|
||||
timeCreated: 1756047207
|
||||
@@ -0,0 +1,9 @@
|
||||
using NBC.Entitas;
|
||||
|
||||
namespace NBF.Fishing2
|
||||
{
|
||||
public class GearReelComponent : Entity
|
||||
{
|
||||
public int ConfigId;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 60c6ee2c8c084dd29267b0653a1a239d
|
||||
timeCreated: 1756047139
|
||||
@@ -0,0 +1,9 @@
|
||||
using NBC.Entitas;
|
||||
|
||||
namespace NBF.Fishing2
|
||||
{
|
||||
public class GearRodComponent : Entity
|
||||
{
|
||||
public int ConfigId;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8a353dda940c4dd9bddcf7420d1c2108
|
||||
timeCreated: 1756047099
|
||||
@@ -0,0 +1,9 @@
|
||||
using NBC.Entitas;
|
||||
|
||||
namespace NBF.Fishing2
|
||||
{
|
||||
public class GearWeightComponent : Entity
|
||||
{
|
||||
public int ConfigId;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 82411b517dd84b9ca7839a4ddb486a66
|
||||
timeCreated: 1756047222
|
||||
@@ -17,12 +17,7 @@ namespace NBF.Fishing2
|
||||
/// 旋转速度
|
||||
/// </summary>
|
||||
public float ReelSpeed { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 打开手电筒
|
||||
/// </summary>
|
||||
public bool OpenLight { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 鱼竿设置
|
||||
/// </summary>
|
||||
3
Assets/Scripts/Fishing2/Data/Unit/Parts.meta
Normal file
3
Assets/Scripts/Fishing2/Data/Unit/Parts.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f63b5a4df9be4d1c839c3c1cc56c1275
|
||||
timeCreated: 1756048419
|
||||
@@ -0,0 +1,15 @@
|
||||
using NBC.Entitas;
|
||||
|
||||
namespace NBF.Fishing2
|
||||
{
|
||||
/// <summary>
|
||||
/// 手电筒组件
|
||||
/// </summary>
|
||||
public class UnitFlashlightComponent : Entity
|
||||
{
|
||||
/// <summary>
|
||||
/// 打开手电筒
|
||||
/// </summary>
|
||||
public bool OpenLight { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5f151cee0d5f43ff90c3aa013214b1ea
|
||||
timeCreated: 1756048476
|
||||
3
Assets/Scripts/Fishing2/Data/Unit/Skin.meta
Normal file
3
Assets/Scripts/Fishing2/Data/Unit/Skin.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0f655e37e9dd4b5885e127f44e01100d
|
||||
timeCreated: 1756048586
|
||||
11
Assets/Scripts/Fishing2/Data/Unit/Skin/UnitSkinComponent.cs
Normal file
11
Assets/Scripts/Fishing2/Data/Unit/Skin/UnitSkinComponent.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using NBC.Entitas;
|
||||
|
||||
namespace NBF.Fishing2
|
||||
{
|
||||
/// <summary>
|
||||
/// Unity皮肤组件
|
||||
/// </summary>
|
||||
public class UnitSkinComponent : Entity
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 40c5cce71c8443aa82ea4108e72c887b
|
||||
timeCreated: 1756048599
|
||||
@@ -3,6 +3,9 @@ using Unity.Mathematics;
|
||||
|
||||
namespace NBF.Fishing2
|
||||
{
|
||||
/// <summary>
|
||||
/// 单位
|
||||
/// </summary>
|
||||
public class Unit : Entity
|
||||
{
|
||||
public int ConfigId { get; set; } //配置表id
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
namespace NBF.Fishing2
|
||||
{
|
||||
public enum UnitType : byte
|
||||
{
|
||||
/// <summary>
|
||||
/// 玩家
|
||||
/// </summary>
|
||||
Player = 1,
|
||||
|
||||
/// <summary>
|
||||
/// 鱼
|
||||
/// </summary>
|
||||
Fish = 2,
|
||||
|
||||
/// <summary>
|
||||
/// 船
|
||||
/// </summary>
|
||||
Boat = 3,
|
||||
|
||||
/// <summary>
|
||||
/// 车
|
||||
/// </summary>
|
||||
Car = 4,
|
||||
}
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f13efb3457f04307b46bbfc54422cf48
|
||||
timeCreated: 1755915952
|
||||
Reference in New Issue
Block a user