Merge branch 'Dirtybit' of github.com:teamfisk/TacticalZ into Dirtybit
This commit is contained in:
@@ -5,6 +5,12 @@
|
|||||||
#include "Entity.h"
|
#include "Entity.h"
|
||||||
#include <boost/shared_array.hpp>
|
#include <boost/shared_array.hpp>
|
||||||
|
|
||||||
|
enum class DirtySet
|
||||||
|
{
|
||||||
|
Transform,
|
||||||
|
Network
|
||||||
|
};
|
||||||
|
|
||||||
struct ComponentInfo
|
struct ComponentInfo
|
||||||
{
|
{
|
||||||
typedef int EnumType;
|
typedef int EnumType;
|
||||||
|
|||||||
@@ -107,6 +107,8 @@ struct ComponentWrapper
|
|||||||
public:
|
public:
|
||||||
// Return the integer value of an enum type key for this field
|
// Return the integer value of an enum type key for this field
|
||||||
ComponentInfo::EnumType Enum(const char* enumKey) { return m_Component->Enum(m_PropertyName.c_str(), enumKey); }
|
ComponentInfo::EnumType Enum(const char* enumKey) { return m_Component->Enum(m_PropertyName.c_str(), enumKey); }
|
||||||
|
bool Dirty(DirtySet set) { return true; }
|
||||||
|
void SetDirty(bool dirty = true) { }
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
operator T&() { return m_Component->Field<T>(m_PropertyName); }
|
operator T&() { return m_Component->Field<T>(m_PropertyName); }
|
||||||
|
|||||||
Reference in New Issue
Block a user