← Back to Stormify Documentation

StormifyEntity

abstract class StormifyEntity : StormifyAware

Base class for entities that carry a reference to the Stormify instance that loaded them. This allows entity-level operations (e.g. AutoTable.populate) to use the correct Stormify instance without requiring it as an explicit parameter.

Inheritors

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun attachTo(stormify: Stormify)

Binds stormify to this object. Implementations store the reference and may reset any state that depends on the previously-attached instance.