Ejemplo n.º 1
0
            public override void Read(BinaryReader br)
            {
                dataHead      = new NodeBoundData(br);
                flag          = br.ReadUInt32();
                distance      = br.ReadByte();
                buildingNum   = br.ReadUInt32();
                index0        = br.ReadUInt32();
                index1        = br.ReadUInt32();
                index2        = br.ReadUInt32();
                index3        = br.ReadUInt32();
                length        = br.ReadSingle();
                firstBuilding = br.ReadUInt32();
                fbLook        = br.ReadUInt32();
                seed          = br.ReadUInt32();
                float1        = br.ReadSingle();
                modelCount    = br.ReadUInt32();
                models        = new ModelData[modelCount];
                for (uint i = 0; i < modelCount; i++)
                {
                    models[i].modelNum = br.ReadByte();
                    models[i].baseLook = br.ReadByte();
                    models[i].topLook  = br.ReadByte();
                    models[i].accLook  = br.ReadByte();
                }

                addCount = br.ReadUInt32();
                adds     = new AddData[addCount];
                for (uint i = 0; i < addCount; i++)
                {
                    adds[i].baseModel = br.ReadByte();
                    adds[i].topModel  = br.ReadByte();
                    adds[i].accModel  = br.ReadByte();
                    adds[i].unbyte    = br.ReadByte();
                }
            }
Ejemplo n.º 2
0
 public override void Read(BinaryReader br)
 {
     dataHead   = new NodeBoundData(br);
     flag       = br.ReadUInt32();
     distance   = br.ReadByte();
     roadNum    = br.ReadUInt32();
     matNum     = br.ReadUInt32();
     startIndex = br.ReadUInt32();
     endIndex   = br.ReadUInt32();
     dataRight  = new RoadData(br);
     dataLeft   = new RoadData(br);
     centerNum  = br.ReadUInt16();
     tangent    = br.ReadSingle();
     unknown    = br.ReadUInt32();
     signCount  = br.ReadUInt32();
     if (signCount > 0)
     {
         signs = new SignData[signCount];
         for (int i = 0; i < signCount; i++)
         {
             signs[i] = new SignData(br);
         }
     }
     brushCount = br.ReadUInt32();
     if (brushCount > 0)
     {
         brushs = new BrushData[brushCount];
         for (int i = 0; i < brushCount; i++)
         {
             brushs[i] = new BrushData(br);
         }
     }
 }
Ejemplo n.º 3
0
 public uint index2;  //终点编号
 public CutPlane(BinaryReader br)
 {
     dataHead = new NodeBoundData(br);
     flag     = br.ReadUInt32();
     distance = br.ReadByte();
     index1   = br.ReadUInt32();
     index2   = br.ReadUInt32();
 }
Ejemplo n.º 4
0
 public override void Read(BinaryReader br)
 {
     dataHead  = new NodeBoundData(br);
     flag      = br.ReadUInt32();
     distance  = br.ReadByte();
     stopNum   = br.ReadUInt16();
     stopID    = br.ReadUInt32();
     nodeIndex = br.ReadUInt32();
 }
Ejemplo n.º 5
0
 public override void Read(BinaryReader br)
 {
     dataHead  = new NodeBoundData(br);
     flag      = br.ReadUInt32();
     distance  = br.ReadByte();
     width     = br.ReadSingle();
     height    = br.ReadSingle();
     nodeIndex = br.ReadUInt32();
 }
Ejemplo n.º 6
0
 public override void Read(BinaryReader br)
 {
     dataHead  = new NodeBoundData(br);
     flag      = br.ReadUInt32();
     distance  = br.ReadByte();
     modelNum  = br.ReadUInt32();
     matNum    = br.ReadUInt32();
     nodeIndex = br.ReadUInt32();
     rotation  = new Float3(br);
     scale     = new Float3(br);
 }
Ejemplo n.º 7
0
 public override void Read(BinaryReader br)
 {
     dataHead    = new NodeBoundData(br);
     flag        = br.ReadUInt32();
     distance    = br.ReadByte();
     missionName = br.ReadUInt64();
     nodeCount   = br.ReadUInt32();
     nodeIndexs  = new uint[nodeCount];
     for (int i = 0; i < nodeCount; i++)
     {
         nodeIndexs[i] = br.ReadUInt32();
     }
 }
Ejemplo n.º 8
0
 public override void Read(BinaryReader br)
 {
     dataHead     = new NodeBoundData(br);
     flag         = br.ReadUInt32();
     distance     = br.ReadByte();
     modelNum     = br.ReadUInt32();
     matNum       = br.ReadUInt32();
     nodeIndex    = br.ReadUInt32();
     rotation     = new Float3(br);
     scale        = new Float3(br);
     missionCount = br.ReadUInt32();
     missionName  = new ulong[missionCount];
     for (int i = 0; i < missionCount; i++)
     {
         missionName[i] = br.ReadUInt64();
     }
 }
Ejemplo n.º 9
0
 public override void Read(BinaryReader br)
 {
     dataHead     = new NodeBoundData(br);
     flag         = br.ReadUInt32();
     distance     = br.ReadByte();
     moverNum     = br.ReadUInt16();
     speed        = br.ReadSingle();
     delay        = br.ReadSingle();
     tangentCount = br.ReadUInt32();
     tangents     = new float[tangentCount];
     for (uint i = 0; i < tangentCount; i++)
     {
         tangents[i] = br.ReadSingle();
     }
     nodeCount  = br.ReadUInt32();
     nodeIndexs = new uint[nodeCount];
     for (uint i = 0; i < nodeCount; i++)
     {
         nodeIndexs[i] = br.ReadUInt32();
     }
 }
Ejemplo n.º 10
0
            public override void Read(BinaryReader br)
            {
                dataHead  = new NodeBoundData(br);
                flag      = br.ReadUInt32();
                distance  = br.ReadByte();
                prefabNum = br.ReadUInt32();
                lookNum   = br.ReadUInt32();
                uint prefabnodeCount = DefLib.pdds[prefabNum].nodeCount;

                indexs = new uint[prefabnodeCount];
                for (uint i = 0; i < prefabnodeCount; i++)
                {
                    indexs[i] = br.ReadUInt32();
                }
                unknown = br.ReadUInt32();
                rotY    = br.ReadInt16();
                rotZ    = br.ReadInt16();
                terrain = new PrefabTerrain[prefabnodeCount];
                for (uint i = 0; i < prefabnodeCount; i++)
                {
                    terrain[i] = new PrefabTerrain(br);
                }
            }