Entitas  0.35.0
Entitas is a super fast Entity Component System (ECS) Framework specifically made for C# and Unity
Public Member Functions | List of all members
Entitas.ISetPool Interface Reference

Public Member Functions

void SetPool (Pool pool)
 

Detailed Description

Implement this interface if you want to create a system which needs a reference to a pool. Recommended way to create systems in general: pool.CreateSystem(new MySystem()); Calling pool.CreateSystem(new MySystem()) will automatically inject the pool if ISetPool is implemented. It's recommended to pass in the pool as a dependency using ISetPool rather than using Pools.sharedInstance.pool directly within the system to avoid tight coupling.

Definition at line 13 of file PoolExtension.cs.


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