This property can't be read in early-execution mode.
ReadonlyisValid
isValid:boolean
Remarks
Returns whether the component is valid. A component is
considered valid if its owner is valid, in addition to any
addition to any additional validation required by the
component.
World Ready
This property can't be read in early-execution mode.
ReadonlytypeId
typeId:string
Remarks
Identifier of the component.
World Ready
This property can't be read in early-execution mode.
Methods
resetToDefaultValue
resetToDefaultValue():void
Returns void
Remarks
Resets the current value of this attribute to the defined
default value.
Write Privilege
This function can't be called in read-only mode.
Throws
This function can throw errors.
World Ready
This function can't be called in early-execution mode.
resetToMaxValue
resetToMaxValue():void
Returns void
Remarks
Resets the current value of this attribute to the maximum
defined value.
Write Privilege
This function can't be called in read-only mode.
Throws
This function can throw errors.
World Ready
This function can't be called in early-execution mode.
resetToMinValue
resetToMinValue():void
Returns void
Remarks
Resets the current value of this attribute to the minimum
defined value.
Write Privilege
This function can't be called in read-only mode.
Throws
This function can throw errors.
World Ready
This function can't be called in early-execution mode.
setCurrentValue
setCurrentValue(value:number):boolean
Parameters
value: number
Returns boolean
Remarks
Sets the current value of this attribute.
Write Privilege
This function can't be called in read-only mode.
Throws
If the value is out of bounds, an ArgumentOutOfBounds Error
is thrown.
This is a base abstract class for any entity component that centers around a number and can have a minimum, maximum, and default defined value.