<component name="Player"> <FloatAttribute name="maxHealth" defaultValue="100.0" /> </component>
class FloatAttribute(keyString: String, key: Int, component: ComponentBase, initialValue: Float) : TypedAbstractAttribute<Float>
FloatAttribute
(
keyString
, key
, component
, initialValue
)
|
Signature
constructor(keyString: String, key: Int, component: ComponentBase, initialValue: Float) Parameters keyString: String
The string key for this attribute
key: Int
The integer key for this attribute
initialValue: Float
The initial value for this attribute
Returns FloatAttribute |
value
: Float
[Get][Set] |
Signature
var value: Float |
checkIfComponentIsOld
()
|
Signature
fun checkIfComponentIsOld() |
checkIfComponentIsRecycled
()
|
Signature
fun checkIfComponentIsRecycled() |
get
()
|
Signature
open override fun get(): Any Returns Any |
getValue
(
thisRef
, property
)
|
Signature
operator fun getValue(thisRef: Any?, property: KProperty<*>): Float Parameters thisRef: Any?property: KPropertyReturns Float |
keyName
()
|
Signature
fun keyName(): String Returns String |
set
(
value
)
|
Signature
open override fun set(value: Any) Parameters value: Any |
setValue
(
thisRef
, property
, value
)
|
Signature
operator fun setValue(thisRef: Any?, property: KProperty<*>, value: Float) Parameters thisRef: Any?property: KPropertyvalue: Float |