#pragma once #include "CoreMinimal.h" class UWorld; namespace Descent::World { /** * `Descent.World.Slice` (DESIGN_UE.md section 9.3): writes Saved/Shots/.png, a map of the world cut by a * plane over the claim box. Rock white, water black, rock carved away grey, ore veins in their ore colours, carrier * route axes red. Axis is 'X', 'Y' or 'Z' (the plane is Axis = Coord). Plan views (Z) have +X up and +Y right; * sections have the horizontal axis to the right and +Z up (section Y: X to the right; section X: Y to the right). */ THEDESCENT_API bool WriteSlicePng(UWorld* World, TCHAR Axis, double CoordM, const FString& Stem, double MetresPerPixel, FString& OutPathOrError); /** The ore colour used in slices (sRGB). */ THEDESCENT_API FColor SliceOreColor(int32 OreType); }