onilink_

Untitled

Aug 9th, 2019
438
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.09 KB | None | 0 0
  1.  
  2. const std::map<std::string, Cmd> map = {
  3.     {"arc", Cmd::Arc},
  4.     {"circle", Cmd::Circle},
  5.     {"square", Cmd::Square},
  6.     {"point", Cmd::Point},
  7.     {"top", Cmd::Top},
  8.     {"surface_bottom", Cmd::SurfaceBottom},
  9.     {"surface_bottom_l", Cmd::SurfaceBottomL},
  10.     {"surface_bottom_r", Cmd::SurfaceBottomR},
  11.     {"surface_bottom_dir", Cmd::SurfaceBottomD},
  12.     {"align", Cmd::Align},
  13.     {"align_x", Cmd::AlignX},
  14.     {"align_y", Cmd::AlignY},
  15.     {"translate", Cmd::Translate},
  16.     {"move", Cmd::Move},
  17.     {"move_fixed", Cmd::MoveFixed},
  18.     {"scalex", Cmd::Scalex},
  19.     {"rotate_force", Cmd::RotateForce},
  20.     {"scale_force", Cmd::ScaleForce},
  21.     {"direction", Cmd::Direction},
  22.     {"direction_randomize", Cmd::DirectionRandomize},
  23.     {"move_outside_solid", Cmd::MoveOutsideSolid},
  24.     {"project", Cmd::Project},
  25.     {"erase", Cmd::Erase}, // erase(begin, count)
  26.     {"shuffle", Cmd::Shuffle},
  27.     {"angle", Cmd::Angle},
  28. };
  29. const std::array<uint16_t, unsigned(Cmd::_Number)> arg_count = {{
  30.     3, 2, 2, 0, 2, 2, 2, 2, 2,
  31.     2, 2, 2, 2, 1, 1, 2, 1, 1, 2, 2, 1, 3, 2, 0, 1
  32. }};
Advertisement
Add Comment
Please, Sign In to add comment