PluginState

PluginState is a class that encapsulates all run-time states required for a plugin to exist. It's purpose is to allow for hot-reloading and replacing of plugin code, without having to destroy or rebuild run-time data.

Constructors

this
this(Plugin plugin, PluginOptions opts)

Undocumented in source.

Members

Variables

config
Storage config;

Plugin JSON Config file

custom
Variant[string] custom;

Custom state data stored by the plugin

options
PluginOptions options;

PluginOptions struct

storage
Storage storage;

Plugin JSON Storage file (for data)

Meta