[General] Temporarily include target names in mwmp::Target

These will be removed once the server can get the names matching refIds by reading content files.
0.6.3
David Cernat 7 years ago
parent 691b332d03
commit f02492a593

@ -116,6 +116,7 @@ mwmp::Target MechanicsHelper::getTarget(const MWWorld::Ptr& ptr)
target.refId = ptrRef->getRefId();
target.refNumIndex = ptrRef->getRefNum().mIndex;
target.mpNum = ptrRef->getMpNum();
target.name = ptr.getClass().getName(ptr);
}
return target;
@ -127,6 +128,8 @@ void MechanicsHelper::clearTarget(mwmp::Target& target)
target.refId.clear();
target.refNumIndex = -1;
target.mpNum = -1;
target.name.clear();
}
bool MechanicsHelper::isEmptyTarget(const mwmp::Target& target)

@ -30,6 +30,8 @@ namespace mwmp
int refNumIndex;
int mpNum;
std::string name; // Remove this once the server can get names corresponding to different refIds
RakNet::RakNetGUID guid;
};

Loading…
Cancel
Save