Hello,
I am trying to create my first addon for KSP and I am having problems detecting which biomes my active vessel is currently. I've looked through the API calls, class calls and some old code on Github but none of it has really helped. I feel like I am on the right track but hung up. Below is a snippet of my code where I am getting ready to detect the current biome my vessel is in.
CelestialBody Body = new CelestialBody();
CBAttributeMapSO.MapAttribute[] biome = Body.BiomeMap.Attributes;
I feel like my Body variable is the right route or maybe my FlightGlobals.activevessel. As far as I can tell, biome above just gives me a list of the current CelestialBody biomes, is that correct?
In my code, I already have access to the Vessel class and the FlightGlobals class and my program is inheriting from : monobehavior.
Any help or hints you can give would be greatly appreciated. Thanks.