Skip to content
This repository has been archived by the owner on Jun 11, 2022. It is now read-only.

Commit

Permalink
Merge pull request #566 from Arcana/dev
Browse files Browse the repository at this point in the history
Proto update & test fix
  • Loading branch information
Crazy-Duck authored Dec 21, 2017
2 parents 089cae1 + 35b75c9 commit 1d9e01c
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 9 deletions.
4 changes: 0 additions & 4 deletions examples/example.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,6 @@ var onSteamLogOn = function onSteamLogOn(logonResp) {
// Dota2.requestLeaguesInMonth(10, 2013, 0, function(err, data) { // November 2013
// console.log('Found ' + data.leagues.length + ' leagues full of schedule data :D');
// });
// Dota2.requestLeaguesInMonth(10, 2013); // November 2013
// Dota2.on("leaguesInMonthData", function(month, year, leagues) {
// console.log('Found ' + leagues.length + ' leagues full of schedule data :D');
// });
/* SOURCETV */
// Dota2.requestSourceTVGames({});
// Dota2.on("sourceTVGamesData", function(data) { // May 2015
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"name": "dota2",
"version": "6.0.1",
"dependencies": {
"deferred": "^0.7.8",
"deferred": "^0.7.9",
"long": "^3.2.0",
"merge": "^1.2.0",
"moment": "^2.19.2",
"protobufjs": "^6.8.0",
"moment": "^2.19.4",
"protobufjs": "^6.8.3",
"steam": "^1.4.0",
"winston": "^2.3.1"
},
Expand Down
11 changes: 10 additions & 1 deletion proto/dota_gcmessages_client.proto
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ message CMsgDOTARequestMatches {
optional uint64 start_at_match_id = 11;
optional fixed32 min_players = 12;
optional uint32 request_id = 13;
optional bool tournament_games_only = 14;
optional uint32 account_id = 15;
optional uint32 league_id = 16;
optional .CMsgDOTARequestMatches.SkillLevel skill = 17 [default = Any];
Expand Down Expand Up @@ -730,6 +729,16 @@ message CMsgGCGetHeroStandingsResponse {
repeated .CMsgGCGetHeroStandingsResponse.Hero standings = 1;
}

message CMsgGCGetHeroTimedStats {
optional uint32 account_id = 1;
optional uint32 hero_id = 2;
}

message CMsgGCGetHeroTimedStatsResponse {
optional uint32 hero_id = 1;
repeated .CMatchPlayerTimedStats timed_stats = 2;
}

message CMsgGCItemEditorReservationsRequest {
}

Expand Down
1 change: 1 addition & 0 deletions proto/dota_gcmessages_client_chat.proto
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ message CMsgDOTAChatMessage {
optional bool terse = 28;
optional bool ignore_muted = 31;
optional .CMsgDOTAChatMessage.TriviaAnswered trivia_answer = 32;
optional uint32 requested_ability_id = 33;
}

message CMsgDOTAChatMember {
Expand Down
10 changes: 10 additions & 0 deletions proto/dota_gcmessages_common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,16 @@ message CMatchPlayerAbilityUpgrade {
optional uint32 time = 2;
}

message CMatchPlayerTimedStats {
optional uint32 time = 1;
optional uint32 kills = 2;
optional uint32 deaths = 3;
optional uint32 assists = 4;
optional uint32 net_worth = 5;
optional uint32 last_hits = 6;
optional uint32 denies = 7;
}

message CMatchAdditionalUnitInventory {
optional string unit_name = 1;
repeated uint32 items = 2;
Expand Down
2 changes: 2 additions & 0 deletions proto/dota_gcmessages_msgid.proto
Original file line number Diff line number Diff line change
Expand Up @@ -721,5 +721,7 @@ enum EDOTAGCMsg {
k_EMsgPurchaseItemWithEventPoints = 8248;
k_EMsgPurchaseItemWithEventPointsResponse = 8249;
k_EMsgServerToGCMatchPlayerItemPurchaseHistory = 8250;
k_EMsgGCGetHeroTimedStats = 8252;
k_EMsgGCGetHeroTimedStatsResponse = 8253;
}

12 changes: 11 additions & 1 deletion proto/dota_shared_enums.proto
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ enum EEvent {
EVENT_ID_INTERNATIONAL_2017 = 18;
EVENT_ID_BATTLE_PASS_REWORK = 19;
EVENT_ID_SINGLES_DAY_2017 = 20;
EVENT_ID_COUNT = 21;
EVENT_ID_FROSTIVUS_2017 = 21;
EVENT_ID_COUNT = 22;
}

enum DOTALeaverStatus_t {
Expand Down Expand Up @@ -338,6 +339,15 @@ enum EMatchOutcome {
k_EMatchOutcome_NotScored_Canceled = 68;
}

enum ELaneType {
LANE_TYPE_UNKNOWN = 0;
LANE_TYPE_SAFE = 1;
LANE_TYPE_OFF = 2;
LANE_TYPE_MID = 3;
LANE_TYPE_JUNGLE = 4;
LANE_TYPE_ROAM = 5;
}

enum EBadgeType {
k_EBadgeType_TI7_Midweek = 1;
k_EBadgeType_TI7_Finals = 2;
Expand Down

0 comments on commit 1d9e01c

Please sign in to comment.