Modding/Part

From Cosmoteer Wiki
< Modding(Redirected from Modding/Part)
Jump to navigation Jump to search

What they are

Parts are what ships are made of. In game, you place them in Build Mode, and destroy them during combat.
In the code, each part is made of variables and components.

Example

Part : <../base_part_terran.rules>/Part
{
	NameKey = "Parts/ThrusterBoost"
	IconNameKey = "Parts/ThrusterBoostIcon"
	ID = cosmoteer.thruster_boost // Part IDs must always be in the form of "author_name.part_name". If making your own mod, do *not* use "cosmoteer" as your author name, because it may conflict with future vanilla parts.
	EditorGroup = "Flight"
	DescriptionKey = "Parts/ThrusterBoostDesc"
	Resources
	[
		[steel, 56]
		[coil2, 10]
		[tristeel, 8]
	]
	TypeCategories = [thruster, uses_power]
	Size = [2, 5]
	
	// ...

	Components : ^/0/Components
	{
		IsOperational
		{	
			// ...
		}

		// ...

		Graphics
		{	
			// ...
		}
	}
}

((TBA))