Here's an example of using those structs, loading a LevelDef into memory from disk. As you can see, I simply iterate through all objects and decide what to do and what union members to access based on its type. Also I now noticed that I forgot to call fclose, not a big deal but I'll fix it. Cursed code? Psshhh...

t. >>532478575