mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
25 lines
606 B
C++
25 lines
606 B
C++
#pragma once
|
|
|
|
#include "Object.h"
|
|
|
|
class UChannel : public UObject
|
|
{
|
|
public:
|
|
void StartBecomingDormant()
|
|
{
|
|
void (*StartBecomingDormantOriginal)(UChannel* Channel) = decltype(StartBecomingDormantOriginal)(this->VFTable[0x298 / 8]);
|
|
StartBecomingDormantOriginal(this);
|
|
}
|
|
|
|
bool IsPendingDormancy()
|
|
{
|
|
static auto BitfieldOffset = GetOffset("Connection") + 8;
|
|
return ((PlaceholderBitfield*)(__int64(this) + BitfieldOffset))->Seventh;
|
|
}
|
|
|
|
bool IsDormant()
|
|
{
|
|
static auto BitfieldOffset = GetOffset("Connection") + 8;
|
|
return ((PlaceholderBitfield*)(__int64(this) + BitfieldOffset))->Third;
|
|
}
|
|
}; |