mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Converted clone function to pure lua
This commit is contained in:
@@ -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 */
|
||||
|
||||
@@ -120,4 +120,9 @@ struct SpawnOptions {
|
||||
Coords location;
|
||||
string loadout;
|
||||
string liveryID;
|
||||
};
|
||||
|
||||
struct CloneOptions {
|
||||
unsigned int ID;
|
||||
Coords location;
|
||||
};
|
||||
Reference in New Issue
Block a user