native
decorator
Methods
decor_set_bool
This function sets metadata of type bool to specified entity.
function native.decorator.decor_set_bool(entity: int, property_name: string, value: bool): bool
decor_set_float
function native.decorator.decor_set_float(entity: int, property_name: string, value: float): bool
decor_set_int
Sets property to int.
function native.decorator.decor_set_int(entity: int, property_name: string, value: int): bool
_decor_set_uint8
function native.decorator._decor_set_uint8(entity: int, property_name: string, value: int): bool
decor_set_string
function native.decorator.decor_set_string(entity: int, property_name: string, value: string): bool
decor_get_bool
function native.decorator.decor_get_bool(entity: int, property_name: string): bool
decor_get_float
function native.decorator.decor_get_float(entity: int, property_name: string): float
decor_get_int
function native.decorator.decor_get_int(entity: int, property_name: string): int
_decor_get_uint8
function native.decorator._decor_get_uint8(entity: int, property_name: string): int
decor_exist_on
Returns whether or not the specified property is set for the entity.
function native.decorator.decor_exist_on(entity: int, property_name: string): bool
decor_remove
function native.decorator.decor_remove(entity: int, property_name: string): bool
decor_remove_all
function native.decorator.decor_remove_all(entity: int): bool
decor_register
function native.decorator.decor_register(property_name: string, type: int): void
_decor_register_2
function native.decorator._decor_register_2(property_name: string, type: int, p2: bool): void
decor_is_registered_as_type
type: see DECOR_REGISTER
function native.decorator.decor_is_registered_as_type(property_name: string, type: int): bool