diff options
author | Matt Strapp <matt@mattstrapp.net> | 2024-04-08 11:28:12 -0500 |
---|---|---|
committer | Matt Strapp <matt@mattstrapp.net> | 2024-04-08 11:28:15 -0500 |
commit | e13459e364158d0611975084a78d37e7f9dad150 (patch) | |
tree | 301c8cd8e3179e3f2191f3183a90942fc66310da | |
parent | Bump eslint-plugin-svelte from 2.35.1 to 2.36.0 (diff) | |
download | zorascript-e13459e364158d0611975084a78d37e7f9dad150.tar zorascript-e13459e364158d0611975084a78d37e7f9dad150.tar.gz zorascript-e13459e364158d0611975084a78d37e7f9dad150.tar.bz2 zorascript-e13459e364158d0611975084a78d37e7f9dad150.tar.lz zorascript-e13459e364158d0611975084a78d37e7f9dad150.tar.xz zorascript-e13459e364158d0611975084a78d37e7f9dad150.tar.zst zorascript-e13459e364158d0611975084a78d37e7f9dad150.zip |
Nothing
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
-rw-r--r-- | .rustfmt.toml | 0 | ||||
-rw-r--r-- | clients/www/src-tauri/Cargo.toml | 2 | ||||
-rw-r--r-- | libs/zora-rs/Cargo.toml | 2 | ||||
-rw-r--r-- | libs/zora-rs/src/enums.rs | 33 |
4 files changed, 37 insertions, 0 deletions
diff --git a/.rustfmt.toml b/.rustfmt.toml new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/.rustfmt.toml diff --git a/clients/www/src-tauri/Cargo.toml b/clients/www/src-tauri/Cargo.toml index 70db707..5f6ddab 100644 --- a/clients/www/src-tauri/Cargo.toml +++ b/clients/www/src-tauri/Cargo.toml @@ -18,6 +18,8 @@ tauri-build = { version = "1.5.1", features = [] } serde_json = "1.0" serde = { version = "1.0", features = ["derive"] } tauri = { version = "1.6.1", features = [] } +specta = "1.0.5" +tauri-specta = { version = "1.0.2", features = ["javascript", "typescript"] } [features] # this feature is used for production builds or when `devPath` points to the filesystem and the built-in dev server is disabled. diff --git a/libs/zora-rs/Cargo.toml b/libs/zora-rs/Cargo.toml index 08fa52a..c11df29 100644 --- a/libs/zora-rs/Cargo.toml +++ b/libs/zora-rs/Cargo.toml @@ -16,6 +16,7 @@ default = ["console_error_panic_hook"] [dependencies] serde_json = "1.0" serde = { version = "1.0", features = ["derive"] } +specta = { version = "1.0.5", features = ["typescript"] } wasm-bindgen = "0.2.84" # The `console_error_panic_hook` crate provides better debugging of panics by @@ -24,5 +25,6 @@ wasm-bindgen = "0.2.84" # code size when deploying. console_error_panic_hook = { version = "0.1.7", optional = true } + [dev-dependencies] wasm-bindgen-test = "0.3.34" diff --git a/libs/zora-rs/src/enums.rs b/libs/zora-rs/src/enums.rs new file mode 100644 index 0000000..a16718b --- /dev/null +++ b/libs/zora-rs/src/enums.rs @@ -0,0 +1,33 @@ +use serde::{Serialize, Deserialize}; +use specta::Type; +mod utils; + +/// The region of the game. +#[derive(Debug, Clone, Type, Serialize, Deserialize)] +pub enum Region { + US, + EU, + JP, +} + +/// Which game +#[derive(Debug, Clone, Type, Serialize, Deserialize)] +pub enum Game { + Ages, + Seasons, +} + +#[derive(Debug, Clone, Type, Serialize, Deserialize)] +pub enum Animal { + Ricky = 0x0b, + Dimitri = 0x0c, + Moosh = 0x0d, +} + +#[derive(Debug, Clone, Type, Serialize, Deserialize)] +pub enum Child { + None, + Curious, + Shy, + Hyperactive +}
\ No newline at end of file |