This commit is contained in:
romkazvo
2023-08-07 19:29:24 +08:00
commit 34d6c5d489
4832 changed files with 1389451 additions and 0 deletions

44
Editor/Undo/IUndoObject.h Normal file
View File

@@ -0,0 +1,44 @@
////////////////////////////////////////////////////////////////////////////
//
// Crytek Engine Source File.
// Copyright (C), Crytek Studios, 2001.
// -------------------------------------------------------------------------
// File name: IUndoObject.h
// Version: v1.00
// Created: 5/2/2002 by Timur.
// Compilers: Visual C++ 6.0
// Description: Interface for implementation of IUndo objects.
// -------------------------------------------------------------------------
// History:
//
////////////////////////////////////////////////////////////////////////////
#ifndef __IUndoObject_h__
#define __IUndoObject_h__
#if _MSC_VER > 1000
#pragma once
#endif
//! IUndoObject is a interface of general Undo object.
struct IUndoObject
{
// Virtual destructor.
virtual ~IUndoObject() {};
//! Called to delete undo object.
virtual void Release() { delete this; };
//! Return size of this Undo object.
virtual int GetSize() = 0;
//! Return description of this Undo object.
virtual const char* GetDescription() = 0;
//! Undo this object.
//! @param bUndo If true this operation called in response to Undo operation.
virtual void Undo( bool bUndo=true ) = 0;
//! Redo undone changes on object.
virtual void Redo() = 0;
};
#endif // __IUndoObject_h__