Beispiel #1
0
    public void BuildDungeon(bool updateCamera)
    {
        DungeonBuilder builder = new DungeonBuilder();

        builder.BeginDungeon();

        builder.SetSize(sizeX, sizeY);
        builder.SetGenerator(new DungeonGeneratorEmpty());
        builder.SetRoomDecorator(roomDecorator);

        builder.Build();

        DungeonMap dungeon = builder.GetDungeon();

        SetDungeon(dungeon, updateCamera);
    }