1#ifndef GAME_EDITOR_EDITOR_ACTIONS_H
2#define GAME_EDITOR_EDITOR_ACTIONS_H
12 virtual void Undo()
override {}
13 virtual void Redo()
override {}
35 std::vector<std::pair<int, EditorTileStateChangeHistory<STileStateChange>>>
m_vTileChanges;
79 CEditorActionDeleteQuad(
CEditor *pEditor,
int GroupIndex,
int LayerIndex, std::vector<int>
const &vQuadsIndices, std::vector<CQuad>
const &vDeletedQuads);
94 CEditorActionEditQuadPoint(
CEditor *pEditor,
int GroupIndex,
int LayerIndex,
int QuadIndex, std::vector<CPoint>
const &vPreviousPoints, std::vector<CPoint>
const &vCurrentPoints);
110 void Undo()
override;
111 void Redo()
override;
119 void Apply(
int Value);
127 void Undo()
override;
128 void Redo()
override;
137 void Apply(
int Value);
145 CEditorActionBulk(
CEditor *pEditor,
const std::vector<std::shared_ptr<IEditorAction>> &vpActions,
const char *pDisplay =
nullptr,
bool Reverse =
false);
147 void Undo()
override;
148 void Redo()
override;
163 void Undo()
override;
164 void Redo()
override;
181 void Undo()
override;
182 void Redo()
override;
193 void Undo()
override;
194 void Redo()
override;
202 void Undo()
override;
203 void Redo()
override;
216 void Undo()
override;
217 void Redo()
override;
225 void Apply(
int Value);
234 virtual void Undo()
override {}
235 virtual void Redo()
override {}
248 void Undo()
override;
249 void Redo()
override;
252 void Apply(
int Value);
260 void Undo()
override;
261 void Redo()
override;
263 void SetSavedLayers(
const std::map<
int, std::shared_ptr<CLayer>> &SavedLayers);
268 void RestoreLayer(
int Layer,
const std::shared_ptr<CLayerTiles> &pLayerTiles);
276 void Undo()
override;
277 void Redo()
override;
280 void Apply(
int Value);
288 void Undo()
override;
289 void Redo()
override;
314 void Undo()
override;
315 void Redo()
override;
330 void Undo()
override;
331 void Redo()
override;
353 CEditorCommandAction(
CEditor *pEditor,
EType Type,
int *pSelectedCommandIndex,
int CommandIndex,
const char *pPreviousCommand =
nullptr,
const char *pCurrentCommand =
nullptr);
355 void Undo()
override;
356 void Redo()
override;
373 void Undo()
override;
374 void Redo()
override;
385 void Undo()
override;
386 void Redo()
override;
404 void Undo()
override;
405 void Redo()
override;
428 void Undo()
override;
429 void Redo()
override;
440 void Apply(
int Value);
448 void Undo()
override;
449 void Redo()
override;
462 void Undo()
override;
463 void Redo()
override;
483 void Undo()
override;
484 void Redo()
override;
504 void Undo()
override;
505 void Redo()
override;
520 void Undo()
override;
521 void Redo()
override;
524 void Apply(
int Value);
532 void Undo()
override;
533 void Redo()
override;
551 void Undo()
override;
552 void Redo()
override;
570 void Undo()
override;
571 void Redo()
override;
577 void Apply(
int Value);
585 void Undo()
override;
586 void Redo()
override;
592 void Apply(
int Value);
600 void Undo()
override;
601 void Redo()
override;
607 void Apply(
int Value);
615 void Undo()
override;
616 void Redo()
override;
628 void Undo()
override;
629 void Redo()
override;
641 void Undo()
override;
642 void Redo()
override;
653 void Undo()
override;
654 void Redo()
override;
Definition: editor_actions.h:444
void Redo() override
Definition: editor_actions.cpp:1669
CEditorActionAddEnvelopePoint(CEditor *pEditor, int EnvIndex, int Time, ColorRGBA Channels)
Definition: editor_actions.cpp:1648
ColorRGBA m_Channels
Definition: editor_actions.h:454
void Undo() override
Definition: editor_actions.cpp:1654
int m_Time
Definition: editor_actions.h:453
int m_EnvIndex
Definition: editor_actions.h:452
Definition: editor_actions.h:177
CEditorActionAddLayer(CEditor *pEditor, int GroupIndex, int LayerIndex, bool Duplicate=false)
Definition: editor_actions.cpp:532
void Undo() override
Definition: editor_actions.cpp:538
void Redo() override
Definition: editor_actions.cpp:567
bool m_Duplicate
Definition: editor_actions.h:185
Definition: editor_actions.h:301
char m_aMapName[IO_MAX_PATH_LENGTH]
Definition: editor_actions.h:318
SPrevInfo m_PrevInfo
Definition: editor_actions.h:319
std::vector< int > m_vImageIndexMap
Definition: editor_actions.h:320
CEditorActionAppendMap(CEditor *pEditor, const char *pMapName, const SPrevInfo &PrevInfo, std::vector< int > &vImageIndexMap)
Definition: editor_actions.cpp:1154
void Redo() override
Definition: editor_actions.cpp:1221
void Undo() override
Definition: editor_actions.cpp:1161
Definition: editor_actions.h:143
std::string m_Display
Definition: editor_actions.h:152
bool m_Reverse
Definition: editor_actions.h:153
void Redo() override
Definition: editor_actions.cpp:469
std::vector< std::shared_ptr< IEditorAction > > m_vpActions
Definition: editor_actions.h:151
CEditorActionBulk(CEditor *pEditor, const std::vector< std::shared_ptr< IEditorAction > > &vpActions, const char *pDisplay=nullptr, bool Reverse=false)
Definition: editor_actions.cpp:432
void Undo() override
Definition: editor_actions.cpp:450
Definition: editor_actions.h:458
CEnvPoint_runtime m_Point
Definition: editor_actions.h:468
void Redo() override
Definition: editor_actions.cpp:1693
int m_PointIndex
Definition: editor_actions.h:467
void Undo() override
Definition: editor_actions.cpp:1685
int m_EnvIndex
Definition: editor_actions.h:466
CEditorActionDeleteEnvelopePoint(CEditor *pEditor, int EnvIndex, int PointIndex)
Definition: editor_actions.cpp:1679
Definition: editor_actions.h:189
void Undo() override
Definition: editor_actions.cpp:629
void Redo() override
Definition: editor_actions.cpp:600
CEditorActionDeleteLayer(CEditor *pEditor, int GroupIndex, int LayerIndex)
Definition: editor_actions.cpp:594
Definition: editor_actions.h:77
std::vector< CQuad > m_vDeletedQuads
Definition: editor_actions.h:86
void Redo() override
Definition: editor_actions.cpp:300
std::vector< int > m_vQuadsIndices
Definition: editor_actions.h:85
CEditorActionDeleteQuad(CEditor *pEditor, int GroupIndex, int LayerIndex, std::vector< int > const &vQuadsIndices, std::vector< CQuad > const &vDeletedQuads)
Definition: editor_actions.cpp:285
void Undo() override
Definition: editor_actions.cpp:291
Definition: editor_actions.h:528
CSoundSource m_Source
Definition: editor_actions.h:537
void Undo() override
Definition: editor_actions.cpp:1753
void Redo() override
Definition: editor_actions.cpp:1761
CEditorActionDeleteSoundSource(CEditor *pEditor, int GroupIndex, int LayerIndex, int SourceIndex)
Definition: editor_actions.cpp:1744
int m_SourceIndex
Definition: editor_actions.h:536
Definition: editor_actions.h:596
void Undo() override
Definition: editor_actions.cpp:1998
void Redo() override
Definition: editor_actions.cpp:2003
int m_SourceIndex
Definition: editor_actions.h:604
CEditorActionEditCircleSoundSourceShapeProp(CEditor *pEditor, int GroupIndex, int LayerIndex, int SourceIndex, ECircleShapeProp Prop, int Previous, int Current)
Definition: editor_actions.cpp:1990
void Apply(int Value)
Definition: editor_actions.cpp:2008
Definition: editor_actions.h:472
int m_PtIndex
Definition: editor_actions.h:488
EType
Definition: editor_actions.h:475
int m_NewTime
Definition: editor_actions.h:493
CEditorActionEditEnvelopePointValue(CEditor *pEditor, int EnvIndex, int PointIndex, int Channel, EType Type, int OldTime, int OldValue, int NewTime, int NewValue)
Definition: editor_actions.cpp:1537
int m_Channel
Definition: editor_actions.h:489
void Undo() override
Definition: editor_actions.cpp:1543
int m_OldValue
Definition: editor_actions.h:492
EType m_Type
Definition: editor_actions.h:490
int m_NewValue
Definition: editor_actions.h:494
void Redo() override
Definition: editor_actions.cpp:1548
int m_EnvIndex
Definition: editor_actions.h:487
int m_OldTime
Definition: editor_actions.h:491
void Apply(bool Undo)
Definition: editor_actions.cpp:1553
Definition: editor_actions.h:212
EGroupProp m_Prop
Definition: editor_actions.h:221
int m_Previous
Definition: editor_actions.h:222
void Redo() override
Definition: editor_actions.cpp:739
int m_Current
Definition: editor_actions.h:223
int m_GroupIndex
Definition: editor_actions.h:220
void Apply(int Value)
Definition: editor_actions.cpp:757
CEditorActionEditGroupProp(CEditor *pEditor, int GroupIndex, EGroupProp Prop, int Previous, int Current)
Definition: editor_actions.cpp:703
void Undo() override
Definition: editor_actions.cpp:721
Definition: editor_actions.h:230
CEditorActionEditLayerPropBase(CEditor *pEditor, int GroupIndex, int LayerIndex, E Prop, int Previous, int Current)
Definition: editor_actions.cpp:784
int m_Current
Definition: editor_actions.h:240
E m_Prop
Definition: editor_actions.h:238
virtual void Redo() override
Definition: editor_actions.h:235
int m_Previous
Definition: editor_actions.h:239
virtual void Undo() override
Definition: editor_actions.h:234
Definition: editor_actions.h:244
CEditorActionEditLayerProp(CEditor *pEditor, int GroupIndex, int LayerIndex, ELayerProp Prop, int Previous, int Current)
Definition: editor_actions.cpp:789
void Apply(int Value)
Definition: editor_actions.cpp:824
void Undo() override
Definition: editor_actions.cpp:800
void Redo() override
Definition: editor_actions.cpp:812
Definition: editor_actions.h:272
void Apply(int Value)
Definition: editor_actions.cpp:1083
void Undo() override
Definition: editor_actions.cpp:1073
void Redo() override
Definition: editor_actions.cpp:1078
CEditorActionEditLayerQuadsProp(CEditor *pEditor, int GroupIndex, int LayerIndex, ELayerQuadsProp Prop, int Previous, int Current)
Definition: editor_actions.cpp:1065
Definition: editor_actions.h:516
void Redo() override
Definition: editor_actions.cpp:1723
void Undo() override
Definition: editor_actions.cpp:1718
CEditorActionEditLayerSoundsProp(CEditor *pEditor, int GroupIndex, int LayerIndex, ELayerSoundsProp Prop, int Previous, int Current)
Definition: editor_actions.cpp:1710
void Apply(int Value)
Definition: editor_actions.cpp:1728
Definition: editor_actions.h:256
std::map< int, std::shared_ptr< CLayer > > m_SavedLayers
Definition: editor_actions.h:266
void RestoreLayer(int Layer, const std::shared_ptr< CLayerTiles > &pLayerTiles)
Definition: editor_actions.cpp:1031
void SetSavedLayers(const std::map< int, std::shared_ptr< CLayer > > &SavedLayers)
Definition: editor_actions.cpp:864
void Undo() override
Definition: editor_actions.cpp:869
CEditorActionEditLayerTilesProp(CEditor *pEditor, int GroupIndex, int LayerIndex, ETilesProp Prop, int Previous, int Current)
Definition: editor_actions.cpp:846
void Redo() override
Definition: editor_actions.cpp:951
Definition: editor_actions.h:284
int m_GroupIndex
Definition: editor_actions.h:292
void Redo() override
Definition: editor_actions.cpp:1130
std::vector< int > m_LayerIndices
Definition: editor_actions.h:293
std::vector< int > m_NewLayerIndices
Definition: editor_actions.h:295
void Undo() override
Definition: editor_actions.cpp:1108
CEditorActionEditLayersGroupAndOrder(CEditor *pEditor, int GroupIndex, const std::vector< int > &LayerIndices, int NewGroupIndex, const std::vector< int > &NewLayerIndices)
Definition: editor_actions.cpp:1099
int m_NewGroupIndex
Definition: editor_actions.h:294
Definition: editor_actions.h:123
int m_PointIndex
Definition: editor_actions.h:132
EQuadPointProp m_Prop
Definition: editor_actions.h:133
int m_QuadIndex
Definition: editor_actions.h:131
CEditorActionEditQuadPointProp(CEditor *pEditor, int GroupIndex, int LayerIndex, int QuadIndex, int PointIndex, EQuadPointProp Prop, int Previous, int Current)
Definition: editor_actions.cpp:380
void Redo() override
Definition: editor_actions.cpp:397
int m_Previous
Definition: editor_actions.h:134
void Apply(int Value)
Definition: editor_actions.cpp:402
int m_Current
Definition: editor_actions.h:135
void Undo() override
Definition: editor_actions.cpp:392
Definition: editor_actions.h:92
void Redo() override
Definition: editor_actions.cpp:334
void Undo() override
Definition: editor_actions.cpp:326
std::vector< CPoint > m_vPreviousPoints
Definition: editor_actions.h:101
CEditorActionEditQuadPoint(CEditor *pEditor, int GroupIndex, int LayerIndex, int QuadIndex, std::vector< CPoint > const &vPreviousPoints, std::vector< CPoint > const &vCurrentPoints)
Definition: editor_actions.cpp:320
std::vector< CPoint > m_vCurrentPoints
Definition: editor_actions.h:102
int m_QuadIndex
Definition: editor_actions.h:100
Definition: editor_actions.h:106
int m_QuadIndex
Definition: editor_actions.h:114
void Undo() override
Definition: editor_actions.cpp:356
EQuadProp m_Prop
Definition: editor_actions.h:115
int m_Current
Definition: editor_actions.h:117
int m_Previous
Definition: editor_actions.h:116
void Redo() override
Definition: editor_actions.cpp:361
CEditorActionEditQuadProp(CEditor *pEditor, int GroupIndex, int LayerIndex, int QuadIndex, EQuadProp Prop, int Previous, int Current)
Definition: editor_actions.cpp:342
void Apply(int Value)
Definition: editor_actions.cpp:366
Definition: editor_actions.h:581
CEditorActionEditRectSoundSourceShapeProp(CEditor *pEditor, int GroupIndex, int LayerIndex, int SourceIndex, ERectangleShapeProp Prop, int Previous, int Current)
Definition: editor_actions.cpp:1954
void Undo() override
Definition: editor_actions.cpp:1963
void Apply(int Value)
Definition: editor_actions.cpp:1973
int m_SourceIndex
Definition: editor_actions.h:589
void Redo() override
Definition: editor_actions.cpp:1968
Definition: editor_actions.h:566
void Undo() override
Definition: editor_actions.cpp:1895
int m_SourceIndex
Definition: editor_actions.h:574
void Redo() override
Definition: editor_actions.cpp:1900
CEditorActionEditSoundSourceProp(CEditor *pEditor, int GroupIndex, int LayerIndex, int SourceIndex, ESoundProp Prop, int Previous, int Current)
Definition: editor_actions.cpp:1878
void Apply(int Value)
Definition: editor_actions.cpp:1905
Definition: editor_actions.h:541
void Save()
Definition: editor_actions.cpp:1838
void * m_pSavedObject
Definition: editor_actions.h:560
int m_CurrentValue
Definition: editor_actions.h:557
CEditorActionEditSoundSource(CEditor *pEditor, int GroupIndex, int LayerIndex, int SourceIndex, EEditType Type, int Value)
Definition: editor_actions.cpp:1771
EEditType
Definition: editor_actions.h:544
~CEditorActionEditSoundSource() override
Definition: editor_actions.cpp:1867
void Redo() override
Definition: editor_actions.cpp:1809
EEditType m_EditType
Definition: editor_actions.h:556
void Undo() override
Definition: editor_actions.cpp:1779
std::vector< int > m_vOriginalValues
Definition: editor_actions.h:559
int m_SourceIndex
Definition: editor_actions.h:555
Definition: editor_actions.h:369
void Undo() override
Definition: editor_actions.cpp:1405
std::shared_ptr< CEnvelope > m_pEnv
Definition: editor_actions.h:377
CEditorActionEnvelopeAdd(CEditor *pEditor, const std::shared_ptr< CEnvelope > &pEnv)
Definition: editor_actions.cpp:1399
void Redo() override
Definition: editor_actions.cpp:1412
Definition: editor_actions.h:416
int m_Channel
Definition: editor_actions.h:434
void Apply(int Value)
Definition: editor_actions.cpp:1507
EEditType
Definition: editor_actions.h:419
int m_PointIndex
Definition: editor_actions.h:433
int m_Current
Definition: editor_actions.h:437
std::shared_ptr< CEnvelope > m_pEnv
Definition: editor_actions.h:438
CEditorActionEnvelopeEditPoint(CEditor *pEditor, int EnvelopeIndex, int PointIndex, int Channel, EEditType EditType, int Previous, int Current)
Definition: editor_actions.cpp:1487
int m_EnvelopeIndex
Definition: editor_actions.h:432
void Redo() override
Definition: editor_actions.cpp:1502
void Undo() override
Definition: editor_actions.cpp:1497
int m_Previous
Definition: editor_actions.h:436
EEditType m_EditType
Definition: editor_actions.h:435
Definition: editor_actions.h:394
int m_Previous
Definition: editor_actions.h:410
int m_EnvelopeIndex
Definition: editor_actions.h:408
EEditType
Definition: editor_actions.h:397
std::shared_ptr< CEnvelope > m_pEnv
Definition: editor_actions.h:412
void Undo() override
Definition: editor_actions.cpp:1449
int m_Current
Definition: editor_actions.h:411
EEditType m_EditType
Definition: editor_actions.h:409
void Redo() override
Definition: editor_actions.cpp:1468
CEditorActionEnvelopeEdit(CEditor *pEditor, int EnvelopeIndex, EEditType EditType, int Previous, int Current)
Definition: editor_actions.cpp:1440
Definition: editor_actions.h:381
void Redo() override
Definition: editor_actions.cpp:1432
CEditorActionEveloppeDelete(CEditor *pEditor, int EnvelopeIndex)
Definition: editor_actions.cpp:1419
std::shared_ptr< CEnvelope > m_pEnv
Definition: editor_actions.h:390
void Undo() override
Definition: editor_actions.cpp:1425
int m_EnvelopeIndex
Definition: editor_actions.h:389
Definition: editor_actions.h:198
int m_GroupIndex
Definition: editor_actions.h:206
bool m_Delete
Definition: editor_actions.h:207
std::shared_ptr< CLayerGroup > m_pGroup
Definition: editor_actions.h:208
void Undo() override
Definition: editor_actions.cpp:666
void Redo() override
Definition: editor_actions.cpp:685
CEditorActionGroup(CEditor *pEditor, int GroupIndex, bool Delete)
Definition: editor_actions.cpp:656
Definition: editor_actions.h:8
int m_LayerIndex
Definition: editor_actions.h:17
int m_GroupIndex
Definition: editor_actions.h:16
virtual void Undo() override
Definition: editor_actions.h:12
std::shared_ptr< CLayer > m_pLayer
Definition: editor_actions.h:18
CEditorActionLayerBase(CEditor *pEditor, int GroupIndex, int LayerIndex)
Definition: editor_actions.cpp:524
virtual void Redo() override
Definition: editor_actions.h:13
Definition: editor_actions.h:649
void Undo() override
Definition: editor_actions.cpp:2111
void Redo() override
Definition: editor_actions.cpp:2117
CPoint m_OriginalPosition
Definition: editor_actions.h:658
CEditorActionMoveSoundSource(CEditor *pEditor, int GroupIndex, int LayerIndex, int SourceIndex, CPoint OriginalPosition, CPoint CurrentPosition)
Definition: editor_actions.cpp:2105
int m_SourceIndex
Definition: editor_actions.h:657
CPoint m_CurrentPosition
Definition: editor_actions.h:659
Definition: editor_actions.h:624
int m_Y
Definition: editor_actions.h:633
void Undo() override
Definition: editor_actions.cpp:2053
void Redo() override
Definition: editor_actions.cpp:2062
CEditorActionNewEmptyQuad(CEditor *pEditor, int GroupIndex, int LayerIndex, int x, int y)
Definition: editor_actions.cpp:2047
int m_X
Definition: editor_actions.h:632
Definition: editor_actions.h:611
void Undo() override
Definition: editor_actions.cpp:2029
int m_X
Definition: editor_actions.h:619
int m_Y
Definition: editor_actions.h:620
void Redo() override
Definition: editor_actions.cpp:2038
CEditorActionNewEmptySound(CEditor *pEditor, int GroupIndex, int LayerIndex, int x, int y)
Definition: editor_actions.cpp:2023
Definition: editor_actions.h:637
void Undo() override
Definition: editor_actions.cpp:2091
CQuad m_Quad
Definition: editor_actions.h:645
CEditorActionNewQuad(CEditor *pEditor, int GroupIndex, int LayerIndex)
Definition: editor_actions.cpp:2082
void Redo() override
Definition: editor_actions.cpp:2097
Definition: editor_actions.h:51
void Redo() override
Definition: editor_actions.cpp:250
std::vector< CQuad > m_vBrush
Definition: editor_actions.h:59
void Undo() override
Definition: editor_actions.cpp:242
CEditorActionQuadPlace(CEditor *pEditor, int GroupIndex, int LayerIndex, std::vector< CQuad > &vBrush)
Definition: editor_actions.cpp:236
Definition: editor_actions.h:500
int m_EnvIndex
Definition: editor_actions.h:508
void Redo() override
Definition: editor_actions.cpp:1630
CEditorActionResetEnvelopePointTangent(CEditor *pEditor, int EnvIndex, int PointIndex, int Channel, bool In)
Definition: editor_actions.cpp:1596
void Undo() override
Definition: editor_actions.cpp:1614
int m_Previous[2]
Definition: editor_actions.h:512
bool m_In
Definition: editor_actions.h:511
int m_Channel
Definition: editor_actions.h:510
int m_PointIndex
Definition: editor_actions.h:509
Definition: editor_actions.h:63
std::vector< CSoundSource > m_vBrush
Definition: editor_actions.h:71
void Undo() override
Definition: editor_actions.cpp:265
void Redo() override
Definition: editor_actions.cpp:274
CEditorActionSoundPlace(CEditor *pEditor, int GroupIndex, int LayerIndex, std::vector< CSoundSource > &vBrush)
Definition: editor_actions.cpp:259
Definition: editor_actions.h:326
CEditorActionTileArt(CEditor *pEditor, int PreviousImageCount, const char *pTileArtFile, std::vector< int > &vImageIndexMap)
Definition: editor_actions.cpp:1229
int m_PreviousImageCount
Definition: editor_actions.h:334
char m_aTileArtFile[IO_MAX_PATH_LENGTH]
Definition: editor_actions.h:335
void Redo() override
Definition: editor_actions.cpp:1276
std::vector< int > m_vImageIndexMap
Definition: editor_actions.h:336
void Undo() override
Definition: editor_actions.cpp:1236
Definition: editor_actions.h:159
void Apply(bool Undo)
Definition: editor_actions.cpp:496
void ComputeInfos()
Definition: editor_actions.cpp:515
CEditorActionTileChanges(CEditor *pEditor, int GroupIndex, int LayerIndex, const char *pAction, const EditorTileStateChangeHistory< STileStateChange > &Changes)
Definition: editor_actions.cpp:479
void Undo() override
Definition: editor_actions.cpp:486
void Redo() override
Definition: editor_actions.cpp:491
int m_TotalChanges
Definition: editor_actions.h:168
EditorTileStateChangeHistory< STileStateChange > m_Changes
Definition: editor_actions.h:167
Definition: editor_actions.h:22
void Undo() override
Definition: editor_actions.cpp:119
int m_TotalTilesDrawn
Definition: editor_actions.h:41
void Apply(bool Undo)
Definition: editor_actions.cpp:129
CEditorBrushDrawAction(CEditor *pEditor, int Group)
Definition: editor_actions.cpp:4
bool IsEmpty() override
Definition: editor_actions.cpp:114
EditorTileStateChangeHistory< STeleTileStateChange > m_TeleTileChanges
Definition: editor_actions.h:36
void SetInfos()
Definition: editor_actions.cpp:61
int m_Group
Definition: editor_actions.h:31
EditorTileStateChangeHistory< SSwitchTileStateChange > m_SwitchTileChanges
Definition: editor_actions.h:38
void Redo() override
Definition: editor_actions.cpp:124
int m_TotalLayers
Definition: editor_actions.h:42
std::vector< std::pair< int, EditorTileStateChangeHistory< STileStateChange > > > m_vTileChanges
Definition: editor_actions.h:35
EditorTileStateChangeHistory< STuneTileStateChange > m_TuneTileChanges
Definition: editor_actions.h:39
EditorTileStateChangeHistory< SSpeedupTileStateChange > m_SpeedupTileChanges
Definition: editor_actions.h:37
Definition: editor_actions.h:342
EType
Definition: editor_actions.h:345
void Redo() override
Definition: editor_actions.cpp:1359
std::string m_PreviousCommand
Definition: editor_actions.h:362
EType m_Type
Definition: editor_actions.h:359
std::string m_CurrentCommand
Definition: editor_actions.h:363
int m_CommandIndex
Definition: editor_actions.h:361
int * m_pSelectedCommandIndex
Definition: editor_actions.h:360
void Undo() override
Definition: editor_actions.cpp:1321
CEditorCommandAction(CEditor *pEditor, EType Type, int *pSelectedCommandIndex, int CommandIndex, const char *pPreviousCommand=nullptr, const char *pCurrentCommand=nullptr)
Definition: editor_actions.cpp:1290
Definition: editor_action.h:9
ELayerQuadsProp
Definition: mapitems.h:112
EQuadProp
Definition: mapitems.h:5
EQuadPointProp
Definition: mapitems.h:18
ETilesProp
Definition: mapitems.h:69
ERectangleShapeProp
Definition: mapitems.h:45
ECircleShapeProp
Definition: mapitems.h:53
ELayerSoundsProp
Definition: mapitems.h:119
ELayerProp
Definition: mapitems.h:60
EGroupProp
Definition: mapitems.h:96
ESoundProp
Definition: mapitems.h:29
std::map< int, std::map< int, T > > EditorTileStateChangeHistory
Definition: layer_tiles.h:18
Definition: editor_actions.h:304
int m_Sounds
Definition: editor_actions.h:307
int m_Groups
Definition: editor_actions.h:305
int m_Envelopes
Definition: editor_actions.h:308
int m_Images
Definition: editor_actions.h:306
Definition: mapitems.h:413
Definition: mapitems.h:223
Definition: mapitems.h:483
@ IO_MAX_PATH_LENGTH
Definition: types.h:43