SCROLLDynamic

scroll.internal.dispatch.SCROLLDynamic
trait SCROLLDynamic extends Dynamic

This Trait enables dynamic invocation of role methods that are not natively available on the player object.

Attributes

Graph
Supertypes
trait Dynamic
class Object
trait Matchable
class Any
Known subtypes
class Compartment.this.Player[W]

Members list

Value members

Abstract methods

def applyDynamic[E](name: String)(args: Any*)(using dispatchQuery: DispatchQuery = ...): Either[SCROLLError, E]

Allows to call a function with arguments.

Allows to call a function with arguments.

Type parameters

E

return type

Value parameters

args

the arguments handed over to the given function

dispatchQuery

the dispatch rules that should be applied

name

the function name

Attributes

Returns

the result of the function call or an appropriate error

def applyDynamicNamed[E](name: String)(args: (String, Any)*)(using dispatchQuery: DispatchQuery = ...): Either[SCROLLError, E]

Allows to call a function with named arguments.

Allows to call a function with named arguments.

Type parameters

E

return type

Value parameters

args

tuple with the the name and argument handed over to the given function

dispatchQuery

the dispatch rules that should be applied

name

the function name

Attributes

Returns

the result of the function call or an appropriate error

def selectDynamic[E](name: String)(using dispatchQuery: DispatchQuery = ...): Either[SCROLLError, E]

Allows to read a field.

Allows to read a field.

Type parameters

E

return type

Value parameters

dispatchQuery

the dispatch rules that should be applied

name

of the field

Attributes

Returns

the result of the field access or an appropriate error

def updateDynamic(name: String)(value: Any)(using dispatchQuery: DispatchQuery = ...): Unit

Allows to write field updates.

Allows to write field updates.

Value parameters

dispatchQuery

the dispatch rules that should be applied

name

of the field

value

the new value to write

Attributes