Move crates option to rules.

This commit is contained in:
Paul Chote
2016-02-29 18:21:21 +00:00
parent aed8518e04
commit f44993e4f7
9 changed files with 21 additions and 13 deletions

View File

@@ -20,6 +20,12 @@ namespace OpenRA.Mods.Common.Traits
{
public class CrateSpawnerInfo : ITraitInfo
{
[Desc("Default value of the crates checkbox in the lobby.")]
public readonly bool Enabled = true;
[Desc("Prevent the crates state from being changed in the lobby.")]
public readonly bool Locked = false;
[Desc("Minimum number of crates.")]
public readonly int Minimum = 1;
@@ -42,14 +48,14 @@ namespace OpenRA.Mods.Common.Traits
public readonly int WaterChance = 20;
[ActorReference]
[Desc("Crate actors to drop")]
[Desc("Crate actors to drop.")]
public readonly string[] CrateActors = { "crate" };
[Desc("Chance of each crate actor spawning")]
[Desc("Chance of each crate actor spawning.")]
public readonly int[] CrateActorShares = { 10 };
[ActorReference]
[Desc("If a DeliveryAircraft: is specified, then this actor will deliver crates")]
[Desc("If a DeliveryAircraft: is specified, then this actor will deliver crates.")]
public readonly string DeliveryAircraft = null;
[Desc("Number of facings that the delivery aircraft may approach from.")]