MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / SetASContext

Method SetASContext

Source/Objects/riggedobject.cpp:2699–2711  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2697}
2698
2699void RiggedObject::SetASContext(ASContext* _as_context) {
2700 as_context = _as_context;
2701
2702 as_funcs.handle_animation_event = as_context->RegisterExpectedFunction("void HandleAnimationEvent(string,vec3)", true);
2703 as_funcs.display_matrix_update = as_context->RegisterExpectedFunction("void DisplayMatrixUpdate()", true);
2704 as_funcs.final_animation_matrix_update = as_context->RegisterExpectedFunction("void FinalAnimationMatrixUpdate(int)", true);
2705 as_funcs.final_attached_item_update = as_context->RegisterExpectedFunction("void FinalAttachedItemUpdate(int)", true);
2706 as_funcs.notify_item_detach = as_context->RegisterExpectedFunction("void NotifyItemDetach(int)", true);
2707
2708 as_context->LoadExpectedFunctions();
2709
2710 anim_client.SetASContext(_as_context);
2711}
2712
2713void MorphTarget::CalcVertsModified(int base_model_id, int lod_level) {
2714 Model& model = Models::Instance()->GetModel(model_id[lod_level]);

Callers 1

CreateRiggedObjectMethod · 0.45

Calls 2

LoadExpectedFunctionsMethod · 0.80

Tested by

no test coverage detected