pub struct AnswerReload {
pub save_path: String,
pub script_states: Value,
}
Expand description
After loading a new game in TTS, TTS will send all the Lua scripts
and UI XML from the new game as an AnswerReload
.
TTS sends this message as a response to MessageGetScripts
and MessageReload
.
§Example
{
"message_id": 1,
"script_states": [
{
"name": "Global",
"guid": "-1",
"script": "...",
"ui": "..."
},
{
"name": "BlackJack Dealer's Deck",
"guid": "a0b2d5",
"script": "..."
},
]
}
Fields§
§save_path: String
Path to the save file of the current save
script_states: Value
Contains a list objects and their state
Trait Implementations§
Source§impl Debug for AnswerReload
impl Debug for AnswerReload
Source§impl<'de> Deserialize<'de> for AnswerReload
impl<'de> Deserialize<'de> for AnswerReload
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
Auto Trait Implementations§
impl Freeze for AnswerReload
impl RefUnwindSafe for AnswerReload
impl Send for AnswerReload
impl Sync for AnswerReload
impl Unpin for AnswerReload
impl UnwindSafe for AnswerReload
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