| 12345678910111213 |
- using System;
- namespace DevilLink2.Gameplay
- {
- public enum GameMode { Classic, TimeAttack, Zen }
- internal static class GameModeGuard
- {
- internal static void Validate(GameMode mode)
- {
- if (!Enum.IsDefined(typeof(GameMode), mode)) throw new ArgumentOutOfRangeException(nameof(mode));
- }
- }
- }
|