-
-
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.
* Game of life lua example builds and runs on bevy 0.12 now. It doesn't work, but it does run! * Basic lua scripts may now be working at least aprt of the time. * migrate rhai parts, formatting etc * formatting * migrate rune * format * revert some changes * fix lint --------- Co-authored-by: makspll <[email protected]>
- Loading branch information
1 parent
46dafba
commit 17cf228
Showing
41 changed files
with
906 additions
and
749 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "bevy_mod_scripting" | ||
version = "0.3.0" | ||
version = "0.4.0" | ||
authors = ["Maksymilian Mozolewski <[email protected]>"] | ||
edition = "2021" | ||
license = "MIT" | ||
|
@@ -63,18 +63,19 @@ rhai_script_api = ["bevy_script_api/rhai"] | |
rune = ["bevy_mod_scripting_rune"] | ||
|
||
[dependencies] | ||
bevy = { version = "0.11", default-features = false } | ||
bevy_mod_scripting_core = { path = "bevy_mod_scripting_core", version = "0.3.0" } | ||
bevy_mod_scripting_lua = { path = "languages/bevy_mod_scripting_lua", version = "0.3.0", optional = true } | ||
bevy_mod_scripting_rhai = { path = "languages/bevy_mod_scripting_rhai", version = "0.3.0", optional = true } | ||
bevy_mod_scripting_rune = { path = "languages/bevy_mod_scripting_rune", version = "0.3.0", optional = true } | ||
bevy_script_api = { path = "bevy_script_api", version = "0.3.0", optional = true } | ||
bevy = { version = "0.12", default-features = false } | ||
bevy_mod_scripting_core = { path = "bevy_mod_scripting_core", version = "0.4.0" } | ||
bevy_mod_scripting_lua = { path = "languages/bevy_mod_scripting_lua", version = "0.4.0", optional = true } | ||
bevy_mod_scripting_rhai = { path = "languages/bevy_mod_scripting_rhai", version = "0.4.0", optional = true } | ||
bevy_mod_scripting_rune = { path = "languages/bevy_mod_scripting_rune", version = "0.4.0", optional = true } | ||
bevy_script_api = { path = "bevy_script_api", version = "0.4.0", optional = true } | ||
|
||
|
||
[dev-dependencies] | ||
bevy = { version = "0.11" } | ||
bevy = { version = "0.12" } | ||
clap = { version = "4.1", features = ["derive"] } | ||
rand = "0.8.5" | ||
bevy_console = "0.8.0" | ||
bevy_console = "0.10.1" | ||
rhai-rand = "0.1" | ||
|
||
[workspace] | ||
|
@@ -108,12 +109,12 @@ codegen-units = 8 | |
[[example]] | ||
name = "console_integration_lua" | ||
path = "examples/lua/console_integration.rs" | ||
required-features = ["lua54", "lua_script_api"] | ||
required-features = ["lua54", "lua_script_api", "bevy/file_watcher"] | ||
|
||
[[example]] | ||
name = "console_integration_rhai" | ||
path = "examples/rhai/console_integration.rs" | ||
required-features = ["rhai", "rhai_script_api"] | ||
required-features = ["rhai", "rhai_script_api", "bevy/file_watcher"] | ||
|
||
[[example]] | ||
name = "complex_game_loop_lua" | ||
|
@@ -123,12 +124,12 @@ required-features = ["lua54"] | |
[[example]] | ||
name = "game_of_life_lua" | ||
path = "examples/lua/game_of_life.rs" | ||
required-features = ["lua54", "teal", "lua_script_api"] | ||
required-features = ["lua54", "teal", "lua_script_api", "bevy/file_watcher"] | ||
|
||
[[example]] | ||
name = "game_of_life_rhai" | ||
path = "examples/rhai/game_of_life.rs" | ||
required-features = ["rhai", "rhai_script_api"] | ||
required-features = ["rhai", "rhai_script_api", "bevy/file_watcher"] | ||
|
||
[[example]] | ||
name = "event_recipients_lua" | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "bevy_api_gen" | ||
version = "0.3.0" | ||
version = "0.4.0" | ||
authors = ["Maksymilian Mozolewski <[email protected]>"] | ||
edition = "2021" | ||
license = "MIT" | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "bevy_event_priority" | ||
version = "0.3.0" | ||
version = "0.4.0" | ||
authors = ["Maksymilian Mozolewski <[email protected]>"] | ||
edition = "2021" | ||
license = "MIT" | ||
|
@@ -21,5 +21,5 @@ name = "bevy_event_priority" | |
path = "src/lib.rs" | ||
|
||
[dependencies] | ||
bevy = { version = "0.11", default-features = false} | ||
bevy = { version = "0.12", default-features = false} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "bevy_mod_scripting_common" | ||
version = "0.3.0" | ||
version = "0.4.0" | ||
authors = ["Maksymilian Mozolewski <[email protected]>"] | ||
edition = "2021" | ||
license = "MIT" | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "bevy_mod_scripting_core" | ||
version = "0.3.0" | ||
version = "0.4.0" | ||
authors = ["Maksymilian Mozolewski <[email protected]>"] | ||
edition = "2021" | ||
license = "MIT" | ||
|
@@ -29,10 +29,10 @@ doc_always = [] | |
|
||
|
||
[dependencies] | ||
bevy = { version = "0.11", default-features = false, features=["bevy_asset","bevy_gltf","bevy_animation","bevy_core_pipeline","bevy_ui","bevy_pbr","bevy_render","bevy_text","bevy_sprite","filesystem_watcher"]} | ||
bevy_event_priority = {path = "../bevy_event_priority", version = "0.3.0" } | ||
bevy = { version = "0.12", default-features = false, features=["bevy_asset","bevy_gltf","bevy_animation","bevy_core_pipeline","bevy_ui","bevy_pbr","bevy_render","bevy_text","bevy_sprite"]} | ||
bevy_event_priority = {path = "../bevy_event_priority", version = "0.4.0" } | ||
thiserror = "1.0.31" | ||
paste = "1.0.7" | ||
parking_lot = "0.12.1" | ||
|
||
anyhow ="1.0.75" | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "bevy_mod_scripting_derive" | ||
version = "0.3.0" | ||
version = "0.4.0" | ||
authors = ["Maksymilian Mozolewski <[email protected]>"] | ||
edition = "2021" | ||
license = "MIT" | ||
|
@@ -24,7 +24,7 @@ path = "src/lib.rs" | |
|
||
|
||
[dependencies] | ||
bevy_mod_scripting_common = {path = "../bevy_mod_scripting_common", version = "0.3.0" } | ||
bevy_mod_scripting_common = {path = "../bevy_mod_scripting_common", version = "0.4.0" } | ||
paste = "1.0.7" | ||
syn = {version="1.0.57",features=["full","fold","extra-traits"]} | ||
quote = "1.0.8" | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "bevy_script_api" | ||
version = "0.3.0" | ||
version = "0.4.0" | ||
authors = ["Maksymilian Mozolewski <[email protected]>"] | ||
edition = "2021" | ||
license = "MIT" | ||
|
@@ -13,26 +13,26 @@ readme = "readme.md" | |
|
||
[package.metadata.release] | ||
pre-release-replacements = [ | ||
{file="Cargo.toml", search='^version\s*=\s*.*$', replace="version = \"{{version}}\"", exactly=1}, | ||
{file="Cargo.toml", search='^(?P<h>bevy_mod_scripting_derive\s*=.*)version\s*=\s*".*"(?P<t>.*)$', replace="${h}version = \"{{version}}\"${t}", exactly=1}, | ||
{file="Cargo.toml", search='^(?P<h>bevy_mod_scripting_core\s*=.*)version\s*=\s*".*"(?P<t>.*)$', replace="${h}version = \"{{version}}\"${t}", exactly=1}, | ||
{file="Cargo.toml", search='^(?P<h>bevy_mod_scripting_lua\s*=.*)version\s*=\s*".*"(?P<t>.*)$', replace="${h}version = \"{{version}}\"${t}", exactly=1}, | ||
{file="Cargo.toml", search='^(?P<h>bevy_mod_scripting_lua_derive\s*=.*)version\s*=\s*".*"(?P<t>.*)$', replace="${h}version = \"{{version}}\"${t}", exactly=1}, | ||
{file="Cargo.toml", search='^(?P<h>bevy_mod_scripting_rhai\s*=.*)version\s*=\s*".*"(?P<t>.*)$', replace="${h}version = \"{{version}}\"${t}", exactly=1}, | ||
{ file = "Cargo.toml", search='^version\s*=\s*.*$', replace="version = \"{{version}}\"", exactly=1}, | ||
{ file = "Cargo.toml", search='^(?P<h>bevy_mod_scripting_derive\s*=.*)version\s*=\s*".*"(?P<t>.*)$', replace="${h}version = \"{{version}}\"${t}", exactly=1}, | ||
{ file = "Cargo.toml", search='^(?P<h>bevy_mod_scripting_core\s*=.*)version\s*=\s*".*"(?P<t>.*)$', replace="${h}version = \"{{version}}\"${t}", exactly=1}, | ||
{ file = "Cargo.toml", search='^(?P<h>bevy_mod_scripting_lua\s*=.*)version\s*=\s*".*"(?P<t>.*)$', replace="${h}version = \"{{version}}\"${t}", exactly=1}, | ||
{ file = "Cargo.toml", search='^(?P<h>bevy_mod_scripting_lua_derive\s*=.*)version\s*=\s*".*"(?P<t>.*)$', replace="${h}version = \"{{version}}\"${t}", exactly=1}, | ||
{ file = "Cargo.toml", search='^(?P<h>bevy_mod_scripting_rhai\s*=.*)version\s*=\s*".*"(?P<t>.*)$', replace="${h}version = \"{{version}}\"${t}", exactly=1}, | ||
] | ||
|
||
[features] | ||
lua = ["bevy_mod_scripting_lua","bevy_mod_scripting_lua_derive"] | ||
rhai = ["bevy_mod_scripting_rhai"] | ||
|
||
[dependencies] | ||
bevy = { version = "0.11", default-features = false, features=["bevy_asset","bevy_gltf","bevy_animation","bevy_core_pipeline","bevy_ui","bevy_pbr","bevy_render","bevy_text","bevy_sprite","filesystem_watcher"]} | ||
bevy_mod_scripting_derive = { path="../bevy_mod_scripting_derive", version = "0.3.0" } | ||
bevy_mod_scripting_core = { path="../bevy_mod_scripting_core", version = "0.3.0" } | ||
bevy = { version = "0.12", default-features = false, features=["bevy_asset","bevy_gltf","bevy_animation","bevy_core_pipeline","bevy_ui","bevy_pbr","bevy_render","bevy_text","bevy_sprite"]} | ||
bevy_mod_scripting_derive = { path="../bevy_mod_scripting_derive", version = "0.4.0" } | ||
bevy_mod_scripting_core = { path="../bevy_mod_scripting_core", version = "0.4.0" } | ||
parking_lot="0.12.1" | ||
paste="1.0.7" | ||
thiserror="1.0.32" | ||
# lua | ||
bevy_mod_scripting_lua={path="../languages/bevy_mod_scripting_lua", version = "0.3.0", optional=true} | ||
bevy_mod_scripting_lua_derive={path="../languages/bevy_mod_scripting_lua_derive", version = "0.3.0", optional=true} | ||
bevy_mod_scripting_rhai={path="../languages/bevy_mod_scripting_rhai", version = "0.3.0", optional=true} | ||
bevy_mod_scripting_lua={path="../languages/bevy_mod_scripting_lua", version = "0.4.0", optional=true} | ||
bevy_mod_scripting_lua_derive={path="../languages/bevy_mod_scripting_lua_derive", version = "0.4.0", optional=true} | ||
bevy_mod_scripting_rhai={path="../languages/bevy_mod_scripting_rhai", version = "0.4.0", optional=true} |
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
Oops, something went wrong.