Files
pncdsl/item.def.go
2026-05-25 21:28:17 +02:00

15 lines
350 B
Go

package pncdsl
type Item struct {
Name string
Sprite string // Asset.Name
Description string
OnUseSelf Action
// OnUseWith: targetName -> action. Target may be a hotspot Name or another item Name.
OnUseWith map[string]Action
}
func (i Item) GetName() string { return i.Name }
func (i Item) TypeLabel() string { return "item" }