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

Method Dispose

Source/Objects/movementobject.cpp:4650–4660  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4648}
4649
4650void MovementObject::Dispose() {
4651 as_context->CallScriptFunction(as_funcs.dispose);
4652 as_context.reset(NULL);
4653 rigged_object_->as_context = NULL;
4654
4655 for (auto& occlusion_querie : occlusion_queries) {
4656 const GLuint val = occlusion_querie.id;
4657 glDeleteQueries(1, &val);
4658 }
4659 occlusion_queries.clear();
4660}
4661
4662void MovementObject::AddToAttackHistory(const std::string& str) {
4663 attack_history.Add(str);

Callers

nothing calls this directly

Calls 3

CallScriptFunctionMethod · 0.45
resetMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected