]> git.tdb.fi Git - libs/game.git/commit
Adjust component ticking
authorMikko Rasa <tdb@tdb.fi>
Sat, 22 Oct 2022 15:44:01 +0000 (18:44 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 22 Oct 2022 15:44:01 +0000 (18:44 +0300)
commit86057ab12bea9aaf40be2f1f2a0a3e64e94f0313
tree74215e5ffd517c70a289de00efc2ac19f21cdcec
parentf93a0f0afe8aff4d0bbc8ee393918881cfdd9db8
Adjust component ticking

Running pre_tick() for all systems before running tick() for any of
them is too inflexible.  Also remove the virtual tick() function from
Component and use a concept for BasicSystem instead.
source/game/basicsystem.h
source/game/component.h
source/game/stage.cpp
source/game/system.h