示例#1
0
        public BoctModel()
        {
            _head          = new Boct();
            _regions       = new Dictionary <int, BoctRegion>();
            _materialList  = new BoctMaterialList();
            _extensionList = new BoctExtensionList();
            CenterAddress  = new List <byte>();

            RegionStream = new Subject <BoctRegion>();

            SolidBounds = new Bounds(Vector3.zero, Vector3.one);
        }
示例#2
0
        /// <summary>
        /// Clone an instance.
        /// </summary>
        public BoctExtensionList(BoctExtensionList list) : this()
        {
            var extensions = list.Extensions;

            if (extensions == null)
            {
                throw new BoctException("Extenson is null.");
            }

            foreach (var kv in extensions)
            {
                _extensions[kv.Key] = new BoctExtension(kv.Value);
            }
        }