document for modders
This commit is contained in:
@@ -18,8 +18,11 @@ namespace OpenRA.Mods.RA
|
|||||||
{
|
{
|
||||||
class CrateInfo : ITraitInfo, IOccupySpaceInfo, Requires<RenderSpritesInfo>
|
class CrateInfo : ITraitInfo, IOccupySpaceInfo, Requires<RenderSpritesInfo>
|
||||||
{
|
{
|
||||||
public readonly int Lifetime = 5; // Seconds
|
[Desc("Seconds")]
|
||||||
|
public readonly int Lifetime = 5;
|
||||||
|
|
||||||
public readonly string[] TerrainTypes = { };
|
public readonly string[] TerrainTypes = { };
|
||||||
|
|
||||||
public object Create(ActorInitializer init) { return new Crate(init, this); }
|
public object Create(ActorInitializer init) { return new Crate(init, this); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,8 @@ namespace OpenRA.Mods.RA
|
|||||||
[ActorReference]
|
[ActorReference]
|
||||||
public string FlareType = "flare";
|
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); }
|
public override object Create(ActorInitializer init) { return new ParatroopersPower(init.self, this); }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user