Skip to content

Commit c121f2f

Browse files
chore(codegen): update bevy bindings
1 parent cbcfd5f commit c121f2f

File tree

9 files changed

+28672
-0
lines changed

9 files changed

+28672
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
// @generated by cargo bevy-api-gen generate, modify the templates not this file
2+
#![allow(clippy::all)]
3+
#![allow(unused, deprecated, dead_code)]
4+
#![cfg_attr(rustfmt, rustfmt_skip)]
5+
use super::bevy_ecs::*;
6+
use super::bevy_reflect::*;
7+
use bevy_mod_scripting_core::{
8+
AddContextInitializer, StoreDocumentation,
9+
bindings::{ReflectReference, function::from::{Ref, Mut, Val}},
10+
};
11+
use crate::*;
12+
pub struct BevyCoreScriptingPlugin;
13+
impl ::bevy::app::Plugin for BevyCoreScriptingPlugin {
14+
fn build(&self, app: &mut ::bevy::prelude::App) {
15+
let mut world = app.world_mut();
16+
NamespaceBuilder::<::bevy::core::prelude::Name>::new(world)
17+
.overwrite_script_function(
18+
"eq",
19+
|
20+
_self: Ref<bevy::core::prelude::Name>,
21+
other: Ref<bevy::core::prelude::Name>|
22+
{
23+
let output: bool = ::bevy::core::prelude::Name::eq(
24+
_self.into(),
25+
other.into(),
26+
)
27+
.into();
28+
output
29+
},
30+
)
31+
.overwrite_script_function(
32+
"clone",
33+
|_self: Ref<bevy::core::prelude::Name>| {
34+
let output: Val<bevy::core::prelude::Name> = ::bevy::core::prelude::Name::clone(
35+
_self.into(),
36+
)
37+
.into();
38+
output
39+
},
40+
);
41+
}
42+
}

0 commit comments

Comments
 (0)