Example #1
0
        public OIFolder(OIFolder _src, bool _idCopy)
        {
            this.Pos    = _src.Pos;
            this.Rot    = _src.Rot;
            this.Name   = _src.Name;
            this.Expand = _src.Expand;
            foreach (IObjectInfo objectInfo in _src.Child)
            {
                switch (objectInfo.Kind)
                {
                case 0:
                    this.Child.Add((IObjectInfo) new OIItem(objectInfo as OIItem, _idCopy));
                    continue;

                case 1:
                    this.Child.Add((IObjectInfo) new OIFolder(objectInfo as OIFolder, _idCopy));
                    continue;

                default:
                    continue;
                }
            }
        }
Example #2
0
 public OCFolder(OIFolder _oiFolder, GameObject _gameObject, CraftInfo _craftInfo)
     : base((IObjectInfo)_oiFolder, _gameObject, _craftInfo)
 {
 }