Crate meowtonin_byondapi_sys Copy item path Source CByondValue CByondXYZ NOCH NONE s1cMAX s1cMIN s2cMAX s2cMIN s4cMAX s4cMIN ByondValue_Clear ⚠ Fills a CByondValue struct with a null value. ByondValue_DecRef ⚠ Mark a reference as no longer in use by Byondapi
This can be used for temporary references to let them go immediately.
Blocks if not on the main thread. ByondValue_Equals ⚠ Compares two values for equality ByondValue_GetNum ⚠ Arguments ByondValue_GetRef ⚠ Arguments ByondValue_IncRef ⚠ Mark a reference as in use by Byondapi
This should be done for any temporary references returned from other calls, if they need to be saved awhile.
Blocks if not on the main thread. ByondValue_IsList ⚠ Arguments ByondValue_IsNull ⚠ Arguments ByondValue_IsNum ⚠ Arguments ByondValue_IsStr ⚠ Arguments ByondValue_IsTrue ⚠ Determines if a value is logically true or false ByondValue_SetNum ⚠ Fills a CByondValue struct with a floating point number. ByondValue_SetRef ⚠ Fills a CByondValue struct with a reference (object) type. Does not validate. ByondValue_SetStr ⚠ Creates a string and sets CByondValue to a temporary reference to that string.
Blocks if not on the main thread. If string creation fails, the struct is set to null. ByondValue_Type ⚠ Reads CByondVale’s 1-byte data type Byond_AddGetStrId ⚠ Returns a reference to an existing string ID or creates a new string ID with a temporary reference.
Blocks if not on the main thread. Byond_Block ⚠ Equivalent to calling block(x1,y1,z1, x2,y2,z2).
Blocks if not on the main thread. Byond_CallGlobalProc ⚠ Calls a global proc by name.
The proc call is treated as waitfor=0 and will return immediately on sleep.
Blocks if not on the main thread. Byond_CallGlobalProcByStrId ⚠ Calls a global proc by name, where the name is a string ID.
The proc call is treated as waitfor=0 and will return immediately on sleep.
Blocks if not on the main thread. Byond_CallProc ⚠ Calls an object proc by name.
The proc call is treated as waitfor=0 and will return immediately on sleep.
Blocks if not on the main thread. Byond_CallProcByStrId ⚠ Calls an object proc by name, where the name is a string ID.
The proc call is treated as waitfor=0 and will return immediately on sleep.
Blocks if not on the main thread. Byond_CreateList ⚠ Creates an empty list with a temporary reference. Equivalent to list().
Blocks if not on the main thread. Byond_GetDMBVersion ⚠ Gets the DMB version Byond_GetStrId ⚠ Returns a reference to an existing string ID, but does not create a new string ID.
Blocks if not on the main thread. Byond_GetVersion ⚠ Gets the current BYOND version Byond_LastError ⚠ Gets the last error from a failed call
The result is a static string that does not need to be freed. Byond_Length ⚠ Equivalent to calling length(value).
Blocks if not on the main thread. Byond_LocateIn ⚠ Equivalent to calling locate(type), or locate(type) in list.
Blocks if not on the main thread. Byond_LocateXYZ ⚠ Equivalent to calling locate(x,y,z)
Blocks if not on the main thread.
Result is null if coords are invalid. Byond_New ⚠ Equivalent to calling new type(…)
Blocks if not on the main thread. Byond_NewArglist ⚠ Equivalent to calling new type(arglist)
Blocks if not on the main thread. Byond_ReadList ⚠ Reads items from a list.
Blocks if not on the main thread. Byond_ReadListAssoc ⚠ Reads items as key,value pairs from an associative list, storing them sequentially as key1, value1, key2, value2, etc.
Blocks if not on the main thread. Byond_ReadListIndex ⚠ Reads an item from a list.
Blocks if not on the main thread. Byond_ReadPointer ⚠ Reads from a BYOND pointer
Blocks if not on the main thread. Byond_ReadVar ⚠ Reads an object variable by name.
Blocks if not on the main thread. Byond_ReadVarByStrId ⚠ 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. Byond_Refcount ⚠ Equivalent to calling refcount(value)
Blocks if not on the main thread. Byond_TestRef ⚠ Test if a reference-type CByondValue is valid
Blocks if not on the main thread. Byond_ThreadSync ⚠ Runs a function as a callback on the main thread (or right away if already there)
Blocking is optional. If already on the main thread, the block parameter is meaningless. Byond_ToString ⚠ Uses BYOND’s internals to represent a value as text
Blocks if not on the main thread. Byond_WriteList ⚠ Writes items to a list, in place of old contents.
Blocks if not on the main thread. Byond_WriteListIndex ⚠ Writes an item to a list.
Blocks if not on the main thread. Byond_WritePointer ⚠ Writes to a BYOND pointer
Blocks if not on the main thread. Byond_WriteVar ⚠ Writes an object variable by name.
Blocks if not on the main thread. Byond_WriteVarByStrId ⚠ 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. Byond_XYZ ⚠ Get x,y,z coords of an atom
Blocks if not on the main thread. get_byond_version ⚠ ByondCallback ByondValueType s1c s2c s4c s8c u1c u2c u4c u8c ByondValueData u4cOrPointer