-
Notifications
You must be signed in to change notification settings - Fork 2
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
8 changed files
with
289 additions
and
16 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
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 |
---|---|---|
|
@@ -184,5 +184,6 @@ export interface Provider { | |
} | ||
|
||
export interface Round { | ||
win_team?: string; | ||
phase: string; | ||
} |
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,232 @@ | ||
/* eslint-disable camelcase */ | ||
import { | ||
Map, | ||
CSGOAllplayer, | ||
CSGOPlayer, | ||
CSGOBomb, | ||
CSGOPhaseCountdowns, | ||
CSGOOutputGrenade, | ||
CSGOGrenadesAll, | ||
CSGO, | ||
} from './csgo-gsi'; | ||
import { GameSettings } from './game-settings'; | ||
import { BundleStatus } from './bundle-status'; | ||
import { PlayerDataAll, TeamData as ITeamData } from './extra-data'; | ||
import { TeamsPreset } from './team-preset'; | ||
import { MapPlayerData } from './map-player'; | ||
|
||
export const match: Map = { | ||
mode: 'competitive', | ||
name: 'de_dust2', | ||
phase: 'live', | ||
round: 0, | ||
team_ct: { | ||
score: 0, | ||
consecutive_round_losses: 0, | ||
timeouts_remaining: 0, | ||
matches_won_this_series: 0, | ||
}, | ||
team_t: { | ||
score: 0, | ||
consecutive_round_losses: 0, | ||
timeouts_remaining: 0, | ||
matches_won_this_series: 0, | ||
}, | ||
num_matches_to_win_series: 0, | ||
current_spectators: 0, | ||
souvenirs_total: 0, | ||
round_wins: {}, | ||
}; | ||
|
||
export const player: CSGOAllplayer[] = [ | ||
{ | ||
steamId: '-1', | ||
name: 'Username', | ||
observer_slot: 0, | ||
team: 'T', | ||
state: { | ||
health: 100, | ||
armor: 0, | ||
helmet: false, | ||
flashed: 0, | ||
burning: 0, | ||
money: 0, | ||
round_kills: 0, | ||
round_killhs: 0, | ||
round_totaldmg: 0, | ||
equip_value: 0, | ||
}, | ||
match_stats: { | ||
kills: 0, | ||
assists: 0, | ||
deaths: 0, | ||
mvps: 0, | ||
score: 0, | ||
}, | ||
weapons: { | ||
weapon_0: { | ||
name: 'weapon_knife_t', | ||
paintkit: 'default', | ||
type: 'Knife', | ||
state: 'holstered', | ||
}, | ||
}, | ||
position: '0, 0, 0', | ||
forward: '0, 0, 0', | ||
}, | ||
]; | ||
|
||
export const observingPlayer: CSGOPlayer = { | ||
steamid: '-1', | ||
clan: '', | ||
name: 'PlayerName', | ||
observer_slot: 0, | ||
team: 'T', | ||
activity: 'textinput', | ||
state: { | ||
health: 100, | ||
armor: 0, | ||
helmet: false, | ||
flashed: 0, | ||
smoked: 0, | ||
burning: 0, | ||
money: 0, | ||
round_kills: 0, | ||
round_killhs: 0, | ||
round_totaldmg: 0, | ||
equip_value: 0, | ||
}, | ||
spectarget: '0', | ||
position: '0, 0, 0', | ||
forward: '0, 0, 0', | ||
}; | ||
|
||
export const bomb: CSGOBomb = { | ||
state: 'carried', | ||
position: '0, 0, 0', | ||
player: '-1', | ||
}; | ||
|
||
export const phase: CSGOPhaseCountdowns = { | ||
phase: 'live', | ||
phase_ends_in: '120', | ||
}; | ||
|
||
export const bundleStatus: BundleStatus = { | ||
isServerOn: false, | ||
}; | ||
|
||
export const gameSettings: GameSettings = { | ||
bombPlantTime: 3, | ||
bombTime: 40, | ||
kitDefuseTime: 5, | ||
noKitDefuseTime: 10, | ||
}; | ||
|
||
export const extraData: PlayerDataAll = { | ||
'-1': { | ||
totalDamage: 0, | ||
adr: 0, | ||
}, | ||
}; | ||
|
||
export const teamData: ITeamData = { | ||
equipmentValue: 10000, | ||
totalMoney: 10000, | ||
grenades: { | ||
he: 0, | ||
flash: 0, | ||
smoke: 0, | ||
fire: 0, | ||
decoy: 0, | ||
}, | ||
players: [], | ||
score: 0, | ||
consecutiveRoundLosses: 0, | ||
matchesWonThisSeries: 0, | ||
}; | ||
|
||
export const grenades: CSGOOutputGrenade = { | ||
owner: '-1', | ||
position: '0, 0, 0', | ||
velocity: '0, 0, 0', | ||
lifetime: '0', | ||
type: '', | ||
}; | ||
|
||
export const grenadesAll: CSGOGrenadesAll = { | ||
'100': grenades, | ||
}; | ||
|
||
export const teamPlayerPreset: TeamsPreset = { | ||
teams: {}, | ||
players: {}, | ||
}; | ||
|
||
export const game: CSGO = { | ||
provider: { | ||
name: 'Counter-Strike: Global Offensive', | ||
appid: 730, | ||
version: 13697, | ||
steamid: '76561198046005090', | ||
timestamp: 1558521542, | ||
}, | ||
allplayers: {}, | ||
bomb: bomb, | ||
grenades: grenadesAll, | ||
map: match, | ||
phase_countdowns: phase, | ||
player: observingPlayer, | ||
round: { | ||
phase: 'live', | ||
}, | ||
previously: { | ||
player: { | ||
position: '0.00, 0.00, 0.00', | ||
forward: '0.00, 0.00, 0.00', | ||
}, | ||
allplayers: {}, | ||
phase_countdowns: { | ||
phaseEndsIn: '120', | ||
}, | ||
grenades: {}, | ||
bomb: { | ||
position: '0.00, 0.00, 0.00', | ||
}, | ||
}, | ||
}; | ||
|
||
export const mapPostions: MapPlayerData[] = [ | ||
{ | ||
steamId: '0', | ||
beingObserved: true, | ||
ct: true, | ||
position: [0, 0, 0], | ||
rotation: [0, 0, 0], | ||
observerSlot: 1, | ||
health: 100, | ||
}, | ||
]; | ||
|
||
export const interpMapPositions: { [key: string]: MapPlayerData } = {}; | ||
|
||
const ExampleData = { | ||
match, | ||
player, | ||
observingPlayer, | ||
bomb, | ||
phase, | ||
bundleStatus, | ||
gameSettings, | ||
extraData, | ||
teamData, | ||
grenades, | ||
grenadesAll, | ||
teamPlayerPreset, | ||
game, | ||
mapPostions, | ||
interpMapPositions, | ||
}; | ||
|
||
export const ExampleDataObj = ExampleData; | ||
export default ExampleData; |
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,9 @@ | ||
export * as BundleStatus from './bundle-status'; | ||
export * as CSGO from './csgo-gsi'; | ||
export * as ExtraData from './extra-data'; | ||
export * as GameSettings from './game-settings'; | ||
export * as HLAE from './hlae'; | ||
export * as MapPlayer from './map-player'; | ||
export * as Matches from './matches'; | ||
export * as TeamPreset from './team-preset'; | ||
export * as Tournament from './tournament'; |
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