| 521 | } |
| 522 | |
| 523 | static uint32_t GetElementCount(PropertyType type, dmhash_t* element_ids) |
| 524 | { |
| 525 | switch (type) |
| 526 | { |
| 527 | case PROPERTY_TYPE_NUMBER: |
| 528 | return 1; |
| 529 | case PROPERTY_TYPE_VECTOR3: |
| 530 | { |
| 531 | if (element_ids[2] == 0) |
| 532 | return 2; |
| 533 | return 3; |
| 534 | } |
| 535 | case PROPERTY_TYPE_VECTOR4: |
| 536 | case PROPERTY_TYPE_QUAT: |
| 537 | return 4; |
| 538 | default: |
| 539 | return 0; |
| 540 | } |
| 541 | } |
| 542 | |
| 543 | PropertyResult Animate(HCollection collection, HInstance instance, dmhash_t component_id, |
| 544 | dmhash_t property_id, |
no outgoing calls
no test coverage detected