Feat: listeners now have scope information
This commit is contained in:
1 parent
cb74d70f83
commit
fcd68e61d2
17 files changed
+897
-906
No files matched your search
@@ -97,6 +97,8 @@ mod velement {
|
||||
|
||||
// use crate::{events::VirtualEvent, innerlude::CbIdx};
|
||||
|
||||
use crate::{events::VirtualEvent, innerlude::ScopeIdx};
|
||||
|
||||
use super::*;
|
||||
use std::fmt::Debug;
|
||||
|
||||
@@ -182,7 +184,8 @@ mod velement {
|
||||
|
||||
pub struct ListenerHandle {
|
||||
pub event: &'static str,
|
||||
pub idx: CbIdx,
|
||||
pub scope: ScopeIdx,
|
||||
pub id: usize,
|
||||
}
|
||||
|
||||
/// An event listener.
|
||||
@@ -190,8 +193,8 @@ mod velement {
|
||||
/// The type of event to listen for.
|
||||
pub(crate) event: &'static str,
|
||||
|
||||
// ref to the real listener
|
||||
// pub(crate) id: u32,
|
||||
pub scope: ScopeIdx,
|
||||
pub id: usize,
|
||||
|
||||
// pub(crate) _i: &'bump str,
|
||||
// #[serde(skip_serializing, skip_deserializing, default="")]
|
||||
|
||||
Reference in new issue
Block a user