Esempio n. 1
0
        public static void Handle(Entities.GameClient client, DataPacket packet)
        {
            using (var guild = new GuildPacket(packet))
            {
                switch (guild.Action)
                {
                    case Enums.GuildAction.QuerySyndicateName:
                        Guild.QuerySyndicateName.Handle(client, guild);
                        break;

                    case Enums.GuildAction.ApplyJoin:
                        Guild.ApplyJoin.Handle(client, guild);
                        break;

                    case Enums.GuildAction.InviteJoin:
                        Guild.InviteJoin.Handle(client, guild);
                        break;

                    case Enums.GuildAction.LeaveSyndicate:
                        Guild.LeaveSyndicate.Handle(client, guild);
                        break;

                    case Enums.GuildAction.SetAnnounce:
                        Guild.SetAnnounce.Handle(client, guild);
                        break;

                    case Enums.GuildAction.QuerySyndicateAttribute:
                        Guild.QuerySyndicateAttribute.Handle(client, guild);
                        break;

                    case Enums.GuildAction.DonateMoney:
                        Guild.DonateMoney.Handle(client, guild);
                        break;

                    case Enums.GuildAction.DonateEMoney:
                        Guild.DonateEMoney.Handle(client, guild);
                        break;

                    case Enums.GuildAction.DischargeMember:
                        Guild.DischargeMember.Handle(client, guild);
                        break;

                    case Enums.GuildAction.ClearAlly:
                        Guild.ClearAlly.Handle(client, guild);
                        break;

                    case Enums.GuildAction.ClearEnemy:
                        Guild.ClearEnemy.Handle(client, guild);
                        break;

                    case Enums.GuildAction.SetAlly:
                        Guild.SetAlly.Handle(client, guild);
                        break;

                    case Enums.GuildAction.SetEnemy:
                        Guild.DischargeMember.Handle(client, guild);
                        break;

                    case Enums.GuildAction.PromoteInfo:
                        Guild.DischargeMember.Handle(client, guild);
                        break;

                    case Enums.GuildAction.PromoteMember:
                        Guild.DischargeMember.Handle(client, guild);
                        break;

                    case Enums.GuildAction.SetRequirement:
                        Guild.DischargeMember.Handle(client, guild);
                        break;
                    default:
                        Console.WriteLine("Unknown Guild Packet: {0} From {1}", guild.Action.ToString(), client.Name);
                        break;
                }
            }
        }
Esempio n. 2
0
        public static void Handle(Entities.GameClient client, DataPacket packet)
        {
            using (var guild = new GuildPacket(packet))
            {
                switch (guild.Action)
                {
                case Enums.GuildAction.QuerySyndicateName:
                    Guild.QuerySyndicateName.Handle(client, guild);
                    break;

                case Enums.GuildAction.ApplyJoin:
                    Guild.ApplyJoin.Handle(client, guild);
                    break;

                case Enums.GuildAction.InviteJoin:
                    Guild.InviteJoin.Handle(client, guild);
                    break;

                case Enums.GuildAction.LeaveSyndicate:
                    Guild.LeaveSyndicate.Handle(client, guild);
                    break;

                case Enums.GuildAction.SetAnnounce:
                    Guild.SetAnnounce.Handle(client, guild);
                    break;

                case Enums.GuildAction.QuerySyndicateAttribute:
                    Guild.QuerySyndicateAttribute.Handle(client, guild);
                    break;

                case Enums.GuildAction.DonateMoney:
                    Guild.DonateMoney.Handle(client, guild);
                    break;

                case Enums.GuildAction.DonateEMoney:
                    Guild.DonateEMoney.Handle(client, guild);
                    break;

                case Enums.GuildAction.DischargeMember:
                    Guild.DischargeMember.Handle(client, guild);
                    break;

                case Enums.GuildAction.ClearAlly:
                    Guild.ClearAlly.Handle(client, guild);
                    break;

                case Enums.GuildAction.ClearEnemy:
                    Guild.ClearEnemy.Handle(client, guild);
                    break;

                case Enums.GuildAction.SetAlly:
                    Guild.SetAlly.Handle(client, guild);
                    break;

                case Enums.GuildAction.SetEnemy:
                    Guild.DischargeMember.Handle(client, guild);
                    break;

                case Enums.GuildAction.PromoteInfo:
                    Guild.DischargeMember.Handle(client, guild);
                    break;

                case Enums.GuildAction.PromoteMember:
                    Guild.DischargeMember.Handle(client, guild);
                    break;

                case Enums.GuildAction.SetRequirement:
                    Guild.DischargeMember.Handle(client, guild);
                    break;

                default:
                    Console.WriteLine("Unknown Guild Packet: {0} From {1}", guild.Action.ToString(), client.Name);
                    break;
                }
            }
        }