Esempio n. 1
0
        public void LevelStart(int level, SpeedrunTime timestamp)
        {
            ThrowIfLevelOutOfRange(level);

            Levels[level - 1] = new LevelLog()
            {
                StartDate  = DateTime.UtcNow,
                StartTime  = timestamp,
                IsMirrored = MirrorModeManager.mirrorModeActive
            };
        }
Esempio n. 2
0
        public void CompleteLevel(int level, SpeedrunTime timestamp)
        {
            ThrowIfLevelOutOfRange(level);

            var index = level - 1;

            if (Levels[index] == null)
            {
                Levels[index] = new LevelLog();
            }
            Levels[index].SplitTime     = timestamp;
            Levels[index].CheatsEnabled = Cheats.Enabled;
        }
Esempio n. 3
0
 public RunLog()
 {
     Levels   = new LevelLog[LEVEL_COUNT];
     IsLegacy = ModLoader.IsLegacyVersion;
     Version  = Assembly.GetExecutingAssembly().GetName().Version;
 }