示例#1
0
 def register_arguments(self):
     return [
         Argument("PosX", "The X position of the block"),
         Argument("PosY", "The Y position of the block"),
         Argument("PosZ", "The Z position of the block"),
         Argument("Rotation", ""),
     ]
示例#2
0
 def register_arguments(self):
     return [
         Argument("Length", "The length of the structure"),
         Argument("Width", "The width of the structure"),
         Argument("Height", "The height of the structure"),
         Argument("Rotation", "The rotation of the structure"),
     ]
 def register_arguments(self):
     return [
         Argument("FILE", "Where's the source file?"),
         Argument("FACING", "What direction are you facing?",
                  ['north', 'south', 'east', 'west']),
         Argument("INPUT_SIDE", "What side do the inputs build towards?",
                  ['left', 'right']),
         Argument("BUILD_TO",
                  "What direction is the structure being built towards?",
                  ['left', 'right']),
         Argument("OFFSET", "Where is the structure being moved to?"),
     ]
def pick_class_from_dictionary(name, help, dictionary):
    valid_options = list(dictionary.keys())
    users_choice = Argument(name, help, valid_options)
    key = argument_handler.handle(users_choice)
    return dictionary[key]