Beispiel #1
0
        public static void Handle(Entities.GameClient client, DataPacket packet)
        {
            using (var interact = new InteractionPacket(packet))
            {
                switch (interact.Action)
                {
                    #region Marriage
                case Enums.InteractAction.Marry:
                    Interaction.Misc.Marry.Handle(client, interact);
                    break;

                    #endregion
                    #region Court
                case Enums.InteractAction.Court:
                    Interaction.Misc.Court.Handle(client, interact);
                    break;

                    #endregion
                    #region Combat
                case Enums.InteractAction.Attack:
                case Enums.InteractAction.MagicAttack:
                case Enums.InteractAction.Shoot:
                    Interaction.Battle.Combat.Handle(client, interact);
                    break;
                    #endregion
                }
            }
        }
 public static void Handle(Entities.GameClient client, DataPacket packet)
 {
     using (var interact = new InteractionPacket(packet))
     {
         switch (interact.Action)
         {
                 #region Marriage
             case Enums.InteractAction.Marry:
                 Interaction.Misc.Marry.Handle(client, interact);
                 break;
                 #endregion
                 #region Court
             case Enums.InteractAction.Court:
                 Interaction.Misc.Court.Handle(client, interact);
                 break;
                 #endregion
                 #region Combat
             case Enums.InteractAction.Attack:
             case Enums.InteractAction.MagicAttack:
             case Enums.InteractAction.Shoot:
                 Interaction.Battle.Combat.Handle(client, interact);
                 break;
                 #endregion
         }
     }
 }