ScriptComponent.cpp 471 B

12345678910111213141516171819202122232425
  1. #include "../Core/Context.h"
  2. #include "ScriptComponentFile.h"
  3. #include "ScriptComponent.h"
  4. namespace Atomic
  5. {
  6. ScriptComponent::ScriptComponent(Context* context) : Component(context)
  7. {
  8. }
  9. void ScriptComponent::RegisterObject(Context* context)
  10. {
  11. ACCESSOR_ATTRIBUTE("Is Enabled", IsEnabled, SetEnabled, bool, true, AM_DEFAULT);
  12. ATTRIBUTE("FieldValues", VariantMap, fieldValues_, Variant::emptyVariantMap, AM_FILE);
  13. }
  14. ScriptComponent::~ScriptComponent()
  15. {
  16. }
  17. }