public CSCommon.Data.SocialRoleInfo CreateSocialRoleInfo(CSCommon.Data.SocialData data, UserRole role) { CSCommon.Data.SocialRoleInfo info = new CSCommon.Data.SocialRoleInfo(); info.id = data.OtherId; info.name = role.RoleData.Name; info.profession = role.RoleData.Profession; info.camp = role.RoleData.Camp; info.level = role.RoleData.Level; info.socialData = data; if (role.PlanesConnect != null) { info.state = (byte)CSCommon.eOnlineState.Online; } return(info); }
public void SendToLeaveTeamPlayer(UserRole role) { RPC.PackageWriter pkg = new RPC.PackageWriter(); H_RPCRoot.smInstance.HGet_PlanesServer(pkg).RPC_SendToLeaveTeamPlayer(pkg, role.RoleData.RoleId); pkg.DoCommand(role.PlanesConnect, RPC.CommandTargetType.DefaultType); }