Skip to content

Commit

Permalink
update all config usages
Browse files Browse the repository at this point in the history
  • Loading branch information
bb1950328 committed Jan 3, 2024
1 parent 12c662a commit f074e93
Show file tree
Hide file tree
Showing 54 changed files with 811 additions and 914 deletions.
2 changes: 2 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ target_sources(BrickSimLib PRIVATE
metrics.h
part_finder.cpp
part_finder.h
persistent_state.cpp
persistent_state.h
tasks.cpp
tasks.h
types.h
Expand Down
4 changes: 4 additions & 0 deletions src/config/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
target_sources(BrickSimLib PRIVATE
data.cpp
data.h
read.cpp
read.h
write.cpp
write.h
)
15 changes: 15 additions & 0 deletions src/config/data.cpp
Original file line number Diff line number Diff line change
@@ -1 +1,16 @@
#include "data.h"

namespace bricksim::config {
const std::vector<SnappingLinearStepPreset> Snapping::DEFAULT_LINEAR_PRESETS = {
{"Brick", 20, 24},
{"Technic", 20, 20},
{"Plate/Half Brick", 10, 8},
{"Half Technic", 10, 10},
};
const std::vector<SnappingRotationalStepPreset> Snapping::DEFAULT_ROTATIONAL_PRESETS = {
{"1/4", 90},
{"1/6", 60},
{"1/8", 45},
{"1/16", 22.5f},
};
}
Loading

0 comments on commit f074e93

Please sign in to comment.