GameMode.cs 338 B

12345678910111213
  1. using System;
  2. namespace DevilLink2.Gameplay
  3. {
  4. public enum GameMode { Classic, TimeAttack, Zen }
  5. internal static class GameModeGuard
  6. {
  7. internal static void Validate(GameMode mode)
  8. {
  9. if (!Enum.IsDefined(typeof(GameMode), mode)) throw new ArgumentOutOfRangeException(nameof(mode));
  10. }
  11. }
  12. }