gameentry

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package gameentry builds concrete runtime game entries from puzzle definitions and runtime mode implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildModeDefs

func BuildModeDefs(modes []game.Mode) []puzzle.ModeDef

Types

type Entry

type Entry struct {
	Definition puzzle.Definition
	Help       string
	Import     func([]byte) (game.Gamer, error)
	Modes      []ModeEntry
	Print      pdfexport.PrintAdapter
}

func NewEntry

func NewEntry(spec EntrySpec) Entry

type EntrySpec

type EntrySpec struct {
	Definition puzzle.Definition
	Help       string
	Import     func([]byte) (game.Gamer, error)
	Modes      []game.Mode
	Print      pdfexport.PrintAdapter
}

type ModeEntry

type ModeEntry struct {
	Definition puzzle.ModeDef
	Spawner    game.Spawner
	Seeded     game.SeededSpawner
}

Jump to

Keyboard shortcuts

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