38 lines
931 B
C#
38 lines
931 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using ServerCore;
|
|
|
|
|
|
using SESSION_ID = System.Int32;
|
|
using META_ID = System.UInt32;
|
|
using ENTITY_GUID = System.String;
|
|
using ACCOUNT_ID = System.String;
|
|
using OWNER_GUID = System.String;
|
|
using USER_GUID = System.String;
|
|
using CHARACTER_GUID = System.String;
|
|
using ITEM_GUID = System.String;
|
|
|
|
|
|
|
|
namespace ServerBase;
|
|
|
|
public static class ServerLogicApp
|
|
{
|
|
private static IServerLogic? m_server_logic_base;
|
|
|
|
public static void setServerLogicApp(IServerLogic serverLogic) => m_server_logic_base = serverLogic;
|
|
|
|
public static IServerLogic getServerLogicApp()
|
|
{
|
|
NullReferenceCheckHelper.throwIfNull(m_server_logic_base, () => $"m_server_logic_base is null !!!");
|
|
return m_server_logic_base;
|
|
}
|
|
|
|
public static IServerLogic? getServerLogicAppWithNull() => m_server_logic_base;
|
|
}
|