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-actor.h
"
4
#include "
st-cells.h
"
5
#include "
st-crimes.h
"
6
#include "
st-forms.h
"
7
#include "
st-magic.h
"
8
#include "
st-math.h
"
9
#include "
st-menu.h
"
10
#include "
st-misc.h
"
11
#include "
st-perks.h
"
12
#include "
st-random.h
"
13
#include "
st-refs.h
"
14
#include "
st-sounds.h
"
15
#include "
st-timer.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
24
namespace
StyyxUtil
25
{
36
template
<
auto
FuncID,
typename
Ret,
typename
... Args>
37
static
inline
Ret
FuncCall
(Args... args)
38
{
39
using
func_t = Ret (*)(Args...);
40
REL::Relocation<func_t> target{REL::ID(FuncID)};
41
return
target(std::forward<Args>(args)...);
42
}
43
}
// namespace StyyxUtil
StyyxUtil
Definition
st-actor.h:7
StyyxUtil::FuncCall
static Ret FuncCall(Args... args)
Template function for game function calls use like this: FuncCall<123456, void>(a_this).
Definition
styyx-utils.h:37
st-actor.h
st-cells.h
st-crimes.h
st-debug.h
st-forms.h
st-hooks.h
st-magic.h
st-math.h
st-menu.h
st-misc.h
st-perks.h
st-random.h
st-refs.h
st-sounds.h
st-timer.h
include
styyx-utils.h
Generated by
1.16.1