-
-
Notifications
You must be signed in to change notification settings - Fork 88
API reference
As Project edited this page Jan 28, 2021
·
52 revisions
๐DungeonTemplateLibarary Unity Version's Api Reference Link is Here.
| Emoji | Meaning |
|---|---|
| โ | Included in v0.4.X. |
| ๐ | Random SEED can be specified. |
| ๐ก | Supports new standards. |
| โป๏ธ | Compatible with Unity. |
dtl::shape::CellularAutomatonMixIsland<shape_t>(loop_num, sea_value, land_value...).draw(matrix, width, height);| Value Name | Name | Image Color |
|---|---|---|
| sea_value | Sea | Blue |
| land_value... | (Biome) |
dtl::shape::CellularAutomatonIsland<shape_t>(land_value, sea_value, loop_num, probability).draw(matrix, width, height);| Value Name | Name | Image Color |
|---|---|---|
| empty_value | Sea | Blue |
| land_value | Land | Green |
dtl::shape::FractalLoopIsland<shape_t>(min_value, altitude, add_altitude).draw(matrix, width, height);| Height Value |
|---|
| min_value_ ~ (altitude+add_altitude) |
dtl::shape::FractalIsland<shape_t>(min_value, altitude, add_altitude).draw(matrix, width, height);| Height Value |
|---|
| min_value_ ~ (altitude+add_altitude) |
dtl::shape::DiamondSquareAverageIsland<shape_t>(min_value, altitude, add_altitude).draw(matrix, width, height);| Height Value |
|---|
| min_value_ ~ (altitude+add_altitude) |
dtl::shape::DiamondSquareAverageCornerIsland<shape_t>(min_value, altitude, add_altitude).draw(matrix, width, height);| Height Value |
|---|
| min_value_ ~ (altitude+add_altitude) |
dtl::shape::SimpleVoronoiIsland<shape_t>(voronoi_num, probability, land_value, sea_value).draw(matrix, width, height);| Value Name | Name | Image Color |
|---|---|---|
| sea_value | Sea | Blue |
| land_value | Land | Green |
dtl::shape::PerlinIsland<shape_t>(frequency, octaves, max_height, min_height).draw(matrix, width, height);| Height Value |
|---|
| min_height ~ max_height |
dtl::shape::PerlinLoopIsland<shape_t>(frequency, octaves, max_height, min_height).draw(matrix, width, height);| Height Value |
|---|
| min_height ~ max_height |
dtl::shape::PerlinSolitaryIsland<shape_t>(truncated_proportion_, mountain_proportion_, frequency, octaves, max_height, min_height).draw(matrix, width, height);| Height Value |
|---|
| min_height ~ max_height |
| Sample Value | Name | Image Color |
|---|---|---|
| 0 | Outside Wall | Blue |
| 1 | Inside Wall | White |
| 2 | Room | Green |
| 3 | Entrance | Black |
| 4 | Way | Yellow |
dtl::shape::SimpleRogueLike<shape_t>(room_value, road_value, division_min, division_rand, room_min_x, room_rand, room_min_y, room_rand).draw(matrix, width, height);| Value Name | Name | Image Color |
|---|---|---|
| default_value | Wall | Black |
| room_value | Empty | White |
| road_value | Empty | White |
dtl::shape::MazeDig<shape_t>(empty_value, wall_value).draw(matrix, width, height);| Value Name | Name | Image Color |
|---|---|---|
| wall_value | Wall | Blue |
| empty_value | Empty | White |
dtl::shape::MazeBar<shape_t>(empty_value, wall_value).draw(matrix, width, height);| Value Name | Name | Image Color |
|---|---|---|
| wall_value | Wall | Blue |
| empty_value | Empty | White |
dtl::shape::ClusteringMaze<shape_t>(road_value).draw(matrix, width, height);| Value Name | Name | Image Color |
|---|---|---|
| Wall | Blue | |
| road_value | Empty | White |
English ๐ฌ๐ง / ๆฅๆฌ่ช ๐ฏ๐ต
dtl::shape::Rect<shape_t>(rect_value).draw(matrix, width, height);| Value Name | Name | Image Color |
|---|---|---|
| rect_value | Rect | Black |
dtl::shape::Border<shape_t>(border_value).draw(matrix, width, height);| Value Name | Name | Image Color |
|---|---|---|
| default_value | Empty | White |
| border_value | Border | Black |
dtl::shape::BorderOdd<shape_t>(border_value).draw(matrix, width, height);| Value Name | Name | Image Color |
|---|---|---|
| default_value | Empty | White |
| border_value | Border | Black |
dtl::shape::PointGrid<shape_t>(point_grid_value).draw(matrix, width, height);| Value Name | Name | Image Color |
|---|---|---|
| default_value | Empty | White |
| point_grid_value | PointGrid | Black |
dtl::shape::PointGridWithBorder<shape_t>(point_grid_value, border_value).draw(matrix, width, height);| Value Name | Name | Image Color |
|---|---|---|
| default_value | Empty | White |
| point_grid_value | PointGrid | Black |
| border_value | Border | Black |
dtl::shape::PointGridAndSomeBlocksWithBorder<shape_t>(point_grid_value, border_value, block_value).draw(matrix, width, height);| Value Name | Name | Image Color |
|---|---|---|
| default_value | Empty | White |
| point_grid_value | PointGrid | Black |
| border_value | Border | Black |
| block_value | Block | Red |
dtl::shape::WhiteNoise<shape_t>(noise_value).draw(matrix, width, height);| Value Name | Name | Image Color |
|---|---|---|
| default_value | Empty | White |
| noise_value | Noise | Black |
dtl::shape::RandomRect<shape_t>(noise_value, probability).draw(matrix, width, height);| Value Name | Name | Image Color |
|---|---|---|
| default_value | Empty | White |
| noise_value | Noise | Black |
dtl::shape::RandomVoronoi<shape_t>(voronoi_num, probability, true_value, false_value).draw(matrix, width, height);| Value Name | Name | Image Color |
|---|---|---|
| false_value | FALSE | White |
| true_value | TRUE | Black |
dtl::shape::AscendingOrder<shape_t>(start_value).draw(matrix, width, height);| Value Name | Name | Image Color |
|---|---|---|
| start_value | Start Value | Black |
| End Value | White |
dtl::shape::AscendingOrder2<shape_t>(start_value).draw(matrix, width, height);| Value Name | Name | Image Color |
|---|---|---|
| start_value | Start Value | Black |
| End Value | White |
dtl::shape::SimplePyramid<shape_t>(max_value, min_value).draw(matrix, width, height);| Value Name | Name | Image Color |
|---|---|---|
| max_value | Max Value | White |
| min_value | Min Value | Black |
dtl::shape::SimpleTruncatedSquarePyramid<shape_t>(truncated_value, max_value, min_value).draw(matrix, width, height);| Value Name | Name | Image Color |
|---|---|---|
| max_value | Max Value | White |
| min_value | Min Value | Black |
dtl::shape::StarLine<shape_t>(draw_value, x, y, r, angle).draw(matrix, width, height);| Value Name | Name | Image Color |
|---|---|---|
| White | ||
| draw_value | Draw Value | Blue |
| Sample Value | Name | Image Color |
|---|---|---|
| 0 | Empty | Green |
| 1 | White | White |
| 2 | Black | Black |
| Sample Value | Name | Image Color |
|---|---|---|
| 0 | Empty | Yellow |
| (1~) | (Type) | Black |
| Sample Value | Name | Image Color |
|---|---|---|
| 0 | Empty | Yellow |
| (1~) | (Type) | Black |
| Sample Value | Name |
|---|---|
| 0 | Empty |
| 1 | White King |
| 2 | Black King |
| 3 | White Queen |
| 4 | Black Queen |
| 5 | White Bishop |
| 6 | Black Bishop |
| 7 | White Knight |
| 8 | Black Knight |
| 9 | White Rook |
| 10 | Black Rook |
| 11 | White Pawn |
| 12 | Black Pawn |
dtl::find::GetLargestRectArea<shape_t>(find_value).draw(matrix, width, height);| Value Name | Name | Image Color |
|---|---|---|
| find_value | Find | Gray |
| LargestRectArea | Black |
dtl::retouch::Bucket<shape_t>(fill_value, start_x, start_y).draw(matrix, width, height);Copyright (c) 2018-2021 As Project.
Distributed under the Boost Software License, Version 1.0.(See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)











































