C# Class ResourceTileSelection, tf_client

Resource tile selection; used for e.g. submitting ids of tiles to perform an action.
显示文件 Open project: wids-eria/tf_client Class Usage Examples

Public Properties

Property Type Description
resource_tile_ids System.Collections.Generic.List

Public Methods

Method Description
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.

Method Details

Add() public method

Add the specified id.
public Add ( int id ) : void
id int /// Identifier. ///
return void

Clear() public method

Clear this instance.
public Clear ( ) : void
return void

Contains() public method

Test whether selection contains the specified id.
public Contains ( int id ) : bool
id int /// Identifier ///
return bool

Count() public method

Gets the count.
This is explicitly a method rather than a property, so it is not serialized when written to JSON
public Count ( ) : int
return int

GetCurrent() public static method

Gets the current resource tile selection.
public static GetCurrent ( ) : ResourceTileSelection,
return ResourceTileSelection,

GetEnumerator() public method

Gets the enumerator.
public GetEnumerator ( ) : Enumerator,
return Enumerator,

Remove() public method

public Remove ( int id ) : bool
id int
return bool

RemoveAt() public method

Removes at index.
public RemoveAt ( int index ) : void
index int /// Index. ///
return void

ResourceTileSelection() public method

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

ResourceTileSelection() public method

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

ToArray() public method

Converts to an array.
public ToArray ( ) : int[]
return int[]

ToJson() public method

Converts to json.
public ToJson ( ) : string
return string

this() public method

Gets or sets the ResourceTileSelection at the specified index.
public this ( int index ) : int
index int /// Index. ///
return int

Property Details

resource_tile_ids public_oe property

The resource_tile_ids field (on the server model).
public System.Collections.Generic.List resource_tile_ids
return System.Collections.Generic.List