update SystemsLayerMarkerSystem

This commit is contained in:
Mikhail 2024-06-25 22:15:54 +08:00
parent 91091d22e4
commit b604c9f079

View File

@ -259,7 +259,23 @@ namespace DCFApixels.DragonECS
public class SystemsLayerMarkerSystem : IEcsProcess
{
public readonly string name;
public SystemsLayerMarkerSystem(string name) { this.name = name; }
public readonly string layerNameSpace;
public readonly string layerName;
public SystemsLayerMarkerSystem(string name)
{
this.name = name;
int indexof = name.LastIndexOf('.');
if(indexof > 0)
{
layerNameSpace = name.Substring(0, indexof + 1);
layerName = name.Substring(indexof + 1);
}
else
{
layerNameSpace = string.Empty;
layerName = name;
}
}
public override string ToString() { return name; }
}
#endregion