Class PluginState

PluginState is a class the encapsulates all run-time state required for a plugin to exist. It's purpose is to allow for hot-reloading and replacing of plugin code, without destroy/rebuilding run-time data.

Inherits from

  • Object (base class)

Constructors

Name Description
this

Fields

Name Type Description
config Storage Plugin JSON Config file
custom std.variant.VariantN!(32L)[string] Custom state data stored by the plugin
options PluginOptions PluginOptions struct
storage Storage Plugin JSON Storage file (for data)