Entitas-csharp: [Entitas:] Add pool.DisableEvents()

Created on 15 Sep 2016  路  2Comments  路  Source: sschmid/Entitas-CSharp

In some cases you want to perform lots of calculations in an algorithm, but you actually don't want to trigger any groups or systems.

Idea:

pool.Sleep();

// Do calculations, add / replace / remove components

pool.Resume();

While sleeping, no events will be dispatched when creating / changing / destroying entities

Any ideas how I should call these methods?

Sleep, Wake
Pause, Resume
Mute, Unmute

feature request

Most helpful comment

.DisableEvents()
.EnableEvents()

(a more verbose choice)

All 2 comments

.DisableEvents()
.EnableEvents()

(a more verbose choice)

Will close. Not planned anymore.

Was this page helpful?
0 / 5 - 0 ratings