Exemplo n.º 1
0
 public TtcSimulation(TtcSaveState saveState, int startingFrame, List <int> dustFrames)
 {
     (_rng, _rngObjects) = TtcUtilities.CreateRngObjectsFromSaveState(saveState);
     _startingFrame      = startingFrame;
     _currentFrame       = _startingFrame;
     AddDustFrames(dustFrames);
 }
Exemplo n.º 2
0
        public TtcSimulation(List <int> dustFrames = null)
        {
            //set up objects
            _rng        = new TtcRng(Config.Stream.GetUInt16(MiscConfig.RngAddress));
            _rngObjects = TtcUtilities.CreateRngObjectsFromGame(_rng, dustFrames);

            //set up testing variables
            _startingFrame = MupenUtilities.GetFrameCount(); //the frame directly preceding any object initialization
        }
Exemplo n.º 3
0
        public TtcSimulation(ushort rngValue, int startingFrame, List <int> dustFrames = null)
        {
            //set up objects
            _rng        = new TtcRng(rngValue); //initial RNG during star selection screen
            _rngObjects = TtcUtilities.CreateRngObjects(_rng, dustFrames);

            //set up testing variables
            _startingFrame = startingFrame; //the frame directly preceding any object initialization
        }
Exemplo n.º 4
0
 public TtcSimulation(TtcSaveState saveState)
 {
     (_rng, _rngObjects) = TtcUtilities.CreateRngObjectsFromSaveState(saveState);
     _startingFrame      = 0;
 }
Exemplo n.º 5
0
 public TtcSaveState() : this(
         Config.Stream.GetUInt16(MiscConfig.RngAddress),
         TtcUtilities.CreateRngObjectsFromGame(new TtcRng(Config.Stream.GetUInt16(MiscConfig.RngAddress))))
 {
 }