annotate tests/test_resources.nim @ 213:b5d9410a8184

add: resource packaging and loading for different resource types, simplify build commands, update readme
author Sam <sam@basx.dev>
date Wed, 10 May 2023 22:36:59 +0700
parents 81fab407a479
children 5f6d3511ef79
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
207
81fab407a479 add: some adjustment to the last refactoring :P
Sam <sam@basx.dev>
parents:
diff changeset
1 import std/times
81fab407a479 add: some adjustment to the last refactoring :P
Sam <sam@basx.dev>
parents:
diff changeset
2
81fab407a479 add: some adjustment to the last refactoring :P
Sam <sam@basx.dev>
parents:
diff changeset
3 import semicongine
81fab407a479 add: some adjustment to the last refactoring :P
Sam <sam@basx.dev>
parents:
diff changeset
4
81fab407a479 add: some adjustment to the last refactoring :P
Sam <sam@basx.dev>
parents:
diff changeset
5 proc main() =
213
b5d9410a8184 add: resource packaging and loading for different resource types, simplify build commands, update readme
Sam <sam@basx.dev>
parents: 207
diff changeset
6 echo "Mods available: ", modList()
b5d9410a8184 add: resource packaging and loading for different resource types, simplify build commands, update readme
Sam <sam@basx.dev>
parents: 207
diff changeset
7 for modName in modList():
b5d9410a8184 add: resource packaging and loading for different resource types, simplify build commands, update readme
Sam <sam@basx.dev>
parents: 207
diff changeset
8 echo modName, ":"
b5d9410a8184 add: resource packaging and loading for different resource types, simplify build commands, update readme
Sam <sam@basx.dev>
parents: 207
diff changeset
9 selectedMod = modName
b5d9410a8184 add: resource packaging and loading for different resource types, simplify build commands, update readme
Sam <sam@basx.dev>
parents: 207
diff changeset
10 for i in walkResources():
b5d9410a8184 add: resource packaging and loading for different resource types, simplify build commands, update readme
Sam <sam@basx.dev>
parents: 207
diff changeset
11 echo " ", i, ": ", loadResource(i)[]
207
81fab407a479 add: some adjustment to the last refactoring :P
Sam <sam@basx.dev>
parents:
diff changeset
12
81fab407a479 add: some adjustment to the last refactoring :P
Sam <sam@basx.dev>
parents:
diff changeset
13 when isMainModule:
81fab407a479 add: some adjustment to the last refactoring :P
Sam <sam@basx.dev>
parents:
diff changeset
14 main()