Table of Contents

Class ResourceInfoDataContext

Namespace
KSP.Game
Assembly
Assembly-CSharp.dll
public class ResourceInfoDataContext : DataContext, IDisposable, IDataContext, IDataContextReadonly, IDataContextWritable
Inheritance
ResourceInfoDataContext
Implements
Inherited Members
Extension Methods

Constructors

ResourceInfoDataContext(ResourceDefinitionData, IResourceContainer)

public ResourceInfoDataContext(ResourceDefinitionData definition, IResourceContainer container)

Parameters

definition ResourceDefinitionData
container IResourceContainer

Properties

AmountNormalized

public PropertyExternal<float> AmountNormalized { get; }

Property Value

PropertyExternal<float>

CurAmount

public PropertyExternal<float> CurAmount { get; }

Property Value

PropertyExternal<float>

ResUnits

public PropertyExternal<string> ResUnits { get; }

Property Value

PropertyExternal<string>

ResourceAbbreviation

public Property<string> ResourceAbbreviation { get; }

Property Value

Property<string>

ResourceIcon

public Property<Sprite> ResourceIcon { get; }

Property Value

Property<Sprite>

ResourceName

public Property<string> ResourceName { get; }

Property Value

Property<string>

TotalAmount

public PropertyExternal<float> TotalAmount { get; }

Property Value

PropertyExternal<float>

Methods

LocalizeResourceText()

public void LocalizeResourceText()

OnResourceStatusUpdated()

public void OnResourceStatusUpdated()