2021-11-21 06:23:53 +00:00
|
|
|
//
|
|
|
|
// Created by SeanOMik on 3/12/2021.
|
|
|
|
// Github: https://github.com/SeanOMik
|
|
|
|
//
|
|
|
|
|
2021-11-27 19:16:41 +00:00
|
|
|
#pragma once
|
2021-11-21 06:23:53 +00:00
|
|
|
|
|
|
|
namespace simpleengine {
|
|
|
|
class Destructable {
|
|
|
|
public:
|
|
|
|
virtual void destroy() {
|
|
|
|
destroying = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual const bool& is_destroying() const {
|
|
|
|
return destroying;
|
|
|
|
}
|
|
|
|
protected:
|
|
|
|
bool destroying = false;
|
|
|
|
};
|
2021-11-27 19:16:41 +00:00
|
|
|
}
|