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 const string ALLOWED_CHARSET = "_0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
public static bool IsFixedNameType(Type type) //public static bool IsFixedNameType(Type type)
{ //{
if (type.IsPrimitive) // if (type.IsPrimitive)
{ // {
return true; // return true;
} // }
if(type == typeof(string)) // if(type == typeof(string))
{ // {
return true; // return true;
} // }
return false; // return false;
} //}
public static bool IsGenericID(string id) public static bool IsGenericID(string id)
{ {
return Regex.IsMatch(id, @"^[^,<>\s]*$"); return Regex.IsMatch(id, @"^[^,<>\s]*$");