Ejemplo 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
            };
        }
Ejemplo 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;
        }
Ejemplo n.º 3
0
 public RunLog()
 {
     Levels   = new LevelLog[LEVEL_COUNT];
     IsLegacy = ModLoader.IsLegacyVersion;
     Version  = Assembly.GetExecutingAssembly().GetName().Version;
 }