Skip to content

Commit

Permalink
add Deserialize, Serialize to RoomStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
CarsonBurke committed Mar 2, 2024
1 parent 0c0de5f commit 14fb0ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::{
Expand Down Expand Up @@ -119,7 +119,7 @@ impl From<JsRoomStatusResult> 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",
Expand Down

0 comments on commit 14fb0ff

Please sign in to comment.