# AssetsFinder

**`AssetsFinder`** - a class that helps to find assets and localization that are used inside [**`EnkaNetwork`**](https://kravets.gitbook.io/enkanetwork/class-description/enkanetwork)

<figure><img src="https://129309102-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHRuRVaMzLuUsL0mMhv72%2Fuploads%2FzpNw41Ys8OqRWov9b8kD%2Fimage.png?alt=media&#x26;token=bd906806-1cd8-46d2-b300-4e88d8f7f2e0" alt=""><figcaption></figcaption></figure>

You can access **`characters`**, **`namecards`**, **`costumes`**, **`weapons`**, **`reliquaries`**, **`reliquarySets`**, **`constellations`** and **`skills`**

They allow you to find what you need in assets and its localization

## How to use?

When referring to something, look at the **hints**. Usually, they can be used to find data about an entity using **`getById()`** and the name of this entity in your chosen localization using **`getName()`**

<figure><img src="https://129309102-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHRuRVaMzLuUsL0mMhv72%2Fuploads%2F1zQa89NwjerBUSD9nd6F%2Fimage.png?alt=media&#x26;token=7c4366f5-71e0-4995-ba4d-d6fe7a2f08ae" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
When searching for **characters**, it is recommended to use **two parameters** at once, if possible. Since due to the characteristics of the **travelers**, you will not get his elements without specifying a **skillDepotId**
{% endhint %}

<figure><img src="https://129309102-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHRuRVaMzLuUsL0mMhv72%2Fuploads%2FXKAeqymv5OEsLrV28oOH%2Fimage.png?alt=media&#x26;token=74f88ccc-e89b-4594-a023-cb6aa75d715b" alt=""><figcaption></figcaption></figure>

## Examples

Getting data for character «**Raiden Shogun**» by his id

```typescript
enka.assets.characters.getById(10000052);
```

![](https://129309102-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHRuRVaMzLuUsL0mMhv72%2Fuploads%2FLEuRRsDwJ7iWN4sLZeWm%2Fimage.png?alt=media\&token=4191886d-5611-4851-a22e-e595b01d45d4)

and get their name

{% hint style="info" %}
**`Language`** in getName() is required!
{% endhint %}

```typescript
const character = enka.assets.characters.getById(10000052);

enka.assets.characters.getName(character, "RU"); // Райдэн
```

<pre class="language-typescript" data-overflow="wrap"><code class="lang-typescript">enka.assets.characters.getById(10000007); // First in list Anemo Lumine
enka.assets.characters.getById(10000007, 704); // Anemo Lumine
// Where is 705??
enka.assets.characters.getById(10000007, 706); // Geo Lumine
<strong>enka.assets.characters.getById(10000007, 707); // Electro Lumine
</strong>enka.assets.characters.getById(10000007, 708); // Dendro Lumine
</code></pre>

```typescript
const costume = enka.assets.costumes.getById(200201);

enka.assets.costumes.getName(costume, "EN"); // Springbloom Missive
```

and etc
