ldtk icon indicating copy to clipboard operation
ldtk copied to clipboard

External Enums not working properly

Open ysaml opened this issue 3 years ago • 2 comments

It returns an error "Couldn't find any simple Enum in this source fileContent." when I import an hx file for enums like this

      package util;
      enum Rarity
      {
          test1;
          test2;
      }

but when I change it to enum Rarity { test1; test2; } it does not return the error, and it also does not load the enums.

ysaml avatar Apr 19 '22 14:04 ysaml

it works when the enums are compressed/ has no spaces or tabs like this: enum Rarity{test1;test2;test3} I use auto formatting on vscode so it's really a bummer

ysaml avatar Apr 19 '22 14:04 ysaml

Thanks for reporting!

deepnight avatar Apr 27 '22 07:04 deepnight

This should now work in 1.2.0

deepnight avatar Dec 23 '22 15:12 deepnight