Differential D3097 Diff 13975 ps/trunk/binaries/data/mods/public/maps/random/rmgen-common/wall_builder.js
Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/maps/random/rmgen-common/wall_builder.js
Show All 18 Lines | function loadWallsetsFromCivData() | ||||
{ | { | ||||
let civInfo = g_CivData[civ]; | let civInfo = g_CivData[civ]; | ||||
if (!civInfo.WallSets) | if (!civInfo.WallSets) | ||||
continue; | continue; | ||||
for (let path of civInfo.WallSets) | for (let path of civInfo.WallSets) | ||||
{ | { | ||||
// File naming conventions: | // File naming conventions: | ||||
// - other/wallset_{style} | // - structures/wallset_{style} | ||||
// - structures/{civ}_wallset_{style} | // - structures/{civ}_wallset_{style} | ||||
let style = basename(path).split("_"); | let style = basename(path).split("_"); | ||||
style = style[0] == "wallset" ? style[1] : style[0] + "_" + style[2]; | style = style[0] == "wallset" ? style[1] : style[0] + "_" + style[2]; | ||||
if (!wallsets[style]) | if (!wallsets[style]) | ||||
wallsets[style] = loadWallset(Engine.GetTemplate(path), civ); | wallsets[style] = loadWallset(Engine.GetTemplate(path), civ); | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 892 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator