فهرست منبع

删除不用的代码

tanghai 8 سال پیش
والد
کامیت
8338c604f6

+ 0 - 30
Server/Model/Other/EntityEventId.cs

@@ -1,30 +0,0 @@
-namespace Model
-{
-	public enum EntityEventId
-	{
-		TimerComponent = 1,
-		ClientConfigComponent = 2,
-		EventComponent = 3,
-		GameObjectComponent = 4,
-		ILEventComponent = 5,
-		MessageDispatherComponent = 6,
-		NetInnerComponent = 7,
-		NetOuterComponent = 8,
-		RobotComponent = 9,
-		UIComponent = 10,
-		WWWAsync = 11,
-		ILRuntimeComponent = 12,
-		ResourcesComponent = 13,
-		UnitComponent = 14,
-
-		AppManagerComponent = 15,
-		GateSessionKeyComponent = 16,
-		OptionComponent = 17,
-		StartConfigComponent = 18,
-		LockComponent = 19,
-		MasterComponent = 20,
-		RealmGateAddressComponent = 21,
-		UILobbyComponent = 22,
-		BehaviorTreeComponent = 23,
-	}
-}

+ 0 - 14
Server/Model/Other/IInstanceMethod.cs

@@ -1,14 +0,0 @@
-namespace Model
-{
-	public abstract class IInstanceMethod
-	{
-		public string Name { get; protected set; }
-		public abstract void Run(params object[] param);
-	}
-
-	public abstract class IStaticMethod
-	{
-		public string Name { get; protected set; }
-		public abstract void Run(object instance, params object[] param);
-	}
-}

+ 0 - 39
Server/Model/Other/MonoMethod.cs

@@ -1,39 +0,0 @@
-using System;
-using System.Reflection;
-using Base;
-
-namespace Model
-{
-	public class MonoInstanceMethod : IInstanceMethod
-	{
-		private readonly object instance;
-		private readonly MethodInfo methodInfo;
-		public MonoInstanceMethod(Type type, string methodName)
-		{
-			this.Name = methodName;
-			this.instance = Activator.CreateInstance(type);
-			this.methodInfo = type.GetMethod(methodName);
-		}
-
-		public override void Run(params object[] param)
-		{
-			this.methodInfo.Invoke(this.instance, param);
-		}
-	}
-
-	public class MonoStaticMethod : IStaticMethod
-	{
-		private readonly MethodInfo methodInfo;
-
-		public MonoStaticMethod(MethodInfo methodInfo)
-		{
-			this.methodInfo = methodInfo;
-			this.Name = methodInfo.Name;
-		}
-
-		public override void Run(object instance, params object[] param)
-		{
-			this.methodInfo.Run(instance, param);
-		}
-	}
-}

+ 1 - 7
Server/Model/Other/Options.cs

@@ -10,19 +10,13 @@ namespace Model
 {
 	public class Options: ICloneable
 	{
-#if SERVER
 		[Option("appId", Required = true)]
-#endif
 		public int AppId { get; set; }
-
-#if SERVER
+		
 		[Option("appType", Required = true)]
-#endif
 		public AppType AppType { get; set; }
 
-#if SERVER
 		[Option("config", Required = false, DefaultValue = "Start.txt")]
-#endif
 		public string Config { get; set; }
 
 		public object Clone()

+ 0 - 3
Server/Model/Server.Model.csproj

@@ -105,9 +105,6 @@
     <Compile Include="Object\EntityType.cs" />
     <Compile Include="Object\Object.cs" />
     <Compile Include="Object\ObjectEvents.cs" />
-    <Compile Include="Other\EntityEventId.cs" />
-    <Compile Include="Other\IInstanceMethod.cs" />
-    <Compile Include="Other\MonoMethod.cs" />
     <Compile Include="Other\OneThreadSynchronizationContext.cs" />
     <Compile Include="Other\Options.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />