本文整理汇总了C#中Entities.SendGuild方法的典型用法代码示例。如果您正苦于以下问题:C# Entities.SendGuild方法的具体用法?C# Entities.SendGuild怎么用?C# Entities.SendGuild使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Entities
的用法示例。
在下文中一共展示了Entities.SendGuild方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Handle
public static void Handle(Entities.GameClient client, GuildPacket guild)
{
if (client.Guild != null)
{
client.SendGuild();
using (var announce = new Packets.GuildPacket(new Packets.StringPacker(client.Guild.Bullentin)))
{
announce.Data = Core.Kernel.TimeGet(Enums.TimeType.Day);
announce.Action = Enums.GuildAction.SetAnnounce;
client.Send(announce);
}
}
}
示例2: Create
public static bool Create(Entities.GameClient leader, string Name)
{
if (Database.GuildDatabase.Create(leader, Name))
{
leader.SendGuild();
leader.Screen.FullUpdate();
leader.GuildMemberInfo.Index = 0;
using (var msg =Packets.Message.MessageCore.CreateSystem("ALL",
string.Format(Core.MessageConst.NEW_GUILD, Name, leader.Name)))
{
Packets.Message.MessageCore.SendGlobalMessage(msg);
}
return true;
}
return false;
}
示例3: DonateCPs
public void DonateCPs(Entities.GameClient client, uint Amount)
{
if (client.CPs >= Amount)
{
client.CPs -= Amount;
CPDonation += Amount;
client.GuildMemberInfo.CPDonation += Amount;
Database.GuildDatabase.UpdateGuildInfo(this, "GuildCPsFund", CPDonation);
Database.CharacterDatabase.Save(client);
client.SendGuild();
SendMessage(string.Format(Core.MessageConst.GUILD_DONATE, client.Name, Amount, "CPs"));
}
}
示例4: DonateMoney
public void DonateMoney(Entities.GameClient client, uint Amount)
{
if (client.Money >= Amount)
{
client.Money -= Amount;
MoneyDonation += Amount;
client.GuildMemberInfo.MoneyDonation += Amount;
Database.GuildDatabase.UpdateGuildInfo(this, "GuildFund", MoneyDonation);
Database.CharacterDatabase.Save(client);
client.SendGuild();
SendMessage(string.Format(Core.MessageConst.GUILD_DONATE, client.Name, Amount, "Silvers"));
}
}
示例5: AddMember
public void AddMember(Entities.GameClient client)
{
if (Members.Contains(client.DatabaseUID))
client.GuildMemberInfo = Members[client.DatabaseUID];
else
{
client.GuildMemberInfo = new GuildMember(client);
if (Members.TryAdd(client.DatabaseUID, client.Name, client.GuildMemberInfo))
{
client.Guild = this;
SendMessage(string.Format(Core.MessageConst.NEW_MEMBER, client.Name));
}
else
client.GuildMemberInfo = null;
Database.CharacterDatabase.Save(client);
}
ReorderIndex();
client.SendGuild();
client.Screen.FullUpdate();
}