
The whitespace-fixing script seems to be slightly different depending on the platform. Even though it produces no effect in the CI, it made these changes locally on my Mac. I'm committing them now so as to avoid unrelated files being changed in other pull requests.
36 lines
681 B
Lua
36 lines
681 B
Lua
--! #textdomain wesnoth
|
|
|
|
return {
|
|
|
|
init = function(ai)
|
|
|
|
if (not wesnoth.game_config.debug) then
|
|
wesnoth.interface.add_chat_message("LuaAI Error", "The LuaAI debug library is only available in debug mode")
|
|
return
|
|
end
|
|
|
|
ai.debug = {}
|
|
|
|
function ai.debug.get_dst_src()
|
|
ai.recalculate_move_maps()
|
|
return ai.get_dst_src()
|
|
end
|
|
|
|
function ai.debug.get_src_dst()
|
|
ai.recalculate_move_maps()
|
|
return ai.get_src_dst()
|
|
end
|
|
|
|
function ai.debug.get_enemy_dst_src()
|
|
ai.recalculate_enemy_move_maps()
|
|
return ai.get_enemy_dst_src()
|
|
end
|
|
|
|
function ai.debug.get_enemy_src_dst()
|
|
ai.recalculate_enemy_move_maps()
|
|
return ai.get_enemy_src_dst()
|
|
end
|
|
|
|
end
|
|
|
|
}
|