using System; using System.Collections.Generic; namespace Oni.Dae { internal class Node : Entity { private TransformCollection transforms; private List instances; private List nodes; public TransformCollection Transforms { get { if (transforms == null) transforms = new TransformCollection(); return transforms; } } public List Instances { get { if (instances == null) instances = new List(); return instances; } } public IEnumerable GeometryInstances { get { if (instances == null) return new GeometryInstance[0]; return instances.OfType(); } } public List Nodes { get { if (nodes == null) nodes = new List(); return nodes; } } } }