예제 #1
0
 public static void Remember()
 {
     if (S == null)
     {
         return;
     }
     S.XSSRState = XSSR.GetState();
     Prior       = new ImmutableState(S);
 }
예제 #2
0
 public State(ImmutableState imm)
 {
     DungeonStart  = imm.DungeonStart.Replicate();
     Entities      = new EntityDictionary(imm.Entities);
     CurrentActor  = imm.CurrentActor;
     StepsLeft     = imm.StepsLeft;
     StepsTaken    = imm.StepsTaken;
     Cursor        = imm.Cursor;
     Camera        = imm.Camera;
     CurrentReason = imm.CurrentReason;
     Initiative    = new Schedule(imm.Initiative);
     TurnsLeft     = imm.TurnsLeft;
     XSSRState     = new ulong[] { imm.XSSRState[0], imm.XSSRState[1] };
 }