Skip to content

Extension points

tilttek/game-engine-bundle

The package is at 0.x: its extension points are stable only from its 1.0 release. Until then, a minor version may change them, and its CHANGELOG says how.

PointWhat an application givesWhere
Tilttek\GameEngine\Contract\GameA game: any service implementing it, tagged tilttek_game_engine.game by autoconfigurationInstallation
Application\Contract\ViewerResolverWho reads a table through the endpoints: a seat and its preferences, the audience, or no one; view.resolverLive tables
Application\Contract\TableLockAnother lock of the tables; the alias of the bundle's when lock.factory is setStorage
Tilttek\GameEngine\Contract\LogStoreAnother store of the logs, by aliasing the interfaceStorage
Tilttek\GameEngine\Contract\StateCacheAnother state cache, by aliasing the interfaceStorage
Tilttek\GameEngine\Contract\TablePublisherAnother way to tell the players, by aliasing the interfaceLive tables
The game-table:view eventThe rendering of a game's view in the pageLive tables

Every service of the bundle keeps no state between two requests; the store in memory, for tests, is reset between two requests of a worker.