yog-ids 0.6.2

Yog's shared names — namespaces, content kinds, schemes, separators, its own ids — defined once, exported to TypeScript and Java.
Documentation
//! The CLI's service (`yog serve`): its requests, methods and parameters.

names! {

    /// A request to the CLI's service (`yog serve`): the method and its parameters.
    serve_request {
        METHOD = "method",
        PARAMS = "params",
    }

    /// The parameters of the CLI's service methods (`yog serve`, what the IDE calls).
    serve_param {
        PATH = "path",
        NAME = crate::word::NAME,
        TEXT = crate::word::TEXT,
        SIZE = crate::word::SIZE,
        TEXTURE = crate::kind::TEXTURE,
        SOUND = crate::kind::SOUND,
        PNG = crate::word::PNG,
        ANIMATION = crate::word::ANIMATION,
        KIND = crate::word::KIND,
        REGISTRY = "registry",
        ID = crate::word::ID,
        ALIAS = "alias",
        MODEL = crate::word::MODEL,
        SOURCE = crate::word::SOURCE,
        FORCE = "force",
        WIDTH = crate::word::WIDTH,
        HEIGHT = crate::word::HEIGHT,
        TAG = crate::kind::TAG,
        ARGS = "args",
        EVENT = crate::word::EVENT,
        FILE = crate::word::FILE,
        SET = crate::bus_word::SET,
        MOD_ID = crate::word::MOD,
        ENTRIES = crate::word::ENTRIES,
        NEXT = "next",
        LEVEL = crate::kind::LEVEL,
        VALUE = crate::word::VALUE,
        VALUES = crate::word::VALUES,
        FORMAT = "format",
        FRAME = crate::word::FRAME,
        KEY = crate::word::KEY,
    }

    /// The methods of `yog serve` (the CLI as a service), by the name a tool
    /// (Yog-IDLE) calls them; their parameters are `serve_param`.
    serve_method {
        ADVANCEMENT_RENDER = "advancement_render",
        BODY_TEXTURE = "body_texture",
        BOOK_DESIGNER_CLOSE = "book_designer_close",
        BOOK_DESIGNER_RENDER = "book_designer_render",
        BOOK_PAGE_PREVIEW = "book_page_preview",
        CONTENT_ARMOR_MATERIALS = "content_armor_materials",
        CONTENT_BLOCK_KINDS = "content_block_kinds",
        CONTENT_DEFS = "content_defs",
        CONTENT_IMPORT = "content_import",
        CONTENT_ITEM_POTION_COLOR = "content_item_potion_color",
        CONTENT_MOD_ID = "content_mod_id",
        CONTENT_PARENT_MODEL = "content_parent_model",
        CONTENT_REFS = "content_refs",
        CONTENT_SAVE_TEXTURE = "content_save_texture",
        CONTENT_SAVE_TEXTURE_ANIMATION = "content_save_texture_animation",
        CONTENT_SOUND_GROUPS = "content_sound_groups",
        CONTENT_STRINGS = "content_strings",
        CONTENT_TAGS = "content_tags",
        CONTENT_TEXTURE = "content_texture",
        CONTENT_TEXTURES = "content_textures",
        CONTENT_TOOL_MATERIALS = "content_tool_materials",
        DATA_FORMAT = "data.format",
        DATA_PARSE = "data.parse",
        DATA_PATCH = "data.patch",
        FONT_COPY = "font_copy",
        FORMAT_COMPLETE = "format.complete",
        FORMAT_SHAPE = "format.shape",
        ITEM_TAG_ITEMS = "item_tag_items",
        MEDIA_IMPORT = "media.import",
        MEDIA_PICTURES = "media.pictures",
        MOD_ID = "mod.id",
        RECIPE_KIND_CREATE = "recipe_kind_create",
        RECIPE_KINDS = "recipe_kinds",
        SOUND_DATA = "sound_data",
        SOUND_LIST = "sound_list",
        /// The mod's videos (`@Videos.intro`), what a `.yvideo` can show.
        VIDEO_LIST = "video_list",
        /// A `.yvideo` as edited, rendered as the build renders it.
        VIDEO_PREVIEW = "video_preview",
        /// A render's frame, decoded as the game decodes it (PNG).
        VIDEO_FRAME = "video_frame",
        SOURCE_CHECK = "source.check",
        SOURCE_READ = "source.read",
        SOURCE_WRITE = "source.write",
        TEXTURE_ANIMATION_FORMAT = "texture_animation_format",
        TEXTURE_ANIMATION_RESOLVE = "texture_animation_resolve",
        TEXTURE_FILE_ID = "texture_file_id",
        TYPED_CLASSIFY = "typed.classify",
        VERSION = "version",
        WORLDGEN_PREVIEW = "worldgen_preview",
        YRES_PARSE = "yres.parse",
        YRES_WRITE = "yres.write",
        YUI_CODEGEN = "yui_codegen",
        YUI_DESIGNER_COMPONENTS = "yui_designer_components",
        YUI_DESIGNER_EVENT = "yui_designer_event",
        YUI_DESIGNER_RENDER = "yui_designer_render",
        YUI_DESIGNER_RESET = "yui_designer_reset",
        YUI_EVENT_HANDLER = "yui_event_handler",
        YUI_IMAGE_PREVIEW = "yui_image_preview",
        YUI_IMAGE_SOURCES = "yui_image_sources",
    }
}