Selaa lähdekoodia

导表生成代码到Codes目录,csproj引用文件改成引用目录

tanghai 4 vuotta sitten
vanhempi
commit
ec251b7886

+ 1 - 1
Server/Model/ExcelExporter/ExcelExporter.cs

@@ -39,7 +39,7 @@ namespace ET
     {
         private static string template;
 
-        private const string clientClassDir = "../Unity/Assets/Model/Generate/Config";
+        private const string clientClassDir = "../Unity/Codes/Model/Generate/Config";
         private const string serverClassDir = "../Server/Model/Generate/Config";
         
         private const string excelDir = "../Excel";

+ 1 - 32
Unity/Unity.Hotfix.csproj

@@ -52,38 +52,7 @@
     <ImplicitlyExpandNETStandardFacades>false</ImplicitlyExpandNETStandardFacades>
     <ImplicitlyExpandDesignTimeFacades>false</ImplicitlyExpandDesignTimeFacades>
   </PropertyGroup>
-  <ItemGroup>
-     <Compile Include="Codes\Hotfix\Core\Scene\ZoneSceneFlagComponentSystem.cs" />
-     <Compile Include="Codes\Hotfix\Core\Scene\ZoneSceneManagerComponentSystem.cs" />
-     <Compile Include="Codes\Hotfix\Demo\AI\AI_Attack.cs" />
-     <Compile Include="Codes\Hotfix\Demo\AI\AI_XunLuo.cs" />
-     <Compile Include="Codes\Hotfix\Demo\AI\XunLuoPathComponentSystem.cs" />
-     <Compile Include="Codes\Hotfix\Demo\ConstValue.cs" />
-     <Compile Include="Codes\Hotfix\Demo\Login\EnterMapHelper.cs" />
-     <Compile Include="Codes\Hotfix\Demo\Login\LoginHelper.cs" />
-     <Compile Include="Codes\Hotfix\Demo\Move\M2C_PathfindingResultHandler.cs" />
-     <Compile Include="Codes\Hotfix\Demo\Move\M2C_StopHandler.cs" />
-     <Compile Include="Codes\Hotfix\Demo\Move\MoveComponentSystem.cs" />
-     <Compile Include="Codes\Hotfix\Demo\Move\MoveHelper.cs" />
-     <Compile Include="Codes\Hotfix\Demo\Scene\SceneFactory.cs" />
-     <Compile Include="Codes\Hotfix\Demo\Session\SessionComponentSystem.cs" />
-     <Compile Include="Codes\Hotfix\Demo\Session\SessionStreamDispatcherClientOuter.cs" />
-     <Compile Include="Codes\Hotfix\Demo\Unit\M2C_CreateUnitsHandler.cs" />
-     <Compile Include="Codes\Hotfix\Demo\Unit\UnitComponent.cs" />
-     <Compile Include="Codes\Hotfix\Demo\Unit\UnitFactory.cs" />
-     <Compile Include="Codes\Hotfix\Demo\Unit\UnitSystem.cs" />
-     <Compile Include="Codes\Hotfix\Module\AI\AIComponentSystem.cs" />
-     <Compile Include="Codes\Hotfix\Module\AI\AIDispatcherComponentSystem.cs" />
-     <Compile Include="Codes\Hotfix\Module\Config\ConfigComponentSystem.cs" />
-     <Compile Include="Codes\Hotfix\Module\Message\MessageDispatcherComponentSystem.cs" />
-     <Compile Include="Codes\Hotfix\Module\Message\NetKcpComponentSystem.cs" />
-     <Compile Include="Codes\Hotfix\Module\Message\NetThreadComponentSystem.cs" />
-     <Compile Include="Codes\Hotfix\Module\Message\SessionAcceptTimeoutComponentSystem.cs" />
-     <Compile Include="Codes\Hotfix\Module\Message\SessionIdleCheckerComponentSystem.cs" />
-     <Compile Include="Codes\Hotfix\Module\Message\SessionStreamDispatcherSystem.cs" />
-     <Compile Include="Codes\Hotfix\Module\Numeric\NumericChangeEvent_NotifyWatcher.cs" />
-     <Compile Include="Codes\Hotfix\Module\Numeric\NumericWatcher_Hp_ShowUI.cs" />
-     <Compile Include="Codes\Hotfix\Module\Ping\PingComponentSystem.cs" />
+  <ItemGroup><Compile Include="Codes\Hotfix\**\*.cs" />
  <Reference Include="UnityEngine">
  <HintPath>./Temp/bin/Debug/UnityEngine.dll</HintPath>
  </Reference>

+ 1 - 27
Unity/Unity.HotfixView.csproj

@@ -57,33 +57,7 @@
     <ImplicitlyExpandDesignTimeFacades>false</ImplicitlyExpandDesignTimeFacades>
   </PropertyGroup>
   <ItemGroup>
-    <Compile Include="Codes\HotfixView\AppStart_Init.cs" />
-    <Compile Include="Codes\HotfixView\Demo\Config\ConfigComponent_SetConfigLoader_Awake.cs" />
-    <Compile Include="Codes\HotfixView\Demo\Config\ConfigLoader.cs" />
-    <Compile Include="Codes\HotfixView\Demo\Global\GlobalComponentSystem.cs" />
-    <Compile Include="Codes\HotfixView\Demo\Opera\OperaComponentSystem.cs" />
-    <Compile Include="Codes\HotfixView\Demo\Scene\AfterCreateZoneScene_AddComponent.cs" />
-    <Compile Include="Codes\HotfixView\Demo\Scene\SceneChangeComponentSystem.cs" />
-    <Compile Include="Codes\HotfixView\Demo\UI\UIHelper.cs" />
-    <Compile Include="Codes\HotfixView\Demo\UI\UILoading\LoadingBeginEvent_CreateLoadingUI.cs" />
-    <Compile Include="Codes\HotfixView\Demo\UI\UILoading\LoadingFinishEvent_RemoveLoadingUI.cs" />
-    <Compile Include="Codes\HotfixView\Demo\UI\UILoading\UILoadingComponentSystem.cs" />
-    <Compile Include="Codes\HotfixView\Demo\UI\UILoading\UILoadingEvent.cs" />
-    <Compile Include="Codes\HotfixView\Demo\UI\UILobby\EnterMapFinish_RemoveLobbyUI.cs" />
-    <Compile Include="Codes\HotfixView\Demo\UI\UILobby\LoginFinish_CreateLobbyUI.cs" />
-    <Compile Include="Codes\HotfixView\Demo\UI\UILobby\UILobbyComponentSystem.cs" />
-    <Compile Include="Codes\HotfixView\Demo\UI\UILobby\UILobbyEvent.cs" />
-    <Compile Include="Codes\HotfixView\Demo\UI\UILogin\AppStartInitFinish_CreateLoginUI.cs" />
-    <Compile Include="Codes\HotfixView\Demo\UI\UILogin\LoginFinish_RemoveLoginUI.cs" />
-    <Compile Include="Codes\HotfixView\Demo\UI\UILogin\UILoginComponentSystem.cs" />
-    <Compile Include="Codes\HotfixView\Demo\UI\UILogin\UILoginEvent.cs" />
-    <Compile Include="Codes\HotfixView\Demo\Unit\AfterUnitCreate_CreateUnitView.cs" />
-    <Compile Include="Codes\HotfixView\Demo\Unit\AnimatorComponentSystem.cs" />
-    <Compile Include="Codes\HotfixView\Demo\Unit\ChangePosition_SyncGameObjectPos.cs" />
-    <Compile Include="Codes\HotfixView\Demo\Unit\ChangeRotation_SyncGameObjectRotation.cs" />
-    <Compile Include="Codes\HotfixView\Module\Resource\GameObjectHelper.cs" />
-    <Compile Include="Codes\HotfixView\Module\UI\UIComponentSystem.cs" />
-    <Compile Include="Codes\HotfixView\Module\UI\UIEventComponentSystem.cs" />
+    <Compile Include="Codes\HotfixView\**\*.cs" />
     <Reference Include="UnityEngine">
       <HintPath>./Temp/bin/Debug/UnityEngine.dll</HintPath>
     </Reference>

+ 1 - 125
Unity/Unity.Model.csproj

@@ -57,131 +57,7 @@
     <ImplicitlyExpandDesignTimeFacades>false</ImplicitlyExpandDesignTimeFacades>
   </PropertyGroup>
   <ItemGroup>
-    <Compile Include="Codes\Model\Core\DoubleMap.cs" />
-    <Compile Include="Codes\Model\Core\ETCancelationTokenHelper.cs" />
-    <Compile Include="Codes\Model\Core\Entity\EntitySceneFactory.cs" />
-    <Compile Include="Codes\Model\Core\Entity\Game.cs" />
-    <Compile Include="Codes\Model\Core\Entity\Scene.cs" />
-    <Compile Include="Codes\Model\Core\Entity\SceneType.cs" />
-    <Compile Include="Codes\Model\Core\Entity\TimerComponent.cs" />
-    <Compile Include="Codes\Model\Core\Event\EventAttribute.cs" />
-    <Compile Include="Codes\Model\Core\Event\IEvent.cs" />
-    <Compile Include="Codes\Model\Core\HashSetComponent.cs" />
-    <Compile Include="Codes\Model\Core\ListComponent.cs" />
-    <Compile Include="Codes\Model\Core\Log\FileLogger.cs" />
-    <Compile Include="Codes\Model\Core\Log\ILog.cs" />
-    <Compile Include="Codes\Model\Core\Log\Log.cs" />
-    <Compile Include="Codes\Model\Core\Log\NLogger.cs" />
-    <Compile Include="Codes\Model\Core\Log\UnityLogger.cs" />
-    <Compile Include="Codes\Model\Core\MultiDictionary.cs" />
-    <Compile Include="Codes\Model\Core\MultiMap.cs" />
-    <Compile Include="Codes\Model\Core\MultiMapSet.cs" />
-    <Compile Include="Codes\Model\Core\Object\BaseAttribute.cs" />
-    <Compile Include="Codes\Model\Core\Object\Entity.cs" />
-    <Compile Include="Codes\Model\Core\Object\EntityEventAttribute.cs" />
-    <Compile Include="Codes\Model\Core\Object\EventSystem.cs" />
-    <Compile Include="Codes\Model\Core\Object\HideInHierarchy.cs" />
-    <Compile Include="Codes\Model\Core\Object\IAwakeSystem.cs" />
-    <Compile Include="Codes\Model\Core\Object\IDeserializeSystem.cs" />
-    <Compile Include="Codes\Model\Core\Object\IDestroySystem.cs" />
-    <Compile Include="Codes\Model\Core\Object\ILateUpdateSystem.cs" />
-    <Compile Include="Codes\Model\Core\Object\ILoadSystem.cs" />
-    <Compile Include="Codes\Model\Core\Object\ISerializeToEntity.cs" />
-    <Compile Include="Codes\Model\Core\Object\ISystemType.cs" />
-    <Compile Include="Codes\Model\Core\Object\IUpdateSystem.cs" />
-    <Compile Include="Codes\Model\Core\Object\IdGenerater.cs" />
-    <Compile Include="Codes\Model\Core\Object\NoMemoryCheck.cs" />
-    <Compile Include="Codes\Model\Core\Object\NoObjectPool.cs" />
-    <Compile Include="Codes\Model\Core\Object\Object.cs" />
-    <Compile Include="Codes\Model\Core\Object\ObjectPool.cs" />
-    <Compile Include="Codes\Model\Core\Object\ObjectSystemAttribute.cs" />
-    <Compile Include="Codes\Model\Core\Object\ProtoObject.cs" />
-    <Compile Include="Codes\Model\Core\Object\TimeInfo.cs" />
-    <Compile Include="Codes\Model\Core\ObjectWait.cs" />
-    <Compile Include="Codes\Model\Core\Options.cs" />
-    <Compile Include="Codes\Model\Core\Pool.cs" />
-    <Compile Include="Codes\Model\Core\ProtobufHelper.cs" />
-    <Compile Include="Codes\Model\Core\QueueDictionary.cs" />
-    <Compile Include="Codes\Model\Core\Scene\SceneHelper.cs" />
-    <Compile Include="Codes\Model\Core\Scene\ZoneSceneFlagComponent.cs" />
-    <Compile Include="Codes\Model\Core\Scene\ZoneSceneManagerComponent.cs" />
-    <Compile Include="Codes\Model\Core\TimeHelper.cs" />
-    <Compile Include="Codes\Model\Core\UnOrderMultiMap.cs" />
-    <Compile Include="Codes\Model\Core\UnOrderMultiMapSet.cs" />
-    <Compile Include="Codes\Model\Demo\AI\XunLuoPathComponent.cs" />
-    <Compile Include="Codes\Model\Demo\EventType.cs" />
-    <Compile Include="Codes\Model\Demo\Helper\PositionHelper.cs" />
-    <Compile Include="Codes\Model\Demo\Move\MoveComponent.cs" />
-    <Compile Include="Codes\Model\Demo\Session\SessionComponent.cs" />
-    <Compile Include="Codes\Model\Demo\SessionStreamDispatcherType.cs" />
-    <Compile Include="Codes\Model\Demo\Unit\Unit.cs" />
-    <Compile Include="Codes\Model\Demo\Unit\UnitComponent.cs" />
-    <Compile Include="Codes\Model\Demo\WaitType.cs" />
-    <Compile Include="Codes\Model\Generate\Config\AIConfig.cs" />
-    <Compile Include="Codes\Model\Generate\Config\StartMachineConfig.cs" />
-    <Compile Include="Codes\Model\Generate\Config\StartProcessConfig.cs" />
-    <Compile Include="Codes\Model\Generate\Config\StartSceneConfig.cs" />
-    <Compile Include="Codes\Model\Generate\Config\StartZoneConfig.cs" />
-    <Compile Include="Codes\Model\Generate\Config\UnitConfig.cs" />
-    <Compile Include="Codes\Model\Generate\Message\OuterMessage.cs" />
-    <Compile Include="Codes\Model\Generate\Message\OuterOpcode.cs" />
-    <Compile Include="Codes\Model\Module\AI\AAIHandler.cs" />
-    <Compile Include="Codes\Model\Module\AI\AIComponent.cs" />
-    <Compile Include="Codes\Model\Module\AI\AIConfig.cs" />
-    <Compile Include="Codes\Model\Module\AI\AIDispatcherComponent.cs" />
-    <Compile Include="Codes\Model\Module\Actor\IActorMessage.cs" />
-    <Compile Include="Codes\Model\Module\ActorLocation\ActorResponse.cs" />
-    <Compile Include="Codes\Model\Module\ActorLocation\IActorLocationMessage.cs" />
-    <Compile Include="Codes\Model\Module\Config\ConfigAttribute.cs" />
-    <Compile Include="Codes\Model\Module\Config\ConfigComponent.cs" />
-    <Compile Include="Codes\Model\Module\Config\IConfig.cs" />
-    <Compile Include="Codes\Model\Module\Config\IConfigLoader.cs" />
-    <Compile Include="Codes\Model\Module\CoroutineLock\CoroutineLock.cs" />
-    <Compile Include="Codes\Model\Module\CoroutineLock\CoroutineLockComponent.cs" />
-    <Compile Include="Codes\Model\Module\CoroutineLock\CoroutineLockQueue.cs" />
-    <Compile Include="Codes\Model\Module\CoroutineLock\CoroutineLockQueueType.cs" />
-    <Compile Include="Codes\Model\Module\CoroutineLock\CoroutineLockTimer.cs" />
-    <Compile Include="Codes\Model\Module\CoroutineLock\CoroutineLockType.cs" />
-    <Compile Include="Codes\Model\Module\Message\AMHandler.cs" />
-    <Compile Include="Codes\Model\Module\Message\ErrorCode.cs" />
-    <Compile Include="Codes\Model\Module\Message\IMHandler.cs" />
-    <Compile Include="Codes\Model\Module\Message\IMessage.cs" />
-    <Compile Include="Codes\Model\Module\Message\ISessionStreamDispatcher.cs" />
-    <Compile Include="Codes\Model\Module\Message\MessageAttribute.cs" />
-    <Compile Include="Codes\Model\Module\Message\MessageDispatcherComponent.cs" />
-    <Compile Include="Codes\Model\Module\Message\MessageHandlerAttribute.cs" />
-    <Compile Include="Codes\Model\Module\Message\MessagePackHelper.cs" />
-    <Compile Include="Codes\Model\Module\Message\MessagePool.cs" />
-    <Compile Include="Codes\Model\Module\Message\MessageProxy.cs" />
-    <Compile Include="Codes\Model\Module\Message\MessageSerializeHelper.cs" />
-    <Compile Include="Codes\Model\Module\Message\NetKcpComponent.cs" />
-    <Compile Include="Codes\Model\Module\Message\NetThreadComponent.cs" />
-    <Compile Include="Codes\Model\Module\Message\OpcodeHelper.cs" />
-    <Compile Include="Codes\Model\Module\Message\OpcodeTypeComponent.cs" />
-    <Compile Include="Codes\Model\Module\Message\ResponseTypeAttribute.cs" />
-    <Compile Include="Codes\Model\Module\Message\RpcException.cs" />
-    <Compile Include="Codes\Model\Module\Message\Session.cs" />
-    <Compile Include="Codes\Model\Module\Message\SessionAcceptTimeoutComponent.cs" />
-    <Compile Include="Codes\Model\Module\Message\SessionCallbackComponent.cs" />
-    <Compile Include="Codes\Model\Module\Message\SessionIdleCheckerComponent.cs" />
-    <Compile Include="Codes\Model\Module\Message\SessionStreamDispatcher.cs" />
-    <Compile Include="Codes\Model\Module\Message\SessionStreamDispatcherAttribute.cs" />
-    <Compile Include="Codes\Model\Module\Network\AChannel.cs" />
-    <Compile Include="Codes\Model\Module\Network\AService.cs" />
-    <Compile Include="Codes\Model\Module\Network\Circularbuffer.cs" />
-    <Compile Include="Codes\Model\Module\Network\KChannel.cs" />
-    <Compile Include="Codes\Model\Module\Network\KService.cs" />
-    <Compile Include="Codes\Model\Module\NetworkTCP\PacketParser.cs" />
-    <Compile Include="Codes\Model\Module\NetworkTCP\TChannel.cs" />
-    <Compile Include="Codes\Model\Module\NetworkTCP\TService.cs" />
-    <Compile Include="Codes\Model\Module\Numeric\INumericWatcher.cs" />
-    <Compile Include="Codes\Model\Module\Numeric\NumericComponent.cs" />
-    <Compile Include="Codes\Model\Module\Numeric\NumericType.cs" />
-    <Compile Include="Codes\Model\Module\Numeric\NumericWatcherAttribute.cs" />
-    <Compile Include="Codes\Model\Module\Numeric\NumericWatcherComponent.cs" />
-    <Compile Include="Codes\Model\Module\Ping\PingComponent.cs" />
-    <Compile Include="Codes\Model\Module\UnityWebRequest\UnityWebRequestAsync.cs" />
-    <Compile Include="Codes\Model\Module\UnityWebRequest\UnityWebRequestRenewalAsync.cs" />
+    <Compile Include="Codes\Model\**\*.cs" />
     <Reference Include="UnityEngine">
       <HintPath>./Temp/bin/Debug/UnityEngine.dll</HintPath>
     </Reference>

+ 1 - 22
Unity/Unity.ModelView.csproj

@@ -57,25 +57,7 @@
     <ImplicitlyExpandDesignTimeFacades>false</ImplicitlyExpandDesignTimeFacades>
   </PropertyGroup>
   <ItemGroup>
-    <Compile Include="Codes\ModelView\Demo\Camera\CameraComponent.cs" />
-    <Compile Include="Codes\ModelView\Demo\Entry.cs" />
-    <Compile Include="Codes\ModelView\Demo\Global\GlobalComponent.cs" />
-    <Compile Include="Codes\ModelView\Demo\Opera\OperaComponent.cs" />
-    <Compile Include="Codes\ModelView\Demo\Resource\ResourcesComponent.cs" />
-    <Compile Include="Codes\ModelView\Demo\Resource\ResourcesLoaderComponent.cs" />
-    <Compile Include="Codes\ModelView\Demo\Scene\SceneChangeComponent.cs" />
-    <Compile Include="Codes\ModelView\Demo\UI\UILoading\UILoadingComponent.cs" />
-    <Compile Include="Codes\ModelView\Demo\UI\UILobby\UILobbyComponent.cs" />
-    <Compile Include="Codes\ModelView\Demo\UI\UILogin\UILoginComponent.cs" />
-    <Compile Include="Codes\ModelView\Demo\Unit\AnimatorComponent.cs" />
-    <Compile Include="Codes\ModelView\Demo\Unit\GameObjectComponent.cs" />
-    <Compile Include="Codes\ModelView\Module\UI\AUIEvent.cs" />
-    <Compile Include="Codes\ModelView\Module\UI\LayerNames.cs" />
-    <Compile Include="Codes\ModelView\Module\UI\UI.cs" />
-    <Compile Include="Codes\ModelView\Module\UI\UIComponent.cs" />
-    <Compile Include="Codes\ModelView\Module\UI\UIEventAttribute.cs" />
-    <Compile Include="Codes\ModelView\Module\UI\UIEventComponent.cs" />
-    <Compile Include="Codes\ModelView\Module\UI\UIType.cs" />
+    <Compile Include="Codes\ModelView\**\*.cs" />
     <Reference Include="UnityEngine">
       <HintPath>./Temp/bin/Debug/UnityEngine.dll</HintPath>
     </Reference>
@@ -642,9 +624,6 @@
       <Name>Unity.Mono</Name>
     </ProjectReference>
   </ItemGroup>
-  <ItemGroup>
-    <Folder Include="Assets\ModelView\" />
-  </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
   <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
        Other similar extension points exist, see Microsoft.Common.targets.