Object Property Enum

This commit is contained in:
elijah-thomas774
2025-09-16 21:55:32 -04:00
parent d591961dbd
commit 0a2b38da2b
16 changed files with 75 additions and 40 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ void dAcObjFairy_c::executeState_CatchDemo() {
}
void dAcObjFairy_c::finalizeState_CatchDemo() {
field_0xB89 = 0;
unsetObjectProperty(0x200);
unsetObjectProperty(OBJ_PROP_0x200);
}
bool dAcObjFairy_c::shouldAvoidLink() const {
+1 -1
View File
@@ -66,7 +66,7 @@ void dAcOsw_c::rideCallback(dBgW *unknown, dAcObjBase_c *actor, dAcObjBase_c *in
}
}
}
interactor->setObjectProperty(0x40);
interactor->setObjectProperty(OBJ_PROP_0x40);
}
bool dAcOsw_c::createHeap() {
+4 -4
View File
@@ -1192,9 +1192,9 @@ int dAcTbox_c::actorExecute() {
dRoom_c *r = dStage_c::GetInstance()->getRoom(mRoomID);
bool hasFlags = r->checkFlag(0x1E);
if (hasFlags) {
setObjectProperty(0x200);
setObjectProperty(OBJ_PROP_0x200);
} else {
unsetObjectProperty(0x200);
unsetObjectProperty(OBJ_PROP_0x200);
}
if (hasFlags) {
@@ -1328,9 +1328,9 @@ int dAcTbox_c::actorExecuteInEvent() {
dRoom_c *r = dStage_c::GetInstance()->getRoom(mRoomID);
bool hasFlags = r->checkFlag(0x1E);
if (hasFlags) {
setObjectProperty(0x200);
setObjectProperty(OBJ_PROP_0x200);
} else {
unsetObjectProperty(0x200);
unsetObjectProperty(OBJ_PROP_0x200);
}
if (hasFlags) {
+6 -6
View File
@@ -72,16 +72,16 @@ bool dLinkage_c::tryAttach(
return false;
}
}
pActor->unsetObjectProperty(0x1000);
pActor->unsetObjectProperty(0x4);
pActor->unsetObjectProperty(dAcObjBase_c::OBJ_PROP_0x1000);
pActor->unsetObjectProperty(dAcObjBase_c::OBJ_PROP_0x4);
mControllingActor.link(pSrc);
mState = STATE_ACTIVE;
mType = type;
if (type == CONNECTION_4) {
pActor->setObjectProperty(0x4);
pActor->setObjectProperty(dAcObjBase_c::OBJ_PROP_0x4);
} else if (type == CONNECTION_7) {
pActor->setObjectProperty(0x1000);
pActor->setObjectProperty(dAcObjBase_c::OBJ_PROP_0x1000);
field_0x1A = 4;
}
MTXIdentity(carryTransMtx);
@@ -134,11 +134,11 @@ void dLinkage_c::fn_80050EB0(dAcObjBase_c *pActor) {
MTXIdentity(carryTransMtx);
} else if (mType == CONNECTION_4) {
if (pActor) {
pActor->unsetObjectProperty(0x4);
pActor->unsetObjectProperty(dAcObjBase_c::OBJ_PROP_0x4);
}
} else if (mType == CONNECTION_7) {
if (pActor) {
pActor->unsetObjectProperty(0x1000);
pActor->unsetObjectProperty(dAcObjBase_c::OBJ_PROP_0x1000);
}
}
+1 -1
View File
@@ -1958,6 +1958,6 @@ bool daPlayerModelBase_c::fn_80061410() {
// and this causes the vtable and all other weak functions to be here
/* vt 0x114 */ void daPlayerModelBase_c::somethingWithCarriedActorFlags() {
if (mCarriedActorRef.get() != nullptr) {
mCarriedActorRef.get()->setObjectProperty(0x200);
mCarriedActorRef.get()->setObjectProperty(OBJ_PROP_0x200);
}
}