mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-17 17:34:36 +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)
|
||||
{
|
||||
Data = new MetaGroupRef(string.Join('/', path));
|
||||
Data = new MetaGroupRef(string.Join("/", path));
|
||||
}
|
||||
}
|
||||
public class MetaGroupRef
|
||||
@ -27,13 +27,14 @@ namespace DCFApixels.DragonECS
|
||||
public readonly string Name;
|
||||
private string[] path = null;
|
||||
private static string pattern = @"Module(?=/)";
|
||||
private static char[] separatpor = new char[] { '/' };
|
||||
public IReadOnlyCollection<string> Splited
|
||||
{
|
||||
get
|
||||
{
|
||||
if (path == null)
|
||||
{
|
||||
path = Name.Split('/', StringSplitOptions.RemoveEmptyEntries);
|
||||
path = Name.Split(separatpor, StringSplitOptions.RemoveEmptyEntries);
|
||||
}
|
||||
return path;
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ namespace DCFApixels.DragonECS.UncheckedCore
|
||||
}
|
||||
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)
|
||||
{
|
||||
if (set.Add(e) == false)
|
||||
|
Loading…
Reference in New Issue
Block a user