Home - ajul/shipbashing GitHub Wiki
Component
Consist of a fixed-height cap and a variable-height base (e.g. a barbette).
Types
- Primary battery.
- Secondary battery.
- Tertiary battery.
- Torpedo launcher.
- Mainmast.
- Mizzenmast.
- Crane.
- Aircraft.
- Radar.
- Primary battery director.
- Secondary battery director.
- Boat.
Properties
- Total length (float). The amount of horizontal space the component takes up if not superfiring.
- Base length (float). The amount of horizontal space the component takes up if superfiring. Also represents the horizontal space taken up in the hull.
- Superfiring clearance (float). How much higher this item has to be than the component in front when superfiring.
- Cap height (float). How high the cap extends above the top of the base.
- Allow top mount.
- Allow side mount.
Primary placement
Up to two sets of placements: one centerline, and perhaps one side.
The size of a placement depends on the size of the component placed there.
- Type. Determines what sort of component will be placed here.
- Priority (int). Lower numbers will be activated first. Ties are broken randomly.
- Facing (fore/aft).
- Superfiring (bool). Determines whether the component is looking over the component in front of it. This may increase its height (by extending the base) and/or cause it to take up less horizontal space.
- Superstructure level. Assumed to be continuous with the item in front or back. Gaps can be made using "spacer" placements.
- Allow side placements (bool). Side placements take superfiring into account.
- Minimum length.
- Flexible length. Any excess remaining length will be distributed among all active placements with a flexible length.
- Secondary placement(s).
Secondary placement
- Type.
- Location.
- Facing.