pub unsafe extern "C-unwind" fn Byond_ReadVarByStrId(
loc: *const CByondValue,
varname: u4c,
result: *mut CByondValue,
) -> bool
Expand description
Reads an object variable by the string ID of its var name. ID can be cached ahead of time for performance. Blocks if not on the main thread.
§Arguments
loc
- Object that owns the varvarname
- Var name as string IDresult
- Pointer to accept result
§Returns
True on success
Byond_GetStrId()