mirror of
https://github.com/zeldaret/botw
synced 2026-05-24 07:10:50 -04:00
965d34c712
refactoring baseProcHandle.cpp refactoring
29 lines
501 B
C++
29 lines
501 B
C++
#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
|