gen.js

1.8 kB · javascript · 54 lines

1import * as wasm from "./pkg/gen/mrlyjs_gen.js";23export { default, initSync } from "./pkg/gen/mrlyjs_gen.js";4export const Rng = wasm.Rng;5export const Group = wasm.Group;6export const Parity = wasm.Parity;7export const Tile = wasm.Tile;8export const background = wasm.background;9export const classic_code = wasm.classic_code;10export const classic_code_nd = wasm.classic_code_nd;11export const hex_key = wasm.hex_key;12export const random_design = wasm.random_design;13export const random_rotation = wasm.random_rotation;14export const tree_mask = wasm.tree_mask;15export const build = {16    Config2d: wasm.build_Config2d,17    Config3d: wasm.build_Config3d,18    build_2d: wasm.build_build_2d,19    build_3d: wasm.build_build_3d,20    build_6d: wasm.build_build_6d,21    create_2d: wasm.build_create_2d,22    create_3d: wasm.build_create_3d,23    create_6d: wasm.build_create_6d,24    random_tile_2d: wasm.build_random_tile_2d,25    random_tile_3d: wasm.build_random_tile_3d,26    random_tile_6d: wasm.build_random_tile_6d,27};28export const name = {29    Slots: wasm.name_Slots,30    Tile: wasm.name_Tile,31};32export const recipe = {33    CLASSICS_2D: wasm.recipe_CLASSICS_2D,34    CLASSICS_3D: wasm.recipe_CLASSICS_3D,35    Design: wasm.recipe_Design,36    MAX_LEVEL: wasm.recipe_MAX_LEVEL,37    MAX_SIDE: wasm.recipe_MAX_SIDE,38    MAX_SLOTS: wasm.recipe_MAX_SLOTS,39    MIN_SIDE: wasm.recipe_MIN_SIDE,40    classics: wasm.recipe_classics,41    generals: wasm.recipe_generals,42    nestings: wasm.recipe_nestings,43    powers: wasm.recipe_powers,44    products: wasm.recipe_products,45    size: wasm.recipe_size,46};47export const variation = {48    Config: wasm.variation_Config,49    File: wasm.variation_File,50    Variation: wasm.variation_Variation,51    create: wasm.variation_create,52    generate: wasm.variation_generate,53    render: wasm.variation_render,54};