Skip to content

API reference

As Project edited this page Jan 28, 2021 · 52 revisions

API reference

๐Ÿ“œDungeonTemplateLibarary Unity Version's Api Reference Link is Here.

Meaning of emoji

Emoji Meaning
โœ… Included in v0.4.X.
๐Ÿ”€ Random SEED can be specified.
๐Ÿ’ก Supports new standards.
โ™ป๏ธ Compatible with Unity.

[Type] Terrain Generation๐ŸŒ

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)

ri

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

ri

dtl::shape::FractalLoopIsland<shape_t>(min_value, altitude, add_altitude).draw(matrix, width, height);
Height Value
min_value_ ~ (altitude+add_altitude)

FI1 fi3d

dtl::shape::FractalIsland<shape_t>(min_value, altitude, add_altitude).draw(matrix, width, height);
Height Value
min_value_ ~ (altitude+add_altitude)

chunk

dtl::shape::DiamondSquareAverageIsland<shape_t>(min_value, altitude, add_altitude).draw(matrix, width, height);
Height Value
min_value_ ~ (altitude+add_altitude)

sdsai dsai

dtl::shape::DiamondSquareAverageCornerIsland<shape_t>(min_value, altitude, add_altitude).draw(matrix, width, height);
Height Value
min_value_ ~ (altitude+add_altitude)

sdsai

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

voronoi

dtl::shape::PerlinIsland<shape_t>(frequency, octaves, max_height, min_height).draw(matrix, width, height);
Height Value
min_height ~ max_height

pib pi_ue4 wm

dtl::shape::PerlinLoopIsland<shape_t>(frequency, octaves, max_height, min_height).draw(matrix, width, height);
Height Value
min_height ~ max_height

pib

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

psi psi_ue4 wm rpg3d


[Type] Dungeon Generation๐ŸŒ

Sample Value Name Image Color
0 Outside Wall Blue
1 Inside Wall White
2 Room Green
3 Entrance Black
4 Way Yellow

rl1

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

STL1 srl3d

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

maze_dig maze_dig_3d

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

maze_bar

dtl::shape::ClusteringMaze<shape_t>(road_value).draw(matrix, width, height);
Value Name Name Image Color
Wall Blue
road_value Empty White

ClusteringMaze


[Type] Common Generation๐ŸŒ

English ๐Ÿ‡ฌ๐Ÿ‡ง / ๆ—ฅๆœฌ่ชž ๐Ÿ‡ฏ๐Ÿ‡ต

dtl::shape::Rect<shape_t>(rect_value).draw(matrix, width, height);
Value Name Name Image Color
rect_value Rect Black

di

dtl::shape::Border<shape_t>(border_value).draw(matrix, width, height);
Value Name Name Image Color
default_value Empty White
border_value Border Black

db border

dtl::shape::BorderOdd<shape_t>(border_value).draw(matrix, width, height);
Value Name Name Image Color
default_value Empty White
border_value Border Black

bo

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

pg

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

pgf

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

pgfpb

dtl::shape::WhiteNoise<shape_t>(noise_value).draw(matrix, width, height);
Value Name Name Image Color
default_value Empty White
noise_value Noise Black

wn

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

rr

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

rv

dtl::shape::AscendingOrder<shape_t>(start_value).draw(matrix, width, height);
Value Name Name Image Color
start_value Start Value Black
End Value White

ao

dtl::shape::AscendingOrder2<shape_t>(start_value).draw(matrix, width, height);
Value Name Name Image Color
start_value Start Value Black
End Value White

ao2

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

sp

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

stsp

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

StarLine


[Type] BoardGame Generation๐ŸŒ

Sample Value Name Image Color
0 Empty Green
1 White White
2 Black Black

re

re32

Sample Value Name Image Color
0 Empty Yellow
(1~) (Type) Black

shogi

Sample Value Name Image Color
0 Empty Yellow
(1~) (Type) Black

DobutsuShogi

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

chess


[Type] Find๐Ÿ”

dtl::find::GetLargestRectArea<shape_t>(find_value).draw(matrix, width, height);
Value Name Name Image Color
find_value Find Gray
LargestRectArea Black

GLRA


[Type] Paint๐ŸŽจ

dtl::retouch::Bucket<shape_t>(fill_value, start_x, start_y).draw(matrix, width, height);

bucket

Clone this wiki locally