protected override void InternalPopulate( EventReader reader )
 {
     base.InternalPopulate(reader);
     enchant = reader.ReadString();
     itemId = reader.ReadInt32();
     itemName = reader.ReadString();
 }
 protected override void InternalPopulate( EventReader reader )
 {
     base.InternalPopulate(reader);
     spell = reader.ReadSpell();
     PopulateAuraEvent(reader);
     if( reader.HasNextValue ) {
         unknown1 = reader.ReadString();
         unknown2 = reader.ReadString();
     }
 }
 protected void PopulateDamageEvent( EventReader reader )
 {
     amount = reader.ReadInt32();
     overkill = reader.ReadInt32();
     damageSchool = (CombatLogSpellSchool)reader.ReadUInt32();
     resisted = reader.ReadInt32();
     blocked = reader.ReadInt32();
     absorbed = reader.ReadInt32();
     critical = reader.ReadString() != null;
     glancing = reader.ReadString() != null;
     crushing = reader.ReadString() != null;
 }
 protected void PopulateHeal( EventReader reader )
 {
     amount = reader.ReadInt32();
     overkill = reader.ReadInt32();
     absorbed = reader.ReadInt32();
     critical = reader.ReadString() != null;
 }
        protected uint ReadStringIdEvent(EventReader reader)
        {
            int    index    = reader.ReadInt32Compact();
            string name     = reader.ReadString();
            var    stringId = StringId.Create(m_context.StringTable, name);

            m_capturedStrings[(uint)index] = stringId;
            return((uint)index);
        }
Beispiel #6
0
        protected uint ReadPathEvent(EventReader reader)
        {
            AbsolutePath parent = reader.ReadAbsolutePath();
            int          index  = reader.ReadInt32Compact();
            string       name   = reader.ReadString();
            AbsolutePath path   = parent.IsValid ? parent.Combine(m_context.PathTable, PathAtom.Create(m_context.StringTable, name)) : AbsolutePath.Create(m_context.PathTable, name);

            m_capturedPaths[(uint)index] = path;
            return((uint)index);
        }
        protected uint ReadPathEvent(EventReader reader)
        {
            AbsolutePath parent = reader.ReadAbsolutePath();
            int          index  = reader.ReadInt32Compact();
            string       name   = reader.ReadString();

            // NOTE: We use PathAtom.UnsafeCreateFrom here because when reading from an xlg produced on a different
            // platform, the rules for path atom validity may change so we should just respect the path atom as-is without
            // doing validation.
            AbsolutePath path = parent.IsValid
                ? parent.Combine(m_context.PathTable, PathAtom.UnsafeCreateFrom(StringId.Create(m_context.StringTable, name)))
                : AbsolutePath.Create(m_context.PathTable, name);

            m_capturedPaths[(uint)index] = path;
            return((uint)index);
        }
 protected override void InternalPopulate( EventReader reader )
 {
     base.InternalPopulate(reader);
     spell = reader.ReadSpell();
     failMessage = reader.ReadString();
 }