mirror of
https://github.com/lune-org/lune.git
synced 2025-01-05 19:09:10 +00:00
21 lines
481 B
Rust
21 lines
481 B
Rust
|
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(()),
|
||
|
);
|
||
|
}
|