Proposal for observers and deferred implementations (#1599)

This commit is contained in:
Wincent Holm
2024-11-18 01:46:08 +01:00
committed by GitHub
parent 84d7c65717
commit fedd039e00
6 changed files with 184 additions and 0 deletions

View File

@@ -11,6 +11,7 @@
#include "NiQuaternion.h"
#include "LDFFormat.h"
#include "eKillType.h"
#include "Observable.h"
namespace Loot {
class Info;
@@ -299,6 +300,11 @@ public:
// Scale will only be communicated to the client when the construction packet is sent
void SetScale(const float scale) { m_Scale = scale; };
/**
* @brief The observable for player entity position updates.
*/
static Observable<Entity*, const PositionUpdate&> OnPlayerPositionUpdate;
protected:
LWOOBJID m_ObjectID;