const.ts 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. /** Generated file, do not edit. See scripts/factorio-dump/lua-api/index.ts for generator. */
  2. import type { FactorioRawData } from "./models.ts"
  3. type ValidKeys = Array<keyof FactorioRawData>
  4. /**
  5. * All the keys that could contain item prototypes.
  6. */
  7. export const ITEM_KEYS: ValidKeys = [
  8. "ammo",
  9. "armor",
  10. "blueprint",
  11. "blueprint-book",
  12. "capsule",
  13. "copy-paste-tool",
  14. "deconstruction-item",
  15. "fluid",
  16. "gun",
  17. "item",
  18. "item-with-entity-data",
  19. "item-with-inventory",
  20. "item-with-label",
  21. "item-with-tags",
  22. "module",
  23. "rail-planner",
  24. "repair-tool",
  25. "selection-tool",
  26. "space-platform-starter-pack",
  27. "spidertron-remote",
  28. "tool",
  29. "upgrade-item"
  30. ]
  31. /**
  32. * All the keys that could contain entity prototypes.
  33. */
  34. export const ENTITY_KEYS: ValidKeys = [
  35. "accumulator",
  36. "agricultural-tower",
  37. "ammo-turret",
  38. "arithmetic-combinator",
  39. "arrow",
  40. "artillery-flare",
  41. "artillery-projectile",
  42. "artillery-turret",
  43. "artillery-wagon",
  44. "assembling-machine",
  45. "asteroid",
  46. "asteroid-collector",
  47. "beacon",
  48. "beam",
  49. "boiler",
  50. "burner-generator",
  51. "capture-robot",
  52. "car",
  53. "cargo-bay",
  54. "cargo-landing-pad",
  55. "cargo-pod",
  56. "cargo-wagon",
  57. "character",
  58. "character-corpse",
  59. "cliff",
  60. "combat-robot",
  61. "constant-combinator",
  62. "construction-robot",
  63. "container",
  64. "corpse",
  65. "curved-rail-a",
  66. "curved-rail-b",
  67. "decider-combinator",
  68. "deconstructible-tile-proxy",
  69. "display-panel",
  70. "electric-energy-interface",
  71. "electric-pole",
  72. "electric-turret",
  73. "elevated-curved-rail-a",
  74. "elevated-curved-rail-b",
  75. "elevated-half-diagonal-rail",
  76. "elevated-straight-rail",
  77. "entity-ghost",
  78. "explosion",
  79. "fire",
  80. "fish",
  81. "fluid-turret",
  82. "fluid-wagon",
  83. "furnace",
  84. "fusion-generator",
  85. "fusion-reactor",
  86. "gate",
  87. "generator",
  88. "half-diagonal-rail",
  89. "heat-interface",
  90. "heat-pipe",
  91. "highlight-box",
  92. "infinity-cargo-wagon",
  93. "infinity-container",
  94. "infinity-pipe",
  95. "inserter",
  96. "item-entity",
  97. "item-request-proxy",
  98. "lab",
  99. "lamp",
  100. "land-mine",
  101. "lane-splitter",
  102. "legacy-curved-rail",
  103. "legacy-straight-rail",
  104. "lightning",
  105. "lightning-attractor",
  106. "linked-belt",
  107. "linked-container",
  108. "loader",
  109. "loader-1x1",
  110. "locomotive",
  111. "logistic-container",
  112. "logistic-robot",
  113. "market",
  114. "mining-drill",
  115. "offshore-pump",
  116. "particle-source",
  117. "pipe",
  118. "pipe-to-ground",
  119. "plant",
  120. "player-port",
  121. "power-switch",
  122. "programmable-speaker",
  123. "projectile",
  124. "proxy-container",
  125. "pump",
  126. "radar",
  127. "rail-chain-signal",
  128. "rail-ramp",
  129. "rail-remnants",
  130. "rail-signal",
  131. "rail-support",
  132. "reactor",
  133. "resource",
  134. "roboport",
  135. "rocket-silo",
  136. "rocket-silo-rocket",
  137. "rocket-silo-rocket-shadow",
  138. "segment",
  139. "segmented-unit",
  140. "selector-combinator",
  141. "simple-entity",
  142. "simple-entity-with-force",
  143. "simple-entity-with-owner",
  144. "smoke-with-trigger",
  145. "solar-panel",
  146. "space-platform-hub",
  147. "speech-bubble",
  148. "spider-leg",
  149. "spider-unit",
  150. "spider-vehicle",
  151. "splitter",
  152. "sticker",
  153. "storage-tank",
  154. "straight-rail",
  155. "stream",
  156. "temporary-container",
  157. "thruster",
  158. "tile-ghost",
  159. "train-stop",
  160. "transport-belt",
  161. "tree",
  162. "turret",
  163. "underground-belt",
  164. "unit",
  165. "unit-spawner",
  166. "valve",
  167. "wall"
  168. ]
  169. /**
  170. * All the keys that could contains space location prototypes.
  171. */
  172. export const SPACE_LOCATION_KEYS: ValidKeys = [
  173. "planet",
  174. "space-location"
  175. ]