| 1011 | |
| 1012 | |
| 1013 | PropertyResult CompScriptGetProperty(const ComponentGetPropertyParams& params, PropertyDesc& out_value) |
| 1014 | { |
| 1015 | HScriptInstance script_instance = (HScriptInstance)*params.m_UserData; |
| 1016 | |
| 1017 | dmPropertiesDDF::PropertyDeclarations* declarations = &script_instance->m_Script->m_LuaModule->m_Properties; |
| 1018 | PropertyType type = PROPERTY_TYPE_NUMBER; |
| 1019 | dmhash_t* element_ids = 0x0; |
| 1020 | const char* property_name = 0x0; |
| 1021 | bool is_element = false; |
| 1022 | uint32_t element_index = 0; |
| 1023 | if (!FindPropertyName(declarations, params.m_PropertyId, &property_name, &type, &element_ids, &is_element, &element_index)) |
| 1024 | return PROPERTY_RESULT_NOT_FOUND; |
| 1025 | |
| 1026 | return RetrieveVarFromScript(script_instance, property_name, type, element_ids, is_element, element_index, out_value); |
| 1027 | } |
| 1028 | |
| 1029 | PropertyResult CompScriptSetProperty(const ComponentSetPropertyParams& params) |
| 1030 | { |
nothing calls this directly
no test coverage detected