Entity Pools

thumb
Identgooman.entity_pools
Typelibrary
Created
Updated
Latest Version 17720 +2
Tags library entity optimization pooling
Links s&box
SummaryA pooling mechanism for entities with an API like C# ArrayPool<T>. Useful for situations where you are creating and deleting many entities with a limited lifespan.
Description
About Entity Pools ## Features * Generics support. Any type implementing IEntity (any Entity) and contains a parameterless constructor will suffice. * Limited capacity pools. This helps you maintain sensible entity counts and prevent excessive creations. * Overridable entity rent/return logic. Simply add the IPooledEntity interface to your entity. * Timed asynchronous returning of entities. Useful for fire and forget renting. * Networkable (All required functionality is implemented but is currently unusable due to S&box issues.) ## License Distributed under the MIT License. See the license for more information.
About Entity Pools ## Features * Generics support. Any type implementing IEntity (any Entity) and contains a parameterless constructor will suffice. * Limited capacity pools. This helps you maintain sensible entity counts and prevent excessive creations. * Overridable entity rent/return logic. Simply add the IPooledEntity interface to your entity. * Timed asynchronous returning of entities. Useful for fire and forget renting. * Networkable (All required functionality is implemented but is currently unusable due to S&box issues.) ## License Distributed under the MIT License. See the license for more information.
Votes 2 0 3
Error Rate0%
Usage
44 players 77 sessions 46 hours playtime 36 minutes avg session
Totals captured
Data
{}