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

Should content scripts be Artemis structured? #44

Closed
GregHib opened this issue Dec 4, 2019 · 2 comments
Closed

Should content scripts be Artemis structured? #44

GregHib opened this issue Dec 4, 2019 · 2 comments
Labels
question Further information is requested
Milestone

Comments

@GregHib
Copy link
Contributor

GregHib commented Dec 4, 2019

If scripts are going to be using suspended functions #31, then the DSL will need to be intermediary between Artemis' loops.

What would happen if an entity was deleted before a coroutine completed?

How best should errors & failures be handled? Functionally?

@GregHib GregHib added the question Further information is requested label Dec 4, 2019
@GregHib GregHib added this to the 0.4.0 milestone Dec 4, 2019
@GregHib
Copy link
Contributor Author

GregHib commented Dec 5, 2019

All event content will be coroutine based. E.g button press, entity interaction.

World events will need a different kind of system. E.g distraction and diversions.

More complex content might still need a system? E.g bots, combat

@GregHib
Copy link
Contributor Author

GregHib commented Dec 7, 2019

Yes, however, they don't have to be. Technically speaking all Kotlin scripts extend PassiveSystem anyway, but in this instance, I'm referring to explicitly calling [ScriptBase#system].

Outside of distinct systems, scripts can currently: listen on events, create dialogues & have dependencies injected.

World content will need to use existing or new type of systems.

Complex content like combat scripts will most likely have their own functions and implementations inside of ScriptBase

@GregHib GregHib closed this as completed Dec 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant