private void InitializeSuffixes() { AddSuffix("CURRENTBIOME", new kOS.Safe.Encapsulation.Suffixes.NoArgsSuffix <StringValue>(GetCurrentBiome, "Get Name of current Biome")); AddSuffix(new[] { "GETBIOME", "BIOMEAT" }, new kOS.Safe.Encapsulation.Suffixes.TwoArgsSuffix <StringValue, BodyTarget, GeoCoordinates>(GetBiomeAt, "Get Name of Biome of Body,GeoCoordinates")); AddSuffix("ELEVATION", new kOS.Safe.Encapsulation.Suffixes.TwoArgsSuffix <ScalarDoubleValue, BodyTarget, GeoCoordinates>(GetAltAtSuffix, "Get scanned altitude of Body,GeoCoordinates")); AddSuffix("COMPLETEDSCANS", new kOS.Safe.Encapsulation.Suffixes.TwoArgsSuffix <ListValue, BodyTarget, GeoCoordinates>(GetScans, "Returns the list of the completed scans of Body,GeoCoordinates")); AddSuffix("ALLSCANTYPES", new kOS.Safe.Encapsulation.Suffixes.NoArgsSuffix <ListValue>(GetScanNames, "Names of all scan types")); AddSuffix("ALLRESOURCES", new kOS.Safe.Encapsulation.Suffixes.NoArgsSuffix <ListValue>(GetResourceNames, "List of all activated resource in the current game")); AddSuffix("RESOURCEAT", new kOS.Safe.Encapsulation.Suffixes.VarArgsSuffix <ScalarDoubleValue, Structure>(GetResourceByName, "Returns the amount of a resource by its scan type: Body,GeoCoordinates,resourcename")); AddSuffix("SLOPE", new kOS.Safe.Encapsulation.Suffixes.TwoArgsSuffix <ScalarDoubleValue, BodyTarget, GeoCoordinates>(GetSlope, "Returns the most accurate slope of the location")); AddSuffix("GETCOVERAGE", new kOS.Safe.Encapsulation.Suffixes.TwoArgsSuffix <ScalarDoubleValue, BodyTarget, StringValue>(GetCoverage, "Returns completen percatage of a body,scantype")); AddSuffix("GETANOMALIES", new kOS.Safe.Encapsulation.Suffixes.OneArgsSuffix <ListValue, BodyTarget>(GetAnomalies, "Returns a list of waypoints to anomalies on the given body")); SCANWrapper = new SCANWrapper(); if (IsModInstalled("scansat")) { SCANWrapper.InitReflection(); } }
internal SCANWrapper() { instance = this; scansatinstalled = Addon.IsModInstalled("scansat"); }