diff options
Diffstat (limited to 'Runtime/BaseClasses/NamedObject.h')
-rw-r--r-- | Runtime/BaseClasses/NamedObject.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Runtime/BaseClasses/NamedObject.h b/Runtime/BaseClasses/NamedObject.h new file mode 100644 index 0000000..7355dbc --- /dev/null +++ b/Runtime/BaseClasses/NamedObject.h @@ -0,0 +1,23 @@ +#ifndef NAMEDOBJECT_H +#define NAMEDOBJECT_H + +#include "EditorExtension.h" +#include "Runtime/Containers/ConstantString.h" + +class EXPORT_COREMODULE NamedObject : public EditorExtension +{ + public: + + virtual char const* GetName () const { return m_Name.c_str (); } + virtual void SetName (char const* name); + + REGISTER_DERIVED_ABSTRACT_CLASS (NamedObject, EditorExtension) + DECLARE_OBJECT_SERIALIZE (NamedObject) + + NamedObject (MemLabelId label, ObjectCreationMode mode); + protected: + + ConstantString m_Name; +}; + +#endif |