mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Made asteroid belts support the proc gen module
This commit is contained in:
parent
4396690ebd
commit
32b6e9d75e
@ -59,6 +59,8 @@ namespace NewHorizons.Builder.Body
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var asteroidConfig = new PlanetConfig(config);
|
||||||
|
if (belt.ProcGen != null) asteroidConfig.ProcGen = belt.ProcGen;
|
||||||
var asteroid = new NewHorizonsBody(new PlanetConfig(config), assets, uniqueName);
|
var asteroid = new NewHorizonsBody(new PlanetConfig(config), assets, uniqueName);
|
||||||
Main.NextPassBodies.Add(asteroid);
|
Main.NextPassBodies.Add(asteroid);
|
||||||
}
|
}
|
||||||
|
|||||||
1
NewHorizons/External/AsteroidBeltModule.cs
vendored
1
NewHorizons/External/AsteroidBeltModule.cs
vendored
@ -13,5 +13,6 @@ namespace NewHorizons.External
|
|||||||
public float Inclination { get; set; }
|
public float Inclination { get; set; }
|
||||||
public float LongitudeOfAscendingNode { get; set; }
|
public float LongitudeOfAscendingNode { get; set; }
|
||||||
public int RandomSeed { get; set; }
|
public int RandomSeed { get; set; }
|
||||||
|
public ProcGenModule ProcGen { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user