Plasma Engine  2.0
Loading...
Searching...
No Matches
CommentComponent.h
1#pragma once
2
3#include <Core/World/Component.h>
4#include <Core/World/ComponentManager.h>
5#include <EditorEngineProcessFramework/SceneExport/SceneExportModifier.h>
6
8
13class PL_ENGINEPLUGINSCENE_DLL plCommentComponent : public plComponent
14{
15 PL_DECLARE_COMPONENT_TYPE(plCommentComponent, plComponent, plCommentComponentManager);
16
18 // plCommentComponent
19
20public:
23
24 void SetComment(const char* szText);
25 const char* GetComment() const;
26
27private:
28 plHashedString m_sComment;
29};
30
32
34{
36
37public:
38 virtual void ModifyWorld(plWorld& ref_world, plStringView sDocumentType, const plUuid& documentGuid, bool bForExport) override;
39};
This component is for adding notes to objects in a scene.
Definition CommentComponent.h:14
Base class of all component types.
Definition Component.h:25
Definition ComponentManager.h:88
This class is optimized to take nearly no memory (sizeof(void*)) and to allow very fast checks whethe...
Definition HashedString.h:25
Definition CommentComponent.h:34
Definition SceneExportModifier.h:9
plStringView represent a read-only sub-string of a larger string, as it can store a dedicated string ...
Definition StringView.h:34
This data type is the abstraction for 128-bit Uuid (also known as GUID) instances.
Definition Uuid.h:11
A world encapsulates a scene graph of game objects and various component managers and their component...
Definition World.h:22