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