Skip to content

CompSwapObject

flango edited this page Mar 6, 2023 · 1 revision

×× Swap one thing with another ××

Allows you make interchangeable things.

preview


Performance impact: 🟩 None


Type: Comp

XML Node: ThingDef/comps/li

Example:

<comps>
    <li Class="flangoCore.CompProperties_SwapObject">
        <swapThing>Test_Building_Audio</swapThing>
        <commandIcon>UI/ResetIcon</commandIcon>
    <!--<swapThingStuff>Steel</swapThingStuff>
        <commandLabel>Swap object</commandLabel>
        <commandDesc>Swap current object with another.</commandDesc>-->
    </li>
</comps>

🦩 Home

🚧 - 404 Page not found.
🖼 - Preview needed.

🟡 - Works but has some TODOs.
🟠 - Basic functionality implemented.
🔴 - Not working properly.
❓ - Not tested.


--== XML ==--

💡 Abilities

General

Ability Givers

Equipment Abilities

🟡 Should recode some stuff 🟡

🌳 Skill Trees

🟠 WIP, work/kill XP gain not implemented 🟠

Defs

Comps

🏘 Buildings

⚙ Comps

🏹 Equipment

General

Weapons

Projectiles

🧪 Hediffs

🧍‍♂‍ Pawn behaviors

📊 Stats

🎲 Misc

🧔 Vanilla Expanded

✨ Debug (Dev Mode)


--== C# ==--

📂 Shared Classes

🧬 Patches


Clone this wiki locally