![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
#include <EditorState.h>
Inheritance diagram for Olympe::Editor::PlaceEntityCommand:
Collaboration diagram for Olympe::Editor::PlaceEntityCommand:Public Member Functions | |
| PlaceEntityCommand (const std::string &prefabPath, const Vector &position) | |
| ~PlaceEntityCommand () override=default | |
| void | Execute (LevelManager &levelManager) override |
| void | Undo (LevelManager &levelManager) override |
| std::string | GetDescription () const override |
Public Member Functions inherited from Olympe::Editor::Command | |
| virtual | ~Command ()=default |
Private Attributes | |
| std::string | m_prefabPath |
| Vector | m_position |
| std::string | m_entityId |
Definition at line 45 of file EditorState.h.
| Olympe::Editor::PlaceEntityCommand::PlaceEntityCommand | ( | const std::string & | prefabPath, |
| const Vector & | position | ||
| ) |
Definition at line 15 of file EditorState.cpp.
|
overridedefault |
|
overridevirtual |
Implements Olympe::Editor::Command.
Definition at line 20 of file EditorState.cpp.
References GetComponentTypeID_Static(), Olympe::Editor::EntityInstance::id, m_entityId, m_position, m_prefabPath, and Olympe::Editor::EntityInstance::position.
Here is the call graph for this function:
|
overridevirtual |
Implements Olympe::Editor::Command.
Definition at line 40 of file EditorState.cpp.
References m_prefabPath.
|
overridevirtual |
Implements Olympe::Editor::Command.
Definition at line 31 of file EditorState.cpp.
References GetComponentTypeID_Static(), and m_entityId.
Here is the call graph for this function:
|
private |
Definition at line 58 of file EditorState.h.
|
private |
Definition at line 57 of file EditorState.h.
Referenced by Execute().
|
private |
Definition at line 56 of file EditorState.h.
Referenced by Execute(), and GetDescription().