mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-05 05:07:48 +00:00
47 lines
1.1 KiB
C++
47 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include "Reflection/Property.h"
|
|
#include "V8Xml/Reference.h"
|
|
#include "V8Xml/XmlElement.h"
|
|
#include "Util/Object.h"
|
|
|
|
#include "G3D/Vector3.h"
|
|
#include "G3D/Color3.h"
|
|
#include <string>
|
|
#include <iostream>
|
|
#include <vector>
|
|
|
|
namespace RBX {
|
|
|
|
class PropertyChanged
|
|
{
|
|
RBX::Reflection::Property property;
|
|
public:
|
|
const RBX::Reflection::Property& getProperty() const { return property; }
|
|
const RBX::Reflection::PropertyDescriptor& getDescriptor() const { return property.getDescriptor(); }
|
|
const RBX::Name& getName() { return property.getName(); }
|
|
|
|
PropertyChanged(const PropertyChanged& other)
|
|
: property(other.property)
|
|
{}
|
|
|
|
private:
|
|
friend class Instance;
|
|
PropertyChanged(const RBX::Reflection::Property& p)
|
|
: property(p)
|
|
{}
|
|
};
|
|
|
|
// TODO: Move this out of Reflection?
|
|
// Some standard categories
|
|
#define category_Data "Data"
|
|
#define category_Behavior "Behavior"
|
|
#define category_State "State"
|
|
#define category_Appearance "Appearance"
|
|
#define category_Team "Team"
|
|
#define category_Image "Image"
|
|
#define category_Video "Video"
|
|
#define category_Control "Control"
|
|
|
|
}
|