Function Byond_ReadVarByStrId

Source
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 var
  • varname - Var name as string ID
  • result - Pointer to accept result

§Returns

True on success Byond_GetStrId()