Assembly: Sandbox.Game.dll

public class MyResourceDistributorComponent: MyEntityComponentBase, IMyComponentBase, IMyEntityComponentBase, IMyResourceDistributorComponent

Fields

Member Description
static ElectricityId
static HydrogenId
static OxygenId
static ShowTrace For debugging purposes. Enables trace messages and watches for this instance.
static WaterId
DebugName

Events

Member Description
static OnAfterAddedToContainer Inherited from MyEntityComponentBase
OnPowerGenerationChanged
SystemChanged Event raised when any element of this system is changed, requiring the system to update.
BeforeRemovedFromContainer Inherited from IMyEntityComponentBase
BeforeRemovedFromContainer Inherited from MyEntityComponentBase
OnPowerGenerationChanged Called when power generation status changed

Inherited from IMyResourceDistributorComponent

Properties

Member Description
static SinkGroupPrioritiesTotal
static SinkSubtypesToPriority
ComponentTypeDebugString
ResourceState
SourcesEnabled
AttachSyncToEntity Inherited from MyEntityComponentBase
ComponentTypeDebugString Inherited from IMyEntityComponentBase
ComponentTypeDebugString Name of the base component type for debug purposes (e.g.: "Position")

Inherited from MyEntityComponentBase
Container Inherited from IMyEntityComponentBase
Container Inherited from MyEntityComponentBase
ContainerBase Inherited from IMyComponentBase
ContainerBase This cannot be named Container to not conflict with the definition of Container in MyEntityComponentBase.

Inherited from MyComponentBase
Entity Inherited from IMyEntityComponentBase
Entity Inherited from MyEntityComponentBase
FailedOnSceneAdd Inherited from MyComponentBase
RemoveExistingComponentOnNewInsert Inherited from IMyComponentBase
RemoveExistingComponentOnNewInsert Inherited from MyComponentBase
ResourceState Gets current resource state

Inherited from IMyResourceDistributorComponent
SourcesEnabled Gets if first found resources has enabled ResourceSource

Inherited from IMyResourceDistributorComponent

Constructors

Member Description
MyResourceDistributorComponent(string)

Methods

Member Description
static Clear()
static GetConveyorEndpointBlock(IMyEntity)
static IsConveyorConnectionRequiredTotal(MyDefinitionId)
static IsConveyorConnectionRequiredTotal(ref MyDefinitionId)
AddSink(MyResourceSinkComponent)
AddSource(MyResourceSourceComponent)
ChangeSourcesState(MyDefinitionId, MyMultipleEnabledEnum, long, MyCubeGrid)
ClearData()
ConveyorSystem_OnPoweredChanged()
DebugDraw(MyEntity)
GetElectricalGridsGroups()
GetElectricalGroupIndex(ref MyDefinitionId, MyCubeGrid)
GetSourceCount(MyDefinitionId, MyStringHash)
MarkConveyoredResourcesDirty()
MarkForUpdate()
MaxAvailableResourceByType(MyDefinitionId, MyCubeGrid)
MaxAvailableResourceByType(MyDefinitionId, IMyCubeGrid)
RecomputeResourceDistribution(ref MyDefinitionId, bool)
RemainingFuelTimeByType(MyDefinitionId, MyCubeGrid) Specify grid when asking for electricity.
RemoveSink(MyResourceSinkComponent, bool, bool)
RemoveSource(MyResourceSourceComponent)
ResourceStateByType(MyDefinitionId, bool, MyCubeGrid) Specify grid when asking for electricity. Electricity is shared only between certain grids.
SetDataDirty(MyDefinitionId)
SetNeedRecompute(MyDefinitionId)
SetNeedRecomputeAll()
SourcesEnabledByType(MyDefinitionId)
TotalRequiredInputByType(MyDefinitionId, MyCubeGrid)
TotalRequiredInputByType(MyDefinitionId, IMyCubeGrid)
UpdateBeforeSimulation()
UpdateBeforeSimulation100()
UpdateHud(MyHudSinkGroupInfo) Computes number of groups that have enough energy to work.
Deserialize(MyObjectBuilder_ComponentBase) Inherited from IMyComponentBase
Deserialize(MyObjectBuilder_ComponentBase) Inherited from MyComponentBase
GetAs() Inherited from IMyComponentBase
GetAs() Inherited from MyComponentBase
Init(MyComponentDefinitionBase) Inherited from IMyComponentBase
Init(MyComponentDefinitionBase) Inherited from MyComponentBase
IsSerialized() Inherited from IMyComponentBase
IsSerialized() Tells the component container serializer whether this component should be saved

Inherited from MyComponentBase
MaxAvailableResourceByType(MyDefinitionId, IMyCubeGrid) Gets maximum resource available by resource type

Inherited from IMyResourceDistributorComponent
OnAddedToContainer() Inherited from IMyComponentBase
OnAddedToContainer() Inherited from MyEntityComponentBase
OnAddedToContainer() Gets called after the container of this component changes

Inherited from MyComponentBase
OnAddedToScene() Inherited from IMyComponentBase
OnAddedToScene() CH: TOOD: Be careful! This does not get called if the component is added to a container that is in the scene already!

Inherited from MyComponentBase
OnBeforeRemovedFromContainer() Inherited from IMyComponentBase
OnBeforeRemovedFromContainer() Inherited from MyEntityComponentBase
OnBeforeRemovedFromContainer() Gets called before the removal of this component from a container

Inherited from MyComponentBase
OnRemovedFromScene() Inherited from IMyComponentBase
OnRemovedFromScene() CH: TOOD: Be careful! This does not get called if the component is removed from a container that is still in the scene!

Inherited from MyComponentBase
Serialize(bool) Inherited from IMyComponentBase
Serialize(bool) Inherited from MyComponentBase
SetContainer(IMyComponentContainer) Inherited from IMyComponentBase
SetContainer(IMyComponentContainer) Sets the container of this component. Note that the component is not added to the container here! Therefore, use MyComponentContainer.Add(...) method and it will in turn call this method. Actually, you should seldom have the need to call this method yourself.

Inherited from MyComponentBase
TotalRequiredInputByType(MyDefinitionId, IMyCubeGrid) Gets currently needed resource by resource type

Inherited from IMyResourceDistributorComponent

Inheritance: MyComponentBase ˃ MyEntityComponentBase

Implements: