mirror of
https://github.com/zeldaret/botw
synced 2026-06-11 13:10:05 -04:00
non request BaseProcHandle stuff
refactoring baseProcHandle.cpp refactoring
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
#include "KingSystem/ActorSystem/actBaseProcHandle.h"
|
||||
|
||||
namespace ksys::act {
|
||||
|
||||
BaseProcHandle::BaseProcHandle() {
|
||||
mUnit = nullptr;
|
||||
mFlag = 0;
|
||||
}
|
||||
|
||||
BaseProcHandle::~BaseProcHandle() {
|
||||
if (mUnit) {
|
||||
mUnit->deleteProc(0, this);
|
||||
mUnit = nullptr;
|
||||
}
|
||||
mFlag = 0;
|
||||
}
|
||||
|
||||
bool BaseProcHandle::procReady() {
|
||||
return mUnit && mUnit->isReady();
|
||||
}
|
||||
|
||||
BaseProc* BaseProcHandle::getProc() {
|
||||
if (mUnit)
|
||||
return mUnit->getProc();
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
} // namespace ksys::act
|
||||
Reference in New Issue
Block a user