mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-09-29 17:41:06 +02:00
17 lines
No EOL
451 B
C#
17 lines
No EOL
451 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using Microsoft.Xna.Framework.Input;
|
|
|
|
namespace MLEM.Misc {
|
|
public static class EnumHelper {
|
|
|
|
public static readonly Buttons[] Buttons = GetValues<Buttons>().ToArray();
|
|
public static readonly Keys[] Keys = GetValues<Keys>().ToArray();
|
|
|
|
public static IEnumerable<T> GetValues<T>() {
|
|
return Enum.GetValues(typeof(T)).Cast<T>();
|
|
}
|
|
|
|
}
|
|
} |