Skip to content

Commit

Permalink
Merge pull request #21 from twitchtv/update-protobuf-with-localization
Browse files Browse the repository at this point in the history
Update resources according to latest Protobuf and bump version
  • Loading branch information
berkos authored Nov 22, 2022
2 parents e522821 + 8fb1cb2 commit f3b82a5
Show file tree
Hide file tree
Showing 4 changed files with 7,905 additions and 217 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ pipenv install --dev
```

### Protocol Buffers

If you want to update the library to use the latest Protobuf file from api.igdb.com you can run ./update-protobuf.sh

#### Windows
This project uses [protoc](https://github.com/protocolbuffers/protobuf/releases) to generate the protocol buffer wrapper.
```
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

setup(
name="igdb-api-v4",
version="0.0.6",
author="Felix Nordén",
author_email="felixnorden@gmail.com",
version="0.1.0",
author="IGDB",
author_email="dev@igdb.com",
description="An API wrapper for IGDB API v4",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down
33 changes: 33 additions & 0 deletions src/igdb/igdbapi.proto
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ message Cover {
string url = 7;
int32 width = 8;
string checksum = 9;
GameLocalization game_localization = 10;
}

message ExternalGameResult {
Expand Down Expand Up @@ -429,6 +430,7 @@ message Game {
repeated Game ports = 54;
repeated Game forks = 55;
repeated LanguageSupport language_supports = 56;
repeated GameLocalization game_localizations = 57;
}


Expand All @@ -446,6 +448,8 @@ enum GameCategoryEnum {
EXPANDED_GAME = 10;
PORT = 11;
FORK = 12;
PACK = 13;
UPDATE = 14;
}


Expand Down Expand Up @@ -493,6 +497,21 @@ message GameEngineLogo {
string checksum = 8;
}

message GameLocalizationResult {
repeated GameLocalization gamelocalizations = 1;
}

message GameLocalization {
uint64 id = 1;
string name = 2;
Cover cover = 3;
Game game = 4;
Region region = 5;
google.protobuf.Timestamp created_at = 6;
google.protobuf.Timestamp updated_at = 7;
string checksum = 8;
}

message GameModeResult {
repeated GameMode gamemodes = 1;
}
Expand Down Expand Up @@ -841,6 +860,20 @@ message PlayerPerspective {
string checksum = 7;
}

message RegionResult {
repeated Region regions = 1;
}

message Region {
uint64 id = 1;
string name = 2;
string category = 3;
string identifier = 4;
google.protobuf.Timestamp created_at = 5;
google.protobuf.Timestamp updated_at = 6;
string checksum = 7;
}

message ReleaseDateResult {
repeated ReleaseDate releasedates = 1;
}
Expand Down
8,080 changes: 7,866 additions & 214 deletions src/igdb/igdbapi_pb2.py

Large diffs are not rendered by default.

0 comments on commit f3b82a5

Please sign in to comment.