Class StandardPropertyValue
Base class for property values derived from the regular furnishing values. Residency and cultural use this, though cultural will get separated later.
Inheritance
System.Object
StandardPropertyValue
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: Eco.Gameplay.dll
Syntax
public abstract class StandardPropertyValue : PropertyValue, IController, IViewController, IHasUniversalID, INotifyPropertyChanged, ILinkable, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions
Constructors
StandardPropertyValue(Deed)
Declaration
protected StandardPropertyValue(Deed deed)
Parameters
Type |
Name |
Description |
Deed |
deed |
|
Properties
RoomSums
Declaration
public ConcurrentDictionary<Color, float> RoomSums { get; set; }
Property Value
Type |
Description |
System.Collections.Concurrent.ConcurrentDictionary<Color, System.Single> |
|
Scale
Declaration
public float Scale { get; set; }
Property Value
Type |
Description |
System.Single |
|
Subscriptions
Declaration
public ref ThreadSafeSubscriptions Subscriptions { get; }
Property Value
Methods
ApplyAndDescribeMultipliersAndGetNewTotal(Single, Deed, LocStringBuilder, LocStringBuilder)
Declaration
public virtual float ApplyAndDescribeMultipliersAndGetNewTotal(float curVal, Deed deed, LocStringBuilder summary, LocStringBuilder desc)
Parameters
Returns
Type |
Description |
System.Single |
|
CalcValueAndNotify(Deed)
Declaration
public override void CalcValueAndNotify(Deed deed)
Parameters
Type |
Name |
Description |
Deed |
deed |
|
Overrides
DescribeTotal(Deed, LocStringBuilder, LocStringBuilder)
Describe the final points and how they affect things.
Declaration
protected abstract void DescribeTotal(Deed deed, LocStringBuilder desc, LocStringBuilder summary)
Parameters
UpdateAndNotifyTotal(Deed, Single, Nullable<Vector2>, IEnumerable<Room>)
Declaration
protected virtual void UpdateAndNotifyTotal(Deed deed, float newTotal, Nullable<Vector2> weightedRoomPos, IEnumerable<Room> rooms)
Parameters
Type |
Name |
Description |
Deed |
deed |
|
System.Single |
newTotal |
|
System.Nullable<Vector2> |
weightedRoomPos |
|
System.Collections.Generic.IEnumerable<Room> |
rooms |
|
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods