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