Example #1
0
        public bool RemoveAttachment(EditorSceneElementAttachment to_remove)
        {
            if (attachments.Remove(to_remove) | surpressed_attachments.Remove(to_remove))
                return true;

            return false;
        }
Example #2
0
        protected override bool HandleAttachment(ref EditorSceneElementAttachment attachment)
        {
            if (element != null)
            {
                element.AddAttachment(attachment);
            }

            return(false);
        }
Example #3
0
 public void AddAttachment(EditorSceneElementAttachment to_add)
 {
     if (to_add != null)
     {
         if (to_add.PrepareElementForAttachment(this))
         {
             if (HandleAttachment(ref to_add))
                 attachments.Add(to_add);
             else
                 surpressed_attachments.Add(to_add);
         }
     }
 }
Example #4
0
 protected virtual bool HandleAttachment(ref EditorSceneElementAttachment attachment) { return true; }