OpenMetaverse.Parcel.Update C# (CSharp) 메소드

Update() 공개 메소드

Update the simulator with any local changes to this Parcel object
public Update ( Simulator simulator, bool wantReply ) : void
simulator Simulator Simulator to send updates to
wantReply bool Whether we want the simulator to confirm /// the update with a reply packet or not
리턴 void
        public void Update(Simulator simulator, bool wantReply)
        {
            ParcelPropertiesUpdatePacket request = new ParcelPropertiesUpdatePacket();

            request.AgentData.AgentID = simulator.Client.Self.AgentID;
            request.AgentData.SessionID = simulator.Client.Self.SessionID;

            request.ParcelData.LocalID = this.LocalID;

            request.ParcelData.AuthBuyerID = this.AuthBuyerID;
            request.ParcelData.Category = (byte)this.Category;
            request.ParcelData.Desc = Utils.StringToBytes(this.Desc);
            request.ParcelData.GroupID = this.GroupID;
            request.ParcelData.LandingType = (byte)this.Landing;

            request.ParcelData.MediaAutoScale = this.Media.MediaAutoScale;
            request.ParcelData.MediaID = this.Media.MediaID;
            request.ParcelData.MediaURL = Utils.StringToBytes(this.Media.MediaURL);
            request.ParcelData.MusicURL = Utils.StringToBytes(this.MusicURL);
            request.ParcelData.Name = Utils.StringToBytes(this.Name);
            if (wantReply) request.ParcelData.Flags = 1;
            request.ParcelData.ParcelFlags = (uint)this.Flags;
            request.ParcelData.PassHours = this.PassHours;
            request.ParcelData.PassPrice = this.PassPrice;
            request.ParcelData.SalePrice = this.SalePrice;
            request.ParcelData.SnapshotID = this.SnapshotID;
            request.ParcelData.UserLocation = this.UserLocation;
            request.ParcelData.UserLookAt = this.UserLookAt;

            simulator.SendPacket(request, true);

            UpdateOtherCleanTime(simulator);
        }