当前位置: 首页>>代码示例>>C#>>正文


C# Entities.SendGuild方法代码示例

本文整理汇总了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);
         }
     }
 }
开发者ID:kenlacoste843,项目名称:ProjectXV3,代码行数:13,代码来源:QuerySyndicateAttribute.cs

示例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;
        }
开发者ID:kenlacoste843,项目名称:ProjectXV3,代码行数:17,代码来源:Guild.cs

示例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"));
            }
        }
开发者ID:kenlacoste843,项目名称:ProjectXV3,代码行数:14,代码来源:Guild.cs

示例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"));
            }
        }
开发者ID:kenlacoste843,项目名称:ProjectXV3,代码行数:14,代码来源:Guild.cs

示例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();
        }
开发者ID:kenlacoste843,项目名称:ProjectXV3,代码行数:23,代码来源:Guild.cs


注:本文中的Entities.SendGuild方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。