git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1203 993157c7-ee19-0410-b2c4-bb4e9862e678

This commit is contained in:
chrisf
2007-07-13 15:14:07 +00:00
parent 8cc0e26b3e
commit c5bfcacc69
5 changed files with 52 additions and 11 deletions

36
OpenRa.Game/Refinery.cs Normal file
View File

@@ -0,0 +1,36 @@
using System;
using System.Collections.Generic;
using System.Text;
using OpenRa.FileFormats;
using BluntDirectX.Direct3D;
using System.Drawing;
namespace OpenRa.Game
{
class Refinery : Actor
{
static Range<int>? refineryRange = null;
public Refinery(PointF location, int palette)
{
if (refineryRange == null)
refineryRange = UnitSheetBuilder.AddUnit("proc");
this.location = location;
this.palette = palette;
}
int GetFrame()
{
return 1;//
}
public override SheetRectangle<Sheet>[] CurrentImages
{
get
{
return new SheetRectangle<Sheet>[] { UnitSheetBuilder.sprites[refineryRange.Value.Start + GetFrame()] };
}
}
}
}