Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit potentially breaks any Lua AI customization, except for external Lua candidate actions. In practice, though, Lua aspects and goals will probably continue to work for the most part. - The ai table now has a read_only attribute. If true, functions that change the game state will be missing from the table. The read_only attribute is false in CA execution and in stages. It is true everywhere else. - Every Lua AI component now supports a [args] subtag. The contents of this tag are passed as parameters to the component code. This data is immutable; components cannot alter its contents. (External Lua candidate actions do not receive this data.) - Accessing the persistent engine data is now supported in all Lua components. When calling a Lua component, the Lua engine now passes two parameters: 1. The contents of the [args] tag in the specific component. 2. The contents of the [data] tag in the Lua [engine]. The return value of the [engine] code, if any, is stored for later used. It will be passed as the third parameter to any other Lua component. This data can be changed, but will not be saved. The default engine does not return any such data.
- Loading branch information
1 parent
56a9917
commit f8f5557
Showing
8 changed files
with
232 additions
and
126 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
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
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
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
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.