diff --git a/FunGame.Core.Api/Interface/Interface.cs b/FunGame.Core.Api/Interface/Interface.cs
index 75d68c1..573eec7 100644
--- a/FunGame.Core.Api/Interface/Interface.cs
+++ b/FunGame.Core.Api/Interface/Interface.cs
@@ -34,7 +34,6 @@ namespace FunGame.Core.Api.Interface
public interface ServerInterface
{
- public string DBConnection();
- public Hashtable GetServerSettings();
+
}
}
diff --git a/FunGame.Core.Api/Model/Enum/CommonEnums.cs b/FunGame.Core.Api/Model/Enum/CommonEnums.cs
index b5b3e19..3216373 100644
--- a/FunGame.Core.Api/Model/Enum/CommonEnums.cs
+++ b/FunGame.Core.Api/Model/Enum/CommonEnums.cs
@@ -123,11 +123,11 @@ namespace FunGame.Core.Api.Model.Enum
#region Method
- public enum WebHelperMethod
+ public enum SocketHelperMethod
{
CreateSocket,
CloseSocket,
- StartWebHelper,
+ StartSocketHelper,
Login,
Logout,
Disconnect
diff --git a/FunGame.Core.Api/Util/AssemblyHelper.cs b/FunGame.Core.Api/Util/AssemblyHelper.cs
deleted file mode 100644
index efa8b05..0000000
--- a/FunGame.Core.Api/Util/AssemblyHelper.cs
+++ /dev/null
@@ -1,89 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Reflection;
-using System.Diagnostics;
-using FunGame.Core.Api.Model.Enum;
-using System.Data.Common;
-
-namespace FunGame.Core.Api.Util
-{
- ///
- /// 在FunGame.Core.Api中添加新接口和新实现时,需要:
- /// 在FunGame.Core.Api.Model.Enum.CommonEnums里同步添加InterfaceType、InterfaceMethod
- ///
- public class AssemblyHelper
- {
- /**
- * 定义需要反射的DLL
- */
- public const string FUNGAME_CORE = "FunGame.Core";
-
- /**
- * 无需二次修改的
- */
- public static string EXEDocPath = System.Environment.CurrentDirectory.ToString() + "\\"; // 程序目录
- public static string PluginDocPath = System.Environment.CurrentDirectory.ToString() + "\\plugins\\"; // 插件目录
-
- ////////////////////////////////////////////////////////////////////
- /////////////// * 下 面 是 工 具 类 实 现 * ////////////////
- ///////////////////////////////////////////////////////////////////
-
- /**
- * 定义反射变量
- */
- private Assembly? Assembly;
- private Type? Type;
- private MethodInfo? Method;
- private object? Instance;
-
- ///
- /// 获取FunGame.Core.dll中接口的实现方法
- ///
- /// 接口代号
- ///
- private Type? GetFunGameCoreImplement(int Interface)
- {
- // 通过类名获取获取命名空间+类名称
- string ClassName = EnumHelper.GetImplementClassName(Interface);
- List? Classes = null;
- if (Assembly != null)
- {
- Classes = Assembly.GetTypes().Where(w =>
- w.Namespace == "FunGame.Core.Implement" &&
- w.Name.Contains(ClassName)
- ).ToList();
- if (Classes != null && Classes.Count > 0)
- return Classes[0];
- else return null;
- }
- else return null;
- }
-
- ///
- /// 公开方法:获取FUNGAME.CORE.DLL中指定方法的返回值
- ///
- /// 接口代号
- /// 方法代号
- ///
- public object? GetFunGameCoreValue(int Interface, int Method)
- {
- Assembly = Assembly.LoadFile(EXEDocPath + @FUNGAME_CORE + ".dll");
- Type = GetFunGameCoreImplement(Interface); // 通过类名获取获取命名空间+类名称
- string MethodName = EnumHelper.GetImplementMethodName(Method); // 获取方法名
- if (Assembly != null && Type != null) this.Method = Type.GetMethod(MethodName); // 从Type中查找方法名
- else return null;
- Instance = Assembly.CreateInstance(Type.Namespace + "." + Type.Name);
- if (Instance != null && this.Method != null)
- {
- object? value = this.Method.Invoke(Instance, Array.Empty