协议新增
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Fantasy.Entitas;
|
||||
using Fantasy;
|
||||
using Fantasy.Entitas;
|
||||
using Unity.Mathematics;
|
||||
|
||||
namespace NB.Map;
|
||||
@@ -8,6 +9,11 @@ namespace NB.Map;
|
||||
/// </summary>
|
||||
public class MapUnit : Entity
|
||||
{
|
||||
/// <summary>
|
||||
/// 角色基础信息
|
||||
/// </summary>
|
||||
public RoleSimpleInfo Info;
|
||||
|
||||
/// <summary>
|
||||
/// 位置
|
||||
/// </summary>
|
||||
@@ -29,4 +35,9 @@ public class MapUnit : Entity
|
||||
public long RoomId;
|
||||
|
||||
public long GateRouteId;
|
||||
|
||||
/// <summary>
|
||||
/// 钓组信息
|
||||
/// </summary>
|
||||
public List<MapUnitGear> Gears = new List<MapUnitGear>();
|
||||
}
|
||||
42
Entity/Map/Entity/MapUnitGear.cs
Normal file
42
Entity/Map/Entity/MapUnitGear.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
using Fantasy.Entitas;
|
||||
using Unity.Mathematics;
|
||||
|
||||
namespace NB.Map;
|
||||
|
||||
public enum MapGearState
|
||||
{
|
||||
None = 0,
|
||||
Take = 1,
|
||||
Put = 2,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 钓组信息
|
||||
/// </summary>
|
||||
public class MapUnitGear : Entity
|
||||
{
|
||||
/// <summary>
|
||||
/// 杆子
|
||||
/// </summary>
|
||||
public long Rod;
|
||||
|
||||
/// <summary>
|
||||
/// 杆子配件
|
||||
/// </summary>
|
||||
public List<long> Rings = new List<long>();
|
||||
|
||||
/// <summary>
|
||||
/// 杆子状态
|
||||
/// </summary>
|
||||
public MapGearState State;
|
||||
|
||||
/// <summary>
|
||||
/// 位置
|
||||
/// </summary>
|
||||
public float3 Position;
|
||||
|
||||
/// <summary>
|
||||
/// 旋转
|
||||
/// </summary>
|
||||
public float3 Rotation;
|
||||
}
|
||||
Reference in New Issue
Block a user