move source files to src

This commit is contained in:
2023-07-08 12:20:34 +02:00
parent 6028c5770f
commit e5c2294f6c
43 changed files with 23 additions and 21 deletions
+20
View File
@@ -0,0 +1,20 @@
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"
}