27 lines
425 B
C++
27 lines
425 B
C++
#pragma once
|
|
|
|
namespace lt::app {
|
|
|
|
class ISystem
|
|
{
|
|
public:
|
|
ISystem() = default;
|
|
|
|
virtual ~ISystem() = default;
|
|
|
|
ISystem(ISystem &&) = default;
|
|
|
|
ISystem(const ISystem &) = delete;
|
|
|
|
auto operator=(ISystem &&) -> ISystem & = default;
|
|
|
|
auto operator=(const ISystem &) -> ISystem & = delete;
|
|
|
|
virtual void on_register() = 0;
|
|
|
|
virtual void on_unregister() = 0;
|
|
|
|
virtual auto tick() -> bool = 0;
|
|
};
|
|
|
|
} // namespace lt::app
|