Beispiel #1
0
        /// <summary>
        /// 新しいインスタンスを生成します。
        /// </summary>
        /// <returns></returns>
        /// <exception cref="NotImplementedException"></exception>
        public Node Instantiate()
        {
            switch (type)
            {
            case PartsTreeOriginalType.File:
                return(PartsTreeInstantiator.Instantiate(nodeTreeGroup, environment));

            case PartsTreeOriginalType.Instance:
                throw new NotImplementedException();

            default:
                return(null);
            }
        }
Beispiel #2
0
 /// <summary>
 /// ノードファイルから<see cref="PartsTree"/>を作成します。
 /// </summary>
 /// <param name="filepath"></param>
 public PartsTree(string filepath)
 {
     nodeTreeGroup = PartsTreeInstantiator.LoadNodeTree(filepath);
     type          = PartsTreeOriginalType.File;
 }