本文整理汇总了C#中Server.MirObjects.PlayerObject.BroadcastInfo方法的典型用法代码示例。如果您正苦于以下问题:C# PlayerObject.BroadcastInfo方法的具体用法?C# PlayerObject.BroadcastInfo怎么用?C# PlayerObject.BroadcastInfo使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Server.MirObjects.PlayerObject
的用法示例。
在下文中一共展示了PlayerObject.BroadcastInfo方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: MemberDeleted
public void MemberDeleted(string name, PlayerObject formermember, bool kickself)
{
PlayerObject player = null;
for (int i = 0; i < Ranks.Count; i++)
for (int j = 0; j < Ranks[i].Members.Count; j++)
{
if ((Ranks[i].Members[j].Player != null) && (Ranks[i].Members[j].Player != formermember))
{
player = (PlayerObject)Ranks[i].Members[j].Player;
player.Enqueue(new ServerPackets.GuildMemberChange() { Name = name, Status = (byte)(kickself ? 4:3) });
player.GuildMembersChanged = true;
}
}
if (formermember != null)
{
formermember.Info.GuildIndex = -1;
formermember.MyGuild = null;
formermember.MyGuildRank = null;
formermember.ReceiveChat(kickself ? "You have left your guild." : "You have been removed from your guild.", ChatType.Guild);
formermember.Enqueue(new ServerPackets.GuildStatus() { GuildName = "", GuildRankName = "", MyOptions = (RankOptions)0 });
formermember.BroadcastInfo();
}
}