Beispiel #1
0
    public void SetTimeSec(int timesec)
    {
        DetailedState state = SaveDetailedState();

        state.Seconds = (uint)timesec;
        LoadDetailedState(state);
    }
Beispiel #2
0
    public static void DetailedState()
    {
        Red gb = new Red();

        Test("gambatte-detailed-state", () => {
            gb.RunUntil("DisplayTitleScreen");
            byte[] state           = gb.SaveState();
            DetailedState detailed = new DetailedState(state);
            byte[] ret             = detailed.ToBuffer();

            if (state.Length != ret.Length)
            {
                return("length=" + state.Length, "length=" + ret.Length);
            }
Beispiel #3
0
 // Loads the emulator state given by a struct.
 public void LoadDetailedState(DetailedState state)
 {
     LoadState(state.ToBuffer());
 }
Beispiel #4
0
 public NodeStateView(Lers.Core.NodeState state, DetailedState id = DetailedState.None)
 {
     this.state = state;
     this.Id    = id;
 }
 public MeasurePointStateView(Lers.Core.MeasurePointState state, DetailedState stateId = DetailedState.None)
 {
     this.Id    = stateId;
     this.state = state;
 }