﻿using OpenCommonsGame.Model;
using OpenCommonsGame.Model.Repositories;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OpenCommonsGame.Editor.TreeNodes
{
    internal class LinkedByNode : EditorBaseNode
    {
        public IGroupedLinkedBy LinkedBy { get; private set; }

        public LinkedByNode(IGroupedLinkedBy linkedBy)
        {
            LinkedBy = linkedBy;

            Name = LinkedBy.Predicate;
        }

        public override void HandleExpand()
        {
            base.HandleExpand();

            foreach (var link in LinkedBy.LinkRelations)
            {

            }
        }

        public override void HandleCollapse()
        {
            base.HandleCollapse();
        }
    }
}