moved PaletteType enum into HardwarePalette.cs
This commit is contained in:
@@ -3,12 +3,12 @@ using OpenRa.FileFormats;
|
|||||||
|
|
||||||
namespace OpenRa.Game.Graphics
|
namespace OpenRa.Game.Graphics
|
||||||
{
|
{
|
||||||
|
public enum PaletteType { Gold, Blue, Red, Orange, Teal, Salmon, Green, Gray, Shadow, Invuln, Chrome };
|
||||||
class HardwarePalette : Sheet
|
class HardwarePalette : Sheet
|
||||||
{
|
{
|
||||||
|
|
||||||
const int maxEntries = 16;
|
const int maxEntries = 16;
|
||||||
int allocated = 0;
|
int allocated = 0;
|
||||||
//Note: addPalette calls should match the ordering in PaletteType.cs
|
|
||||||
public HardwarePalette(Renderer renderer, Map map)
|
public HardwarePalette(Renderer renderer, Map map)
|
||||||
: base(renderer,new Size(256, maxEntries))
|
: base(renderer,new Size(256, maxEntries))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
|
|
||||||
namespace OpenRa.Game.Graphics
|
|
||||||
{
|
|
||||||
//Note: should match the ordering in HardwarePalette.cs
|
|
||||||
enum PaletteType { Gold, Blue, Red, Orange, Teal, Salmon, Green, Gray, Shadow, Invuln, Chrome };
|
|
||||||
}
|
|
||||||
@@ -92,7 +92,6 @@
|
|||||||
<Compile Include="GameRules\TechTree.cs" />
|
<Compile Include="GameRules\TechTree.cs" />
|
||||||
<Compile Include="GameRules\VoiceInfo.cs" />
|
<Compile Include="GameRules\VoiceInfo.cs" />
|
||||||
<Compile Include="Effects\IEffect.cs" />
|
<Compile Include="Effects\IEffect.cs" />
|
||||||
<Compile Include="Graphics\PaletteType.cs" />
|
|
||||||
<Compile Include="IOrderSource.cs" />
|
<Compile Include="IOrderSource.cs" />
|
||||||
<Compile Include="LocalOrderSource.cs" />
|
<Compile Include="LocalOrderSource.cs" />
|
||||||
<Compile Include="Effects\Missile.cs" />
|
<Compile Include="Effects\Missile.cs" />
|
||||||
|
|||||||
Reference in New Issue
Block a user