Esempio n. 1
0
        private static Dictionary <TechNode, string> GenerateContent()
        {
            Dictionary <TechNode, string> output = new Dictionary <TechNode, string> ();

            foreach (TechNode i in Enum.GetValues(typeof(TechNode)))
            {
                output.Add(i, TechNodeList.GetName(i));
            }

            content = output;
            return(output);
        }
Esempio n. 2
0
        private static string RegularEngineConfig(Engine engine)
        {
            return($@"
				PART
				{{
					name = {engine.EngineID}
					module = Part
					author = Generic Engines
					
					{engine.ModelConfig}

					TechRequired = {TechNodeList.GetID (engine.TechUnlockNode)}
					entryCost = {engine.EntryCost}
					cost = {engine.Cost}
					category = Engine
					subcategory = 0
					title = {engine.RealEngineName}
					manufacturer = {engine.EngineManufacturer}
					description = {engine.EngineDescription}
					attachRules = 1,1,1,{engine.CanAttachToEngine},0
					mass = {engine.Mass.Str ()}
					heatConductivity = 0.06
					skinInternalConductionMult = 4.0
					emissiveConstant = 0.8
					dragModelType = default
					maximum_drag = 0.2
					minimum_drag = 0.2
					angularDrag = 2
					crashTolerance = 12
					maxTemp = 2200 // = 3600
					bulkheadProfiles = size1
					tags = REP

					MODULE
					{{
						name = GenericEnginesPlumeScaleFixer
					}}

					{engine.HiddenObjectsConfig}
		
					MODULE
					{{
						name = ModuleEngines
						thrustVectorTransformName = thrustTransform
						exhaustDamage = True
						allowShutdown = {engine.AllowShutdown}
						useEngineResponseTime = {engine.UseEngineResponseTime}
						throttleLocked = {engine.LockThrottle}
						ignitionThreshold = 0.1
						minThrust = 0
						maxThrust = 610
						heatProduction = 200
						EngineType = {engine.EngineTypeConfig}
						useThrustCurve = {engine.UsesThrustCurve}
						exhaustDamageDistanceOffset = 0.79
		
						atmosphereCurve
						{{
							key = 0 345
							key = 1 204
							key = 6 0.001
						}}
						
						{engine.ThrustCurveConfig}
						
					}}

					{engine.GimbalConfig}

					{engine.AlternatorConfig}
	
					MODULE
					{{
						name = ModuleSurfaceFX
						thrustProviderModuleIndex = 0
						fxMax = 0.5
						maxDistance = 30
						falloff = 1.7
						thrustTransformName = thrustTransform
					}}
				}}

				@PART[{engine.EngineID}]:FOR[RealismOverhaul]
				{{
					%RSSROConfig = True
					%RP0conf = True
					
					%breakingForce = 250
					%breakingTorque = 250
					@maxTemp = 573.15
					%skinMaxTemp = 673.15
					%stageOffset = 1
					%childStageOffset = 1
					%stagingIcon = {engine.StagingIcon}
					@bulkheadProfiles = srf, size3
					@tags = Generic Engine
					{/*%engineType = {engine.EngineID}*/""}

					{engine.TankConfig}

					@MODULE[ModuleEngines*]
					{{
						%engineID = PrimaryMode
						@minThrust = {(engine.Thrust * engine.MinThrustPercent).Str ()}
						@maxThrust = {engine.Thrust.Str ()}
						@heatProduction = 180
						@useThrustCurve = {engine.UsesThrustCurve}
						%powerEffectName = {engine.GetPlumeInfo.PlumeID}

						{engine.PropellantConfig}

						@atmosphereCurve
						{{
							@key,0 = 0 {engine.VacIsp.Str ()}
							@key,1 = 1 {engine.AtmIsp.Str ()}
						}}

						{engine.ThrustCurveConfig}

					}}

					{engine.GetModuleEngineConfigs}

					!RESOURCE,*{{}}
				}}

				{engine.PlumeConfig}

				{engine.TestFlightConfig}
			"            );
        }