mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-17 00:47:05 +00:00
Implemented functionality for editing, creating, and deleting script object links
This commit is contained in:
21
src/Editor/Undo/CAddLinkCommand.h
Normal file
21
src/Editor/Undo/CAddLinkCommand.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef CADDLINKCOMMAND_H
|
||||
#define CADDLINKCOMMAND_H
|
||||
|
||||
#include "IUndoCommand.h"
|
||||
#include "Editor/WorldEditor/CWorldEditor.h"
|
||||
#include <Core/Resource/Script/CLink.h>
|
||||
|
||||
class CAddLinkCommand : public IUndoCommand
|
||||
{
|
||||
CWorldEditor *mpEditor;
|
||||
CLink mLink;
|
||||
QList<CScriptObject*> mAffectedInstances;
|
||||
|
||||
public:
|
||||
CAddLinkCommand(CWorldEditor *pEditor, CLink Link);
|
||||
void undo();
|
||||
void redo();
|
||||
bool AffectsCleanState() const { return true; }
|
||||
};
|
||||
|
||||
#endif // CADDLINKCOMMAND_H
|
||||
Reference in New Issue
Block a user