[commands] Change C++ CommandPtr to use CommandBase (#4677)

This commit is contained in:
Starlight220
2022-11-21 19:45:50 +02:00
committed by GitHub
parent 98e922313b
commit 0bee875aff
5 changed files with 27 additions and 29 deletions

View File

@@ -345,6 +345,12 @@ safe) semantics.
virtual std::string GetName() const;
/**
* Transfers ownership of this command to a unique pointer. Used for
* decorator methods.
*/
virtual CommandPtr ToPtr() && = 0;
protected:
/**
* Transfers ownership of this command to a unique pointer. Used for