Add descriptions to CargoInfo members.
This commit is contained in:
@@ -21,10 +21,19 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
[Desc("This actor can transport Passenger actors.")]
|
[Desc("This actor can transport Passenger actors.")]
|
||||||
public class CargoInfo : ITraitInfo, Requires<IOccupySpaceInfo>
|
public class CargoInfo : ITraitInfo, Requires<IOccupySpaceInfo>
|
||||||
{
|
{
|
||||||
|
[Desc("The maximum sum of Passenger.Weight that this actor can support.")]
|
||||||
public readonly int MaxWeight = 0;
|
public readonly int MaxWeight = 0;
|
||||||
|
|
||||||
|
[Desc("Number of pips to display when this actor is selected.")]
|
||||||
public readonly int PipCount = 0;
|
public readonly int PipCount = 0;
|
||||||
|
|
||||||
|
[Desc("`Passenger.CargoType`s that can be loaded into this actor.")]
|
||||||
public readonly string[] Types = { };
|
public readonly string[] Types = { };
|
||||||
|
|
||||||
|
[Desc("A list of actor types that are initially spawned into this actor.")]
|
||||||
public readonly string[] InitialUnits = { };
|
public readonly string[] InitialUnits = { };
|
||||||
|
|
||||||
|
[Desc("When this actor is sold should all of its passengers be unloaded?")]
|
||||||
public readonly bool EjectOnSell = true;
|
public readonly bool EjectOnSell = true;
|
||||||
|
|
||||||
[Desc("Which direction the passenger will face (relative to the transport) when unloading.")]
|
[Desc("Which direction the passenger will face (relative to the transport) when unloading.")]
|
||||||
|
|||||||
Reference in New Issue
Block a user