#looping over an array list of struct items, and can't recognize struct methods.
1 messages · Page 1 of 1 (latest)
Are you sure they're the same type? Left image says *chunk, while the right says *Chunk
just do c.create()
idk why you dereference there
considering create takes a reference
That too, but I don't see why it would cause that error
then what raccoon said is correct
or alternatively your create function is not inside the Chunk container
btw you can just do for (Renderer.meshes_need_updating) |c|
try for (Renderer.meshes_need_updating) |*c|
c.create()
my bad
can I see more context for the create() method?
I mean around it like the struct definition
I wonder why it thinks you have a type chunk
what is the signature of the method you are calling from?
bit silly but how do you Import Chunk?
I think I know why
you might have const Chunk = @import("chunk.zig")
instead of const Chunk = @import("chunk.zig").Chunk

Just make chunk.zig a file struct and you can use the import directly