mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-19 02:24:37 +08:00
rename DeclareRunner to AddRunner
This commit is contained in:
parent
fbda99c60a
commit
1f740fff2e
@ -229,9 +229,9 @@ namespace DCFApixels.DragonECS
|
|||||||
_uniqueTypes = new HashSet<Type>();
|
_uniqueTypes = new HashSet<Type>();
|
||||||
_systems = new Dictionary<string, List<IEcsProcess>>(KEYS_CAPACITY);
|
_systems = new Dictionary<string, List<IEcsProcess>>(KEYS_CAPACITY);
|
||||||
}
|
}
|
||||||
public Builder DeclareRunner<T>() where T : EcsRunner, IEcsRunner, new()
|
public Builder AddRunner<TRunner>() where TRunner : EcsRunner, IEcsRunner, new()
|
||||||
{
|
{
|
||||||
_initDeclaredRunners.Add(new InitDeclaredRunner<T>());
|
_initDeclaredRunners.Add(new InitDeclaredRunner<TRunner>());
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
public Builder Add(IEcsProcess system, string layerName = null)
|
public Builder Add(IEcsProcess system, string layerName = null)
|
||||||
|
Loading…
Reference in New Issue
Block a user