Skip to content

Commit

Permalink
Doc: document changes to require and LoadScript
Browse files Browse the repository at this point in the history
  • Loading branch information
black-sliver committed Jan 3, 2024
1 parent c68e9e9 commit 8b2bc05
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/PACKS.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ The following interfaces are provided:

* `bool :LoadScript(luafilename)`: load and execute a lua script
* `require` can be used instead (since PopTracker 0.21.0)
* `require` behaves mostly like Lua require since 0.25.6
* `...` contains mod name for relative require since 0.25.6
* `bool :AddMemoryWatch(name,addr,len,callback,interal)`: add a memory watch for auto-tracking, see [AUTOTRACKING.md](AUTOTRACKING.md)
* `bool :RemoveMemoryWatch(name)`: remove memory watch by name, available since 0.11.0
* `bool :AddWatchForCode(name,code,callback)`: callback(code) will be called whenever an item changed state that canProvide(code). Only available in PopTracker, since 0.11.0, will return a reference (name) to the watch since 0.18.2. Use "*" to trigger for all codes since 0.25.5.
Expand Down

0 comments on commit 8b2bc05

Please sign in to comment.