Entitas  0.35.0
Entitas is a super fast Entity Component System (ECS) Framework specifically made for C# and Unity
Entitas.PoolExtension Class Reference

Static Public Member Functions

static Entity [] GetEntities (this Pool pool, IMatcher matcher)
 Returns all entities matching the specified matcher.
 
static ISystem CreateSystem (this Pool pool, ISystem system)
 
static ISystem CreateSystem (this Pool pool, ISystem system, Pools pools)
 
static ISystem CreateSystem (this Pool pool, IReactiveExecuteSystem system)
 
static ISystem CreateSystem (this Pool pool, IReactiveExecuteSystem system, Pools pools)
 
static ISystem CreateSystem (this Pools pools, ISystem system)
 
static ISystem CreateSystem (this Pools pools, IReactiveExecuteSystem system)
 
static ISystem CreateSystem (this Pools pools, ISetPool system)
 
static ISystem CreateSystem (this Pools pools, IReactiveSystem system)
 
static ISystem CreateSystem (this Pools pools, IMultiReactiveSystem system)
 
static void SetPool (ISystem system, Pool pool)
 This will set the pool if ISetPool is implemented.
 
static void SetPools (ISystem system, Pools pools)
 This will set the pools if ISetPools is implemented.
 
static EntityCollector CreateEntityCollector (this Pool[] pools, IMatcher matcher, GroupEventType eventType=GroupEventType.OnEntityAdded)
 
static Entity CloneEntity (this Pool pool, Entity entity, bool replaceExisting=false, params int[] indices)
 

Detailed Description

Definition at line 29 of file PoolExtension.cs.

Member Function Documentation

§ CloneEntity()

static Entity Entitas.PoolExtension.CloneEntity ( this Pool  pool,
Entity  entity,
bool  replaceExisting = false,
params int []  indices 
)
inlinestatic

Creates a new entity and adds copies of all specified components to it. If replaceExisting is true it will replace exisintg components.

Definition at line 194 of file PoolExtension.cs.

§ CreateEntityCollector()

static EntityCollector Entitas.PoolExtension.CreateEntityCollector ( this Pool []  pools,
IMatcher  matcher,
GroupEventType  eventType = GroupEventType.OnEntityAdded 
)
inlinestatic

Creates an EntityCollector which observes all specified pools. This is useful when you want to create an EntityCollector for multiple pools which can be used with IEntityCollectorSystem.

Definition at line 176 of file PoolExtension.cs.

§ CreateSystem() [1/6]

static ISystem Entitas.PoolExtension.CreateSystem ( this Pool  pool,
ISystem  system 
)
inlinestatic

This is the recommended way to create systems. It will inject the pool if ISetPool is implemented. It will inject the Pools.sharedInstance if ISetPools is implemented. It will automatically create a ReactiveSystem if it is a IReactiveSystem, IMultiReactiveSystem or IEntityCollectorSystem.

Definition at line 41 of file PoolExtension.cs.

§ CreateSystem() [2/6]

static ISystem Entitas.PoolExtension.CreateSystem ( this Pool  pool,
ISystem  system,
Pools  pools 
)
inlinestatic

This is the recommended way to create systems. It will inject the pool if ISetPool is implemented. It will inject the pools if ISetPools is implemented.

Definition at line 48 of file PoolExtension.cs.

§ CreateSystem() [3/6]

static ISystem Entitas.PoolExtension.CreateSystem ( this Pool  pool,
IReactiveExecuteSystem  system 
)
inlinestatic

This is the recommended way to create systems. It will inject the pool if ISetPool is implemented. It will inject the pools if ISetPools is implemented. It will automatically create a ReactiveSystem if it is a IReactiveSystem, IMultiReactiveSystem or IEntityCollectorSystem.

Definition at line 61 of file PoolExtension.cs.

§ CreateSystem() [4/6]

static ISystem Entitas.PoolExtension.CreateSystem ( this Pool  pool,
IReactiveExecuteSystem  system,
Pools  pools 
)
inlinestatic

This is the recommended way to create systems. It will inject the pool if ISetPool is implemented. It will inject the pools if ISetPools is implemented. It will automatically create a ReactiveSystem if it is a IReactiveSystem, IMultiReactiveSystem or IEntityCollectorSystem.

Definition at line 71 of file PoolExtension.cs.

§ CreateSystem() [5/6]

static ISystem Entitas.PoolExtension.CreateSystem ( this Pools  pools,
ISystem  system 
)
inlinestatic

This is the recommended way to create systems. It will inject the pools if ISetPools is implemented.

Definition at line 99 of file PoolExtension.cs.

§ CreateSystem() [6/6]

static ISystem Entitas.PoolExtension.CreateSystem ( this Pools  pools,
IReactiveExecuteSystem  system 
)
inlinestatic

This is the recommended way to create systems. It will inject the pools if ISetPools is implemented. It will automatically create a ReactiveSystem if it is a IEntityCollectorSystem.

Definition at line 108 of file PoolExtension.cs.


The documentation for this class was generated from the following file: