object_type.go

This commit is contained in:
2023-07-07 00:24:22 +02:00
parent 457d08080f
commit 88401697c7
5 changed files with 37 additions and 20 deletions

View File

@@ -14,6 +14,9 @@ type DomainInterface interface {
GetLevels() []Level
GetLevel(index int) Level
GetObjectTypeMap() ObjectTypeMap
GetObjectType(name string) ObjectType
AddToInventory(item *Item) bool
RemoveFromInventory(item *Item) bool
UseInventoryItem(item *Item) bool

View File

@@ -1,5 +1,7 @@
package konstructor
type ObjectTypeMap map[string]ObjectType
type ObjectType struct {
ID string
Render Render