Example #1
0
        public List <BuffDef> Buffs = new List <BuffDef>(); //4

        public PowerDef(MpqFileStream stream)
        {
            TagMap            = stream.ReadSerializedItem <TagMap>();
            stream.Position  += (2 * 4);
            GeneralTagMap     = stream.ReadSerializedItem <TagMap>();
            stream.Position  += (2 * 4);
            PVPGeneralTagMap  = stream.ReadSerializedItem <TagMap>();
            stream.Position  += (2 * 4);
            ContactTagMap0    = stream.ReadSerializedItem <TagMap>();
            ContactTagMap1    = stream.ReadSerializedItem <TagMap>();
            ContactTagMap2    = stream.ReadSerializedItem <TagMap>();
            ContactTagMap3    = stream.ReadSerializedItem <TagMap>();
            stream.Position  += (8 * 4);
            PVPContactTagMap0 = stream.ReadSerializedItem <TagMap>();
            PVPContactTagMap1 = stream.ReadSerializedItem <TagMap>();
            PVPContactTagMap2 = stream.ReadSerializedItem <TagMap>();
            PVPContactTagMap3 = stream.ReadSerializedItem <TagMap>();
            stream.Position  += (8 * 4);
            I0               = stream.ReadValueS32();
            ActColFlags1     = new ActorCollisionFlags(stream);
            ActColFlags2     = new ActorCollisionFlags(stream);
            stream.Position += 4;
            for (int i = 0; i < 4; i++)
            {
                Buffs.Add(new BuffDef(stream));
                stream.Position += (2 * 4);
            }
        }
Example #2
0
 public ActorCollisionData(MpqFileStream stream)
 {
     ColFlags = new ActorCollisionFlags(stream);
     I0       = stream.ReadValueS32();
     Cylinder = new AxialCylinder(stream);
     AABB     = new AABB(stream);
     F0       = stream.ReadValueF32();
     stream.ReadValueS32();// Testing - DarkLotus
 }