You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
331 B
Go

package sim
import "github.com/jordanorelli/astro-domu/internal/wire"
type Effect interface {
exec(*world, *room, *player, int) result
}
type effect func(*world, *room, *player, int) result
func (f effect) exec(w *world, r *room, p *player, seq int) result { return f(w, r, p, seq) }
type result struct {
reply wire.Value
}