forked from mirror/openmw-tes3mp
[Client] Add placeholder editActors() method for random creature sync
This commit is contained in:
parent
4abe295a80
commit
b55a3d5eb2
2 changed files with 28 additions and 0 deletions
|
@ -208,6 +208,33 @@ void WorldEvent::sendObjectScale(MWWorld::Ptr ptr, int scale)
|
||||||
mwmp::Main::get().getNetworking()->getWorldPacket(ID_OBJECT_SCALE)->Send();
|
mwmp::Main::get().getNetworking()->getWorldPacket(ID_OBJECT_SCALE)->Send();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void WorldEvent::editActors(MWWorld::CellStore* cellStore)
|
||||||
|
{
|
||||||
|
WorldObject worldObject;
|
||||||
|
|
||||||
|
for (unsigned int i = 0; i < objectChanges.count; i++)
|
||||||
|
{
|
||||||
|
worldObject = objectChanges.objects.at(i);
|
||||||
|
|
||||||
|
LOG_APPEND(Log::LOG_VERBOSE, "- cellRef: %s, %i, %i", worldObject.refId.c_str(), worldObject.refNumIndex, worldObject.mpNum);
|
||||||
|
|
||||||
|
return;
|
||||||
|
|
||||||
|
MWWorld::Ptr ptrFound = cellStore->searchExact(worldObject.refId, worldObject.refNumIndex, worldObject.mpNum);
|
||||||
|
|
||||||
|
if (ptrFound)
|
||||||
|
{
|
||||||
|
LOG_APPEND(Log::LOG_VERBOSE, "-- Found %s, %i, %i", ptrFound.getCellRef().getRefId().c_str(),
|
||||||
|
ptrFound.getCellRef().getRefNum(), ptrFound.getCellRef().getMpNum());
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
LOG_MESSAGE_SIMPLE(Log::LOG_VERBOSE, "-- Could not find %s, %i, %i", ptrFound.getCellRef().getRefId().c_str(),
|
||||||
|
ptrFound.getCellRef().getRefNum(), ptrFound.getCellRef().getMpNum());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void WorldEvent::editContainers(MWWorld::CellStore* cellStore)
|
void WorldEvent::editContainers(MWWorld::CellStore* cellStore)
|
||||||
{
|
{
|
||||||
WorldObject worldObject;
|
WorldObject worldObject;
|
||||||
|
|
|
@ -25,6 +25,7 @@ namespace mwmp
|
||||||
void sendObjectUnlock(MWWorld::Ptr ptr);
|
void sendObjectUnlock(MWWorld::Ptr ptr);
|
||||||
void sendObjectScale(MWWorld::Ptr ptr, int scale);
|
void sendObjectScale(MWWorld::Ptr ptr, int scale);
|
||||||
|
|
||||||
|
void editActors(MWWorld::CellStore* cellStore);
|
||||||
void editContainers(MWWorld::CellStore* cellStore);
|
void editContainers(MWWorld::CellStore* cellStore);
|
||||||
|
|
||||||
void placeObjects(MWWorld::CellStore* cellStore);
|
void placeObjects(MWWorld::CellStore* cellStore);
|
||||||
|
|
Loading…
Reference in a new issue