SceneObject.cs 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using OpenSim.types;
  5. using libsecondlife;
  6. using libsecondlife.Packets;
  7. using OpenSim.Framework.Interfaces;
  8. using OpenSim.Physics.Manager;
  9. using OpenSim.Framework.Types;
  10. using OpenSim.Framework.Inventory;
  11. namespace OpenSim.world
  12. {
  13. public class SceneObject : Entity
  14. {
  15. private LLUUID rootUUID;
  16. private Dictionary<LLUUID, Primitive> ChildPrimitives = new Dictionary<LLUUID, Primitive>();
  17. private Dictionary<uint, IClientAPI> m_clientThreads;
  18. private World m_world;
  19. /// <summary>
  20. ///
  21. /// </summary>
  22. public SceneObject()
  23. {
  24. }
  25. /// <summary>
  26. ///
  27. /// </summary>
  28. /// <param name="addPacket"></param>
  29. /// <param name="agentID"></param>
  30. /// <param name="localID"></param>
  31. public void CreateFromPacket(ObjectAddPacket addPacket, LLUUID agentID, uint localID)
  32. {
  33. }
  34. /// <summary>
  35. ///
  36. /// </summary>
  37. /// <param name="data"></param>
  38. public void CreateFromBytes(byte[] data)
  39. {
  40. }
  41. /// <summary>
  42. ///
  43. /// </summary>
  44. public override void update()
  45. {
  46. }
  47. /// <summary>
  48. ///
  49. /// </summary>
  50. public override void BackUp()
  51. {
  52. }
  53. /// <summary>
  54. ///
  55. /// </summary>
  56. /// <param name="client"></param>
  57. public void GetProperites(IClientAPI client)
  58. {
  59. /*
  60. ObjectPropertiesPacket proper = new ObjectPropertiesPacket();
  61. proper.ObjectData = new ObjectPropertiesPacket.ObjectDataBlock[1];
  62. proper.ObjectData[0] = new ObjectPropertiesPacket.ObjectDataBlock();
  63. proper.ObjectData[0].ItemID = LLUUID.Zero;
  64. proper.ObjectData[0].CreationDate = (ulong)this.primData.CreationDate;
  65. proper.ObjectData[0].CreatorID = this.primData.OwnerID;
  66. proper.ObjectData[0].FolderID = LLUUID.Zero;
  67. proper.ObjectData[0].FromTaskID = LLUUID.Zero;
  68. proper.ObjectData[0].GroupID = LLUUID.Zero;
  69. proper.ObjectData[0].InventorySerial = 0;
  70. proper.ObjectData[0].LastOwnerID = LLUUID.Zero;
  71. proper.ObjectData[0].ObjectID = this.uuid;
  72. proper.ObjectData[0].OwnerID = primData.OwnerID;
  73. proper.ObjectData[0].TouchName = new byte[0];
  74. proper.ObjectData[0].TextureID = new byte[0];
  75. proper.ObjectData[0].SitName = new byte[0];
  76. proper.ObjectData[0].Name = new byte[0];
  77. proper.ObjectData[0].Description = new byte[0];
  78. proper.ObjectData[0].OwnerMask = this.primData.OwnerMask;
  79. proper.ObjectData[0].NextOwnerMask = this.primData.NextOwnerMask;
  80. proper.ObjectData[0].GroupMask = this.primData.GroupMask;
  81. proper.ObjectData[0].EveryoneMask = this.primData.EveryoneMask;
  82. proper.ObjectData[0].BaseMask = this.primData.BaseMask;
  83. client.OutPacket(proper);
  84. * */
  85. }
  86. }
  87. }