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.
48 lines
1.6 KiB
48 lines
1.6 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
using Sog;
|
|
using ProtoCSStruct;
|
|
|
|
namespace Friend
|
|
{
|
|
//先备注下:现在只有创建没有删除,这个之后一定要处理(可以考虑在world删除PlayerInWorld的时候通知friend删除PlayerInfoFriend)
|
|
public class PlayerInfoFriend
|
|
{
|
|
// 只读属性
|
|
public long Chip => roleBase.Chip;
|
|
|
|
|
|
public long UserID; //用户id
|
|
public AccountInfo accountInfo;
|
|
|
|
public string Lang; //语言
|
|
public string IpAddr = ""; //ip地址
|
|
|
|
public uint WorldServerID; //用户所在的游戏world id
|
|
public uint ChatServerID; //用户所在的游戏world id
|
|
|
|
// 有游戏角色Uid的sns好友
|
|
public List<SnsFriendInfoAccount> SnsFriendList = new List<SnsFriendInfoAccount>();
|
|
|
|
// 下面这些数据需要先更新到Player, 再更新到FriendCacheInfoStruct
|
|
// 这是因为FriendCacheInfoStruct在DB加载成功前不存在, 而Player在玩家上线时就生成
|
|
public DBRoleBase roleBase;
|
|
public bool IsOpenArena = false;
|
|
public int iconFrameId;
|
|
public int realmId;
|
|
public int mainlinePassId; // 主线副本进度
|
|
public bool IsOnline; // 是否在线
|
|
public long LoginTime; //登录时间
|
|
public long LogoutTime; //登出时间
|
|
|
|
// 战力和阵容目前由world下发, friendsvr上的数据没使用了
|
|
public long mainlineFightPower;
|
|
public RepeatedDBFriendHeroOne_8 MainlineHeros;
|
|
|
|
|
|
public PlayerInfoFriend() { }
|
|
}
|
|
}
|
|
|