21 lines
393 B
Go
21 lines
393 B
Go
package entity
|
|
|
|
type DomainInterface interface {
|
|
Init()
|
|
|
|
GetMenuMap() MenuMap
|
|
GetMenu(name string) Menu
|
|
SetMenu(name string, menu Menu)
|
|
|
|
GetDialogMap() DialogMap
|
|
GetDialog(name string) Dialog
|
|
SetDialog(name string, menu Dialog)
|
|
|
|
GetLevels() []Level
|
|
GetLevel(index int) Level
|
|
|
|
AddToInventory(item *Item) bool
|
|
RemoveFromInventory(item *Item) bool
|
|
UseInventoryItem(item *Item) bool
|
|
}
|