コード例 #1
0
        public void InsertSubComp(ComponentKey id, TransformableObject insert)
        {
            if (_subComps.ContainsKey(id))
            {
                return;
            }

            _subComps.Add(id, insert);
        }
コード例 #2
0
        public TransformableObject GetComp(ObjectModel.ComponentKey compID)
        {
            List <ObjectModel.ComponentKey> path = HierarchyPack.ComponentMap[compID];
            TransformableObject             comp = Object;

            for (int i = 0; i < path.Count; i++)
            {
                comp = comp.GetSubComp(path[i]);
            }
            return(comp);
        }
コード例 #3
0
 public SealedTransformableObject(ObjectModel objectModel, HierarchyPackage hierarchyPack)
 {
     this.Object        = new TransformableObject(objectModel);
     this.HierarchyPack = hierarchyPack;
 }