# Class cocos.tiles.TileSet

    dict --+
           |
          TileSet

Contains a set of Tile objects referenced by some id.

## Methods

| __init__(self, id, properties) x.__init__(...) initializes x; see x.__class__.__doc__ for signature
| generate_id(cls)
| add(self, properties, image, id=None) Add a new Tile to this TileSet, generating a unique id if necessary.
Inherited from `dict`: `__cmp__`, `__contains__`, `__delitem__`, `__eq__`, `__ge__`, `__getattribute__`, `__getitem__`, `__gt__`, `__iter__`, `__le__`, `__len__`, `__lt__`, `__ne__`, `__new__`, `__repr__`, `__setitem__`, `__sizeof__`, `clear`, `copy`, `fromkeys`, `get`, `has_key`, `items`, `iteritems`, `iterkeys`, `itervalues`, `keys`, `pop`, `popitem`, `setdefault`, `update`, `values`

## Class Variables

| tile_id = `0`
Inherited from `dict`: `__hash__`

## Method Details

### __init__

(Constructor) __init__(self, id, properties)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Returns:

      new empty dictionary

Overrides:
  dict.__init__

### add

add(self, properties, image, id=None)

Add a new Tile to this TileSet, generating a unique id if necessary.

Returns the Tile instance.