36 lines
719 B
C#
36 lines
719 B
C#
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(float2 location, int palette)
|
|
{
|
|
if (refineryRange == null)
|
|
refineryRange = UnitSheetBuilder.AddUnit("proc");
|
|
|
|
this.renderLocation = location;
|
|
this.palette = palette;
|
|
}
|
|
|
|
int GetFrame() { return 1; }
|
|
|
|
public override Sprite[] CurrentImages
|
|
{
|
|
get
|
|
{
|
|
return new Sprite[] { UnitSheetBuilder.sprites[refineryRange.Value.Start + GetFrame()] };
|
|
}
|
|
}
|
|
|
|
public override void Tick(double t) { }
|
|
}
|
|
}
|