effect

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2025 License: GPL-2.0 Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL