1 2 3 4 5 6 7 8 9 10 11 12 13 14
#pragma once #include "current_info.hpp" class network; class hooks { public: virtual void pre_fracture(const network&) {}; virtual void bond_broken(const network&, const current_info&, unsigned int) {}; virtual void post_fracture(network&) {}; // post fracture hook can be destructive };