Documentation
¶
Overview ¶
Package wotreplay provides World_of_Tanks Replay Parser.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsReplayFile ¶
IsReplayFile ask PATH has ".wotreplay" extension
Types ¶
type BattleResults ¶
type BattleResults struct { Results battleResults Vehicles map[vehicleID]vehicle Data map[vehicleID]struct { Flags int `json:"flags"` } }
BattleResults is block data about "Battle Result"
type MatchEnd ¶
type MatchEnd struct{}
MatchEnd is block data aboud "Match End" (For version older than 0.8.1)
type MatchStart ¶
type MatchStart struct { ClientVersionFromXML string `json:"clientVersionFromXml"` ClientVersionFromExe string `json:"clientVersionFromExe"` DateTime string `json:"dateTime"` MapDisplayName string `json:"mapDisplayName"` MapName string `json:"mapName"` GameplayID string `json:"gameplayID"` // assault,assault2,bootcamp,ctf,ctf30x30,domination(encounter),epic,fallout3,football,leviathan,sandbox HasMods bool `json:"hasMods"` RegionCode string `json:"regionCode"` PlayerID int `json:"playerID"` PlayerName string `json:"playerName"` PlayerVehicle string `json:"playerVehicle"` BattleType battleType `json:"battleType"` Vehicles map[vehicleID]vehicle `json:"vehicles"` ServerName string `json:"serverName"` ServerSettings struct { Roaming []interface{} `json:"roaming"` SpgRedesignFeatures struct { StunEnabled bool `json:"stunEnabled"` MarkTargetAreaEnabled bool `json:"markTargetAreaEnabled"` } `json:"spgRedesignFeatures"` IsPotapovQuestEnabled bool `json:"isPotapovQuestEnabled"` } `json:"serverSettings"` }
MatchStart is block data about "Match Start"
type PacketReader ¶
PacketReader is wotreplay packet reader https://github.com/evido/wotreplay-parser/blob/master/src/packet_reader_80.cpp
type Replay ¶
type Replay struct { File struct { //Path string Header struct { Magic uint32 BlockCount uint32 } Blocks []dataBlock // len(Blocks) == Header.BlockCount ReplayLen uint32 XXX [4]byte Replay []byte // binary replay data. len(Replay) == ReplayLen } MatchStart MatchStart MatchEnd MatchEnd BattleResults BattleResults *log.Logger }
Replay stores an entire battle in a replay file
Source Files
¶
Click to show internal directories.
Click to hide internal directories.