Murl Engine Lua Addon API  Version 1.0 beta
Murl.Logic.AnimationKey.UInt32

A template class to create key objects for the Animation class.


Table members

Functions


Murl.Logic.AnimationKey.UInt32.new()

The default constructor.

Murl.Logic.AnimationKey.UInt32 new()

Returns
Murl.Logic.AnimationKey.UInt32

Murl.Logic.AnimationKey.UInt32.new(time, value)

The constructor including time and value.

Murl.Logic.AnimationKey.UInt32 new(Number time, Integer value)

Parameters
timeThe time for the key in seconds.
valueThe value for the key.
Returns
Murl.Logic.AnimationKey.UInt32

Murl.Logic.AnimationKey.UInt32.new(time, value, interpolation)

The constructor including time, value and interpolation.

Murl.Logic.AnimationKey.UInt32 new(Number time, Integer value, Murl.IEnums.Interpolation interpolation)

Parameters
timeThe time for the key in seconds.
valueThe value for the key.
interpolationThe interpolation type.
Returns
Murl.Logic.AnimationKey.UInt32

Murl.Logic.AnimationKey.UInt32.new(time, value, linear)

The constructor including time, value and linear flag.

Murl.Logic.AnimationKey.UInt32 new(Number time, Integer value, Boolean linear)

Parameters
timeThe time for the key in seconds.
valueThe value for the key.
lineartrue for linear interpolation, false for constant interpolation.
Returns
Murl.Logic.AnimationKey.UInt32


Methods


IsEqual(other)

Compare the animation key to another one.

Boolean IsEqual(Murl.Logic.AnimationKey.UInt32 other)

Parameters
otherThe key to compare.
Returns
Boolean true if both keys are identical.


Metamethods


The equal to operator.

The "equal to" comparison operator, calls IsEqual().

Returns
Boolean = Murl.Logic.AnimationKey.UInt32 == Murl.Logic.AnimationKey.UInt32


Instance Members


mTime

The time of the key.

Returns
Number

mValue

The value of the key.

Returns
Integer

mInterpolation

The interpolation type of the key.

Returns
Murl.IEnums.Interpolation