Show / Hide Table of Contents

Class MyComponentAggregateExtensions

Inheritance
System.Object
MyComponentAggregateExtensions
Namespace: VRage.Game.Components
Assembly: VRage.Game.dll
Syntax
public static class MyComponentAggregateExtensions : Object

Methods

AddComponent(IMyComponentAggregate, MyComponentBase)

Declaration
public static void AddComponent(this IMyComponentAggregate aggregate, MyComponentBase component)
Parameters
Type Name Description
IMyComponentAggregate aggregate
MyComponentBase component

AttachComponent(IMyComponentAggregate, MyComponentBase)

Adds to list but doesn't change ownership

Declaration
public static void AttachComponent(this IMyComponentAggregate aggregate, MyComponentBase component)
Parameters
Type Name Description
IMyComponentAggregate aggregate
MyComponentBase component

DetachComponent(IMyComponentAggregate, MyComponentBase)

Removes from list, but doesn't change ownership

Declaration
public static void DetachComponent(this IMyComponentAggregate aggregate, MyComponentBase component)
Parameters
Type Name Description
IMyComponentAggregate aggregate
MyComponentBase component

GetComponentsFlattened(IMyComponentAggregate, List<MyComponentBase>)

Declaration
public static void GetComponentsFlattened(this IMyComponentAggregate aggregate, List<MyComponentBase> output)
Parameters
Type Name Description
IMyComponentAggregate aggregate
System.Collections.Generic.List<MyComponentBase> output

RemoveComponent(IMyComponentAggregate, MyComponentBase)

Declaration
public static bool RemoveComponent(this IMyComponentAggregate aggregate, MyComponentBase component)
Parameters
Type Name Description
IMyComponentAggregate aggregate
MyComponentBase component
Returns
Type Description
System.Boolean
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾