-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented harmony patch for issue #26. The patch adds a post to the…
… OverlapAllAsteroidSeedsInSphere method of the vanilla procedural world generator, to allow that method to also retreive plugin asteroids
- Loading branch information
8vogt
committed
May 3, 2021
1 parent
9497d0c
commit 38a8b60
Showing
6 changed files
with
64 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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
18 changes: 18 additions & 0 deletions
18
SEWorldGenPlugin/Patches/Patch_OverlapAllAsteroidSeedsInSphere.cs
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using HarmonyLib; | ||
using Sandbox.Game.World.Generator; | ||
using SEWorldGenPlugin.Generator.ProceduralGeneration; | ||
using SEWorldGenPlugin.Utilities; | ||
using System.Collections.Generic; | ||
using VRageMath; | ||
|
||
namespace SEWorldGenPlugin.Patches | ||
{ | ||
[HarmonyPatch(typeof(MyProceduralWorldGenerator), "OverlapAllAsteroidSeedsInSphere")] | ||
public static class Patch_OverlapAllAsteroidSeedsInSphere | ||
{ | ||
public static void Postfix(BoundingSphereD area, List<MyObjectSeed> list) | ||
{ | ||
MyProceduralGeneratorComponent.Static.GetCellSeedsInBounds(area, list); | ||
} | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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