Add get/set/index_get/index_set parameters to rhai_fn.
This commit is contained in:
@@ -24,7 +24,7 @@ mod map_functions {
|
||||
pub fn len(map: &mut Map) -> INT {
|
||||
map.len() as INT
|
||||
}
|
||||
#[rhai_fn(name = "get$len")]
|
||||
#[rhai_fn(get = "len")]
|
||||
pub fn len_prop(map: &mut Map) -> INT {
|
||||
len(map)
|
||||
}
|
||||
|
Reference in New Issue
Block a user