aboutsummaryrefslogtreecommitdiff
path: root/src/specks.lua
diff options
context:
space:
mode:
authorne_mene <[email protected]>2026-03-31 12:58:42 +0200
committerne_mene <[email protected]>2026-03-31 12:58:42 +0200
commit644050d9fc341e3963b27e30016c367bb4aeb609 (patch)
treef5b119507c8c95fd2e5458afb0a5bb1a5cb588d3 /src/specks.lua
parent7a66b465b46bd1507a9b8b746dc5182ee4055f93 (diff)
edit speck properties
Diffstat (limited to 'src/specks.lua')
-rw-r--r--src/specks.lua52
1 files changed, 26 insertions, 26 deletions
diff --git a/src/specks.lua b/src/specks.lua
index 7f16c51..85f8c4e 100644
--- a/src/specks.lua
+++ b/src/specks.lua
@@ -222,36 +222,36 @@ function Speck_Sys:draw()
end
end
+SPECK_EXPORTED_ARGS = {
+ "spawn_shape",
+ "spawn_amount_min",
+ "spawn_amount_max",
+ "spawn_width",
+ "spawn_height",
+ "spawn_radius",
+ "scale_curve",
+ "scale_start_min",
+ "scale_start_max",
+ "scale_end_min",
+ "scale_end_max",
+ "forcex",
+ "forcey",
+ "initial_velx",
+ "initial_vely",
+ "spread",
+ "lifetime_min",
+ "lifetime_max",
+ "interval",
+ "texture_path",
+ "gradient",
+ "oneshot",
+ "bounce",
+}
function export_speck_sys(sys, filename)
- local EXPORTED_ARGS = {
- "spawn_shape",
- "spawn_amount_min",
- "spawn_amount_max",
- "spawn_width",
- "spawn_height",
- "spawn_radius",
- "scale_curve",
- "scale_start_min",
- "scale_start_max",
- "scale_end_min",
- "scale_end_max",
- "forcex",
- "forcey",
- "initial_velx",
- "initial_vely",
- "spread",
- "lifetime_min",
- "lifetime_max",
- "interval",
- "texture_path",
- "gradient",
- "oneshot",
- "bounce",
- }
local exp = {}
- for i, arg in ipairs(EXPORTED_ARGS) do
+ for i, arg in ipairs(SPECK_EXPORTED_ARGS) do
exp[arg] = sys[arg]
end
export_to_source(exp, filename)