From 77f80661df3ec5cd33b0c6eb307db2999445012d Mon Sep 17 00:00:00 2001 From: jabu Date: Mon, 6 Mar 2023 23:21:35 -0600 Subject: [PATCH] indicate where events are sent from in docs --- src/lib.rs | 2 ++ src/textures.rs | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index f7dff20..2f1cee0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -327,6 +327,8 @@ pub struct SpineReadyEvent { /// A Spine event fired from a playing animation. /// +/// Sent in [`SpineSystem::Update`]. +/// /// ``` /// # use bevy::prelude::*; /// # use bevy_spine::prelude::*; diff --git a/src/textures.rs b/src/textures.rs index 04b9cda..a384131 100644 --- a/src/textures.rs +++ b/src/textures.rs @@ -21,6 +21,8 @@ pub(crate) struct SpineTextures { } /// An [`Event`] fired for each texture loaded by Spine. +/// +/// Sent in [`SpineSystem::Load`](`crate::SpineSystem::Load`). #[derive(Debug, Clone)] pub struct SpineTextureCreateEvent { pub path: String, @@ -29,6 +31,8 @@ pub struct SpineTextureCreateEvent { } /// An [`Event`] fired for each texture disposed, after [`SpineTextureCreateEvent`]. +/// +/// Sent in [`SpineSystem::Load`](`crate::SpineSystem::Load`). #[derive(Debug, Clone)] pub struct SpineTextureDisposeEvent { pub path: String,