Class ConfigKeySessionShare<T>
- Namespace
- MonkeyLoader.Resonite.Configuration
- Assembly
- MonkeyLoader.Resonite.Integration.dll
Represents the functionality for an IDefiningConfigKey<T>,
which makes its local value available as a shared resource in Resonite FrooxEngine.Worlds.
Optionally allows writing back changes from the FrooxEngine.World to the config item.
public sealed class ConfigKeySessionShare<T> : ConfigKeySessionShare<T, T>, IConfigKeySessionShare<T>, IConfigKeySessionShare<T, T>, IConfigKeyComponent<IDefiningConfigKey<T>>, IComponent<IDefiningConfigKey<T>>, IConfigKeySessionShare
Type Parameters
TThe type of the config item's value.
- Inheritance
-
ConfigKeySessionShare<T, T>ConfigKeySessionShare<T>
- Implements
-
IConfigKeySessionShare<T, T>
- Inherited Members
Constructors
ConfigKeySessionShare(T?, bool)
Creates a new IConfigKeySessionShare<T> component,
which makes its config key's local value available as a shared resource in Resonite sessions.
Optionally allows writing back changes from the session to the config item.
public ConfigKeySessionShare(T? defaultValue = default, bool allowWriteBack = false)
Parameters
defaultValueTThe default value for the shared config item for users that don't have it themselves.
allowWriteBackboolWhether to allow writing back changes from the session to the config item.