List of entries to populate IList or IDictionary properties with.
[System.AttributeUsage(System.AttributeTargets.Field)]public class EntriesAttribute : AttributeRemarks
When used with IDictionary the entries are the keys with no default values.
Members at a glance
| Kind | Members |
|---|---|
| Constructors | EntriesAttribute |
| Fields | Locked |
Constructors
EntriesAttribute
public EntriesAttribute(params object[] entries)List of entries to populate IList or IDictionary properties with.
| Parameter | Type | Description |
|---|---|---|
entries | object[] |
Remarks
When used with IDictionary the entries are the keys with no default values.
When used with IList the entries are the default values.
To set an IList of a specific Count with no default values use MinEntriesAttribute
Has no effect on other parameter types.
For Vector, Quaternion, and Colors in IList their default values must be specified in string form.
Example
[Entries("King", "Queen", "Rook", "Bishop", "Knight", "Pawn")]public IDictionary<string, ClusterResource> GamePieces;
[Entries("<1,2,3>", "<2.5,3.6,4.6>")]public IList<Sansar.Vector> GamePieces;Fields
Locked
public bool LockedLocks the IDictionary or IList properties so entries can not be added or removed.
Generated from the Sansar 47.10.0 client ScriptApi snapshot.