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 e4e7232..81eea62 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 d1037d3..b7f946e 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 c0d4326..72ceae0 100644 --- a/src/plugin.rs +++ b/src/plugin.rs @@ -50,7 +50,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). @@ -66,7 +66,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.