MetaKey<T>
Namespace Mc.Scripting.Services · Kind class (sealed)
public sealed class MetaKey<T>A typed key of player meta, declared by the plugin that owns the value (new MetaKey<int>("charter:level")). Only string, int, bool and TimeSpan are allowed: a value of another type is refused by the provider, so readers never parse text.
Constructors
Section titled “Constructors”| Member | Description |
|---|---|
MetaKey(string name) |
Creates a key. |
Constructor
Section titled “Constructor”public MetaKey(string name)Creates a key. Throws for a value type other than string, int, bool or TimeSpan.
Parameters
| Name | Type | Description |
|---|---|---|
name |
string |
The key, namespaced by its owner (“charter:level”). |
Properties
Section titled “Properties”| Member | Description |
|---|---|
string Name { get; } |
The key. |
public string Name { get; }The key.
Methods
Section titled “Methods”| Member | Description |
|---|---|
override string ToString() |
ToString
Section titled “ToString”public override string ToString()Returns string