IrishBruse/LDtkMonogame

Optional Fields on Enums

Closed this issue · 0 comments

Fypur commented

If an enum is declared as optional and you don't give it a value, then level.GetEntities() will throw a NullReferenceException.

Like I have this SpikeDirection enum in my Platform entity:
image

this happens:
image