Dynamic space world generation and debris. (#15120)
* World generation (squash) * Test fixes. * command * o * Access cleanup. * Documentation touchups. * Use a prototype serializer for BiomeSelectionComponent * Struct enumerator in SimpleFloorPlanPopulatorSystem * Safety margins around PoissonDiskSampler, cookie acquisition methodologies * Struct enumerating PoissonDiskSampler; internal side * Struct enumerating PoissonDiskSampler: Finish it * Update WorldgenConfigSystem.cs awa --------- Co-authored-by: moonheart08 <moonheart08@users.noreply.github.com> Co-authored-by: 20kdc <asdd2808@gmail.com>
This commit is contained in:
@@ -57,6 +57,7 @@ public static class PoolManager
|
||||
(CCVars.ArrivalsShuttles.Name, "false"),
|
||||
(CCVars.EmergencyShuttleEnabled.Name, "false"),
|
||||
(CCVars.ProcgenPreload.Name, "false"),
|
||||
(CCVars.WorldgenEnabled.Name, "false"),
|
||||
// @formatter:on
|
||||
};
|
||||
|
||||
|
||||
@@ -74,6 +74,7 @@ public sealed class CargoTest
|
||||
|
||||
var protoIds = protoManager.EnumeratePrototypes<EntityPrototype>()
|
||||
.Where(p=>!p.Abstract)
|
||||
.Where(p => !p.Components.ContainsKey("MapGrid")) // Grids are not for sale.
|
||||
.Select(p => p.ID)
|
||||
.ToList();
|
||||
|
||||
|
||||
@@ -39,6 +39,7 @@ namespace Content.IntegrationTests.Tests
|
||||
var protoIds = prototypeMan
|
||||
.EnumeratePrototypes<EntityPrototype>()
|
||||
.Where(p=>!p.Abstract)
|
||||
.Where(p => !p.Components.ContainsKey("MapGrid")) // This will smash stuff otherwise.
|
||||
.Select(p => p.ID)
|
||||
.ToList();
|
||||
foreach (var protoId in protoIds)
|
||||
@@ -87,6 +88,7 @@ namespace Content.IntegrationTests.Tests
|
||||
var protoIds = prototypeMan
|
||||
.EnumeratePrototypes<EntityPrototype>()
|
||||
.Where(p=>!p.Abstract)
|
||||
.Where(p => !p.Components.ContainsKey("MapGrid")) // This will smash stuff otherwise.
|
||||
.Select(p => p.ID)
|
||||
.ToList();
|
||||
foreach (var protoId in protoIds)
|
||||
@@ -133,6 +135,7 @@ namespace Content.IntegrationTests.Tests
|
||||
var protoIds = prototypeMan
|
||||
.EnumeratePrototypes<EntityPrototype>()
|
||||
.Where(p => !p.Abstract)
|
||||
.Where(p => !p.Components.ContainsKey("MapGrid")) // This will smash stuff otherwise.
|
||||
.Select(p => p.ID)
|
||||
.ToList();
|
||||
|
||||
@@ -193,6 +196,10 @@ namespace Content.IntegrationTests.Tests
|
||||
"MapGrid",
|
||||
"StationData", // errors when removed mid-round
|
||||
"Actor", // We aren't testing actor components, those need their player session set.
|
||||
"BlobFloorPlanBuilder", // Implodes if unconfigured.
|
||||
"DebrisFeaturePlacerController", // Above.
|
||||
"LoadedChunk", // Worldgen chunk loading malding.
|
||||
"BiomeSelection", // Whaddya know, requires config.
|
||||
};
|
||||
|
||||
var testEntity = @"
|
||||
@@ -289,6 +296,10 @@ namespace Content.IntegrationTests.Tests
|
||||
"MapGrid",
|
||||
"StationData", // errors when deleted mid-round
|
||||
"Actor", // We aren't testing actor components, those need their player session set.
|
||||
"BlobFloorPlanBuilder", // Implodes if unconfigured.
|
||||
"DebrisFeaturePlacerController", // Above.
|
||||
"LoadedChunk", // Worldgen chunk loading malding.
|
||||
"BiomeSelection", // Whaddya know, requires config.
|
||||
};
|
||||
|
||||
var testEntity = @"
|
||||
|
||||
@@ -86,6 +86,10 @@ public sealed class PrototypeSaveTest
|
||||
if (prototype.Abstract)
|
||||
continue;
|
||||
|
||||
// Yea this test just doesn't work with this, it parents a grid to another grid and causes game logic to explode.
|
||||
if (prototype.Components.ContainsKey("MapGrid"))
|
||||
continue;
|
||||
|
||||
// Currently mobs and such can't be serialized, but they aren't flagged as serializable anyways.
|
||||
if (!prototype.MapSavable)
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user