public void Parse(GameBitBuffer buffer)
 {
     Scale = buffer.ReadFloat32();
     Transform = new PRTransform();
     Transform.Parse(buffer);
     WorldID = buffer.ReadUInt(32);
 }
 public void Parse(GameBitBuffer buffer)
 {
     Field0 = buffer.ReadFloat32();
     Field1 = new PRTransform();
     Field1.Parse(buffer);
     Field2 = buffer.ReadInt(32);
 }
 public override void Parse(GameBitBuffer buffer)
 {
     ChunkID = buffer.ReadInt(32);
     snoScene = buffer.ReadInt(32);
     Field2 = new PRTransform();
     Field2.Parse(buffer);
     Field3 = buffer.ReadInt(32);
     MiniMapVisibility = buffer.ReadInt(3);
 }
 public override void Parse(GameBitBuffer buffer)
 {
     ChunkID = buffer.ReadUInt(32);
     SceneSNO = buffer.ReadInt(32);
     Transform = new PRTransform();
     Transform.Parse(buffer);
     WorldID = buffer.ReadUInt(32);
     MiniMapVisibility = buffer.ReadInt(3);
 }
Exemple #5
0
 public override void Parse(GameBitBuffer buffer)
 {
     WorldID = buffer.ReadUInt(32);
     SceneSpec = new SceneSpecification();
     SceneSpec.Parse(buffer);
     ChunkID = buffer.ReadUInt(32);
     SceneSNO = buffer.ReadInt(32);
     Transform = new PRTransform();
     Transform.Parse(buffer);
     ParentChunkID = buffer.ReadUInt(32);
     SceneGroupSNO = buffer.ReadInt(32);
     arAppliedLabels = new int /* gbid */[buffer.ReadInt(9)];
     for (int i = 0; i < arAppliedLabels.Length; i++) arAppliedLabels[i] = buffer.ReadInt(32);
 }
 public MapRevealSceneMessage(string[] data2, int f3)
 {
     Id = 0x0044;
     ChunkID = int.Parse(data2[0]);
     snoScene = int.Parse(data2[1]);
     Field2 = new PRTransform()
                  {
                      Field0 = new Quaternion()
                                   {
                                       Amount = float.Parse(data2[5], System.Globalization.CultureInfo.InvariantCulture),
                                       Axis = new Vector3D()
                                                    {
                                                        X = float.Parse(data2[2], System.Globalization.CultureInfo.InvariantCulture),
                                                        Y = float.Parse(data2[3], System.Globalization.CultureInfo.InvariantCulture),
                                                        Z = float.Parse(data2[4], System.Globalization.CultureInfo.InvariantCulture),
                                                    },
                                   },
                      ReferencePoint = new Vector3D()
                                   {
                                       X = float.Parse(data2[6], System.Globalization.CultureInfo.InvariantCulture),
                                       Y = float.Parse(data2[7], System.Globalization.CultureInfo.InvariantCulture),
                                       Z = float.Parse(data2[8], System.Globalization.CultureInfo.InvariantCulture),
                                   },
                  };
     Field3 = f3;//int.Parse(data2[9]),
     MiniMapVisibility = int.Parse(data2[10]);
 }
Exemple #7
0
        public RevealSceneMessage(string[] data, int f0)
        {
            Id = 0x0034;
            WorldID = f0;//0x772E0000; //int.Parse(data[0]),
            SceneSpec = new SceneSpecification()
                            {
                                Field0 = int.Parse(data[1]),
                                Field1 = new IVector2D()
                                             {
                                                 Field0 = int.Parse(data[2]),
                                                 Field1 = int.Parse(data[3]),
                                             },
                                arSnoLevelAreas = new int[4] { int.Parse(data[4]), int.Parse(data[5]), int.Parse(data[6]), int.Parse(data[7]), },
                                snoPrevWorld = int.Parse(data[8]),
                                Field4 = int.Parse(data[9]),
                                snoPrevLevelArea = int.Parse(data[10]),
                                snoNextWorld = int.Parse(data[11]),
                                Field7 = int.Parse(data[12]),
                                snoNextLevelArea = int.Parse(data[13]),
                                snoMusic = int.Parse(data[14]),
                                snoCombatMusic = int.Parse(data[15]),
                                snoAmbient = int.Parse(data[16]),
                                snoReverb = int.Parse(data[17]),
                                snoWeather = int.Parse(data[18]),
                                snoPresetWorld = int.Parse(data[19]),
                                Field15 = int.Parse(data[20]),
                                Field16 = int.Parse(data[21]),
                                Field17 = int.Parse(data[22]),
                                Field18 = int.Parse(data[23]),
                                tCachedValues = new SceneCachedValues()
                                                    {
                                                        Field0 = int.Parse(data[24]),
                                                        Field1 = int.Parse(data[25]),
                                                        Field2 = int.Parse(data[26]),
                                                        Field3 = new AABB()
                                                                     {
                                                                         Field0 = new Vector3D()
                                                                                      {
                                                                                          X = float.Parse(data[27], System.Globalization.CultureInfo.InvariantCulture),
                                                                                          Y = float.Parse(data[28], System.Globalization.CultureInfo.InvariantCulture),
                                                                                          Z = float.Parse(data[29], System.Globalization.CultureInfo.InvariantCulture),
                                                                                      },
                                                                         Field1 = new Vector3D()
                                                                                      {
                                                                                          X = float.Parse(data[30], System.Globalization.CultureInfo.InvariantCulture),
                                                                                          Y = float.Parse(data[31], System.Globalization.CultureInfo.InvariantCulture),
                                                                                          Z = float.Parse(data[32], System.Globalization.CultureInfo.InvariantCulture),
                                                                                      },
                                                                     },
                                                        Field4 = new AABB()
                                                                     {
                                                                         Field0 = new Vector3D()
                                                                                      {
                                                                                          X = float.Parse(data[33], System.Globalization.CultureInfo.InvariantCulture),
                                                                                          Y = float.Parse(data[34], System.Globalization.CultureInfo.InvariantCulture),
                                                                                          Z = float.Parse(data[35], System.Globalization.CultureInfo.InvariantCulture),
                                                                                      },
                                                                         Field1 = new Vector3D()
                                                                                      {
                                                                                          X = float.Parse(data[36], System.Globalization.CultureInfo.InvariantCulture),
                                                                                          Y = float.Parse(data[37], System.Globalization.CultureInfo.InvariantCulture),
                                                                                          Z = float.Parse(data[38], System.Globalization.CultureInfo.InvariantCulture),
                                                                                      },
                                                                     },
                                                        Field5 = new int[4] { int.Parse(data[39]), int.Parse(data[40]), int.Parse(data[41]), int.Parse(data[42]), },
                                                        Field6 = int.Parse(data[43]),
                                                    },
                            };
            ChunkID = int.Parse(data[44]);
            snoScene = int.Parse(data[45]);
            Position = new PRTransform()
                           {
                               Field0 = new Quaternion()
                                            {
                                                Amount = float.Parse(data[49], System.Globalization.CultureInfo.InvariantCulture),
                                                Axis = new Vector3D()
                                                             {
                                                                 X = float.Parse(data[46], System.Globalization.CultureInfo.InvariantCulture),
                                                                 Y = float.Parse(data[47], System.Globalization.CultureInfo.InvariantCulture),
                                                                 Z = float.Parse(data[48], System.Globalization.CultureInfo.InvariantCulture),
                                                             },
                                            },
                               ReferencePoint = new Vector3D()
                                            {
                                                X = float.Parse(data[50], System.Globalization.CultureInfo.InvariantCulture),
                                                Y = float.Parse(data[51], System.Globalization.CultureInfo.InvariantCulture),
                                                Z = float.Parse(data[52], System.Globalization.CultureInfo.InvariantCulture),
                                            },
                           };

            ParentChunkID = int.Parse(data[53]);
            snoSceneGroup = int.Parse(data[54]);
            arAppliedLabels = new int[0];
        }