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

Reply via email to