union { struct { uint16_t id ; uint8_t frameDelta ; union { struct { bool loop : 1 ; bool lockX : 1 ; bool lockY : 1 ; bool freeze : 1 ; uint8_t time : 2 ; uint8_t _unused : 1 ; bool regular : 1 ; } ; uint8_t value ; } flags ; } animation ; struct { uint16_t animationId ; uint16_t animationFlags ; } ; } ;