Skip to content

Commit 50d3af7

Browse files
committed
Merge branch 'main' of https://github.com/makspll/bevy_scripting into main
2 parents 52e52fc + 2b2ac23 commit 50d3af7

File tree

1 file changed

+21
-18
lines changed

1 file changed

+21
-18
lines changed

readme.md

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,22 @@ The API will likely change in the future as more scripting support is rolled out
1616
- If your game logic is encapsulated with scripts it becomes easilly moddable
1717
- Allows writing game logic/UI in a smaller language, making development more accessible to non-coders on your team
1818

19-
## State of this crate
20-
21-
- [x] Script host interface
22-
- [x] Hot re-loading scripts (on script asset changes, scripts using those assets are re-started)
23-
- [x] Mlua integration
24-
- [x] Rhai integration
25-
- [x] Customisable script API's
26-
- [x] Event based hooks (i.e. on_update)
27-
- [x] Flexible event scheduling (i.e. allow handling events at different stages rather than a single stage based on the event)
28-
- [x] Multiple scripts per entity
29-
- [x] Multiple instances of the same script on one entity
30-
- [x] Extensive callback argument type support
31-
- [ ] General Bevy API for all script hosts (i.e. Add component, remove component etc.). On track for Bevy 0.8
32-
- [x] Utilities for generating script native documentation
33-
- [ ] Tests
34-
- [x] Optionally loading external lua libraries via `require` (enabled with `unsafe_lua_modules` cargo feature due to potential unsafety)
19+
## Features
20+
21+
- Script host interface
22+
- Hot re-loading scripts (on script asset changes, scripts using those assets are re-started)
23+
- Mlua integration
24+
- Rhai integration
25+
- Customisable script API's
26+
- Event based hooks (i.e. on_update)
27+
- Flexible event scheduling (i.e. allow handling events at different stages rather than a single stage based on the event)
28+
- Multiple scripts per entity
29+
- Multiple instances of the same script on one entity
30+
- Extensive callback argument type support
31+
- General Bevy API.
32+
- Lua implementation of Bevy API (and support for more langauges incoming)
33+
- Utilities for generating script native documentation
34+
- Loading external lua libraries via `require` (enabled with `unsafe_lua_modules` cargo feature due to potential unsafety)
3535

3636
## Usage
3737

@@ -304,6 +304,9 @@ Rhai currently does not have any utilities existing for generating documentation
304304

305305
- `SCRIPT_DOC_DIR` - documentation is generated in `assets/scripts/docs` or to the path in this ENV variable if it's set.
306306

307+
## Scenes
308+
The `Script` components will persist a scene load, but their script contexts won't, after a scene load you must manually reload the scripts using `Script::reload_script`
309+
307310
## Examples
308311

309312
To see more complex applications of this library have a look at the examples:
@@ -313,8 +316,8 @@ To see more complex applications of this library have a look at the examples:
313316
- [lua - bevy API](bevy_mod_scripting/examples/lua/bevy_api.rs)
314317
- [generating statically typed wrappers + ScriptRef system](bevy_mod_scripting/examples/wrappers.rs)
315318
- [lua - documentation generation + lua static typing](bevy_mod_scripting/examples/lua/documentation_gen.rs)
316-
- [lua - bevy console integration](bevy_mod_scripting/examples/lua/console_integration.rs)
317-
- [rhai - bevy console integration](bevy_mod_scripting/examples/rhai/console_integration.rs)
319+
- ~~[lua - bevy console integration](bevy_mod_scripting/examples/lua/console_integration.rs)~~ not up to date with bevy 0.8
320+
- ~~[rhai - bevy console integration](bevy_mod_scripting/examples/rhai/console_integration.rs)~~ not up to date with bevy 0.8
318321
- [lua - game of life with teal](bevy_mod_scripting/examples/lua/game_of_life.rs)
319322

320323
Below is a video showcasing the game_of_life example:

0 commit comments

Comments
 (0)