目录为:Assets/Scripts/GameEntity/目录下
Friend.cs
看来是好友类
using System;
using System.Collections.Generic;
//好友
public class Friend
{
public UInt64 SGUID
{
private set;
get;
}
//是否在线
public bool isOnline
{
private set;
get;
}
//昵称
public string NiceName
{
private set;
get;
}
public int HeadId
{
private set;
get;
}
//是否是VIP
public uint isVip
{
private set;
get;
}
//在GameDefine处定义:
//FRIENDNULL,
//FRIENDLIST,
//BLACKLIST,
public FRIENDTYPE FriendType
{
private set;
get;
}
public List<IChat> Chat = new List<IChat> ();
//Set
public void SetFriendInfo(UInt64 sGUID, string niceName, int headId, bool isonline = false, uint vipLevel = 0)
{
this.SGUID = sGUID;
this.NiceName = niceName;
this.HeadId = headId;
this.isOnline = isonline;
this.isVip = vipLevel;
}
}