This repository has been archived by the owner on Sep 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
106 additions
and
0 deletions.
There are no files selected for viewing
101 changes: 101 additions & 0 deletions
101
pages/api/live-game-data/supported-games/once-human.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}]} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.