Cogs.Core
AssetStatsCommand.h
1#pragma once
2#include "Foundation/StringView.h"
3
4#include "EditorCommand.h"
5
6namespace Cogs::Core
7{
8
10 {
11 AssetStatsCommand(EditorState* state) : PostCommand(state) {}
12
13 void apply() override;
14 void undo() override;
15 void applyPost() override;
16
17 static bool calculateStats(Context* context,
18 PropertyStore& properties,
19 const StringView& source,
20 const StringView& destination);
21
22 };
23
24}
A Context instance contains all the services, systems and runtime components needed to use Cogs.
Definition: Context.h:83
Provides a weakly referenced view over the contents of a string.
Definition: StringView.h:24
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....
void apply() override
Run the command.
Abstract base class for all editor batch Post commands.
Definition: EditorCommand.h:28