gatelogue_types/node/
spawn_warp.rs1use strum_macros::EnumString;
2
3use crate::{_from_sql_for_enum, _get_column, node_type, util::ID};
4
5#[derive(Clone, Copy, PartialEq, Eq, Debug, EnumString)]
6pub enum WarpType {
7 #[strum(serialize = "premier")]
8 Premier,
9 #[strum(serialize = "terminus")]
10 Terminus,
11 #[strum(serialize = "traincarts")]
12 TrainCarts,
13 #[strum(serialize = "portal")]
14 Portal,
15 #[strum(serialize = "misc")]
16 Misc,
17}
18_from_sql_for_enum!(WarpType);
19
20node_type!(located SpawnWarp);
21impl SpawnWarp {
22 _get_column!("SpawnWarp", name, String);
23 _get_column!("SpawnWarp", warp_type, "warpType", WarpType);
24}