update developer commentary
for weapon traits, crates and palettes clarify that you don't need to update the wiki page manually
This commit is contained in:
@@ -20,8 +20,11 @@ namespace OpenRA.Traits
|
||||
{
|
||||
[Desc("Defaults to the actor name.")]
|
||||
public readonly string Image = null;
|
||||
[Desc("custom palette name")]
|
||||
public readonly string Palette = null;
|
||||
[Desc("custom PlayerColorPalette: BaseName")]
|
||||
public readonly string PlayerPalette = "player";
|
||||
[Desc("Change the sprite image size.")]
|
||||
public readonly float Scale = 1f;
|
||||
|
||||
public virtual object Create(ActorInitializer init) { return new RenderSimple(init.self); }
|
||||
|
||||
@@ -8,15 +8,12 @@
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using OpenRA.FileFormats;
|
||||
|
||||
namespace OpenRA.Traits
|
||||
{
|
||||
public class FogInfo : TraitInfo<Fog>
|
||||
{
|
||||
/*
|
||||
* This tag trait will enable fog of war in ShroudRenderer.
|
||||
* Don't forget about HiddenUnderFog and FrozenUnderFog.
|
||||
*/
|
||||
}
|
||||
[Desc("This tag trait will enable fog of war in ShroudRenderer. Don't forget about HiddenUnderFog and FrozenUnderFog.")]
|
||||
public class FogInfo : TraitInfo<Fog> { }
|
||||
|
||||
public class Fog { }
|
||||
}
|
||||
@@ -13,10 +13,14 @@ using OpenRA.Graphics;
|
||||
|
||||
namespace OpenRA.Traits
|
||||
{
|
||||
[Desc("Add this to the Player actor definition.")]
|
||||
public class PlayerColorPaletteInfo : ITraitInfo
|
||||
{
|
||||
[Desc("The Name of the palette to base off.")]
|
||||
public readonly string BasePalette = null;
|
||||
[Desc("The prefix for the resulting player palettes")]
|
||||
public readonly string BaseName = "player";
|
||||
[Desc("Remap these indices to player colors.")]
|
||||
public readonly int[] RemapIndex = {};
|
||||
public readonly bool AllowModifiers = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user