yog_event/content.rs
1//! What mods register: content the hosts make into the game's.
2
3mod host;
4
5pub use host::{
6 Armor, Block, Content, Dimension, Font, Hangs, Inventory, InventorySlot, Item, Machine, Recipe,
7 Tool,
8};
9
10use yog_data::Schema;
11use yog_data::with::Raw;
12
13/// Content of `kind` (`item`, `block`, `recipe`, `book`, … — `yog_ids::kind`)
14/// named `id`, its definition as Yog Data (binary): the runtime keeps it
15/// for the hosts. One service for every kind — new kinds need nothing new.
16#[derive(Debug, Clone, Schema)]
17pub struct Register {
18 pub kind: String,
19 pub id: String,
20 #[data(with = "Raw")]
21 pub data: Vec<u8>,
22}