You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
2.4 KiB

  1. struct MindustryObject {};
  2. // builtin instructions
  3. void print(char* s);
  4. void printd(double s);
  5. void printflush(struct MindustryObject message);
  6. struct MindustryObject radar(struct MindustryObject obj, char* target1, char* target2,
  7. char* target3, char* sort, double index);
  8. double sensor(struct MindustryObject obj, char* prop);
  9. void enable(struct MindustryObject obj, double enabled);
  10. void configure(struct MindustryObject obj, char* configure);
  11. void setcolor(struct MindustryObject obj, double r, double g, double b);
  12. void shoot(struct MindustryObject obj, double x, double y, double shoot);
  13. void shootp(struct MindustryObject obj, double unit, double shoot);
  14. struct MindustryObject get_link(double index);
  15. double read(struct MindustryObject cell, double index);
  16. void write(double val, struct MindustryObject cell, double index);
  17. void drawclear(double r, double g, double b);
  18. void drawcolor(double r, double g, double b, double a);
  19. void drawstroke(double width);
  20. void drawline(double x1, double y1, double x2, double y2);
  21. void drawrect(double x, double y, double w, double h);
  22. void drawlinerect(double x, double y, double w, double h);
  23. void drawpoly(double x, double y, double sides, double radius, double rotation);
  24. void drawlinepoly(double x, double y, double sides, double radius, double rotation);
  25. void drawtriangle(double x1, double y1, double x2, double y2, double x3, double y3);
  26. void drawimage(double x, double y, char* image, double size, double rotation);
  27. void drawflush(struct MindustryObject display);
  28. void end();
  29. // unit commands (not complete; don't know how to return multiple values)
  30. void ubind(char* type);
  31. void unit_move(double x, double y);
  32. void unit_idle();
  33. void unit_stop();
  34. void unit_approach(double x, double y, double radius);
  35. void unit_boost(double enable);
  36. void unit_pathfind();
  37. void unit_target(double x, double y, double shoot);
  38. void unit_targetp(double unit, double shoot);
  39. void unit_item_drop(struct MindustryObject obj, double amount);
  40. void unit_item_take(struct MindustryObject obj, char* item, double amount);
  41. void unit_pay_drop();
  42. void unit_pay_take(double takeUnits);
  43. void unit_mine(double x, double y);
  44. void unit_flag(double value);
  45. void unit_build(double x, double y, char* block, double rotation, char* configure);
  46. double unit_within(double x, double y, double radius);
  47. MindustryObject unit_radar(char* target1, char* target2, char* target3, char* sort, double order);