<component name="MyComponent"> <StringAttribute name="name" defaultValue="Player" /> </component>
class StringAttribute(key: Int, component: ComponentBase, attributeIndex: Int, initialValue: String) : TypedAbstractAttribute<String>
StringAttribute
(
key
, component
, attributeIndex
, initialValue
)
|
Signature
constructor(key: Int, component: ComponentBase, attributeIndex: Int, initialValue: String) Parameters key: Int
The integer key for this attribute
attributeIndex: IntinitialValue: String
The initial value for this attribute
Returns StringAttribute |
value
: String
[Get][Set] |
Signature
var value: String |
version
: ULong
[Get][Set] |
Signature
open override var version: ULong |
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<*>): String Parameters thisRef: Any?property: KPropertyReturns 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: String) Parameters thisRef: Any?property: KPropertyvalue: String |