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.
 
 
 

37 lignes
1.1 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. results.push({
  18. name: "Boots",
  19. constructor: () => makeAutoVehicleGroup(
  20. dataBoots,
  21. "Boots",
  22. "clothing"
  23. )
  24. })
  25. results.sort((b1, b2) => {
  26. e1 = b1.constructor();
  27. e2 = b2.constructor();
  28. return e1.name.localeCompare(e2.name)
  29. });
  30. return results;
  31. }