less copy protection, more size visualization
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

39 行
1.2 KiB

  1. function makeFiction() {
  2. const results = [];
  3. results.push({
  4. name: "Halo",
  5. constructor: () => makeObject(
  6. "Halo",
  7. {
  8. side: {
  9. height: math.unit(10000, "km"),
  10. mass: math.unit(1e17, "kg"),
  11. image: { source: "./media/fiction/halo/halo/side.svg" },
  12. name: "Side"
  13. },
  14. edge: {
  15. height: math.unit(318, "km"),
  16. mass: math.unit(1e17, "kg"),
  17. image: { source: "./media/fiction/halo/halo/edge.svg" },
  18. name: "Edge"
  19. },
  20. angled: {
  21. height: math.unit(8819.1, "km"),
  22. mass: math.unit(1e17, "kg"),
  23. image: { source: "./media/fiction/halo/halo/angled.svg" },
  24. name: "Angled"
  25. },
  26. }
  27. )
  28. });
  29. results.sort((b1, b2) => {
  30. e1 = b1.constructor();
  31. e2 = b2.constructor();
  32. return -math.subtract(e1.views[e1.defaultView].height, e2.views[e2.defaultView].height).value;
  33. });
  34. return results;
  35. }