AllocateSheet() 공개 정적인 메소드

public static AllocateSheet ( SheetType type, int sheetSize ) : Sheet
type SheetType
sheetSize int
리턴 Sheet
예제 #1
0
        SheetBuilder CreateSheetBuilder()
        {
            var          allocated = false;
            Func <Sheet> allocate  = () =>
            {
                if (allocated)
                {
                    throw new SheetOverflowException("");
                }
                allocated = true;
                return(SheetBuilder.AllocateSheet());
            };

            return(new SheetBuilder(SheetType.DualIndexed, allocate));
        }
예제 #2
0
        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));
        }