Closed MoltonMontro closed 7 months ago
@SDGNelson RTD is building again (I think GitHub had a temporary outage). Check my first comment for the changes -- I've bolded the docs with the most notable ones.
Opened the PR expecting to still need to investigate why the builds weren't working. Glad that it resolved itself!
Good idea trying a few things out in different files for comparisons.
=
in property descriptions might be confusing to newcomers, perhaps suggesting that =
should be included. Considering that some types have links (e.g., GUID) maybe we could add a types list and link to them? Then each part of the title would be easy to quickly read each part like Property Name Type Default Value
? ID uint16 0
@SDGNelson Done (x5). I've updated all the previous docs + added new ones. Here's the list:
Main exception is for Intro/GunAsset, which now more closely match the previous revision. A single table for all properties, with a separate section for property descriptions. These docs are exceptionally lengthy. For one of them, I moved Unity Setup info back to the top, and I agree that it seems better than having it below.
SightAsset is a good doc to view. It has three tables: Properties, DistanceMarker Dictionary, and ESide Enumeration. We discussed having docs for enums used by multiple classes, but maybe it should be for any with their own file? In this case, ELightingVision would have a doc, but ESide wouldn't.
Some thoughts about how we describe defaults and data types.
I've added C# Built-in Types. We could create a doc per built-in type, but I don't believe it’s necessary.
Some "custom" data types are located in Data File Format. Any thoughts on moving Color, Flag, and Vector3 into their own docs instead?
If we plan to doc every Enum, maybe those (+PlayerSpotLightConfig?) should be nested into a folder in the TOC/index.
You're fast!
Revisions made based on the previous feedback/ideas, including word-wrapping. I've added tables to more docs, to help visualize how this'll look. Note that our property descriptions are just Lv.4 headers – Godot and RTD both use custom styling for similar info instead.
GunAsset: unchanged.
Intro to Items: removed the table names/captions.
GripAsset: descriptions removed from table (only has one property) – they're now in a new "Property Descriptions" section.
TacticalAsset: same as above, with more properties.
MagazineAsset: same as above, with a lot of properties – including some with conditional default values. I think including the horizontal dividers might be helpful to break up the text. This table also includes links to property descriptions.
SightAsset: same as TacticalAsset, but includes a list of dictionaries. I am unsure how dictionaries should be documented with this tabular format. Maybe dictionaries would just have a second properties table, and second description section?
BarrelAsset: same as TacticalAsset, but horizontal dividers are between each full property description.