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.
45 lines
980 B
45 lines
980 B
/*
|
|
Sog 游戏基础库
|
|
2016 by zouwei
|
|
*/
|
|
|
|
using System;
|
|
using System.IO;
|
|
|
|
|
|
using Sog;
|
|
|
|
|
|
namespace Version
|
|
{
|
|
public static class VersionServerUtils
|
|
{
|
|
public static ProtoCSStructPacker GetProtoPacker()
|
|
{
|
|
return ProtoPackerFactory.Instance.GetProtoCSStructPacker();
|
|
}
|
|
|
|
public static VersionServerData GetVersionServerData()
|
|
{
|
|
return ServerDataObjMgr.GetDataObj<VersionServerData>(VersionDataObjType.VersionServerData);
|
|
}
|
|
|
|
public static StructPacketSender GetPacketSender()
|
|
{
|
|
return GetVersionServerData().m_packetSender;
|
|
}
|
|
|
|
public static long GetTimeSecond()
|
|
{
|
|
return GetVersionServerData().m_app.Time.GetTimeSecond();
|
|
}
|
|
|
|
/// <summary>
|
|
/// 获取服务器配置方法
|
|
/// </summary>
|
|
public static VersionServerConfig GetServerConfig()
|
|
{
|
|
return (VersionServerConfig)ServerConfigMgr.Instance.m_serverConfig;
|
|
}
|
|
}
|
|
}
|
|
|