remove demo game
This commit is contained in:
14
item.def.go
Normal file
14
item.def.go
Normal file
@@ -0,0 +1,14 @@
|
||||
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" }
|
||||
Reference in New Issue
Block a user