GDevelop Core
Core library for developing platforms and tools compatible with GDevelop.
GDCore
IDE
Events
LinkEventTargetRenamer.h
1
/*
2
* GDevelop Core
3
* Copyright 2008-2016 Florian Rival (
[email protected]
). All rights
4
* reserved. This project is released under the MIT License.
5
*/
6
#pragma once
7
8
#include "GDCore/IDE/Events/ArbitraryEventsWorker.h"
9
#include "GDCore/String.h"
10
#include <map>
11
#include <memory>
12
#include <vector>
13
14
namespace
gd
{
15
class
BaseEvent;
16
class
LinkEvent;
17
class
Platform;
18
class
EventsList;
19
}
// namespace gd
20
21
namespace
gd
{
22
28
class
GD_CORE_API
LinkEventTargetRenamer
29
:
public
ArbitraryEventsWorkerWithContext
{
30
public
:
31
LinkEventTargetRenamer
(
const
gd::Platform
&platform_,
32
const
gd::String
&oldName_,
const
gd::String
&newName_)
33
: platform(platform_), oldName(oldName_), newName(newName_){};
34
virtual
~
LinkEventTargetRenamer
();
35
36
private
:
37
bool
DoVisitLinkEvent(
gd::LinkEvent
&linkEvent)
override
;
38
39
const
gd::Platform
&platform;
40
gd::String
oldName;
41
gd::String
newName;
42
};
43
44
}
// namespace gd
gd::ArbitraryEventsWorkerWithContext
An events worker that will know about the context (the objects container). Useful for workers working...
Definition:
ArbitraryEventsWorker.h:136
gd::LinkEvent
A link pointing to external events (or events of another layout) that should be included and run inst...
Definition:
LinkEvent.h:17
gd::LinkEventTargetRenamer
Replace in link events the name of external events.
Definition:
LinkEventTargetRenamer.h:29
gd::Platform
Base class for implementing a platform.
Definition:
Platform.h:42
gd::String
String represents an UTF8 encoded string.
Definition:
String.h:33
gd
Definition:
CommonTools.h:24
Generated by
1.9.1