docs: add plugin setup guide
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
namespace Scaleform
|
||||
{
|
||||
class WaitConditionImpl;
|
||||
|
||||
class WaitCondition
|
||||
{
|
||||
public:
|
||||
~WaitCondition() noexcept {}
|
||||
|
||||
// members
|
||||
WaitConditionImpl* impl; // 00
|
||||
};
|
||||
static_assert(sizeof(WaitCondition) == 0x8);
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
#pragma once
|
||||
|
||||
#include "Scaleform/A/Array.h"
|
||||
#include "Scaleform/A/Atomic.h"
|
||||
#include "Scaleform/N/NewOverrideBase.h"
|
||||
#include "Scaleform/R/RefCountBase.h"
|
||||
|
||||
namespace Scaleform
|
||||
{
|
||||
class __declspec(novtable) Waitable :
|
||||
public RefCountBase<Waitable, 2> // 00
|
||||
{
|
||||
public:
|
||||
using WaitHandler = void(void*);
|
||||
|
||||
class HandlerStruct
|
||||
{
|
||||
public:
|
||||
// members
|
||||
WaitHandler* handler; // 00
|
||||
void* userData; // 08
|
||||
};
|
||||
static_assert(sizeof(HandlerStruct) == 0x10);
|
||||
|
||||
class HandlerArray :
|
||||
public NewOverrideBase<2> // 00
|
||||
{
|
||||
public:
|
||||
using SizePolicyType = ArrayConstPolicy<0, 16, true>;
|
||||
using HandlerArrayType = Array<HandlerStruct, 2, SizePolicyType>;
|
||||
|
||||
void AddRef()
|
||||
{
|
||||
REX::TAtomicRef myRefCount{ refCount.value };
|
||||
++myRefCount;
|
||||
}
|
||||
|
||||
// members
|
||||
AtomicInt<std::int32_t> refCount; // 00
|
||||
HandlerArrayType handlers; // 08
|
||||
Lock handlersLock; // 20
|
||||
};
|
||||
static_assert(sizeof(HandlerArray) == 0x48);
|
||||
|
||||
// members
|
||||
HandlerArray* handlers; // 10
|
||||
};
|
||||
static_assert(sizeof(Waitable) == 0x18);
|
||||
}
|
||||
Reference in New Issue
Block a user