Interactable

scalata.domain.entities.components.Interactable
trait Interactable

Type-class-style capability for entities that can be interacted with.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Item
class Dust
class ExitDoor
class Potion
class Sign
class Weapon
Show all

Members list

Value members

Abstract methods

Perform the interaction logic.

Perform the interaction logic.

Value parameters

gameSession

current immutable snapshot

Attributes

Returns

updated snapshot or an error wrapped in GameResult