OpenMetaverse.AgentManager.PickInfoUpdate C# (CSharp) Method

PickInfoUpdate() public method

Create or update profile pick
public PickInfoUpdate ( UUID pickID, bool topPick, UUID parcelID, string name, Vector3d globalPosition, UUID textureID, string description ) : void
pickID UUID UUID of the pick to update, or random UUID to create a new pick
topPick bool Is this a top pick? (typically false)
parcelID UUID UUID of the parcel (UUID.Zero for the current parcel)
name string Name of the pick
globalPosition Vector3d Global position of the pick landmark
textureID UUID UUID of the image displayed with the pick
description string Long description of the pick
return void
        public void PickInfoUpdate(UUID pickID, bool topPick, UUID parcelID, string name, Vector3d globalPosition, UUID textureID, string description)
        {
            PickInfoUpdatePacket pick = new PickInfoUpdatePacket();
            pick.AgentData.AgentID = Client.Self.AgentID;
            pick.AgentData.SessionID = Client.Self.SessionID;
            pick.Data.PickID = pickID;
            pick.Data.Desc = Utils.StringToBytes(description);
            pick.Data.CreatorID = Client.Self.AgentID;
            pick.Data.TopPick = topPick;
            pick.Data.ParcelID = parcelID;
            pick.Data.Name = Utils.StringToBytes(name);
            pick.Data.SnapshotID = textureID;
            pick.Data.PosGlobal = Client.Self.GlobalPosition;
            pick.Data.SortOrder = 0;
            pick.Data.Enabled = false;

            Client.Network.SendPacket(pick);
        }