Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SkriptLogger in constructor of registration and a finish consumer API #145

Merged
merged 6 commits into from
Jan 1, 2024

Conversation

TheLimeGlass
Copy link
Contributor

@TheLimeGlass TheLimeGlass commented Oct 29, 2023

Add SkriptLogger in constructor of registration and a finish consumer API.

Allows for a consumer as a callback for when the SkriptRegistration finish. This can be useful to start executing or loading Scripts after all the syntaxes have been registered.

This pull also allows for setting the SkriptLogger in the consumer. This is because when registering syntaxes as i've found, the implementing SkriptAddon needs to be able to read it's own errors, rather than SkriptRegistration making a new SkriptLogger. There may be other details that are present in the provided SkriptLogger that the implementing class may need.

Also organized the fields to look pretty.

@Mwexim Mwexim merged commit f3c477f into Mwexim:master Jan 1, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants