EverestAPI / EverestAPI/Everest

better error postcard API

Open
#683 1 comment 1 reaction 1 assignee Claimed by @microlith57 View on GitHub
enhancement
Dominant language
C#
Stars
516
Forks
106
Avg merge
4d 9h
Merged PRs (30d)
5

Description

### I am planning on implementing this myself

Yes

### Describe your request

currently, custom error postcards are implemented by switching to `LevelEnter` with an error message.
this is not an ideal solution, as the current scene still has to finish what it's doing, which could be in an invalid state.

the proposed better API would look like
```cs
throw new PostcardException("{big}Oops!{/big}{n}You did something bad!");
```
and would immediately stop processing the current scene and switch to a postcard.

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.