Ver código fonte

调整Proto2CS跟ExcelExporter

tanghai 1 ano atrás
pai
commit
b80769f3b8
97 arquivos alterados com 48 adições e 6177 exclusões
  1. 2 1
      .gitignore
  2. 0 0
      Config/Excel/c/UnitConfigCategory.bytes
  3. 0 0
      Config/Excel/cs/StartConfig/Benchmark/StartMachineConfigCategory.bytes
  4. 0 0
      Config/Excel/cs/StartConfig/Benchmark/StartProcessConfigCategory.bytes
  5. 0 0
      Config/Excel/cs/StartConfig/Benchmark/StartSceneConfigCategory.bytes
  6. 0 0
      Config/Excel/cs/StartConfig/Benchmark/StartZoneConfigCategory.bytes
  7. 0 0
      Config/Excel/cs/StartConfig/Localhost/StartMachineConfigCategory.bytes
  8. 0 0
      Config/Excel/cs/StartConfig/Localhost/StartProcessConfigCategory.bytes
  9. 0 0
      Config/Excel/cs/StartConfig/Localhost/StartSceneConfigCategory.bytes
  10. 0 0
      Config/Excel/cs/StartConfig/Localhost/StartZoneConfigCategory.bytes
  11. 0 0
      Config/Excel/cs/StartConfig/Release/StartMachineConfigCategory.bytes
  12. 0 0
      Config/Excel/cs/StartConfig/Release/StartProcessConfigCategory.bytes
  13. 0 0
      Config/Excel/cs/StartConfig/Release/StartSceneConfigCategory.bytes
  14. 0 0
      Config/Excel/cs/StartConfig/Release/StartZoneConfigCategory.bytes
  15. 0 0
      Config/Excel/cs/StartConfig/RouterTest/StartMachineConfigCategory.bytes
  16. 0 0
      Config/Excel/cs/StartConfig/RouterTest/StartProcessConfigCategory.bytes
  17. 0 0
      Config/Excel/cs/StartConfig/RouterTest/StartSceneConfigCategory.bytes
  18. 0 0
      Config/Excel/cs/StartConfig/RouterTest/StartZoneConfigCategory.bytes
  19. 0 0
      Config/Excel/cs/UnitConfigCategory.bytes
  20. 0 0
      Config/Excel/s/StartConfig/Benchmark/StartMachineConfigCategory.bytes
  21. 0 0
      Config/Excel/s/StartConfig/Benchmark/StartProcessConfigCategory.bytes
  22. 0 0
      Config/Excel/s/StartConfig/Benchmark/StartSceneConfigCategory.bytes
  23. 0 0
      Config/Excel/s/StartConfig/Benchmark/StartZoneConfigCategory.bytes
  24. 0 0
      Config/Excel/s/StartConfig/Localhost/StartMachineConfigCategory.bytes
  25. 0 0
      Config/Excel/s/StartConfig/Localhost/StartProcessConfigCategory.bytes
  26. 0 0
      Config/Excel/s/StartConfig/Localhost/StartSceneConfigCategory.bytes
  27. 0 0
      Config/Excel/s/StartConfig/Localhost/StartZoneConfigCategory.bytes
  28. 0 0
      Config/Excel/s/StartConfig/Release/StartMachineConfigCategory.bytes
  29. 0 0
      Config/Excel/s/StartConfig/Release/StartProcessConfigCategory.bytes
  30. 0 0
      Config/Excel/s/StartConfig/Release/StartSceneConfigCategory.bytes
  31. 0 0
      Config/Excel/s/StartConfig/Release/StartZoneConfigCategory.bytes
  32. 0 0
      Config/Excel/s/StartConfig/RouterTest/StartMachineConfigCategory.bytes
  33. 0 0
      Config/Excel/s/StartConfig/RouterTest/StartProcessConfigCategory.bytes
  34. 0 0
      Config/Excel/s/StartConfig/RouterTest/StartSceneConfigCategory.bytes
  35. 0 0
      Config/Excel/s/StartConfig/RouterTest/StartZoneConfigCategory.bytes
  36. 0 0
      Config/Excel/s/UnitConfigCategory.bytes
  37. 0 0
      Config/Json/c/UnitConfig.txt
  38. 0 0
      Config/Json/cs/StartConfig/Benchmark/StartMachineConfig.txt
  39. 0 0
      Config/Json/cs/StartConfig/Benchmark/StartProcessConfig.txt
  40. 0 0
      Config/Json/cs/StartConfig/Benchmark/StartSceneConfig.txt
  41. 0 0
      Config/Json/cs/StartConfig/Benchmark/StartZoneConfig.txt
  42. 0 0
      Config/Json/cs/StartConfig/Localhost/StartMachineConfig.txt
  43. 0 0
      Config/Json/cs/StartConfig/Localhost/StartProcessConfig.txt
  44. 0 0
      Config/Json/cs/StartConfig/Localhost/StartSceneConfig.txt
  45. 0 0
      Config/Json/cs/StartConfig/Localhost/StartZoneConfig.txt
  46. 0 0
      Config/Json/cs/StartConfig/Release/StartMachineConfig.txt
  47. 0 0
      Config/Json/cs/StartConfig/Release/StartProcessConfig.txt
  48. 0 0
      Config/Json/cs/StartConfig/Release/StartSceneConfig.txt
  49. 0 0
      Config/Json/cs/StartConfig/Release/StartZoneConfig.txt
  50. 0 0
      Config/Json/cs/StartConfig/RouterTest/StartMachineConfig.txt
  51. 0 0
      Config/Json/cs/StartConfig/RouterTest/StartProcessConfig.txt
  52. 0 0
      Config/Json/cs/StartConfig/RouterTest/StartSceneConfig.txt
  53. 0 0
      Config/Json/cs/StartConfig/RouterTest/StartZoneConfig.txt
  54. 0 0
      Config/Json/cs/UnitConfig.txt
  55. 0 0
      Config/Json/s/StartConfig/Benchmark/StartMachineConfig.txt
  56. 0 0
      Config/Json/s/StartConfig/Benchmark/StartProcessConfig.txt
  57. 0 0
      Config/Json/s/StartConfig/Benchmark/StartSceneConfig.txt
  58. 0 0
      Config/Json/s/StartConfig/Benchmark/StartZoneConfig.txt
  59. 0 0
      Config/Json/s/StartConfig/Localhost/StartMachineConfig.txt
  60. 0 0
      Config/Json/s/StartConfig/Localhost/StartProcessConfig.txt
  61. 0 0
      Config/Json/s/StartConfig/Localhost/StartSceneConfig.txt
  62. 0 0
      Config/Json/s/StartConfig/Localhost/StartZoneConfig.txt
  63. 0 0
      Config/Json/s/StartConfig/Release/StartMachineConfig.txt
  64. 0 0
      Config/Json/s/StartConfig/Release/StartProcessConfig.txt
  65. 0 0
      Config/Json/s/StartConfig/Release/StartSceneConfig.txt
  66. 0 0
      Config/Json/s/StartConfig/Release/StartZoneConfig.txt
  67. 0 0
      Config/Json/s/StartConfig/RouterTest/StartMachineConfig.txt
  68. 0 0
      Config/Json/s/StartConfig/RouterTest/StartProcessConfig.txt
  69. 0 0
      Config/Json/s/StartConfig/RouterTest/StartSceneConfig.txt
  70. 0 0
      Config/Json/s/StartConfig/RouterTest/StartZoneConfig.txt
  71. 0 0
      Config/Json/s/UnitConfig.txt
  72. 0 71
      Generate/Client/Excel/Statesync/UnitConfig.cs
  73. 0 92
      Generate/Client/Proto/Core/ClientMessage_C_1000.cs
  74. 0 1122
      Generate/Client/Proto/Statesync/StateSyncOuter_C_10001.cs
  75. 0 69
      Generate/ClientServer/Excel/Core/StartMachineConfig.cs
  76. 0 67
      Generate/ClientServer/Excel/Core/StartProcessConfig.cs
  77. 0 73
      Generate/ClientServer/Excel/Core/StartSceneConfig.cs
  78. 0 67
      Generate/ClientServer/Excel/Core/StartZoneConfig.cs
  79. 0 73
      Generate/ClientServer/Excel/Statesync/UnitConfig.cs
  80. 0 92
      Generate/ClientServer/Proto/Core/ClientMessage_C_1000.cs
  81. 0 826
      Generate/ClientServer/Proto/Statesync/StateSyncInner_S_20001.cs
  82. 0 1122
      Generate/ClientServer/Proto/Statesync/StateSyncOuter_C_10001.cs
  83. 0 69
      Generate/Server/Excel/Core/StartMachineConfig.cs
  84. 0 67
      Generate/Server/Excel/Core/StartProcessConfig.cs
  85. 0 73
      Generate/Server/Excel/Core/StartSceneConfig.cs
  86. 0 67
      Generate/Server/Excel/Core/StartZoneConfig.cs
  87. 0 71
      Generate/Server/Excel/Statesync/UnitConfig.cs
  88. 0 92
      Generate/Server/Proto/Core/ClientMessage_C_1000.cs
  89. 0 826
      Generate/Server/Proto/Statesync/StateSyncInner_S_20001.cs
  90. 0 1122
      Generate/Server/Proto/Statesync/StateSyncOuter_C_10001.cs
  91. 30 28
      Share/Tool/ExcelExporter/ExcelExporter.cs
  92. 10 71
      Share/Tool/Proto2CS/Proto2CS.cs
  93. 3 3
      Share/Tool/Share.Tool.csproj
  94. 0 8
      Unity/Assets/Bundles/Config/Statesync.meta
  95. 0 0
      Unity/Assets/Bundles/Config/UnitConfigCategory.bytes
  96. 1 1
      Unity/Assets/Bundles/Config/UnitConfigCategory.bytes.meta
  97. 2 4
      Unity/Packages/com.et.loader/Editor/AssetPostProcessor/OnGenerateCSProjectProcessor.cs

+ 2 - 1
.gitignore

@@ -50,4 +50,5 @@ obj/
 /Tools/MongoDB
 Publish/
 */Temp/
-*/TestResults/
+*/TestResults/
+Generate

+ 0 - 0
Config/Excel/c/Statesync/UnitConfigCategory.bytes → Config/Excel/c/UnitConfigCategory.bytes


+ 0 - 0
Config/Excel/cs/Core/StartConfig/Benchmark/StartMachineConfigCategory.bytes → Config/Excel/cs/StartConfig/Benchmark/StartMachineConfigCategory.bytes


+ 0 - 0
Config/Excel/cs/Core/StartConfig/Benchmark/StartProcessConfigCategory.bytes → Config/Excel/cs/StartConfig/Benchmark/StartProcessConfigCategory.bytes


+ 0 - 0
Config/Excel/cs/Core/StartConfig/Benchmark/StartSceneConfigCategory.bytes → Config/Excel/cs/StartConfig/Benchmark/StartSceneConfigCategory.bytes


+ 0 - 0
Config/Excel/cs/Core/StartConfig/Benchmark/StartZoneConfigCategory.bytes → Config/Excel/cs/StartConfig/Benchmark/StartZoneConfigCategory.bytes


+ 0 - 0
Config/Excel/cs/Core/StartConfig/Localhost/StartMachineConfigCategory.bytes → Config/Excel/cs/StartConfig/Localhost/StartMachineConfigCategory.bytes


+ 0 - 0
Config/Excel/cs/Core/StartConfig/Localhost/StartProcessConfigCategory.bytes → Config/Excel/cs/StartConfig/Localhost/StartProcessConfigCategory.bytes


+ 0 - 0
Config/Excel/cs/Core/StartConfig/Localhost/StartSceneConfigCategory.bytes → Config/Excel/cs/StartConfig/Localhost/StartSceneConfigCategory.bytes


+ 0 - 0
Config/Excel/cs/Core/StartConfig/Localhost/StartZoneConfigCategory.bytes → Config/Excel/cs/StartConfig/Localhost/StartZoneConfigCategory.bytes


+ 0 - 0
Config/Excel/cs/Core/StartConfig/Release/StartMachineConfigCategory.bytes → Config/Excel/cs/StartConfig/Release/StartMachineConfigCategory.bytes


+ 0 - 0
Config/Excel/cs/Core/StartConfig/Release/StartProcessConfigCategory.bytes → Config/Excel/cs/StartConfig/Release/StartProcessConfigCategory.bytes


+ 0 - 0
Config/Excel/cs/Core/StartConfig/Release/StartSceneConfigCategory.bytes → Config/Excel/cs/StartConfig/Release/StartSceneConfigCategory.bytes


+ 0 - 0
Config/Excel/cs/Core/StartConfig/Release/StartZoneConfigCategory.bytes → Config/Excel/cs/StartConfig/Release/StartZoneConfigCategory.bytes


+ 0 - 0
Config/Excel/cs/Core/StartConfig/RouterTest/StartMachineConfigCategory.bytes → Config/Excel/cs/StartConfig/RouterTest/StartMachineConfigCategory.bytes


+ 0 - 0
Config/Excel/cs/Core/StartConfig/RouterTest/StartProcessConfigCategory.bytes → Config/Excel/cs/StartConfig/RouterTest/StartProcessConfigCategory.bytes


+ 0 - 0
Config/Excel/cs/Core/StartConfig/RouterTest/StartSceneConfigCategory.bytes → Config/Excel/cs/StartConfig/RouterTest/StartSceneConfigCategory.bytes


+ 0 - 0
Config/Excel/cs/Core/StartConfig/RouterTest/StartZoneConfigCategory.bytes → Config/Excel/cs/StartConfig/RouterTest/StartZoneConfigCategory.bytes


+ 0 - 0
Config/Excel/cs/Statesync/UnitConfigCategory.bytes → Config/Excel/cs/UnitConfigCategory.bytes


+ 0 - 0
Config/Excel/s/Core/StartConfig/Benchmark/StartMachineConfigCategory.bytes → Config/Excel/s/StartConfig/Benchmark/StartMachineConfigCategory.bytes


+ 0 - 0
Config/Excel/s/Core/StartConfig/Benchmark/StartProcessConfigCategory.bytes → Config/Excel/s/StartConfig/Benchmark/StartProcessConfigCategory.bytes


+ 0 - 0
Config/Excel/s/Core/StartConfig/Benchmark/StartSceneConfigCategory.bytes → Config/Excel/s/StartConfig/Benchmark/StartSceneConfigCategory.bytes


+ 0 - 0
Config/Excel/s/Core/StartConfig/Benchmark/StartZoneConfigCategory.bytes → Config/Excel/s/StartConfig/Benchmark/StartZoneConfigCategory.bytes


+ 0 - 0
Config/Excel/s/Core/StartConfig/Localhost/StartMachineConfigCategory.bytes → Config/Excel/s/StartConfig/Localhost/StartMachineConfigCategory.bytes


+ 0 - 0
Config/Excel/s/Core/StartConfig/Localhost/StartProcessConfigCategory.bytes → Config/Excel/s/StartConfig/Localhost/StartProcessConfigCategory.bytes


+ 0 - 0
Config/Excel/s/Core/StartConfig/Localhost/StartSceneConfigCategory.bytes → Config/Excel/s/StartConfig/Localhost/StartSceneConfigCategory.bytes


+ 0 - 0
Config/Excel/s/Core/StartConfig/Localhost/StartZoneConfigCategory.bytes → Config/Excel/s/StartConfig/Localhost/StartZoneConfigCategory.bytes


+ 0 - 0
Config/Excel/s/Core/StartConfig/Release/StartMachineConfigCategory.bytes → Config/Excel/s/StartConfig/Release/StartMachineConfigCategory.bytes


+ 0 - 0
Config/Excel/s/Core/StartConfig/Release/StartProcessConfigCategory.bytes → Config/Excel/s/StartConfig/Release/StartProcessConfigCategory.bytes


+ 0 - 0
Config/Excel/s/Core/StartConfig/Release/StartSceneConfigCategory.bytes → Config/Excel/s/StartConfig/Release/StartSceneConfigCategory.bytes


+ 0 - 0
Config/Excel/s/Core/StartConfig/Release/StartZoneConfigCategory.bytes → Config/Excel/s/StartConfig/Release/StartZoneConfigCategory.bytes


+ 0 - 0
Config/Excel/s/Core/StartConfig/RouterTest/StartMachineConfigCategory.bytes → Config/Excel/s/StartConfig/RouterTest/StartMachineConfigCategory.bytes


+ 0 - 0
Config/Excel/s/Core/StartConfig/RouterTest/StartProcessConfigCategory.bytes → Config/Excel/s/StartConfig/RouterTest/StartProcessConfigCategory.bytes


+ 0 - 0
Config/Excel/s/Core/StartConfig/RouterTest/StartSceneConfigCategory.bytes → Config/Excel/s/StartConfig/RouterTest/StartSceneConfigCategory.bytes


+ 0 - 0
Config/Excel/s/Core/StartConfig/RouterTest/StartZoneConfigCategory.bytes → Config/Excel/s/StartConfig/RouterTest/StartZoneConfigCategory.bytes


+ 0 - 0
Config/Excel/s/Statesync/UnitConfigCategory.bytes → Config/Excel/s/UnitConfigCategory.bytes


+ 0 - 0
Config/Json/c/Statesync/UnitConfig.txt → Config/Json/c/UnitConfig.txt


+ 0 - 0
Config/Json/cs/Core/StartConfig/Benchmark/StartMachineConfig.txt → Config/Json/cs/StartConfig/Benchmark/StartMachineConfig.txt


+ 0 - 0
Config/Json/cs/Core/StartConfig/Benchmark/StartProcessConfig.txt → Config/Json/cs/StartConfig/Benchmark/StartProcessConfig.txt


+ 0 - 0
Config/Json/cs/Core/StartConfig/Benchmark/StartSceneConfig.txt → Config/Json/cs/StartConfig/Benchmark/StartSceneConfig.txt


+ 0 - 0
Config/Json/cs/Core/StartConfig/Benchmark/StartZoneConfig.txt → Config/Json/cs/StartConfig/Benchmark/StartZoneConfig.txt


+ 0 - 0
Config/Json/cs/Core/StartConfig/Localhost/StartMachineConfig.txt → Config/Json/cs/StartConfig/Localhost/StartMachineConfig.txt


+ 0 - 0
Config/Json/cs/Core/StartConfig/Localhost/StartProcessConfig.txt → Config/Json/cs/StartConfig/Localhost/StartProcessConfig.txt


+ 0 - 0
Config/Json/cs/Core/StartConfig/Localhost/StartSceneConfig.txt → Config/Json/cs/StartConfig/Localhost/StartSceneConfig.txt


+ 0 - 0
Config/Json/cs/Core/StartConfig/Localhost/StartZoneConfig.txt → Config/Json/cs/StartConfig/Localhost/StartZoneConfig.txt


+ 0 - 0
Config/Json/cs/Core/StartConfig/Release/StartMachineConfig.txt → Config/Json/cs/StartConfig/Release/StartMachineConfig.txt


+ 0 - 0
Config/Json/cs/Core/StartConfig/Release/StartProcessConfig.txt → Config/Json/cs/StartConfig/Release/StartProcessConfig.txt


+ 0 - 0
Config/Json/cs/Core/StartConfig/Release/StartSceneConfig.txt → Config/Json/cs/StartConfig/Release/StartSceneConfig.txt


+ 0 - 0
Config/Json/cs/Core/StartConfig/Release/StartZoneConfig.txt → Config/Json/cs/StartConfig/Release/StartZoneConfig.txt


+ 0 - 0
Config/Json/cs/Core/StartConfig/RouterTest/StartMachineConfig.txt → Config/Json/cs/StartConfig/RouterTest/StartMachineConfig.txt


+ 0 - 0
Config/Json/cs/Core/StartConfig/RouterTest/StartProcessConfig.txt → Config/Json/cs/StartConfig/RouterTest/StartProcessConfig.txt


+ 0 - 0
Config/Json/cs/Core/StartConfig/RouterTest/StartSceneConfig.txt → Config/Json/cs/StartConfig/RouterTest/StartSceneConfig.txt


+ 0 - 0
Config/Json/cs/Core/StartConfig/RouterTest/StartZoneConfig.txt → Config/Json/cs/StartConfig/RouterTest/StartZoneConfig.txt


+ 0 - 0
Config/Json/cs/Statesync/UnitConfig.txt → Config/Json/cs/UnitConfig.txt


+ 0 - 0
Config/Json/s/Core/StartConfig/Benchmark/StartMachineConfig.txt → Config/Json/s/StartConfig/Benchmark/StartMachineConfig.txt


+ 0 - 0
Config/Json/s/Core/StartConfig/Benchmark/StartProcessConfig.txt → Config/Json/s/StartConfig/Benchmark/StartProcessConfig.txt


+ 0 - 0
Config/Json/s/Core/StartConfig/Benchmark/StartSceneConfig.txt → Config/Json/s/StartConfig/Benchmark/StartSceneConfig.txt


+ 0 - 0
Config/Json/s/Core/StartConfig/Benchmark/StartZoneConfig.txt → Config/Json/s/StartConfig/Benchmark/StartZoneConfig.txt


+ 0 - 0
Config/Json/s/Core/StartConfig/Localhost/StartMachineConfig.txt → Config/Json/s/StartConfig/Localhost/StartMachineConfig.txt


+ 0 - 0
Config/Json/s/Core/StartConfig/Localhost/StartProcessConfig.txt → Config/Json/s/StartConfig/Localhost/StartProcessConfig.txt


+ 0 - 0
Config/Json/s/Core/StartConfig/Localhost/StartSceneConfig.txt → Config/Json/s/StartConfig/Localhost/StartSceneConfig.txt


+ 0 - 0
Config/Json/s/Core/StartConfig/Localhost/StartZoneConfig.txt → Config/Json/s/StartConfig/Localhost/StartZoneConfig.txt


+ 0 - 0
Config/Json/s/Core/StartConfig/Release/StartMachineConfig.txt → Config/Json/s/StartConfig/Release/StartMachineConfig.txt


+ 0 - 0
Config/Json/s/Core/StartConfig/Release/StartProcessConfig.txt → Config/Json/s/StartConfig/Release/StartProcessConfig.txt


+ 0 - 0
Config/Json/s/Core/StartConfig/Release/StartSceneConfig.txt → Config/Json/s/StartConfig/Release/StartSceneConfig.txt


+ 0 - 0
Config/Json/s/Core/StartConfig/Release/StartZoneConfig.txt → Config/Json/s/StartConfig/Release/StartZoneConfig.txt


+ 0 - 0
Config/Json/s/Core/StartConfig/RouterTest/StartMachineConfig.txt → Config/Json/s/StartConfig/RouterTest/StartMachineConfig.txt


+ 0 - 0
Config/Json/s/Core/StartConfig/RouterTest/StartProcessConfig.txt → Config/Json/s/StartConfig/RouterTest/StartProcessConfig.txt


+ 0 - 0
Config/Json/s/Core/StartConfig/RouterTest/StartSceneConfig.txt → Config/Json/s/StartConfig/RouterTest/StartSceneConfig.txt


+ 0 - 0
Config/Json/s/Core/StartConfig/RouterTest/StartZoneConfig.txt → Config/Json/s/StartConfig/RouterTest/StartZoneConfig.txt


+ 0 - 0
Config/Json/s/Statesync/UnitConfig.txt → Config/Json/s/UnitConfig.txt


+ 0 - 71
Generate/Client/Excel/Statesync/UnitConfig.cs

@@ -1,71 +0,0 @@
-using System;
-using System.Collections.Generic;
-using MongoDB.Bson.Serialization.Attributes;
-using MongoDB.Bson.Serialization.Options;
-using System.ComponentModel;
-
-namespace ET
-{
-    [Config]
-    public partial class UnitConfigCategory : Singleton<UnitConfigCategory>, IMerge
-    {
-        [BsonElement]
-        [BsonDictionaryOptions(DictionaryRepresentation.ArrayOfArrays)]
-        private Dictionary<int, UnitConfig> dict = new();
-		
-        public void Merge(object o)
-        {
-            UnitConfigCategory s = o as UnitConfigCategory;
-            foreach (var kv in s.dict)
-            {
-                this.dict.Add(kv.Key, kv.Value);
-            }
-        }
-		
-        public UnitConfig Get(int id)
-        {
-            this.dict.TryGetValue(id, out UnitConfig item);
-
-            if (item == null)
-            {
-                throw new Exception($"配置找不到,配置表名: {nameof (UnitConfig)},配置id: {id}");
-            }
-
-            return item;
-        }
-		
-        public bool Contain(int id)
-        {
-            return this.dict.ContainsKey(id);
-        }
-
-        public Dictionary<int, UnitConfig> GetAll()
-        {
-            return this.dict;
-        }
-
-        public UnitConfig GetOne()
-        {
-            if (this.dict == null || this.dict.Count <= 0)
-            {
-                return null;
-            }
-            return this.dict.Values.GetEnumerator().Current;
-        }
-    }
-
-	public partial class UnitConfig: ProtoObject, IConfig
-	{
-		/// <summary>Id</summary>
-		public int Id { get; set; }
-		/// <summary>Type</summary>
-		public int Type { get; set; }
-		/// <summary>名字</summary>
-		public string Name { get; set; }
-		/// <summary>位置</summary>
-		public int Position { get; set; }
-		/// <summary>身高</summary>
-		public int Height { get; set; }
-
-	}
-}

+ 0 - 92
Generate/Client/Proto/Core/ClientMessage_C_1000.cs

@@ -1,92 +0,0 @@
-using MemoryPack;
-using System.Collections.Generic;
-
-namespace ET
-{
-    [MemoryPackable]
-    [Message(ClientMessage.Main2NetClient_Login)]
-    [ResponseType(nameof(NetClient2Main_Login))]
-    public partial class Main2NetClient_Login : MessageObject, IRequest
-    {
-        public static Main2NetClient_Login Create(bool isFromPool = false)
-        {
-            return ObjectPool.Fetch<Main2NetClient_Login>(isFromPool);
-        }
-
-        [MemoryPackOrder(0)]
-        public int RpcId { get; set; }
-
-        [MemoryPackOrder(1)]
-        public int OwnerFiberId { get; set; }
-
-        /// <summary>
-        /// 账号
-        /// </summary>
-        [MemoryPackOrder(2)]
-        public string Account { get; set; }
-
-        /// <summary>
-        /// 密码
-        /// </summary>
-        [MemoryPackOrder(3)]
-        public string Password { get; set; }
-
-        public override void Dispose()
-        {
-            if (!this.IsFromPool)
-            {
-                return;
-            }
-
-            this.RpcId = default;
-            this.OwnerFiberId = default;
-            this.Account = default;
-            this.Password = default;
-
-            ObjectPool.Recycle(this);
-        }
-    }
-
-    [MemoryPackable]
-    [Message(ClientMessage.NetClient2Main_Login)]
-    public partial class NetClient2Main_Login : MessageObject, IResponse
-    {
-        public static NetClient2Main_Login Create(bool isFromPool = false)
-        {
-            return ObjectPool.Fetch<NetClient2Main_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 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);
-        }
-    }
-
-    public static class ClientMessage
-    {
-        public const ushort Main2NetClient_Login = 1001;
-        public const ushort NetClient2Main_Login = 1002;
-    }
-}

+ 0 - 1122
Generate/Client/Proto/Statesync/StateSyncOuter_C_10001.cs

@@ -1,1122 +0,0 @@
-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;
-    }
-}

+ 0 - 69
Generate/ClientServer/Excel/Core/StartMachineConfig.cs

@@ -1,69 +0,0 @@
-using System;
-using System.Collections.Generic;
-using MongoDB.Bson.Serialization.Attributes;
-using MongoDB.Bson.Serialization.Options;
-using System.ComponentModel;
-
-namespace ET
-{
-    [Config]
-    public partial class StartMachineConfigCategory : Singleton<StartMachineConfigCategory>, IMerge
-    {
-        [BsonElement]
-        [BsonDictionaryOptions(DictionaryRepresentation.ArrayOfArrays)]
-        private Dictionary<int, StartMachineConfig> dict = new();
-		
-        public void Merge(object o)
-        {
-            StartMachineConfigCategory s = o as StartMachineConfigCategory;
-            foreach (var kv in s.dict)
-            {
-                this.dict.Add(kv.Key, kv.Value);
-            }
-        }
-		
-        public StartMachineConfig Get(int id)
-        {
-            this.dict.TryGetValue(id, out StartMachineConfig item);
-
-            if (item == null)
-            {
-                throw new Exception($"配置找不到,配置表名: {nameof (StartMachineConfig)},配置id: {id}");
-            }
-
-            return item;
-        }
-		
-        public bool Contain(int id)
-        {
-            return this.dict.ContainsKey(id);
-        }
-
-        public Dictionary<int, StartMachineConfig> GetAll()
-        {
-            return this.dict;
-        }
-
-        public StartMachineConfig GetOne()
-        {
-            if (this.dict == null || this.dict.Count <= 0)
-            {
-                return null;
-            }
-            return this.dict.Values.GetEnumerator().Current;
-        }
-    }
-
-	public partial class StartMachineConfig: ProtoObject, IConfig
-	{
-		/// <summary>Id</summary>
-		public int Id { get; set; }
-		/// <summary>内网地址</summary>
-		public string InnerIP { get; set; }
-		/// <summary>外网地址</summary>
-		public string OuterIP { get; set; }
-		/// <summary>守护进程端口</summary>
-		public string WatcherPort { get; set; }
-
-	}
-}

+ 0 - 67
Generate/ClientServer/Excel/Core/StartProcessConfig.cs

@@ -1,67 +0,0 @@
-using System;
-using System.Collections.Generic;
-using MongoDB.Bson.Serialization.Attributes;
-using MongoDB.Bson.Serialization.Options;
-using System.ComponentModel;
-
-namespace ET
-{
-    [Config]
-    public partial class StartProcessConfigCategory : Singleton<StartProcessConfigCategory>, IMerge
-    {
-        [BsonElement]
-        [BsonDictionaryOptions(DictionaryRepresentation.ArrayOfArrays)]
-        private Dictionary<int, StartProcessConfig> dict = new();
-		
-        public void Merge(object o)
-        {
-            StartProcessConfigCategory s = o as StartProcessConfigCategory;
-            foreach (var kv in s.dict)
-            {
-                this.dict.Add(kv.Key, kv.Value);
-            }
-        }
-		
-        public StartProcessConfig Get(int id)
-        {
-            this.dict.TryGetValue(id, out StartProcessConfig item);
-
-            if (item == null)
-            {
-                throw new Exception($"配置找不到,配置表名: {nameof (StartProcessConfig)},配置id: {id}");
-            }
-
-            return item;
-        }
-		
-        public bool Contain(int id)
-        {
-            return this.dict.ContainsKey(id);
-        }
-
-        public Dictionary<int, StartProcessConfig> GetAll()
-        {
-            return this.dict;
-        }
-
-        public StartProcessConfig GetOne()
-        {
-            if (this.dict == null || this.dict.Count <= 0)
-            {
-                return null;
-            }
-            return this.dict.Values.GetEnumerator().Current;
-        }
-    }
-
-	public partial class StartProcessConfig: ProtoObject, IConfig
-	{
-		/// <summary>Id</summary>
-		public int Id { get; set; }
-		/// <summary>所属机器</summary>
-		public int MachineId { get; set; }
-		/// <summary>外网端口</summary>
-		public int Port { get; set; }
-
-	}
-}

+ 0 - 73
Generate/ClientServer/Excel/Core/StartSceneConfig.cs

@@ -1,73 +0,0 @@
-using System;
-using System.Collections.Generic;
-using MongoDB.Bson.Serialization.Attributes;
-using MongoDB.Bson.Serialization.Options;
-using System.ComponentModel;
-
-namespace ET
-{
-    [Config]
-    public partial class StartSceneConfigCategory : Singleton<StartSceneConfigCategory>, IMerge
-    {
-        [BsonElement]
-        [BsonDictionaryOptions(DictionaryRepresentation.ArrayOfArrays)]
-        private Dictionary<int, StartSceneConfig> dict = new();
-		
-        public void Merge(object o)
-        {
-            StartSceneConfigCategory s = o as StartSceneConfigCategory;
-            foreach (var kv in s.dict)
-            {
-                this.dict.Add(kv.Key, kv.Value);
-            }
-        }
-		
-        public StartSceneConfig Get(int id)
-        {
-            this.dict.TryGetValue(id, out StartSceneConfig item);
-
-            if (item == null)
-            {
-                throw new Exception($"配置找不到,配置表名: {nameof (StartSceneConfig)},配置id: {id}");
-            }
-
-            return item;
-        }
-		
-        public bool Contain(int id)
-        {
-            return this.dict.ContainsKey(id);
-        }
-
-        public Dictionary<int, StartSceneConfig> GetAll()
-        {
-            return this.dict;
-        }
-
-        public StartSceneConfig GetOne()
-        {
-            if (this.dict == null || this.dict.Count <= 0)
-            {
-                return null;
-            }
-            return this.dict.Values.GetEnumerator().Current;
-        }
-    }
-
-	public partial class StartSceneConfig: ProtoObject, IConfig
-	{
-		/// <summary>Id</summary>
-		public int Id { get; set; }
-		/// <summary>所属进程</summary>
-		public int Process { get; set; }
-		/// <summary>所属区</summary>
-		public int Zone { get; set; }
-		/// <summary>类型</summary>
-		public string SceneType { get; set; }
-		/// <summary>名字</summary>
-		public string Name { get; set; }
-		/// <summary>外网端口</summary>
-		public int Port { get; set; }
-
-	}
-}

+ 0 - 67
Generate/ClientServer/Excel/Core/StartZoneConfig.cs

@@ -1,67 +0,0 @@
-using System;
-using System.Collections.Generic;
-using MongoDB.Bson.Serialization.Attributes;
-using MongoDB.Bson.Serialization.Options;
-using System.ComponentModel;
-
-namespace ET
-{
-    [Config]
-    public partial class StartZoneConfigCategory : Singleton<StartZoneConfigCategory>, IMerge
-    {
-        [BsonElement]
-        [BsonDictionaryOptions(DictionaryRepresentation.ArrayOfArrays)]
-        private Dictionary<int, StartZoneConfig> dict = new();
-		
-        public void Merge(object o)
-        {
-            StartZoneConfigCategory s = o as StartZoneConfigCategory;
-            foreach (var kv in s.dict)
-            {
-                this.dict.Add(kv.Key, kv.Value);
-            }
-        }
-		
-        public StartZoneConfig Get(int id)
-        {
-            this.dict.TryGetValue(id, out StartZoneConfig item);
-
-            if (item == null)
-            {
-                throw new Exception($"配置找不到,配置表名: {nameof (StartZoneConfig)},配置id: {id}");
-            }
-
-            return item;
-        }
-		
-        public bool Contain(int id)
-        {
-            return this.dict.ContainsKey(id);
-        }
-
-        public Dictionary<int, StartZoneConfig> GetAll()
-        {
-            return this.dict;
-        }
-
-        public StartZoneConfig GetOne()
-        {
-            if (this.dict == null || this.dict.Count <= 0)
-            {
-                return null;
-            }
-            return this.dict.Values.GetEnumerator().Current;
-        }
-    }
-
-	public partial class StartZoneConfig: ProtoObject, IConfig
-	{
-		/// <summary>Id</summary>
-		public int Id { get; set; }
-		/// <summary>数据库地址</summary>
-		public string DBConnection { get; set; }
-		/// <summary>数据库名</summary>
-		public string DBName { get; set; }
-
-	}
-}

+ 0 - 73
Generate/ClientServer/Excel/Statesync/UnitConfig.cs

@@ -1,73 +0,0 @@
-using System;
-using System.Collections.Generic;
-using MongoDB.Bson.Serialization.Attributes;
-using MongoDB.Bson.Serialization.Options;
-using System.ComponentModel;
-
-namespace ET
-{
-    [Config]
-    public partial class UnitConfigCategory : Singleton<UnitConfigCategory>, IMerge
-    {
-        [BsonElement]
-        [BsonDictionaryOptions(DictionaryRepresentation.ArrayOfArrays)]
-        private Dictionary<int, UnitConfig> dict = new();
-		
-        public void Merge(object o)
-        {
-            UnitConfigCategory s = o as UnitConfigCategory;
-            foreach (var kv in s.dict)
-            {
-                this.dict.Add(kv.Key, kv.Value);
-            }
-        }
-		
-        public UnitConfig Get(int id)
-        {
-            this.dict.TryGetValue(id, out UnitConfig item);
-
-            if (item == null)
-            {
-                throw new Exception($"配置找不到,配置表名: {nameof (UnitConfig)},配置id: {id}");
-            }
-
-            return item;
-        }
-		
-        public bool Contain(int id)
-        {
-            return this.dict.ContainsKey(id);
-        }
-
-        public Dictionary<int, UnitConfig> GetAll()
-        {
-            return this.dict;
-        }
-
-        public UnitConfig GetOne()
-        {
-            if (this.dict == null || this.dict.Count <= 0)
-            {
-                return null;
-            }
-            return this.dict.Values.GetEnumerator().Current;
-        }
-    }
-
-	public partial class UnitConfig: ProtoObject, IConfig
-	{
-		/// <summary>Id</summary>
-		public int Id { get; set; }
-		/// <summary>Type</summary>
-		public int Type { get; set; }
-		/// <summary>名字</summary>
-		public string Name { get; set; }
-		/// <summary>位置</summary>
-		public int Position { get; set; }
-		/// <summary>身高</summary>
-		public int Height { get; set; }
-		/// <summary>体重</summary>
-		public int Weight { get; set; }
-
-	}
-}

+ 0 - 92
Generate/ClientServer/Proto/Core/ClientMessage_C_1000.cs

@@ -1,92 +0,0 @@
-using MemoryPack;
-using System.Collections.Generic;
-
-namespace ET
-{
-    [MemoryPackable]
-    [Message(ClientMessage.Main2NetClient_Login)]
-    [ResponseType(nameof(NetClient2Main_Login))]
-    public partial class Main2NetClient_Login : MessageObject, IRequest
-    {
-        public static Main2NetClient_Login Create(bool isFromPool = false)
-        {
-            return ObjectPool.Fetch<Main2NetClient_Login>(isFromPool);
-        }
-
-        [MemoryPackOrder(0)]
-        public int RpcId { get; set; }
-
-        [MemoryPackOrder(1)]
-        public int OwnerFiberId { get; set; }
-
-        /// <summary>
-        /// 账号
-        /// </summary>
-        [MemoryPackOrder(2)]
-        public string Account { get; set; }
-
-        /// <summary>
-        /// 密码
-        /// </summary>
-        [MemoryPackOrder(3)]
-        public string Password { get; set; }
-
-        public override void Dispose()
-        {
-            if (!this.IsFromPool)
-            {
-                return;
-            }
-
-            this.RpcId = default;
-            this.OwnerFiberId = default;
-            this.Account = default;
-            this.Password = default;
-
-            ObjectPool.Recycle(this);
-        }
-    }
-
-    [MemoryPackable]
-    [Message(ClientMessage.NetClient2Main_Login)]
-    public partial class NetClient2Main_Login : MessageObject, IResponse
-    {
-        public static NetClient2Main_Login Create(bool isFromPool = false)
-        {
-            return ObjectPool.Fetch<NetClient2Main_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 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);
-        }
-    }
-
-    public static class ClientMessage
-    {
-        public const ushort Main2NetClient_Login = 1001;
-        public const ushort NetClient2Main_Login = 1002;
-    }
-}

+ 0 - 826
Generate/ClientServer/Proto/Statesync/StateSyncInner_S_20001.cs

@@ -1,826 +0,0 @@
-using MemoryPack;
-using System.Collections.Generic;
-
-namespace ET
-{
-    [MemoryPackable]
-    [Message(StateSyncInner.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(StateSyncInner.M2A_Reload)]
-    [ResponseType(nameof(A2M_Reload))]
-    public partial class M2A_Reload : MessageObject, IRequest
-    {
-        public static M2A_Reload Create(bool isFromPool = false)
-        {
-            return ObjectPool.Fetch<M2A_Reload>(isFromPool);
-        }
-
-        [MemoryPackOrder(0)]
-        public int RpcId { get; set; }
-
-        public override void Dispose()
-        {
-            if (!this.IsFromPool)
-            {
-                return;
-            }
-
-            this.RpcId = default;
-
-            ObjectPool.Recycle(this);
-        }
-    }
-
-    [MemoryPackable]
-    [Message(StateSyncInner.A2M_Reload)]
-    public partial class A2M_Reload : MessageObject, IResponse
-    {
-        public static A2M_Reload Create(bool isFromPool = false)
-        {
-            return ObjectPool.Fetch<A2M_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(StateSyncInner.G2G_LockRequest)]
-    [ResponseType(nameof(G2G_LockResponse))]
-    public partial class G2G_LockRequest : MessageObject, IRequest
-    {
-        public static G2G_LockRequest Create(bool isFromPool = false)
-        {
-            return ObjectPool.Fetch<G2G_LockRequest>(isFromPool);
-        }
-
-        [MemoryPackOrder(0)]
-        public int RpcId { get; set; }
-
-        [MemoryPackOrder(1)]
-        public long Id { get; set; }
-
-        [MemoryPackOrder(2)]
-        public string Address { get; set; }
-
-        public override void Dispose()
-        {
-            if (!this.IsFromPool)
-            {
-                return;
-            }
-
-            this.RpcId = default;
-            this.Id = default;
-            this.Address = default;
-
-            ObjectPool.Recycle(this);
-        }
-    }
-
-    [MemoryPackable]
-    [Message(StateSyncInner.G2G_LockResponse)]
-    public partial class G2G_LockResponse : MessageObject, IResponse
-    {
-        public static G2G_LockResponse Create(bool isFromPool = false)
-        {
-            return ObjectPool.Fetch<G2G_LockResponse>(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(StateSyncInner.G2G_LockReleaseRequest)]
-    [ResponseType(nameof(G2G_LockReleaseResponse))]
-    public partial class G2G_LockReleaseRequest : MessageObject, IRequest
-    {
-        public static G2G_LockReleaseRequest Create(bool isFromPool = false)
-        {
-            return ObjectPool.Fetch<G2G_LockReleaseRequest>(isFromPool);
-        }
-
-        [MemoryPackOrder(0)]
-        public int RpcId { get; set; }
-
-        [MemoryPackOrder(1)]
-        public long Id { get; set; }
-
-        [MemoryPackOrder(2)]
-        public string Address { get; set; }
-
-        public override void Dispose()
-        {
-            if (!this.IsFromPool)
-            {
-                return;
-            }
-
-            this.RpcId = default;
-            this.Id = default;
-            this.Address = default;
-
-            ObjectPool.Recycle(this);
-        }
-    }
-
-    [MemoryPackable]
-    [Message(StateSyncInner.G2G_LockReleaseResponse)]
-    public partial class G2G_LockReleaseResponse : MessageObject, IResponse
-    {
-        public static G2G_LockReleaseResponse Create(bool isFromPool = false)
-        {
-            return ObjectPool.Fetch<G2G_LockReleaseResponse>(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(StateSyncInner.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(StateSyncInner.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(StateSyncInner.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(StateSyncInner.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(StateSyncInner.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(StateSyncInner.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(StateSyncInner.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(StateSyncInner.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(StateSyncInner.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(StateSyncInner.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(StateSyncInner.R2G_GetLoginKey)]
-    [ResponseType(nameof(G2R_GetLoginKey))]
-    public partial class R2G_GetLoginKey : MessageObject, IRequest
-    {
-        public static R2G_GetLoginKey Create(bool isFromPool = false)
-        {
-            return ObjectPool.Fetch<R2G_GetLoginKey>(isFromPool);
-        }
-
-        [MemoryPackOrder(0)]
-        public int RpcId { get; set; }
-
-        [MemoryPackOrder(1)]
-        public string Account { get; set; }
-
-        public override void Dispose()
-        {
-            if (!this.IsFromPool)
-            {
-                return;
-            }
-
-            this.RpcId = default;
-            this.Account = default;
-
-            ObjectPool.Recycle(this);
-        }
-    }
-
-    [MemoryPackable]
-    [Message(StateSyncInner.G2R_GetLoginKey)]
-    public partial class G2R_GetLoginKey : MessageObject, IResponse
-    {
-        public static G2R_GetLoginKey Create(bool isFromPool = false)
-        {
-            return ObjectPool.Fetch<G2R_GetLoginKey>(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 Key { get; set; }
-
-        [MemoryPackOrder(4)]
-        public long GateId { get; set; }
-
-        public override void Dispose()
-        {
-            if (!this.IsFromPool)
-            {
-                return;
-            }
-
-            this.RpcId = default;
-            this.Error = default;
-            this.Message = default;
-            this.Key = default;
-            this.GateId = default;
-
-            ObjectPool.Recycle(this);
-        }
-    }
-
-    [MemoryPackable]
-    [Message(StateSyncInner.G2M_SessionDisconnect)]
-    public partial class G2M_SessionDisconnect : MessageObject, ILocationMessage
-    {
-        public static G2M_SessionDisconnect Create(bool isFromPool = false)
-        {
-            return ObjectPool.Fetch<G2M_SessionDisconnect>(isFromPool);
-        }
-
-        [MemoryPackOrder(0)]
-        public int RpcId { get; set; }
-
-        public override void Dispose()
-        {
-            if (!this.IsFromPool)
-            {
-                return;
-            }
-
-            this.RpcId = default;
-
-            ObjectPool.Recycle(this);
-        }
-    }
-
-    [MemoryPackable]
-    [Message(StateSyncInner.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);
-        }
-    }
-
-    [MemoryPackable]
-    [Message(StateSyncInner.M2M_UnitTransferRequest)]
-    [ResponseType(nameof(M2M_UnitTransferResponse))]
-    public partial class M2M_UnitTransferRequest : MessageObject, IRequest
-    {
-        public static M2M_UnitTransferRequest Create(bool isFromPool = false)
-        {
-            return ObjectPool.Fetch<M2M_UnitTransferRequest>(isFromPool);
-        }
-
-        [MemoryPackOrder(0)]
-        public int RpcId { get; set; }
-
-        [MemoryPackOrder(1)]
-        public ActorId OldActorId { get; set; }
-
-        [MemoryPackOrder(2)]
-        public byte[] Unit { get; set; }
-
-        [MemoryPackOrder(3)]
-        public List<byte[]> Entitys { get; set; } = new();
-
-        public override void Dispose()
-        {
-            if (!this.IsFromPool)
-            {
-                return;
-            }
-
-            this.RpcId = default;
-            this.OldActorId = default;
-            this.Unit = default;
-            this.Entitys.Clear();
-
-            ObjectPool.Recycle(this);
-        }
-    }
-
-    [MemoryPackable]
-    [Message(StateSyncInner.M2M_UnitTransferResponse)]
-    public partial class M2M_UnitTransferResponse : MessageObject, IResponse
-    {
-        public static M2M_UnitTransferResponse Create(bool isFromPool = false)
-        {
-            return ObjectPool.Fetch<M2M_UnitTransferResponse>(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 StateSyncInner
-    {
-        public const ushort ObjectQueryRequest = 20002;
-        public const ushort M2A_Reload = 20003;
-        public const ushort A2M_Reload = 20004;
-        public const ushort G2G_LockRequest = 20005;
-        public const ushort G2G_LockResponse = 20006;
-        public const ushort G2G_LockReleaseRequest = 20007;
-        public const ushort G2G_LockReleaseResponse = 20008;
-        public const ushort ObjectAddRequest = 20009;
-        public const ushort ObjectAddResponse = 20010;
-        public const ushort ObjectLockRequest = 20011;
-        public const ushort ObjectLockResponse = 20012;
-        public const ushort ObjectUnLockRequest = 20013;
-        public const ushort ObjectUnLockResponse = 20014;
-        public const ushort ObjectRemoveRequest = 20015;
-        public const ushort ObjectRemoveResponse = 20016;
-        public const ushort ObjectGetRequest = 20017;
-        public const ushort ObjectGetResponse = 20018;
-        public const ushort R2G_GetLoginKey = 20019;
-        public const ushort G2R_GetLoginKey = 20020;
-        public const ushort G2M_SessionDisconnect = 20021;
-        public const ushort ObjectQueryResponse = 20022;
-        public const ushort M2M_UnitTransferRequest = 20023;
-        public const ushort M2M_UnitTransferResponse = 20024;
-    }
-}

+ 0 - 1122
Generate/ClientServer/Proto/Statesync/StateSyncOuter_C_10001.cs

@@ -1,1122 +0,0 @@
-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;
-    }
-}

+ 0 - 69
Generate/Server/Excel/Core/StartMachineConfig.cs

@@ -1,69 +0,0 @@
-using System;
-using System.Collections.Generic;
-using MongoDB.Bson.Serialization.Attributes;
-using MongoDB.Bson.Serialization.Options;
-using System.ComponentModel;
-
-namespace ET
-{
-    [Config]
-    public partial class StartMachineConfigCategory : Singleton<StartMachineConfigCategory>, IMerge
-    {
-        [BsonElement]
-        [BsonDictionaryOptions(DictionaryRepresentation.ArrayOfArrays)]
-        private Dictionary<int, StartMachineConfig> dict = new();
-		
-        public void Merge(object o)
-        {
-            StartMachineConfigCategory s = o as StartMachineConfigCategory;
-            foreach (var kv in s.dict)
-            {
-                this.dict.Add(kv.Key, kv.Value);
-            }
-        }
-		
-        public StartMachineConfig Get(int id)
-        {
-            this.dict.TryGetValue(id, out StartMachineConfig item);
-
-            if (item == null)
-            {
-                throw new Exception($"配置找不到,配置表名: {nameof (StartMachineConfig)},配置id: {id}");
-            }
-
-            return item;
-        }
-		
-        public bool Contain(int id)
-        {
-            return this.dict.ContainsKey(id);
-        }
-
-        public Dictionary<int, StartMachineConfig> GetAll()
-        {
-            return this.dict;
-        }
-
-        public StartMachineConfig GetOne()
-        {
-            if (this.dict == null || this.dict.Count <= 0)
-            {
-                return null;
-            }
-            return this.dict.Values.GetEnumerator().Current;
-        }
-    }
-
-	public partial class StartMachineConfig: ProtoObject, IConfig
-	{
-		/// <summary>Id</summary>
-		public int Id { get; set; }
-		/// <summary>内网地址</summary>
-		public string InnerIP { get; set; }
-		/// <summary>外网地址</summary>
-		public string OuterIP { get; set; }
-		/// <summary>守护进程端口</summary>
-		public string WatcherPort { get; set; }
-
-	}
-}

+ 0 - 67
Generate/Server/Excel/Core/StartProcessConfig.cs

@@ -1,67 +0,0 @@
-using System;
-using System.Collections.Generic;
-using MongoDB.Bson.Serialization.Attributes;
-using MongoDB.Bson.Serialization.Options;
-using System.ComponentModel;
-
-namespace ET
-{
-    [Config]
-    public partial class StartProcessConfigCategory : Singleton<StartProcessConfigCategory>, IMerge
-    {
-        [BsonElement]
-        [BsonDictionaryOptions(DictionaryRepresentation.ArrayOfArrays)]
-        private Dictionary<int, StartProcessConfig> dict = new();
-		
-        public void Merge(object o)
-        {
-            StartProcessConfigCategory s = o as StartProcessConfigCategory;
-            foreach (var kv in s.dict)
-            {
-                this.dict.Add(kv.Key, kv.Value);
-            }
-        }
-		
-        public StartProcessConfig Get(int id)
-        {
-            this.dict.TryGetValue(id, out StartProcessConfig item);
-
-            if (item == null)
-            {
-                throw new Exception($"配置找不到,配置表名: {nameof (StartProcessConfig)},配置id: {id}");
-            }
-
-            return item;
-        }
-		
-        public bool Contain(int id)
-        {
-            return this.dict.ContainsKey(id);
-        }
-
-        public Dictionary<int, StartProcessConfig> GetAll()
-        {
-            return this.dict;
-        }
-
-        public StartProcessConfig GetOne()
-        {
-            if (this.dict == null || this.dict.Count <= 0)
-            {
-                return null;
-            }
-            return this.dict.Values.GetEnumerator().Current;
-        }
-    }
-
-	public partial class StartProcessConfig: ProtoObject, IConfig
-	{
-		/// <summary>Id</summary>
-		public int Id { get; set; }
-		/// <summary>所属机器</summary>
-		public int MachineId { get; set; }
-		/// <summary>外网端口</summary>
-		public int Port { get; set; }
-
-	}
-}

+ 0 - 73
Generate/Server/Excel/Core/StartSceneConfig.cs

@@ -1,73 +0,0 @@
-using System;
-using System.Collections.Generic;
-using MongoDB.Bson.Serialization.Attributes;
-using MongoDB.Bson.Serialization.Options;
-using System.ComponentModel;
-
-namespace ET
-{
-    [Config]
-    public partial class StartSceneConfigCategory : Singleton<StartSceneConfigCategory>, IMerge
-    {
-        [BsonElement]
-        [BsonDictionaryOptions(DictionaryRepresentation.ArrayOfArrays)]
-        private Dictionary<int, StartSceneConfig> dict = new();
-		
-        public void Merge(object o)
-        {
-            StartSceneConfigCategory s = o as StartSceneConfigCategory;
-            foreach (var kv in s.dict)
-            {
-                this.dict.Add(kv.Key, kv.Value);
-            }
-        }
-		
-        public StartSceneConfig Get(int id)
-        {
-            this.dict.TryGetValue(id, out StartSceneConfig item);
-
-            if (item == null)
-            {
-                throw new Exception($"配置找不到,配置表名: {nameof (StartSceneConfig)},配置id: {id}");
-            }
-
-            return item;
-        }
-		
-        public bool Contain(int id)
-        {
-            return this.dict.ContainsKey(id);
-        }
-
-        public Dictionary<int, StartSceneConfig> GetAll()
-        {
-            return this.dict;
-        }
-
-        public StartSceneConfig GetOne()
-        {
-            if (this.dict == null || this.dict.Count <= 0)
-            {
-                return null;
-            }
-            return this.dict.Values.GetEnumerator().Current;
-        }
-    }
-
-	public partial class StartSceneConfig: ProtoObject, IConfig
-	{
-		/// <summary>Id</summary>
-		public int Id { get; set; }
-		/// <summary>所属进程</summary>
-		public int Process { get; set; }
-		/// <summary>所属区</summary>
-		public int Zone { get; set; }
-		/// <summary>类型</summary>
-		public string SceneType { get; set; }
-		/// <summary>名字</summary>
-		public string Name { get; set; }
-		/// <summary>外网端口</summary>
-		public int Port { get; set; }
-
-	}
-}

+ 0 - 67
Generate/Server/Excel/Core/StartZoneConfig.cs

@@ -1,67 +0,0 @@
-using System;
-using System.Collections.Generic;
-using MongoDB.Bson.Serialization.Attributes;
-using MongoDB.Bson.Serialization.Options;
-using System.ComponentModel;
-
-namespace ET
-{
-    [Config]
-    public partial class StartZoneConfigCategory : Singleton<StartZoneConfigCategory>, IMerge
-    {
-        [BsonElement]
-        [BsonDictionaryOptions(DictionaryRepresentation.ArrayOfArrays)]
-        private Dictionary<int, StartZoneConfig> dict = new();
-		
-        public void Merge(object o)
-        {
-            StartZoneConfigCategory s = o as StartZoneConfigCategory;
-            foreach (var kv in s.dict)
-            {
-                this.dict.Add(kv.Key, kv.Value);
-            }
-        }
-		
-        public StartZoneConfig Get(int id)
-        {
-            this.dict.TryGetValue(id, out StartZoneConfig item);
-
-            if (item == null)
-            {
-                throw new Exception($"配置找不到,配置表名: {nameof (StartZoneConfig)},配置id: {id}");
-            }
-
-            return item;
-        }
-		
-        public bool Contain(int id)
-        {
-            return this.dict.ContainsKey(id);
-        }
-
-        public Dictionary<int, StartZoneConfig> GetAll()
-        {
-            return this.dict;
-        }
-
-        public StartZoneConfig GetOne()
-        {
-            if (this.dict == null || this.dict.Count <= 0)
-            {
-                return null;
-            }
-            return this.dict.Values.GetEnumerator().Current;
-        }
-    }
-
-	public partial class StartZoneConfig: ProtoObject, IConfig
-	{
-		/// <summary>Id</summary>
-		public int Id { get; set; }
-		/// <summary>数据库地址</summary>
-		public string DBConnection { get; set; }
-		/// <summary>数据库名</summary>
-		public string DBName { get; set; }
-
-	}
-}

+ 0 - 71
Generate/Server/Excel/Statesync/UnitConfig.cs

@@ -1,71 +0,0 @@
-using System;
-using System.Collections.Generic;
-using MongoDB.Bson.Serialization.Attributes;
-using MongoDB.Bson.Serialization.Options;
-using System.ComponentModel;
-
-namespace ET
-{
-    [Config]
-    public partial class UnitConfigCategory : Singleton<UnitConfigCategory>, IMerge
-    {
-        [BsonElement]
-        [BsonDictionaryOptions(DictionaryRepresentation.ArrayOfArrays)]
-        private Dictionary<int, UnitConfig> dict = new();
-		
-        public void Merge(object o)
-        {
-            UnitConfigCategory s = o as UnitConfigCategory;
-            foreach (var kv in s.dict)
-            {
-                this.dict.Add(kv.Key, kv.Value);
-            }
-        }
-		
-        public UnitConfig Get(int id)
-        {
-            this.dict.TryGetValue(id, out UnitConfig item);
-
-            if (item == null)
-            {
-                throw new Exception($"配置找不到,配置表名: {nameof (UnitConfig)},配置id: {id}");
-            }
-
-            return item;
-        }
-		
-        public bool Contain(int id)
-        {
-            return this.dict.ContainsKey(id);
-        }
-
-        public Dictionary<int, UnitConfig> GetAll()
-        {
-            return this.dict;
-        }
-
-        public UnitConfig GetOne()
-        {
-            if (this.dict == null || this.dict.Count <= 0)
-            {
-                return null;
-            }
-            return this.dict.Values.GetEnumerator().Current;
-        }
-    }
-
-	public partial class UnitConfig: ProtoObject, IConfig
-	{
-		/// <summary>Id</summary>
-		public int Id { get; set; }
-		/// <summary>Type</summary>
-		public int Type { get; set; }
-		/// <summary>名字</summary>
-		public string Name { get; set; }
-		/// <summary>位置</summary>
-		public int Position { get; set; }
-		/// <summary>体重</summary>
-		public int Weight { get; set; }
-
-	}
-}

+ 0 - 92
Generate/Server/Proto/Core/ClientMessage_C_1000.cs

@@ -1,92 +0,0 @@
-using MemoryPack;
-using System.Collections.Generic;
-
-namespace ET
-{
-    [MemoryPackable]
-    [Message(ClientMessage.Main2NetClient_Login)]
-    [ResponseType(nameof(NetClient2Main_Login))]
-    public partial class Main2NetClient_Login : MessageObject, IRequest
-    {
-        public static Main2NetClient_Login Create(bool isFromPool = false)
-        {
-            return ObjectPool.Fetch<Main2NetClient_Login>(isFromPool);
-        }
-
-        [MemoryPackOrder(0)]
-        public int RpcId { get; set; }
-
-        [MemoryPackOrder(1)]
-        public int OwnerFiberId { get; set; }
-
-        /// <summary>
-        /// 账号
-        /// </summary>
-        [MemoryPackOrder(2)]
-        public string Account { get; set; }
-
-        /// <summary>
-        /// 密码
-        /// </summary>
-        [MemoryPackOrder(3)]
-        public string Password { get; set; }
-
-        public override void Dispose()
-        {
-            if (!this.IsFromPool)
-            {
-                return;
-            }
-
-            this.RpcId = default;
-            this.OwnerFiberId = default;
-            this.Account = default;
-            this.Password = default;
-
-            ObjectPool.Recycle(this);
-        }
-    }
-
-    [MemoryPackable]
-    [Message(ClientMessage.NetClient2Main_Login)]
-    public partial class NetClient2Main_Login : MessageObject, IResponse
-    {
-        public static NetClient2Main_Login Create(bool isFromPool = false)
-        {
-            return ObjectPool.Fetch<NetClient2Main_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 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);
-        }
-    }
-
-    public static class ClientMessage
-    {
-        public const ushort Main2NetClient_Login = 1001;
-        public const ushort NetClient2Main_Login = 1002;
-    }
-}

+ 0 - 826
Generate/Server/Proto/Statesync/StateSyncInner_S_20001.cs

@@ -1,826 +0,0 @@
-using MemoryPack;
-using System.Collections.Generic;
-
-namespace ET
-{
-    [MemoryPackable]
-    [Message(StateSyncInner.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(StateSyncInner.M2A_Reload)]
-    [ResponseType(nameof(A2M_Reload))]
-    public partial class M2A_Reload : MessageObject, IRequest
-    {
-        public static M2A_Reload Create(bool isFromPool = false)
-        {
-            return ObjectPool.Fetch<M2A_Reload>(isFromPool);
-        }
-
-        [MemoryPackOrder(0)]
-        public int RpcId { get; set; }
-
-        public override void Dispose()
-        {
-            if (!this.IsFromPool)
-            {
-                return;
-            }
-
-            this.RpcId = default;
-
-            ObjectPool.Recycle(this);
-        }
-    }
-
-    [MemoryPackable]
-    [Message(StateSyncInner.A2M_Reload)]
-    public partial class A2M_Reload : MessageObject, IResponse
-    {
-        public static A2M_Reload Create(bool isFromPool = false)
-        {
-            return ObjectPool.Fetch<A2M_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(StateSyncInner.G2G_LockRequest)]
-    [ResponseType(nameof(G2G_LockResponse))]
-    public partial class G2G_LockRequest : MessageObject, IRequest
-    {
-        public static G2G_LockRequest Create(bool isFromPool = false)
-        {
-            return ObjectPool.Fetch<G2G_LockRequest>(isFromPool);
-        }
-
-        [MemoryPackOrder(0)]
-        public int RpcId { get; set; }
-
-        [MemoryPackOrder(1)]
-        public long Id { get; set; }
-
-        [MemoryPackOrder(2)]
-        public string Address { get; set; }
-
-        public override void Dispose()
-        {
-            if (!this.IsFromPool)
-            {
-                return;
-            }
-
-            this.RpcId = default;
-            this.Id = default;
-            this.Address = default;
-
-            ObjectPool.Recycle(this);
-        }
-    }
-
-    [MemoryPackable]
-    [Message(StateSyncInner.G2G_LockResponse)]
-    public partial class G2G_LockResponse : MessageObject, IResponse
-    {
-        public static G2G_LockResponse Create(bool isFromPool = false)
-        {
-            return ObjectPool.Fetch<G2G_LockResponse>(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(StateSyncInner.G2G_LockReleaseRequest)]
-    [ResponseType(nameof(G2G_LockReleaseResponse))]
-    public partial class G2G_LockReleaseRequest : MessageObject, IRequest
-    {
-        public static G2G_LockReleaseRequest Create(bool isFromPool = false)
-        {
-            return ObjectPool.Fetch<G2G_LockReleaseRequest>(isFromPool);
-        }
-
-        [MemoryPackOrder(0)]
-        public int RpcId { get; set; }
-
-        [MemoryPackOrder(1)]
-        public long Id { get; set; }
-
-        [MemoryPackOrder(2)]
-        public string Address { get; set; }
-
-        public override void Dispose()
-        {
-            if (!this.IsFromPool)
-            {
-                return;
-            }
-
-            this.RpcId = default;
-            this.Id = default;
-            this.Address = default;
-
-            ObjectPool.Recycle(this);
-        }
-    }
-
-    [MemoryPackable]
-    [Message(StateSyncInner.G2G_LockReleaseResponse)]
-    public partial class G2G_LockReleaseResponse : MessageObject, IResponse
-    {
-        public static G2G_LockReleaseResponse Create(bool isFromPool = false)
-        {
-            return ObjectPool.Fetch<G2G_LockReleaseResponse>(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(StateSyncInner.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(StateSyncInner.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(StateSyncInner.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(StateSyncInner.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(StateSyncInner.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(StateSyncInner.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(StateSyncInner.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(StateSyncInner.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(StateSyncInner.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(StateSyncInner.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(StateSyncInner.R2G_GetLoginKey)]
-    [ResponseType(nameof(G2R_GetLoginKey))]
-    public partial class R2G_GetLoginKey : MessageObject, IRequest
-    {
-        public static R2G_GetLoginKey Create(bool isFromPool = false)
-        {
-            return ObjectPool.Fetch<R2G_GetLoginKey>(isFromPool);
-        }
-
-        [MemoryPackOrder(0)]
-        public int RpcId { get; set; }
-
-        [MemoryPackOrder(1)]
-        public string Account { get; set; }
-
-        public override void Dispose()
-        {
-            if (!this.IsFromPool)
-            {
-                return;
-            }
-
-            this.RpcId = default;
-            this.Account = default;
-
-            ObjectPool.Recycle(this);
-        }
-    }
-
-    [MemoryPackable]
-    [Message(StateSyncInner.G2R_GetLoginKey)]
-    public partial class G2R_GetLoginKey : MessageObject, IResponse
-    {
-        public static G2R_GetLoginKey Create(bool isFromPool = false)
-        {
-            return ObjectPool.Fetch<G2R_GetLoginKey>(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 Key { get; set; }
-
-        [MemoryPackOrder(4)]
-        public long GateId { get; set; }
-
-        public override void Dispose()
-        {
-            if (!this.IsFromPool)
-            {
-                return;
-            }
-
-            this.RpcId = default;
-            this.Error = default;
-            this.Message = default;
-            this.Key = default;
-            this.GateId = default;
-
-            ObjectPool.Recycle(this);
-        }
-    }
-
-    [MemoryPackable]
-    [Message(StateSyncInner.G2M_SessionDisconnect)]
-    public partial class G2M_SessionDisconnect : MessageObject, ILocationMessage
-    {
-        public static G2M_SessionDisconnect Create(bool isFromPool = false)
-        {
-            return ObjectPool.Fetch<G2M_SessionDisconnect>(isFromPool);
-        }
-
-        [MemoryPackOrder(0)]
-        public int RpcId { get; set; }
-
-        public override void Dispose()
-        {
-            if (!this.IsFromPool)
-            {
-                return;
-            }
-
-            this.RpcId = default;
-
-            ObjectPool.Recycle(this);
-        }
-    }
-
-    [MemoryPackable]
-    [Message(StateSyncInner.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);
-        }
-    }
-
-    [MemoryPackable]
-    [Message(StateSyncInner.M2M_UnitTransferRequest)]
-    [ResponseType(nameof(M2M_UnitTransferResponse))]
-    public partial class M2M_UnitTransferRequest : MessageObject, IRequest
-    {
-        public static M2M_UnitTransferRequest Create(bool isFromPool = false)
-        {
-            return ObjectPool.Fetch<M2M_UnitTransferRequest>(isFromPool);
-        }
-
-        [MemoryPackOrder(0)]
-        public int RpcId { get; set; }
-
-        [MemoryPackOrder(1)]
-        public ActorId OldActorId { get; set; }
-
-        [MemoryPackOrder(2)]
-        public byte[] Unit { get; set; }
-
-        [MemoryPackOrder(3)]
-        public List<byte[]> Entitys { get; set; } = new();
-
-        public override void Dispose()
-        {
-            if (!this.IsFromPool)
-            {
-                return;
-            }
-
-            this.RpcId = default;
-            this.OldActorId = default;
-            this.Unit = default;
-            this.Entitys.Clear();
-
-            ObjectPool.Recycle(this);
-        }
-    }
-
-    [MemoryPackable]
-    [Message(StateSyncInner.M2M_UnitTransferResponse)]
-    public partial class M2M_UnitTransferResponse : MessageObject, IResponse
-    {
-        public static M2M_UnitTransferResponse Create(bool isFromPool = false)
-        {
-            return ObjectPool.Fetch<M2M_UnitTransferResponse>(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 StateSyncInner
-    {
-        public const ushort ObjectQueryRequest = 20002;
-        public const ushort M2A_Reload = 20003;
-        public const ushort A2M_Reload = 20004;
-        public const ushort G2G_LockRequest = 20005;
-        public const ushort G2G_LockResponse = 20006;
-        public const ushort G2G_LockReleaseRequest = 20007;
-        public const ushort G2G_LockReleaseResponse = 20008;
-        public const ushort ObjectAddRequest = 20009;
-        public const ushort ObjectAddResponse = 20010;
-        public const ushort ObjectLockRequest = 20011;
-        public const ushort ObjectLockResponse = 20012;
-        public const ushort ObjectUnLockRequest = 20013;
-        public const ushort ObjectUnLockResponse = 20014;
-        public const ushort ObjectRemoveRequest = 20015;
-        public const ushort ObjectRemoveResponse = 20016;
-        public const ushort ObjectGetRequest = 20017;
-        public const ushort ObjectGetResponse = 20018;
-        public const ushort R2G_GetLoginKey = 20019;
-        public const ushort G2R_GetLoginKey = 20020;
-        public const ushort G2M_SessionDisconnect = 20021;
-        public const ushort ObjectQueryResponse = 20022;
-        public const ushort M2M_UnitTransferRequest = 20023;
-        public const ushort M2M_UnitTransferResponse = 20024;
-    }
-}

+ 0 - 1122
Generate/Server/Proto/Statesync/StateSyncOuter_C_10001.cs

@@ -1,1122 +0,0 @@
-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;
-    }
-}

+ 30 - 28
Share/Tool/ExcelExporter/ExcelExporter.cs

@@ -46,7 +46,6 @@ namespace ET
     class Table
     {
         public string Name;
-        public string Module;
         public bool C;
         public bool S;
         public int Index;
@@ -57,29 +56,28 @@ namespace ET
     {
         private static string template;
 
-        private const string ClientClassDir = "../Generate/Client/Excel/";
+        private const string ClientClassDir = "../Generate/Excel/Client/";
         // 服务端因为机器人的存在必须包含客户端所有配置,所以单独的c字段没有意义,单独的c就表示cs
-        private const string ServerClassDir = "../Generate/Server/Excel/";
+        private const string ServerClassDir = "../Generate/Excel/Server/";
 
-        private const string CSClassDir = "../Generate/ClientServer/Excel/";
+        private const string CSClassDir = "../Generate/Excel/ClientServer/";
 
-        private const string jsonDir = "../Config/Json/{0}/{1}/{2}/";
+        private const string jsonDir = "../Config/Json/{0}/{1}/";
 
         private const string clientProtoDir = "../Unity/Assets/Bundles/Config";
-        private const string serverProtoDir = "../Config/Excel/{0}/{1}/{2}";
+        private const string serverProtoDir = "../Config/Excel/{0}/{1}";
         private const string replaceStr = "/{0}/{1}";
         private static Assembly[] configAssemblies = new Assembly[3];
 
         private static Dictionary<string, Table> tables = new Dictionary<string, Table>();
         private static Dictionary<string, ExcelPackage> packages = new Dictionary<string, ExcelPackage>();
 
-        private static Table GetTable(string module, string protoName)
+        private static Table GetTable(string protoName)
         {
-            string fullName = module + "." + protoName;
+            string fullName = protoName;
             if (!tables.TryGetValue(fullName, out var table))
             {
                 table = new Table();
-                table.Module = module;
                 table.Name = protoName;
                 tables[fullName] = table;
             }
@@ -105,6 +103,11 @@ namespace ET
             {
                 template = File.ReadAllText("Template.txt");
                 ExcelPackage.LicenseContext = LicenseContext.NonCommercial;
+                
+                if (Directory.Exists("../Generate/Excel"))
+                {
+                    Directory.Delete("../Generate/Excel", true);
+                }
 
                 if (!Directory.Exists(ClientClassDir))
                 {
@@ -133,7 +136,7 @@ namespace ET
                     Directory.Delete(serverProtoDirParent, true);
                 }
                 
-                List<(string, string)> list = new();
+                List<string> list = new();
                 foreach (string directory in Directory.GetDirectories("../Unity/Packages", "com.et.*"))
                 {
                     string p = Path.Combine(directory, "Excel");
@@ -144,8 +147,7 @@ namespace ET
                     
                     string baseName = Path.GetFileName(directory);
                     string moduleName = baseName.Replace("com.et.", "");
-                    moduleName = StringHelper.CapitalizeFirstLetter(moduleName);
-                    list.Add((moduleName, p));
+                    list.Add(p);
                 }
                 
                 foreach (string directory in Directory.GetDirectories("../Unity/Library/PackageCache", "com.et.*"))
@@ -159,11 +161,11 @@ namespace ET
                     string baseName = Path.GetFileName(directory);
                     string moduleName = baseName.Replace("com.et.", "");
                     moduleName = StringHelper.CapitalizeFirstLetter(moduleName);
-                    list.Add((moduleName, p));
+                    list.Add(p);
                 }
 
-                List<(string, string, string)> paths = new();
-                foreach ((string moduleName, string s) in list)
+                List<(string, string)> paths = new();
+                foreach (string s in list)
                 {
                     var aa = FileHelper.GetAllFiles(s);
                     
@@ -171,12 +173,12 @@ namespace ET
                     {
                         if (k.EndsWith(".xlsx") || k.EndsWith(".xlsm"))
                         {
-                            paths.Add((moduleName, s, k));
+                            paths.Add((s, k));
                         }
                     }
                 }
                 
-                foreach ((string module, string s, string path) in paths)
+                foreach ((string s, string path) in paths)
                 {
                     string fileName = Path.GetFileName(path);
                     if (!fileName.EndsWith(".xlsx") || fileName.StartsWith("~$") || fileName.Contains("#"))
@@ -207,7 +209,7 @@ namespace ET
                         protoName = fileNameWithoutCS.Substring(0, fileNameWithoutCS.LastIndexOf('_'));
                     }
 
-                    Table table = GetTable(module, protoName);
+                    Table table = GetTable(protoName);
 
                     if (cs.Contains("c"))
                     {
@@ -240,9 +242,9 @@ namespace ET
                 configAssemblies[(int) ConfigType.s] = DynamicBuild(ConfigType.s);
                 configAssemblies[(int) ConfigType.cs] = DynamicBuild(ConfigType.cs);
                 
-                foreach ((string module, string s, string path) in paths)
+                foreach ((string s, string path) in paths)
                 {
-                    ExportExcel(module, s, path);
+                    ExportExcel(s, path);
                 }
                 
                 if (Directory.Exists(clientProtoDir))
@@ -267,7 +269,7 @@ namespace ET
             }
         }
 
-        private static void ExportExcel(string module, string root, string path)
+        private static void ExportExcel(string root, string path)
         {
             string dir = Path.GetDirectoryName(path);
             string relativePath = Path.GetRelativePath(root, dir);
@@ -298,7 +300,7 @@ namespace ET
                 protoName = fileNameWithoutCS.Substring(0, fileNameWithoutCS.LastIndexOf('_'));
             }
 
-            Table table = GetTable(module, protoName);
+            Table table = GetTable(protoName);
 
             ExcelPackage p = GetPackage(Path.GetFullPath(path));
 
@@ -317,9 +319,9 @@ namespace ET
             ExportExcelProtobuf(ConfigType.cs, table, relativePath);
         }
 
-        private static string GetProtoDir(ConfigType configType, string module, string relativeDir)
+        private static string GetProtoDir(ConfigType configType, string relativeDir)
         {
-            return string.Format(serverProtoDir, configType.ToString(), module, relativeDir);
+            return string.Format(serverProtoDir, configType.ToString(), relativeDir);
         }
 
         private static Assembly GetAssembly(ConfigType configType)
@@ -469,7 +471,7 @@ namespace ET
                 Directory.CreateDirectory(dir);
             }
 
-            string exportPath = Path.Combine(dir, table.Module, $"{table.Name}.cs");
+            string exportPath = Path.Combine(dir, $"{table.Name}.cs");
 
             if (!Directory.Exists(Path.GetDirectoryName(exportPath)))
             {
@@ -524,7 +526,7 @@ namespace ET
 
             sb.Append("]}\n");
 
-            string dir = string.Format(jsonDir, configType.ToString(), table.Module, relativeDir);
+            string dir = string.Format(jsonDir, configType.ToString(), relativeDir);
             if (!Directory.Exists(dir))
             {
                 Directory.CreateDirectory(dir);
@@ -637,7 +639,7 @@ namespace ET
         // 根据生成的类,把json转成protobuf
         private static void ExportExcelProtobuf(ConfigType configType, Table table, string relativeDir)
         {
-            string dir = GetProtoDir(configType, table.Module, relativeDir);
+            string dir = GetProtoDir(configType, relativeDir);
             string moduleDir = Path.Combine(dir);
             if (!Directory.Exists(moduleDir))
             {
@@ -649,7 +651,7 @@ namespace ET
 
             IMerge final = Activator.CreateInstance(type) as IMerge;
 
-            string p = Path.Combine(string.Format(jsonDir, configType, table.Module, relativeDir));
+            string p = Path.Combine(string.Format(jsonDir, configType, relativeDir));
             string[] ss = Directory.GetFiles(p, $"{table.Name}*.txt");
             List<string> jsonPaths = ss.ToList();
 

+ 10 - 71
Share/Tool/Proto2CS/Proto2CS.cs

@@ -22,9 +22,9 @@ namespace ET
 
     public static partial class InnerProto2CS
     {
-        private const string clientMessagePath = "../Generate/Client/Proto/";
-        private const string serverMessagePath = "../Generate/Server/Proto/";
-        private const string clientServerMessagePath = "../Generate/ClientServer/Proto/";
+        private const string clientMessagePath = "../Generate/Proto/Client/";
+        private const string serverMessagePath = "../Generate/Proto/Server/";
+        private const string clientServerMessagePath = "../Generate/Proto/ClientServer/";
         private static readonly char[] splitChars = [' ', '\t'];
         private static readonly List<OpcodeInfo> msgOpcode = [];
 
@@ -32,24 +32,10 @@ namespace ET
         {
             msgOpcode.Clear();
 
-            if (!Directory.Exists(clientMessagePath))
+            if (Directory.Exists("../Generate/Proto"))
             {
-                Directory.CreateDirectory(clientMessagePath);
+                Directory.Delete("../Generate/Proto", true);
             }
-            
-            if (!Directory.Exists(serverMessagePath))
-            {
-                Directory.CreateDirectory(serverMessagePath);
-            }
-            
-            if (!Directory.Exists(clientServerMessagePath))
-            {
-                Directory.CreateDirectory(clientServerMessagePath);
-            }
-
-            RemoveAllFilesExceptMeta(clientMessagePath);
-            RemoveAllFilesExceptMeta(serverMessagePath);
-            RemoveAllFilesExceptMeta(clientServerMessagePath);
 
             System.Collections.Generic.List<(string, string)> list = new ();
             foreach (string directory in Directory.GetDirectories("../Unity/Packages", "com.et.*"))
@@ -104,10 +90,6 @@ namespace ET
                 int startOpcode = int.Parse(ss2[2]);
                 ProtoFile2CS(s, module, protoName, cs, startOpcode);
             }
-
-            RemoveUnusedMetaFiles(clientMessagePath);
-            RemoveUnusedMetaFiles(serverMessagePath);
-            RemoveUnusedMetaFiles(clientServerMessagePath);
         }
 
         private static void ProtoFile2CS(string path, string module, string protoName, string cs, int startOpcode)
@@ -275,15 +257,15 @@ namespace ET
 
             if (cs.Contains('C'))
             {
-                GenerateCS(result, clientMessagePath + module, proto);
-                GenerateCS(result, serverMessagePath + module, proto);
-                GenerateCS(result, clientServerMessagePath + module, proto);
+                GenerateCS(result, clientMessagePath, proto);
+                GenerateCS(result, serverMessagePath, proto);
+                GenerateCS(result, clientServerMessagePath, proto);
             }
 
             if (cs.Contains('S'))
             {
-                GenerateCS(result, serverMessagePath + module, proto);
-                GenerateCS(result, clientServerMessagePath + module, proto);
+                GenerateCS(result, serverMessagePath, proto);
+                GenerateCS(result, clientServerMessagePath, proto);
             }
         }
 
@@ -391,49 +373,6 @@ namespace ET
             }
         }
 
-        /// <summary>
-        /// 删除meta以外的所有文件
-        /// </summary>
-        static void RemoveAllFilesExceptMeta(string directory)
-        {
-            if (!Directory.Exists(directory))
-            {
-                return;
-            }
-
-            DirectoryInfo targetDir = new(directory);
-            FileInfo[] fileInfos = targetDir.GetFiles("*", SearchOption.AllDirectories);
-            foreach (FileInfo info in fileInfos)
-            {
-                if (!info.Name.EndsWith(".meta"))
-                {
-                    File.Delete(info.FullName);
-                }
-            }
-        }
-
-        /// <summary>
-        /// 删除多余的meta文件
-        /// </summary>
-        static void RemoveUnusedMetaFiles(string directory)
-        {
-            if (!Directory.Exists(directory))
-            {
-                return;
-            }
-
-            DirectoryInfo targetDir = new(directory);
-            FileInfo[] fileInfos = targetDir.GetFiles("*.meta", SearchOption.AllDirectories);
-            foreach (FileInfo info in fileInfos)
-            {
-                string pathWithoutMeta = info.FullName.Remove(info.FullName.LastIndexOf(".meta", StringComparison.Ordinal));
-                if (!File.Exists(pathWithoutMeta) && !Directory.Exists(pathWithoutMeta))
-                {
-                    File.Delete(info.FullName);
-                }
-            }
-        }
-
         [GeneratedRegex(@"//\s*ResponseType")]
         private static partial Regex ResponseTypeRegex();
     }

+ 3 - 3
Share/Tool/Share.Tool.csproj

@@ -31,15 +31,15 @@
     </PropertyGroup>
     
     <ItemGroup>        
-        <Compile Include="..\..\Unity\Packages\com.et.core\Scripts\Model~\Share\Module\Config\**\*.cs">
+        <Compile Include="..\..\Unity\Packages\com.et.core\Runtime\Model\Share\Module\Config\**\*.cs">
             <Link>Module\Config\%(RecursiveDir)%(FileName)%(Extension)</Link>
         </Compile>
 
-        <Compile Include="..\..\Unity\Packages\com.et.core\Scripts\Model\Share\Module\Log\**\*.cs">
+        <Compile Include="..\..\Unity\Packages\com.et.core\Runtime\Model\Share\Module\Log\**\*.cs">
             <Link>Module\Log\%(RecursiveDir)%(FileName)%(Extension)</Link>
         </Compile>
 
-        <Compile Include="..\..\Unity\Packages\com.et.core\Scripts\Core\Network\OpcodeRangeDefine.cs">
+        <Compile Include="..\..\Unity\Packages\com.et.core\Runtime\Network\OpcodeRangeDefine.cs">
             <Link>Module\Message\OpcodeRangeDefine.cs</Link>
         </Compile>
 

+ 0 - 8
Unity/Assets/Bundles/Config/Statesync.meta

@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 5d662592e8dd7a141b2f8fcab107b41b
-folderAsset: yes
-DefaultImporter:
-  externalObjects: {}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 0
Unity/Assets/Bundles/Config/Statesync/UnitConfigCategory.bytes → Unity/Assets/Bundles/Config/UnitConfigCategory.bytes


+ 1 - 1
Unity/Assets/Bundles/Config/Statesync/UnitConfigCategory.bytes.meta → Unity/Assets/Bundles/Config/UnitConfigCategory.bytes.meta

@@ -1,5 +1,5 @@
 fileFormatVersion: 2
-guid: 5a8ec8039c934f44593f568f426ad31c
+guid: 4c54687c04c629d488376e5ef067ef18
 TextScriptImporter:
   externalObjects: {}
   userData: 

+ 2 - 4
Unity/Packages/com.et.loader/Editor/AssetPostProcessor/OnGenerateCSProjectProcessor.cs

@@ -111,10 +111,8 @@ namespace ET
                 switch (dllName)
                 {
                     case "Model":
-                        links += "<Compile Include=\"../Generate/" + codeMode + "/**/*.cs\"><Link>Generate/%(RecursiveDir)%(FileName)%(Extension)</Link></Compile>";
-                        links += "<Compile Include=\"Packages/com.et.*/Runtime~/CodeMode/" + codeMode + "/**/*.cs\">" +
-                                "<Link>%(RecursiveDir)%(FileName)%(Extension)</Link>\n" + 
-                                "</Compile>";
+                        links += "<Compile Include=\"../Generate/*/" + codeMode + "/**/*.cs\"><Link>Generate/%(RecursiveDir)%(FileName)%(Extension)</Link></Compile>";
+                        links += "<Compile Include=\"Packages/com.et.*/Runtime~/CodeMode/" + codeMode + "/**/*.cs\"><Link>%(RecursiveDir)%(FileName)%(Extension)</Link></Compile>";
                         break;
                     case "Hotfix":
                         break;