Align nixAC to spice2x folder structure
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#pragma once
|
||||
#include <cstdint>
|
||||
#include "util/utils.h"
|
||||
|
||||
|
||||
namespace hooks::devel
|
||||
{
|
||||
//_INFO: use attach()/entry_main() to run task before game::attach()/game::entry_main()
|
||||
class Routine
|
||||
{
|
||||
private:
|
||||
unsigned int hash_;
|
||||
public:
|
||||
[[nodiscard]] inline unsigned int constexpr hash() const { return hash_; }
|
||||
virtual void attach() {}
|
||||
virtual void entry_main() {}
|
||||
explicit Routine(const char *name) : hash_(to_hash(name)) {}
|
||||
virtual ~Routine() = default;
|
||||
};
|
||||
|
||||
Routine *active_routine(const char *name);
|
||||
void bind_routine(Routine *routine);
|
||||
void attach();
|
||||
void entry_main();
|
||||
}
|
||||
Reference in New Issue
Block a user