ResourceContainerRemover
ResourceContainerRemover removes named resources from the part's container set for a variant.
Purpose
Use this transformer when a variant should strip resources from a base part, such as turning a wet tank into a dry structural shell or removing one propellant from a multi-resource layout.
Type
Source-backed runtime type: VSwift.Modules.Transformers.ResourceContainerRemover
Fields
Containers:List<string>Each string is a resource name, not a container ID
Behavior
ApplyCommon: no effectApplyInOab: rebuilds the OAB part's resource-container array, filtering out resource definitions whose names match the entries inContainers, then reinitializesModule_ResourceCapacitiesApplyInFlight: no effect
State handling
Reverter: yes, via
ResourceContainerReverter.InstanceSaves information: yes, through
ResourceContainerRemoveLoaderVisualizes information: no
Example
Transformers: [
{
Name: "ResourceContainerRemover",
Containers: ["Oxidizer", "MonoPropellant"]
}
]Caveats
Removal is based on resource names resolved through the game's resource database.
Like
ResourceContainerAdder, this transformer rebuilds the resource-capacity module after editing containers.It removes matching resources from every container on the part, so use it carefully on parts with multiple resource definitions.