forked from mirrors/0ad
3ff65b451f
This was SVN commit r23991.
15 lines
299 B
JavaScript
15 lines
299 B
JavaScript
/**
|
|
* Initialize the page.
|
|
*
|
|
* @param {Object} data - Parameters passed from the code that calls this page into existence.
|
|
*/
|
|
function init(data = {})
|
|
{
|
|
g_Page = new StructreePage(data);
|
|
|
|
if (data.civ)
|
|
g_Page.civSelection.selectCiv(data.civ);
|
|
else
|
|
g_Page.civSelection.selectFirstCiv();
|
|
}
|