Search Results for

    Show / Hide Table of Contents

    Class CityObjectList.Attributes

    シリアライズ可能なAttributeMapデータです。

    Inheritance
    System.Object
    CityObjectList.Attributes
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: PLATEAU.CityInfo
    Assembly: cs.temp.dll.dll
    Syntax
    public class Attributes

    Properties

    Count

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    System.Int32

    Item[String]

    Declaration
    public CityObjectList.Attributes.Value this[string key] { get; }
    Parameters
    Type Name Description
    System.String key
    Property Value
    Type Description
    CityObjectList.Attributes.Value

    Keys

    Declaration
    public IEnumerable<string> Keys { get; }
    Property Value
    Type Description
    IEnumerable<System.String>

    Values

    Declaration
    public IEnumerable<CityObjectList.Attributes.Value> Values { get; }
    Property Value
    Type Description
    IEnumerable<CityObjectList.Attributes.Value>

    Methods

    AddAttribute(String, AttributeType, Object)

    Declaration
    public void AddAttribute(string key, AttributeType type, object value)
    Parameters
    Type Name Description
    System.String key
    AttributeType type
    System.Object value

    AddAttribute(String, NativeAttributeValue)

    Declaration
    public void AddAttribute(string key, NativeAttributeValue value)
    Parameters
    Type Name Description
    System.String key
    NativeAttributeValue value

    AddAttributes(CityObjectList.Attributes)

    AttributesにAttributesを追加します。 すでに存在するキーは無視されます。

    Declaration
    public void AddAttributes(CityObjectList.Attributes attrs)
    Parameters
    Type Name Description
    CityObjectList.Attributes attrs

    DebugString(Int32)

    Declaration
    public string DebugString(int indent)
    Parameters
    Type Name Description
    System.Int32 indent
    Returns
    Type Description
    System.String

    GetEnumerator()

    Declaration
    public IEnumerator<KeyValuePair<string, CityObjectList.Attributes.Value>> GetEnumerator()
    Returns
    Type Description
    IEnumerator<KeyValuePair<System.String, CityObjectList.Attributes.Value>>

    TryGetValue(String, out CityObjectList.Attributes.Value)

    属性情報のキーバリューペアのうち、キーを指定してバリューを得ます。 成否をboolで返します。

    Declaration
    public bool TryGetValue(string key, out CityObjectList.Attributes.Value val)
    Parameters
    Type Name Description
    System.String key
    CityObjectList.Attributes.Value val
    Returns
    Type Description
    System.Boolean

    TryGetValueWithSlash(String, out CityObjectList.Attributes.Value)

    属性情報のキーバリューペアのうち、キーを指定してバリューを得ます。 キーにスラッシュ"/"を含む場合、属性情報が入れ子になっていると見なし、再帰的にキーを探索してバリューを取得します。 成否をboolで返します。

    Declaration
    public bool TryGetValueWithSlash(string keyWithSlash, out CityObjectList.Attributes.Value val)
    Parameters
    Type Name Description
    System.String keyWithSlash
    CityObjectList.Attributes.Value val
    Returns
    Type Description
    System.Boolean
    In This Article
    Back to top PLATEAU SDK for Unity