Skip to content

Commit

Permalink
1.2.0 [release]
Browse files Browse the repository at this point in the history
  • Loading branch information
Y0SH1M4S73R committed Aug 21, 2022
1 parent 595f957 commit d358043
Show file tree
Hide file tree
Showing 5 changed files with 299 additions and 37 deletions.
8 changes: 8 additions & 0 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ Equivalent to DM's `datum.procName(...)`

This function is used to evaluate the truthiness of a DM var. The lua statement `if datum:is_null() then` is equivalent to the DM statement `if(datum)`.

### datum.vars

Returns a userdatum that allows you to access and modifiy the vars of a DM datum by index. `datum.vars.foo` is equivalent to `datum:get_var("foo")`, while `datum.vars.foo = bar` is equivalent to `datum:set_var("foo", bar)`

---

## Lists
Expand Down Expand Up @@ -66,6 +70,10 @@ Will extract only values of type `type_path`.

A similar truthiness test to [`datum:is_null()`](#datumisnull). This function only has the possibility of returning `false` for lists that are inherently attached to a datum (`vars`, `contents`, `overlays`, `underlays`, `vis_contents`, and `vis_locs`).

### list.entries

Returns a userdatum that allows you to access and modifiy the entries of the list by index. `list.entries.foo` is equivalent to `list:get("foo")`, while `list.entries.foo = bar` is equivalent to `list:set("foo", bar)`

---

## The dm table
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [1.2.0]

### Changed

- Citing compatibility concerns, the `__index` and `__newindex` metamethods for datums and lists have been moved behind a `vars` field for datums and an `entries` field for lists.

## [1.1.1]

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "auxlua"
version = "1.1.1"
version = "1.2.0"
authors = ["Y0SH1M4S73R <[email protected]>"]
edition = "2021"

Expand Down
Loading

0 comments on commit d358043

Please sign in to comment.