Cogs.Core
MergeCommand.h
1#pragma once
2
3#include "EditorCommand.h"
4
5namespace Cogs::Core
6{
7 struct MergeCommand : public EditorCommand
8 {
9 MergeCommand(EditorState * state, EntityIds entityIds) : EditorCommand(state, state->context), entityIds(entityIds) {}
10
11 void apply() override;
12 void undo() override;
13
14 private:
15 EntityIds entityIds;
16 };
17
19 {
20 MergeMeshCommand(EditorState * state, EntityIds entityIds) : EditorCommand(state, state->context), entityIds(entityIds) {}
21
22 void apply() override;
23 void undo() override;
24
25 private:
26 EntityIds entityIds;
27 };
28
30 {
31 ScaleMeshCommand(EditorState * state, EntityIds entityIds) : EditorCommand(state, state->context), entityIds(entityIds) {}
32
33 void apply() override;
34 void undo() override;
35
36 private:
37 EntityIds entityIds;
38 };
39}
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....
Base class for Cogs Editor commands.
Definition: EditorCommand.h:19
void apply() override
Run the command.
void apply() override
Run the command.
void apply() override
Run the command.