mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-23 05:57:20 +00:00
53 lines
969 B
C
53 lines
969 B
C
|
#pragma once
|
||
|
#include "dCommonVars.h"
|
||
|
#include "RakNetTypes.h"
|
||
|
#include "NiPoint3.h"
|
||
|
#include "NiQuaternion.h"
|
||
|
#include "Component.h"
|
||
|
|
||
|
class Entity;
|
||
|
|
||
|
/**
|
||
|
* Component that represents entities that are a model, e.g. collectible models and BBB models.
|
||
|
*/
|
||
|
class MutableModelBehaviorComponent : public Component {
|
||
|
public:
|
||
|
static const uint32_t ComponentType = COMPONENT_TYPE_MODEL;
|
||
|
|
||
|
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;
|
||
|
};
|