Show / Hide Table of Contents

Class PreservedValue

Inheritance
System.Object
PreservedValue
Namespace: Eco.Gameplay.Utils
Assembly: Eco.Gameplay.dll
Syntax
public class PreservedValue : Object

Constructors

PreservedValue()

Declaration
public PreservedValue()

Properties

Get

Declaration
public float Get { get; }
Property Value
Type Description
System.Single

IsPreserving

Declaration
public bool IsPreserving { get; }
Property Value
Type Description
System.Boolean

OnValueChanged

Declaration
public ThreadSafeAction OnValueChanged { get; protected set; }
Property Value
Type Description
ThreadSafeAction

PreservationExpired

Declaration
public bool PreservationExpired { get; }
Property Value
Type Description
System.Boolean

Preserved

Declaration
public float Preserved { get; protected set; }
Property Value
Type Description
System.Single

PreservedTill

Declaration
public double PreservedTill { get; protected set; }
Property Value
Type Description
System.Double

PreserveSecondsGetter

Declaration
public PreservedValue.ValueRequester PreserveSecondsGetter { get; protected set; }
Property Value
Type Description
PreservedValue.ValueRequester

PreseveSeconds

Declaration
public double PreseveSeconds { get; }
Property Value
Type Description
System.Double

Real

Declaration
public float Real { get; protected set; }
Property Value
Type Description
System.Single

Methods

Initialize(PreservedValue.ValueRequester)

Declaration
public void Initialize(PreservedValue.ValueRequester preserveSeconds)
Parameters
Type Name Description
PreservedValue.ValueRequester preserveSeconds

RemoveReductionRequest()

Declaration
public void RemoveReductionRequest()

Set(Single)

Declaration
public void Set(float value)
Parameters
Type Name Description
System.Single value

TryAddPreservationWarning(StringBuilder)

Declaration
public bool TryAddPreservationWarning(StringBuilder sb)
Parameters
Type Name Description
System.Text.StringBuilder sb
Returns
Type Description
System.Boolean

UnsubscribeAll()

Declaration
public void UnsubscribeAll()

Extension Methods

TagUtils.TagNames(Object, Boolean)
TagUtils.TagDisplayNames(Object, Boolean)
ClientSetViewExtensions.SetClassOfProperty(Object, Player, String, String, Int32)
TypeTooltipExtensions.UILinkGeneric(Object)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾