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

Bool property setter. More...

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

Public Member Functions

override void Initialization (MMProperty property)
 On init we grab our initial 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)
 Set the level (more than the link's Threshold > true, less > false)

Public Attributes

Func< bool > GetBoolDelegate
Action< bool > SetBoolDelegate

Protected Member Functions

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

Protected Attributes

bool _initialValue
bool _newValue

Detailed Description

Bool property setter.

Member Function Documentation

◆ CreateGettersAndSetters()

override void MoreMountains.Tools.MMPropertyLinkBool.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.MMPropertyLinkBool.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.MMPropertyLinkBool.GetLevel ( MMPropertyReceiver receiver,
MMProperty property )
virtual

◆ GetValue()

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

Gets either the cached value or the raw value.

Parameters
property
Returns

◆ Initialization()

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

On init we grab our initial value.

Parameters
property

Reimplemented from MoreMountains.Tools.MMPropertyLink.

◆ SetLevel()

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

Set the level (more than the link's Threshold > true, less > false)

Parameters
receiver
property
level

Reimplemented from MoreMountains.Tools.MMPropertyLink.

◆ SetValue()

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

Sets either the cached value or the raw value.

Parameters
property
newValue

Member Data Documentation

◆ _initialValue

bool MoreMountains.Tools.MMPropertyLinkBool._initialValue
protected

◆ _newValue

bool MoreMountains.Tools.MMPropertyLinkBool._newValue
protected

◆ GetBoolDelegate

Func<bool> MoreMountains.Tools.MMPropertyLinkBool.GetBoolDelegate

◆ SetBoolDelegate

Action<bool> MoreMountains.Tools.MMPropertyLinkBool.SetBoolDelegate

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