Struct screeps_api::websocket::types::room::RoomUpdate [] [src]

pub struct RoomUpdate {
    pub game_time: Option<u32>,
    pub info: RoomUpdateInfo,
    pub objects: Vec<(String, Value)>,
    pub flags: Vec<Flag>,
    pub visual: Option<String>,
    pub users: Option<HashMap<String, RoomUpdateUserInfo>>,
    // some fields omitted
}

Update for detailed room information.

Fields

The game time when this update was created.

Information on the room "mode".

All room objects in the room, represented as serde_json::Value.

This would be parsed into a concrete enum for each type, but room updates by their nature are incremental - and this includes the "type" field.

These values can be applied as updates to the RoomObject type.

All of the subscribed user's flags in this room.

This will always be present when there are flags, even if no flags have changed.

The logged in user's visuals for this room.

Represented by a series of json objects separated by \n.

TODO: parse this further.

Detailed information on all users that have things in this room.

Trait Implementations

impl Clone for RoomUpdate
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for RoomUpdate
[src]

[src]

Formats the value using the given formatter.