Show / Hide Table of Contents

Class CulturalPropertyValue

When a property is of type 'cultural', its value will be computed with this class.

Inheritance
System.Object
UnserializedEntry
PropertyValue
StandardPropertyValue
CulturalPropertyValue
Implements
IController
IViewController
IHasUniversalID
System.ComponentModel.INotifyPropertyChanged
ILinkable
IThreadSafeSubscriptions
ISubscriptions<ThreadSafeSubscriptions>
ISubscriptions
Inherited Members
StandardPropertyValue.CalcValueAndNotify(Deed)
StandardPropertyValue.RoomSums
StandardPropertyValue.Scale
StandardPropertyValue.Subscriptions
PropertyValue.rooms
PropertyValue.SetRooms(IEnumerable<Room>)
PropertyValue.Title
PropertyValue.Description
PropertyValue.Summary
PropertyValue.Appendix
PropertyValue.Value
PropertyValue.Deed
PropertyValue.Rooms
UnserializedEntry.Id
UnserializedEntry.idToEntry
UnserializedEntry.All<T>()
UnserializedEntry.GetById(Int32)
UnserializedEntry.OnLinkClicked(TooltipOrigin, TooltipClickContext, User)
UnserializedEntry.ControllerID
UnserializedEntry.PropertyChanged
Namespace: Eco.Gameplay.Housing.PropertyValues
Assembly: Eco.Gameplay.dll
Syntax
public class CulturalPropertyValue : StandardPropertyValue, IController, IViewController, IHasUniversalID, INotifyPropertyChanged, ILinkable, IThreadSafeSubscriptions, ISubscriptions<ThreadSafeSubscriptions>, ISubscriptions

Constructors

CulturalPropertyValue(Deed)

Declaration
public CulturalPropertyValue(Deed deed)
Parameters
Type Name Description
Deed deed

Fields

InfluenceDescription

Declaration
public LocString InfluenceDescription
Field Value
Type Description
LocString

Properties

AppliesToPropertyType

Declaration
public override PropertyType AppliesToPropertyType { get; }
Property Value
Type Description
PropertyType
Overrides
PropertyValue.AppliesToPropertyType

BaseInfluence

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

Icon

Declaration
public override string Icon { get; }
Property Value
Type Description
System.String
Overrides
PropertyValue.Icon

Influence

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

InfluenceSourcePosition

Declaration
public Nullable<Vector2i> InfluenceSourcePosition { get; }
Property Value
Type Description
System.Nullable<Vector2i>

Methods

ApplyAndDescribeMultipliersAndGetNewTotal(Single, Deed, LocStringBuilder, LocStringBuilder)

Declaration
public override float ApplyAndDescribeMultipliersAndGetNewTotal(float value, Deed deed, LocStringBuilder summary, LocStringBuilder desc)
Parameters
Type Name Description
System.Single value
Deed deed
LocStringBuilder summary
LocStringBuilder desc
Returns
Type Description
System.Single
Overrides
StandardPropertyValue.ApplyAndDescribeMultipliersAndGetNewTotal(Single, Deed, LocStringBuilder, LocStringBuilder)

DescribeTotal(Deed, LocStringBuilder, LocStringBuilder)

Declaration
protected override void DescribeTotal(Deed deed, LocStringBuilder desc, LocStringBuilder summary)
Parameters
Type Name Description
Deed deed
LocStringBuilder desc
LocStringBuilder summary
Overrides
StandardPropertyValue.DescribeTotal(Deed, LocStringBuilder, LocStringBuilder)

SetInfluence(Single, LocString)

Returns true if there was a change.

Declaration
public bool SetInfluence(float influence, LocString appendix)
Parameters
Type Name Description
System.Single influence
LocString appendix
Returns
Type Description
System.Boolean

UILinkContent()

Declaration
public override LocString UILinkContent()
Returns
Type Description
LocString
Overrides
UnserializedEntry.UILinkContent()

UpdateAndNotifyTotal(Deed, Single, Nullable<Vector2>, IEnumerable<Room>)

Declaration
protected override 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
Overrides
StandardPropertyValue.UpdateAndNotifyTotal(Deed, Single, Nullable<Vector2>, IEnumerable<Room>)

Implements

IController
IViewController
IHasUniversalID
System.ComponentModel.INotifyPropertyChanged
ILinkable
IThreadSafeSubscriptions
ISubscriptions<TSubscriptionsList>
ISubscriptions

Extension Methods

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