mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 09:54: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 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]*$");
|
||||||
|
Loading…
Reference in New Issue
Block a user