Interface IMyHazardExposureComponent
Describes session component responsible for hazard exposure application
Namespace: Sandbox.ModAPI
Assembly: Sandbox.Common.dll
Syntax
public interface IMyHazardExposureComponent
Methods
AddSource(IMyHazardSource)
Adds an IMyHazardSource to the processing list
Declaration
void AddSource(IMyHazardSource src)
Parameters
Type | Name | Description |
---|---|---|
IMyHazardSource | src | Hazard source implementation |
GetCurrentlyProcessedSources(List<IMyHazardSource>)
Gets references to sources in the processing list
Declaration
void GetCurrentlyProcessedSources(List<IMyHazardSource> result)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<IMyHazardSource> | result | An empty list to hold references |
RemoveSource(IMyHazardSource)
Removes specific source from the processing list
Declaration
bool RemoveSource(IMyHazardSource toRemove)
Parameters
Type | Name | Description |
---|---|---|
IMyHazardSource | toRemove | IMyHazardSource to be removed |
Returns
Type | Description |
---|---|
System.Boolean | Whether the source was found and removed |
RemoveSource<T>()
Removes IMyHazardSource from the processing list
Declaration
void RemoveSource<T>()
where T : IMyHazardSource
Type Parameters
Name | Description |
---|---|
T |