Просмотр исходного кода

1.Object类放入Common.Base里面
2.Event相关放入Common.Event里面

tanghai 11 лет назад
Родитель
Сommit
eb5e8a9bd1

+ 1 - 1
CSharp/Game/BehaviorTree/BlackBoard.cs

@@ -1,4 +1,4 @@
-using Common.Component;
+using Common.Base;
 
 namespace BehaviorTree
 {

+ 1 - 1
CSharp/Game/Model/Buff.cs

@@ -1,4 +1,4 @@
-using Common.Component;
+using Common.Base;
 
 namespace Model
 {

+ 1 - 1
CSharp/Game/Model/GameObject.cs

@@ -1,4 +1,4 @@
-using Common.Component;
+using Common.Base;
 
 namespace Model
 {

+ 1 - 1
CSharp/Platform/Common/Component/Object.cs → CSharp/Platform/Common/Base/Object.cs

@@ -1,7 +1,7 @@
 using System.Collections.Generic;
 using MongoDB.Bson;
 
-namespace Common.Component
+namespace Common.Base
 {
     public class Object
     {

+ 5 - 5
CSharp/Platform/Common/Common.csproj

@@ -58,11 +58,11 @@
     <Reference Include="System.Xml" />
   </ItemGroup>
   <ItemGroup>
-    <Compile Include="Component\EventTrigger.cs" />
-    <Compile Include="Component\Env.cs" />
-    <Compile Include="Component\IEventAttribute.cs" />
-    <Compile Include="Component\IEvent.cs" />
-    <Compile Include="Component\Object.cs" />
+    <Compile Include="Event\EventTrigger.cs" />
+    <Compile Include="Event\Env.cs" />
+    <Compile Include="Event\IEventAttribute.cs" />
+    <Compile Include="Event\IEvent.cs" />
+    <Compile Include="Base\Object.cs" />
     <Compile Include="Config\ConfigAttribute.cs" />
     <Compile Include="Config\ConfigCategory.cs" />
     <Compile Include="Config\ConfigManager.cs" />

+ 0 - 6
CSharp/Platform/Common/Component/Env.cs

@@ -1,6 +0,0 @@
-namespace Common.Component
-{
-    public class Env: Object
-    {
-    }
-}

+ 8 - 0
CSharp/Platform/Common/Event/Env.cs

@@ -0,0 +1,8 @@
+using Common.Base;
+
+namespace Common.Event
+{
+    public class Env: Object
+    {
+    }
+}

+ 1 - 1
CSharp/Platform/Common/Component/EventTrigger.cs → CSharp/Platform/Common/Event/EventTrigger.cs

@@ -1,7 +1,7 @@
 using System;
 using System.Collections.Generic;
 
-namespace Common.Component
+namespace Common.Event
 {
     public class EventTrigger<T> where T : IEventAttribute
     {

+ 1 - 1
CSharp/Platform/Common/Component/IEvent.cs → CSharp/Platform/Common/Event/IEvent.cs

@@ -1,4 +1,4 @@
-namespace Common.Component
+namespace Common.Event
 {
     public interface IEvent
     {

+ 1 - 1
CSharp/Platform/Common/Component/IEventAttribute.cs → CSharp/Platform/Common/Event/IEventAttribute.cs

@@ -1,4 +1,4 @@
-namespace Common.Component
+namespace Common.Event
 {
     public class IEventAttribute
     {