aboutsummaryrefslogtreecommitdiff
path: root/go/game/trigger.go
Commit message (Collapse)AuthorAgeFilesLines
* improve codeFlorian Fischer2025-01-271-4/+1
| | | | | | * explicitly ignore errors where appropriate * do not append in a loop * specify format string in Errorf
* introduce game.State interface abstractionFlorian Fischer2025-01-271-5/+5
| | | | | This allows to not use the internal game state directly from client code.
* add new trigger and event implementationsFlorian Fischer2025-01-271-8/+78
|
* prompt the user to order its triggersFlorian Fischer2025-01-271-3/+3
| | | | | | | | All TriggeredAction are passed in the wrapper action DeclareTriggeredActionsAction to the controller of the triggers. It is expected to receive an ordered list back from the user again wrapped in a DeclareTriggeredActionsAction. The triggered actions will be declared in from first to last.
* add skeleton for triggers and triggered actionsFlorian Fischer2025-01-271-0/+90