Marking the type as exported is not sufficient. You have to mark the field pos
as exported (and also for the field dir I guess):
import nico/vec
type
GameObject* = ref object of RootObj
pos*: Vec2i
Player* = ref object of GameObject
dir*: int
Run
- [help] indirectly imported types not working? jorgeer
- Re: [help] indirectly imported types not working? Stefan_Salewski
- Re: [help] indirectly imported types not working? lscrd
