Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
… into source
  • Loading branch information
JacksAtWork committed Aug 6, 2024
2 parents 3dc0c57 + e99cc1b commit 758f887
Show file tree
Hide file tree
Showing 6 changed files with 114 additions and 0 deletions.
100 changes: 100 additions & 0 deletions pages/api/live-game-data/supported-games/the-first-descendant.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
---
id: the-first-descendant
image: "/img/embed/games/the-first-descendant.jpg"
title: The First Descendant Game events
hide_title: true
draft: true
sidebar_label: The First Descendant
sidebar_position: 0
sidebar_custom_props:
tags:
overwolf_platform: true
electron_platform: true
---

<!-- GENERATED USING /scripts/generate.js -->

<head>
<meta name="keywords" content="API for The First Descendant, The First Descendant API, SDK for The First Descendant, The First Descendant SDK"/>
</head>

<GameInfo gameId={24360} page="docs" />

Please read the [overwolf.games.events](/api/live-game-data) documentation page to learn how to use Overwolf game events.

## Sample Apps
* [The First Descendant game events sample app](https://github.com/overwolf/events-sample-app)

## Available Features

* [gep_internal](#gep_internal)
* [game_info](#game_info)
* [match_info](#match_info)

## Game event status

It is highly recommended to communicate errors and warnings to app users.

Check the current game event status [here](/status/). Alternatively, you can easily check that status from your app itself, [using our API](/topics/using-events/how-to-check-events-status-from-app).

## `gep_internal`

### Info Updates

key | Category | Values | Notes | Since GEP Ver. |
------------ | ------------| ------------------------- | --------------------- | ------------- |
gep_internal | gep_internal| Local + Public version number|See [notes](#gep_internal-note)| 252.0 |

#### *gep_internal* note

Data Example:

```json
{"info":{"gep_internal":{"version_info":"{"local_version":"244.0.0","public_version":"244.0.0","is_updated":true}"}},"feature":"gep_internal"}
```

## `game_info`

### Info Updates

key | Category | Values | Notes | Since GEP Ver. |
------------ | ------------| ------------------------- | --------------------- | ------------- |
scene | game_info | The current scene-state |See [notes](#scene-note)| 252.0 |

#### *scene* note

Possible Scene values:

* lobby
* ingame

Data Example:

```json
{"feature": "game_info", "category": "game_info", "key": "scene", "data": "lobby"}
```

## `match_info`

### Events

Event | Event Data | Fired When | Notes | Since GEP Ver. |
------------| -------------| --------------| -------------------------------------- | ---------------|
match_start | nulll | In the beginning of each match| See [notes](#match_start-note) |244.0|
match_end | nulll | At the end of each match| See [notes](#match_end-note) |244.0|

#### *match_start* note

Data Example:

```json
{"events":[{"name":"match_start","data":null}]}
```

#### *match_end* note

Data Example:

```json
{"events":[{"name":"match_end","data":null}]}
```
9 changes: 9 additions & 0 deletions pages/api/live-game-data/supported-games/valorant.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ key | Category | Values | Notes |
pseudo_match_id | match_info | The current match’s ID code.<br></br><br></br>Example:<br></br><br></br> `0c0ea3df-97ea-4d3a-b1f6-f8e34042251f` | This is an Overwolf-generated code, unrelated to Riot. | 159.0 |
round_number | match_info | Number of current round. |See [notes](#round_number-note)| 149.0 |
score | match_info | Amount of rounds won/lost.|See [notes](#score-note)| 149.0 |
match_score | match_info | Match score by teams|See [notes](#match_score-note)| 258.0 |
round_phase | match_info | Current state of the round.|See [notes](#round_phase-note)| 149.0 |
team | match_info | Attack / Defense. |See [notes](#team-note)| 149.0 |
match_outcome| match_info | victory/defeat/draw. |See [notes](#match_outcome-note)| 149.0 |
Expand Down Expand Up @@ -197,6 +198,14 @@ Data example:
{"info":{"match_info":{"score":"{"won":9,"lost":2}"}},"feature":"match_info"}
```

#### *match_score* note

Data example:

```json
{"feature":"match_info","category":"match_info","key":"match_score","value":"{\"team_0\":0,\"team_1\":2}"}
```

#### *round_phase* note

Data Example:
Expand Down
5 changes: 5 additions & 0 deletions src/config/games-metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,11 @@ const metaData: GameMetaData[] = [
path: 'stormgate',
name: 'Stormgate',
},
{
id: 24360,
path: 'the-first-descendant',
name: 'The First Descendant',
},
{
id: 24000,
path: 'helldivers-2',
Expand Down
Binary file added static/img/embed/games/the-first-descendant.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/game-logos/large/the-first-descendant.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/game-logos/the-first-descendant.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 758f887

Please sign in to comment.