> For the complete documentation index, see [llms.txt](https://docs.eternals.game/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.eternals.game/gdk-documentation/unity/api-reference/v1.0.0/ninetyeight.neuserpet.md).

# NinetyEight.NEUserPet

## Struct NEUserPet <a href="#ninetyeight_neuserpet" id="ninetyeight_neuserpet"></a>

Namespace: NinetyEight\
Assembly: APIReference.dll

Represents a user's pet in the game, including its attributes such as type, rarity, and evolution status.\
Used to track a player's pets and their progression.

```csharp
[Serializable]
public struct NEUserPet
```

**Inherited Members**

[object.Equals(object?)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object\)),[object.Equals(object?, object?)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object-system-object\)),[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode),[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype),[object.ReferenceEquals(object?, object?)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals),[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

### Fields

#### evolution <a href="#ninetyeight_neuserpet_evolution" id="ninetyeight_neuserpet_evolution"></a>

The evolution level of the pet, or null if no evolution.

```csharp
public int? evolution
```

**Field Value**

[int](https://learn.microsoft.com/dotnet/api/system.int32)?

#### gender <a href="#ninetyeight_neuserpet_gender" id="ninetyeight_neuserpet_gender"></a>

The gender of the pet (e.g., 0 for male, 1 for female).

```csharp
public int gender
```

**Field Value**

[int](https://learn.microsoft.com/dotnet/api/system.int32)

#### id <a href="#ninetyeight_neuserpet_id" id="ninetyeight_neuserpet_id"></a>

The unique identifier for the pet.

```csharp
public int id
```

**Field Value**

[int](https://learn.microsoft.com/dotnet/api/system.int32)

#### petCode <a href="#ninetyeight_neuserpet_petcode" id="ninetyeight_neuserpet_petcode"></a>

A unique code identifying the pet.

```csharp
public string petCode
```

**Field Value**

[string](https://learn.microsoft.com/dotnet/api/system.string)

#### petId <a href="#ninetyeight_neuserpet_petid" id="ninetyeight_neuserpet_petid"></a>

The specific ID of the pet.

```csharp
public int petId
```

**Field Value**

[int](https://learn.microsoft.com/dotnet/api/system.int32)

#### rarityCode <a href="#ninetyeight_neuserpet_raritycode" id="ninetyeight_neuserpet_raritycode"></a>

The rarity of the pet (e.g., "common", "rare").

```csharp
public string rarityCode
```

**Field Value**

[string](https://learn.microsoft.com/dotnet/api/system.string)

#### tokenId <a href="#ninetyeight_neuserpet_tokenid" id="ninetyeight_neuserpet_tokenid"></a>

A token ID representing the pet, or -1 if not assigned.

```csharp
public int? tokenId
```

**Field Value**

[int](https://learn.microsoft.com/dotnet/api/system.int32)?

#### type <a href="#ninetyeight_neuserpet_type" id="ninetyeight_neuserpet_type"></a>

The type of the pet (e.g., "dragon", "dog").

```csharp
public string type
```

**Field Value**

[string](https://learn.microsoft.com/dotnet/api/system.string)
