| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122 |
- using MemoryPack;
- using System.Collections.Generic;
- namespace ET
- {
- [MemoryPackable]
- [Message(StateSyncOuter.HttpGetRouterResponse)]
- public partial class HttpGetRouterResponse : MessageObject
- {
- public static HttpGetRouterResponse Create(bool isFromPool = false)
- {
- return ObjectPool.Fetch<HttpGetRouterResponse>(isFromPool);
- }
- [MemoryPackOrder(0)]
- public List<string> Realms { get; set; } = new();
- [MemoryPackOrder(1)]
- public List<string> Routers { get; set; } = new();
- public override void Dispose()
- {
- if (!this.IsFromPool)
- {
- return;
- }
- this.Realms.Clear();
- this.Routers.Clear();
- ObjectPool.Recycle(this);
- }
- }
- [MemoryPackable]
- [Message(StateSyncOuter.RouterSync)]
- public partial class RouterSync : MessageObject
- {
- public static RouterSync Create(bool isFromPool = false)
- {
- return ObjectPool.Fetch<RouterSync>(isFromPool);
- }
- [MemoryPackOrder(0)]
- public uint ConnectId { get; set; }
- [MemoryPackOrder(1)]
- public string Address { get; set; }
- public override void Dispose()
- {
- if (!this.IsFromPool)
- {
- return;
- }
- this.ConnectId = default;
- this.Address = default;
- ObjectPool.Recycle(this);
- }
- }
- [MemoryPackable]
- [Message(StateSyncOuter.C2M_TestRequest)]
- [ResponseType(nameof(M2C_TestResponse))]
- public partial class C2M_TestRequest : MessageObject, ILocationRequest
- {
- public static C2M_TestRequest Create(bool isFromPool = false)
- {
- return ObjectPool.Fetch<C2M_TestRequest>(isFromPool);
- }
- [MemoryPackOrder(0)]
- public int RpcId { get; set; }
- [MemoryPackOrder(1)]
- public string request { get; set; }
- public override void Dispose()
- {
- if (!this.IsFromPool)
- {
- return;
- }
- this.RpcId = default;
- this.request = default;
- ObjectPool.Recycle(this);
- }
- }
- [MemoryPackable]
- [Message(StateSyncOuter.M2C_TestResponse)]
- public partial class M2C_TestResponse : MessageObject, IResponse
- {
- public static M2C_TestResponse Create(bool isFromPool = false)
- {
- return ObjectPool.Fetch<M2C_TestResponse>(isFromPool);
- }
- [MemoryPackOrder(0)]
- public int RpcId { get; set; }
- [MemoryPackOrder(1)]
- public int Error { get; set; }
- [MemoryPackOrder(2)]
- public string Message { get; set; }
- [MemoryPackOrder(3)]
- public string response { get; set; }
- public override void Dispose()
- {
- if (!this.IsFromPool)
- {
- return;
- }
- this.RpcId = default;
- this.Error = default;
- this.Message = default;
- this.response = default;
- ObjectPool.Recycle(this);
- }
- }
- [MemoryPackable]
- [Message(StateSyncOuter.C2G_EnterMap)]
- [ResponseType(nameof(G2C_EnterMap))]
- public partial class C2G_EnterMap : MessageObject, ISessionRequest
- {
- public static C2G_EnterMap Create(bool isFromPool = false)
- {
- return ObjectPool.Fetch<C2G_EnterMap>(isFromPool);
- }
- [MemoryPackOrder(0)]
- public int RpcId { get; set; }
- public override void Dispose()
- {
- if (!this.IsFromPool)
- {
- return;
- }
- this.RpcId = default;
- ObjectPool.Recycle(this);
- }
- }
- [MemoryPackable]
- [Message(StateSyncOuter.G2C_EnterMap)]
- public partial class G2C_EnterMap : MessageObject, ISessionResponse
- {
- public static G2C_EnterMap Create(bool isFromPool = false)
- {
- return ObjectPool.Fetch<G2C_EnterMap>(isFromPool);
- }
- [MemoryPackOrder(0)]
- public int RpcId { get; set; }
- [MemoryPackOrder(1)]
- public int Error { get; set; }
- [MemoryPackOrder(2)]
- public string Message { get; set; }
- /// <summary>
- /// 自己的UnitId
- /// </summary>
- [MemoryPackOrder(3)]
- public long MyId { get; set; }
- public override void Dispose()
- {
- if (!this.IsFromPool)
- {
- return;
- }
- this.RpcId = default;
- this.Error = default;
- this.Message = default;
- this.MyId = default;
- ObjectPool.Recycle(this);
- }
- }
- [MemoryPackable]
- [Message(StateSyncOuter.MoveInfo)]
- public partial class MoveInfo : MessageObject
- {
- public static MoveInfo Create(bool isFromPool = false)
- {
- return ObjectPool.Fetch<MoveInfo>(isFromPool);
- }
- [MemoryPackOrder(0)]
- public List<Unity.Mathematics.float3> Points { get; set; } = new();
- [MemoryPackOrder(1)]
- public Unity.Mathematics.quaternion Rotation { get; set; }
- [MemoryPackOrder(2)]
- public int TurnSpeed { get; set; }
- public override void Dispose()
- {
- if (!this.IsFromPool)
- {
- return;
- }
- this.Points.Clear();
- this.Rotation = default;
- this.TurnSpeed = default;
- ObjectPool.Recycle(this);
- }
- }
- [MemoryPackable]
- [Message(StateSyncOuter.UnitInfo)]
- public partial class UnitInfo : MessageObject
- {
- public static UnitInfo Create(bool isFromPool = false)
- {
- return ObjectPool.Fetch<UnitInfo>(isFromPool);
- }
- [MemoryPackOrder(0)]
- public long UnitId { get; set; }
- [MemoryPackOrder(1)]
- public int ConfigId { get; set; }
- [MemoryPackOrder(2)]
- public int Type { get; set; }
- [MemoryPackOrder(3)]
- public Unity.Mathematics.float3 Position { get; set; }
- [MemoryPackOrder(4)]
- public Unity.Mathematics.float3 Forward { get; set; }
- [MongoDB.Bson.Serialization.Attributes.BsonDictionaryOptions(MongoDB.Bson.Serialization.Options.DictionaryRepresentation.ArrayOfArrays)]
- [MemoryPackOrder(5)]
- public Dictionary<int, long> KV { get; set; } = new();
- [MemoryPackOrder(6)]
- public MoveInfo MoveInfo { get; set; }
- public override void Dispose()
- {
- if (!this.IsFromPool)
- {
- return;
- }
- this.UnitId = default;
- this.ConfigId = default;
- this.Type = default;
- this.Position = default;
- this.Forward = default;
- this.KV.Clear();
- this.MoveInfo = default;
- ObjectPool.Recycle(this);
- }
- }
- [MemoryPackable]
- [Message(StateSyncOuter.M2C_CreateUnits)]
- public partial class M2C_CreateUnits : MessageObject, IMessage
- {
- public static M2C_CreateUnits Create(bool isFromPool = false)
- {
- return ObjectPool.Fetch<M2C_CreateUnits>(isFromPool);
- }
- [MemoryPackOrder(0)]
- public List<UnitInfo> Units { get; set; } = new();
- public override void Dispose()
- {
- if (!this.IsFromPool)
- {
- return;
- }
- this.Units.Clear();
- ObjectPool.Recycle(this);
- }
- }
- [MemoryPackable]
- [Message(StateSyncOuter.M2C_CreateMyUnit)]
- public partial class M2C_CreateMyUnit : MessageObject, IMessage
- {
- public static M2C_CreateMyUnit Create(bool isFromPool = false)
- {
- return ObjectPool.Fetch<M2C_CreateMyUnit>(isFromPool);
- }
- [MemoryPackOrder(0)]
- public UnitInfo Unit { get; set; }
- public override void Dispose()
- {
- if (!this.IsFromPool)
- {
- return;
- }
- this.Unit = default;
- ObjectPool.Recycle(this);
- }
- }
- [MemoryPackable]
- [Message(StateSyncOuter.M2C_StartSceneChange)]
- public partial class M2C_StartSceneChange : MessageObject, IMessage
- {
- public static M2C_StartSceneChange Create(bool isFromPool = false)
- {
- return ObjectPool.Fetch<M2C_StartSceneChange>(isFromPool);
- }
- [MemoryPackOrder(0)]
- public long SceneInstanceId { get; set; }
- [MemoryPackOrder(1)]
- public string SceneName { get; set; }
- public override void Dispose()
- {
- if (!this.IsFromPool)
- {
- return;
- }
- this.SceneInstanceId = default;
- this.SceneName = default;
- ObjectPool.Recycle(this);
- }
- }
- [MemoryPackable]
- [Message(StateSyncOuter.M2C_RemoveUnits)]
- public partial class M2C_RemoveUnits : MessageObject, IMessage
- {
- public static M2C_RemoveUnits Create(bool isFromPool = false)
- {
- return ObjectPool.Fetch<M2C_RemoveUnits>(isFromPool);
- }
- [MemoryPackOrder(0)]
- public List<long> Units { get; set; } = new();
- public override void Dispose()
- {
- if (!this.IsFromPool)
- {
- return;
- }
- this.Units.Clear();
- ObjectPool.Recycle(this);
- }
- }
- [MemoryPackable]
- [Message(StateSyncOuter.C2M_PathfindingResult)]
- public partial class C2M_PathfindingResult : MessageObject, ILocationMessage
- {
- public static C2M_PathfindingResult Create(bool isFromPool = false)
- {
- return ObjectPool.Fetch<C2M_PathfindingResult>(isFromPool);
- }
- [MemoryPackOrder(0)]
- public int RpcId { get; set; }
- [MemoryPackOrder(1)]
- public Unity.Mathematics.float3 Position { get; set; }
- public override void Dispose()
- {
- if (!this.IsFromPool)
- {
- return;
- }
- this.RpcId = default;
- this.Position = default;
- ObjectPool.Recycle(this);
- }
- }
- [MemoryPackable]
- [Message(StateSyncOuter.C2M_Stop)]
- public partial class C2M_Stop : MessageObject, ILocationMessage
- {
- public static C2M_Stop Create(bool isFromPool = false)
- {
- return ObjectPool.Fetch<C2M_Stop>(isFromPool);
- }
- [MemoryPackOrder(0)]
- public int RpcId { get; set; }
- public override void Dispose()
- {
- if (!this.IsFromPool)
- {
- return;
- }
- this.RpcId = default;
- ObjectPool.Recycle(this);
- }
- }
- [MemoryPackable]
- [Message(StateSyncOuter.M2C_PathfindingResult)]
- public partial class M2C_PathfindingResult : MessageObject, IMessage
- {
- public static M2C_PathfindingResult Create(bool isFromPool = false)
- {
- return ObjectPool.Fetch<M2C_PathfindingResult>(isFromPool);
- }
- [MemoryPackOrder(0)]
- public long Id { get; set; }
- [MemoryPackOrder(1)]
- public Unity.Mathematics.float3 Position { get; set; }
- [MemoryPackOrder(2)]
- public List<Unity.Mathematics.float3> Points { get; set; } = new();
- public override void Dispose()
- {
- if (!this.IsFromPool)
- {
- return;
- }
- this.Id = default;
- this.Position = default;
- this.Points.Clear();
- ObjectPool.Recycle(this);
- }
- }
- [MemoryPackable]
- [Message(StateSyncOuter.M2C_Stop)]
- public partial class M2C_Stop : MessageObject, IMessage
- {
- public static M2C_Stop Create(bool isFromPool = false)
- {
- return ObjectPool.Fetch<M2C_Stop>(isFromPool);
- }
- [MemoryPackOrder(0)]
- public int Error { get; set; }
- [MemoryPackOrder(1)]
- public long Id { get; set; }
- [MemoryPackOrder(2)]
- public Unity.Mathematics.float3 Position { get; set; }
- [MemoryPackOrder(3)]
- public Unity.Mathematics.quaternion Rotation { get; set; }
- public override void Dispose()
- {
- if (!this.IsFromPool)
- {
- return;
- }
- this.Error = default;
- this.Id = default;
- this.Position = default;
- this.Rotation = default;
- ObjectPool.Recycle(this);
- }
- }
- [MemoryPackable]
- [Message(StateSyncOuter.C2G_Ping)]
- [ResponseType(nameof(G2C_Ping))]
- public partial class C2G_Ping : MessageObject, ISessionRequest
- {
- public static C2G_Ping Create(bool isFromPool = false)
- {
- return ObjectPool.Fetch<C2G_Ping>(isFromPool);
- }
- [MemoryPackOrder(0)]
- public int RpcId { get; set; }
- public override void Dispose()
- {
- if (!this.IsFromPool)
- {
- return;
- }
- this.RpcId = default;
- ObjectPool.Recycle(this);
- }
- }
- [MemoryPackable]
- [Message(StateSyncOuter.G2C_Ping)]
- public partial class G2C_Ping : MessageObject, ISessionResponse
- {
- public static G2C_Ping Create(bool isFromPool = false)
- {
- return ObjectPool.Fetch<G2C_Ping>(isFromPool);
- }
- [MemoryPackOrder(0)]
- public int RpcId { get; set; }
- [MemoryPackOrder(1)]
- public int Error { get; set; }
- [MemoryPackOrder(2)]
- public string Message { get; set; }
- [MemoryPackOrder(3)]
- public long Time { get; set; }
- public override void Dispose()
- {
- if (!this.IsFromPool)
- {
- return;
- }
- this.RpcId = default;
- this.Error = default;
- this.Message = default;
- this.Time = default;
- ObjectPool.Recycle(this);
- }
- }
- [MemoryPackable]
- [Message(StateSyncOuter.G2C_Test)]
- public partial class G2C_Test : MessageObject, ISessionMessage
- {
- public static G2C_Test Create(bool isFromPool = false)
- {
- return ObjectPool.Fetch<G2C_Test>(isFromPool);
- }
- public override void Dispose()
- {
- if (!this.IsFromPool)
- {
- return;
- }
-
- ObjectPool.Recycle(this);
- }
- }
- [MemoryPackable]
- [Message(StateSyncOuter.C2M_Reload)]
- [ResponseType(nameof(M2C_Reload))]
- public partial class C2M_Reload : MessageObject, ISessionRequest
- {
- public static C2M_Reload Create(bool isFromPool = false)
- {
- return ObjectPool.Fetch<C2M_Reload>(isFromPool);
- }
- [MemoryPackOrder(0)]
- public int RpcId { get; set; }
- [MemoryPackOrder(1)]
- public string Account { get; set; }
- [MemoryPackOrder(2)]
- public string Password { get; set; }
- public override void Dispose()
- {
- if (!this.IsFromPool)
- {
- return;
- }
- this.RpcId = default;
- this.Account = default;
- this.Password = default;
- ObjectPool.Recycle(this);
- }
- }
- [MemoryPackable]
- [Message(StateSyncOuter.M2C_Reload)]
- public partial class M2C_Reload : MessageObject, ISessionResponse
- {
- public static M2C_Reload Create(bool isFromPool = false)
- {
- return ObjectPool.Fetch<M2C_Reload>(isFromPool);
- }
- [MemoryPackOrder(0)]
- public int RpcId { get; set; }
- [MemoryPackOrder(1)]
- public int Error { get; set; }
- [MemoryPackOrder(2)]
- public string Message { get; set; }
- public override void Dispose()
- {
- if (!this.IsFromPool)
- {
- return;
- }
- this.RpcId = default;
- this.Error = default;
- this.Message = default;
- ObjectPool.Recycle(this);
- }
- }
- [MemoryPackable]
- [Message(StateSyncOuter.C2R_Login)]
- [ResponseType(nameof(R2C_Login))]
- public partial class C2R_Login : MessageObject, ISessionRequest
- {
- public static C2R_Login Create(bool isFromPool = false)
- {
- return ObjectPool.Fetch<C2R_Login>(isFromPool);
- }
- [MemoryPackOrder(0)]
- public int RpcId { get; set; }
- /// <summary>
- /// 帐号
- /// </summary>
- [MemoryPackOrder(1)]
- public string Account { get; set; }
- /// <summary>
- /// 密码
- /// </summary>
- [MemoryPackOrder(2)]
- public string Password { get; set; }
- public override void Dispose()
- {
- if (!this.IsFromPool)
- {
- return;
- }
- this.RpcId = default;
- this.Account = default;
- this.Password = default;
- ObjectPool.Recycle(this);
- }
- }
- [MemoryPackable]
- [Message(StateSyncOuter.R2C_Login)]
- public partial class R2C_Login : MessageObject, ISessionResponse
- {
- public static R2C_Login Create(bool isFromPool = false)
- {
- return ObjectPool.Fetch<R2C_Login>(isFromPool);
- }
- [MemoryPackOrder(0)]
- public int RpcId { get; set; }
- [MemoryPackOrder(1)]
- public int Error { get; set; }
- [MemoryPackOrder(2)]
- public string Message { get; set; }
- [MemoryPackOrder(3)]
- public string Address { get; set; }
- [MemoryPackOrder(4)]
- public long Key { get; set; }
- [MemoryPackOrder(5)]
- public long GateId { get; set; }
- public override void Dispose()
- {
- if (!this.IsFromPool)
- {
- return;
- }
- this.RpcId = default;
- this.Error = default;
- this.Message = default;
- this.Address = default;
- this.Key = default;
- this.GateId = default;
- ObjectPool.Recycle(this);
- }
- }
- [MemoryPackable]
- [Message(StateSyncOuter.C2G_LoginGate)]
- [ResponseType(nameof(G2C_LoginGate))]
- public partial class C2G_LoginGate : MessageObject, ISessionRequest
- {
- public static C2G_LoginGate Create(bool isFromPool = false)
- {
- return ObjectPool.Fetch<C2G_LoginGate>(isFromPool);
- }
- [MemoryPackOrder(0)]
- public int RpcId { get; set; }
- /// <summary>
- /// 帐号
- /// </summary>
- [MemoryPackOrder(1)]
- public long Key { get; set; }
- [MemoryPackOrder(2)]
- public long GateId { get; set; }
- public override void Dispose()
- {
- if (!this.IsFromPool)
- {
- return;
- }
- this.RpcId = default;
- this.Key = default;
- this.GateId = default;
- ObjectPool.Recycle(this);
- }
- }
- [MemoryPackable]
- [Message(StateSyncOuter.G2C_LoginGate)]
- public partial class G2C_LoginGate : MessageObject, ISessionResponse
- {
- public static G2C_LoginGate Create(bool isFromPool = false)
- {
- return ObjectPool.Fetch<G2C_LoginGate>(isFromPool);
- }
- [MemoryPackOrder(0)]
- public int RpcId { get; set; }
- [MemoryPackOrder(1)]
- public int Error { get; set; }
- [MemoryPackOrder(2)]
- public string Message { get; set; }
- [MemoryPackOrder(3)]
- public long PlayerId { get; set; }
- public override void Dispose()
- {
- if (!this.IsFromPool)
- {
- return;
- }
- this.RpcId = default;
- this.Error = default;
- this.Message = default;
- this.PlayerId = default;
- ObjectPool.Recycle(this);
- }
- }
- [MemoryPackable]
- [Message(StateSyncOuter.G2C_TestHotfixMessage)]
- public partial class G2C_TestHotfixMessage : MessageObject, ISessionMessage
- {
- public static G2C_TestHotfixMessage Create(bool isFromPool = false)
- {
- return ObjectPool.Fetch<G2C_TestHotfixMessage>(isFromPool);
- }
- [MemoryPackOrder(0)]
- public string Info { get; set; }
- public override void Dispose()
- {
- if (!this.IsFromPool)
- {
- return;
- }
- this.Info = default;
- ObjectPool.Recycle(this);
- }
- }
- [MemoryPackable]
- [Message(StateSyncOuter.C2M_TestRobotCase)]
- [ResponseType(nameof(M2C_TestRobotCase))]
- public partial class C2M_TestRobotCase : MessageObject, ILocationRequest
- {
- public static C2M_TestRobotCase Create(bool isFromPool = false)
- {
- return ObjectPool.Fetch<C2M_TestRobotCase>(isFromPool);
- }
- [MemoryPackOrder(0)]
- public int RpcId { get; set; }
- [MemoryPackOrder(1)]
- public int N { get; set; }
- public override void Dispose()
- {
- if (!this.IsFromPool)
- {
- return;
- }
- this.RpcId = default;
- this.N = default;
- ObjectPool.Recycle(this);
- }
- }
- [MemoryPackable]
- [Message(StateSyncOuter.M2C_TestRobotCase)]
- public partial class M2C_TestRobotCase : MessageObject, ILocationResponse
- {
- public static M2C_TestRobotCase Create(bool isFromPool = false)
- {
- return ObjectPool.Fetch<M2C_TestRobotCase>(isFromPool);
- }
- [MemoryPackOrder(0)]
- public int RpcId { get; set; }
- [MemoryPackOrder(1)]
- public int Error { get; set; }
- [MemoryPackOrder(2)]
- public string Message { get; set; }
- [MemoryPackOrder(3)]
- public int N { get; set; }
- public override void Dispose()
- {
- if (!this.IsFromPool)
- {
- return;
- }
- this.RpcId = default;
- this.Error = default;
- this.Message = default;
- this.N = default;
- ObjectPool.Recycle(this);
- }
- }
- [MemoryPackable]
- [Message(StateSyncOuter.C2M_TestRobotCase2)]
- public partial class C2M_TestRobotCase2 : MessageObject, ILocationMessage
- {
- public static C2M_TestRobotCase2 Create(bool isFromPool = false)
- {
- return ObjectPool.Fetch<C2M_TestRobotCase2>(isFromPool);
- }
- [MemoryPackOrder(0)]
- public int RpcId { get; set; }
- [MemoryPackOrder(1)]
- public int N { get; set; }
- public override void Dispose()
- {
- if (!this.IsFromPool)
- {
- return;
- }
- this.RpcId = default;
- this.N = default;
- ObjectPool.Recycle(this);
- }
- }
- [MemoryPackable]
- [Message(StateSyncOuter.M2C_TestRobotCase2)]
- public partial class M2C_TestRobotCase2 : MessageObject, ILocationMessage
- {
- public static M2C_TestRobotCase2 Create(bool isFromPool = false)
- {
- return ObjectPool.Fetch<M2C_TestRobotCase2>(isFromPool);
- }
- [MemoryPackOrder(0)]
- public int RpcId { get; set; }
- [MemoryPackOrder(1)]
- public int N { get; set; }
- public override void Dispose()
- {
- if (!this.IsFromPool)
- {
- return;
- }
- this.RpcId = default;
- this.N = default;
- ObjectPool.Recycle(this);
- }
- }
- [MemoryPackable]
- [Message(StateSyncOuter.C2M_TransferMap)]
- [ResponseType(nameof(M2C_TransferMap))]
- public partial class C2M_TransferMap : MessageObject, ILocationRequest
- {
- public static C2M_TransferMap Create(bool isFromPool = false)
- {
- return ObjectPool.Fetch<C2M_TransferMap>(isFromPool);
- }
- [MemoryPackOrder(0)]
- public int RpcId { get; set; }
- public override void Dispose()
- {
- if (!this.IsFromPool)
- {
- return;
- }
- this.RpcId = default;
- ObjectPool.Recycle(this);
- }
- }
- [MemoryPackable]
- [Message(StateSyncOuter.M2C_TransferMap)]
- public partial class M2C_TransferMap : MessageObject, ILocationResponse
- {
- public static M2C_TransferMap Create(bool isFromPool = false)
- {
- return ObjectPool.Fetch<M2C_TransferMap>(isFromPool);
- }
- [MemoryPackOrder(0)]
- public int RpcId { get; set; }
- [MemoryPackOrder(1)]
- public int Error { get; set; }
- [MemoryPackOrder(2)]
- public string Message { get; set; }
- public override void Dispose()
- {
- if (!this.IsFromPool)
- {
- return;
- }
- this.RpcId = default;
- this.Error = default;
- this.Message = default;
- ObjectPool.Recycle(this);
- }
- }
- [MemoryPackable]
- [Message(StateSyncOuter.C2G_Benchmark)]
- [ResponseType(nameof(G2C_Benchmark))]
- public partial class C2G_Benchmark : MessageObject, ISessionRequest
- {
- public static C2G_Benchmark Create(bool isFromPool = false)
- {
- return ObjectPool.Fetch<C2G_Benchmark>(isFromPool);
- }
- [MemoryPackOrder(0)]
- public int RpcId { get; set; }
- public override void Dispose()
- {
- if (!this.IsFromPool)
- {
- return;
- }
- this.RpcId = default;
- ObjectPool.Recycle(this);
- }
- }
- [MemoryPackable]
- [Message(StateSyncOuter.G2C_Benchmark)]
- public partial class G2C_Benchmark : MessageObject, ISessionResponse
- {
- public static G2C_Benchmark Create(bool isFromPool = false)
- {
- return ObjectPool.Fetch<G2C_Benchmark>(isFromPool);
- }
- [MemoryPackOrder(0)]
- public int RpcId { get; set; }
- [MemoryPackOrder(1)]
- public int Error { get; set; }
- [MemoryPackOrder(2)]
- public string Message { get; set; }
- public override void Dispose()
- {
- if (!this.IsFromPool)
- {
- return;
- }
- this.RpcId = default;
- this.Error = default;
- this.Message = default;
- ObjectPool.Recycle(this);
- }
- }
- public static class StateSyncOuter
- {
- public const ushort HttpGetRouterResponse = 10002;
- public const ushort RouterSync = 10003;
- public const ushort C2M_TestRequest = 10004;
- public const ushort M2C_TestResponse = 10005;
- public const ushort C2G_EnterMap = 10006;
- public const ushort G2C_EnterMap = 10007;
- public const ushort MoveInfo = 10008;
- public const ushort UnitInfo = 10009;
- public const ushort M2C_CreateUnits = 10010;
- public const ushort M2C_CreateMyUnit = 10011;
- public const ushort M2C_StartSceneChange = 10012;
- public const ushort M2C_RemoveUnits = 10013;
- public const ushort C2M_PathfindingResult = 10014;
- public const ushort C2M_Stop = 10015;
- public const ushort M2C_PathfindingResult = 10016;
- public const ushort M2C_Stop = 10017;
- public const ushort C2G_Ping = 10018;
- public const ushort G2C_Ping = 10019;
- public const ushort G2C_Test = 10020;
- public const ushort C2M_Reload = 10021;
- public const ushort M2C_Reload = 10022;
- public const ushort C2R_Login = 10023;
- public const ushort R2C_Login = 10024;
- public const ushort C2G_LoginGate = 10025;
- public const ushort G2C_LoginGate = 10026;
- public const ushort G2C_TestHotfixMessage = 10027;
- public const ushort C2M_TestRobotCase = 10028;
- public const ushort M2C_TestRobotCase = 10029;
- public const ushort C2M_TestRobotCase2 = 10030;
- public const ushort M2C_TestRobotCase2 = 10031;
- public const ushort C2M_TransferMap = 10032;
- public const ushort M2C_TransferMap = 10033;
- public const ushort C2G_Benchmark = 10034;
- public const ushort G2C_Benchmark = 10035;
- }
- }
|