|
| bool | ContainsFloat (string prefix, string key) |
| | Gets if the specified prefix + key combination has a float value assigned.
|
| |
| bool | ContainsInt (string prefix, string key) |
| | Gets if the specified prefix + key combination has an integer value assigned.
|
| |
| bool | ContainsString (string prefix, string key) |
| | Gets if the specified prefix + key combination has a string value assigned.
|
| |
| float? | GetFloat (string prefix, string key) |
| | Gets the stored float with the specified key.
|
| |
| int? | GetInt (string prefix, string key) |
| | Gets the stored integer with the specified key.
|
| |
| string? | GetString (string prefix, string key) |
| | Gets the stored string with the specified key.
|
| |
| bool | Remove (string prefix, string key) |
| | Removes an.
|
| |
|
void | Set (string prefix, string key, float value, bool persist=false) |
| |
| void | Set (string prefix, string key, int value, bool persist=false) |
| | Stores the specified value using the specified unique key.
|
| |
|
void | Set (string prefix, string key, string value, bool persist=false) |
| |
◆ ContainsFloat()
| bool Anvil.Services.ObjectStorage.ContainsFloat |
( |
string | prefix, |
|
|
string | key ) |
|
inline |
Gets if the specified prefix + key combination has a float value assigned.
- Parameters
-
| prefix | The storage prefix/group. |
| key | The storage key. |
- Returns
- True if a value exists, otherwise false.
◆ ContainsInt()
| bool Anvil.Services.ObjectStorage.ContainsInt |
( |
string | prefix, |
|
|
string | key ) |
|
inline |
Gets if the specified prefix + key combination has an integer value assigned.
- Parameters
-
| prefix | The storage prefix/group. |
| key | The storage key. |
- Returns
- True if a value exists, otherwise false.
◆ ContainsString()
| bool Anvil.Services.ObjectStorage.ContainsString |
( |
string | prefix, |
|
|
string | key ) |
|
inline |
Gets if the specified prefix + key combination has a string value assigned.
- Parameters
-
| prefix | The storage prefix/group. |
| key | The storage key. |
- Returns
- True if a value exists, otherwise false.
◆ GetFloat()
| float? Anvil.Services.ObjectStorage.GetFloat |
( |
string | prefix, |
|
|
string | key ) |
|
inline |
Gets the stored float with the specified key.
- Parameters
-
| prefix | The storage prefix/group. |
| key | The storage key. |
- Returns
- The float value stored with the specified key, otherwise null if the key has no value populated.
◆ GetInt()
| int? Anvil.Services.ObjectStorage.GetInt |
( |
string | prefix, |
|
|
string | key ) |
|
inline |
Gets the stored integer with the specified key.
- Parameters
-
| prefix | The storage prefix/group. |
| key | The storage key. |
- Returns
- The integer value stored with the specified key, otherwise null if the key has no value populated.
◆ GetString()
| string? Anvil.Services.ObjectStorage.GetString |
( |
string | prefix, |
|
|
string | key ) |
|
inline |
Gets the stored string with the specified key.
- Parameters
-
| prefix | The storage prefix/group. |
| key | The storage key. |
- Returns
- The string stored with the specified key, otherwise null if the key has no value populated.
◆ Remove()
| bool Anvil.Services.ObjectStorage.Remove |
( |
string | prefix, |
|
|
string | key ) |
|
inline |
Removes an.
- Parameters
-
| prefix | The storage prefix/group containing the key to be removed. |
| key | The storage key to be removed. |
- Returns
- True if an entry was removed, otherwise false.
◆ Set()
| void Anvil.Services.ObjectStorage.Set |
( |
string | prefix, |
|
|
string | key, |
|
|
int | value, |
|
|
bool | persist = false ) |
|
inline |
Stores the specified value using the specified unique key.
- Parameters
-
| prefix | The storage prefix/group. |
| key | The storage key. |
| value | The value to store. |
| persist | Set to true to include this value when the object is serialized. |
The documentation for this class was generated from the following file:
- NWN.Anvil/src/main/Services/ObjectStorage/ObjectStorage.cs