t2-mapper/docs/base/@vl2/scripts.vl2/scripts/graphBuild.cs

40 lines
808 B
C#
Raw Normal View History

2025-09-11 23:48:23 +00:00
// offline graph building
$MAXNODECOUNT = 5000;
function makeJettableGraphOffline(%NAVorSPAWN)
{
if (%NAVorSPAWN $= "Spawn")
echo("--> Building Spawn Graph");
else
echo("--> Building Nav Graph");
// Inform what we're generating-
navGraph.setGenMode(%NAVorSPAWN);
// Upload ground and floor data-
navGraph::exteriorInspect();
navGraph::generateInterior();
// navGraph.makeGraph();
// navGraph.findBridges();
// navGraph.pushBridges();
navGraph.assemble();
navGraph.cullIslands();
navGraph.makeGraph();
navGraph.pushBridges();
navGraph.makeTables();
return false;
}
function doTablebuildOffline()
{
navGraph.prepLOS("0 0 0");
while(navGraph.makeLOS())
%percent++;
}