This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Editor] | |
| FontFamily = "Iosevka Term" | |
| FontSize = 14 | |
| Linespace = 3 | |
| ExtCmdline = false | |
| ExtPopupmenu = false | |
| ExtTabline = true | |
| DrawBorder = true | |
| IndentGuide = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Used for the gamelist-filtering. | |
| */ | |
| const g_MapSizes = prepareForDropdown(g_Settings && g_Settings.MapSizes); | |
| /** | |
| * Used for the gamelist-filtering. | |
| */ | |
| const g_MapTypes = prepareForDropdown(g_Settings && g_Settings.MapTypes); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Used for the gamelist-filtering. | |
| */ | |
| const g_MapSizes = prepareForDropdown(g_Settings && g_Settings.MapSizes); | |
| /** | |
| * Used for the gamelist-filtering. | |
| */ | |
| const g_MapTypes = prepareForDropdown(g_Settings && g_Settings.MapTypes); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const g_IsReplay = Engine.IsVisualReplay(); | |
| const g_CivData = loadCivData(false, true); | |
| const g_Ceasefire = prepareForDropdown(g_Settings && g_Settings.Ceasefire); | |
| const g_MapSizes = prepareForDropdown(g_Settings && g_Settings.MapSizes); | |
| const g_MapTypes = prepareForDropdown(g_Settings && g_Settings.MapTypes); | |
| const g_PopulationCapacities = prepareForDropdown(g_Settings && g_Settings.PopulationCapacities); | |
| const g_StartingResources = prepareForDropdown(g_Settings && g_Settings.StartingResources); | |
| const g_VictoryDurations = prepareForDropdown(g_Settings && g_Settings.VictoryDurations); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let playerPlacements = playerPlacementCircle(fractionToTiles(0.35)); | |
| let playerIDs = []; | |
| for (let i = 0; i < getNumPlayers(); ++i) | |
| playerIDs.push(i+1); | |
| playerPlacements[0] = playerIDs; | |
| placePlayerBases({ | |
| "PlayerPlacement": playerPlacements, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Engine.LoadLibrary("rmgen"); | |
| Engine.LoadLibrary("rmgen-common"); | |
| Engine.LoadLibrary("rmbiome"); | |
| setSelectedBiome(); | |
| const tMainTerrain = g_Terrains.mainTerrain; | |
| const tForestFloor1 = g_Terrains.forestFloor1; | |
| const tForestFloor2 = g_Terrains.forestFloor2; | |
| const tCliff = g_Terrains.cliff; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| g_Map.log("Creating stone mines"); | |
| createMines( | |
| [ | |
| [new SimpleObject(oStoneLarge, 1, 1, 0, 4, 0, 2 * Math.PI, 4)] | |
| ], | |
| avoidClasses(clForest, 1, clPlayer, 47, clRock, 22, clHill, 1), | |
| clRock | |
| ) | |
| ; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var stoneGroup = new SimpleGroup( | |
| new SimpleObject(oStoneLarge, 1, 1, 0, 4, 0, 0.25 * Math.PI, 4), true, clRock, [200, 200] | |
| ); | |
| stoneGroup.place(0, avoidClasses(clForest, 1, clPlayer, 20, clMetal, 10, clRock, 5, clHill, 1)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/libcore/option.rs:347:21 | |
| stack backtrace: | |
| 0: <unknown> | |
| 1: <unknown> | |
| 2: <unknown> | |
| 3: <unknown> | |
| 4: <unknown> | |
| 5: <unknown> | |
| 6: <unknown> | |
| 7: <unknown> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const appendInvalidationRow = row => { | |
| $('tbody') | |
| .first() | |
| .append(`<tr><th>Validation</th><td>${row}</td></tr>`); | |
| }; | |
| const setupBatchInvalidation = (rootUrl, bid) => { | |
| $.getJSON(`${rootUrl}api/batches/${bid}/invalidated`, data => { | |
| if (data.invalidated) { | |
| appendInvalidationRow('Invalid'); |