git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1203 993157c7-ee19-0410-b2c4-bb4e9862e678
This commit is contained in:
36
OpenRa.Game/Refinery.cs
Normal file
36
OpenRa.Game/Refinery.cs
Normal 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()] };
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user