コード例 #1
0
        public static void Game_OnEnd(GameEndEventArgs args)
        {
            if (!Manage.Menu.get_bool("announcer.win.lose"))
            {
                return;
            }

            PlayAbstractingLayer.Notify(args.WinningTeam == Program.Player.Team
                                ? Enumerations.Events.Notify.Win
                                : Enumerations.Events.Notify.Defeat);
        }
コード例 #2
0
        public static void Game_OnNotify(GameNotifyEventArgs args)
        {
            if (!Manage.Menu.get_bool("announcer.kill"))
            {
                return;
            }

            switch (args.EventId)
            {
            case GameEventId.OnChampionSingleKill:
                PlayAbstractingLayer.Kill(ObjectManager.GetUnitByNetworkId <Obj_AI_Hero>(args.NetworkId).IsAlly
                                                ? Events.Kills.AllyKill
                                                : Events.Kills.EnemyKill);
                break;

            case GameEventId.OnChampionDoubleKill:
                PlayAbstractingLayer.Kill(ObjectManager.GetUnitByNetworkId <Obj_AI_Hero>(args.NetworkId).IsAlly
                                                ? Events.Kills.AllyDouble
                                                : Events.Kills.EnemyDouble);
                break;

            case GameEventId.OnChampionTripleKill:
                PlayAbstractingLayer.Kill(ObjectManager.GetUnitByNetworkId <Obj_AI_Hero>(args.NetworkId).IsAlly
                                                ? Events.Kills.AllyTriple
                                                : Events.Kills.EnemyTriple);
                break;

            case GameEventId.OnChampionQuadraKill:
                PlayAbstractingLayer.Kill(ObjectManager.GetUnitByNetworkId <Obj_AI_Hero>(args.NetworkId).IsAlly
                                                ? Events.Kills.AllyQuadra
                                                : Events.Kills.EnemyQuadra);
                break;

            case GameEventId.OnChampionPentaKill:
                PlayAbstractingLayer.Kill(ObjectManager.GetUnitByNetworkId <Obj_AI_Hero>(args.NetworkId).IsAlly
                                                ? Events.Kills.AllyPenta
                                                : Events.Kills.EnemyPenta);
                break;

            case GameEventId.OnFirstBlood:
                PlayAbstractingLayer.Kill(ObjectManager.GetUnitByNetworkId <Obj_AI_Hero>(args.NetworkId).IsAlly
                                                ? Events.Kills.AllyFirstblood
                                                : Events.Kills.EnemyFirstblood);
                break;

            case GameEventId.OnAce:
                break;

            case GameEventId.OnTurretKill:
                Structures.Handle(args);
                break;
            }
        }
コード例 #3
0
        public static void MinionSpawn()
        {
            if (!Manage.Menu.get_bool("announcer.minions"))
            {
                return;
            }

            if (Game.ClockTime - Manage.RealTime >= 60)
            {
                PlayAbstractingLayer.Notify(Enumerations.Events.Notify.MinionSpawn);
                Manage.MinionsSpawnedPlayed = true;
            }
        }
コード例 #4
0
        public static void Welcome()
        {
            if (!Manage.Menu.get_bool("announcer.welcome"))
            {
                return;
            }

            if (Game.ClockTime - Manage.RealTime >= 15)
            {
                PlayAbstractingLayer.Notify(Enumerations.Events.Notify.Welcome);
                Manage.WelcomePlayed = true;
            }
        }
コード例 #5
0
        public static void Game_OnInput(GameInputEventArgs args)
        {
            if (args.Input.StartsWith("."))
            {
                args.Process = false;
            }

            /*
             *  .kill TEAM
             *  .double TEAM
             *  .triple TEAM
             *  .quadra TEAM
             *  .penta TEAM
             *  TEAM can be 0 == enemy, 1 == ally
             *  .welcome
             *  .minions
             *  .win
             *  .loss
             *  .tower TEAM LANE TIER
             *  TEAM can be 0 == enemy, 1 == ally
             *  LANE can be top/mid/bot
             *  TIER can be 1,2,3, 4 == inhibs
             */
            switch (args.Input)
            {
            case ".degrec":
                SoundPlayer degreced = new SoundPlayer(Resource.Degrec);
                degreced.Play();
                degreced.DisposePlayer(Resource.Degrec);
                break;

            case ".fb 0":
                PlayAbstractingLayer.Kill(Enumerations.Events.Kills.EnemyFirstblood);
                break;

            case ".kill 0":
                PlayAbstractingLayer.Kill(Enumerations.Events.Kills.EnemyKill);
                break;

            case ".double 0":
                PlayAbstractingLayer.Kill(Enumerations.Events.Kills.EnemyDouble);
                break;

            case ".triple 0":
                PlayAbstractingLayer.Kill(Enumerations.Events.Kills.EnemyTriple);
                break;

            case ".quadra 0":
                PlayAbstractingLayer.Kill(Enumerations.Events.Kills.EnemyQuadra);
                break;

            case ".penta 0":
                PlayAbstractingLayer.Kill(Enumerations.Events.Kills.EnemyPenta);
                break;

            case ".fb 1":
                PlayAbstractingLayer.Kill(Enumerations.Events.Kills.AllyFirstblood);
                break;

            case ".kill 1":
                PlayAbstractingLayer.Kill(Enumerations.Events.Kills.AllyKill);
                break;

            case ".double 1":
                PlayAbstractingLayer.Kill(Enumerations.Events.Kills.AllyDouble);
                break;

            case ".triple 1":
                PlayAbstractingLayer.Kill(Enumerations.Events.Kills.AllyTriple);
                break;

            case ".quadra 1":
                PlayAbstractingLayer.Kill(Enumerations.Events.Kills.AllyQuadra);
                break;

            case ".penta 1":
                PlayAbstractingLayer.Kill(Enumerations.Events.Kills.AllyPenta);
                break;

            case ".welcome":
                PlayAbstractingLayer.Notify(Enumerations.Events.Notify.Welcome);
                break;

            case ".minions":
                PlayAbstractingLayer.Notify(Enumerations.Events.Notify.MinionSpawn);
                break;

            case ".win":
                PlayAbstractingLayer.Notify(Enumerations.Events.Notify.Win);
                break;

            case ".loss":
                PlayAbstractingLayer.Notify(Enumerations.Events.Notify.Defeat);
                break;

            case ".tower 0 top 1":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.EnemyTop_T1);
                break;

            case ".tower 0 top 2":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.EnemyTop_T2);
                break;

            case ".tower 0 top 3":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.EnemyTop_T3);
                break;

            case ".tower 0 top 4":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.EnemyTop_InHib);
                break;

            case ".tower 0 mid 1":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.EnemyMid_T1);
                break;

            case ".tower 0 mid 2":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.EnemyMid_T2);
                break;

            case ".tower 0 mid 3":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.EnemyMid_T3);
                break;

            case ".tower 0 mid 4":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.EnemyMid_InHib);
                break;

            case ".tower 0 bot 1":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.EnemyBot_T1);
                break;

            case ".tower 0 bot 2":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.EnemyBot_T2);
                break;

            case ".tower 0 bot 3":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.EnemyBot_T3);
                break;

            case ".tower 0 bot 4":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.EnemyBot_InHib);
                break;

            case ".tower 1 top 1":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.AllyTop_T1);
                break;

            case ".tower 1 top 2":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.AllyTop_T2);
                break;

            case ".tower 1 top 3":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.AllyTop_T3);
                break;

            case ".tower 1 top 4":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.AllyTop_InHib);
                break;

            case ".tower 1 mid 1":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.AllyMid_T1);
                break;

            case ".tower 1 mid 2":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.AllyMid_T2);
                break;

            case ".tower 1 mid 3":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.AllyMid_T3);
                break;

            case ".tower 1 mid 4":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.AllyMid_InHib);
                break;

            case ".tower 1 bot 1":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.AllyBot_T1);
                break;

            case ".tower 1 bot 2":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.AllyBot_T2);
                break;

            case ".tower 1 bot 3":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.AllyBot_T3);
                break;

            case ".tower 1 bot 4":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.AllyBot_InHib);
                break;

            case ".tower 0 5":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.EnemyNexus_Turrets);
                break;

            case ".tower 1 5":
                PlayAbstractingLayer.Structure(Enumerations.Events.Structures.AllyNexus_Turrets);
                break;
            }
        }
コード例 #6
0
ファイル: Structures.cs プロジェクト: MaddoPls/Leaguesharp
        public static void Handle(GameNotifyEventArgs args)
        {
            if (!Manage.Menu.get_bool("announcer.structures") || !Manage.Menu.get_bool("announcer.enabled"))
            {
                return;
            }
            Obj_AI_Turret turret = ObjectManager.GetUnitByNetworkId <Obj_AI_Turret>(args.NetworkId);

            if (turret.IsAlly)
            {
                switch (turret.GetTurretType())
                {
                case TurretType.TierOne:
                    switch (GetLane(turret))
                    {
                    case Lanes.Top:
                        PlayAbstractingLayer.Structure(Enumerations.Events.Structures.AllyTop_T1);
                        break;

                    case Lanes.Mid:
                        break;

                    case Lanes.Bot:
                        break;
                    }
                    break;

                case TurretType.TierTwo:
                    switch (GetLane(turret))
                    {
                    case Lanes.Top:
                        break;

                    case Lanes.Mid:
                        break;

                    case Lanes.Bot:
                        break;
                    }
                    break;

                case TurretType.TierThree:
                    switch (GetLane(turret))
                    {
                    case Lanes.Top:
                        break;

                    case Lanes.Mid:
                        break;

                    case Lanes.Bot:
                        break;
                    }
                    break;

                case TurretType.TierFour:
                    switch (GetLane(turret))
                    {
                    case Lanes.Top:
                        break;

                    case Lanes.Mid:
                        break;

                    case Lanes.Bot:
                        break;
                    }
                    break;
                }
            }
            else
            {
                switch (turret.GetTurretType())
                {
                case TurretType.TierOne:
                    switch (GetLane(turret))
                    {
                    case Lanes.Top:
                        PlayAbstractingLayer.Structure(Enumerations.Events.Structures.EnemyTop_T1);
                        break;

                    case Lanes.Mid:
                        break;

                    case Lanes.Bot:
                        break;
                    }
                    break;

                case TurretType.TierTwo:
                    switch (GetLane(turret))
                    {
                    case Lanes.Top:
                        break;

                    case Lanes.Mid:
                        break;

                    case Lanes.Bot:
                        break;
                    }
                    break;

                case TurretType.TierThree:
                    switch (GetLane(turret))
                    {
                    case Lanes.Top:
                        break;

                    case Lanes.Mid:
                        break;

                    case Lanes.Bot:
                        break;
                    }
                    break;

                case TurretType.TierFour:
                    switch (GetLane(turret))
                    {
                    case Lanes.Top:
                        break;

                    case Lanes.Mid:
                        break;

                    case Lanes.Bot:
                        break;
                    }
                    break;
                }
            }
        }