mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-22 23:38:13 +00:00
Update to new API
This commit is contained in:
@@ -82,6 +82,7 @@
|
||||
#include "CollectibleComponent.h"
|
||||
#include "ItemComponent.h"
|
||||
#include "GhostComponent.h"
|
||||
#include "Recorder.h"
|
||||
|
||||
// Table includes
|
||||
#include "CDComponentsRegistryTable.h"
|
||||
@@ -2142,4 +2143,18 @@ void Entity::ProcessPositionUpdate(PositionUpdate& update) {
|
||||
Game::entityManager->QueueGhostUpdate(GetObjectID());
|
||||
|
||||
if (updateChar) Game::entityManager->SerializeEntity(this);
|
||||
|
||||
auto* recorder = Cinema::Recording::Recorder::GetRecorder(GetObjectID());
|
||||
|
||||
if (recorder != nullptr) {
|
||||
recorder->AddRecord(new Cinema::Recording::MovementRecord(
|
||||
update.position,
|
||||
update.rotation,
|
||||
update.velocity,
|
||||
update.angularVelocity,
|
||||
update.onGround,
|
||||
update.velocity != NiPoint3::ZERO,
|
||||
update.angularVelocity != NiPoint3::ZERO
|
||||
));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user