Match and link CToken

Former-commit-id: ff40d50c8d
This commit is contained in:
2022-10-20 07:28:06 -07:00
parent 67d74916d4
commit 0488b6e955
5 changed files with 84 additions and 5 deletions

View File

@@ -16,14 +16,20 @@ public:
// , xc_objectStore(nullptr)
// , x10_object(obj.release())
// , x14_params(CVParamTransfer::Null()) {}
~CObjectReference();
CObjectReference(IObjectStore* store, const rstl::auto_ptr< IObj >& obj, SObjectTag tag,
CVParamTransfer xfer);
bool IsLoaded() const { return x10_object != nullptr; }
void AddReference() { x0_refCount++; }
int RemoveReference();
void Lock();
void Unlock();
IObj* GetObject();
private:
ushort x0_refCount;
short x0_refCount;
bool x2_locked : 1;
ushort x2_lockCount : 15;
SObjectTag x4_objTag;