yog-event 0.9.5

Yog event system — pub/sub for game/server events.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Media as the game takes it: a `.yog`'s yimage handed to the game as PNG
//! (`yog_media::yimage`; the runtime answers).

use yog_data::with::Raw;

/// The PNG of a yimage.
#[derive(Debug, Clone, yog_data::Schema)]
pub struct Png {
    #[data(with = "Raw")]
    pub yimage: Vec<u8>,
}

/// A PNG's bytes (none: not a yimage).
#[derive(Debug, Clone, Default, yog_data::Schema)]
pub struct PngBytes {
    #[data(with = "Raw")]
    pub png: Vec<u8>,
}