remove demo game

This commit is contained in:
2026-05-25 21:28:17 +02:00
parent b1ea3447a8
commit 76f910ab36
75 changed files with 115 additions and 815 deletions

26
ui.verb.go Normal file
View File

@@ -0,0 +1,26 @@
package pncdsl
// Verb is a registered "action word" (Look, Use, Talk, Take, …). The
// VerbBar / RadialVerbs widgets read the VerbManager to know which verbs
// to render; Hotspot.handler(name) looks up the bound action by Verb.Name.
type Verb struct {
Name string
Label string
Default Action
}
func (v Verb) GetName() string { return v.Name }
func (v Verb) TypeLabel() string { return "verb" }
type VerbManager = Manager[Verb]
// defaultVerbs returns the built-in SCUMM-style verb set. NewGame
// registers them so the demo works out of the box.
func defaultVerbs() []Verb {
return []Verb{
{Name: "look", Label: "Nézd"},
{Name: "use", Label: "Használd"},
{Name: "talk", Label: "Beszélj"},
{Name: "take", Label: "Vedd fel"},
}
}