Allow SheetBuilder to be used from mod code.

This commit is contained in:
Paul Chote
2014-03-23 22:44:48 +13:00
parent b5c63175e2
commit 3f63eb4ec6

View File

@@ -42,10 +42,10 @@ namespace OpenRA.Graphics
return new Sheet(new Size(Renderer.SheetSize, Renderer.SheetSize));
}
internal SheetBuilder(SheetType t)
public SheetBuilder(SheetType t)
: this(t, AllocateSheet) {}
internal SheetBuilder(SheetType t, Func<Sheet> allocateSheet)
public SheetBuilder(SheetType t, Func<Sheet> allocateSheet)
{
channel = TextureChannel.Red;
type = t;