pub enum Action {
Show 15 variants
SetGlobalVariable {
variable: String,
value: Value,
},
ModifyGlobalVariable {
variable: String,
op: ModifyOp,
value: Value,
},
SetPlayerVariable {
player: Value,
variable: String,
value: Value,
},
ModifyPlayerVariable {
player: Value,
variable: String,
op: ModifyOp,
value: Value,
},
AssignMember {
target: Value,
op: Option<ModifyOp>,
value: Value,
},
CallSubroutine {
subroutine: String,
},
If {
condition: Value,
},
ElseIf {
condition: Value,
},
Else,
While {
condition: Value,
},
ForGlobalVariable {
variable: String,
start: Value,
stop: Value,
step: Value,
},
ForPlayerVariable {
player: Value,
variable: String,
start: Value,
stop: Value,
step: Value,
},
End,
Disabled {
action: Box<Action>,
},
Call {
name: String,
args: Vec<Value>,
},
}Expand description
A Workshop action line. Control flow is represented in the same order as
the Workshop source, including its explicit End lines.
Variants§
SetGlobalVariable
ModifyGlobalVariable
SetPlayerVariable
ModifyPlayerVariable
AssignMember
CallSubroutine
If
ElseIf
Else
While
ForGlobalVariable
ForPlayerVariable
End
Disabled
Call
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
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