| 3435 | } |
| 3436 | |
| 3437 | Result SetNodeParticlefx(HScene scene, HNode node, dmhash_t particlefx_id) |
| 3438 | { |
| 3439 | InternalNode* n = GetNode(scene, node); |
| 3440 | if (n->m_Node.m_NodeType != NODE_TYPE_PARTICLEFX) { |
| 3441 | return RESULT_WRONG_TYPE; |
| 3442 | } |
| 3443 | |
| 3444 | if (scene->m_Particlefxs.Get(particlefx_id) == 0) { |
| 3445 | return RESULT_RESOURCE_NOT_FOUND; |
| 3446 | } |
| 3447 | |
| 3448 | n->m_Node.m_ParticlefxHash = particlefx_id; |
| 3449 | return RESULT_OK; |
| 3450 | } |
| 3451 | |
| 3452 | Result GetNodeParticlefx(HScene scene, HNode node, dmhash_t& particlefx_id) |
| 3453 | { |