Class: Wowlog::SpellBlockParser

Inherits:
ColumnParser show all
Defined in:
lib/wowlog.rb

Constant Summary

Constants inherited from ColumnParser

ColumnParser::OBJECT_SPECIAL_MASK, ColumnParser::PT_MAP, ColumnParser::SCHOOL_FLAG_MAP, ColumnParser::UNIT_FLAG_MAP, ColumnParser::UNIT_SPECIAL_FLAG_MAP

Instance Method Summary collapse

Methods inherited from ColumnParser

#initialize, #int, #parse_school_flag, #parse_unit_flag, #resolv_power_type

Constructor Details

This class inherits a constructor from Wowlog::ColumnParser

Instance Method Details

#parse(cols, obj) ⇒ Object



264
265
266
267
268
269
270
271
272
273
# File 'lib/wowlog.rb', line 264

def parse(cols, obj)
  cols, obj = super(cols, obj)
  obj['extraSpellID'] = cols[0]
  obj['extraSpellName'] = cols[1]
  obj['extraSchool'] = parse_school_flag(cols[2])
  cols.shift(3)

  obj['auraType'] = cols.shift if cols.size > 0
  return cols, obj
end