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
24
namespace
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
}
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:35
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