diff --git a/examples/entities_from_manifests.rs b/examples/entities_from_manifests.rs index 60320ca..e398e9b 100644 --- a/examples/entities_from_manifests.rs +++ b/examples/entities_from_manifests.rs @@ -16,7 +16,7 @@ use leafwing_manifest::{ asset_state::SimpleAssetState, identifier::Id, manifest::{Manifest, ManifestFormat}, - plugin::{AppExt, ManifestPlugin}, + plugin::{ManifestPlugin, RegisterManifest}, }; use serde::{Deserialize, Serialize}; diff --git a/examples/raw_manifest.rs b/examples/raw_manifest.rs index 4a67090..706f381 100644 --- a/examples/raw_manifest.rs +++ b/examples/raw_manifest.rs @@ -18,7 +18,7 @@ use leafwing_manifest::{ asset_state::SimpleAssetState, identifier::Id, manifest::{Manifest, ManifestFormat}, - plugin::{AppExt, ManifestPlugin}, + plugin::{ManifestPlugin, RegisterManifest}, }; use serde::{Deserialize, Serialize}; diff --git a/examples/simple.rs b/examples/simple.rs index 93b4dfe..106632e 100644 --- a/examples/simple.rs +++ b/examples/simple.rs @@ -11,7 +11,7 @@ use leafwing_manifest::{ asset_state::SimpleAssetState, identifier::Id, manifest::{Manifest, ManifestFormat}, - plugin::{AppExt, ManifestPlugin}, + plugin::{ManifestPlugin, RegisterManifest}, }; use serde::{Deserialize, Serialize}; diff --git a/src/plugin.rs b/src/plugin.rs index 0a4ab1b..c9e1461 100644 --- a/src/plugin.rs +++ b/src/plugin.rs @@ -16,10 +16,10 @@ use crate::manifest::Manifest; /// This plugin will add the required state to your app (starting in [`AssetLoadingState::LOADING`]), /// and set up the required systems to progress through the asset loading process and parse any added manifests. /// -/// Note that manifests must be added to the app manually, using the [`app.register_manifest`](crate::plugin::AppExt::register_manifest) method. +/// Note that manifests must be added to the app manually, using the [`app.register_manifest`](crate::plugin::RegisterManifest::register_manifest) method. /// This plugin **must** be added before manifests are registered. /// -/// While [`register_manifest`](crate::plugin::AppExt::register_manifest) must be called for each manifest type you wish to use, +/// While [`register_manifest`](crate::plugin::RegisterManifest::register_manifest) must be called for each manifest type you wish to use, /// this plugin should only be added a single time. /// /// This plugin is intenionally optional: if you have more complex asset loading requirements, take a look at the systems in this plugin and either add or reimplement them as needed. @@ -71,7 +71,7 @@ impl Plugin for ManifestPlugin { } /// An extension trait for registering manifests with an app. -pub trait AppExt { +pub trait RegisterManifest { /// Registers a manifest with the app, preparing it for loading and parsing. /// /// The final manifest type must implement [`Manifest`], while the raw manifest type must implement [`Asset`](bevy::asset::Asset). @@ -87,7 +87,7 @@ pub trait AppExt { #[derive(SystemSet, PartialEq, Eq, Hash, Debug, Clone)] struct ProcessManifestSet; -impl AppExt for App { +impl RegisterManifest for App { /// Registers the manifest `M`. /// /// By default, the path root is the `assets` folder, just like all Bevy assets.