object_type.go
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package konstructor
|
||||
|
||||
type ObjectTypeMap map[string]ObjectType
|
||||
|
||||
type ObjectType struct {
|
||||
ID string
|
||||
Render Render
|
||||
|
||||
Reference in New Issue
Block a user