Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add functions for transferring map locations to and from Lua stack
This also changes nearly all API functions taking locations to use the new functions. As a result, these functions can now accept their location arguments in any of three formats: - An array of two integers - A table with x and y keys - Two separate, consecutive integer arguments Functions that return locations mostly still use whatever format they used before. This is because changing return values is a more compatibility-breaking change. This temporarily breaks compatibiliy for the following AI functions: - ai.get_targets() - ai.get_avoid() - ai.get_attacks()
- Loading branch information
1 parent
b311135
commit a84500f
Showing
5 changed files
with
335 additions
and
270 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.