mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 01:44:35 +08:00
fix for support 2020.0
This commit is contained in:
parent
c3922074ea
commit
bd7bb03f64
@ -17,7 +17,7 @@ namespace DCFApixels.DragonECS
|
|||||||
}
|
}
|
||||||
public MetaGroupAttribute(params string[] path)
|
public MetaGroupAttribute(params string[] path)
|
||||||
{
|
{
|
||||||
Data = new MetaGroupRef(string.Join('/', path));
|
Data = new MetaGroupRef(string.Join("/", path));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public class MetaGroupRef
|
public class MetaGroupRef
|
||||||
@ -27,13 +27,14 @@ namespace DCFApixels.DragonECS
|
|||||||
public readonly string Name;
|
public readonly string Name;
|
||||||
private string[] path = null;
|
private string[] path = null;
|
||||||
private static string pattern = @"Module(?=/)";
|
private static string pattern = @"Module(?=/)";
|
||||||
|
private static char[] separatpor = new char[] { '/' };
|
||||||
public IReadOnlyCollection<string> Splited
|
public IReadOnlyCollection<string> Splited
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
if (path == null)
|
if (path == null)
|
||||||
{
|
{
|
||||||
path = Name.Split('/', StringSplitOptions.RemoveEmptyEntries);
|
path = Name.Split(separatpor, StringSplitOptions.RemoveEmptyEntries);
|
||||||
}
|
}
|
||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
|
@ -34,7 +34,7 @@ namespace DCFApixels.DragonECS.UncheckedCore
|
|||||||
}
|
}
|
||||||
public static bool CheckSpanValideDebug(EcsSpan span)
|
public static bool CheckSpanValideDebug(EcsSpan span)
|
||||||
{
|
{
|
||||||
HashSet<int> set = new HashSet<int>(span.Count);
|
HashSet<int> set = new HashSet<int>();
|
||||||
foreach (var e in span)
|
foreach (var e in span)
|
||||||
{
|
{
|
||||||
if (set.Add(e) == false)
|
if (set.Add(e) == false)
|
||||||
|
Loading…
Reference in New Issue
Block a user