Show / Hide Table of Contents

Interface IMyResourceStorageComponent

Describes a resource storage entity component.

Inherited Members
IMyResourceStorageComponent.IsResourceStorage(MyDefinitionId)
IMyResourceStorageComponent.ResourceCapacity
IMyResourceStorageComponent.FilledRatio
Namespace: Sandbox.ModAPI
Assembly: Sandbox.Common.dll
Syntax
public interface IMyResourceStorageComponent : IMyResourceStorageComponent

Properties

FilledRatioChanged

When FilledRatio is changed.

Declaration
Action<IMyResourceStorageComponent, double, double> FilledRatioChanged { get; set; }
Property Value
Type Description
System.Action<IMyResourceStorageComponent, System.Double, System.Double>

Methods

ChangeFilledRatio(Double, Boolean)

Allows you to set the fill ratio of a storage

Declaration
void ChangeFilledRatio(double newFilledRatio, bool updateSync)
Parameters
Type Name Description
System.Double newFilledRatio

New fill ratio (0 empty, 1 full)

System.Boolean updateSync

Sync ratio change to others

☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾