styyx-util 1.0
Utility Header for SKSE Plugin development
Loading...
Searching...
No Matches
styyx-utils.h
Go to the documentation of this file.
1#pragma once
2
3#include "st-random.h"
4#include "st-magic.h"
5#include "st-actor.h"
6#include "st-cells.h"
7#include "st-menu.h"
8#include "st-forms.h"
9#include "st-misc.h"
10#include "st-timer.h"
11#include "st-refs.h"
12#include "st-perks.h"
13#include "st-sounds.h"
14#include "st-crimes.h"
15#include "st-math.h"
16#ifdef STYYX_DEBUG_UTILS
17#include "st-debug.h"
18#endif
19
20#ifdef STYYX_HOOK_UTILS
21#include "st-hooks.h"
22#endif
23
24namespace StyyxUtil {
35 template <auto FuncID, typename Ret, typename... Args> static inline Ret FuncCall(Args... args)
36 {
37 using func_t = Ret(*)(Args...);
38 REL::Relocation<func_t> target{ REL::ID(FuncID) };
39 return target(std::forward<Args>(args)...);
40 }
41}
Definition st-actor.h:7
static Ret FuncCall(Args... args)
Template function for game function calls use like this: FuncCall<123456, void>(a_this).
Definition styyx-utils.h:35