using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Sog; namespace SMConsole { public static class SMConsoleUtils { private static ServerApp m_app; private static PacketSender m_packetSender; public static SMConsoleConfig Config; public static void Init(ServerApp app) { m_app = app; m_packetSender = new PacketSender(); } public static ProtoBufPacker GetProtoPacker() { return ProtoPackerFactory.Instance.GetProtoBufPacker(); } public static PacketSender GetPacketSender() { return m_packetSender; } public static long GetTimeSecond() { return m_app.Time.GetTimeSecond(); } public static uint GetAppID() { return m_app.ServerID; } public static ServerApp GetApp() { return m_app; } } }