Interface IAiPromptPreferencesStore
Minimal string key/value persistence seam AiPromptUserInstructionLibrary depends on —
isolates UnityEditor.EditorPrefs access behind an explicit, constructor-injected
dependency so persistence can be tested against a fake instead of real editor-global state. A local
duplicate of the Hub's own ISerenityHubKeyValueStore seam, kept in-module deliberately: this
asmdef must not reference the Hub assembly for one tiny interface.
Namespace: Serenity.Editor.AiPromptBuilder
Assembly: Serenity.AiPromptBuilder.Editor.dll
Syntax
public interface IAiPromptPreferencesStore
Methods
SetValue(string, string)
Writes value to key, replacing any existing value.
Declaration
void SetValue(string key, string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | |
| string | value |
TryGetValue(string, out string)
Reads the value stored at key, if any.
Declaration
bool TryGetValue(string key, out string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | |
| string | value |
Returns
| Type | Description |
|---|---|
| bool |