示例#1
0
        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();
            }
        }
示例#2
0
 internal HSQuery Query(EngineHeatSink type)
 {
     return(new HSQuery(this, type));
 }
示例#3
0
 internal EngineCoreRef(EngineHeatSink heatSinkDef, EngineCoreDef coreDef) // only used for autofix, not fully supported
 {
     CoreDef     = coreDef;
     HeatSinkDef = heatSinkDef;
 }
示例#4
0
 internal HSQuery(EngineCoreRef coreRef, EngineHeatSink heatSinkDef)
 {
     this.coreRef     = coreRef;
     this.heatSinkDef = heatSinkDef;
 }