introduce enums as map keys

This commit is contained in:
2023-07-07 00:56:33 +02:00
parent 415a564317
commit faa6f00891
15 changed files with 52 additions and 31 deletions

View File

@@ -13,24 +13,24 @@ type DomainInterface interface {
Init()
GetMenuMap() MenuMap
GetMenu(name string) Menu
SetMenu(name string, menu Menu)
GetMenu(name MenuMapKey) Menu
SetMenu(name MenuMapKey, menu Menu)
GetDialogMap() DialogMap
GetDialog(name string) Dialog
SetDialog(name string, menu Dialog)
GetDialog(name DialogMapKey) Dialog
SetDialog(name DialogMapKey, menu Dialog)
GetLevels() []Level
GetLevel(index int) Level
GetObjectTypeMap() ObjectTypeMap
GetObjectType(name string) ObjectType
GetObjectType(name ObjectTypeMapKey) ObjectType
GetItemTypeMap() ItemTypeMap
GetItemType(name string) ItemType
GetItemType(name ItemTypeMapKey) ItemType
GetNPCTypeMap() NPCTypeMap
GetNPCType(name string) NPCType
GetNPCType(name NPCTypeMapKey) NPCType
AddToInventory(item *Item) bool
RemoveFromInventory(item *Item) bool