dirs
ci/woodpecker/push/ebitengine Pipeline was successful

This commit is contained in:
2026-08-30 23:21:06 +02:00
parent 28b1662195
commit c5c0c02c03
115 changed files with 1083 additions and 950 deletions
+12
View File
@@ -0,0 +1,12 @@
package tape
import (
"git.teletypegames.org/games/realworld/inc"
)
func init() {
Manager.Register(Tape{
Name: inc.Dex,
Dialogue: inc.DlgDex,
})
}
+39
View File
@@ -0,0 +1,39 @@
package tape
import (
inkwell "git.teletypegames.org/engines/inkwell"
"git.teletypegames.org/games/realworld/inc"
)
type Tape struct {
Name string
Item string
Dialogue string
}
var Manager = inkwell.NewManager[Tape]()
func (t Tape) GetName() string { return t.Name }
func Is(name string) bool { return Manager.Has(name) }
func Of(item string) (Tape, bool) {
for _, t := range Manager.All() {
if t.Item != "" && t.Item == item {
return t, true
}
}
return Tape{}, false
}
func IsItem(item string) bool {
_, ok := Of(item)
return ok
}
func Dialogue(item string) string {
if t, ok := Of(item); ok && t.Dialogue != "" {
return t.Dialogue
}
return inc.DlgDex
}
+13
View File
@@ -0,0 +1,13 @@
package tape
import (
"git.teletypegames.org/games/realworld/inc"
)
func init() {
Manager.Register(Tape{
Name: inc.TapeMystery,
Item: inc.ItemMysteryTape,
Dialogue: inc.DlgMysteryTape,
})
}
+11
View File
@@ -0,0 +1,11 @@
package tape
import (
"git.teletypegames.org/games/realworld/inc"
)
func init() {
Manager.Register(Tape{
Name: inc.TapeSupport,
})
}