Cogs.Core
Public Member Functions | Public Attributes | List of all members
Cogs::Core::PostCommand Struct Referenceabstract

Abstract base class for all editor batch Post commands. More...

#include <EditorCommand.h>

Inheritance diagram for Cogs::Core::PostCommand:
Cogs::Core::EditorCommand Cogs::Core::AssetPipeCommand Cogs::Core::AssetStatsCommand Cogs::Core::SparseBuildOctreeCommand

Public Member Functions

 PostCommand (EditorState *state)
 
virtual void applyPost ()=0
 
- Public Member Functions inherited from Cogs::Core::EditorCommand
 EditorCommand (EditorState *state, Context *context)
 
virtual void apply ()=0
 Run the command.
 
virtual void undo ()=0
 
virtual void redo ()
 
virtual bool mergeWith (const EditorCommand *)
 
virtual MeshHandle applyMesh (MeshHandle)
 Workaround for having extendable mesh processing available without linking (e.g command -> RR).
 
virtual void close ()
 Close command, i.e. prevent merging with another command.
 
bool isClosed () const
 
bool merge (const EditorCommand *command)
 Merge into this if not this is closed.
 

Public Attributes

PropertyStore properties
 
- Public Attributes inherited from Cogs::Core::EditorCommand
std::vector< ParsedValueoptions
 Options passed to the command when running in batch mode.
 
bool permanentUndo = false
 True if cannot Redo after Undo.
 

Additional Inherited Members

- Protected Attributes inherited from Cogs::Core::EditorCommand
EditorStatestate = nullptr
 
Contextcontext = nullptr
 

Detailed Description

Abstract base class for all editor batch Post commands.

Definition at line 27 of file EditorCommand.h.

Constructor & Destructor Documentation

◆ PostCommand()

Cogs::Core::PostCommand::PostCommand ( EditorState state)
inlineexplicit

Definition at line 29 of file EditorCommand.h.

Member Data Documentation

◆ properties

PropertyStore Cogs::Core::PostCommand::properties

Definition at line 35 of file EditorCommand.h.


The documentation for this struct was generated from the following files: