gamemstr-common 0.1.0

Common code for the gamemstr project
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use serde::{Deserialize, Serialize};

use super::{map::MapCoordinates, npc::NPC};

#[derive(Serialize, Deserialize, Debug)]
pub struct Location {
    pub id: String,
    pub name: String,
    pub description: String,
    pub world_id: String,
    pub map_coordinates: MapCoordinates,
    pub npcs: Vec<NPC>,
}