From 14fb0ffce90a147467ced9cd3cb5dba315f8e2bd Mon Sep 17 00:00:00 2001 From: Carson Date: Sat, 2 Mar 2024 15:13:01 -0800 Subject: [PATCH] add Deserialize, Serialize to RoomStatus --- src/game/map.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/map.rs b/src/game/map.rs index 39e8364d..1f92cd8e 100644 --- a/src/game/map.rs +++ b/src/game/map.rs @@ -4,7 +4,7 @@ use enum_iterator::Sequence; use js_sys::{Array, JsString, Object}; use num_traits::*; -use serde::Deserialize; +use serde::{Deserialize, Serialize}; use wasm_bindgen::prelude::*; use crate::{ @@ -119,7 +119,7 @@ impl From for RoomStatusResult { } #[wasm_bindgen] -#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash, Sequence)] +#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash, Sequence, Deserialize, Serialize)] pub enum RoomStatus { Normal = "normal", Closed = "closed",