Class PropertyOwner<T>
- Namespace
- TaleWorlds.Core
- Assembly
- TaleWorlds.Core.dll
public class PropertyOwner<T> : MBObjectBase where T : MBObjectBase
Type Parameters
T
- Inheritance
-
PropertyOwner<T>
- Derived
- Inherited Members
Constructors
PropertyOwner()
public PropertyOwner()
PropertyOwner(PropertyOwner<T>)
public PropertyOwner(PropertyOwner<T> propertyOwner)
Parameters
propertyOwnerPropertyOwner<T>
Fields
_attributes
[SaveableField(10)]
protected readonly Dictionary<T, int> _attributes
Field Value
- Dictionary<T, int>
Methods
AutoGeneratedInstanceCollectObjects(List<object>)
protected override void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects)
Parameters
ClearAllProperty()
public void ClearAllProperty()
Deserialize(MBObjectManager, XmlNode)
public override void Deserialize(MBObjectManager objectManager, XmlNode node)
Parameters
objectManagerMBObjectManagernodeXmlNode
GetPropertyValue(T)
public int GetPropertyValue(T attribute)
Parameters
attributeT
Returns
HasProperty(T)
public bool HasProperty(T attribute)
Parameters
attributeT
Returns
Serialize(XmlWriter)
public void Serialize(XmlWriter writer)
Parameters
writerXmlWriter
SetPropertyValue(T, int)
public void SetPropertyValue(T attribute, int value)
Parameters
attributeTvalueint
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).