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

Commit

Permalink
Once Human
Browse files Browse the repository at this point in the history
  • Loading branch information
adircoh committed Aug 19, 2024
1 parent 9f518e6 commit f455197
Show file tree
Hide file tree
Showing 5 changed files with 106 additions and 0 deletions.
101 changes: 101 additions & 0 deletions pages/api/live-game-data/supported-games/once-human.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
---
id: once-human
image: "/img/embed/games/once-human.jpg"
title: Once Human Game events
hide_title: truepages/api/live-game-data/supported-games/once-human.mdx
sidebar_label: Once Human
draft: true
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 Once Human, Once Human API, SDK for Once Human, Once Human SDK"/>
</head>

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

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

## Sample Apps
* [Once Human 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)| 258.0 |

#### *gep_internal* note

Data Example:

```json
{"info":{"gep_internal":{"version_info":"{"local_version":"244.0.0","public_version":"258.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) | 258.0 |

#### *scene* note

Possible Scene values:

* lobby
* ingame
* mission_failed

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) |258.0|
match_end | nulll | At the end of each match| See [notes](#match_end-note) |258.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}]}
```
5 changes: 5 additions & 0 deletions src/config/games-metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,11 @@ const metaData: GameMetaData[] = [
path: 'the-first-descendant',
name: 'The First Descendant',
},
{
id: 23930,
path: 'once-human',
name: 'Once Human',
},
{
id: 24000,
path: 'helldivers-2',
Expand Down
Binary file added static/img/embed/games/once-human.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/once-human.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/once-human.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 f455197

Please sign in to comment.