Initial commit

This commit is contained in:
msk
2022-01-22 20:13:49 -08:00
parent f9d23e5bcf
commit 687473573d
878 changed files with 70957 additions and 0 deletions
@@ -0,0 +1,20 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Alloy {
public class EnumFlagsAttribute : PropertyAttribute {
}
public static class EnumExtension {
public static bool HasFlag(this Enum keys, Enum flag) {
int keysVal = Convert.ToInt32(keys);
int flagVal = Convert.ToInt32(flag);
return (keysVal & flagVal) == flagVal;
}
}
}