Function Byond_WriteVarByStrId

Source
pub unsafe extern "C-unwind" fn Byond_WriteVarByStrId(
    loc: *const CByondValue,
    varname: u4c,
    val: *const CByondValue,
) -> bool
Expand description

Writes 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
  • val - New value

§Returns

True on success