Space Engineers
Public Member Functions | Properties | List of all members
VRage.Library.Collections.MyIndexedComponentContainer< T > Class Template Reference

Public Member Functions

 MyIndexedComponentContainer ()
 
 MyIndexedComponentContainer (MyComponentContainerTemplate< T > template)
 
TComponent GetComponent< TComponent > ()
 
TComponent TryGetComponent< TComponent > ()
 
void Add (Type slot, T component)
 
void Remove (Type slot)
 
void Clear ()
 
bool Contains< TComponent > ()
 

Properties

this[int index] [get]
 
this[Type type] [get]
 
int Count [get]
 

Detailed Description

Type Constraints
T :class 

Definition at line 147 of file MyIndexedComponentContainer.cs.

Constructor & Destructor Documentation

Definition at line 158 of file MyIndexedComponentContainer.cs.

Create a component from a template.

Definition at line 166 of file MyIndexedComponentContainer.cs.

Member Function Documentation

void VRage.Library.Collections.MyIndexedComponentContainer< T >.Add ( Type  slot,
component 
)
inline

Definition at line 214 of file MyIndexedComponentContainer.cs.

Definition at line 241 of file MyIndexedComponentContainer.cs.

bool VRage.Library.Collections.MyIndexedComponentContainer< T >.Contains< TComponent > ( )
inline
Type Constraints
TComponent :T 

Definition at line 247 of file MyIndexedComponentContainer.cs.

TComponent VRage.Library.Collections.MyIndexedComponentContainer< T >.GetComponent< TComponent > ( )
inline
Type Constraints
TComponent :T 

Definition at line 201 of file MyIndexedComponentContainer.cs.

void VRage.Library.Collections.MyIndexedComponentContainer< T >.Remove ( Type  slot)
inline

Definition at line 228 of file MyIndexedComponentContainer.cs.

TComponent VRage.Library.Collections.MyIndexedComponentContainer< T >.TryGetComponent< TComponent > ( )
inline
Type Constraints
TComponent :class 
TComponent :T 

Definition at line 206 of file MyIndexedComponentContainer.cs.

Property Documentation

Definition at line 197 of file MyIndexedComponentContainer.cs.

Definition at line 181 of file MyIndexedComponentContainer.cs.

Definition at line 189 of file MyIndexedComponentContainer.cs.


The documentation for this class was generated from the following file: