moved PaletteType enum into HardwarePalette.cs

This commit is contained in:
Alli
2009-12-23 22:35:37 +13:00
parent 2a0623a601
commit 77f56405b8
3 changed files with 2 additions and 13 deletions

View File

@@ -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))
{ {

View File

@@ -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 };
}

View File

@@ -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" />