缓存模块
This commit is contained in:
@@ -109,6 +109,53 @@ namespace Fantasy
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 获取玩家基础信息
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class S2G_GetPlayerBasicInfoRequest : AMessage, IRouteRequest, IProto
|
||||
{
|
||||
public static S2G_GetPlayerBasicInfoRequest Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<S2G_GetPlayerBasicInfoRequest>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
IdList.Clear();
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<S2G_GetPlayerBasicInfoRequest>(this);
|
||||
#endif
|
||||
}
|
||||
[ProtoIgnore]
|
||||
public G2S_GetPlayerBasicInfoResponse ResponseType { get; set; }
|
||||
public uint OpCode() { return InnerOpcode.S2G_GetPlayerBasicInfoRequest; }
|
||||
[ProtoMember(1)]
|
||||
public List<long> IdList = new List<long>();
|
||||
}
|
||||
/// <summary>
|
||||
/// 获取玩家基础信息响应
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
public partial class G2S_GetPlayerBasicInfoResponse : AMessage, IRouteResponse, IProto
|
||||
{
|
||||
public static G2S_GetPlayerBasicInfoResponse Create(Scene scene)
|
||||
{
|
||||
return scene.MessagePoolComponent.Rent<G2S_GetPlayerBasicInfoResponse>();
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
ErrorCode = default;
|
||||
RoleList.Clear();
|
||||
#if FANTASY_NET || FANTASY_UNITY
|
||||
GetScene().MessagePoolComponent.Return<G2S_GetPlayerBasicInfoResponse>(this);
|
||||
#endif
|
||||
}
|
||||
public uint OpCode() { return InnerOpcode.G2S_GetPlayerBasicInfoResponse; }
|
||||
[ProtoMember(1)]
|
||||
public List<RoleSimpleInfo> RoleList = new List<RoleSimpleInfo>();
|
||||
[ProtoMember(2)]
|
||||
public uint ErrorCode { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 通知游戏服角色进入该聊天服
|
||||
/// </summary>
|
||||
[ProtoContract]
|
||||
|
||||
Reference in New Issue
Block a user