Add CPowerBeam

Former-commit-id: 0d1b469f91
This commit is contained in:
Henrique Gemignani Passos Lima
2022-11-15 22:06:18 +02:00
parent 45ec66abc2
commit 68f99e4072
15 changed files with 235 additions and 28 deletions

View File

@@ -35,6 +35,23 @@ public:
T* operator*() { return x8_item; }
bool IsLoaded() {
if (x8_item != nullptr) {
return true;
}
if (HasLock() && CToken::IsLoaded()) {
x8_item = GetT();
return true;
} else {
return false;
}
}
void Unlock() {
x8_item = nullptr;
TToken<T>::Unlock();
}
private:
T* x8_item;
};