wesnoth/data/lua/compatibility-1.8.lua
Guillaume Melquiond 72f9514746 Removed wesnoth.get_side* functions from the engine.
Made side proxies into a simple array.

Added backward-compatible functions for accessing them.
2010-07-18 16:12:35 +00:00

11 lines
236 B
Lua

-- This file provides an implementation of all the Lua functions removed
-- from the engine between 1.8 and 1.10.
function wesnoth.get_side(i)
return wesnoth.sides[i]
end
function wesnoth.get_side_count(i)
return #wesnoth.sides
end