C# Класс ResourceTileSelection, tf_client

Resource tile selection; used for e.g. submitting ids of tiles to perform an action.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
resource_tile_ids System.Collections.Generic.List

Открытые методы

Метод Описание
Add ( int id ) : void

Add the specified id.

Clear ( ) : void

Clear this instance.

Contains ( int id ) : bool

Test whether selection contains the specified id.

Count ( ) : int

Gets the count.

This is explicitly a method rather than a property, so it is not serialized when written to JSON

GetCurrent ( ) : ResourceTileSelection,

Gets the current resource tile selection.

GetEnumerator ( ) : Enumerator,

Gets the enumerator.

Remove ( int id ) : bool
RemoveAt ( int index ) : void

Removes at index.

ResourceTileSelection ( System ids )

Initializes a new instance of the ResourceTileSelection struct.

ResourceTileSelection ( int ids )

Initializes a new instance of the ResourceTileSelection struct.

ToArray ( ) : int[]

Converts to an array.

ToJson ( ) : string

Converts to json.

this ( int index ) : int

Gets or sets the ResourceTileSelection at the specified index.

Описание методов

Add() публичный Метод

Add the specified id.
public Add ( int id ) : void
id int /// Identifier. ///
Результат void

Clear() публичный Метод

Clear this instance.
public Clear ( ) : void
Результат void

Contains() публичный Метод

Test whether selection contains the specified id.
public Contains ( int id ) : bool
id int /// Identifier ///
Результат bool

Count() публичный Метод

Gets the count.
This is explicitly a method rather than a property, so it is not serialized when written to JSON
public Count ( ) : int
Результат int

GetCurrent() публичный статический Метод

Gets the current resource tile selection.
public static GetCurrent ( ) : ResourceTileSelection,
Результат ResourceTileSelection,

GetEnumerator() публичный Метод

Gets the enumerator.
public GetEnumerator ( ) : Enumerator,
Результат Enumerator,

Remove() публичный Метод

public Remove ( int id ) : bool
id int
Результат bool

RemoveAt() публичный Метод

Removes at index.
public RemoveAt ( int index ) : void
index int /// Index. ///
Результат void

ResourceTileSelection() публичный Метод

Initializes a new instance of the ResourceTileSelection struct.
public ResourceTileSelection ( System ids )
ids System /// Identifiers. ///

ResourceTileSelection() публичный Метод

Initializes a new instance of the ResourceTileSelection struct.
public ResourceTileSelection ( int ids )
ids int /// Identifiers. ///

ToArray() публичный Метод

Converts to an array.
public ToArray ( ) : int[]
Результат int[]

ToJson() публичный Метод

Converts to json.
public ToJson ( ) : string
Результат string

this() публичный Метод

Gets or sets the ResourceTileSelection at the specified index.
public this ( int index ) : int
index int /// Index. ///
Результат int

Описание свойств

resource_tile_ids публичное свойство

The resource_tile_ids field (on the server model).
public System.Collections.Generic.List resource_tile_ids
Результат System.Collections.Generic.List