From 17e7cb63bf70b35a58cf52ebea4bb543c450320f Mon Sep 17 00:00:00 2001 From: metamuffin Date: Thu, 11 Jul 2024 15:10:39 +0200 Subject: add backwards compat for game jam release --- server/protocol/src/lib.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'server/protocol/src/lib.rs') diff --git a/server/protocol/src/lib.rs b/server/protocol/src/lib.rs index cb72d2ff..2287633d 100644 --- a/server/protocol/src/lib.rs +++ b/server/protocol/src/lib.rs @@ -17,7 +17,10 @@ */ use glam::{IVec2, Vec2}; use serde::{Deserialize, Serialize}; -use std::{collections::HashMap, fmt::Display}; +use std::{ + collections::{HashMap, HashSet}, + fmt::Display, +}; pub use glam; @@ -52,6 +55,7 @@ pub struct ClientGamedata { pub tile_names: Vec, pub tile_collide: Vec, pub tile_interact: Vec, + pub map_names: HashSet, // for compat with game jam version pub maps: HashMap, } -- cgit v1.2.3-70-g09d2