Function Byond_WriteVar

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

Writes an object variable by name. Blocks if not on the main thread.

§Arguments

  • loc - Object that owns the var
  • varname - Var name as null-terminated string
  • val - New value

§Returns

True on success