Ejemplo n.º 1
0
 public void AsText(StringBuilder b, int pad)
 {
     b.Append(' ', pad);
     b.AppendLine("SceneCachedValues:");
     b.Append(' ', pad++);
     b.AppendLine("{");
     b.Append(' ', pad);
     b.AppendLine("Unknown1: 0x" + Unknown1.ToString("X8") + " (" + Unknown1 + ")");
     b.Append(' ', pad);
     b.AppendLine("Unknown2: 0x" + Unknown2.ToString("X8") + " (" + Unknown2 + ")");
     b.Append(' ', pad);
     b.AppendLine("Unknown3: 0x" + Unknown3.ToString("X8") + " (" + Unknown3 + ")");
     AABB1.AsText(b, pad);
     AABB2.AsText(b, pad);
     b.Append(' ', pad);
     b.AppendLine("Unknown4:");
     b.Append(' ', pad);
     b.AppendLine("{");
     for (int i = 0; i < Unknown4.Length;)
     {
         b.Append(' ', pad + 1);
         for (int j = 0; j < 8 && i < Unknown4.Length; j++, i++)
         {
             b.Append("0x" + Unknown4[i].ToString("X8") + ", ");
         }
         b.AppendLine();
     }
     b.Append(' ', pad);
     b.AppendLine("}");
     b.AppendLine();
     b.Append(' ', pad);
     b.AppendLine("Unknown5: 0x" + Unknown5.ToString("X8") + " (" + Unknown5 + ")");
     b.Append(' ', --pad);
     b.AppendLine("}");
 }
Ejemplo n.º 2
0
        public override string ToString()
        {
            string s = TimeCode.ToString() + ": " + Parameter.ToString();

            if (parent == null)
            {
                s += ", " + Unknown1.ToString() + "; " + Unknown2.ToString();
            }
            else
            {
                if (parent.Type == AnimationTokenType.SixByte)
                {
                    s += "; " + Unknown1.ToString();
                }
                if (parent.Type == AnimationTokenType.EightByte)
                {
                    s += "; " + Unknown1.ToString() + "; " + Unknown2.ToString();
                }
            }
            if (Linear)
            {
                s += " (linear)";
            }
            if (ParentLocked)
            {
                s += " (locked)";
            }
            return(s);
        }
Ejemplo n.º 3
0
        public void WriteXml(XmlWriter writer)
        {
            writer.WriteAttributeString("class", ClassName);
            writer.WriteAttributeString("classVersion", Version.ToString());
            writer.WriteAttributeString("addr", String.Format("0x{0:X8}", Address));
            writer.WriteAttributeString("unknown1", Unknown1.ToString());
            writer.WriteAttributeString("unknown2", Unknown2.ToString());


            writer.WriteStartElement("staticProperties");
            foreach (var staticProperty in StaticProperties)
            {
                writer.WriteStartElement("property");
                staticProperty.WriteXml(writer);
                writer.WriteEndElement();
            }
            writer.WriteEndElement();

            writer.WriteStartElement("dynamicProperties");
            foreach (var dynamicProperty in DynamicProperties)
            {
                writer.WriteStartElement("property");
                dynamicProperty.WriteXml(writer);
                writer.WriteEndElement();
            }
            writer.WriteEndElement();
        }
Ejemplo n.º 4
0
            public override ListViewItem GetListViewItem()
            {
                ListViewItem m = new ListViewItem("");

                m.SubItems.Add(Position.X.ToString());
                m.SubItems.Add(Position.Y.ToString());
                m.SubItems.Add(Position.Z.ToString());

                m.SubItems.Add(Unknown1.ToString());
                m.SubItems.Add(HexUtil.GetHexReverse(Unknown2));
                return(m);
            }
Ejemplo n.º 5
0
        public PlayerShip(byte[] byteArray, int startIndex)
        {
            if (byteArray != null)
            {
                if (_log.IsInfoEnabled)
                {
                    _log.InfoFormat("{0}--bytes in: {1}", MethodBase.GetCurrentMethod().ToString(), Utility.BytesToDebugString(byteArray));
                }


                Unknown0 = BitConverter.ToInt32(byteArray, startIndex);
                if (_log.IsInfoEnabled)
                {
                    _log.InfoFormat("Unknown0={0}", Unknown0.ToString());
                }
                Unknown1 = BitConverter.ToInt32(byteArray, startIndex + 4);
                if (_log.IsInfoEnabled)
                {
                    _log.InfoFormat("Unknown1={0}", Unknown1.ToString());
                }

                Unknown2 = BitConverter.ToInt32(byteArray, startIndex + 8);
                if (_log.IsInfoEnabled)
                {
                    _log.InfoFormat("Unknown2={0}", Unknown2.ToString());
                }
                Name = new ArtemisString(byteArray, startIndex + 12);



                if (_log.IsInfoEnabled)
                {
                    _log.InfoFormat("Name={0}", Name.ToString());
                }



                Length = 16 + Name.Length * 2;
                if (_log.IsInfoEnabled)
                {
                    _log.InfoFormat("Length={0}", Length.ToString());
                }
                if (_log.IsInfoEnabled)
                {
                    _log.InfoFormat("{0}--Result bytes: {1}", MethodBase.GetCurrentMethod().ToString(), Utility.BytesToDebugString(this.GetBytes()));
                }
            }
        }
Ejemplo n.º 6
0
            public override ListViewItem GetListViewItem()
            {
                ListViewItem m = new ListViewItem("");

                m.SubItems.Add(Type.ToString());
                m.SubItems.Add(Next.ToString());
                m.SubItems.Add(Unknown1.ToString());
                m.SubItems.Add(RouteID.ToString());

                m.SubItems.Add(RouteSpeed.ToString());
                m.SubItems.Add(FOVSpeed.ToString());
                m.SubItems.Add(ViewpointSpeed.ToString());

                m.SubItems.Add(Unknown2.ToString());
                m.SubItems.Add(Unknown3.ToString());

                m.SubItems.Add(Position.X.ToString());
                m.SubItems.Add(Position.Y.ToString());
                m.SubItems.Add(Position.Z.ToString());

                m.SubItems.Add(Rotation.X.ToString());
                m.SubItems.Add(Rotation.Y.ToString());
                m.SubItems.Add(Rotation.Z.ToString());

                m.SubItems.Add(FOVBegin.ToString());
                m.SubItems.Add(FOVEnd.ToString());

                m.SubItems.Add(Viewpoint1.X.ToString());
                m.SubItems.Add(Viewpoint1.Y.ToString());
                m.SubItems.Add(Viewpoint1.Z.ToString());

                m.SubItems.Add(Viewpoint2.X.ToString());
                m.SubItems.Add(Viewpoint2.Y.ToString());
                m.SubItems.Add(Viewpoint2.Z.ToString());

                m.SubItems.Add(Duration.ToString());
                return(m);
            }
Ejemplo n.º 7
0
        public override string[] ToStringArray()
        {
            string[] a = new string[15];
            a[0] = ID.ToString();
            a[1] = Shape;
            //a[2] = Bytes[1].ToString();
            a[2]  = FloorTextureID.ToString();
            a[3]  = Unknown1.ToString();
            a[4]  = A.ToString();
            a[5]  = B.ToString();
            a[6]  = C.ToString();
            a[7]  = D.ToString();
            a[8]  = E.ToString();
            a[9]  = F.ToString();
            a[10] = G.ToString();
            a[11] = H.ToString();
            a[12] = Unknown2.ToString();
            a[13] = Unknown3.ToString();

            a[14] = Offset.ToString();
            //a[23] = GameType.ToString();

            return(a);
        }
Ejemplo n.º 8
0
 public void AsText(StringBuilder b, int pad)
 {
     b.Append(' ', pad);
     b.AppendLine("SceneSpecification:");
     b.Append(' ', pad++);
     b.AppendLine("{");
     b.Append(' ', pad);
     b.AppendLine("CellZ: 0x" + CellZ.ToString("X8") + " (" + CellZ + ")");
     Cell.AsText(b, pad);
     b.Append(' ', pad);
     b.AppendLine("arSnoLevelAreas:");
     b.Append(' ', pad);
     b.AppendLine("{");
     for (int i = 0; i < SNOLevelAreas.Length;)
     {
         b.Append(' ', pad + 1);
         for (int j = 0; j < 8 && i < SNOLevelAreas.Length; j++, i++)
         {
             b.Append("0x" + SNOLevelAreas[i].ToString("X8") + ", ");
         }
         b.AppendLine();
     }
     b.Append(' ', pad);
     b.AppendLine("}");
     b.AppendLine();
     b.Append(' ', pad);
     b.AppendLine("snoPrevWorld: 0x" + SNOPrevWorld.ToString("X8"));
     b.Append(' ', pad);
     b.AppendLine("Unknown1: 0x" + Unknown1.ToString("X8") + " (" + Unknown1 + ")");
     b.Append(' ', pad);
     b.AppendLine("snoPrevLevelArea: 0x" + SNOPrevLevelArea.ToString("X8"));
     b.Append(' ', pad);
     b.AppendLine("snoNextWorld: 0x" + SNONextWorld.ToString("X8"));
     b.Append(' ', pad);
     b.AppendLine("Unknown2: 0x" + Unknown2.ToString("X8") + " (" + Unknown2 + ")");
     b.Append(' ', pad);
     b.AppendLine("snoNextLevelArea: 0x" + SNONextLevelArea.ToString("X8"));
     b.Append(' ', pad);
     b.AppendLine("snoMusic: 0x" + SNOMusic.ToString("X8"));
     b.Append(' ', pad);
     b.AppendLine("snoCombatMusic: 0x" + SNOCombatMusic.ToString("X8"));
     b.Append(' ', pad);
     b.AppendLine("snoAmbient: 0x" + SNOAmbient.ToString("X8"));
     b.Append(' ', pad);
     b.AppendLine("snoReverb: 0x" + SNOReverb.ToString("X8"));
     b.Append(' ', pad);
     b.AppendLine("snoWeather: 0x" + SNOWeather.ToString("X8"));
     b.Append(' ', pad);
     b.AppendLine("snoPresetWorld: 0x" + SNOPresetWorld.ToString("X8"));
     b.Append(' ', pad);
     b.AppendLine("Unknown3: 0x" + Unknown3.ToString("X8") + " (" + Unknown3 + ")");
     b.Append(' ', pad);
     b.AppendLine("Unknown4: 0x" + Unknown4.ToString("X8") + " (" + Unknown4 + ")");
     b.Append(' ', pad);
     b.AppendLine("Unknown5: 0x" + Unknown5.ToString("X8") + " (" + Unknown5 + ")");
     b.Append(' ', pad);
     b.AppendLine("ClusterId: 0x" + ClusterID.ToString("X8") + " (" + ClusterID + ")");
     SceneCachedValues.AsText(b, pad);
     b.Append(' ', --pad);
     b.AppendLine("}");
 }
Ejemplo n.º 9
0
 public override string ToString()
 {
     return($"{{{nameof(Offset)}={Offset.ToString("X")}, {nameof(Unknown0)}={Unknown0.ToString("X")}, {nameof(Unknown1)}={Unknown1.ToString("X")}, {nameof(Pad0)}={Pad0.ToString("X")}, {nameof(Pad1)}={Pad1.ToString("X")}}}");
 }
Ejemplo n.º 10
0
 public override string ToString()
 {
     return($"{{{nameof(Offset)}={Offset.ToString("X")}, {nameof(Unknown0)}={Unknown0.ToString("X")}, {nameof(Unknown1)}={Unknown1.ToString("X")}, {nameof(Unknown2)}={Unknown2.ToString("X")}, {nameof(Unknown3)}={Unknown3.ToString("X")}, {nameof(Unknown4)}={Unknown4.ToString("X")}, {nameof(Unknown5)}={Unknown5.ToString("X")}, {nameof(Unknown6)}={Unknown6.ToString("X")}, {nameof(Unknown7)}={Unknown7.ToString("X")}}}");
 }
 public override void UpdateData()
 {
     Data = Unknown1.ToString() + ", " + Unknown2.ToString() + ", " + Unknown3.ToString() + ", " + Unknown4.ToString() + ", " + Unknown5.ToString();
 }
Ejemplo n.º 12
0
 public override string ToString()
 {
     return($"{{{nameof(Offset)}={Offset.ToString("X")}, {nameof(Unknown0)}={Unknown0.ToString("X")}, {nameof(Unknown1)}={Unknown1.ToString("X")}, {nameof(Unknown2)}={Unknown2.ToString("X")}, {nameof(HorizontalBoost)}={HorizontalBoost.ToString("X")}, {nameof(HopsOffset)}={HopsOffset.ToString("X")}, {nameof(UnknownDatasOffset)}={UnknownDatasOffset.ToString("X")}, {nameof(TurnFrames)}={TurnFrames.ToString("X")}, {nameof(Hops)}={Hops}, {nameof(MultiJumpUnknown)}={MultiJumpUnknown}}}");
 }