Skip to content

chore(codegen): update bevy bindings #174

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

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/bevy_mod_scripting_functions/src/bevy/bevy_core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ use bevy_mod_scripting_core::{
};
use crate::*;
pub struct BevyCoreScriptingPlugin;
impl bevy::app::Plugin for BevyCoreScriptingPlugin {
fn build(&self, app: &mut bevy::prelude::App) {
impl ::bevy::app::Plugin for BevyCoreScriptingPlugin {
fn build(&self, app: &mut ::bevy::prelude::App) {
let mut world = app.world_mut();
NamespaceBuilder::<::bevy::core::prelude::Name>::new(world)
.overwrite_script_function(
Expand Down
4 changes: 2 additions & 2 deletions crates/bevy_mod_scripting_functions/src/bevy/bevy_ecs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ use bevy_mod_scripting_core::{
};
use crate::*;
pub struct BevyEcsScriptingPlugin;
impl bevy::app::Plugin for BevyEcsScriptingPlugin {
fn build(&self, app: &mut bevy::prelude::App) {
impl ::bevy::app::Plugin for BevyEcsScriptingPlugin {
fn build(&self, app: &mut ::bevy::prelude::App) {
let mut world = app.world_mut();
NamespaceBuilder::<::bevy::ecs::entity::Entity>::new(world)
.overwrite_script_function(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ use bevy_mod_scripting_core::{
};
use crate::*;
pub struct BevyHierarchyScriptingPlugin;
impl bevy::app::Plugin for BevyHierarchyScriptingPlugin {
fn build(&self, app: &mut bevy::prelude::App) {
impl ::bevy::app::Plugin for BevyHierarchyScriptingPlugin {
fn build(&self, app: &mut ::bevy::prelude::App) {
let mut world = app.world_mut();
NamespaceBuilder::<::bevy::hierarchy::prelude::Children>::new(world)
.overwrite_script_function(
Expand Down
4 changes: 2 additions & 2 deletions crates/bevy_mod_scripting_functions/src/bevy/bevy_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ use bevy_mod_scripting_core::{
};
use crate::*;
pub struct BevyInputScriptingPlugin;
impl bevy::app::Plugin for BevyInputScriptingPlugin {
fn build(&self, app: &mut bevy::prelude::App) {
impl ::bevy::app::Plugin for BevyInputScriptingPlugin {
fn build(&self, app: &mut ::bevy::prelude::App) {
let mut world = app.world_mut();
NamespaceBuilder::<::bevy::input::gamepad::Gamepad>::new(world)
.overwrite_script_function(
Expand Down
4 changes: 2 additions & 2 deletions crates/bevy_mod_scripting_functions/src/bevy/bevy_math.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ use bevy_mod_scripting_core::{
};
use crate::*;
pub struct BevyMathScriptingPlugin;
impl bevy::app::Plugin for BevyMathScriptingPlugin {
fn build(&self, app: &mut bevy::prelude::App) {
impl ::bevy::app::Plugin for BevyMathScriptingPlugin {
fn build(&self, app: &mut ::bevy::prelude::App) {
let mut world = app.world_mut();
NamespaceBuilder::<::bevy::math::AspectRatio>::new(world)
.overwrite_script_function(
Expand Down
4 changes: 2 additions & 2 deletions crates/bevy_mod_scripting_functions/src/bevy/bevy_reflect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ use bevy_mod_scripting_core::{
};
use crate::*;
pub struct BevyReflectScriptingPlugin;
impl bevy::app::Plugin for BevyReflectScriptingPlugin {
fn build(&self, app: &mut bevy::prelude::App) {
impl ::bevy::app::Plugin for BevyReflectScriptingPlugin {
fn build(&self, app: &mut ::bevy::prelude::App) {
let mut world = app.world_mut();
NamespaceBuilder::<::std::sync::atomic::AtomicBool>::new(world)
.overwrite_script_function(
Expand Down
4 changes: 2 additions & 2 deletions crates/bevy_mod_scripting_functions/src/bevy/bevy_time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ use bevy_mod_scripting_core::{
};
use crate::*;
pub struct BevyTimeScriptingPlugin;
impl bevy::app::Plugin for BevyTimeScriptingPlugin {
fn build(&self, app: &mut bevy::prelude::App) {
impl ::bevy::app::Plugin for BevyTimeScriptingPlugin {
fn build(&self, app: &mut ::bevy::prelude::App) {
let mut world = app.world_mut();
NamespaceBuilder::<::bevy::time::prelude::Fixed>::new(world)
.overwrite_script_function(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ use bevy_mod_scripting_core::{
};
use crate::*;
pub struct BevyTransformScriptingPlugin;
impl bevy::app::Plugin for BevyTransformScriptingPlugin {
fn build(&self, app: &mut bevy::prelude::App) {
impl ::bevy::app::Plugin for BevyTransformScriptingPlugin {
fn build(&self, app: &mut ::bevy::prelude::App) {
let mut world = app.world_mut();
NamespaceBuilder::<::bevy::transform::components::GlobalTransform>::new(world)
.overwrite_script_function(
Expand Down
4 changes: 2 additions & 2 deletions crates/bevy_mod_scripting_functions/src/bevy/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ pub mod bevy_hierarchy;
pub mod bevy_ecs;
pub mod bevy_time;
pub struct LuaBevyScriptingPlugin;
impl bevy::app::Plugin for LuaBevyScriptingPlugin {
fn build(&self, app: &mut bevy::prelude::App) {
impl ::bevy::app::Plugin for LuaBevyScriptingPlugin {
fn build(&self, app: &mut ::bevy::prelude::App) {
bevy_reflect::BevyReflectScriptingPlugin.build(app);
bevy_math::BevyMathScriptingPlugin.build(app);
bevy_input::BevyInputScriptingPlugin.build(app);
Expand Down