-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEventLog.fs
58 lines (45 loc) · 1.25 KB
/
EventLog.fs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
namespace WowLogScan
module EventLog =
open WowLogScan.Model.GearPiece
open CombatlogType
open System
open Target
// Preprocessed log line split into separate string pieces
type LogLine = { Time: DateTime; Values: string [] }
type SpellDispel =
{ Who: Unit
Target: Unit
SpellName: string
RemovedSpell: string }
type EnchantSpell =
{ Who: Unit
Spell: Ability
ItemName: string }
type PartyKill = { Victim: Unit; KilledBy: Unit }
type Difficulty =
| Classic20
| Classic40
| Value of int64
type Encounter =
{ Zone: int64
Boss: Unit
Difficulty: Difficulty
GroupSize: int64 }
type CombatantInfo =
{ Player: Unit
Equipment: GearPiece list
Auras: SpellId list }
type CombatLogEvent =
| CombatLogVersion
| Spell of TargetedSpell
| SpellDispel of SpellDispel
| EnchantApplied of EnchantSpell
| EnchantRemoved of EnchantSpell
| SpellDurabilityDamage of EnchantSpell // force reactive disk
| UnitDestroyed of Unit
| UnitDied of Unit
| PartyKill of PartyKill // player down
| EncounterStart of Encounter
| EncounterEnd of Encounter
| CombatantInfo of CombatantInfo // gear and buffs
| NotSupported of string