Struct PluginStorageScope
- Namespace
- AcDream.Plugin.Abstractions
- Assembly
- AcDream.Plugin.Abstractions.dll
Identifies a plugin storage namespace. Scope names are logical names and are sanitized by the host; plugins must not construct filesystem paths.
public readonly record struct PluginStorageScope : IEquatable<PluginStorageScope>
- Implements
- Inherited Members
Constructors
PluginStorageScope(string)
Identifies a plugin storage namespace. Scope names are logical names and are sanitized by the host; plugins must not construct filesystem paths.
public PluginStorageScope(string Name)
Parameters
Namestring
Properties
Global
The plugin-wide namespace.
public static PluginStorageScope Global { get; }
Property Value
Name
public string Name { get; init; }
Property Value
Methods
Character(string)
Creates a character-specific namespace.
public static PluginStorageScope Character(string characterId)
Parameters
characterIdstring
Returns
World(string)
Creates a world-specific namespace.
public static PluginStorageScope World(string worldId)
Parameters
worldIdstring