Assembly: Sandbox.Game.dll

public class MyResourceSinkComponent: MyResourceSinkComponentBase, IMyComponentBase, IMyEntityComponentBase, IMyResourceSinkComponent

Fields

Member Description
ParentBlock

Events

Member Description
static OnAfterAddedToContainer Inherited from MyEntityComponentBase
CurrentInputChanged
IsPoweredChanged
OnAddType
OnRemoveType
RequiredInputChanged
ResourceAvailable
BeforeRemovedFromContainer Inherited from IMyEntityComponentBase
BeforeRemovedFromContainer Inherited from MyEntityComponentBase

Properties

Member Description
AcceptedResources
ComponentTypeDebugString
Entity
Grid Grid of assigned entity. If no entity is assigned gets manualy set grid
TemporaryConnectedEntity
AcceptedResources Inherited from IMyResourceSinkComponent
AcceptedResources Inherited from MyResourceSinkComponentBase
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
TemporaryConnectedEntity Inherited from IMyResourceSinkComponent
TemporaryConnectedEntity Inherited from MyResourceSinkComponentBase
CurrentInput Obsolete
IsPowered Obsolete
MaxRequiredInput Obsolete
RequiredInput Obsolete
SuppliedRatio Obsolete

Constructors

Member Description
MyResourceSinkComponent()
MyResourceSinkComponent(int)

Methods

Member Description
AddType(ref MyResourceSinkInfo)
ClearAllData()
CurrentInputByType(MyDefinitionId)
DebugDraw(Matrix)
ForceCallNextIsPoweredChanged()
Init(MyComponentDefinitionBase)
Init(MyStringHash, float, Func, MyCubeBlock)
Init(MyStringHash, MyResourceSinkInfo, MyCubeBlock)
Init(MyStringHash, MyResourceSinkInfo)
Init(MyStringHash, List, MyCubeBlock)
IsPowerAvailable(MyDefinitionId, float)
IsPoweredByType(MyDefinitionId)
MaxRequiredInputByType(MyDefinitionId)
OnAddedToContainer()
OnAddedToScene()
OnBeforeRemovedFromContainer()
RemoveType(ref MyDefinitionId)
RequiredInputByType(MyDefinitionId)
ResourceAvailableByType(MyDefinitionId)
SetInputFromDistributor(MyDefinitionId, float, bool, bool) This should be called only from MyResourceDistributor.
SetMaxRequiredInputByType(MyDefinitionId, float)
SetRequiredInputByType(MyDefinitionId, float)
SetRequiredInputFuncByType(MyDefinitionId, Func) Change the required input function (callback) for given type of resource. It does not call it immediatelly to update required input value.
SuppliedRatioByType(MyDefinitionId)
Update()
CurrentInputByType(MyDefinitionId) Inherited from IMyResourceSinkComponent
CurrentInputByType(MyDefinitionId) Inherited from MyResourceSinkComponentBase
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
IsPowerAvailable(MyDefinitionId, float) Inherited from IMyResourceSinkComponent
IsPowerAvailable(MyDefinitionId, float) Inherited from MyResourceSinkComponentBase
IsPoweredByType(MyDefinitionId) Inherited from IMyResourceSinkComponent
IsPoweredByType(MyDefinitionId) Inherited from MyResourceSinkComponentBase
IsSerialized() Inherited from IMyComponentBase
IsSerialized() Tells the component container serializer whether this component should be saved

Inherited from MyComponentBase
MaxRequiredInputByType(MyDefinitionId) Inherited from IMyResourceSinkComponent
MaxRequiredInputByType(MyDefinitionId) Inherited from MyResourceSinkComponentBase
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
RequiredInputByType(MyDefinitionId) Inherited from IMyResourceSinkComponent
RequiredInputByType(MyDefinitionId) Inherited from MyResourceSinkComponentBase
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
SetInputFromDistributor(MyDefinitionId, float, bool, bool) Inherited from IMyResourceSinkComponent
SetInputFromDistributor(MyDefinitionId, float, bool, bool) Inherited from MyResourceSinkComponentBase
SetMaxRequiredInputByType(MyDefinitionId, float) Inherited from IMyResourceSinkComponent
SetMaxRequiredInputByType(MyDefinitionId, float) Inherited from MyResourceSinkComponentBase
SetRequiredInputByType(MyDefinitionId, float) Inherited from IMyResourceSinkComponent
SetRequiredInputByType(MyDefinitionId, float) Inherited from MyResourceSinkComponentBase
SetRequiredInputFuncByType(MyDefinitionId, Func) Change the required input function (callback) for given type of resource. It does not call it immediately to update required input value.

Inherited from IMyResourceSinkComponent
SetRequiredInputFuncByType(MyDefinitionId, Func) Inherited from MyResourceSinkComponentBase
SuppliedRatioByType(MyDefinitionId) Inherited from IMyResourceSinkComponent
SuppliedRatioByType(MyDefinitionId) Inherited from MyResourceSinkComponentBase

Inheritance: MyComponentBase ˃ MyEntityComponentBase ˃ MyResourceSinkComponentBase

Implements: