From 20a55299dd92681aed24cc8f3afc9da509524e58 Mon Sep 17 00:00:00 2001 From: Tachytaenius Date: Wed, 14 Sep 2022 20:04:50 +0100 Subject: [PATCH] Update modding-guide.rst Add some potentially helpful comments to explain an inconsistenecy --- docs/guides/modding-guide.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/guides/modding-guide.rst b/docs/guides/modding-guide.rst index 5b043c02c..6ec80eed1 100644 --- a/docs/guides/modding-guide.rst +++ b/docs/guides/modding-guide.rst @@ -421,6 +421,7 @@ Ok, you're all set up! Now, let's take a look at an example repeatUtil.scheduleEvery(modId .. ' 100 frames', 1, 'frames', moduleD.every100Frames) + -- multiple functions in the same callback eventful.onReactionComplete[modId] = function(reaction, reaction_product, unit, input_items, input_reagents, output_items) @@ -431,6 +432,8 @@ Ok, you're all set up! Now, let's take a look at an example unit, input_items, input_reagents, output_items) end + -- one function per callback (you can put them in the + -- above format if you prefer) eventful.onProjItemCheckMovement[modId] = moduleD.onProjItemCheckMovement eventful.onProjUnitCheckMovement[modId] = moduleD.onProjUnitCheckMovement