Skip to content

Commit f3b82a5

Browse files
authored
Merge pull request #21 from twitchtv/update-protobuf-with-localization
Update resources according to latest Protobuf and bump version
2 parents e522821 + 8fb1cb2 commit f3b82a5

File tree

4 files changed

+7905
-217
lines changed

4 files changed

+7905
-217
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ pipenv install --dev
8484
```
8585

8686
### Protocol Buffers
87+
88+
If you want to update the library to use the latest Protobuf file from api.igdb.com you can run ./update-protobuf.sh
89+
8790
#### Windows
8891
This project uses [protoc](https://github.com/protocolbuffers/protobuf/releases) to generate the protocol buffer wrapper.
8992
```

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
setup(
77
name="igdb-api-v4",
8-
version="0.0.6",
9-
author="Felix Nordén",
10-
author_email="felixnorden@gmail.com",
8+
version="0.1.0",
9+
author="IGDB",
10+
author_email="dev@igdb.com",
1111
description="An API wrapper for IGDB API v4",
1212
long_description=long_description,
1313
long_description_content_type="text/markdown",

src/igdb/igdbapi.proto

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ message Cover {
299299
string url = 7;
300300
int32 width = 8;
301301
string checksum = 9;
302+
GameLocalization game_localization = 10;
302303
}
303304

304305
message ExternalGameResult {
@@ -429,6 +430,7 @@ message Game {
429430
repeated Game ports = 54;
430431
repeated Game forks = 55;
431432
repeated LanguageSupport language_supports = 56;
433+
repeated GameLocalization game_localizations = 57;
432434
}
433435

434436

@@ -446,6 +448,8 @@ enum GameCategoryEnum {
446448
EXPANDED_GAME = 10;
447449
PORT = 11;
448450
FORK = 12;
451+
PACK = 13;
452+
UPDATE = 14;
449453
}
450454

451455

@@ -493,6 +497,21 @@ message GameEngineLogo {
493497
string checksum = 8;
494498
}
495499

500+
message GameLocalizationResult {
501+
repeated GameLocalization gamelocalizations = 1;
502+
}
503+
504+
message GameLocalization {
505+
uint64 id = 1;
506+
string name = 2;
507+
Cover cover = 3;
508+
Game game = 4;
509+
Region region = 5;
510+
google.protobuf.Timestamp created_at = 6;
511+
google.protobuf.Timestamp updated_at = 7;
512+
string checksum = 8;
513+
}
514+
496515
message GameModeResult {
497516
repeated GameMode gamemodes = 1;
498517
}
@@ -841,6 +860,20 @@ message PlayerPerspective {
841860
string checksum = 7;
842861
}
843862

863+
message RegionResult {
864+
repeated Region regions = 1;
865+
}
866+
867+
message Region {
868+
uint64 id = 1;
869+
string name = 2;
870+
string category = 3;
871+
string identifier = 4;
872+
google.protobuf.Timestamp created_at = 5;
873+
google.protobuf.Timestamp updated_at = 6;
874+
string checksum = 7;
875+
}
876+
844877
message ReleaseDateResult {
845878
repeated ReleaseDate releasedates = 1;
846879
}

src/igdb/igdbapi_pb2.py

Lines changed: 7866 additions & 214 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)