Przeglądaj źródła

命名空间全部改成ET,不再区分ETModel跟ETHotfix

tanghai 6 lat temu
rodzic
commit
9b870beb52
100 zmienionych plików z 147 dodań i 228 usunięć
  1. 1 1
      Proto/InnerMessage.proto
  2. 1 1
      Proto/OuterMessage.proto
  3. 1 1
      Server/App/Program.cs
  4. 2 2
      Server/Hotfix/Demo/Actor_TransferHandler.cs
  5. 2 2
      Server/Hotfix/Demo/C2G_EnterMapHandler.cs
  6. 2 2
      Server/Hotfix/Demo/C2G_LoginGateHandler.cs
  7. 2 2
      Server/Hotfix/Demo/C2M_TestActorRequestHandler.cs
  8. 2 2
      Server/Hotfix/Demo/C2R_LoginHandler.cs
  9. 2 2
      Server/Hotfix/Demo/Frame_ClickMapHandler.cs
  10. 2 2
      Server/Hotfix/Demo/G2M_CreateUnitHandler.cs
  11. 2 2
      Server/Hotfix/Demo/G2M_SessionDisconnectHandler.cs
  12. 2 2
      Server/Hotfix/Demo/M2M_TrasferUnitRequestHandler.cs
  13. 2 2
      Server/Hotfix/Demo/MessageHelper.cs
  14. 2 2
      Server/Hotfix/Demo/R2G_GetLoginKeyHandler.cs
  15. 2 2
      Server/Hotfix/Demo/RealmGateAddressHelper.cs
  16. 2 2
      Server/Hotfix/Demo/SessionPlayerComponentSystem.cs
  17. 2 2
      Server/Hotfix/Demo/UnitPathComponentSystem.cs
  18. 2 2
      Server/Hotfix/Handler/C2G_PlayerInfoHandler.cs
  19. 2 2
      Server/Hotfix/Handler/C2M_ReloadHandler.cs
  20. 2 2
      Server/Hotfix/Handler/C2R_PingHandler.cs
  21. 2 2
      Server/Hotfix/Handler/G2C_TestHandler.cs
  22. 2 2
      Server/Hotfix/Handler/M2A_ReloadHandler.cs
  23. 1 1
      Server/Hotfix/Helper/HotfixHelper.cs
  24. 2 2
      Server/Hotfix/Module/Actor/ActorMessageDispatcherComponentSystem.cs
  25. 2 2
      Server/Hotfix/Module/Actor/ActorMessageSenderComponentSystem.cs
  26. 2 2
      Server/Hotfix/Module/Actor/MailBoxComponentSystem.cs
  27. 2 2
      Server/Hotfix/Module/ActorLocation/ActorLocationSenderComponentSystem.cs
  28. 2 2
      Server/Hotfix/Module/ActorLocation/ActorLocationSenderSystem.cs
  29. 2 2
      Server/Hotfix/Module/ActorLocation/LocationProxyComponentSystem.cs
  30. 2 2
      Server/Hotfix/Module/ActorLocation/ObjectAddRequestHandler.cs
  31. 2 2
      Server/Hotfix/Module/ActorLocation/ObjectGetRequestHandler.cs
  32. 2 2
      Server/Hotfix/Module/ActorLocation/ObjectLockRequestHandler.cs
  33. 2 2
      Server/Hotfix/Module/ActorLocation/ObjectRemoveRequestHandler.cs
  34. 2 2
      Server/Hotfix/Module/ActorLocation/ObjectUnLockRequestHandler.cs
  35. 2 2
      Server/Hotfix/Module/Benchmark/BenchmarkComponentSystem.cs
  36. 2 2
      Server/Hotfix/Module/Benchmark/WebSocketBenchmarkComponentSystem.cs
  37. 2 2
      Server/Hotfix/Module/Config/ConfigComponentSystem.cs
  38. 1 1
      Server/Hotfix/Module/DB/DBComponentSystem.cs
  39. 2 2
      Server/Hotfix/Module/Message/InnerMessageDispatcher.cs
  40. 2 2
      Server/Hotfix/Module/Message/InnerMessageDispatcherHelper.cs
  41. 2 2
      Server/Hotfix/Module/Message/MessageDispatherComponentSystem.cs
  42. 2 2
      Server/Hotfix/Module/Message/NetInnerComponentSystem.cs
  43. 2 2
      Server/Hotfix/Module/Message/OuterMessageDispatcher.cs
  44. 2 2
      Server/Hotfix/Module/Scene/AfterScenesAdd_CreateScene.cs
  45. 2 2
      Server/Hotfix/Module/Scene/SceneFactory.cs
  46. 6 0
      Server/Hotfix/Server.Hotfix.csproj
  47. 1 1
      Server/Model/Base/Event/EventIdType.cs
  48. 1 1
      Server/Model/Base/Helper/DllHelper.cs
  49. 1 1
      Server/Model/Base/Helper/JsonHelper.cs
  50. 1 1
      Server/Model/Base/Log.cs
  51. 1 1
      Server/Model/Base/LogType.cs
  52. 1 1
      Server/Model/Base/Logger/ILog.cs
  53. 1 1
      Server/Model/Base/Logger/NLogAdapter.cs
  54. 1 1
      Server/Model/Base/Object/IDBCollection.cs
  55. 0 43
      Server/Model/Component/KVComponent.cs
  56. 0 26
      Server/Model/Component/OptionComponent.cs
  57. 0 15
      Server/Model/Component/RobotComponent.cs
  58. 1 1
      Server/Model/Demo/Config/StartProcessConfig.cs
  59. 1 1
      Server/Model/Demo/Config/StartSceneConfig.cs
  60. 1 1
      Server/Model/Demo/Config/StartZoneConfig.cs
  61. 1 1
      Server/Model/Demo/Config/UnitConfig.cs
  62. 3 6
      Server/Model/Demo/ConfigPartial/StartProcessConfig.cs
  63. 3 3
      Server/Model/Demo/ConfigPartial/StartSceneConfig.cs
  64. 1 1
      Server/Model/Demo/GateSessionKeyComponent.cs
  65. 1 1
      Server/Model/Demo/MoveComponent.cs
  66. 1 1
      Server/Model/Demo/Player.cs
  67. 1 1
      Server/Model/Demo/PlayerComponent.cs
  68. 1 1
      Server/Model/Demo/SessionInfoComponent.cs
  69. 1 1
      Server/Model/Demo/SessionPlayerComponent.cs
  70. 1 1
      Server/Model/Demo/Unit.cs
  71. 1 1
      Server/Model/Demo/UnitComponent.cs
  72. 1 1
      Server/Model/Demo/UnitGateComponent.cs
  73. 1 1
      Server/Model/Demo/UnitPathComponent.cs
  74. 1 1
      Server/Model/Module/Actor/AMActorHandler.cs
  75. 1 1
      Server/Model/Module/Actor/AMActorRpcHandler.cs
  76. 1 1
      Server/Model/Module/Actor/ActorMessageAttribute.cs
  77. 1 1
      Server/Model/Module/Actor/ActorMessageDispatcherComponent.cs
  78. 1 1
      Server/Model/Module/Actor/ActorMessageHandlerAttribute.cs
  79. 1 1
      Server/Model/Module/Actor/ActorMessageSender.cs
  80. 1 1
      Server/Model/Module/Actor/ActorMessageSenderComponent.cs
  81. 1 1
      Server/Model/Module/Actor/ActorResponse.cs
  82. 1 1
      Server/Model/Module/Actor/ActorTask.cs
  83. 1 1
      Server/Model/Module/Actor/IMActorHandler.cs
  84. 1 1
      Server/Model/Module/Actor/MailBoxComponent.cs
  85. 1 1
      Server/Model/Module/Actor/MailboxType.cs
  86. 1 1
      Server/Model/Module/ActorLocation/AMActorLocationHandler.cs
  87. 1 1
      Server/Model/Module/ActorLocation/AMActorLocationRpcHandler.cs
  88. 1 1
      Server/Model/Module/ActorLocation/ActorLocationSender.cs
  89. 1 1
      Server/Model/Module/ActorLocation/ActorLocationSenderComponent.cs
  90. 1 1
      Server/Model/Module/ActorLocation/LocationComponent.cs
  91. 1 1
      Server/Model/Module/ActorLocation/LocationProxyComponent.cs
  92. 1 1
      Server/Model/Module/Benchmark/BenchmarkComponent.cs
  93. 1 1
      Server/Model/Module/Benchmark/WebSocketBenchmarkComponent.cs
  94. 1 1
      Server/Model/Module/Config/ConfigComponent.cs
  95. 1 1
      Server/Model/Module/Config/ConfigHelper.cs
  96. 1 1
      Server/Model/Module/Console/ConsoleComponent.cs
  97. 1 1
      Server/Model/Module/Console/ReplComponent.cs
  98. 1 1
      Server/Model/Module/DB/DBComponent.cs
  99. 1 1
      Server/Model/Module/Message/AMRpcHandler.cs
  100. 2 2
      Server/Model/Module/Message/InnerMessage.cs

+ 1 - 1
Proto/InnerMessage.proto

@@ -1,5 +1,5 @@
 syntax = "proto3";
-package ETModel;
+package ET;
 
 /// <summary>
 /// 传送unit

+ 1 - 1
Proto/OuterMessage.proto

@@ -1,5 +1,5 @@
 syntax = "proto3";
-package ETModel;
+package ET;
 
 message C2M_TestRequest // IActorLocationRequest
 {

+ 1 - 1
Server/App/Program.cs

@@ -5,7 +5,7 @@ using System.Threading;
 using CommandLine;
 using NLog;
 
-namespace ETModel
+namespace ET
 {
 	internal static class Program
 	{

+ 2 - 2
Server/Hotfix/Demo/Actor_TransferHandler.cs

@@ -1,8 +1,8 @@
 using System;
 using System.Net;
-using ETModel;
 
-namespace ETHotfix
+
+namespace ET
 {
 	[ActorMessageHandler]
 	public class Actor_TransferHandler : AMActorRpcHandler<Unit, Actor_TransferRequest, Actor_TransferResponse>

+ 2 - 2
Server/Hotfix/Demo/C2G_EnterMapHandler.cs

@@ -1,7 +1,7 @@
 using System;
-using ETModel;
 
-namespace ETHotfix
+
+namespace ET
 {
 	[MessageHandler]
 	public class C2G_EnterMapHandler : AMRpcHandler<C2G_EnterMap, G2C_EnterMap>

+ 2 - 2
Server/Hotfix/Demo/C2G_LoginGateHandler.cs

@@ -1,7 +1,7 @@
 using System;
-using ETModel;
 
-namespace ETHotfix
+
+namespace ET
 {
 	[MessageHandler]
 	public class C2G_LoginGateHandler : AMRpcHandler<C2G_LoginGate, G2C_LoginGate>

+ 2 - 2
Server/Hotfix/Demo/C2M_TestActorRequestHandler.cs

@@ -1,7 +1,7 @@
 using System;
-using ETModel;
 
-namespace ETHotfix
+
+namespace ET
 {
 	[ActorMessageHandler]
 	public class C2M_TestActorRequestHandler : AMActorLocationRpcHandler<Unit, C2M_TestActorRequest, M2C_TestActorResponse>

+ 2 - 2
Server/Hotfix/Demo/C2R_LoginHandler.cs

@@ -1,8 +1,8 @@
 using System;
 using System.Net;
-using ETModel;
 
-namespace ETHotfix
+
+namespace ET
 {
 	[MessageHandler]
 	public class C2R_LoginHandler : AMRpcHandler<C2R_Login, R2C_Login>

+ 2 - 2
Server/Hotfix/Demo/Frame_ClickMapHandler.cs

@@ -1,8 +1,8 @@
-using ETModel;
+
 using PF;
 using UnityEngine;
 
-namespace ETHotfix
+namespace ET
 {
 	[ActorMessageHandler]
 	public class Frame_ClickMapHandler : AMActorLocationHandler<Unit, Frame_ClickMap>

+ 2 - 2
Server/Hotfix/Demo/G2M_CreateUnitHandler.cs

@@ -1,9 +1,9 @@
 using System;
-using ETModel;
+
 using PF;
 using UnityEngine;
 
-namespace ETHotfix
+namespace ET
 {
 	[ActorMessageHandler]
 	public class G2M_CreateUnitHandler : AMActorRpcHandler<Scene, G2M_CreateUnit, M2G_CreateUnit>

+ 2 - 2
Server/Hotfix/Demo/G2M_SessionDisconnectHandler.cs

@@ -1,6 +1,6 @@
-using ETModel;
+
 
-namespace ETHotfix
+namespace ET
 {
 	[ActorMessageHandler]
 	public class G2M_SessionDisconnectHandler : AMActorLocationHandler<Unit, G2M_SessionDisconnect>

+ 2 - 2
Server/Hotfix/Demo/M2M_TrasferUnitRequestHandler.cs

@@ -1,7 +1,7 @@
 using System;
-using ETModel;
 
-namespace ETHotfix
+
+namespace ET
 {
 	[ActorMessageHandler]
 	public class M2M_TrasferUnitRequestHandler : AMActorRpcHandler<Scene, M2M_TrasferUnitRequest, M2M_TrasferUnitResponse>

+ 2 - 2
Server/Hotfix/Demo/MessageHelper.cs

@@ -1,6 +1,6 @@
-using ETModel;
+
 
-namespace ETHotfix
+namespace ET
 {
     public static class MessageHelper
     {

+ 2 - 2
Server/Hotfix/Demo/R2G_GetLoginKeyHandler.cs

@@ -1,7 +1,7 @@
 using System;
-using ETModel;
 
-namespace ETHotfix
+
+namespace ET
 {
 	[ActorMessageHandler]
 	public class R2G_GetLoginKeyHandler : AMActorRpcHandler<Scene, R2G_GetLoginKey, G2R_GetLoginKey>

+ 2 - 2
Server/Hotfix/Demo/RealmGateAddressHelper.cs

@@ -1,7 +1,7 @@
 using System.Collections.Generic;
-using ETModel;
 
-namespace ETHotfix
+
+namespace ET
 {
 	public static class RealmGateAddressHelper
 	{

+ 2 - 2
Server/Hotfix/Demo/SessionPlayerComponentSystem.cs

@@ -1,6 +1,6 @@
-using ETModel;
+
 
-namespace ETHotfix
+namespace ET
 {
 	[ObjectSystem]
 	public class SessionPlayerComponentDestroySystem : DestroySystem<SessionPlayerComponent>

+ 2 - 2
Server/Hotfix/Demo/UnitPathComponentSystem.cs

@@ -1,10 +1,10 @@
 using System.Collections.Generic;
 using System.Threading;
-using ETModel;
+
 using PF;
 using UnityEngine;
 
-namespace ETHotfix
+namespace ET
 {
     public static class UnitPathComponentHelper
     {

+ 2 - 2
Server/Hotfix/Handler/C2G_PlayerInfoHandler.cs

@@ -1,7 +1,7 @@
 using System;
-using ETModel;
 
-namespace ETHotfix
+
+namespace ET
 {
 	// 用来测试消息包含复杂类型,是否产生gc
 	[MessageHandler]

+ 2 - 2
Server/Hotfix/Handler/C2M_ReloadHandler.cs

@@ -1,7 +1,7 @@
 using System;
-using ETModel;
 
-namespace ETHotfix
+
+namespace ET
 {
 	[MessageHandler]
 	public class C2M_ReloadHandler: AMRpcHandler<C2M_Reload, M2C_Reload>

+ 2 - 2
Server/Hotfix/Handler/C2R_PingHandler.cs

@@ -1,7 +1,7 @@
 using System;
-using ETModel;
 
-namespace ETHotfix
+
+namespace ET
 {
 	[MessageHandler]
 	public class C2R_PingHandler : AMRpcHandler<C2R_Ping, R2C_Ping>

+ 2 - 2
Server/Hotfix/Handler/G2C_TestHandler.cs

@@ -1,6 +1,6 @@
-using ETModel;
+
 
-namespace ETHotfix
+namespace ET
 {
     [MessageHandler]
     public class G2C_TestHandler: AMHandler<G2C_Test>

+ 2 - 2
Server/Hotfix/Handler/M2A_ReloadHandler.cs

@@ -1,7 +1,7 @@
 using System;
-using ETModel;
 
-namespace ETHotfix
+
+namespace ET
 {
 	[MessageHandler]
 	public class M2A_ReloadHandler : AMRpcHandler<M2A_Reload, A2M_Reload>

+ 1 - 1
Server/Hotfix/Helper/HotfixHelper.cs

@@ -1,7 +1,7 @@
 using System;
 using System.Reflection;
 
-namespace ETHotfix
+namespace ET
 {
 	public static class HotfixHelper
 	{

+ 2 - 2
Server/Hotfix/Module/Actor/ActorMessageDispatcherComponentSystem.cs

@@ -1,8 +1,8 @@
 using System;
 using System.Collections.Generic;
-using ETModel;
 
-namespace ETHotfix
+
+namespace ET
 {
 	[ObjectSystem]
 	public class ActorMessageDispatcherComponentAwakeSystem: AwakeSystem<ActorMessageDispatcherComponent>

+ 2 - 2
Server/Hotfix/Module/Actor/ActorMessageSenderComponentSystem.cs

@@ -1,7 +1,7 @@
 using System;
-using ETModel;
 
-namespace ETHotfix
+
+namespace ET
 {
     [ObjectSystem]
     public class ActorMessageSenderComponentAwakeSystem : AwakeSystem<ActorMessageSenderComponent>

+ 2 - 2
Server/Hotfix/Module/Actor/MailBoxComponentSystem.cs

@@ -1,7 +1,7 @@
 using System;
-using ETModel;
 
-namespace ETHotfix
+
+namespace ET
 {
 	[ObjectSystem]
 	public class MailBoxComponentAwakeSystem : AwakeSystem<MailBoxComponent>

+ 2 - 2
Server/Hotfix/Module/ActorLocation/ActorLocationSenderComponentSystem.cs

@@ -1,7 +1,7 @@
 using System;
-using ETModel;
 
-namespace ETHotfix
+
+namespace ET
 {
     [ObjectSystem]
     public class ActorLocationSenderComponentAwakeSystem : AwakeSystem<ActorLocationSenderComponent>

+ 2 - 2
Server/Hotfix/Module/ActorLocation/ActorLocationSenderSystem.cs

@@ -1,7 +1,7 @@
 using System;
-using ETModel;
 
-namespace ETHotfix
+
+namespace ET
 {
     [ObjectSystem]
     public class ActorLocationSenderAwakeSystem: AwakeSystem<ActorLocationSender>

+ 2 - 2
Server/Hotfix/Module/ActorLocation/LocationProxyComponentSystem.cs

@@ -1,7 +1,7 @@
 using System;
-using ETModel;
 
-namespace ETHotfix
+
+namespace ET
 {
 	[ObjectSystem]
 	public class LocationProxyComponentSystem : AwakeSystem<LocationProxyComponent>

+ 2 - 2
Server/Hotfix/Module/ActorLocation/ObjectAddRequestHandler.cs

@@ -1,7 +1,7 @@
 using System;
-using ETModel;
 
-namespace ETHotfix
+
+namespace ET
 {
 	[ActorMessageHandler]
 	public class ObjectAddRequestHandler : AMActorRpcHandler<Scene, ObjectAddRequest, ObjectAddResponse>

+ 2 - 2
Server/Hotfix/Module/ActorLocation/ObjectGetRequestHandler.cs

@@ -1,7 +1,7 @@
 using System;
-using ETModel;
 
-namespace ETHotfix
+
+namespace ET
 {
 	[ActorMessageHandler]
 	public class ObjectGetRequestHandler : AMActorRpcHandler<Scene, ObjectGetRequest, ObjectGetResponse>

+ 2 - 2
Server/Hotfix/Module/ActorLocation/ObjectLockRequestHandler.cs

@@ -1,7 +1,7 @@
 using System;
-using ETModel;
 
-namespace ETHotfix
+
+namespace ET
 {
 	[ActorMessageHandler]
 	public class ObjectLockRequestHandler : AMActorRpcHandler<Scene, ObjectLockRequest, ObjectLockResponse>

+ 2 - 2
Server/Hotfix/Module/ActorLocation/ObjectRemoveRequestHandler.cs

@@ -1,7 +1,7 @@
 using System;
-using ETModel;
 
-namespace ETHotfix
+
+namespace ET
 {
 	[ActorMessageHandler]
 	public class ObjectRemoveRequestHandler : AMActorRpcHandler<Scene, ObjectRemoveRequest, ObjectRemoveResponse>

+ 2 - 2
Server/Hotfix/Module/ActorLocation/ObjectUnLockRequestHandler.cs

@@ -1,7 +1,7 @@
 using System;
-using ETModel;
 
-namespace ETHotfix
+
+namespace ET
 {
 	[ActorMessageHandler]
 	public class ObjectUnLockRequestHandler : AMActorRpcHandler<Scene, ObjectUnLockRequest, ObjectUnLockResponse>

+ 2 - 2
Server/Hotfix/Module/Benchmark/BenchmarkComponentSystem.cs

@@ -1,9 +1,9 @@
 using System;
 using System.Net;
 using System.Threading.Tasks;
-using ETModel;
 
-namespace ETHotfix
+
+namespace ET
 {
 	[ObjectSystem]
 	public class BenchmarkComponentSystem : AwakeSystem<BenchmarkComponent, string>

+ 2 - 2
Server/Hotfix/Module/Benchmark/WebSocketBenchmarkComponentSystem.cs

@@ -1,7 +1,7 @@
 using System;
-using ETModel;
 
-namespace ETHotfix
+
+namespace ET
 {
 	[ObjectSystem]
 	public class WebSocketBenchmarkComponentSystem : AwakeSystem<WebSocketBenchmarkComponent, string>

+ 2 - 2
Server/Hotfix/Module/Config/ConfigComponentSystem.cs

@@ -1,8 +1,8 @@
 using System;
 using System.Collections.Generic;
-using ETModel;
 
-namespace ETHotfix
+
+namespace ET
 {
     [ObjectSystem]
     public class ConfigAwakeSystem : AwakeSystem<ConfigComponent>

+ 1 - 1
Server/Hotfix/Module/DB/DBComponentSystem.cs

@@ -3,7 +3,7 @@ using System.Collections.Generic;
 using System.Linq.Expressions;
 using MongoDB.Driver;
 
-namespace ETModel
+namespace ET
 {
 	[ObjectSystem]
 	public class DBComponentAwakeSystem : AwakeSystem<DBComponent, string, string>

+ 2 - 2
Server/Hotfix/Module/Message/InnerMessageDispatcher.cs

@@ -1,6 +1,6 @@
-using ETModel;
+
 
-namespace ETHotfix
+namespace ET
 {
     public class InnerMessageDispatcher: IMessageDispatcher
     {

+ 2 - 2
Server/Hotfix/Module/Message/InnerMessageDispatcherHelper.cs

@@ -1,6 +1,6 @@
-using ETModel;
+
 
- namespace ETHotfix
+ namespace ET
 {
     public static class InnerMessageDispatcherHelper
     {

+ 2 - 2
Server/Hotfix/Module/Message/MessageDispatherComponentSystem.cs

@@ -1,8 +1,8 @@
 using System;
 using System.Collections.Generic;
-using ETModel;
 
-namespace ETHotfix
+
+namespace ET
 {
 	[ObjectSystem]
 	public class MessageDispatcherComponentAwakeSystem : AwakeSystem<MessageDispatcherComponent>

+ 2 - 2
Server/Hotfix/Module/Message/NetInnerComponentSystem.cs

@@ -1,6 +1,6 @@
-using ETModel;
+
 
-namespace ETHotfix
+namespace ET
 {
 	[ObjectSystem]
 	public class NetInnerComponentAwakeSystem : AwakeSystem<NetInnerComponent>

+ 2 - 2
Server/Hotfix/Module/Message/OuterMessageDispatcher.cs

@@ -1,6 +1,6 @@
-using ETModel;
+
 
-namespace ETHotfix
+namespace ET
 {
 	public class OuterMessageDispatcher: IMessageDispatcher
 	{

+ 2 - 2
Server/Hotfix/Module/Scene/AfterScenesAdd_CreateScene.cs

@@ -1,6 +1,6 @@
-using ETModel;
 
-namespace ETHotfix
+
+namespace ET
 {
     [Event(EventIdType.AfterScenesAdd)]
     public class AfterScenesAdd_CreateScene: AEvent

+ 2 - 2
Server/Hotfix/Module/Scene/SceneFactory.cs

@@ -1,6 +1,6 @@
-using ETModel;
 
-namespace ETHotfix
+
+namespace ET
 {
     public static class SceneFactory
     {

+ 6 - 0
Server/Hotfix/Server.Hotfix.csproj

@@ -21,6 +21,12 @@
     <Compile Include="..\..\Unity\Assets\Hotfix\Module\Message\NetOuterComponentSystem.cs">
       <Link>Module\Message\NetOuterComponentSystem.cs</Link>
     </Compile>
+    <Compile Include="..\..\Unity\Assets\Hotfix\Module\Numeric\NumericChangeEvent_NotifyWatcher.cs">
+      <Link>Module\Numeric\NumericChangeEvent_NotifyWatcher.cs</Link>
+    </Compile>
+    <Compile Include="..\..\Unity\Assets\Hotfix\Module\Numeric\NumericWatcher_Hp_ShowUI.cs">
+      <Link>Module\Numeric\NumericWatcher_Hp_ShowUI.cs</Link>
+    </Compile>
     <EmbeddedResource Remove="Other\**" />
     <None Remove="Other\**" />
   </ItemGroup>

+ 1 - 1
Server/Model/Base/Event/EventIdType.cs

@@ -1,4 +1,4 @@
-namespace ETModel
+namespace ET
 {
 	public static class EventIdType
 	{

+ 1 - 1
Server/Model/Base/Helper/DllHelper.cs

@@ -1,7 +1,7 @@
 using System.IO;
 using System.Reflection;
 
-namespace ETModel
+namespace ET
 {
 	public static class DllHelper
 	{

+ 1 - 1
Server/Model/Base/Helper/JsonHelper.cs

@@ -1,6 +1,6 @@
 using System;
 
-namespace ETModel
+namespace ET
 {
 	public static class JsonHelper
 	{

+ 1 - 1
Server/Model/Base/Log.cs

@@ -1,6 +1,6 @@
 using System;
 
-namespace ETModel
+namespace ET
 {
 	public static class Log
 	{

+ 1 - 1
Server/Model/Base/LogType.cs

@@ -1,4 +1,4 @@
-namespace ETModel
+namespace ET
 {
 	public enum LogType
 	{

+ 1 - 1
Server/Model/Base/Logger/ILog.cs

@@ -1,4 +1,4 @@
-namespace ETModel
+namespace ET
 {
 	public interface ILog
 	{

+ 1 - 1
Server/Model/Base/Logger/NLogAdapter.cs

@@ -1,6 +1,6 @@
 using NLog;
 
-namespace ETModel
+namespace ET
 {
 	public class NLogAdapter: ILog
 	{

+ 1 - 1
Server/Model/Base/Object/IDBCollection.cs

@@ -1,4 +1,4 @@
-namespace ETModel
+namespace ET
 {
     public interface IDBCollection
     {

+ 0 - 43
Server/Model/Component/KVComponent.cs

@@ -1,43 +0,0 @@
-using System.Collections.Generic;
-using MongoDB.Bson.Serialization.Attributes;
-
-namespace ETModel
-{
-	/// <summary>
-	/// Key Value组件用于保存一些数据
-	/// </summary>
-	public class KVComponent: Entity
-	{
-		[BsonElement]
-		private readonly Dictionary<string, object> kv = new Dictionary<string, object>();
-
-		public void Add(string key, object value)
-		{
-			this.kv.Add(key, value);
-		}
-
-		public void Remove(string key)
-		{
-			this.kv.Remove(key);
-		}
-
-		public T Get<T>(string key)
-		{
-			if (!this.kv.TryGetValue(key, out object k))
-			{
-				return default(T);
-			}
-			return (T) k;
-		}
-
-		public override void Dispose()
-		{
-			if (this.IsDisposed)
-			{
-				return;
-			}
-
-			base.Dispose();
-		}
-	}
-}

+ 0 - 26
Server/Model/Component/OptionComponent.cs

@@ -1,26 +0,0 @@
-using System;
-using CommandLine;
-
-namespace ETModel
-{
-	[ObjectSystem]
-	public class OptionComponentSystem : AwakeSystem<OptionComponent, string[]>
-	{
-		public override void Awake(OptionComponent self, string[] a)
-		{
-			self.Awake(a);
-		}
-	}
-	
-	public class OptionComponent : Entity
-	{
-		public Options Options { get; set; }
-
-		public void Awake(string[] args)
-		{
-			Parser.Default.ParseArguments<Options>(args)
-				.WithNotParsed(error => throw new Exception($"命令行格式错误!"))
-				.WithParsed(options => { Options = options; });
-		}
-	}
-}

+ 0 - 15
Server/Model/Component/RobotComponent.cs

@@ -1,15 +0,0 @@
-namespace ETModel
-{
-	public class RobotComponent: Entity
-	{
-		public override void Dispose()
-		{
-			if (this.IsDisposed)
-			{
-				return;
-			}
-
-			base.Dispose();
-		}
-	}
-}

+ 1 - 1
Server/Model/Demo/Config/StartProcessConfig.cs

@@ -1,4 +1,4 @@
-namespace ETModel
+namespace ET
 {
 	[Config]
 	public partial class StartProcessConfigCategory : ACategory<StartProcessConfig>

+ 1 - 1
Server/Model/Demo/Config/StartSceneConfig.cs

@@ -1,4 +1,4 @@
-namespace ETModel
+namespace ET
 {
 	[Config]
 	public partial class StartSceneConfigCategory : ACategory<StartSceneConfig>

+ 1 - 1
Server/Model/Demo/Config/StartZoneConfig.cs

@@ -1,4 +1,4 @@
-namespace ETModel
+namespace ET
 {
 	[Config]
 	public partial class StartZoneConfigCategory : ACategory<StartZoneConfig>

+ 1 - 1
Server/Model/Demo/Config/UnitConfig.cs

@@ -1,4 +1,4 @@
-namespace ETModel
+namespace ET
 {
 	[Config]
 	public partial class UnitConfigCategory : ACategory<UnitConfig>

+ 3 - 6
Server/Model/Demo/ConfigPartial/StartProcessConfig.cs

@@ -1,14 +1,11 @@
 using System.ComponentModel;
 
-namespace ETModel
+namespace ET
 {
-	public partial class StartProcessConfigCategory : ISupportInitialize
+	public partial class StartProcessConfigCategory
 	{
-		
-		
-		public void EndInit()
+		public override void EndInit()
 		{
-			
 		}
 	}
 	

+ 3 - 3
Server/Model/Demo/ConfigPartial/StartSceneConfig.cs

@@ -1,9 +1,9 @@
 using System.Collections.Generic;
 using System.ComponentModel;
 
-namespace ETModel
+namespace ET
 {
-    public partial class StartSceneConfigCategory: ISupportInitialize
+    public partial class StartSceneConfigCategory
     {
         public MultiMap<int, StartSceneConfig> Gates = new MultiMap<int, StartSceneConfig>();
         
@@ -23,7 +23,7 @@ namespace ETModel
             return this.ZoneScenesByName[zone][name];
         }
         
-        public void EndInit()
+        public override void EndInit()
         {
             foreach (StartSceneConfig startSceneConfig in this.GetAll().Values)
             {

+ 1 - 1
Server/Model/Demo/GateSessionKeyComponent.cs

@@ -1,6 +1,6 @@
 using System.Collections.Generic;
 
-namespace ETModel
+namespace ET
 {
 	public class GateSessionKeyComponent : Entity
 	{

+ 1 - 1
Server/Model/Demo/MoveComponent.cs

@@ -2,7 +2,7 @@ using System;
 using System.Threading;
 using UnityEngine;
 
-namespace ETModel
+namespace ET
 {
     public class MoveComponent: Entity
     {

+ 1 - 1
Server/Model/Demo/Player.cs

@@ -1,4 +1,4 @@
-namespace ETModel
+namespace ET
 {
 	[ObjectSystem]
 	public class PlayerSystem : AwakeSystem<Player, string>

+ 1 - 1
Server/Model/Demo/PlayerComponent.cs

@@ -1,7 +1,7 @@
 using System.Collections.Generic;
 using System.Linq;
 
-namespace ETModel
+namespace ET
 {
 	[ObjectSystem]
 	public class PlayerComponentSystem : AwakeSystem<PlayerComponent>

+ 1 - 1
Server/Model/Demo/SessionInfoComponent.cs

@@ -1,4 +1,4 @@
-namespace ETModel
+namespace ET
 {
 	public class SessionInfoComponent : Entity
 	{

+ 1 - 1
Server/Model/Demo/SessionPlayerComponent.cs

@@ -1,4 +1,4 @@
-namespace ETModel
+namespace ET
 {
 	public class SessionPlayerComponent : Entity
 	{

+ 1 - 1
Server/Model/Demo/Unit.cs

@@ -1,7 +1,7 @@
 using PF;
 using UnityEngine;
 
-namespace ETModel
+namespace ET
 {
 	public enum UnitType
 	{

+ 1 - 1
Server/Model/Demo/UnitComponent.cs

@@ -3,7 +3,7 @@ using System.Linq;
 using MongoDB.Bson.Serialization.Attributes;
 using MongoDB.Bson.Serialization.Options;
 
-namespace ETModel
+namespace ET
 {
 	public class UnitComponent: Entity
 	{

+ 1 - 1
Server/Model/Demo/UnitGateComponent.cs

@@ -1,4 +1,4 @@
-namespace ETModel
+namespace ET
 {
 	[ObjectSystem]
 	public class UnitGateComponentAwakeSystem : AwakeSystem<UnitGateComponent, long>

+ 1 - 1
Server/Model/Demo/UnitPathComponent.cs

@@ -3,7 +3,7 @@ using System.Threading;
 using PF;
 using UnityEngine;
 
-namespace ETModel
+namespace ET
 {
     public class UnitPathComponent: Entity
     {

+ 1 - 1
Server/Model/Module/Actor/AMActorHandler.cs

@@ -1,6 +1,6 @@
 using System;
 
-namespace ETModel
+namespace ET
 {
 	public abstract class AMActorHandler<E, Message>: IMActorHandler where E: Entity where Message : class, IActorMessage
 	{

+ 1 - 1
Server/Model/Module/Actor/AMActorRpcHandler.cs

@@ -1,6 +1,6 @@
 using System;
 
-namespace ETModel
+namespace ET
 {
 	public abstract class AMActorRpcHandler<E, Request, Response>: IMActorHandler where E: Entity where Request: class, IActorRequest where Response : class, IActorResponse
 	{

+ 1 - 1
Server/Model/Module/Actor/ActorMessageAttribute.cs

@@ -1,6 +1,6 @@
 using System;
 
-namespace ETModel
+namespace ET
 {
 	public class ActorMessageAttribute : Attribute
 	{

+ 1 - 1
Server/Model/Module/Actor/ActorMessageDispatcherComponent.cs

@@ -1,7 +1,7 @@
 using System;
 using System.Collections.Generic;
 
-namespace ETModel
+namespace ET
 {
 	/// <summary>
 	/// Actor消息分发组件

+ 1 - 1
Server/Model/Module/Actor/ActorMessageHandlerAttribute.cs

@@ -1,4 +1,4 @@
-namespace ETModel
+namespace ET
 {
 	public class ActorMessageHandlerAttribute : BaseAttribute
 	{

+ 1 - 1
Server/Model/Module/Actor/ActorMessageSender.cs

@@ -1,6 +1,6 @@
 using System;
 
-namespace ETModel
+namespace ET
 {
 	// 知道对方的instanceId,使用这个类发actor消息
 	public struct ActorMessageSender

+ 1 - 1
Server/Model/Module/Actor/ActorMessageSenderComponent.cs

@@ -1,6 +1,6 @@
 using System.Collections.Generic;
 
-namespace ETModel
+namespace ET
 {
 	public class ActorMessageSenderComponent: Entity
 	{

+ 1 - 1
Server/Model/Module/Actor/ActorResponse.cs

@@ -1,4 +1,4 @@
-namespace ETModel
+namespace ET
 {
 	/// <summary>
 	/// actor RPC消息响应

+ 1 - 1
Server/Model/Module/Actor/ActorTask.cs

@@ -1,4 +1,4 @@
-namespace ETModel
+namespace ET
 {
 	public struct ActorTask
 	{

+ 1 - 1
Server/Model/Module/Actor/IMActorHandler.cs

@@ -1,6 +1,6 @@
 using System;
 
-namespace ETModel
+namespace ET
 {
 	public interface IMActorHandler
 	{

+ 1 - 1
Server/Model/Module/Actor/MailBoxComponent.cs

@@ -1,4 +1,4 @@
-namespace ETModel
+namespace ET
 {
 	/// <summary>
 	/// 挂上这个组件表示该Entity是一个Actor,接收的消息将会队列处理

+ 1 - 1
Server/Model/Module/Actor/MailboxType.cs

@@ -1,4 +1,4 @@
-namespace ETModel
+namespace ET
 {
 	public enum MailboxType
 	{

+ 1 - 1
Server/Model/Module/ActorLocation/AMActorLocationHandler.cs

@@ -1,6 +1,6 @@
 using System;
 
-namespace ETModel
+namespace ET
 {
 	public abstract class AMActorLocationHandler<E, Message>: IMActorHandler where E: Entity where Message : class, IActorLocationMessage
 	{

+ 1 - 1
Server/Model/Module/ActorLocation/AMActorLocationRpcHandler.cs

@@ -1,6 +1,6 @@
 using System;
 
-namespace ETModel
+namespace ET
 {
 	public abstract class AMActorLocationRpcHandler<E, Request, Response>: IMActorHandler where E: Entity where Request: class, IActorLocationRequest where Response : class, IActorLocationResponse
 	{

+ 1 - 1
Server/Model/Module/ActorLocation/ActorLocationSender.cs

@@ -1,4 +1,4 @@
-namespace ETModel
+namespace ET
 {
     // 知道对方的Id,使用这个类发actor消息
     public class ActorLocationSender : Entity

+ 1 - 1
Server/Model/Module/ActorLocation/ActorLocationSenderComponent.cs

@@ -1,6 +1,6 @@
 using System;
 
-namespace ETModel
+namespace ET
 {
     public class ActorLocationSenderComponent: Entity
     {

+ 1 - 1
Server/Model/Module/ActorLocation/LocationComponent.cs

@@ -1,7 +1,7 @@
 using System;
 using System.Collections.Generic;
 
-namespace ETModel
+namespace ET
 {
 	[ObjectSystem]
 	public class LockInfoAwakeSystem : AwakeSystem<LockInfo, long, CoroutineLock>

+ 1 - 1
Server/Model/Module/ActorLocation/LocationProxyComponent.cs

@@ -1,6 +1,6 @@
 using System.Net;
 
-namespace ETModel
+namespace ET
 {
 	public class LocationProxyComponent : Entity
 	{

+ 1 - 1
Server/Model/Module/Benchmark/BenchmarkComponent.cs

@@ -1,4 +1,4 @@
-namespace ETModel
+namespace ET
 {
 	public class BenchmarkComponent: Entity
 	{

+ 1 - 1
Server/Model/Module/Benchmark/WebSocketBenchmarkComponent.cs

@@ -1,4 +1,4 @@
-namespace ETModel
+namespace ET
 {
 	public class WebSocketBenchmarkComponent: Entity
 	{

+ 1 - 1
Server/Model/Module/Config/ConfigComponent.cs

@@ -1,7 +1,7 @@
 using System;
 using System.Collections.Generic;
 
-namespace ETModel
+namespace ET
 {
 	/// <summary>
 	/// Config组件会扫描所有的有ConfigAttribute标签的配置,加载进来

+ 1 - 1
Server/Model/Module/Config/ConfigHelper.cs

@@ -1,7 +1,7 @@
 using System;
 using System.IO;
 
-namespace ETModel
+namespace ET
 {
 	public static class ConfigHelper
 	{

+ 1 - 1
Server/Model/Component/ConsoleComponent.cs → Server/Model/Module/Console/ConsoleComponent.cs

@@ -2,7 +2,7 @@ using System;
 using System.Threading;
 using System.Threading.Tasks;
 
-namespace ETModel
+namespace ET
 {
     [ObjectSystem]
     public class ConsoleComponentAwakeSystem : StartSystem<ConsoleComponent>

+ 1 - 1
Server/Model/Component/ReplComponent.cs → Server/Model/Module/Console/ReplComponent.cs

@@ -3,7 +3,7 @@ using System.Threading;
 using Microsoft.CodeAnalysis.CSharp.Scripting;
 using Microsoft.CodeAnalysis.Scripting;
 
-namespace ETModel
+namespace ET
 {
     [ObjectSystem]
     public class ReplComponentAwakeSystem : AwakeSystem<ReplComponent>

+ 1 - 1
Server/Model/Module/DB/DBComponent.cs

@@ -2,7 +2,7 @@
 using System.Text;
 using MongoDB.Driver;
 
-namespace ETModel
+namespace ET
 {
 	/// <summary>
 	/// 用来缓存数据

+ 1 - 1
Server/Model/Module/Message/AMRpcHandler.cs

@@ -1,6 +1,6 @@
 using System;
 
-namespace ETModel
+namespace ET
 {
 	public abstract class AMRpcHandler<Request, Response>: IMHandler where Request : class, IRequest where Response : class, IResponse 
 	{

+ 2 - 2
Server/Model/Module/Message/InnerMessage.cs

@@ -1,6 +1,6 @@
-using ETModel;
+
 using System.Collections.Generic;
-namespace ETModel
+namespace ET
 {
 /// <summary>
 /// 传送unit

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików