协议修改
This commit is contained in:
@@ -100,11 +100,9 @@ namespace Fantasy
|
||||
{
|
||||
Rod = default;
|
||||
Rigs.Clear();
|
||||
LineLength = default;
|
||||
ReelSpeed = default;
|
||||
State = default;
|
||||
Position = default;
|
||||
Rotation = default;
|
||||
Propertys.Clear();
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<GearInfo>(this);
|
||||
#endif
|
||||
@@ -114,15 +112,11 @@ namespace Fantasy
|
||||
[ProtoMember(2)]
|
||||
public List<long> Rigs = new List<long>();
|
||||
[ProtoMember(3)]
|
||||
public float LineLength { get; set; }
|
||||
[ProtoMember(4)]
|
||||
public float ReelSpeed { get; set; }
|
||||
[ProtoMember(5)]
|
||||
public int State { get; set; }
|
||||
[ProtoMember(6)]
|
||||
public Vector3Info Position { get; set; }
|
||||
[ProtoMember(7)]
|
||||
[ProtoMember(4)]
|
||||
public Vector3Info Rotation { get; set; }
|
||||
[ProtoMember(5)]
|
||||
public List<KeyValueInt64> Propertys = new List<KeyValueInt64>();
|
||||
}
|
||||
[ProtoContract]
|
||||
public partial class UnitStateInfo : AMessage, IProto
|
||||
@@ -134,7 +128,7 @@ namespace Fantasy
|
||||
public override void Dispose()
|
||||
{
|
||||
State = default;
|
||||
Args.Clear();
|
||||
Propertys.Clear();
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<UnitStateInfo>(this);
|
||||
#endif
|
||||
@@ -142,7 +136,7 @@ namespace Fantasy
|
||||
[ProtoMember(1)]
|
||||
public int State { get; set; }
|
||||
[ProtoMember(2)]
|
||||
public List<string> Args = new List<string>();
|
||||
public List<KeyValueInt64> Propertys = new List<KeyValueInt64>();
|
||||
}
|
||||
[ProtoContract]
|
||||
public partial class MapUnitInfo : AMessage, IProto
|
||||
@@ -177,6 +171,6 @@ namespace Fantasy
|
||||
[ProtoMember(6)]
|
||||
public List<GearInfo> Gears = new List<GearInfo>();
|
||||
[ProtoMember(7)]
|
||||
public List<KeyValueInt32> Propertys = new List<KeyValueInt32>();
|
||||
public List<KeyValueInt64> Propertys = new List<KeyValueInt64>();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user