RenameAnimatedMapCommand is used to rename an animated map.
More...
#include <RenameAnimatedMapCommand.h>
RenameAnimatedMapCommand is used to rename an animated map.
◆ RenameAnimatedMapCommand() [1/5]
dnac::RenameAnimatedMapCommand::RenameAnimatedMapCommand |
( |
MemoryResource * |
memRes = nullptr | ) |
|
|
explicit |
43 :
pImpl{makeScoped<Impl>(memRes)} {
44}
ScopedPtr< Impl > pImpl
Definition: RenameAnimatedMapCommand.h:55
◆ RenameAnimatedMapCommand() [2/5]
dnac::RenameAnimatedMapCommand::RenameAnimatedMapCommand |
( |
std::uint16_t |
animatedMapIndex, |
|
|
const char * |
newName, |
|
|
MemoryResource * |
memRes = nullptr |
|
) |
| |
46 :
47 pImpl{makeScoped<Impl>(memRes)} {
48
49 pImpl->setName(animatedMapIndex, newName);
50}
References pImpl.
◆ RenameAnimatedMapCommand() [3/5]
dnac::RenameAnimatedMapCommand::RenameAnimatedMapCommand |
( |
const char * |
oldName, |
|
|
const char * |
newName, |
|
|
MemoryResource * |
memRes = nullptr |
|
) |
| |
52 :
53 pImpl{makeScoped<Impl>(memRes)} {
54
55 pImpl->setName(oldName, newName);
56}
References pImpl.
◆ ~RenameAnimatedMapCommand()
dnac::RenameAnimatedMapCommand::~RenameAnimatedMapCommand |
( |
| ) |
|
|
default |
◆ RenameAnimatedMapCommand() [4/5]
◆ RenameAnimatedMapCommand() [5/5]
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ run()
◆ setName() [1/2]
void dnac::RenameAnimatedMapCommand::setName |
( |
const char * |
oldName, |
|
|
const char * |
newName |
|
) |
| |
Method for setting a new name for animated map with given name.
- Note
- The renaming will not happen if there is no animated map with given current name.
- Parameters
-
oldName | The current name of the animated map whose name to change. |
newName | The new name for the animated map. |
66 {
67 pImpl->setName(oldName, newName);
68}
References pImpl.
◆ setName() [2/2]
void dnac::RenameAnimatedMapCommand::setName |
( |
std::uint16_t |
animatedMapIndex, |
|
|
const char * |
newName |
|
) |
| |
Method for setting a new name for animated map with given index.
- Parameters
-
animatedMapIndex | The index of the animated map whose name to change. |
newName | The new name for the animated map. |
62 {
63 pImpl->setName(animatedMapIndex, newName);
64}
References pImpl.
◆ pImpl
The documentation for this class was generated from the following files: