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.
46 lines
1020 B
46 lines
1020 B
1 month ago
|
/*
|
||
|
Sog 游戏基础库
|
||
|
2016 by zouwei
|
||
|
*/
|
||
|
|
||
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
|
||
|
using Sog;
|
||
|
|
||
|
namespace Friend
|
||
|
{
|
||
|
public class FriendServerData : IServerDataObj
|
||
|
{
|
||
|
public ServerApp m_app;
|
||
|
public StructPacketSender m_packetSender;
|
||
|
|
||
|
// 服务器自己用的配置文件
|
||
|
public FriendServerConfig m_friendConfig;
|
||
|
|
||
|
// 前一天开始时间
|
||
|
public long m_lastDayStartTime;
|
||
|
|
||
|
//public HashSet<long> m_playerOnline = new HashSet<long>();
|
||
|
|
||
|
public long m_lastGetRealmTime;
|
||
|
|
||
|
|
||
|
public Dictionary<int, RealmBriefInfo> m_realmInfosMap;
|
||
|
|
||
|
|
||
|
public FriendServerData(ServerApp app)
|
||
|
{
|
||
|
m_app = app;
|
||
|
m_packetSender = new StructPacketSender();
|
||
|
m_packetSender.Init(app.ServerID, app.GetCluster());
|
||
|
m_realmInfosMap = new Dictionary<int, RealmBriefInfo>();
|
||
|
}
|
||
|
|
||
|
public override int GetDataType()
|
||
|
{
|
||
|
return FriendDataObjType.FriendServerData;
|
||
|
}
|
||
|
}
|
||
|
}
|