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 lua manager support (normal + API) #551

Merged
merged 10 commits into from
Oct 1, 2023
Merged

Add lua manager support (normal + API) #551

merged 10 commits into from
Oct 1, 2023

Conversation

Coolsonickirby
Copy link
Collaborator

This PR adds code that allows ARCrop to register managers for the lua scripts and also expands the API to allow other plugin makers to register their own lua managers.

This PR isn't fully ready yet, as it still needs to be reviewed and also misses the signatures for the new functions.

@Coolsonickirby
Copy link
Collaborator Author

Coolsonickirby commented Sep 27, 2023

It's ready for review

Edit: nvm lmao

@Coolsonickirby Coolsonickirby marked this pull request as ready for review September 27, 2023 14:33
@Coolsonickirby Coolsonickirby changed the title Ad lua manager support (normal + API) Add lua manager support (normal + API) Sep 29, 2023
@Coolsonickirby
Copy link
Collaborator Author

Tested a handful of in-game menus + played through a couple 10-stock all items high matches with functions registered on both, the menu and in-game managers and haven't ran into any issues

@Coolsonickirby
Copy link
Collaborator Author

Coolsonickirby commented Oct 1, 2023

Pushing onto the lua stack for

  • string
  • integer
  • number (float)
  • bool

has been added. Now rust functions can return values for the lua script to use.

@Coolsonickirby Coolsonickirby self-assigned this Oct 1, 2023
@Coolsonickirby Coolsonickirby added enhancement New feature or request API labels Oct 1, 2023
@Coolsonickirby
Copy link
Collaborator Author

Tested and Ready!

@Raytwo Raytwo merged commit 02da13b into master Oct 1, 2023
1 check failed
@Raytwo Raytwo deleted the lua branch October 1, 2023 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants