pub struct Give { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Event for Give
impl Event for Give
fn name(&self) -> &str
fn initiator(&self) -> String
fn set_initiator(&mut self, initiator: String)
fn set_world_updates(&mut self, updates: Vec<Box<dyn Change>>)
fn set_condition(&mut self, condition: Condition)
fn get_world_updates(&self) -> &[Box<dyn Change>]
fn get_condition(&self) -> &Condition
fn dump(&self) -> Value
fn matches(&self, value: &Value) -> bool
fn items(&self) -> Vec<String>
fn characters(&self) -> Vec<String>
fn msg_base(&self, world: &dyn World) -> String
fn kind(&self) -> &str
fn can_be_triggered(&self, world: &dyn World) -> bool
fn trigger(&mut self, world: &mut dyn World)
fn perform(&mut self, world: &mut dyn World) -> bool
fn action_text(&self, world: &dyn World) -> String
fn success_text(&self, world: &dyn World) -> String
fn fail_text(&self, world: &dyn World) -> String
fn sort_key(&self, world: &dyn World) -> (usize, String, String, String)
Source§fn geo_location(
&self,
_world: &dyn World,
) -> Option<(String, Option<String>, GeoLocation)>
fn geo_location( &self, _world: &dyn World, ) -> Option<(String, Option<String>, GeoLocation)>
Can be event be triggered by moving to given geo location
Auto Trait Implementations§
impl Freeze for Give
impl !RefUnwindSafe for Give
impl !Send for Give
impl !Sync for Give
impl Unpin for Give
impl !UnwindSafe for Give
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