yog-event 0.8.0

Yog event system — pub/sub for game/server events.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Tags: the host's actions.

use yog_ids as ids;

actions! {
    /// Whether `item` is in item tag `tag`.
    HasItem { item: String, tag: String } -> bool = ids::service_tag::HAS_ITEM, "YogTagActions.hasItemTag";
    /// Whether `block` is in block tag `tag`.
    HasBlock { block: String, tag: String } -> bool = ids::service_tag::HAS_BLOCK, "YogTagActions.hasBlockTag";
    /// Whether `entity_type` is in entity type tag `tag`.
    HasEntity { entity_type: String, tag: String } -> bool = ids::service_tag::HAS_ENTITY, "YogTagActions.hasEntityTag";
    /// The items of item tag `tag`.
    Items { tag: String } -> Vec<String> = ids::service_tag::ITEMS, "YogClientApi.tagItems";
}