From 9d219004f452e81ffab56b679cbeccd0bd032753 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 3 Oct 2024 18:04:52 -0700 Subject: [PATCH] Terrain --- src/runner/instance.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/runner/instance.rs b/src/runner/instance.rs index b48db73..c81d874 100644 --- a/src/runner/instance.rs +++ b/src/runner/instance.rs @@ -238,3 +238,15 @@ impl Script{ Ok((get_full_name(&context.dom,instance),source)) } } + +class!(Terrain); +class_composition!(Terrain,(Instance,Terrain)); +impl Terrain{ + fn composition_add_fields<'lua,T:Referent,F:mlua::UserDataFields<'lua,T>>(fields:&mut F){ + } + fn composition_add_methods<'lua,T,M:mlua::UserDataMethods<'lua,T>>(methods:&mut M){ + methods.add_method("FillBlock",|lua,this,_:(super::cframe::CFrame,Vector3,super::r#enum::Enum)| + Ok(())//Ok(mlua::Value::Nil) + ) + } +}