Follow-up Comment #14, patch #1432 (project wesnoth): committed redesigned code in r41324-r41327
see http://svn.gna.org/viewcvs/wesnoth/trunk/data/ai/scenarios/scenario-lua-ai.cfg?rev=41326&view=auto for the example usage 'action' functions are injected to the 'ai' object by c++ code, and have a nice and clean interface, without any need for wrappers. wesnoth.require is used to return a table containing the init function which adds 'wesnoth lua ai standard library' functions to the ai all functions which come from 'wesnoth lua ai core' will start with an "_" to avoid any name clashes with UMC functions (e.g. I might expand ai library of functions independently of UMC) 'method=' will be done, too, a bit later. _______________________________________________________ Reply to this item at: <http://gna.org/patch/?1432> _______________________________________________ Message sent via/by Gna! http://gna.org/ _______________________________________________ Wesnoth-bugs mailing list [email protected] https://mail.gna.org/listinfo/wesnoth-bugs
