lune/packages/lib-roblox/src/instance/data_model.rs

21 lines
481 B
Rust
Raw Normal View History

use mlua::prelude::*;
use crate::shared::classes::add_class_restricted_method;
use super::Instance;
pub fn add_methods<'lua, M: LuaUserDataMethods<'lua, Instance>>(methods: &mut M) {
add_class_restricted_method(
methods,
"DataModel",
"GetService",
|_, _, _service_name: String| Ok(()),
);
add_class_restricted_method(
methods,
"DataModel",
"FindService",
|_, _, _service_name: String| Ok(()),
);
}