diff options
author | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-08-14 22:50:43 +0800 |
commit | 15740faf9fe9fe4be08965098bbf2947e096aeeb (patch) | |
tree | a730ec236656cc8cab5b13f088adfaed6bb218fb /Runtime/BaseClasses/NamedObject.h |
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 |