Assets.cs 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. /*
  2. * Copyright (c) OpenSim project, http://sim.opensecondlife.org/
  3. *
  4. * Redistribution and use in source and binary forms, with or without
  5. * modification, are permitted provided that the following conditions are met:
  6. * * Redistributions of source code must retain the above copyright
  7. * notice, this list of conditions and the following disclaimer.
  8. * * Redistributions in binary form must reproduce the above copyright
  9. * notice, this list of conditions and the following disclaimer in the
  10. * documentation and/or other materials provided with the distribution.
  11. * * Neither the name of the <organization> nor the
  12. * names of its contributors may be used to endorse or promote products
  13. * derived from this software without specific prior written permission.
  14. *
  15. * THIS SOFTWARE IS PROVIDED BY <copyright holder> ``AS IS'' AND ANY
  16. * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  17. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  18. * DISCLAIMED. IN NO EVENT SHALL <copyright holder> BE LIABLE FOR ANY
  19. * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  20. * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  21. * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  22. * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  23. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  24. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  25. *
  26. */
  27. using System;
  28. using libsecondlife;
  29. namespace OpenSim
  30. {
  31. /// <summary>
  32. /// Description of Assets.
  33. /// </summary>
  34. public class AssetBase
  35. {
  36. public byte[] Data;
  37. public LLUUID FullID;
  38. public sbyte Type;
  39. public sbyte InvType;
  40. public string Name;
  41. public string Description;
  42. public AssetBase()
  43. {
  44. }
  45. }
  46. public class PrimAsset: AssetBase
  47. {
  48. public PrimData PrimData;
  49. public PrimAsset()
  50. {
  51. this.PrimData = new PrimData();
  52. }
  53. }
  54. public class PrimData : Node
  55. {
  56. public LLUUID OwnerID;
  57. public LLUUID FullID;
  58. public uint LocalID;
  59. public byte PCode;
  60. public byte PathBegin;
  61. public byte PathEnd;
  62. public byte PathScaleX;
  63. public byte PathScaleY;
  64. public byte PathShearX;
  65. public byte PathShearY;
  66. public sbyte PathSkew;
  67. public byte ProfileBegin;
  68. public byte ProfileEnd;
  69. public LLVector3 Scale;
  70. public byte PathCurve;
  71. public byte ProfileCurve;
  72. public uint ParentID=0;
  73. public byte ProfileHollow;
  74. public uint AddFlags;
  75. public libsecondlife.LLObject.TextureEntry Texture;
  76. //public bool DataBaseStorage=false;
  77. public PrimData()
  78. {
  79. this.SceneType = 2;
  80. }
  81. public void FromBytes(byte[] bytes)
  82. {
  83. }
  84. public byte[] ToBytes()
  85. {
  86. return null;
  87. }
  88. }
  89. //a hangover from the old code, so is it needed for future use?
  90. public class TextureImage: AssetBase
  91. {
  92. public TextureImage()
  93. {
  94. }
  95. }
  96. //a hangover from the old code, so is it needed for future use?
  97. public class AssetInfo :AssetBase
  98. {
  99. public AssetInfo()
  100. {
  101. }
  102. }
  103. }