You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

55 lines
1022 B

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;
}
}
}