FilterBuilder property
parent
b2b32b0424
commit
b19d8441b1
|
@ -4,6 +4,8 @@ public abstract class System : EntityComponentReader
|
||||||
{
|
{
|
||||||
public abstract void Update(TimeSpan delta);
|
public abstract void Update(TimeSpan delta);
|
||||||
|
|
||||||
|
public FilterBuilder FilterBuilder => new FilterBuilder(ComponentDepot);
|
||||||
|
|
||||||
public System(World world)
|
public System(World world)
|
||||||
{
|
{
|
||||||
world.AddSystem(this);
|
world.AddSystem(this);
|
||||||
|
@ -14,11 +16,6 @@ public abstract class System : EntityComponentReader
|
||||||
return EntityStorage.Create();
|
return EntityStorage.Create();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected FilterBuilder CreateFilterBuilder()
|
|
||||||
{
|
|
||||||
return new FilterBuilder(ComponentDepot);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void Set<TComponent>(in Entity entity, in TComponent component) where TComponent : struct
|
protected void Set<TComponent>(in Entity entity, in TComponent component) where TComponent : struct
|
||||||
{
|
{
|
||||||
ComponentDepot.Set<TComponent>(entity.ID, component);
|
ComponentDepot.Set<TComponent>(entity.ID, component);
|
||||||
|
|
Loading…
Reference in New Issue