Editing Modding Tutorials/ThingDef
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 1: | Line 1: | ||
− | {{BackToTutorials}} | + | ''Italic text''{{BackToTutorials}} |
+ | {{stub}} | ||
'''ThingDef''' is one of the many [[Modding_Tutorials/XML_Defs|Defs]] used in RimWorld. Almost every "tangible" (and some intangible) things you see in RimWorld are backed by a ThingDef. | '''ThingDef''' is one of the many [[Modding_Tutorials/XML_Defs|Defs]] used in RimWorld. Almost every "tangible" (and some intangible) things you see in RimWorld are backed by a ThingDef. | ||
Line 20: | Line 21: | ||
[[File:ThingDef.PNG|300px|thumb|right|ILSpy v4.0 showing the decompiled ThingDef class, with the analyzer expanded on the smallVolume field. To the left a few of available fields are visible.]] | [[File:ThingDef.PNG|300px|thumb|right|ILSpy v4.0 showing the decompiled ThingDef class, with the analyzer expanded on the smallVolume field. To the left a few of available fields are visible.]] | ||
− | = | + | =Existing tags= |
− | + | {| class="wikitable sortable" | |
− | + | ! scope="col"| Tags | |
− | = | + | ! scope="col"| Description |
− | + | ! scope="col"| Values | |
− | + | |---- | |
− | + | ! scope="row"| wantsHopperAdjacent | |
− | + | |Whether the building needs adjacent hoppers or not. | |
− | + | |Boolean | |
− | + | |---- | |
− | + | ! scope="row"| ignoreNeedsPower | |
− | + | |When has CompTrader: Whether this building requires power or not. | |
− | + | |Boolean | |
− | + | |---- | |
− | + | ! scope="row"| soundAmbient | |
− | + | |Sound to play whenever its working. | |
− | + | |SoundDefs | |
− | + | |---- | |
− | + | ! scope="row"| shipPart | |
− | + | |Designates the building as one of the ship parts or not. | |
− | + | |Boolean | |
− | + | |---- | |
− | + | |} | |
− | |||
− | |||
− | |||
=Adding more tags= | =Adding more tags= | ||
Line 55: | Line 53: | ||
[[Category:Defs]] | [[Category:Defs]] | ||
− |