OpenMetaverse.ObjectManager.LinkPrims C# (CSharp) Method

LinkPrims() public method

Link multiple prims into a linkset
The last object in the array will be the root object of the linkset TODO: Is this true?
public LinkPrims ( Simulator simulator, List localIDs ) : void
simulator Simulator A reference to the object where the objects reside
localIDs List An array which contains the IDs of the objects to link
return void
        public void LinkPrims(Simulator simulator, List<uint> localIDs)
        {
            ObjectLinkPacket packet = new ObjectLinkPacket();

            packet.AgentData.AgentID = Client.Self.AgentID;
            packet.AgentData.SessionID = Client.Self.SessionID;

            packet.ObjectData = new ObjectLinkPacket.ObjectDataBlock[localIDs.Count];

            for (int i = 0; i < localIDs.Count; i++)
            {
                packet.ObjectData[i] = new ObjectLinkPacket.ObjectDataBlock();
                packet.ObjectData[i].ObjectLocalID = localIDs[i];
            }

            Client.Network.SendPacket(packet, simulator);
        }