Fixed weapon docs not including WeaponInfo

Also made some code cleanups in the weapon docs export code.
This commit is contained in:
penev92
2022-03-08 21:11:49 +02:00
committed by Matthias Mailänder
parent a73d710bec
commit c21bf31ebc
2 changed files with 17 additions and 14 deletions

View File

@@ -127,6 +127,11 @@ namespace OpenRA.GameRules
[FieldLoader.LoadUsing(nameof(LoadWarheads))]
public readonly List<IWarhead> Warheads = new List<IWarhead>();
/// <summary>
/// This constructor is used solely for documentation generation!
/// </summary>
public WeaponInfo() { }
public WeaponInfo(MiniYaml content)
{
// Resolve any weapon-level yaml inheritance or removals