Capture current mission, AI, map and administration development
Include the current addon, terrain integrations, tools, regression tests and recorded development evidence.
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
[WorkbenchPluginAttribute(name: "Build atlas model", wbModules: {"WorldEditor"})]
|
||||
class ERR_BuildAtlasModel : WorldEditorPlugin
|
||||
{
|
||||
override void Run() { Build(); }
|
||||
override void RunCommandline() { Build(); }
|
||||
protected void Build()
|
||||
{
|
||||
ResourceManager resources = Workbench.GetModule(ResourceManager);
|
||||
resources.RebuildResourceFiles({"Assets/Items/ERR_Atlas/ERR_Atlas.fbx", "Assets/Items/ERR_Atlas/ERR_AtlasLeaf.fbx"}, "PC");
|
||||
Print("ERR ATLAS MODEL BUILD COMPLETE");
|
||||
string probe;
|
||||
if (System.GetCLIParam("errHeldMapProbe", probe) && probe == "1")
|
||||
{
|
||||
WorldEditor editor = Workbench.GetModule(WorldEditor);
|
||||
editor.SwitchToGameMode(false, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -46,6 +46,11 @@ class ERR_ValidateWorldPlugin : WorldEditorPlugin
|
||||
}
|
||||
PrintFormat("ERR SITE CANDIDATE: position=%1 elevationRange=%2", bestPosition, bestSlope);
|
||||
string play;
|
||||
if (System.GetCLIParam("errPlay", play) && play == "1") editor.SwitchToGameMode();
|
||||
if (System.GetCLIParam("errPlay", play) && play == "1")
|
||||
{
|
||||
string heldMap;
|
||||
bool fullPaper = System.GetCLIParam("errHeldMapProbe", heldMap) && heldMap == "1";
|
||||
editor.SwitchToGameMode(false, fullPaper);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user