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

Implement a cohesive interface for controlling another Entity Thread/Script #81

Open
ImmutableOctet opened this issue Jul 15, 2024 · 0 comments
Assignees
Labels
C++ Script API Feature New feature or request Idea Ideas, concepts, etc. (for features without a clear scope yet) module: engine For features that involve the `engine` module. (optional)

Comments

@ImmutableOctet
Copy link
Owner

This would look something like:

if (auto some_thread = get_thread("some_thread_name"_hs))
{
	co_await some_thread.pause();
}

where some_thread would be an interface type tied to the underlying EntityThread and/or Script. This type would be convertible to bool, with true indicating that the thread is currently running and linked.

This would be for the current entity, but we would ideally be able to do this for other entities as well.

@ImmutableOctet ImmutableOctet added Feature New feature or request Idea Ideas, concepts, etc. (for features without a clear scope yet) module: engine For features that involve the `engine` module. (optional) C++ Script API labels Jul 15, 2024
@ImmutableOctet ImmutableOctet self-assigned this Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C++ Script API Feature New feature or request Idea Ideas, concepts, etc. (for features without a clear scope yet) module: engine For features that involve the `engine` module. (optional)
Projects
None yet
Development

No branches or pull requests

1 participant