Files
gorpg/src/konstructor/object.npc.go
T
2023-07-08 12:20:34 +02:00

21 lines
343 B
Go

package konstructor
type NPCTypeMapKey string
type NPCTypeMap map[NPCTypeMapKey]NPCType
type NPCType struct {
ID string
Render Render
}
type NPC struct {
ID string
Type NPCType
Position Position
}
func GetNPCTypeImagePath(name NPCTypeMapKey) string {
return GetObjectDirectory(NPCObjectType) + string(name) + ".png"
}