C# 클래스 ResourceTileSelection, tf_client

Resource tile selection; used for e.g. submitting ids of tiles to perform an action.
파일 보기 프로젝트 열기: wids-eria/tf_client 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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