diff --git a/Source/ProceduralPart.cs b/Source/ProceduralPart.cs index 8c5428c..03625a0 100644 --- a/Source/ProceduralPart.cs +++ b/Source/ProceduralPart.cs @@ -690,5 +690,29 @@ public void UpdateTFInterops() } } #endregion + + /// + /// Called from RP-1 + /// + /// + /// + /// + /// + /// + public virtual bool Validate(out string validationError, out bool canBeResolved, out float costToResolve, out string techToResolve) + { + validationError = null; + canBeResolved = false; + costToResolve = 0; + techToResolve = null; + + if (density + 0.0001 < minDensity) + { + validationError = $"density needs to be {minDensity:0.###} or higher"; + return false; + } + + return true; + } } } \ No newline at end of file