mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 10:52:22 +01:00
it kinda work
This commit is contained in:
25
Project Reboot 3.0/Channel.h
Normal file
25
Project Reboot 3.0/Channel.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#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;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user