pub struct AttrCommandDice {
pub name: String,
pub number_of_dice: i32,
pub dice_type: i32,
pub dice_modifier: i32,
}Expand description
An attribute command for rolling dice values to attributes.
Dog {
age @ 1d6+2
}Fields§
§name: String§number_of_dice: i32§dice_type: i32§dice_modifier: i32Trait Implementations§
Source§impl AttrCommand for AttrCommandDice
impl AttrCommand for AttrCommandDice
fn apply( &self, _ctx: &mut Context<'_>, builder: &SandboxBuilder<'_>, tx: &mut ReadWriteTransaction<'_>, euid: &str, ) -> Result<()>
fn revert( &self, _ctx: &mut Context<'_>, _builder: &SandboxBuilder<'_>, tx: &mut ReadWriteTransaction<'_>, euid: &str, ) -> Result<()>
fn value(&self) -> Option<String>
Source§impl Clone for AttrCommandDice
impl Clone for AttrCommandDice
Source§fn clone(&self) -> AttrCommandDice
fn clone(&self) -> AttrCommandDice
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AttrCommandDice
impl RefUnwindSafe for AttrCommandDice
impl Send for AttrCommandDice
impl Sync for AttrCommandDice
impl Unpin for AttrCommandDice
impl UnwindSafe for AttrCommandDice
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