less copy protection, more size visualization
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 

121 lignes
4.2 KiB

  1. function makeClothing() {
  2. const results = [];
  3. const dataBoots = [
  4. {
  5. name: "Military Boot",
  6. sides: {
  7. "Front": { height: math.unit(0.36637169122695923, "meters") },
  8. "Front Corner": { height: math.unit(0.36637169122695923, "meters") },
  9. "Side": { height: math.unit(0.36637169122695923, "meters") },
  10. "Back Corner": { height: math.unit(0.36637169122695923, "meters") },
  11. "Back": { height: math.unit(0.36637169122695923, "meters") },
  12. "Bottom": { height: math.unit(0.49710506200790405, "meters") },
  13. "Top": { height: math.unit(0.49710506200790405, "meters") }
  14. }
  15. },
  16. {
  17. name: "Bootie",
  18. sides: {
  19. "Front": { height: math.unit(0.36327508091926575, "meters") },
  20. "Front Corner": { height: math.unit(0.36327508091926575, "meters") },
  21. "Side": { height: math.unit(0.36327508091926575, "meters") },
  22. "Back Corner": { height: math.unit(0.36327508091926575, "meters") },
  23. "Back": { height: math.unit(0.36327508091926575, "meters") },
  24. "Bottom": { height: math.unit(0.5577294230461121, "meters") },
  25. "Top": { height: math.unit(0.5577294230461121, "meters") }
  26. }
  27. }
  28. ]
  29. const dataShoes = [
  30. {
  31. name: "Vans",
  32. sides: {
  33. "Front": { height: math.unit(0.1756718009710312, "meters") },
  34. "Front Corner": { height: math.unit(0.1756718009710312, "meters") },
  35. "Side": { height: math.unit(0.1756718009710312, "meters") },
  36. "Back Corner": { height: math.unit(0.1756718009710312, "meters") },
  37. "Back": { height: math.unit(0.1756718009710312, "meters") },
  38. "Bottom": { height: math.unit(0.4387904107570648, "meters") },
  39. "Top": { height: math.unit(0.4387904107570648, "meters") }
  40. }
  41. }
  42. ]
  43. const dataSandals = [
  44. {
  45. name: "Flip Flop",
  46. sides: {
  47. "Front": { height: math.unit(0.06615997105836868, "meters") },
  48. "Front Corner": { height: math.unit(0.06615997105836868, "meters") },
  49. "Side": { height: math.unit(0.06615997105836868, "meters") },
  50. "Back Corner": { height: math.unit(0.06615997105836868, "meters") },
  51. "Back": { height: math.unit(0.06615997105836868, "meters") },
  52. "Bottom": { height: math.unit(0.5377234816551208, "meters") },
  53. "Top": { height: math.unit(0.5377234816551208, "meters") }
  54. }
  55. }
  56. ]
  57. const dataHeels = [
  58. {
  59. name: "Stiletto",
  60. sides: {
  61. "Front": { height: math.unit(0.29693031311035156, "meters") },
  62. "Front Corner": { height: math.unit(0.29693031311035156, "meters") },
  63. "Side": { height: math.unit(0.29693031311035156, "meters") },
  64. "Back Corner": { height: math.unit(0.29693031311035156, "meters") },
  65. "Back": { height: math.unit(0.29693031311035156, "meters") },
  66. "Bottom": { height: math.unit(0.559783935546875, "meters") },
  67. "Top": { height: math.unit(0.559783935546875, "meters") }
  68. }
  69. }
  70. ]
  71. results.push({
  72. name: "Boots",
  73. constructor: () => makeAutoVehicleGroup(
  74. dataBoots,
  75. "Boots",
  76. "clothing"
  77. )
  78. })
  79. results.push({
  80. name: "Shoes",
  81. constructor: () => makeAutoVehicleGroup(
  82. dataShoes,
  83. "Shoes",
  84. "clothing"
  85. )
  86. })
  87. results.push({
  88. name: "Sandals",
  89. constructor: () => makeAutoVehicleGroup(
  90. dataSandals,
  91. "Sandals",
  92. "clothing"
  93. )
  94. })
  95. results.push({
  96. name: "Heels",
  97. constructor: () => makeAutoVehicleGroup(
  98. dataHeels,
  99. "Heels",
  100. "clothing"
  101. )
  102. })
  103. results.sort((b1, b2) => {
  104. e1 = b1.constructor();
  105. e2 = b2.constructor();
  106. return e1.name.localeCompare(e2.name)
  107. });
  108. return results;
  109. }