public static AllocateSheet ( SheetType type, int sheetSize ) : |
||
type | SheetType | |
sheetSize | int | |
return |
SheetBuilder CreateSheetBuilder() { var allocated = false; Func <Sheet> allocate = () => { if (allocated) { throw new SheetOverflowException(""); } allocated = true; return(SheetBuilder.AllocateSheet()); }; return(new SheetBuilder(SheetType.DualIndexed, allocate)); }
static SheetBuilder CreateSheetBuilder() { var allocated = false; Func <Sheet> allocate = () => { if (allocated) { throw new SheetOverflowException(""); } allocated = true; return(SheetBuilder.AllocateSheet(SheetType.Indexed, Game.Settings.Graphics.SheetSize)); }; return(new SheetBuilder(SheetType.Indexed, allocate)); }