Mercurial > games > semicongine
diff src/zamikongine/thing.nim @ 32:9edca5dc4e93
add: working implementation of uniforms
author | Sam <sam@basx.dev> |
---|---|
date | Sat, 14 Jan 2023 23:34:50 +0700 |
parents | b1b05d4efb52 |
children | 94c38e4b5782 |
line wrap: on
line diff
--- a/src/zamikongine/thing.nim Sat Jan 14 14:15:50 2023 +0700 +++ b/src/zamikongine/thing.nim Sat Jan 14 23:34:50 2023 +0700 @@ -10,7 +10,7 @@ children*: seq[ref Thing] parts*: seq[ref Part] -method update*(thing: ref Thing, dt: Duration) {.base.} = discard +method update*(thing: ref Thing, dt: float32) {.base.} = discard iterator partsOfType*[T: ref Part](root: ref Thing): T = var queue = @[root]