|
|
@@ -1,455 +0,0 @@
|
|
|
-using MemoryPack;
|
|
|
-using System.Collections.Generic;
|
|
|
-
|
|
|
-namespace ET
|
|
|
-{
|
|
|
- [MemoryPackable]
|
|
|
- [Message(ActorLocationMessage.ObjectQueryRequest)]
|
|
|
- [ResponseType(nameof(ObjectQueryResponse))]
|
|
|
- public partial class ObjectQueryRequest : MessageObject, IRequest
|
|
|
- {
|
|
|
- public static ObjectQueryRequest Create(bool isFromPool = false)
|
|
|
- {
|
|
|
- return ObjectPool.Fetch<ObjectQueryRequest>(isFromPool);
|
|
|
- }
|
|
|
-
|
|
|
- [MemoryPackOrder(0)]
|
|
|
- public int RpcId { get; set; }
|
|
|
-
|
|
|
- [MemoryPackOrder(1)]
|
|
|
- public long Key { get; set; }
|
|
|
-
|
|
|
- [MemoryPackOrder(2)]
|
|
|
- public long InstanceId { get; set; }
|
|
|
-
|
|
|
- public override void Dispose()
|
|
|
- {
|
|
|
- if (!this.IsFromPool)
|
|
|
- {
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- this.RpcId = default;
|
|
|
- this.Key = default;
|
|
|
- this.InstanceId = default;
|
|
|
-
|
|
|
- ObjectPool.Recycle(this);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [MemoryPackable]
|
|
|
- [Message(ActorLocationMessage.ObjectAddRequest)]
|
|
|
- [ResponseType(nameof(ObjectAddResponse))]
|
|
|
- public partial class ObjectAddRequest : MessageObject, IRequest
|
|
|
- {
|
|
|
- public static ObjectAddRequest Create(bool isFromPool = false)
|
|
|
- {
|
|
|
- return ObjectPool.Fetch<ObjectAddRequest>(isFromPool);
|
|
|
- }
|
|
|
-
|
|
|
- [MemoryPackOrder(0)]
|
|
|
- public int RpcId { get; set; }
|
|
|
-
|
|
|
- [MemoryPackOrder(1)]
|
|
|
- public int Type { get; set; }
|
|
|
-
|
|
|
- [MemoryPackOrder(2)]
|
|
|
- public long Key { get; set; }
|
|
|
-
|
|
|
- [MemoryPackOrder(3)]
|
|
|
- public ActorId ActorId { get; set; }
|
|
|
-
|
|
|
- public override void Dispose()
|
|
|
- {
|
|
|
- if (!this.IsFromPool)
|
|
|
- {
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- this.RpcId = default;
|
|
|
- this.Type = default;
|
|
|
- this.Key = default;
|
|
|
- this.ActorId = default;
|
|
|
-
|
|
|
- ObjectPool.Recycle(this);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [MemoryPackable]
|
|
|
- [Message(ActorLocationMessage.ObjectAddResponse)]
|
|
|
- public partial class ObjectAddResponse : MessageObject, IResponse
|
|
|
- {
|
|
|
- public static ObjectAddResponse Create(bool isFromPool = false)
|
|
|
- {
|
|
|
- return ObjectPool.Fetch<ObjectAddResponse>(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(ActorLocationMessage.ObjectLockRequest)]
|
|
|
- [ResponseType(nameof(ObjectLockResponse))]
|
|
|
- public partial class ObjectLockRequest : MessageObject, IRequest
|
|
|
- {
|
|
|
- public static ObjectLockRequest Create(bool isFromPool = false)
|
|
|
- {
|
|
|
- return ObjectPool.Fetch<ObjectLockRequest>(isFromPool);
|
|
|
- }
|
|
|
-
|
|
|
- [MemoryPackOrder(0)]
|
|
|
- public int RpcId { get; set; }
|
|
|
-
|
|
|
- [MemoryPackOrder(1)]
|
|
|
- public int Type { get; set; }
|
|
|
-
|
|
|
- [MemoryPackOrder(2)]
|
|
|
- public long Key { get; set; }
|
|
|
-
|
|
|
- [MemoryPackOrder(3)]
|
|
|
- public ActorId ActorId { get; set; }
|
|
|
-
|
|
|
- [MemoryPackOrder(4)]
|
|
|
- public int Time { get; set; }
|
|
|
-
|
|
|
- public override void Dispose()
|
|
|
- {
|
|
|
- if (!this.IsFromPool)
|
|
|
- {
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- this.RpcId = default;
|
|
|
- this.Type = default;
|
|
|
- this.Key = default;
|
|
|
- this.ActorId = default;
|
|
|
- this.Time = default;
|
|
|
-
|
|
|
- ObjectPool.Recycle(this);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [MemoryPackable]
|
|
|
- [Message(ActorLocationMessage.ObjectLockResponse)]
|
|
|
- public partial class ObjectLockResponse : MessageObject, IResponse
|
|
|
- {
|
|
|
- public static ObjectLockResponse Create(bool isFromPool = false)
|
|
|
- {
|
|
|
- return ObjectPool.Fetch<ObjectLockResponse>(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(ActorLocationMessage.ObjectUnLockRequest)]
|
|
|
- [ResponseType(nameof(ObjectUnLockResponse))]
|
|
|
- public partial class ObjectUnLockRequest : MessageObject, IRequest
|
|
|
- {
|
|
|
- public static ObjectUnLockRequest Create(bool isFromPool = false)
|
|
|
- {
|
|
|
- return ObjectPool.Fetch<ObjectUnLockRequest>(isFromPool);
|
|
|
- }
|
|
|
-
|
|
|
- [MemoryPackOrder(0)]
|
|
|
- public int RpcId { get; set; }
|
|
|
-
|
|
|
- [MemoryPackOrder(1)]
|
|
|
- public int Type { get; set; }
|
|
|
-
|
|
|
- [MemoryPackOrder(2)]
|
|
|
- public long Key { get; set; }
|
|
|
-
|
|
|
- [MemoryPackOrder(3)]
|
|
|
- public ActorId OldActorId { get; set; }
|
|
|
-
|
|
|
- [MemoryPackOrder(4)]
|
|
|
- public ActorId NewActorId { get; set; }
|
|
|
-
|
|
|
- public override void Dispose()
|
|
|
- {
|
|
|
- if (!this.IsFromPool)
|
|
|
- {
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- this.RpcId = default;
|
|
|
- this.Type = default;
|
|
|
- this.Key = default;
|
|
|
- this.OldActorId = default;
|
|
|
- this.NewActorId = default;
|
|
|
-
|
|
|
- ObjectPool.Recycle(this);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [MemoryPackable]
|
|
|
- [Message(ActorLocationMessage.ObjectUnLockResponse)]
|
|
|
- public partial class ObjectUnLockResponse : MessageObject, IResponse
|
|
|
- {
|
|
|
- public static ObjectUnLockResponse Create(bool isFromPool = false)
|
|
|
- {
|
|
|
- return ObjectPool.Fetch<ObjectUnLockResponse>(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(ActorLocationMessage.ObjectRemoveRequest)]
|
|
|
- [ResponseType(nameof(ObjectRemoveResponse))]
|
|
|
- public partial class ObjectRemoveRequest : MessageObject, IRequest
|
|
|
- {
|
|
|
- public static ObjectRemoveRequest Create(bool isFromPool = false)
|
|
|
- {
|
|
|
- return ObjectPool.Fetch<ObjectRemoveRequest>(isFromPool);
|
|
|
- }
|
|
|
-
|
|
|
- [MemoryPackOrder(0)]
|
|
|
- public int RpcId { get; set; }
|
|
|
-
|
|
|
- [MemoryPackOrder(1)]
|
|
|
- public int Type { get; set; }
|
|
|
-
|
|
|
- [MemoryPackOrder(2)]
|
|
|
- public long Key { get; set; }
|
|
|
-
|
|
|
- public override void Dispose()
|
|
|
- {
|
|
|
- if (!this.IsFromPool)
|
|
|
- {
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- this.RpcId = default;
|
|
|
- this.Type = default;
|
|
|
- this.Key = default;
|
|
|
-
|
|
|
- ObjectPool.Recycle(this);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [MemoryPackable]
|
|
|
- [Message(ActorLocationMessage.ObjectRemoveResponse)]
|
|
|
- public partial class ObjectRemoveResponse : MessageObject, IResponse
|
|
|
- {
|
|
|
- public static ObjectRemoveResponse Create(bool isFromPool = false)
|
|
|
- {
|
|
|
- return ObjectPool.Fetch<ObjectRemoveResponse>(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(ActorLocationMessage.ObjectGetRequest)]
|
|
|
- [ResponseType(nameof(ObjectGetResponse))]
|
|
|
- public partial class ObjectGetRequest : MessageObject, IRequest
|
|
|
- {
|
|
|
- public static ObjectGetRequest Create(bool isFromPool = false)
|
|
|
- {
|
|
|
- return ObjectPool.Fetch<ObjectGetRequest>(isFromPool);
|
|
|
- }
|
|
|
-
|
|
|
- [MemoryPackOrder(0)]
|
|
|
- public int RpcId { get; set; }
|
|
|
-
|
|
|
- [MemoryPackOrder(1)]
|
|
|
- public int Type { get; set; }
|
|
|
-
|
|
|
- [MemoryPackOrder(2)]
|
|
|
- public long Key { get; set; }
|
|
|
-
|
|
|
- public override void Dispose()
|
|
|
- {
|
|
|
- if (!this.IsFromPool)
|
|
|
- {
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- this.RpcId = default;
|
|
|
- this.Type = default;
|
|
|
- this.Key = default;
|
|
|
-
|
|
|
- ObjectPool.Recycle(this);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [MemoryPackable]
|
|
|
- [Message(ActorLocationMessage.ObjectGetResponse)]
|
|
|
- public partial class ObjectGetResponse : MessageObject, IResponse
|
|
|
- {
|
|
|
- public static ObjectGetResponse Create(bool isFromPool = false)
|
|
|
- {
|
|
|
- return ObjectPool.Fetch<ObjectGetResponse>(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 Type { get; set; }
|
|
|
-
|
|
|
- [MemoryPackOrder(4)]
|
|
|
- public ActorId ActorId { get; set; }
|
|
|
-
|
|
|
- public override void Dispose()
|
|
|
- {
|
|
|
- if (!this.IsFromPool)
|
|
|
- {
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- this.RpcId = default;
|
|
|
- this.Error = default;
|
|
|
- this.Message = default;
|
|
|
- this.Type = default;
|
|
|
- this.ActorId = default;
|
|
|
-
|
|
|
- ObjectPool.Recycle(this);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- [MemoryPackable]
|
|
|
- [Message(ActorLocationMessage.ObjectQueryResponse)]
|
|
|
- public partial class ObjectQueryResponse : MessageObject, IResponse
|
|
|
- {
|
|
|
- public static ObjectQueryResponse Create(bool isFromPool = false)
|
|
|
- {
|
|
|
- return ObjectPool.Fetch<ObjectQueryResponse>(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 byte[] Entity { get; set; }
|
|
|
-
|
|
|
- public override void Dispose()
|
|
|
- {
|
|
|
- if (!this.IsFromPool)
|
|
|
- {
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
- this.RpcId = default;
|
|
|
- this.Error = default;
|
|
|
- this.Message = default;
|
|
|
- this.Entity = default;
|
|
|
-
|
|
|
- ObjectPool.Recycle(this);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- public static class ActorLocationMessage
|
|
|
- {
|
|
|
- public const ushort ObjectQueryRequest = 20002;
|
|
|
- public const ushort ObjectAddRequest = 20003;
|
|
|
- public const ushort ObjectAddResponse = 20004;
|
|
|
- public const ushort ObjectLockRequest = 20005;
|
|
|
- public const ushort ObjectLockResponse = 20006;
|
|
|
- public const ushort ObjectUnLockRequest = 20007;
|
|
|
- public const ushort ObjectUnLockResponse = 20008;
|
|
|
- public const ushort ObjectRemoveRequest = 20009;
|
|
|
- public const ushort ObjectRemoveResponse = 20010;
|
|
|
- public const ushort ObjectGetRequest = 20011;
|
|
|
- public const ushort ObjectGetResponse = 20012;
|
|
|
- public const ushort ObjectQueryResponse = 20013;
|
|
|
- }
|
|
|
-}
|