Пример #1
0
 public void SendRezSingleAttachmentFromInv(
     ScriptInstance instance,
     ViewerAgentAccessor agent,
     RezObjectData rezdata)
 {
     lock (instance)
     {
         ViewerConnection vc;
         ViewerCircuit    viewerCircuit;
         if (m_Clients.TryGetValue(agent.AgentID, out vc) &&
             vc.ViewerCircuits.TryGetValue((uint)agent.CircuitCode, out viewerCircuit))
         {
             viewerCircuit.SendMessage(new RezSingleAttachmentFromInv
             {
                 AgentID         = agent.AgentID,
                 SessionID       = viewerCircuit.SessionID,
                 ItemID          = rezdata.ItemID.AsUUID,
                 OwnerID         = agent.AgentID,
                 AttachmentPoint = (AttachmentPoint)rezdata.AttachmentPoint,
                 ItemFlags       = (uint)rezdata.ItemFlags,
                 GroupMask       = (InventoryPermissionsMask)rezdata.GroupMask,
                 EveryoneMask    = (InventoryPermissionsMask)rezdata.EveryoneMask,
                 NextOwnerMask   = (InventoryPermissionsMask)rezdata.NextOwnerMask,
                 Name            = rezdata.Name,
                 Description     = rezdata.Description
             });
         }
     }
 }
Пример #2
0
 public RezObjectData(RezObjectData src)
 {
     ItemID          = new LSLKey(src.ItemID);
     AttachmentPoint = src.AttachmentPoint;
     ItemFlags       = src.ItemFlags;
     GroupMask       = src.GroupMask;
     EveryoneMask    = src.EveryoneMask;
     NextOwnerMask   = src.NextOwnerMask;
     Name            = src.Name;
     Description     = src.Description;
 }
Пример #3
0
 public void Add(RezObjectDataList list, RezObjectData data) => list.Add(new RezObjectData(data));