pub struct EffectRootSite<'a> {
pub owner: EffectRootOwner<'a>,
pub stage: &'static str,
pub path: String,
pub key: String,
}Expand description
One effect root: which it is, where it is, and what its l10n keys hang off.
path points at the list; an element’s pointer is path + /<index>.
key is likewise the list’s keybase; an element’s key is key + .<index>.
Fields§
§owner: EffectRootOwner<'a>What this root hangs off, with the owning object.
stage: &'static strThe stage document the list lives in (quests or dialogue).
path: StringJSON pointer to the list within that document.
key: StringThe list’s l10n key prefix.
Implementations§
Source§impl EffectRootSite<'_>
impl EffectRootSite<'_>
Sourcepub fn kind(&self) -> EffectRootKind
pub fn kind(&self) -> EffectRootKind
Which root this site is.
Sourcepub fn runs_with_acting_player(&self) -> bool
pub fn runs_with_acting_player(&self) -> bool
Whether emission runs this site’s bundle with an acting player — the
per-declaration answer (see EffectRootOwner::runs_with_acting_player),
which is what DW0357/DW0503 must ask.
Auto Trait Implementations§
impl<'a> Freeze for EffectRootSite<'a>
impl<'a> RefUnwindSafe for EffectRootSite<'a>
impl<'a> Send for EffectRootSite<'a>
impl<'a> Sync for EffectRootSite<'a>
impl<'a> Unpin for EffectRootSite<'a>
impl<'a> UnsafeUnpin for EffectRootSite<'a>
impl<'a> UnwindSafe for EffectRootSite<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more