MCPcopy Create free account
hub / github.com/defold/defold / GetPropertyAsURL

Function GetPropertyAsURL

engine/gameobject/src/gameobject/gameobject.cpp:3774–3795  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3772 }
3773
3774 PropertyResult GetPropertyAsURL(HInstance instance, dmhash_t component_id, dmhash_t property_id, dmMessage::URL* out_value)
3775 {
3776 PropertyOptions options;
3777 PropertyDesc out_prop;
3778 PropertyResult result = GetProperty(instance, component_id, property_id, options, out_prop);
3779 if (result == PROPERTY_RESULT_OK)
3780 {
3781 if (PROPERTY_TYPE_URL == out_prop.m_Variant.m_Type)
3782 {
3783 dmMessage::URL* url = (dmMessage::URL*) out_prop.m_Variant.m_URL;
3784 out_value->m_Socket = url->m_Socket;
3785 out_value->_reserved = url->_reserved;
3786 out_value->m_Path = url->m_Path;
3787 out_value->m_Fragment = url->m_Fragment;
3788 }
3789 else
3790 {
3791 result = PROPERTY_RESULT_TYPE_MISMATCH;
3792 }
3793 }
3794 return result;
3795 }
3796
3797 PropertyResult GetPropertyAsMatrix4(HInstance instance, dmhash_t component_id, dmhash_t property_id, dmVMath::Matrix4* out_value)
3798 {

Callers 1

TEST_FFunction · 0.85

Calls 1

GetPropertyFunction · 0.70

Tested by 1

TEST_FFunction · 0.68