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); }
/// <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); } }