summaryrefslogtreecommitdiff
path: root/lib/include/hooks.hpp
blob: 350f31869ac5fc23a9193f6b5b373ac3ffd019f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12

#pragma once

class network;

class hooks {
  public:
    virtual void pre_fracture(const network&) {};
    virtual void bond_broken(const network&, const std::pair<double, std::vector<double>>&, unsigned int) {};
    virtual void post_fracture(network&) {}; // post fracture hook can be destructive
};