-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Small cleaning up + Fix for crash when looping through empty Vec (#87)
* dwadwa * debug prints * we ignore this ever happened * mmmmmmmmmmm i'm still a bit dumb lol * does this fix the crash? * that maybe fixes it * unncessecary get_children + fixed get_parent * rustfmt * clippy * moved wrappers example into lua and renamed it * WIP new example for rhai wrapper * WIP implementing fix mentioned in review #87 (comment) * basic one shot works * accessing variables work * accessing variables not work * Revert "accessing variables not work" This reverts commit c282ada. * empty array * go back to <= * commented out errors, setting values seem to work * expanded multiple_events example for parent testing * returning UNIT instead of int if parent couldn't be found * Update bevy_script_api/src/common/std.rs Co-authored-by: Maksymilian Mozolewski <[email protected]> * Update bevy_script_api/src/common/std.rs Co-authored-by: Maksymilian Mozolewski <[email protected]> * no longer problem at looping through empty vec * if/else to check if parent exists * removed rhai wrapper example, moved normal wrapper example back and renamed * rust fmt --------- Co-authored-by: Maksymilian Mozolewski <[email protected]>
- Loading branch information
Showing
5 changed files
with
52 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters