26 lines
619 B
C#
26 lines
619 B
C#
namespace Decimation.Lib.Items
|
|
{
|
|
public abstract class DecimationPlaceableItem : DecimationItem
|
|
{
|
|
protected abstract int Tile { get; }
|
|
|
|
protected abstract void InitPlaceable();
|
|
|
|
protected sealed override void Init()
|
|
{
|
|
item.width = 12;
|
|
item.height = 12;
|
|
item.consumable = true;
|
|
item.useTime = 15;
|
|
item.useAnimation = 15;
|
|
item.useStyle = 1;
|
|
item.autoReuse = true;
|
|
item.useTurn = true;
|
|
|
|
|
|
InitPlaceable();
|
|
|
|
item.createTile = Tile;
|
|
}
|
|
}
|
|
} |