Class SharedTableCollectionMetadata
Shared Metadata is data that is associated to all tables that use the same SharedTableData, also known as an AssetTableCollection. Multiple table entries can be included in the SharedTableCollectionMetadata and The tables that use each table entry are recorded.
Namespace: UnityEngine.Localization.Metadata
Syntax
public abstract class SharedTableCollectionMetadata : object, IMetadata, ISerializationCallbackReceiver
Properties
EntriesLookup
Dictionary that contains all the entries Key Ids that are using this, the HashSet includes the country codes of the tables that are using the metadata.
Declaration
public Dictionary<long, HashSet<string>> EntriesLookup { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<Int64, HashSet<String>> |
IsEmpty
Are any table entries currently associated to this Metadata?
Declaration
public bool IsEmpty { get; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
AddEntry(Int64, String)
Add the table entry for a specific table to the shared Metadata.
Declaration
public void AddEntry(long keyId, string code)
Parameters
Type | Name | Description |
---|---|---|
Int64 | keyId | The Id of the table entry. |
String | code | The table culture code. |
Contains(Int64)
Is the table entry associated to this Metadata?
Declaration
public bool Contains(long keyId)
Parameters
Type | Name | Description |
---|---|---|
Int64 | keyId |
Returns
Type | Description |
---|---|
Boolean |
Contains(Int64, String)
Is the table entry and culture code associated to this Metadata?
Declaration
public bool Contains(long keyId, string code)
Parameters
Type | Name | Description |
---|---|---|
Int64 | keyId | |
String | code |
Returns
Type | Description |
---|---|
Boolean |
RemoveEntry(Int64, String)
Remove the table entry for a specific table from the shared Metadata.
Declaration
public void RemoveEntry(long keyId, string code)
Parameters
Type | Name | Description |
---|---|---|
Int64 | keyId | |
String | code |