1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-31 05:52:59 +00:00

3d:: choice of end type for pipes

This commit is contained in:
Zeno Rogue
2022-07-14 11:28:24 +02:00
parent 6c4a53c001
commit 3b4571aa16
3 changed files with 25 additions and 7 deletions

View File

@@ -142,6 +142,8 @@ struct subcellshape {
void compute_common();
};
enum class ePipeEnd {sharp, ball};
/** basic geometry parameters */
struct geometry_information {
@@ -530,7 +532,7 @@ hpcshape
void require_usershapes() { if(usershape_state == usershape_changes) return; usershape_state = usershape_changes; prepare_usershapes(); }
int timestamp;
hpcshape& generate_pipe(ld length, ld width);
hpcshape& generate_pipe(ld length, ld width, ePipeEnd endtype = ePipeEnd::sharp);
map<string, unique_ptr<gi_extension>> ext;
};