Documentation
¶
Overview ¶
Package effect provides interfaces for modifying chains with typed effects. Effects encapsulate modifications that can be applied to and removed from chains, enabling composition of complex game mechanics.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Effect ¶
type Effect[T any] interface { // Apply adds this effect's modifications to the chain. Apply(chain chain.Chain[T]) error // Remove removes this effect's modifications from the chain. Remove(chain chain.Chain[T]) error }
Effect modifies a chain of a specific type. Effects can be composed to create complex modifications.
Click to show internal directories.
Click to hide internal directories.