daniu54 / earie-treasures

A 2d top-down loot-em-up with horror and stealth elements
0 stars 0 forks source link

Replace editor-not-null-attribute assertions using `NodeErrors` with alternatives that don't use `NodeErrors` #90

Open Abb4 opened 9 months ago

Abb4 commented 9 months ago

Currently we throw exceptions if editor properties are not set:

PlayerInteractionArea.AssertEditorPropertySet(nameof(PlayerInteractionArea));
PlayerUi.AssertEditorPropertySet(nameof(PlayerUi));

Currently AssertEditorPropertySet uses Results. But it does not need to. Instead replace it with similar looking method that does not create Results and with a better error message/exception message.