コード例 #1
0
        public Cell(int depth, MPos position, MPos size, GridGeneratorInfo info, bool divideHorizontal = true)
        {
            Depth    = depth;
            Position = position;
            Size     = size;

            this.info             = info;
            this.divideHorizontal = divideHorizontal;
        }
コード例 #2
0
        public PieceCell(MPos position, MPos size, GridGeneratorInfo info, bool divideHorizontal = true)
        {
            Position = position;
            Size     = size;

            this.info             = info;
            this.divideHorizontal = divideHorizontal;

            PieceAvailable = size.X <= 2 * info.CellSize && size.Y <= 2 * info.CellSize;
        }
コード例 #3
0
        public GridGenerator(Random random, MapLoader loader, GridGeneratorInfo info) : base(random, loader)
        {
            this.info = info;

            road = new bool[Bounds.X, Bounds.Y];
        }