Class ResourceInfoDataContext
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
definitionResourceDefinitionDatacontainerIResourceContainer
Properties
AmountNormalized
public PropertyExternal<float> AmountNormalized { get; }
Property Value
CurAmount
public PropertyExternal<float> CurAmount { get; }
Property Value
ResUnits
public PropertyExternal<string> ResUnits { get; }
Property Value
ResourceAbbreviation
public Property<string> ResourceAbbreviation { get; }
Property Value
ResourceIcon
public Property<Sprite> ResourceIcon { get; }
Property Value
- Property<Sprite>
ResourceName
public Property<string> ResourceName { get; }
Property Value
TotalAmount
public PropertyExternal<float> TotalAmount { get; }
Property Value
Methods
LocalizeResourceText()
public void LocalizeResourceText()
OnResourceStatusUpdated()
public void OnResourceStatusUpdated()