Interface IMyResourceStorageComponent
Describes a resource storage entity component.
Inherited Members
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 |