remove MetaID.IsFixedNameType

This commit is contained in:
DCFApixels 2025-03-19 16:51:08 +08:00
parent ea679594f1
commit d1a874e62e

View File

@ -37,18 +37,18 @@ namespace DCFApixels.DragonECS
{
public const string ALLOWED_CHARSET = "_0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
public static bool IsFixedNameType(Type type)
{
if (type.IsPrimitive)
{
return true;
}
if(type == typeof(string))
{
return true;
}
return false;
}
//public static bool IsFixedNameType(Type type)
//{
// if (type.IsPrimitive)
// {
// return true;
// }
// if(type == typeof(string))
// {
// return true;
// }
// return false;
//}
public static bool IsGenericID(string id)
{
return Regex.IsMatch(id, @"^[^,<>\s]*$");