pub struct LuaGameScriptSetGameStateParams {
pub can_continue: bool,
pub game_finished: bool,
pub next_level: String,
pub player_won: bool,
}Expand description
Set scenario state. Any parameters not provided do not change the current state.
Fields§
§can_continue: bool§game_finished: bool§next_level: String§player_won: boolTrait Implementations§
Source§impl Clone for LuaGameScriptSetGameStateParams
impl Clone for LuaGameScriptSetGameStateParams
Source§fn clone(&self) -> LuaGameScriptSetGameStateParams
fn clone(&self) -> LuaGameScriptSetGameStateParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for LuaGameScriptSetGameStateParams
impl Default for LuaGameScriptSetGameStateParams
Source§fn default() -> LuaGameScriptSetGameStateParams
fn default() -> LuaGameScriptSetGameStateParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LuaGameScriptSetGameStateParams
impl RefUnwindSafe for LuaGameScriptSetGameStateParams
impl Send for LuaGameScriptSetGameStateParams
impl Sync for LuaGameScriptSetGameStateParams
impl Unpin for LuaGameScriptSetGameStateParams
impl UnsafeUnpin for LuaGameScriptSetGameStateParams
impl UnwindSafe for LuaGameScriptSetGameStateParams
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