diff options
author | Lizzy Fleckenstein <eliasfleckenstein@web.de> | 2023-02-13 20:05:32 +0100 |
---|---|---|
committer | Lizzy Fleckenstein <eliasfleckenstein@web.de> | 2023-02-13 20:05:40 +0100 |
commit | 3cb97b94d3e3d83fbbbefde9c0a40cdd27ea5416 (patch) | |
tree | 2ac17a02ed6884987931ca0adf7666d843f01b31 /src/to_clt/env.rs | |
parent | ef635d1cbdfc26e11bfadb0c28007c5aa7a08ee1 (diff) | |
download | mt_net-3cb97b94d3e3d83fbbbefde9c0a40cdd27ea5416.tar.xz |
Implement SkyParams
Diffstat (limited to 'src/to_clt/env.rs')
-rw-r--r-- | src/to_clt/env.rs | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/to_clt/env.rs b/src/to_clt/env.rs index 031ee96..ecd3db3 100644 --- a/src/to_clt/env.rs +++ b/src/to_clt/env.rs @@ -1,5 +1,15 @@ use super::*; +#[mt_derive(to = "clt", repr = "str")] +pub enum ObjVisual { + Cube, + Sprite, + UprightSprite, + Mesh, + Wielditem, + Item, +} + #[mt_derive(to = "clt")] pub struct ObjProps { #[mt(const_before = "4u8")] // version @@ -9,7 +19,7 @@ pub struct ObjProps { pub collision_box: ([f32; 3], [f32; 3]), pub selection_box: ([f32; 3], [f32; 3]), pub pointable: bool, - pub visual: String, + pub visual: ObjVisual, pub visual_size: [f32; 3], pub textures: Vec<String>, pub sprite_sheet_size: [i16; 2], // in sprites @@ -93,7 +103,7 @@ pub struct ObjPhysicsOverride { pub old_sneak: bool, } -const GENERIC_CAO: u8 = 101; +pub const GENERIC_CAO: u8 = 101; #[mt_derive(to = "clt", repr = "u8", tag = "type", content = "data")] pub enum ObjMsg { |