聊天频道相关

This commit is contained in:
bob
2025-08-08 18:21:11 +08:00
parent 61496d4616
commit 7a93c0f8f1
23 changed files with 256 additions and 95 deletions

View File

@@ -151,6 +151,38 @@ namespace Fantasy
public List<SkillInfo> Skills = new List<SkillInfo>();
}
/// <summary>
/// 角色信息
/// </summary>
[ProtoContract]
public partial class RoleSimpleInfo : AMessage, IProto
{
public static RoleSimpleInfo Create(Scene scene)
{
return scene.MessagePoolComponent.Rent<RoleSimpleInfo>();
}
public override void Dispose()
{
RoleId = default;
NickName = default;
Head = default;
Country = default;
Level = default;
#if FANTASY_NET || FANTASY_UNITY
GetScene().MessagePoolComponent.Return<RoleSimpleInfo>(this);
#endif
}
[ProtoMember(1)]
public long RoleId { get; set; }
[ProtoMember(2)]
public string NickName { get; set; }
[ProtoMember(3)]
public string Head { get; set; }
[ProtoMember(4)]
public string Country { get; set; }
[ProtoMember(5)]
public int Level { get; set; }
}
/// <summary>
/// VIP信息
/// </summary>
[ProtoContract]