mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
#UTILS
* Remove utils.routines
This commit is contained in:
@@ -2829,7 +2829,7 @@ end
|
||||
function CONTROLLABLE:GetTaskMission()
|
||||
self:F2( self.ControllableName )
|
||||
|
||||
return routines.utils.deepCopy( _DATABASE.Templates.Controllables[self.ControllableName].Template )
|
||||
return UTILS.DeepCopy( _DATABASE.Templates.Controllables[self.ControllableName].Template )
|
||||
end
|
||||
|
||||
--- Return the mission route of the controllable.
|
||||
@@ -2838,7 +2838,7 @@ end
|
||||
function CONTROLLABLE:GetTaskRoute()
|
||||
self:F2( self.ControllableName )
|
||||
|
||||
return routines.utils.deepCopy( _DATABASE.Templates.Controllables[self.ControllableName].Template.route.points )
|
||||
return UTILS.DeepCopy( _DATABASE.Templates.Controllables[self.ControllableName].Template.route.points )
|
||||
end
|
||||
|
||||
--- Return the route of a controllable by using the @{Core.Database#DATABASE} class.
|
||||
@@ -2874,7 +2874,7 @@ function CONTROLLABLE:CopyRoute( Begin, End, Randomize, Radius )
|
||||
|
||||
for TPointID = Begin + 1, #Template.route.points - End do
|
||||
if Template.route.points[TPointID] then
|
||||
Points[#Points + 1] = routines.utils.deepCopy( Template.route.points[TPointID] )
|
||||
Points[#Points + 1] = UTILS.DeepCopy( Template.route.points[TPointID] )
|
||||
if Randomize then
|
||||
if not Radius then
|
||||
Radius = 500
|
||||
|
||||
Reference in New Issue
Block a user