| 3636 | } |
| 3637 | |
| 3638 | static void CUpdateShadow(MovementObject* mo) { |
| 3639 | PROFILER_ZONE(g_profiler_ctx, "C++ Update Shadow") |
| 3640 | MovementObject& this_mo = *mo; |
| 3641 | |
| 3642 | PROFILER_ENTER(g_profiler_ctx, "Get AS pointers"); |
| 3643 | ASContext* as_context = this_mo.as_context.get(); |
| 3644 | int& shadow_id = *(int*)as_context->module.GetVarPtrCache("shadow_id"); |
| 3645 | int& lf_shadow_id = *(int*)as_context->module.GetVarPtrCache("lf_shadow_id"); |
| 3646 | int& rf_shadow_id = *(int*)as_context->module.GetVarPtrCache("rf_shadow_id"); |
| 3647 | |
| 3648 | CScriptArrayWrapper<BoneTransform> skeleton_bind_transforms((CScriptArray*)as_context->module.GetVarPtrCache("skeleton_bind_transforms")); |
| 3649 | PROFILER_LEAVE(g_profiler_ctx); |
| 3650 | |
| 3651 | CUpdateShadowImpl( |
| 3652 | mo, |
| 3653 | shadow_id, lf_shadow_id, rf_shadow_id, |
| 3654 | skeleton_bind_transforms); |
| 3655 | } |
| 3656 | |
| 3657 | static void CUpdateEyeLookImpl( |
| 3658 | MovementObject* mo, |
nothing calls this directly
no test coverage detected