Documentation
¶
Index ¶
- type Abilities
- type AbilityTracker
- type CombatLogAbility
- type CombatLogBuyback
- type CombatLogDamage
- type CombatLogDeath
- type CombatLogEntry
- type CombatLogGameState
- type CombatLogGold
- type CombatLogHeal
- type CombatLogItem
- type CombatLogLocation
- type CombatLogModifierAdd
- type CombatLogModifierRemove
- type CombatLogPurchase
- type CombatLogXP
- type LastHitTracker
- type LastHits
- type PacketEntity
- type Parser
- type UpdateType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Abilities ¶
type Abilities []*AbilityTracker
type CombatLogAbility ¶
type CombatLogAbility struct { Target string `logIndex:"2" logTable:"CombatLogNames"` Attacker string `logIndex:"3" logTable:"CombatLogNames"` Ability string `logIndex:"4" logTable:"CombatLogNames"` AttackerIsIllusion bool `logIndex:"5"` TargetIsIllusion bool `logIndex:"6"` IsDebuff int `logIndex:"7"` // seen values: 0,1,2 Time float32 `logIndex:"9"` TargetSource string `logIndex:"10" logTable:"CombatLogNames"` AttackerIsHero bool `logIndex:"12"` TargetIsHero bool `logIndex:"13"` }
TODO: only observed 2,3,4,7,13 so far, but the others would make sense too.
func (CombatLogAbility) Timestamp ¶
func (c CombatLogAbility) Timestamp() float32
func (CombatLogAbility) Type ¶
func (c CombatLogAbility) Type() dota.DOTA_COMBATLOG_TYPES
type CombatLogBuyback ¶
type CombatLogBuyback struct { Hero string `logIndex:"7" logTable:"CombatLogNames"` DeathTime float32 `logIndex:"9"` BuybackTime float32 `logIndex:"11"` }
7 val_short: 9 9 val_float: 2625.6892
11 val_float: 2666.3
func (CombatLogBuyback) Timestamp ¶
func (c CombatLogBuyback) Timestamp() float32
func (CombatLogBuyback) Type ¶
func (c CombatLogBuyback) Type() dota.DOTA_COMBATLOG_TYPES
type CombatLogDamage ¶
type CombatLogDamage struct { Source string `logIndex:"1" logTable:"CombatLogNames"` Target string `logIndex:"2" logTable:"CombatLogNames"` Attacker string `logIndex:"3" logTable:"CombatLogNames"` Cause string `logIndex:"4" logTable:"CombatLogNames"` AttackerIsIllusion bool `logIndex:"5"` TargetIsIllusion bool `logIndex:"6"` Value int `logIndex:"7"` Health int `logIndex:"8"` Time float32 `logIndex:"9"` TargetSource string `logIndex:"10" logTable:"CombatLogNames"` AttackerIsHero bool `logIndex:"12"` TargetIsHero bool `logIndex:"13"` }
0: val_byte:0 ), 1: val_short:3 ), 2: val_short:27 ), 3: val_short:3 ), 4: val_short:0 ), 5: val_bool:false ), 6: val_bool:false ), 7: val_short:70 ), 8: val_short:429 ), 9: val_float:229.45338 ), 10: val_short:27 ), 11: val_float:238.43335 ), 12: val_bool:true ), 13: val_bool:false )
func (CombatLogDamage) Timestamp ¶
func (c CombatLogDamage) Timestamp() float32
func (CombatLogDamage) Type ¶
func (c CombatLogDamage) Type() dota.DOTA_COMBATLOG_TYPES
type CombatLogDeath ¶
type CombatLogDeath struct { Source string `logIndex:"1" logTable:"CombatLogNames"` Target string `logIndex:"2" logTable:"CombatLogNames"` Attacker string `logIndex:"3" logTable:"CombatLogNames"` Cause string `logIndex:"4" logTable:"CombatLogNames"` AttackerIsIllusion bool `logIndex:"5"` TargetIsIllusion bool `logIndex:"6"` Time float32 `logIndex:"9"` TargetSource string `logIndex:"10" logTable:"CombatLogNames"` AttackerIsHero bool `logIndex:"12"` TargetIsHero bool `logIndex:"13"` }
func (CombatLogDeath) Timestamp ¶
func (c CombatLogDeath) Timestamp() float32
func (CombatLogDeath) Type ¶
func (c CombatLogDeath) Type() dota.DOTA_COMBATLOG_TYPES
type CombatLogEntry ¶
type CombatLogEntry interface { Type() dota.DOTA_COMBATLOG_TYPES Timestamp() float32 }
type CombatLogGameState ¶
func (CombatLogGameState) Timestamp ¶
func (c CombatLogGameState) Timestamp() float32
func (CombatLogGameState) Type ¶
func (c CombatLogGameState) Type() dota.DOTA_COMBATLOG_TYPES
type CombatLogGold ¶
type CombatLogGold struct { Target int `logIndex:"2"` Value int `logIndex:"7"` Time float32 `logIndex:"9"` }
func (CombatLogGold) Timestamp ¶
func (c CombatLogGold) Timestamp() float32
func (CombatLogGold) Type ¶
func (c CombatLogGold) Type() dota.DOTA_COMBATLOG_TYPES
type CombatLogHeal ¶
type CombatLogHeal struct { Source string `logIndex:"1" logTable:"CombatLogNames"` Target string `logIndex:"2" logTable:"CombatLogNames"` Attacker string `logIndex:"3" logTable:"CombatLogNames"` Modifier string `logIndex:"4" logTable:"CombatLogNames"` AttackerIsIllusion bool `logIndex:"5"` TargetIsIllusion bool `logIndex:"6"` Value int `logIndex:"7"` Health int `logIndex:"8"` Time float32 `logIndex:"9"` TargetSource string `logIndex:"10" logTable:"CombatLogNames"` AttackerIsHero bool `logIndex:"12"` TargetIsHero bool `logIndex:"13"` }
func (CombatLogHeal) Timestamp ¶
func (c CombatLogHeal) Timestamp() float32
func (CombatLogHeal) Type ¶
func (c CombatLogHeal) Type() dota.DOTA_COMBATLOG_TYPES
type CombatLogItem ¶
type CombatLogItem struct { Target string `logIndex:"2" logTable:"CombatLogNames"` User string `logIndex:"3" logTable:"CombatLogNames"` Item string `logIndex:"4" logTable:"CombatLogNames"` AttackerIsIllusion bool `logIndex:"5"` TargetIsIllusion bool `logIndex:"6"` Time float32 `logIndex:"9"` UserIsHero bool `logIndex:"12"` TargetIsHero bool `logIndex:"13"` }
func (CombatLogItem) Timestamp ¶
func (c CombatLogItem) Timestamp() float32
func (CombatLogItem) Type ¶
func (c CombatLogItem) Type() dota.DOTA_COMBATLOG_TYPES
type CombatLogLocation ¶
type CombatLogLocation struct { Source string `logIndex:"1" logTable:"CombatLogNames"` Target string `logIndex:"2" logTable:"CombatLogNames"` Attacker string `logIndex:"3" logTable:"CombatLogNames"` Modifier string `logIndex:"4" logTable:"CombatLogNames"` AttackerIsIllusion bool `logIndex:"5"` TargetIsIllusion bool `logIndex:"6"` Value int `logIndex:"7"` Health int `logIndex:"8"` Time float32 `logIndex:"9"` TargetSource string `logIndex:"10" logTable:"CombatLogNames"` AttackerIsHero bool `logIndex:"12"` TargetIsHero bool `logIndex:"13"` }
func (CombatLogLocation) Timestamp ¶
func (c CombatLogLocation) Timestamp() float32
func (CombatLogLocation) Type ¶
func (c CombatLogLocation) Type() dota.DOTA_COMBATLOG_TYPES
type CombatLogModifierAdd ¶
type CombatLogModifierAdd struct { Source string `logIndex:"1" logTable:"CombatLogNames"` Target string `logIndex:"2" logTable:"CombatLogNames"` Attacker string `logIndex:"3" logTable:"CombatLogNames"` Modifier string `logIndex:"4" logTable:"CombatLogNames"` AttackerIsIllusion bool `logIndex:"5"` TargetIsIllusion bool `logIndex:"6"` IsDebuff bool `logIndex:"7"` Health int `logIndex:"8"` Time float32 `logIndex:"9"` TargetSource string `logIndex:"10" logTable:"CombatLogNames"` AttackerIsHero bool `logIndex:"12"` TargetIsHero bool `logIndex:"13"` }
func (CombatLogModifierAdd) Timestamp ¶
func (c CombatLogModifierAdd) Timestamp() float32
func (CombatLogModifierAdd) Type ¶
func (c CombatLogModifierAdd) Type() dota.DOTA_COMBATLOG_TYPES
type CombatLogModifierRemove ¶
type CombatLogModifierRemove struct { Target string `logIndex:"2" logTable:"CombatLogNames"` Caster string `logIndex:"3" logTable:"CombatLogNames"` Modifier string `logIndex:"4" logTable:"CombatLogNames"` AttackerIsIllusion bool `logIndex:"5"` TargetIsIllusion bool `logIndex:"6"` IsDebuff bool `logIndex:"7"` Health int `logIndex:"8"` Time float32 `logIndex:"9"` AttackerIsHero bool `logIndex:"12"` TargetIsHero bool `logIndex:"13"` }
func (CombatLogModifierRemove) Timestamp ¶
func (c CombatLogModifierRemove) Timestamp() float32
func (CombatLogModifierRemove) Type ¶
func (c CombatLogModifierRemove) Type() dota.DOTA_COMBATLOG_TYPES
type CombatLogPurchase ¶
type CombatLogPurchase struct { Time float32 `logIndex:"9"` Buyer string `logIndex:"2" logTable:"CombatLogNames"` Item string `logIndex:"7" logTable:"CombatLogNames"` }
func (CombatLogPurchase) Timestamp ¶
func (c CombatLogPurchase) Timestamp() float32
func (CombatLogPurchase) Type ¶
func (c CombatLogPurchase) Type() dota.DOTA_COMBATLOG_TYPES
type CombatLogXP ¶
type CombatLogXP struct { Target string `logIndex:"2" logTable:"CombatLogNames"` Value int `logIndex:"7"` Time float32 `logIndex:"9"` }
func (CombatLogXP) Timestamp ¶
func (c CombatLogXP) Timestamp() float32
func (CombatLogXP) Type ¶
func (c CombatLogXP) Type() dota.DOTA_COMBATLOG_TYPES
type LastHitTracker ¶
type LastHits ¶
type LastHits []*LastHitTracker
type PacketEntity ¶
type PacketEntity struct { Tick int Index int SerialNum int ClassId int EntityHandle int Name string Type UpdateType Values map[string]interface{} Delta map[string]interface{} OldDelta map[string]interface{} }
func (*PacketEntity) Clone ¶
func (pe *PacketEntity) Clone() *PacketEntity
func (*PacketEntity) Handle ¶
func (pe *PacketEntity) Handle() int
type Parser ¶
type Parser struct { Parser *parser.Parser ClassIdNumBits int ClassInfosIdMapping map[string]int ClassInfosNameMapping map[int]string FileHeader *dota.CDemoFileHeader GameEventMap map[int32]*dota.CSVCMsg_GameEventListDescriptorT Mapping map[int][]*send_tables.SendProp Multiples map[int]map[string]int ServerInfo *dota.CSVCMsg_ServerInfo Sth *send_tables.Helper Stsh *string_tables.StateHelper VoiceInit *dota.CSVCMsg_VoiceInit ActiveModifiers map[int]*dota.CDOTAModifierBuffTableEntry Entities []*PacketEntity ByHandle map[int]*PacketEntity OnEntityCreated func(*PacketEntity) OnEntityDeleted func(*PacketEntity) OnEntityPreserved func(*PacketEntity) OnActiveModifierDelta func(map[int]*string_tables.StringTableItem, string_tables.ModifierBuffs) OnChatEvent func(tick int, obj *dota.CDOTAUserMsg_ChatEvent) OnOverheadEvent func(tick int, obj *dota.CDOTAUserMsg_OverheadEvent) OnSayText2 func(tick int, obj *dota.CUserMsg_SayText2) OnSounds func(tick int, obj *dota.CSVCMsg_Sounds) OnSpectatorPlayerClick func(tick int, obj *dota.CDOTAUserMsg_SpectatorPlayerClick) OnChatWheel func(tick int, obj *dota.CDOTAUserMsg_ChatWheel) OnFileInfo func(obj *dota.CDemoFileInfo) OnSetConVar func(obj *dota.CNETMsg_SetConVar) OnVoiceData func(obj *dota.CSVCMsg_VoiceData) OnCombatLog func(log CombatLogEntry) OnTablename func(name string) BeforeTick func(tick int) AfterTick func(tick int) // contains filtered or unexported fields }
func ParserFromFile ¶
func (*Parser) ParsePacket ¶
func (p *Parser) ParsePacket(tick int, pe *dota.CSVCMsg_PacketEntities)
func (*Parser) PrintDistinctCombatLogTypes ¶
func (p *Parser) PrintDistinctCombatLogTypes()
type UpdateType ¶
type UpdateType int
const ( Create UpdateType = iota Delete Leave Preserve )
func ReadUpdateType ¶
func ReadUpdateType(br *utils.BitReader) UpdateType
Directories
¶
Path | Synopsis |
---|---|
Package dota is a generated protocol buffer package.
|
Package dota is a generated protocol buffer package. |
google/protobuf
Package google_protobuf is a generated protocol buffer package.
|
Package google_protobuf is a generated protocol buffer package. |
examples
|
|
NOTE: This file is generated by tool/update_pbem.rb
|
NOTE: This file is generated by tool/update_pbem.rb |
Click to show internal directories.
Click to hide internal directories.