Feel  3.16
The best way to improve your game's feel and make it extra juicy
MoreMountains.Tools.MMPropertyLinkString Class Reference

String property setter More...

Inheritance diagram for MoreMountains.Tools.MMPropertyLinkString:
MoreMountains.Tools.MMPropertyLink

Public Member Functions

override void Initialization (MMProperty property)
 On initialization we grab our initial value More...
 
override void CreateGettersAndSetters (MMProperty property)
 Creates cached getter and setters for properties More...
 
override object GetValue (MMPropertyEmitter emitter, MMProperty property)
 Gets the raw value of the property, a normalized float value, caching the operation if possible More...
 
override void SetValue (MMPropertyReceiver receiver, MMProperty property, object newValue)
 Sets the raw property value, float normalized, caching the operation if possible More...
 
override void SetLevel (MMPropertyReceiver receiver, MMProperty property, float level)
 Sets the level (above threshold : remap one, under threshold : remap zero) More...
 

Public Attributes

Func< string > GetStringDelegate
 
Action< string > SetStringDelegate
 

Protected Member Functions

virtual string GetValueOptimized (MMProperty property)
 Gets either the cached value or the raw value More...
 
virtual void SetValueOptimized (MMProperty property, string newValue)
 Sets either the cached value or the raw value More...
 

Protected Attributes

string _initialValue
 
string _newValue
 

Detailed Description

String property setter

Member Function Documentation

◆ CreateGettersAndSetters()

override void MoreMountains.Tools.MMPropertyLinkString.CreateGettersAndSetters ( MMProperty  property)
virtual

Creates cached getter and setters for properties

Parameters
property

Reimplemented from MoreMountains.Tools.MMPropertyLink.

◆ GetValue()

override object MoreMountains.Tools.MMPropertyLinkString.GetValue ( MMPropertyEmitter  emitter,
MMProperty  property 
)
virtual

Gets the raw value of the property, a normalized float value, caching the operation if possible

Parameters
emitter
property
Returns

Reimplemented from MoreMountains.Tools.MMPropertyLink.

◆ GetValueOptimized()

virtual string MoreMountains.Tools.MMPropertyLinkString.GetValueOptimized ( MMProperty  property)
protectedvirtual

Gets either the cached value or the raw value

Parameters
property
Returns

◆ Initialization()

override void MoreMountains.Tools.MMPropertyLinkString.Initialization ( MMProperty  property)
virtual

On initialization we grab our initial value

Parameters
property

Reimplemented from MoreMountains.Tools.MMPropertyLink.

◆ SetLevel()

override void MoreMountains.Tools.MMPropertyLinkString.SetLevel ( MMPropertyReceiver  receiver,
MMProperty  property,
float  level 
)
virtual

Sets the level (above threshold : remap one, under threshold : remap zero)

Parameters
receiver
property
level

Reimplemented from MoreMountains.Tools.MMPropertyLink.

◆ SetValue()

override void MoreMountains.Tools.MMPropertyLinkString.SetValue ( MMPropertyReceiver  receiver,
MMProperty  property,
object  newValue 
)
virtual

Sets the raw property value, float normalized, caching the operation if possible

Parameters
receiver
property
level

Reimplemented from MoreMountains.Tools.MMPropertyLink.

◆ SetValueOptimized()

virtual void MoreMountains.Tools.MMPropertyLinkString.SetValueOptimized ( MMProperty  property,
string  newValue 
)
protectedvirtual

Sets either the cached value or the raw value

Parameters
property
newValue

Member Data Documentation

◆ _initialValue

string MoreMountains.Tools.MMPropertyLinkString._initialValue
protected

◆ _newValue

string MoreMountains.Tools.MMPropertyLinkString._newValue
protected

◆ GetStringDelegate

Func<string> MoreMountains.Tools.MMPropertyLinkString.GetStringDelegate

◆ SetStringDelegate

Action<string> MoreMountains.Tools.MMPropertyLinkString.SetStringDelegate

The documentation for this class was generated from the following file: