VeRoomItemNode.cs 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. #region License information
  2. // ----------------------------------------------------------------------------
  3. //
  4. // libeq2 - A library for analyzing the Everquest II File Format
  5. // Blaz (blaz@blazlabs.com)
  6. //
  7. // This program is free software; you can redistribute it and/or
  8. // modify it under the terms of the GNU General Public License
  9. // as published by the Free Software Foundation; either version 2
  10. // of the License, or (at your option) any later version.
  11. //
  12. // This program is distributed in the hope that it will be useful,
  13. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. // GNU General Public License for more details.
  16. //
  17. // You should have received a copy of the GNU General Public License
  18. // along with this program; if not, write to the Free Software
  19. // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
  20. //
  21. // ( The full text of the license can be found in the License.txt file )
  22. //
  23. // ----------------------------------------------------------------------------
  24. #endregion
  25. #region Using directives
  26. using System;
  27. #endregion
  28. namespace Everquest2.Visualization
  29. {
  30. public class VeRoomItemNode : VeItemNode
  31. {
  32. public VeRoomItemNode()
  33. {
  34. }
  35. /// <summary>
  36. /// Special constructor used when deserializing the instance of the class.
  37. /// </summary>
  38. /// <param name="reader">Reader used to read the instance data.</param>
  39. protected VeRoomItemNode(Util.Eq2Reader reader, Util.StreamingContext context) : base(reader, context)
  40. {
  41. byte classVersion = context.ClassVersions[typeof(VeRoomItemNode)];
  42. unk0 = reader.ReadUInt32();
  43. if (classVersion > 0) unk1 = reader.ReadByte();
  44. unk2 = reader.ReadSingle();
  45. if (classVersion > 1)
  46. {
  47. unk3 = reader.ReadByte();
  48. unk4[0] = reader.ReadSingle();
  49. unk4[1] = reader.ReadSingle();
  50. unk4[2] = reader.ReadSingle();
  51. unk5[0] = reader.ReadSingle();
  52. unk5[1] = reader.ReadSingle();
  53. unk5[2] = reader.ReadSingle();
  54. unk6 = reader.ReadByte();
  55. unk7 = reader.ReadByte();
  56. unk8 = reader.ReadByte();
  57. unk9 = reader.ReadByte();
  58. }
  59. }
  60. public uint unk0;
  61. public byte unk1;
  62. public float unk2;
  63. public byte unk3;
  64. public float[] unk4 = new float[3];
  65. public float[] unk5 = new float[3];
  66. public byte unk6;
  67. public byte unk7;
  68. public byte unk8;
  69. public byte unk9;
  70. }
  71. }
  72. /* EOF */