From e13459e364158d0611975084a78d37e7f9dad150 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Mon, 8 Apr 2024 11:28:12 -0500 Subject: Nothing Signed-off-by: Matt Strapp --- libs/zora-rs/Cargo.toml | 2 ++ libs/zora-rs/src/enums.rs | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 libs/zora-rs/src/enums.rs (limited to 'libs/zora-rs') 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 -- cgit v1.2.3