2023-02-11 03:33:30 +00:00
|
|
|
#pragma once
|
|
|
|
#include "dCommonVars.h"
|
|
|
|
#include "RakNetTypes.h"
|
|
|
|
#include "NiPoint3.h"
|
|
|
|
#include "NiQuaternion.h"
|
|
|
|
#include "Component.h"
|
2023-03-21 02:14:52 +00:00
|
|
|
#include "eReplicaComponentType.h"
|
2023-02-11 03:33:30 +00:00
|
|
|
|
|
|
|
class Entity;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Component that represents entities that are a model, e.g. collectible models and BBB models.
|
|
|
|
*/
|
2023-07-10 03:56:04 +00:00
|
|
|
class MutableModelBehaviorComponent final : public Component {
|
2023-02-11 03:33:30 +00:00
|
|
|
public:
|
2023-06-26 04:47:35 +00:00
|
|
|
static const eReplicaComponentType ComponentType = eReplicaComponentType::MODEL_BEHAVIOR;
|
2023-02-11 03:33:30 +00:00
|
|
|
|
|
|
|
MutableModelBehaviorComponent(Entity* parent);
|
|
|
|
|
|
|
|
void Serialize(RakNet::BitStream* outBitStream, bool bIsInitialUpdate, unsigned int& flags);
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
/**
|
|
|
|
* if the behavior info has changed
|
|
|
|
*/
|
|
|
|
bool m_DirtyModelBehaviorInfo;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The number of behaviors on the model
|
|
|
|
*/
|
|
|
|
uint32_t m_BehaviorCount;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* if the models behaviors are paused
|
|
|
|
*/
|
|
|
|
bool m_IsPaused;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* if the editing info is dirty
|
|
|
|
*/
|
|
|
|
bool m_DirtyModelEditingInfo;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The old ID of the model
|
|
|
|
*/
|
|
|
|
LWOOBJID m_OldObjId;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The ID of the editor of the model
|
|
|
|
*/
|
|
|
|
LWOOBJID m_Editor;
|
|
|
|
};
|