Added methods to COORDINATE to place marks on the map

* Added new methods to COORDINATE allowing to place marks for players on
the map. Now marks can be placed on the map using :AddToAll(),
:MarkToCoalition(), :MarkToCoalitionRed(), :MarkToCoalitionBlue(),
:MarkToGroup() and marks can be removed using :RemoveMark()
This commit is contained in:
FlightControl_Master
2017-09-11 06:51:14 +02:00
parent ae4affbf2f
commit 51e50bee71
14 changed files with 575 additions and 30 deletions

View File

@@ -31,7 +31,9 @@ FLARECOLOR = trigger.flareColor -- #FLARECOLOR
--- Utilities static class.
-- @type UTILS
UTILS = {}
UTILS = {
_MarkID = 0
}
--- Function to infer instance of an object
--
@@ -395,3 +397,11 @@ function UTILS.spairs( t, order )
end
end
end
-- get a new mark ID for markings
function UTILS.GetMarkID()
UTILS._MarkID = UTILS._MarkID + 1
return UTILS._MarkID
end