summaryrefslogtreecommitdiff
path: root/src/to_clt/env.rs
diff options
context:
space:
mode:
authorLizzy Fleckenstein <eliasfleckenstein@web.de>2023-02-13 20:05:32 +0100
committerLizzy Fleckenstein <eliasfleckenstein@web.de>2023-02-13 20:05:40 +0100
commit3cb97b94d3e3d83fbbbefde9c0a40cdd27ea5416 (patch)
tree2ac17a02ed6884987931ca0adf7666d843f01b31 /src/to_clt/env.rs
parentef635d1cbdfc26e11bfadb0c28007c5aa7a08ee1 (diff)
downloadmt_net-3cb97b94d3e3d83fbbbefde9c0a40cdd27ea5416.tar.xz
Implement SkyParams
Diffstat (limited to 'src/to_clt/env.rs')
-rw-r--r--src/to_clt/env.rs14
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 {