public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
 {
     return(Bin16.FromString(value.ToString()));
 }
        public CollisionObject(CollisionNode parent, ColObject* entry)
        {
            _modelName = entry->ModelName;
            _boneName = entry->BoneName;
            _unk1 = entry->_unk1;
            _unk2 = entry->_unk2;
            _unk3 = entry->_unk3;
            _flags = (ushort)entry->_flags;
            _unk5 = entry->_unk5;
            _unk6 = entry->_unk6;
            _boneIndex = entry->_boneIndex;

            int pointCount = entry->_pointCount;
            int pointOffset = entry->_pointOffset;
            int planeCount = entry->_planeCount;
            int planeOffset = entry->_planeIndex;

            ColPlane* pPlane = &parent.Header->Planes[planeOffset];

            //Decode points
            BVec2* pPtr = &parent.Header->Points[pointOffset];
            for (int i = 0; i < pointCount; i++)
                new CollisionLink(this, *pPtr++);

            //CollisionPlane plane;
            for (int i = 0; i < planeCount; i++)
                if (pPlane->_point1 != pPlane->_point2)
                    new CollisionPlane(this, pPlane++, pointOffset);
        }