Editing Modding Tutorials/ThingComp
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 178: | Line 178: | ||
===Initialize(CompProperties props)=== | ===Initialize(CompProperties props)=== | ||
− | Called once when the ThingComp is instantiated, and called | + | Called once when the ThingComp is instantiated, and called during loading. Used to, well, initialise the props. |
===ReceiveCompSignal(string signal)=== | ===ReceiveCompSignal(string signal)=== | ||
Line 184: | Line 184: | ||
===PostExposeData=== | ===PostExposeData=== | ||
− | |||
Used for saving and loading data. Runs after the ThingWithComps ExposeData. | Used for saving and loading data. Runs after the ThingWithComps ExposeData. | ||
Line 201: | Line 200: | ||
===CompTickRare=== | ===CompTickRare=== | ||
Runs once every [[Time|TickRare]], but only if the TickerType of the parent is TickerType Rare. | Runs once every [[Time|TickRare]], but only if the TickerType of the parent is TickerType Rare. | ||
+ | |||
+ | There is no CompTickLong. | ||
===PostPreApplyDamage(DamageInfo dinfo, out bool absorbed)=== | ===PostPreApplyDamage(DamageInfo dinfo, out bool absorbed)=== | ||
Line 209: | Line 210: | ||
===PostDraw=== | ===PostDraw=== | ||
− | Called every frame | + | Called every frame. Only use this for drawing. Do not put game logic in this. |
===PostDrawExtraSelectionOverlays=== | ===PostDrawExtraSelectionOverlays=== |