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 215: Line 215:
  
 
===PostPrintOnto(SectionLayer layer)===
 
===PostPrintOnto(SectionLayer layer)===
It's so the ThingComp can print polygons onto the SectionLayer. SectionLayer is part of the "chunked" graphics printing system that allows us to efficiently render non-moving objects by printing them on a shared mesh and drawing them in one call. All Things have a Print method for this; PostPrintOnto is just the ThingComp hook to participate in Print.<ref>[https://gist.github.com/Mehni/b3f46b3b08f70cd74746a46f89d2d7a8]</ref>
+
Not a clue. Power uses it.
  
 
===CompPrintForPowerGrid(SectionLayer layer)===
 
===CompPrintForPowerGrid(SectionLayer layer)===
Same as above, but allows printing images on the power grid. This method is only called for Comps on buildings.<ref>[https://gist.github.com/Mehni/b3f46b3b08f70cd74746a46f89d2d7a8]</ref>
+
Not a clue. Power uses it.
  
 
===PreAbsorbStack(Thing otherStack, int count)===
 
===PreAbsorbStack(Thing otherStack, int count)===
Line 277: Line 277:
  
 
===ResolveReferences(ThingDef parentDef)===
 
===ResolveReferences(ThingDef parentDef)===
Part of the def loading process. Loading involves multiple stages, one of which is "ResolveReferences". Lots of defs have a ResolveReferences method. This is the CompProperties way of participating in that.<ref>[https://gist.github.com/Mehni/b3f46b3b08f70cd74746a46f89d2d7a8]</ref>
+
Not a clue. Used for Resolving references, obviously, but dunno the use.
  
 
===SpecialDisplayStats(StatRequest req)===
 
===SpecialDisplayStats(StatRequest req)===

Please note that all contributions to RimWorld Wiki are considered to be released under the CC BY-SA 3.0 (see RimWorld Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)