Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor game_lua_kernel not to use resources:: for gamestate
This commit changes the majority of the wesnoth callback functions for the game lua kernel to be private methods of the game lua kernel. The game lua kernel is given direct access, via it's ctor, to references of many of the things provided by resources. The call back functions are modified to access these private reference variables instead of resources, and they are added to the scripting environment using the lua cpp function mechanism. This greatly improves encapsulation and will eventually lead to eliminating the resources pointers from the game lua kernel entirely.
- Loading branch information
Showing
5 changed files
with
345 additions
and
232 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
Oops, something went wrong.