Fix some bevy_remote
typos (#17408)
# Objective Contributor expressed distress on Discord over introducing a typo. ## Solution Fix em
This commit is contained in:
parent
77fd7bf7ce
commit
b693362b0c
@ -50,7 +50,7 @@ pub const BRP_REPARENT_METHOD: &str = "bevy/reparent";
|
||||
/// The method path for a `bevy/list` request.
|
||||
pub const BRP_LIST_METHOD: &str = "bevy/list";
|
||||
|
||||
/// The method path for a `bevy/reparent` request.
|
||||
/// The method path for a `bevy/mutate_component` request.
|
||||
pub const BRP_MUTATE_COMPONENT_METHOD: &str = "bevy/mutate_component";
|
||||
|
||||
/// The method path for a `bevy/get+watch` request.
|
||||
@ -200,7 +200,7 @@ pub struct BrpListParams {
|
||||
pub entity: Entity,
|
||||
}
|
||||
|
||||
/// `bevy/mutate`:
|
||||
/// `bevy/mutate_component`:
|
||||
///
|
||||
/// The server responds with a null.
|
||||
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
|
||||
@ -208,7 +208,7 @@ pub struct BrpMutateParams {
|
||||
/// The entity of the component to mutate.
|
||||
pub entity: Entity,
|
||||
|
||||
/// The [full path] of component to mutate.
|
||||
/// The [full path] of the component to mutate.
|
||||
///
|
||||
/// [full path]: bevy_reflect::TypePath::type_path
|
||||
pub component: String,
|
||||
@ -986,7 +986,7 @@ fn export_type(reg: &TypeRegistration) -> (String, JsonSchemaBevyType) {
|
||||
let short_path = binding.short_path();
|
||||
let type_path = binding.path();
|
||||
let mut typed_schema = JsonSchemaBevyType {
|
||||
reflect_types: get_registrered_reflect_types(reg),
|
||||
reflect_types: get_registered_reflect_types(reg),
|
||||
short_path: short_path.to_owned(),
|
||||
type_path: type_path.to_owned(),
|
||||
crate_name: binding.crate_name().map(str::to_owned),
|
||||
@ -1111,7 +1111,7 @@ fn export_type(reg: &TypeRegistration) -> (String, JsonSchemaBevyType) {
|
||||
(t.type_path().to_owned(), typed_schema)
|
||||
}
|
||||
|
||||
fn get_registrered_reflect_types(reg: &TypeRegistration) -> Vec<String> {
|
||||
fn get_registered_reflect_types(reg: &TypeRegistration) -> Vec<String> {
|
||||
// Vec could be moved to allow registering more types by game maker.
|
||||
let registered_reflect_types: [(TypeId, &str); 5] = [
|
||||
{ (TypeId::of::<ReflectComponent>(), "Component") },
|
||||
|
@ -199,7 +199,7 @@
|
||||
//! Mutate a field in a component.
|
||||
//!
|
||||
//! `params`:
|
||||
//! - `entity`: The ID of the entity to with the component to mutate.
|
||||
//! - `entity`: The ID of the entity with the component to mutate.
|
||||
//! - `component`: The component's [fully-qualified type name].
|
||||
//! - `path`: The path of the field within the component. See
|
||||
//! [`GetPath`](bevy_reflect::GetPath#syntax) for more information on formatting this string.
|
||||
|
Loading…
Reference in New Issue
Block a user