| 3669 | } |
| 3670 | |
| 3671 | PropertyResult GetPropertyAsFloat(HInstance instance, dmhash_t component_id, dmhash_t property_id, float* out_value) |
| 3672 | { |
| 3673 | PropertyOptions options; |
| 3674 | PropertyDesc out_prop; |
| 3675 | PropertyResult result = GetProperty(instance, component_id, property_id, options, out_prop); |
| 3676 | if (result == PROPERTY_RESULT_OK) |
| 3677 | { |
| 3678 | if (PROPERTY_TYPE_NUMBER == out_prop.m_Variant.m_Type) |
| 3679 | { |
| 3680 | *out_value = out_prop.m_Variant.m_Number; |
| 3681 | } |
| 3682 | else |
| 3683 | { |
| 3684 | result = PROPERTY_RESULT_TYPE_MISMATCH; |
| 3685 | } |
| 3686 | } |
| 3687 | return result; |
| 3688 | } |
| 3689 | |
| 3690 | PropertyResult GetPropertyAsVector3(HInstance instance, dmhash_t component_id, dmhash_t property_id, dmVMath::Vector3* out_value) |
| 3691 | { |