mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 01:44:35 +08:00
remove MetaID.IsFixedNameType
This commit is contained in:
parent
ea679594f1
commit
d1a874e62e
@ -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]*$");
|
||||
|
Loading…
Reference in New Issue
Block a user