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.
61 lines
1.5 KiB
61 lines
1.5 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
using Sog;
|
|
|
|
namespace Version
|
|
{
|
|
public class ClientConnectInfo
|
|
{
|
|
public long iConnectSessionID;
|
|
public long iConnectTime;
|
|
public uint uGateServerID;
|
|
public string ip;
|
|
}
|
|
|
|
public class SysNoticeData {
|
|
public int id { get; set; }
|
|
public string title { get; set; }
|
|
public string content { get; set; }
|
|
|
|
public long m_startTime { get; set; }
|
|
public long m_endTime { get; set; }
|
|
public int sort { get; set; }
|
|
|
|
public string pic { get; set; }
|
|
public bool aotupop { get; set; }
|
|
|
|
public string language { get; set; }
|
|
}
|
|
|
|
|
|
public class VersionServerData : IServerDataObj
|
|
{
|
|
public ServerApp m_app;
|
|
public StructPacketSender m_packetSender;
|
|
|
|
public List<SysNoticeData> m_NoticeData;
|
|
|
|
|
|
public Dictionary<long, ClientConnectInfo> m_ClientConnectDict;
|
|
|
|
|
|
|
|
public VersionServerData(ServerApp app)
|
|
{
|
|
|
|
m_app = app;
|
|
m_packetSender = new StructPacketSender();
|
|
m_packetSender.Init(app.ServerID, app.GetCluster());
|
|
m_NoticeData = new List<SysNoticeData>();
|
|
m_ClientConnectDict = new Dictionary<long, ClientConnectInfo>();
|
|
}
|
|
|
|
public override int GetDataType()
|
|
{
|
|
return VersionDataObjType.VersionServerData;
|
|
}
|
|
}
|
|
}
|
|
|