Ejemplo n.º 1
0
        FindIdealPendulumManipulation(uint pendulumAddress, TtcSaveState saveState)
        {
            List <List <int> > dustFrameLists = GetDustFrameLists(2, 25, 25);

            foreach (List <int> dustFrames in dustFrameLists)
            {
                TtcSimulation simulation = new TtcSimulation(saveState);
                simulation.AddDustFrames(dustFrames);
                (bool success, TtcSaveState savestate, int endFrame) = simulation.FindIdealPendulumManipulation(pendulumAddress);
                if (success)
                {
                    return(success, savestate, endFrame, dustFrames);
                }
            }
            return(false, null, 0, null);
        }
Ejemplo n.º 2
0
        FindPunchRecoilPendulumManipulation(TtcSaveState saveState)
        {
            List <List <int> > dustFrameLists = GetDustFrameLists(2, 25, 25).Skip(1).ToList();

            foreach (List <int> dustFrames in dustFrameLists)
            {
                TtcSimulation simulation = new TtcSimulation(saveState);
                simulation.AddDustFrames(dustFrames);
                (bool success, TtcSaveState savestate, int endFrame) = simulation.FindPunchRecoilPendulumManipulation();
                if (success)
                {
                    return(success, savestate, endFrame, dustFrames);
                }
            }
            return(false, null, 0, null);
        }