Cogs.Core
Extensions
Editor
Source
Commands
AssetStatsCommand.h
1
#pragma once
2
#include "Foundation/StringView.h"
3
4
#include "EditorCommand.h"
5
6
namespace
Cogs::Core
7
{
8
9
struct
AssetStatsCommand
:
public
PostCommand
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
}
Cogs::Core::Context
A Context instance contains all the services, systems and runtime components needed to use Cogs.
Definition:
Context.h:83
Cogs::StringView
Provides a weakly referenced view over the contents of a string.
Definition:
StringView.h:24
Cogs::Core
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....
Definition:
ComponentFunctions.h:10
Cogs::Core::AssetStatsCommand
Definition:
AssetStatsCommand.h:10
Cogs::Core::AssetStatsCommand::apply
void apply() override
Run the command.
Definition:
AssetStatsCommand.cpp:1089
Cogs::Core::EditorState
Definition:
EditorState.h:76
Cogs::Core::PostCommand
Abstract base class for all editor batch Post commands.
Definition:
EditorCommand.h:28
Cogs::Core::PropertyStore
Definition:
PropertiesManager.h:75
Generated by
1.9.6