Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const std::map<std::string, Cmd> map = {
- {"arc", Cmd::Arc},
- {"circle", Cmd::Circle},
- {"square", Cmd::Square},
- {"point", Cmd::Point},
- {"top", Cmd::Top},
- {"surface_bottom", Cmd::SurfaceBottom},
- {"surface_bottom_l", Cmd::SurfaceBottomL},
- {"surface_bottom_r", Cmd::SurfaceBottomR},
- {"surface_bottom_dir", Cmd::SurfaceBottomD},
- {"align", Cmd::Align},
- {"align_x", Cmd::AlignX},
- {"align_y", Cmd::AlignY},
- {"translate", Cmd::Translate},
- {"move", Cmd::Move},
- {"move_fixed", Cmd::MoveFixed},
- {"scalex", Cmd::Scalex},
- {"rotate_force", Cmd::RotateForce},
- {"scale_force", Cmd::ScaleForce},
- {"direction", Cmd::Direction},
- {"direction_randomize", Cmd::DirectionRandomize},
- {"move_outside_solid", Cmd::MoveOutsideSolid},
- {"project", Cmd::Project},
- {"erase", Cmd::Erase}, // erase(begin, count)
- {"shuffle", Cmd::Shuffle},
- {"angle", Cmd::Angle},
- };
- const std::array<uint16_t, unsigned(Cmd::_Number)> arg_count = {{
- 3, 2, 2, 0, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 1, 1, 2, 1, 1, 2, 2, 1, 3, 2, 0, 1
- }};
Advertisement
Add Comment
Please, Sign In to add comment