pub enum Block {
Show 19 variants
PlayerEvent {
action: String,
ls_cancel: bool,
},
EntityEvent {
action: String,
ls_cancel: bool,
},
Function {
args: Args,
name: String,
},
Process {
args: Args,
name: String,
},
PlayerAction {
args: Args,
action: String,
target: Option<Target>,
},
IfPlayer {
args: Args,
action: String,
target: Option<Target>,
is_negated: bool,
},
StartProcess {
args: Args,
proc: String,
},
CallFunction {
args: Args,
func: String,
},
Control {
args: Args,
action: String,
},
SetVariable {
args: Args,
action: String,
},
IfEntity {
args: Args,
action: String,
target: Option<Target>,
is_negated: bool,
},
EntityAction {
args: Args,
action: String,
target: Option<Target>,
},
IfVariable {
args: Args,
action: String,
is_negated: bool,
},
SelectObject {
args: Args,
action: String,
sub_action: Option<String>,
is_negated: bool,
},
GameAction {
args: Args,
action: String,
},
Repeat {
args: Args,
action: String,
sub_action: Option<String>,
is_negated: bool,
},
IfGame {
args: Args,
action: String,
is_negated: bool,
},
Else,
Bracket {
direction: BracketDirection,
kind: BracketKind,
},
}Expand description
The main structure of a block.
This is not actually the type that is serialized/deserialized.
Instead, it converts from/to [JSONBlock], which is friendlier with the JSON.
Variants§
PlayerEvent
EntityEvent
Function
Process
PlayerAction
IfPlayer
StartProcess
CallFunction
Control
SetVariable
IfEntity
EntityAction
IfVariable
SelectObject
GameAction
Repeat
IfGame
Else
Bracket
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Block
impl<'de> Deserialize<'de> for Block
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Block
Auto Trait Implementations§
impl Freeze for Block
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnwindSafe for Block
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