协议定义

This commit is contained in:
2025-08-22 00:08:41 +08:00
parent ac6c79fc17
commit 8c3be0a5bb
8 changed files with 574 additions and 95 deletions

View File

@@ -135,6 +135,7 @@ namespace Fantasy
Currency.Clear();
Slots.Clear();
Skills.Clear();
MapId = default;
#if FANTASY_NET || FANTASY_UNITY
GetScene().MessagePoolComponent.Return<RoleInfo>(this);
#endif
@@ -155,6 +156,8 @@ namespace Fantasy
public List<KeyValueInt64> Slots = new List<KeyValueInt64>();
[ProtoMember(8)]
public List<SkillInfo> Skills = new List<SkillInfo>();
[ProtoMember(9)]
public int MapId { get; set; }
}
/// <summary>
/// 角色信息
@@ -174,6 +177,7 @@ namespace Fantasy
Country = default;
Level = default;
Vip = default;
MapId = default;
#if FANTASY_NET || FANTASY_UNITY
GetScene().MessagePoolComponent.Return<RoleSimpleInfo>(this);
#endif
@@ -190,6 +194,8 @@ namespace Fantasy
public int Level { get; set; }
[ProtoMember(6)]
public bool Vip { get; set; }
[ProtoMember(7)]
public int MapId { get; set; }
}
/// <summary>
/// VIP信息