Exemple #1
0
        public override Controller GetOutput(GameTickPacket gameTickPacket)
        {
            try
            {
                //Set Reused Values
                Ball.UpdateInfo(gameTickPacket.Ball);
                Info.UpdateInfo(gameTickPacket.Players(this.index).Value);
                Game.UpdateInfo(gameTickPacket.GameInfo.Value);

                //Perform Bot Updates
                Update(gameTickPacket);
            }
            catch (Exception e)
            {
                System.Console.WriteLine(e.Message);
                System.Console.WriteLine(e.StackTrace);
            }

            return(Controller);
        }