Cogs.Core
Public Member Functions | Private Attributes | List of all members
Cogs::Core::ExportCommand Class Reference
Inheritance diagram for Cogs::Core::ExportCommand:
Cogs::Core::EditorCommand

Public Member Functions

 ExportCommand (EditorState *state, EntityId, bool exportAll=false)
 
virtual void apply () override
 Run the command.
 
virtual void undo () override
 
- 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.
 

Private Attributes

bool exportScene = false
 

Additional Inherited Members

- 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.
 
- Protected Attributes inherited from Cogs::Core::EditorCommand
EditorStatestate = nullptr
 
Contextcontext = nullptr
 

Detailed Description

Definition at line 7 of file ExportCommand.h.

Constructor & Destructor Documentation

◆ ExportCommand()

Cogs::Core::ExportCommand::ExportCommand ( EditorState state,
EntityId  ,
bool  exportAll = false 
)
inline

Definition at line 10 of file ExportCommand.h.

Member Function Documentation

◆ apply()

void Cogs::Core::ExportCommand::apply ( )
overridevirtual

◆ undo()

void Cogs::Core::ExportCommand::undo ( )
overridevirtual

Implements Cogs::Core::EditorCommand.

Definition at line 142 of file ExportCommand.cpp.

Member Data Documentation

◆ exportScene

bool Cogs::Core::ExportCommand::exportScene = false
private

Definition at line 15 of file ExportCommand.h.


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