Example #1
0
        }                                    // DT_TIME

        public TriggerEvent(MpqFileStream stream)
        {
            I0 = stream.ReadValueS32();
            TriggerConditions = new TriggerConditions(stream);
            I1                  = stream.ReadValueS32();
            SNOHandle           = new SNOHandle(stream);
            I2                  = stream.ReadValueS32();
            I3                  = stream.ReadValueS32();
            RuneType            = stream.ReadValueS32();
            UseRuneType         = stream.ReadValueS32();
            HardPointLinks      = new HardPointLink[2];
            HardPointLinks[0]   = new HardPointLink(stream);
            HardPointLinks[1]   = new HardPointLink(stream);
            this.LookLink       = stream.ReadString(64, true);
            this.ConstraintLink = stream.ReadString(64, true);
            I4                  = stream.ReadValueS32();
            F0                  = stream.ReadValueF32();
            I5                  = stream.ReadValueS32();
            I6                  = stream.ReadValueS32();
            I7                  = stream.ReadValueS32();
            I8                  = stream.ReadValueS32();
            I9                  = stream.ReadValueS32();
            F1                  = stream.ReadValueF32();
            F2                  = stream.ReadValueF32();
            I10                 = stream.ReadValueS32();
            F3                  = stream.ReadValueF32();
            I11                 = stream.ReadValueS32();
            Velocity            = stream.ReadValueF32();
            I12                 = stream.ReadValueS32();
            Ticks1              = stream.ReadValueS32();
            Color1              = new RGBAColor(stream);
            I14                 = stream.ReadValueS32();
            Color2              = new RGBAColor(stream);
            I15                 = stream.ReadValueS32();
        }
Example #2
0
        public int I15 { get; private set; } // DT_TIME

        public TriggerEvent(MpqFileStream stream)
        {
            I0 = stream.ReadValueS32();
            TriggerConditions = new TriggerConditions(stream);
            I1 = stream.ReadValueS32();
            SnoName = new SNOName(stream);
            I2 = stream.ReadValueS32();
            I3 = stream.ReadValueS32();
            RuneType = stream.ReadValueS32();
            UseRuneType = stream.ReadValueS32();
            HardPointLinks = new HardPointLink[2];
            HardPointLinks[0] = new HardPointLink(stream);
            HardPointLinks[1] = new HardPointLink(stream);
            this.LookLink = stream.ReadString(64, true);
            this.ConstraintLink = stream.ReadString(64, true);
            I4 = stream.ReadValueS32();
            F0 = stream.ReadValueF32();
            I5 = stream.ReadValueS32();
            I6 = stream.ReadValueS32();
            I7 = stream.ReadValueS32();
            I8 = stream.ReadValueS32();
            I9 = stream.ReadValueS32();
            F1 = stream.ReadValueF32();
            F2 = stream.ReadValueF32();
            I10 = stream.ReadValueS32();
            F3 = stream.ReadValueF32();
            I11 = stream.ReadValueS32();
            Velocity = stream.ReadValueF32();
            I12 = stream.ReadValueS32();
            Ticks1 = stream.ReadValueS32();
            Color1 = new RGBAColor(stream);
            I14 = stream.ReadValueS32();
            Color2 = new RGBAColor(stream);
            I15 = stream.ReadValueS32();
        }