Feel 5.9.1
The best way to improve your game's feel and make it extra juicy
Loading...
Searching...
No Matches
MoreMountains.Tools.MMPropertyLinkFloat Class Reference

Float property setter. More...

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

Public Member Functions

override void Initialization (MMProperty property)
 On init, grabs the initial float value.
override void CreateGettersAndSetters (MMProperty property)
 Creates cached getter and setters for properties.
override object GetValue (MMPropertyEmitter emitter, MMProperty property)
 Gets the raw value of the property, a normalized float value, caching the operation if possible.
override void SetValue (MMPropertyReceiver receiver, MMProperty property, object newValue)
 Sets the raw property value, float normalized, caching the operation if possible.
override float GetLevel (MMPropertyEmitter emitter, MMProperty property)
 Returns this property link's level between 0 and 1.
override float GetLevel (MMPropertyReceiver receiver, MMProperty property)
override void SetLevel (MMPropertyReceiver receiver, MMProperty property, float level)
 Sets the level.

Public Attributes

Func< float > GetFloatDelegate
Action< float > SetFloatDelegate

Protected Member Functions

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

Protected Attributes

float _initialValue
float _newValue

Detailed Description

Float property setter.

Member Function Documentation

◆ CreateGettersAndSetters()

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

Creates cached getter and setters for properties.

Parameters
property

Reimplemented from MoreMountains.Tools.MMPropertyLink.

◆ GetLevel() [1/2]

override float MoreMountains.Tools.MMPropertyLinkFloat.GetLevel ( MMPropertyEmitter emitter,
MMProperty property )
virtual

Returns this property link's level between 0 and 1.

Parameters
receiver
property
level
Returns

Reimplemented from MoreMountains.Tools.MMPropertyLink.

◆ GetLevel() [2/2]

override float MoreMountains.Tools.MMPropertyLinkFloat.GetLevel ( MMPropertyReceiver receiver,
MMProperty property )
virtual

◆ GetValue()

override object MoreMountains.Tools.MMPropertyLinkFloat.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 float MoreMountains.Tools.MMPropertyLinkFloat.GetValueOptimized ( MMProperty property)
protectedvirtual

Gets either the cached value or the raw value.

Parameters
property
Returns

◆ Initialization()

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

On init, grabs the initial float value.

Parameters
property

Reimplemented from MoreMountains.Tools.MMPropertyLink.

◆ SetLevel()

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

Sets the level.

Parameters
receiver
property
level

Reimplemented from MoreMountains.Tools.MMPropertyLink.

◆ SetValue()

override void MoreMountains.Tools.MMPropertyLinkFloat.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.MMPropertyLinkFloat.SetValueOptimized ( MMProperty property,
float newValue )
protectedvirtual

Sets either the cached value or the raw value.

Parameters
property
newValue

Member Data Documentation

◆ _initialValue

float MoreMountains.Tools.MMPropertyLinkFloat._initialValue
protected

◆ _newValue

float MoreMountains.Tools.MMPropertyLinkFloat._newValue
protected

◆ GetFloatDelegate

Func<float> MoreMountains.Tools.MMPropertyLinkFloat.GetFloatDelegate

◆ SetFloatDelegate

Action<float> MoreMountains.Tools.MMPropertyLinkFloat.SetFloatDelegate

The documentation for this class was generated from the following file:
  • H:/Code/MoreMountains/feel/Assets/Feel/MMTools/Core/MMRadio/MMProperty/MMPropertyLink/MMPropertyLinkFloat.cs