M&B: Bannerlord 1.0.0
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.Core.PropertyOwner< T > Class Template Reference

Inherits TaleWorlds.ObjectSystem.MBObjectBase.

Public Member Functions

 PropertyOwner ()
 
 PropertyOwner (PropertyOwner< T > propertyOwner)
 
void SetPropertyValue (T attribute, int value)
 
int GetPropertyValue (T attribute)
 
bool HasProperty (T attribute)
 
void ClearAllProperty ()
 
void Serialize (XmlWriter writer)
 
override void Deserialize (MBObjectManager objectManager, XmlNode node)
 
- Public Member Functions inherited from TaleWorlds.ObjectSystem.MBObjectBase
 MBObjectBase ()
 
 MBObjectBase (MBObjectBase other)
 
 MBObjectBase (string stringId)
 
void AfterInitialized ()
 
virtual void AfterRegister ()
 
virtual void Initialize ()
 
virtual void Deserialize (MBObjectManager objectManager, XmlNode node)
 
override int GetHashCode ()
 
virtual TextObject GetName ()
 
void PreAfterLoadInternal ()
 
void AfterLoadInternal ()
 
void OnRegistered ()
 
void OnUnregistered ()
 

Protected Attributes

readonly Dictionary< T, int > _attributes
 

Additional Inherited Members

- Protected Member Functions inherited from TaleWorlds.ObjectSystem.MBObjectBase
virtual void OnBeforeLoad ()
 
virtual void PreAfterLoad ()
 
virtual void AfterLoad ()
 
- Properties inherited from TaleWorlds.ObjectSystem.MBObjectBase
string StringId [get, set]
 
MBGUID Id [get, set]
 
bool IsInitialized [get]
 
bool IsReady [get, set]
 

Constructor & Destructor Documentation

◆ PropertyOwner() [1/2]

◆ PropertyOwner() [2/2]

Member Function Documentation

◆ SetPropertyValue()

void TaleWorlds.Core.PropertyOwner< T >.SetPropertyValue ( attribute,
int  value 
)

◆ GetPropertyValue()

int TaleWorlds.Core.PropertyOwner< T >.GetPropertyValue ( attribute)

◆ HasProperty()

bool TaleWorlds.Core.PropertyOwner< T >.HasProperty ( attribute)

◆ ClearAllProperty()

void TaleWorlds.Core.PropertyOwner< T >.ClearAllProperty ( )

◆ Serialize()

void TaleWorlds.Core.PropertyOwner< T >.Serialize ( XmlWriter  writer)

◆ Deserialize()

override void TaleWorlds.Core.PropertyOwner< T >.Deserialize ( MBObjectManager  objectManager,
XmlNode  node 
)
virtual

Member Data Documentation

◆ _attributes

readonly Dictionary<T, int> TaleWorlds.Core.PropertyOwner< T >._attributes
protected