internal EngineCoreRef(MechComponentRef componentRef, EngineCoreDef coreDef) { CoreDef = coreDef; ComponentRef = componentRef; var text = componentRef.SimGameUID; if (string.IsNullOrEmpty(text)) { if (text != null) { componentRef.SetSimGameUID(null); } } else { var match = Regex.Match(text); if (match.Success) { UUID = string.IsNullOrEmpty(match.Groups[1].Value) ? null : match.Groups[1].Value; Properties = match.Groups[2].Value; } } if (HeatSinkDef == null) { HeatSinkDef = DataManager.GetDefaultEngineHeatSinkDef(); } }
internal HSQuery Query(EngineHeatSink type) { return(new HSQuery(this, type)); }
internal EngineCoreRef(EngineHeatSink heatSinkDef, EngineCoreDef coreDef) // only used for autofix, not fully supported { CoreDef = coreDef; HeatSinkDef = heatSinkDef; }
internal HSQuery(EngineCoreRef coreRef, EngineHeatSink heatSinkDef) { this.coreRef = coreRef; this.heatSinkDef = heatSinkDef; }