AttributeBuilder

class AttributeBuilder(attributable: Attributable)

A DSL builder for modifying entity attributes.

This class provides operator overloading for getting and setting attribute values in a more idiomatic Kotlin way.

Parameters

attributable

The attributable entity whose attributes will be modified

Constructors

Link copied to clipboard
constructor(attributable: Attributable)

Functions

Link copied to clipboard
operator fun get(attribute: Attribute): Double

Gets the base value of the specified attribute.

Link copied to clipboard
operator fun set(attribute: Attribute, value: Double)

Sets the base value of the specified attribute.