Mercurial > games > semicongine
annotate tests/test_resources.nim @ 685:269bd721ffbe
did: refactor gpu data, fix some errors
author | Sam <sam@basx.dev> |
---|---|
date | Mon, 15 May 2023 14:25:04 +0700 |
parents | 496b328faa43 |
children | 5f6d3511ef79 |
rev | line source |
---|---|
668
a02d503ffa53
add: some adjustment to the last refactoring :P
Sam <sam@basx.dev>
parents:
diff
changeset
|
1 import std/times |
a02d503ffa53
add: some adjustment to the last refactoring :P
Sam <sam@basx.dev>
parents:
diff
changeset
|
2 |
a02d503ffa53
add: some adjustment to the last refactoring :P
Sam <sam@basx.dev>
parents:
diff
changeset
|
3 import semicongine |
a02d503ffa53
add: some adjustment to the last refactoring :P
Sam <sam@basx.dev>
parents:
diff
changeset
|
4 |
a02d503ffa53
add: some adjustment to the last refactoring :P
Sam <sam@basx.dev>
parents:
diff
changeset
|
5 proc main() = |
674
496b328faa43
add: resource packaging and loading for different resource types, simplify build commands, update readme
Sam <sam@basx.dev>
parents:
668
diff
changeset
|
6 echo "Mods available: ", modList() |
496b328faa43
add: resource packaging and loading for different resource types, simplify build commands, update readme
Sam <sam@basx.dev>
parents:
668
diff
changeset
|
7 for modName in modList(): |
496b328faa43
add: resource packaging and loading for different resource types, simplify build commands, update readme
Sam <sam@basx.dev>
parents:
668
diff
changeset
|
8 echo modName, ":" |
496b328faa43
add: resource packaging and loading for different resource types, simplify build commands, update readme
Sam <sam@basx.dev>
parents:
668
diff
changeset
|
9 selectedMod = modName |
496b328faa43
add: resource packaging and loading for different resource types, simplify build commands, update readme
Sam <sam@basx.dev>
parents:
668
diff
changeset
|
10 for i in walkResources(): |
496b328faa43
add: resource packaging and loading for different resource types, simplify build commands, update readme
Sam <sam@basx.dev>
parents:
668
diff
changeset
|
11 echo " ", i, ": ", loadResource(i)[] |
668
a02d503ffa53
add: some adjustment to the last refactoring :P
Sam <sam@basx.dev>
parents:
diff
changeset
|
12 |
a02d503ffa53
add: some adjustment to the last refactoring :P
Sam <sam@basx.dev>
parents:
diff
changeset
|
13 when isMainModule: |
a02d503ffa53
add: some adjustment to the last refactoring :P
Sam <sam@basx.dev>
parents:
diff
changeset
|
14 main() |