Move Palette traits to their own directory.
Also adds missing TraitLocation definitions.
This commit is contained in:
@@ -15,8 +15,8 @@ using System.IO;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Mods.Cnc.SpriteLoaders;
|
using OpenRA.Mods.Cnc.SpriteLoaders;
|
||||||
|
using OpenRA.Mods.Common.Traits;
|
||||||
using OpenRA.Primitives;
|
using OpenRA.Primitives;
|
||||||
using OpenRA.Traits;
|
|
||||||
|
|
||||||
namespace OpenRA.Mods.Cnc.UtilityCommands
|
namespace OpenRA.Mods.Cnc.UtilityCommands
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
*/
|
*/
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Primitives;
|
using OpenRA.Primitives;
|
||||||
@@ -11,9 +11,11 @@
|
|||||||
|
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Primitives;
|
using OpenRA.Primitives;
|
||||||
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Traits
|
namespace OpenRA.Mods.Common.Traits
|
||||||
{
|
{
|
||||||
|
[TraitLocation(SystemActors.World | SystemActors.EditorWorld)]
|
||||||
[Desc("Add this to the World actor definition.")]
|
[Desc("Add this to the World actor definition.")]
|
||||||
public class FixedColorPaletteInfo : TraitInfo
|
public class FixedColorPaletteInfo : TraitInfo
|
||||||
{
|
{
|
||||||
@@ -15,7 +15,7 @@ using OpenRA.Graphics;
|
|||||||
using OpenRA.Primitives;
|
using OpenRA.Primitives;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Mods.Common
|
namespace OpenRA.Mods.Common.Traits
|
||||||
{
|
{
|
||||||
[TraitLocation(SystemActors.World | SystemActors.EditorWorld)]
|
[TraitLocation(SystemActors.World | SystemActors.EditorWorld)]
|
||||||
[Desc("Define a palette by swapping palette indices.")]
|
[Desc("Define a palette by swapping palette indices.")]
|
||||||
@@ -14,8 +14,9 @@ using OpenRA.Graphics;
|
|||||||
using OpenRA.Primitives;
|
using OpenRA.Primitives;
|
||||||
using OpenRA.Traits;
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Mods.Common
|
namespace OpenRA.Mods.Common.Traits
|
||||||
{
|
{
|
||||||
|
[TraitLocation(SystemActors.World | SystemActors.EditorWorld)]
|
||||||
[Desc("Define a player palette by swapping palette indices.")]
|
[Desc("Define a player palette by swapping palette indices.")]
|
||||||
public class IndexedPlayerPaletteInfo : TraitInfo, IRulesetLoaded
|
public class IndexedPlayerPaletteInfo : TraitInfo, IRulesetLoaded
|
||||||
{
|
{
|
||||||
@@ -18,6 +18,7 @@ using OpenRA.Traits;
|
|||||||
|
|
||||||
namespace OpenRA.Mods.Common.Traits
|
namespace OpenRA.Mods.Common.Traits
|
||||||
{
|
{
|
||||||
|
[TraitLocation(SystemActors.World | SystemActors.EditorWorld)]
|
||||||
public class PaletteFromEmbeddedSpritePaletteInfo : TraitInfo, IProvidesCursorPaletteInfo
|
public class PaletteFromEmbeddedSpritePaletteInfo : TraitInfo, IProvidesCursorPaletteInfo
|
||||||
{
|
{
|
||||||
[PaletteDefinition]
|
[PaletteDefinition]
|
||||||
@@ -11,8 +11,9 @@
|
|||||||
|
|
||||||
using OpenRA.Graphics;
|
using OpenRA.Graphics;
|
||||||
using OpenRA.Primitives;
|
using OpenRA.Primitives;
|
||||||
|
using OpenRA.Traits;
|
||||||
|
|
||||||
namespace OpenRA.Traits
|
namespace OpenRA.Mods.Common.Traits
|
||||||
{
|
{
|
||||||
[TraitLocation(SystemActors.World | SystemActors.EditorWorld)]
|
[TraitLocation(SystemActors.World | SystemActors.EditorWorld)]
|
||||||
[Desc("Add this to the World actor definition.")]
|
[Desc("Add this to the World actor definition.")]
|
||||||
Reference in New Issue
Block a user