Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/JujuAdams/snap into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
JujuAdams committed May 2, 2020
2 parents 575e0bc + 0b5e050 commit 87cd341
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<h1 align="center">SNAP: Struct N' Array Parser 2.0.0</h1>
<h1 align="center">SNAP: Struct N' Array Parser 2.1.0</h1>

<p align="center">Replacement for ds_map/ds_list-based JSON encoding/decoding</p>

Expand Down Expand Up @@ -36,10 +36,18 @@ Unpacks binary encoded struct/array data. An `[offset]` and total `[size]` for t

### snap_deep_copy(struct/array)

Returns a copy of the given `struct/array`, including a copy of any nested structs and arrays.

&nbsp;

### snap_difference(old, new)

Returns a data structure (itself made from structs/arrays) that describes the difference between the specified `old` and `new` struct/arrays.

&nbsp;

### snap_difference_apply(struct/array, differenceStruct)

Applies a difference delta structure created by `snap_difference()` to a struct/array.

**N.B.** Due to missing functionality in GMS2.3.0, array element and struct variable deletion is not fully functional. Instead, when an array element or struct variable is deleted, the value will be set to `undefined`.

0 comments on commit 87cd341

Please sign in to comment.