From 3cb97b94d3e3d83fbbbefde9c0a40cdd27ea5416 Mon Sep 17 00:00:00 2001 From: Lizzy Fleckenstein Date: Mon, 13 Feb 2023 20:05:32 +0100 Subject: Implement SkyParams --- src/to_clt/env.rs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/to_clt/env.rs') 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, 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 { -- cgit v1.2.3