From 1a0bb726e634c5e37f4729e2d932637382fbde69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sat, 21 Jun 2014 15:55:54 +0200 Subject: [PATCH] document for modders --- OpenRA.Mods.RA/Crate.cs | 5 ++++- OpenRA.Mods.RA/SupportPowers/ParatroopersPower.cs | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/OpenRA.Mods.RA/Crate.cs b/OpenRA.Mods.RA/Crate.cs index df94f6de89..cf45a6ef05 100644 --- a/OpenRA.Mods.RA/Crate.cs +++ b/OpenRA.Mods.RA/Crate.cs @@ -18,8 +18,11 @@ namespace OpenRA.Mods.RA { class CrateInfo : ITraitInfo, IOccupySpaceInfo, Requires { - public readonly int Lifetime = 5; // Seconds + [Desc("Seconds")] + public readonly int Lifetime = 5; + public readonly string[] TerrainTypes = { }; + public object Create(ActorInitializer init) { return new Crate(init, this); } } diff --git a/OpenRA.Mods.RA/SupportPowers/ParatroopersPower.cs b/OpenRA.Mods.RA/SupportPowers/ParatroopersPower.cs index 666e916881..8076e8f2b1 100644 --- a/OpenRA.Mods.RA/SupportPowers/ParatroopersPower.cs +++ b/OpenRA.Mods.RA/SupportPowers/ParatroopersPower.cs @@ -24,7 +24,8 @@ namespace OpenRA.Mods.RA [ActorReference] public string FlareType = "flare"; - public readonly int FlareTime = 25 * 60 * 2; // 2 minutes + [Desc("In game ticks. Default value equates to 2 minutes.")] + public readonly int FlareTime = 25 * 60 * 2; public override object Create(ActorInitializer init) { return new ParatroopersPower(init.self, this); } }