1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
//! Structures which are shared and exist as sub-field of multiple structures.

with_update_struct! {
    /// A struct describing the destination of various actions within action logs.
    #[derive(serde_derive::Deserialize, Clone, Debug, PartialEq)]
    pub struct ActionLogTarget {
        /// The in-room x position of this target.
        pub x: u32,
        /// The in-room x position of this target.
        pub y: u32,
    }

    /// The update structure for an `ActionLogTarget`.
    #[derive(serde_derive::Deserialize, Clone, Debug)]
    pub struct ActionLogTargetUpdate { ... }
}