Files
gorpg/konstructor/object.go
2023-07-07 15:18:51 +02:00

24 lines
549 B
Go

package konstructor
type ObjectType string
const (
ItemObjectType ObjectType = "item"
NPCObjectType ObjectType = "npc"
PlatformObjectType ObjectType = "platform"
PlayerObjectType ObjectType = "player"
)
type ObjectDirectoryMap map[ObjectType]string
var ObjectDirectories = ObjectDirectoryMap{
ItemObjectType: "items",
NPCObjectType: "npcs",
PlatformObjectType: "platforms",
PlayerObjectType: "players",
}
func GetObjectDirectory(name ObjectType) string {
return "assets/images/" + ObjectDirectories[name] + "/"
}