Files
gorpg/konstructor/entity/entity.domain.go
2023-07-05 21:45:23 +02:00

28 lines
500 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
Process(DomainProcessOptions)
}
type DomainProcessOptions struct {
Level *Level
KContext *KContext
}