summaryrefslogtreecommitdiff
path: root/lib/include/hooks.hpp
blob: 67313cccacb541d6325dc3676a8509019552dcb2 (plain)
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) {};
    virtual void post_fracture(network&) {}; // post fracture hook can be destructive
};