Update modding-guide.rst

Add some potentially helpful comments to explain an inconsistenecy
develop
Tachytaenius 2022-09-14 20:04:50 +01:00 committed by GitHub
parent ee123a2461
commit 20a55299dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

@ -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