less copy protection, more size visualization
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.
 
 
 

37 lines
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. }