Beispiel #1
0
        public object UnstageValue(StageItem item, Type targetType)
        {
            StageElement stageElement = (StageElement)item;

            return(new Bounds(new Vector3(SerializationMaster.FromString <float>(stageElement.Attribute("center.x").@value), SerializationMaster.FromString <float>(stageElement.Attribute("center.y").@value), SerializationMaster.FromString <float>(stageElement.Attribute("center.z").@value)), new Vector3(SerializationMaster.FromString <float>(stageElement.Attribute("size.x").@value), SerializationMaster.FromString <float>(stageElement.Attribute("size.y").@value), SerializationMaster.FromString <float>(stageElement.Attribute("size.z").@value))));
        }