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 209: | Line 208: | ||
===PostDraw=== | ===PostDraw=== | ||
− | Called every frame | + | Called every frame. Only use this for drawing. Do not put game logic in this. |
===PostDrawExtraSelectionOverlays=== | ===PostDrawExtraSelectionOverlays=== | ||
Line 254: | Line 253: | ||
===Notify_SignalReceived(Signal signal)=== | ===Notify_SignalReceived(Signal signal)=== | ||
− | The | + | The other part of the string based inter comp communication network. |
===ToString=== | ===ToString=== |