From e330986da5b69299bc3c7244e4e0d77e605e9079 Mon Sep 17 00:00:00 2001 From: Filip Tibell Date: Sat, 11 Mar 2023 10:26:33 +0100 Subject: [PATCH] Export new datatypes --- packages/lib-roblox/src/lib.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/lib-roblox/src/lib.rs b/packages/lib-roblox/src/lib.rs index 3ccd6e0..1c32e7f 100644 --- a/packages/lib-roblox/src/lib.rs +++ b/packages/lib-roblox/src/lib.rs @@ -17,8 +17,14 @@ where Ok(tab) } +#[rustfmt::skip] pub fn module(lua: &Lua) -> LuaResult { - let datatypes = vec![("Vector3", make_dt(lua, Vector3::make_dt_table)?)]; + let datatypes = vec![ + ("Vector2", make_dt(lua, Vector2::make_dt_table)?), + ("Vector2int16", make_dt(lua, Vector2int16::make_dt_table)?), + ("Vector3", make_dt(lua, Vector3::make_dt_table)?), + ("Vector3int16", make_dt(lua, Vector3int16::make_dt_table)?), + ]; let exports = lua.create_table()?; for (name, tab) in datatypes { exports.set(name, tab)?;