]> git.tdb.fi Git - libs/game.git/commit
Implement base support for buffered components
authorMikko Rasa <tdb@tdb.fi>
Sun, 4 Dec 2022 13:29:57 +0000 (15:29 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 4 Dec 2022 20:20:07 +0000 (22:20 +0200)
commita99b57a74252fd3de649d544d070b747f91fcf4d
tree209a8272ceb112516c5101d98399096aad028598
parente3b8bcdcb5abfdc4cfaf0af0f9633ac15d1f3b69
Implement base support for buffered components

They hold two copies of data, one being read from and the other written
to.  This makes it easier to write concurrent and order-independent code.
Systems can declare dependencies to such components to have their prepare
and commit functions called automatically.
source/game/basicsystem.h
source/game/component.h
source/game/stage.cpp
source/game/system.cpp
source/game/system.h