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§

Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
The type returned in the event of a conversion error.
Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.