using System; using System.Collections.Generic; using System.Numerics; namespace PckStudio.Core.Model { public class AbstractModelPart { public string Name { get; } public AbstractModelPart Parent { get; } public Vector3 Translation { get; } public Vector3 Rotation { get; } private IList _boxes; private List _subParts; public AbstractModelPart(string name, AbstractModelPart parent, Vector3 translation, Vector3 rotation, IEnumerable boxes) { Name = name; Parent = parent; Translation = translation; Rotation = rotation; _boxes = new List(boxes); _subParts = new List(); } public void AddBox(Box box) => _boxes.Add(box); internal void AddParts(IEnumerable parts) => _subParts.AddRange(parts); } }