mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-08 07:34:27 +00:00

Made side proxies into a simple array. Added backward-compatible functions for accessing them.
11 lines
236 B
Lua
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
|