예제 #1
0
파일: LevelArea.cs 프로젝트: Velhenn/mooege
 public GizmoLocSpawnType(MpqFileStream stream)
 {
     stream.Position += 8;
     this.SpawnEntry = stream.ReadSerializedData<GizmoLocSpawnEntry>();
     this.S0 = stream.ReadString(80, true);
     this.S1 = stream.ReadString(256, true);
 }
예제 #2
0
파일: EffectGroup.cs 프로젝트: Naxp/mooege
 public void Read(MpqFileStream stream)
 {
     this.I0 = stream.ReadValueS32();
     // Maybe this should stay a Char Array instead of a string. - DarkLotus
     this.Name = stream.ReadString(64, true);
     this.TriggeredEvent.Read(stream);
 }
예제 #3
0
 public void Read(MpqFileStream stream)
 {
     SNOConv = stream.ReadValueS32();
     I0 = stream.ReadValueS32();
     I1 = stream.ReadValueS32();
     I2 = stream.ReadValueS32();
     GbidItem = stream.ReadValueS32();
     Noname1 = stream.ReadString(128, true);
     Noname2 = stream.ReadString(128, true);
     SNOQuestCurrent = stream.ReadValueS32();
     I3 = stream.ReadValueS32();
     SNOQuestAssigned = stream.ReadValueS32();
     SNOQuestActive = stream.ReadValueS32();
     SNOQuestComplete = stream.ReadValueS32();
     SNOQuestRange = stream.ReadValueS32();
     SNOLevelArea = stream.ReadValueS32();
 }
예제 #4
0
파일: MarkerSet.cs 프로젝트: loonbg/mooege
 public void Read(MpqFileStream stream)
 {
     this.Name = stream.ReadString(128, true);
     this.Type = (MarkerType)stream.ReadValueS32();
     this.PRTransform = new PRTransform(stream);
     this.SNOHandle = new SNOHandle(stream);
     this.TagMap = stream.ReadSerializedItem<TagMap>();
     stream.Position += 8;
     this.MarkerLinksCount = stream.ReadValueS32();
     this.MarkerLinks = stream.ReadSerializedData<MarkerLink>();
     stream.Position += (3 * 4);
 }
예제 #5
0
파일: MarkerSet.cs 프로젝트: ncoop23/mooege
        public void Read(MpqFileStream stream)
        {
            this.Name = stream.ReadString(128, true);
            this.Int0 = stream.ReadValueS32();
            this.PRTransform = new PRTransform(stream);
            this.SNOName = new SNOName(stream);

            this.TagMap = stream.ReadSerializedItem<TagMap>();

            // Un sure about these 3 ints, 010template isnt the same as snodata.xml - DarkLotus
            this.IntTagMap = stream.ReadValueS32();
            Int1 = stream.ReadValueS32();
            Int2 = stream.ReadValueS32();

            var pointerMarkerLinks = stream.GetSerializedDataPointer();
            stream.Position += (3 * 4);
        }
예제 #6
0
파일: MarkerSet.cs 프로젝트: wow4all/mooege
        public void Read(MpqFileStream stream)
        {
            this.Name = stream.ReadString(128, true);
            this.Type = (MarkerType)stream.ReadValueS32();
            this.PRTransform = new PRTransform(stream);
            this.SNOHandle = new SNOHandle(stream);

            this.TagMap = stream.ReadSerializedItem<TagMap>();

            // Un sure about these 3 ints, 010template isnt the same as snodata.xml - DarkLotus
            // IntTagMap && Int2 are always 0 for beta. leave it here only because xml does not match either -farmy
            this.IntTagMap = stream.ReadValueS32();
            Int1 = stream.ReadValueS32();
            var int2 = stream.ReadValueS32();
            this.MarkerLinks = stream.ReadSerializedData<MarkerLink>();
            stream.Position += (3 * 4);
        }
예제 #7
0
파일: World.cs 프로젝트: Naxp/mooege
        public void Read(MpqFileStream stream)
        {
            this.Name = stream.ReadString(128, true);
            this.ClusterId = stream.ReadValueS32();
            this.GroupCount = stream.ReadValueS32();
            stream.Position += (2 * 4);
            this.SubSceneGroups = stream.ReadSerializedData<SubSceneGroup>();

            this.Default = new SubSceneGroup(stream);
        }
예제 #8
0
파일: Scene.cs 프로젝트: keltins/mooege
            public NavMeshDef(MpqFileStream stream)
            {
                this.SquaresCountX = stream.ReadValueS32();
                this.SquaresCountY = stream.ReadValueS32();
                this.Int0 = stream.ReadValueS32();
                this.NavMeshSquareCount = stream.ReadValueS32();
                this.Float0 = stream.ReadValueF32();
                this.Squares = stream.ReadSerializedData<NavMeshSquare>(this.NavMeshSquareCount);

                stream.Position += (3 * 4);
                this.Filename = stream.ReadString(256, true);
            }
예제 #9
0
파일: Globals.cs 프로젝트: ncoop23/mooege
 public void Read(MpqFileStream stream)
 {
     this.UHash = stream.ReadValueS32();
     this.S0 = stream.ReadString(64, true);
     this.F0 = stream.ReadValueF32();
 }
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 0;
     Field0 = stream.ReadString(64);
     stream.Position = offset + 64;
     Field1 = stream.ReadValueS32();
     stream.Position = offset + 68;
     Field2 = new AABB();
     Field2.FileRead(stream, stream.Position);
     stream.Position = offset + 92;
     wsBounds = new Sphere();
     wsBounds.FileRead(stream, stream.Position);
     stream.Position = offset + 108;
     Field4 = new PRSTransform();
     Field4.FileRead(stream, stream.Position);
     stream.Position = offset + 140;
     Field5 = new PRSTransform();
     Field5.FileRead(stream, stream.Position);
     stream.Position = offset + 172;
     Field6 = new PRSTransform();
     Field6.FileRead(stream, stream.Position);
     stream.Position = offset + 204;
     Field7 = stream.ReadValueS32();
     stream.Position = offset + 208;
     serShapes = new SerializeData();
     serShapes.FileRead(stream, stream.Position);
     stream.Position = offset + 216;
     //still checking variablearrays
     Shapes = new List<CollisionShape>();
     for(int i = 0; i < (int)(serShapes.Field1 / 68); i++)
     {
     stream.Position = serShapes.Field0 + 16 + (68*i) ;
         CollisionShape temp12_Shapes;
         temp12_Shapes = new CollisionShape();
         temp12_Shapes.FileRead(stream, stream.Position);
         _Shapes.Add(temp12_Shapes);
     }
     stream.Position = offset + 220;
     serConstraint = new SerializeData();
     serConstraint.FileRead(stream, stream.Position);
     stream.Position = offset + 228;
     //still checking variablearrays
     Constraint = new List<ConstraintParameters>();
     for(int i = 0; i < (int)(serConstraint.Field1 / 276); i++)
     {
     stream.Position = serConstraint.Field0 + 16 + (276*i) ;
         ConstraintParameters temp12_Constraint;
         temp12_Constraint = new ConstraintParameters();
         temp12_Constraint.FileRead(stream, stream.Position);
         _Constraint.Add(temp12_Constraint);
     }
     stream.Position = offset + 232;
     snoParticleSystem = stream.ReadValueS32();
 }
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 0;
     Field0 = stream.ReadString(64);
 }
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 12;
     Field0 = stream.ReadString(256);
     stream.Position = offset + 268;
     Field1 = stream.ReadString(256);
     stream.Position = offset + 524;
     Field2 = stream.ReadValueS32();
     stream.Position = offset + 528;
     dwNumControls = stream.ReadValueS32();
     stream.Position = offset + 532;
     serControlList = new SerializeData();
     serControlList.FileRead(stream, stream.Position);
     stream.Position = offset + 540;
     //still checking variablearrays
     ControlList = new List<UIControlData>();
     for(int i = 0; i < (int)(serControlList.Field1 / 1760); i++)
     {
     stream.Position = serControlList.Field0 + 16 + (1760*i) ;
         UIControlData temp12_ControlList;
         temp12_ControlList = new UIControlData();
         temp12_ControlList.FileRead(stream, stream.Position);
         _ControlList.Add(temp12_ControlList);
     }
     stream.Position = offset + 544;
     dwNumStyles = stream.ReadValueS32();
     stream.Position = offset + 548;
     serStyleList = new SerializeData();
     serStyleList.FileRead(stream, stream.Position);
     stream.Position = offset + 556;
     //still checking variablearrays
     StyleList = new List<UIStyle>();
     for(int i = 0; i < (int)(serStyleList.Field1 / 608); i++)
     {
     stream.Position = serStyleList.Field0 + 16 + (608*i) ;
         UIStyle temp12_StyleList;
         temp12_StyleList = new UIStyle();
         temp12_StyleList.FileRead(stream, stream.Position);
         _StyleList.Add(temp12_StyleList);
     }
     stream.Position = offset + 560;
     Field9 = new DataElements();
     Field9.FileRead(stream, stream.Position);
 }
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 0;
     Field0 = stream.ReadValueS32();
     stream.Position = offset + 4;
     AnimName = stream.ReadString(65);
     stream.Position = offset + 72;
     Velocity = stream.ReadValueF32();
     stream.Position = offset + 76;
     Field3 = stream.ReadValueF32();
     stream.Position = offset + 80;
     Field4 = stream.ReadValueF32();
     stream.Position = offset + 84;
     Field5 = stream.ReadValueF32();
     stream.Position = offset + 88;
     Field6 = stream.ReadValueF32();
     stream.Position = offset + 92;
     Time1 = stream.ReadValueS32();
     stream.Position = offset + 96;
     Time2 = stream.ReadValueS32();
     stream.Position = offset + 104;
     Field9 = stream.ReadValueF32();
     stream.Position = offset + 108;
     Field10 = stream.ReadValueF32();
     stream.Position = offset + 112;
     Field11 = stream.ReadValueF32();
     stream.Position = offset + 116;
     Field12 = stream.ReadValueF32();
     stream.Position = offset + 100;
     Field13 = stream.ReadValueS32();
     stream.Position = offset + 120;
     BoneNameCount = stream.ReadValueS32();
     stream.Position = offset + 124;
     serBoneNames = new SerializeData();
     serBoneNames.FileRead(stream, stream.Position);
     stream.Position = offset + 136;
     //still checking variablearrays
     BoneNames = new List<BoneName>();
     for(int i = 0; i < (int)(serBoneNames.Field1 / 64); i++)
     {
     stream.Position = serBoneNames.Field0 + 16 + (64*i) ;
         BoneName temp12_BoneNames;
         temp12_BoneNames = new BoneName();
         temp12_BoneNames.FileRead(stream, stream.Position);
         _BoneNames.Add(temp12_BoneNames);
     }
     stream.Position = offset + 144;
     KeyframePosCount = stream.ReadValueS32();
     stream.Position = offset + 148;
     serTranslationCurves = new SerializeData();
     serTranslationCurves.FileRead(stream, stream.Position);
     stream.Position = offset + 160;
     //still checking variablearrays
     TranslationCurves = new List<TranslationCurve>();
     for(int i = 0; i < (int)(serTranslationCurves.Field1 / 24); i++)
     {
     stream.Position = serTranslationCurves.Field0 + 16 + (24*i) ;
         TranslationCurve temp12_TranslationCurves;
         temp12_TranslationCurves = new TranslationCurve();
         temp12_TranslationCurves.FileRead(stream, stream.Position);
         _TranslationCurves.Add(temp12_TranslationCurves);
     }
     stream.Position = offset + 168;
     serRotationCurves = new SerializeData();
     serRotationCurves.FileRead(stream, stream.Position);
     stream.Position = offset + 176;
     //still checking variablearrays
     RotationCurves = new List<RotationCurve>();
     for(int i = 0; i < (int)(serRotationCurves.Field1 / 24); i++)
     {
     stream.Position = serRotationCurves.Field0 + 16 + (24*i) ;
         RotationCurve temp12_RotationCurves;
         temp12_RotationCurves = new RotationCurve();
         temp12_RotationCurves.FileRead(stream, stream.Position);
         _RotationCurves.Add(temp12_RotationCurves);
     }
     stream.Position = offset + 184;
     serScaleCurves = new SerializeData();
     serScaleCurves.FileRead(stream, stream.Position);
     stream.Position = offset + 192;
     //still checking variablearrays
     ScaleCurves = new List<ScaleCurve>();
     for(int i = 0; i < (int)(serScaleCurves.Field1 / 24); i++)
     {
     stream.Position = serScaleCurves.Field0 + 16 + (24*i) ;
         ScaleCurve temp12_ScaleCurves;
         temp12_ScaleCurves = new ScaleCurve();
         temp12_ScaleCurves.FileRead(stream, stream.Position);
         _ScaleCurves.Add(temp12_ScaleCurves);
     }
     stream.Position = offset + 200;
     Field24 = stream.ReadValueF32();
     stream.Position = offset + 204;
     Field25 = stream.ReadValueF32();
     stream.Position = offset + 208;
     Field26 = stream.ReadValueF32();
     stream.Position = offset + 212;
     Field27 = stream.ReadValueF32();
     stream.Position = offset + 216;
     Field28 = new Vector3D();
     Field28.FileRead(stream, stream.Position);
     stream.Position = offset + 228;
     Field29 = new Vector3D();
     Field29.FileRead(stream, stream.Position);
     stream.Position = offset + 240;
     Field30 = new Vector3D();
     Field30.FileRead(stream, stream.Position);
     stream.Position = offset + 252;
     Field31 = new Vector3D();
     Field31.FileRead(stream, stream.Position);
     stream.Position = offset + 264;
     Field32 = stream.ReadValueF32();
     stream.Position = offset + 276;
     KeyedAttachmentsCount = stream.ReadValueS32();
     stream.Position = offset + 268;
     serKeyedAttachments = new SerializeData();
     serKeyedAttachments.FileRead(stream, stream.Position);
     stream.Position = offset + 280;
     //still checking variablearrays
     KeyedAttachments = new List<KeyframedAttachment>();
     for(int i = 0; i < (int)(serKeyedAttachments.Field1 / 412); i++)
     {
     stream.Position = serKeyedAttachments.Field0 + 16 + (412*i) ;
         KeyframedAttachment temp12_KeyedAttachments;
         temp12_KeyedAttachments = new KeyframedAttachment();
         temp12_KeyedAttachments.FileRead(stream, stream.Position);
         _KeyedAttachments.Add(temp12_KeyedAttachments);
     }
     stream.Position = offset + 288;
     serKeyframePosList = new SerializeData();
     serKeyframePosList.FileRead(stream, stream.Position);
     stream.Position = offset + 296;
     //still checking variablearrays
     KeyframePosList = new List<Vector3D>();
     for(int i = 0; i < (int)(serKeyframePosList.Field1 / 12); i++)
     {
     stream.Position = serKeyframePosList.Field0 + 16 + (12*i) ;
         Vector3D temp12_KeyframePosList;
         temp12_KeyframePosList = new Vector3D();
         temp12_KeyframePosList.FileRead(stream, stream.Position);
         _KeyframePosList.Add(temp12_KeyframePosList);
     }
     stream.Position = offset + 304;
     serNonlinearOffset = new SerializeData();
     serNonlinearOffset.FileRead(stream, stream.Position);
     stream.Position = offset + 312;
     //still checking variablearrays
     NonlinearOffset = new List<Vector3D>();
     for(int i = 0; i < (int)(serNonlinearOffset.Field1 / 12); i++)
     {
     stream.Position = serNonlinearOffset.Field0 + 16 + (12*i) ;
         Vector3D temp12_NonlinearOffset;
         temp12_NonlinearOffset = new Vector3D();
         temp12_NonlinearOffset.FileRead(stream, stream.Position);
         _NonlinearOffset.Add(temp12_NonlinearOffset);
     }
     stream.Position = offset + 320;
     Velocity3D = new VelocityVector3D();
     Velocity3D.FileRead(stream, stream.Position);
     stream.Position = offset + 332;
     Link = new HardpointLink();
     Link.FileRead(stream, stream.Position);
     stream.Position = offset + 400;
     Field42 = stream.ReadString(256);
     stream.Position = offset + 656;
     Field43 = stream.ReadString(256);
 }
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 16;
     Field0 = stream.ReadValueS32();
     stream.Position = offset + 20;
     dwWidth = stream.ReadValueS32();
     stream.Position = offset + 24;
     dwHeight = stream.ReadValueS32();
     stream.Position = offset + 28;
     dwFaceCount = stream.ReadValueS32();
     stream.Position = offset + 36;
     dwMipMapLevelMax = stream.ReadValueS32();
     stream.Position = offset + 40;
     Field5 = new SerializeData[60];
     for(int loop12=0; loop12 < 60; loop12++ )
     {
         SerializeData temp12_Field5;
         temp12_Field5 = new SerializeData();
         temp12_Field5.FileRead(stream, stream.Position);
         _Field5[loop12] = temp12_Field5;
     }
     stream.Position = offset + 520;
     Field6 = stream.ReadValueS32();
     stream.Position = offset + 32;
     Field7 = stream.ReadValueS32();
     stream.Position = offset + 592;
     Field8 = stream.ReadString(256);
     stream.Position = offset + 852;
     serImageFileIDs = new SerializeData();
     serImageFileIDs.FileRead(stream, stream.Position);
     stream.Position = offset + 848;
     //still checking variablearrays
     ImageFileIDs = new List<ImageFileID>();
     for(int i = 0; i < (int)(serImageFileIDs.Field1 / 516); i++)
     {
     stream.Position = serImageFileIDs.Field0 + 16 + (516*i) ;
         ImageFileID temp12_ImageFileIDs;
         temp12_ImageFileIDs = new ImageFileID();
         temp12_ImageFileIDs.FileRead(stream, stream.Position);
         _ImageFileIDs.Add(temp12_ImageFileIDs);
     }
     stream.Position = offset + 524;
     serFrame = new SerializeData();
     serFrame.FileRead(stream, stream.Position);
     stream.Position = offset + 532;
     //still checking variablearrays
     Frame = new List<TexFrame>();
     for(int i = 0; i < (int)(serFrame.Field1 / 80); i++)
     {
     stream.Position = serFrame.Field0 + 16 + (80*i) ;
         TexFrame temp12_Frame;
         temp12_Frame = new TexFrame();
         temp12_Frame.FileRead(stream, stream.Position);
         _Frame.Add(temp12_Frame);
     }
     stream.Position = offset + 536;
     Field13 = new IVector2D();
     Field13.FileRead(stream, stream.Position);
     stream.Position = offset + 860;
     Field14 = stream.ReadValueS32();
     stream.Position = offset + 864;
     Field15 = stream.ReadValueS32();
     stream.Position = offset + 868;
     Field16 = stream.ReadValueS32();
     stream.Position = offset + 544;
     Field17 = stream.ReadValueS32();
     stream.Position = offset + 548;
     Field18 = stream.ReadValueS32();
     stream.Position = offset + 552;
     Field19 = stream.ReadValueS32();
     stream.Position = offset + 560;
     Field20 = stream.ReadValueS64();
     stream.Position = offset + 568;
     Field21 = stream.ReadValueS32();
     stream.Position = offset + 572;
     Field22 = (byte)stream.ReadByte();
     stream.Position = offset + 573;
     Field23 = (byte)stream.ReadByte();
     stream.Position = offset + 574;
     Field24 = (byte)stream.ReadByte();
 }
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 0;
     Field0 = stream.ReadValueS32();
     stream.Position = offset + 4;
     nVertCount = stream.ReadValueS32();
     stream.Position = offset + 8;
     serVertList = new SerializeData();
     serVertList.FileRead(stream, stream.Position);
     stream.Position = offset + 16;
     //still checking variablearrays
     VertList = new List<FatVertex>();
     for(int i = 0; i < (int)(serVertList.Field1 / 44); i++)
     {
     stream.Position = serVertList.Field0 + 16 + (44*i) ;
         FatVertex temp12_VertList;
         temp12_VertList = new FatVertex();
         temp12_VertList.FileRead(stream, stream.Position);
         _VertList.Add(temp12_VertList);
     }
     stream.Position = offset + 20;
     serInfluenceList = new SerializeData();
     serInfluenceList.FileRead(stream, stream.Position);
     stream.Position = offset + 28;
     //still checking variablearrays
     InfluenceList = new List<VertInfluences>();
     for(int i = 0; i < (int)(serInfluenceList.Field1 / 24); i++)
     {
     stream.Position = serInfluenceList.Field0 + 16 + (24*i) ;
         VertInfluences temp12_InfluenceList;
         temp12_InfluenceList = new VertInfluences();
         temp12_InfluenceList.FileRead(stream, stream.Position);
         _InfluenceList.Add(temp12_InfluenceList);
     }
     stream.Position = offset + 32;
     nIndexCount = stream.ReadValueS32();
     stream.Position = offset + 36;
     serIndexList = new SerializeData();
     serIndexList.FileRead(stream, stream.Position);
     stream.Position = offset + 44;
     //still checking variablearrays
     IndexList = new List<ushort>();
     for(int i = 0; i < (int)(serIndexList.Field1 / 2); i++)
     {
     stream.Position = serIndexList.Field0 + 16 + (2*i) ;
         ushort temp12_IndexList;
         temp12_IndexList = stream.ReadValueU16();
         _IndexList.Add(temp12_IndexList);
     }
     stream.Position = offset + 48;
     serClothStructure = new SerializeData();
     serClothStructure.FileRead(stream, stream.Position);
     stream.Position = offset + 56;
     //still checking variablearrays
     ClothStructure = new List<ClothStructure>();
     for(int i = 0; i < (int)(serClothStructure.Field1 / 88); i++)
     {
     stream.Position = serClothStructure.Field0 + 16 + (88*i) ;
         ClothStructure temp12_ClothStructure;
         temp12_ClothStructure = new ClothStructure();
         temp12_ClothStructure.FileRead(stream, stream.Position);
         _ClothStructure.Add(temp12_ClothStructure);
     }
     stream.Position = offset + 60;
     snoSurface = stream.ReadValueS32();
     stream.Position = offset + 64;
     Field12 = stream.ReadValueS32();
     stream.Position = offset + 68;
     Field13 = stream.ReadValueF32();
     stream.Position = offset + 72;
     Field14 = stream.ReadString(128);
     stream.Position = offset + 200;
     Field15 = stream.ReadString(128);
     stream.Position = offset + 328;
     aabbBounds = new AABB();
     aabbBounds.FileRead(stream, stream.Position);
     stream.Position = offset + 352;
     nShapeCount = stream.ReadValueS32();
     stream.Position = offset + 356;
     serShapes = new SerializeData();
     serShapes.FileRead(stream, stream.Position);
     stream.Position = offset + 364;
     //still checking variablearrays
     Shapes = new List<CollisionShape>();
     for(int i = 0; i < (int)(serShapes.Field1 / 68); i++)
     {
     stream.Position = serShapes.Field0 + 16 + (68*i) ;
         CollisionShape temp12_Shapes;
         temp12_Shapes = new CollisionShape();
         temp12_Shapes.FileRead(stream, stream.Position);
         _Shapes.Add(temp12_Shapes);
     }
 }
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 0;
     Field0 = stream.ReadString(128);
     stream.Position = offset + 128;
     serSOAs = new SerializeData();
     serSOAs.FileRead(stream, stream.Position);
     stream.Position = offset + 136;
     //still checking variablearrays
     SOAs = new List<SubObjectAppearance>();
     for(int i = 0; i < (int)(serSOAs.Field1 / 248); i++)
     {
     stream.Position = serSOAs.Field0 + 16 + (248*i) ;
         SubObjectAppearance temp12_SOAs;
         temp12_SOAs = new SubObjectAppearance();
         temp12_SOAs.FileRead(stream, stream.Position);
         _SOAs.Add(temp12_SOAs);
     }
 }
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 0;
     Color = new RGBAColor[2];
     for(int loop12=0; loop12 < 2; loop12++ )
     {
         RGBAColor temp12_Color;
         temp12_Color = new RGBAColor();
         temp12_Color.FileRead(stream, stream.Position);
         _Color[loop12] = temp12_Color;
     }
     stream.Position = offset + 8;
     String1 = stream.ReadString(64);
     stream.Position = offset + 72;
     Field2 = stream.ReadValueS32();
     stream.Position = offset + 76;
     Field3 = stream.ReadValueS32();
 }
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 0;
     Field0 = stream.ReadValueS64();
     stream.Position = offset + 8;
     Field1 = stream.ReadString(512);
     stream.Position = offset + 520;
     Field2 = stream.ReadValueS32();
     stream.Position = offset + 524;
     Field3 = new int[2];
     for(int loop12=0; loop12 < 2; loop12++ )
     {
         int temp12_Field3;
         temp12_Field3 = stream.ReadValueS32();
         _Field3[loop12] = temp12_Field3;
     }
 }
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 0;
     Field0 = stream.ReadString(64);
     stream.Position = offset + 64;
     Field1 = stream.ReadValueF32();
     stream.Position = offset + 68;
     Field2 = stream.ReadValueF32();
     stream.Position = offset + 72;
     Field3 = stream.ReadValueF32();
 }
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 0;
     Field0 = stream.ReadString(512);
     stream.Position = offset + 512;
     Field1 = stream.ReadValueS32();
 }
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 0;
     Field0 = new RequiredMessageHeader();
     Field0.FileRead(stream, stream.Position);
     stream.Position = offset + 8;
     _Field1 = stream.ReadValueS32();
     stream.Position = offset + 12;
     _Field2 = stream.ReadValueS32();
     stream.Position = offset + 16;
     Field3 = stream.ReadString(512);
 }
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 0;
     Field0 = stream.ReadValueS32();
     stream.Position = offset + 8;
     Field1 = stream.ReadValueS64();
     stream.Position = offset + 16;
     Field2 = stream.ReadString(512);
     stream.Position = offset + 528;
     Field3 = stream.ReadValueS64();
     stream.Position = offset + 536;
     Field4 = stream.ReadString(512);
     stream.Position = offset + 1048;
     Field5 = stream.ReadValueS32();
     stream.Position = offset + 1056;
     Field6 = new UIStyle();
     Field6.FileRead(stream, stream.Position);
     stream.Position = offset + 1664;
     Field7 = new UIAnimationElements();
     Field7.FileRead(stream, stream.Position);
 }
예제 #23
0
파일: Globals.cs 프로젝트: ncoop23/mooege
 public void Read(MpqFileStream stream)
 {
     this.Color = new RGBAColor[2];
     for (int i = 0; i < 2; i++)
         this.Color[i] = new RGBAColor(stream);
     this.I0 = stream.ReadValueS32();
     this.S0 = stream.ReadString(64,true);
 }
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 0;
     Field0 = stream.ReadValueS64();
     stream.Position = offset + 8;
     Field1 = stream.ReadString(256);
 }
예제 #25
0
파일: Scene.cs 프로젝트: tovipoussin/mooege
            public NavMeshDef(MpqFileStream stream)
            {
                this.SquaresCountX = stream.ReadValueS32();
                this.SquaresCountY = stream.ReadValueS32();
                this.Int0 = stream.ReadValueS32();
                this.NavMeshSquareCount = stream.ReadValueS32();
                this.Float0 = stream.ReadValueF32();
                this.Squares = stream.ReadSerializedData<NavMeshSquare>();
               
                if (SquaresCountX < 64 && SquaresCountY < 64)
                {
                    WalkGrid = new byte[64, 64];
                }
                else if (SquaresCountX < 128 && SquaresCountY < 128)
                {
                    WalkGrid = new byte[128, 128]; //96*96
                }
                else if (SquaresCountX > 128 || SquaresCountY > 128)
                {
                    WalkGrid = new byte[256, 256];
                }


                // Loop thru each NavmeshSquare in the array, and fills the grid
                for (int i = 0; i < NavMeshSquareCount; i++)
                {
                    WalkGrid[i % SquaresCountX, i / SquaresCountY] = (byte)(Squares[i].Flags & Scene.NavCellFlags.AllowWalk);
                   // Set the grid to 0x1 if its walkable, left as 0 if not. - DarkLotus
                }

                stream.Position += (3 * 4);
                this.Filename = stream.ReadString(256, true);
            }
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 0;
     Field0 = stream.ReadValueS64();
     stream.Position = offset + 8;
     Field1 = stream.ReadString(512);
     stream.Position = offset + 520;
     Field2 = new DataElements();
     Field2.FileRead(stream, stream.Position);
     stream.Position = offset + 568;
     Field3 = stream.ReadValueS32();
     stream.Position = offset + 572;
     serChildSpecs = new SerializeData();
     serChildSpecs.FileRead(stream, stream.Position);
     stream.Position = offset + 580;
     //still checking variablearrays
     ChildSpecs = new List<UIStyleChildSpec>();
     for(int i = 0; i < (int)(serChildSpecs.Field1 / 572); i++)
     {
     stream.Position = serChildSpecs.Field0 + 16 + (572*i) ;
         UIStyleChildSpec temp12_ChildSpecs;
         temp12_ChildSpecs = new UIStyleChildSpec();
         temp12_ChildSpecs.FileRead(stream, stream.Position);
         _ChildSpecs.Add(temp12_ChildSpecs);
     }
 }
예제 #27
0
파일: World.cs 프로젝트: Naxp/mooege
 public void Read(MpqFileStream stream)
 {
     this.Name = stream.ReadString(128, true);
     CommandType = stream.ReadValueS32();
     this.TagMap = stream.ReadSerializedItem<TagMap>();
     stream.Position += (3 * 4);
 }
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 0;
     Field0 = stream.ReadString(512);
     stream.Position = offset + 512;
     Field1 = new DataElements();
     Field1.FileRead(stream, stream.Position);
 }
예제 #29
0
파일: World.cs 프로젝트: Naxp/mooege
 public void Read(MpqFileStream stream)
 {
     this.Name = stream.ReadString(128, true);
     LabelCondition = new LabelCondition(stream);
     Int0 = stream.ReadValueS32();
     LabelCount = stream.ReadValueS32();
     stream.Position += (2 * 4);
     this.Entries = stream.ReadSerializedData<LabelEntry>();
 }
 public void FileRead(MpqFileStream stream, long offset)
 {
     stream.Position = offset + 0;
     Field0 = new RequiredMessageHeader();
     Field0.FileRead(stream, stream.Position);
     stream.Position = offset + 8;
     SNOPackHash = stream.ReadValueS32();
     stream.Position = offset + 12;
     ProtocolHash = stream.ReadValueS32();
     stream.Position = offset + 16;
     Version = stream.ReadString(32);
 }