pub struct MessageReload {
pub script_states: Value,
}
Expand description
Update the Lua scripts and UI XML for any objects listed in the message,
and then reloads the save file, the same way it does when pressing “Save & Play” within the in-game editor.
Returns an AnswerReload
message.
Any objects mentioned have both their Lua script and their UI XML updated. If no value is set for either the “script” or “ui” key then the corresponding Lua script or UI XML is deleted.
Fields§
§script_states: Value
Contains a list objects and their state
Implementations§
Source§impl MessageReload
impl MessageReload
Sourcepub fn as_message(self) -> Message
pub fn as_message(self) -> Message
Returns self as Message::MessageReload
Trait Implementations§
Source§impl Debug for MessageReload
impl Debug for MessageReload
Source§impl Serialize for MessageReload
impl Serialize for MessageReload
Auto Trait Implementations§
impl Freeze for MessageReload
impl RefUnwindSafe for MessageReload
impl Send for MessageReload
impl Sync for MessageReload
impl Unpin for MessageReload
impl UnwindSafe for MessageReload
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