Exemplo n.º 1
0
        protected void ObjectPropertiesFamilyHandler(Packet p, Simulator sim)
        {
            ObjectPropertiesFamilyPacket op = (ObjectPropertiesFamilyPacket)p;
            LLObject.ObjectPropertiesFamily props = new LLObject.ObjectPropertiesFamily();

            props.RequestFlags = (LLObject.ObjectPropertiesFamily.RequestFlagsType)op.ObjectData.RequestFlags;
            props.Category = op.ObjectData.Category;
            props.Description = Helpers.FieldToUTF8String(op.ObjectData.Description);
            props.GroupID = op.ObjectData.GroupID;
            props.LastOwnerID = op.ObjectData.LastOwnerID;
            props.Name = Helpers.FieldToUTF8String(op.ObjectData.Name);
            props.ObjectID = op.ObjectData.ObjectID;
            props.OwnerID = op.ObjectData.OwnerID;
            props.OwnershipCost = op.ObjectData.OwnershipCost;
            props.SalePrice = op.ObjectData.SalePrice;
            props.SaleType = op.ObjectData.SaleType;
            props.Permissions.BaseMask = (PermissionMask)op.ObjectData.BaseMask;
            props.Permissions.EveryoneMask = (PermissionMask)op.ObjectData.EveryoneMask;
            props.Permissions.GroupMask = (PermissionMask)op.ObjectData.GroupMask;
            props.Permissions.NextOwnerMask = (PermissionMask)op.ObjectData.NextOwnerMask;
            props.Permissions.OwnerMask = (PermissionMask)op.ObjectData.OwnerMask;

            if (Client.Settings.OBJECT_TRACKING)
            {
                Primitive findPrim = sim.ObjectsPrimitives.Find(
                        delegate(Primitive prim) { return prim.ID == props.ObjectID; });

                if (findPrim != null)
                {
                    lock (sim.ObjectsPrimitives.Dictionary)
                    {
                        if (sim.ObjectsPrimitives.Dictionary.ContainsKey(findPrim.LocalID))
                            sim.ObjectsPrimitives.Dictionary[findPrim.LocalID].PropertiesFamily = props;
                    }
                }
            }

            FireOnObjectPropertiesFamily(sim, props);
        }
Exemplo n.º 2
0
 void Objects_OnObjectPropertiesFamily(Simulator simulator, LLObject.ObjectPropertiesFamily properties)
 {
     Properties = properties;
     GotPermissions = true;
     GotPermissionsEvent.Set();
 }
Exemplo n.º 3
0
        protected void ObjectPropertiesFamilyHandler(Packet p, Simulator sim)
        {
            ObjectPropertiesFamilyPacket op = (ObjectPropertiesFamilyPacket)p;
            LLObject.ObjectPropertiesFamily props = new LLObject.ObjectPropertiesFamily();

            props.RequestFlags = (LLObject.ObjectPropertiesFamily.RequestFlagsType)op.ObjectData.RequestFlags;
            props.Category = op.ObjectData.Category;
            props.Description = Helpers.FieldToUTF8String(op.ObjectData.Description);
            props.GroupID = op.ObjectData.GroupID;
            props.LastOwnerID = op.ObjectData.LastOwnerID;
            props.Name = Helpers.FieldToUTF8String(op.ObjectData.Name);
            props.ObjectID = op.ObjectData.ObjectID;
            props.OwnerID = op.ObjectData.OwnerID;
            props.OwnershipCost = op.ObjectData.OwnershipCost;
            props.SalePrice = op.ObjectData.SalePrice;
            props.SaleType = op.ObjectData.SaleType;
            props.Permissions.BaseMask = (PermissionMask)op.ObjectData.BaseMask;
            props.Permissions.EveryoneMask = (PermissionMask)op.ObjectData.EveryoneMask;
            props.Permissions.GroupMask = (PermissionMask)op.ObjectData.GroupMask;
            props.Permissions.NextOwnerMask = (PermissionMask)op.ObjectData.NextOwnerMask;
            props.Permissions.OwnerMask = (PermissionMask)op.ObjectData.OwnerMask;

            FireOnObjectPropertiesFamily(sim, props);
        }