Table of Contents

Class ServerDictionary

Namespace
Glitch9.AIDevKit

Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard. Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters, booleans, or numbers.

public class ServerDictionary
Inheritance
object
ServerDictionary

Properties

Count

public int Count { get; }

Property Value

int

Methods

Clear()

public void Clear()

ContainsKey(string)

public bool ContainsKey(string key)

Parameters

key string

Returns

bool

Get<T>(string)

public T Get<T>(string key)

Parameters

key string

Returns

T

Type Parameters

T

IsNullOrEmpty()

public bool IsNullOrEmpty()

Returns

bool

Remove(string)

public bool Remove(string key)

Parameters

key string

Returns

bool

Set<T>(string, T)

public void Set<T>(string key, T value)

Parameters

key string
value T

Type Parameters

T

ToDictionary()

public Dictionary<string, string> ToDictionary()

Returns

Dictionary<string, string>

TryAdd<T>(string, T)

public bool TryAdd<T>(string key, T value)

Parameters

key string
value T

Returns

bool

Type Parameters

T

TryGetValue<T>(string, out T)

public bool TryGetValue<T>(string key, out T value)

Parameters

key string
value T

Returns

bool

Type Parameters

T