ChatPlexSDK-BS 1.0.1-v6.2.0
C++ ChatPlex BeatSaber SDK
|
Various platform utils like Delegate/Action/Function/Event system. More...
Classes | |
class | Delegate |
Delegate helper class. More... | |
class | DelegateImpl |
Forward declaration. More... | |
class | DelegateImpl< t_Ret(t_Args...)> |
Delegate class. More... | |
class | Event |
Event class helper. More... | |
class | EventImpl |
Forward declaration. More... | |
class | EventImpl< t_Ret(t_Args...)> |
Event class. More... | |
class | Hooks |
Hook manager. More... | |
class | Json |
Json utils. More... | |
class | MonoPtr |
Typedefs | |
template<class... t_Args> | |
using | Action = Delegate< void(t_Args...)> |
Action type. | |
template<class... t_Args> | |
using | CActionRef = const Delegate< void(t_Args...)> & |
template<class t_Ret , class... t_Args> | |
using | Func = Delegate< t_Ret(t_Args...)> |
Func type. | |
template<class t_Ret , class... t_Args> | |
using | CFuncRef = const Delegate< t_Ret(t_Args...)> & |
Func type. | |
template<class t_Ptr > | |
using | CMonoPtrRef = const MonoPtr< t_Ptr > & |
template<class t_Ptr > | |
using | MonoPtrRef = MonoPtr< t_Ptr > & |
Functions | |
std::u16string | StrToU16Str (std::string_view p_Str) |
std::string | U16StrToStr (std::u16string_view p_Str) |
bool | U16EqualsToCaseInsensitive (std::u16string_view p_Left, std::u16string_view p_Right) |
std::u16string | U16UrlEncode (std::u16string_view p_Input) |
template<class t_Type > requires (std::is_assignable_v<UnityEngine::Object, t_Type>) | |
static bool | IsUnityPtrValid (t_Type *p_Ptr) |
template<typename t_Result > | |
static void | AwaitTaskAsync (_u::Task_1< t_Result > *p_Task, CActionRef< MonoPtrRef< _u::Task_1< t_Result > >, bool > p_Callback) |
Await a task using a coroutine on the main thread. | |
template<typename t_Result > | |
custom_types::Helpers::Coroutine | Coroutine_AwaitTaskAsync (MonoPtr< _u::Task_1< t_Result > > p_Task, Action< MonoPtrRef< _u::Task_1< t_Result > >, bool > p_Callback) |
Await a task using coroutine. | |
Various platform utils like Delegate/Action/Function/Event system.
using CP_SDK::Utils::Action = typedef Delegate<void(t_Args...)> |
Action type.
Definition at line 148 of file Delegate.hpp.
using CP_SDK::Utils::CActionRef = typedef const Delegate<void(t_Args...)>& |
Definition at line 151 of file Delegate.hpp.
using CP_SDK::Utils::CFuncRef = typedef const Delegate<t_Ret(t_Args...)>& |
Func type.
Definition at line 162 of file Delegate.hpp.
using CP_SDK::Utils::CMonoPtrRef = typedef const MonoPtr<t_Ptr>& |
Definition at line 118 of file MonoPtr.hpp.
using CP_SDK::Utils::Func = typedef Delegate<t_Ret(t_Args...)> |
Func type.
Definition at line 158 of file Delegate.hpp.
using CP_SDK::Utils::MonoPtrRef = typedef MonoPtr<t_Ptr>& |
Definition at line 121 of file MonoPtr.hpp.
|
static |
Await a task using a coroutine on the main thread.
t_Result | Task result type |
p_Task | Task instance |
p_Callback | Callback |
Definition at line 25 of file Task.hpp.
References Coroutine_AwaitTaskAsync(), and CP_SDK::Unity::MTCoroutineStarter::EnqueueFromThread().
custom_types::Helpers::Coroutine CP_SDK::Utils::Coroutine_AwaitTaskAsync | ( | MonoPtr< _u::Task_1< t_Result > > | p_Task, |
Action< MonoPtrRef< _u::Task_1< t_Result > >, bool > | p_Callback | ||
) |
Await a task using coroutine.
t_Result | Task result type |
p_Task | Task instance |
p_Callback | Callback |
Definition at line 39 of file Task.hpp.
Referenced by AwaitTaskAsync().
|
static |
Definition at line 127 of file MonoPtr.hpp.