-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I should really check this stuff in more often
- Loading branch information
Showing
19 changed files
with
382 additions
and
19 deletions.
There are no files selected for viewing
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,23 @@ | ||
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created | ||
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages | ||
|
||
name: Node.js Package | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
publish-npm: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
registry-url: https://registry.npmjs.org/ | ||
- run: npm ci | ||
- run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.npm_token}} |
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
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
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
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
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
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
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,11 @@ | ||
export enum GameVariantCategory { | ||
MultiplayerSlayer = 6, | ||
MultiplayerAttrition = 7, | ||
MultiplayerFiesta = 9, | ||
MultiplayerStrongholds = 11, | ||
MultiplayerKingOfTheHill = 12, | ||
MultiplayerCtf = 15, | ||
MultiplayerOddball = 18, | ||
MultiplayerGrifball = 25, | ||
MultiplayerLandGrab = 39, | ||
} |
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,38 @@ | ||
import { GameVariantCategory } from "./game-variant-category"; | ||
import { PlaylistExperience } from "./playlist-experience"; | ||
export interface MatchInfo< | ||
TCategory extends GameVariantCategory = GameVariantCategory | ||
> { | ||
StartTime: string; | ||
EndTime: string; | ||
Duration: string; | ||
LifecycleMode: number; | ||
GameVariantCategory: TCategory; | ||
LevelId: string; | ||
MapVariant: { | ||
AssetKind: number; | ||
AssetId: string; | ||
VersionId: string; | ||
}; | ||
UgcGameVariant: { | ||
AssetKind: number; | ||
AssetId: string; | ||
VersionId: string; | ||
}; | ||
ClearanceId: string; | ||
Playlist: { | ||
AssetKind: number; | ||
AssetId: string; | ||
VersionId: string; | ||
}; | ||
PlaylistExperience: PlaylistExperience; | ||
PlaylistMapModePair: { | ||
AssetKind: number; | ||
AssetId: string; | ||
VersionId: string; | ||
}; | ||
SeasonId: string; | ||
PlayableDuration: string; | ||
TeamsEnabled: boolean; | ||
TeamScoringEnabled: boolean; | ||
} |
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,4 @@ | ||
export enum MatchOutcome { | ||
Win = 2, | ||
Loss = 3, | ||
} |
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,48 @@ | ||
interface CsrObject { | ||
Value: number; | ||
MeasurementMatchesRemaining: number; | ||
Tier: string; | ||
TierStart: number; | ||
NextTier: string; | ||
NextTierStart: number; | ||
NextSubTier: number; | ||
InitialMeasurementMatches: number; | ||
} | ||
|
||
interface StatPerformance { | ||
Count: number; | ||
Expected: number; | ||
StdDev: number; | ||
} | ||
|
||
interface Counterfactual { | ||
Kills: number; | ||
Deaths: number; | ||
} | ||
|
||
export interface MatchSkill { | ||
TeamId: number; | ||
TeamMmr: number; | ||
TeamMmrs: { | ||
[key: number]: number; | ||
}; | ||
RankRecap: { | ||
PreMatchCsr: CsrObject; | ||
PostMatchCsr: CsrObject; | ||
}; | ||
StatPerformances: { | ||
Kills: StatPerformance; | ||
Deaths: StatPerformance; | ||
}; | ||
Counterfactuals: { | ||
SelfCounterfactual: Counterfactual; | ||
TierCounterfactuals: { | ||
Bronze: Counterfactual; | ||
Silver: Counterfactual; | ||
Gold: Counterfactual; | ||
Platinum: Counterfactual; | ||
Diamond: Counterfactual; | ||
Onyx: Counterfactual; | ||
}; | ||
}; | ||
} |
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,35 @@ | ||
import { GameVariantCategory } from "./game-variant-category"; | ||
import { MatchInfo } from "./match-info"; | ||
import { Stats } from "./stats"; | ||
|
||
export interface MatchStats< | ||
TCategory extends GameVariantCategory = GameVariantCategory | ||
> { | ||
MatchId: string; | ||
MatchInfo: MatchInfo<TCategory>; | ||
Teams: { | ||
TeamId: number; | ||
Outcome: number; | ||
Rank: number; | ||
Stats: Stats<TCategory>; | ||
}[]; | ||
Players: { | ||
PlayerId: string; | ||
LastTeamId: number; | ||
Rank: number; | ||
ParticipationInfo: { | ||
FirstJoinedTime: string; | ||
LastLeaveTime: string | null; | ||
PresentAtBeginning: boolean; | ||
JoinedInProgress: boolean; | ||
LeftInProgress: boolean; | ||
PresentAtCompletion: boolean; | ||
TimePlayed: string; | ||
ConfirmedParticipation: boolean | null; | ||
}; | ||
PlayerTeamStats: { | ||
TeamId: number; | ||
Stats: Stats<TCategory>; | ||
}[]; | ||
}[]; | ||
} |
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,6 @@ | ||
export enum MatchType { | ||
All = 0, | ||
Matchmaking = 1, | ||
Custom = 2, | ||
Local = 3, | ||
} |
Oops, something went wrong.