This commit is contained in:
2025-09-25 19:19:51 +08:00
parent ddffaac7b3
commit f3d82df793
25 changed files with 532 additions and 244 deletions

View File

@@ -100,11 +100,10 @@ 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 +113,13 @@ 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)]
[ProtoMember(4)]
public Vector3Info Position { get; set; }
[ProtoMember(7)]
[ProtoMember(5)]
public Vector3Info Rotation { get; set; }
[ProtoMember(6)]
public List<KeyValueInt32> Propertys = new List<KeyValueInt32>();
}
[ProtoContract]
public partial class UnitStateInfo : AMessage, IProto