Converted clone function to pure lua

This commit is contained in:
Pax1601
2023-09-04 17:27:09 +02:00
parent aca1e112d2
commit 3607f88e18
8 changed files with 181 additions and 165 deletions

View File

@@ -248,9 +248,8 @@ private:
class Clone : public Command
{
public:
Clone(unsigned int ID, Coords location) :
ID(ID),
location(location)
Clone(vector<CloneOptions> cloneOptions) :
cloneOptions(cloneOptions)
{
priority = CommandPriority::LOW;
};
@@ -258,8 +257,7 @@ public:
virtual unsigned int getLoad() { return 30; }
private:
const unsigned int ID;
const Coords location;
const vector<CloneOptions> cloneOptions;
};
/* Delete unit command */

View File

@@ -120,4 +120,9 @@ struct SpawnOptions {
Coords location;
string loadout;
string liveryID;
};
struct CloneOptions {
unsigned int ID;
Coords location;
};