willox / auxtools

Rust library for low-level interfacing with BYOND's virtual machine. Includes a remote debugger for the BYOND DreamMaker language.
MIT License
27 stars 32 forks source link

Added some turf helpers to Value, plus access to world. #7

Closed Putnam3145 closed 3 years ago

Putnam3145 commented 3 years ago

As title:

  1. Adds a Value::world(), analogous to Value::globals(). There may have been some reason for this not to be a thing, but it was in extools without issue, so.
  2. Adds a few ways to get a turf Value: turf_by_id_unchecked, turf_by_id, turf. The first doesn't do bounds checking, so is unsafe; the second does bounds checking on the ID; the third takes coordinates instead of a raw ID, and does its own bounds checking.