using ProtoBuf; using System.Collections.Generic; using MongoDB.Bson.Serialization.Attributes; using Fantasy; using Fantasy.Network.Interface; using Fantasy.Serialize; // ReSharper disable InconsistentNaming // ReSharper disable RedundantUsingDirective // ReSharper disable RedundantOverriddenMember // ReSharper disable PartialTypeWithSinglePart // ReSharper disable UnusedAutoPropertyAccessor.Global // ReSharper disable MemberCanBePrivate.Global // ReSharper disable CheckNamespace #pragma warning disable CS8625 // Cannot convert null literal to non-nullable reference type. #pragma warning disable CS8618 namespace Fantasy { /// /// 通知游戏服角色进入该游戏服 /// [ProtoContract] public partial class G2Game_EnterRequest : AMessage, IRouteRequest, IProto { public static G2Game_EnterRequest Create(Scene scene) { return scene.MessagePoolComponent.Rent(); } public override void Dispose() { AccountId = default; GateRouteId = default; #if FANTASY_NET || FANTASY_UNITY GetScene().MessagePoolComponent.Return(this); #endif } [ProtoIgnore] public Game2G_EnterResponse ResponseType { get; set; } public uint OpCode() { return InnerOpcode.G2Game_EnterRequest; } [ProtoMember(1)] public long AccountId { get; set; } [ProtoMember(2)] public long GateRouteId { get; set; } } [ProtoContract] public partial class Game2G_EnterResponse : AMessage, IRouteResponse, IProto { public static Game2G_EnterResponse Create(Scene scene) { return scene.MessagePoolComponent.Rent(); } public override void Dispose() { ErrorCode = default; RoleRouteId = default; RoleInfo = default; #if FANTASY_NET || FANTASY_UNITY GetScene().MessagePoolComponent.Return(this); #endif } public uint OpCode() { return InnerOpcode.Game2G_EnterResponse; } [ProtoMember(1)] public long RoleRouteId { get; set; } [ProtoMember(2)] public RoleSimpleInfo RoleInfo { get; set; } [ProtoMember(3)] public uint ErrorCode { get; set; } } /// /// 通知游戏服角色进入该聊天服 /// [ProtoContract] public partial class G2Chat_EnterRequest : AMessage, IRouteRequest, IProto { public static G2Chat_EnterRequest Create(Scene scene) { return scene.MessagePoolComponent.Rent(); } public override void Dispose() { Role = default; GateRouteId = default; #if FANTASY_NET || FANTASY_UNITY GetScene().MessagePoolComponent.Return(this); #endif } [ProtoIgnore] public Game2G_EnterResponse ResponseType { get; set; } public uint OpCode() { return InnerOpcode.G2Chat_EnterRequest; } [ProtoMember(1)] public RoleSimpleInfo Role { get; set; } [ProtoMember(2)] public long GateRouteId { get; set; } } [ProtoContract] public partial class Chat2G_EnterResponse : AMessage, IRouteResponse, IProto { public static Chat2G_EnterResponse Create(Scene scene) { return scene.MessagePoolComponent.Rent(); } public override void Dispose() { ErrorCode = default; RoleRouteId = default; #if FANTASY_NET || FANTASY_UNITY GetScene().MessagePoolComponent.Return(this); #endif } public uint OpCode() { return InnerOpcode.Chat2G_EnterResponse; } [ProtoMember(1)] public long RoleRouteId { get; set; } [ProtoMember(2)] public uint ErrorCode { get; set; } } [ProtoContract] public partial class Chat2G_ChatMessage : AMessage, IRouteMessage, IProto { public static Chat2G_ChatMessage Create(Scene scene) { return scene.MessagePoolComponent.Rent(); } public override void Dispose() { Message = default; #if FANTASY_NET || FANTASY_UNITY GetScene().MessagePoolComponent.Return(this); #endif } public uint OpCode() { return InnerOpcode.Chat2G_ChatMessage; } [ProtoMember(1)] public ChatMessageInfo Message { get; set; } } }