rojo-rbx / rbx-dom

Roblox DOM and (de)serialization implementation in Rust
MIT License
105 stars 42 forks source link

Add rbx_dom_lua OptionalCFrame codec #392

Closed kennethloeffler closed 4 months ago

kennethloeffler commented 4 months ago

This PR closes #179 by adding an OptionalCFrame codec (and tests for it) to rbx_dom_lua.

As mentioned in #391, there was also a change needed to EncodedValue.decode so it doesn't error out when the encoded value pair is empty, which occurs when optional types (like OptionalCFrame) are unoccupied.