mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Some code cleanup.
This commit is contained in:
parent
ea851af6ea
commit
7cd40e2d2c
@ -2543,6 +2543,7 @@ do -- SET_UNIT
|
|||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
do -- SET_STATIC
|
do -- SET_STATIC
|
||||||
|
|
||||||
--- @type SET_STATIC
|
--- @type SET_STATIC
|
||||||
@ -3214,8 +3215,6 @@ do -- SET_STATIC
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
do -- SET_CLIENT
|
do -- SET_CLIENT
|
||||||
|
|
||||||
|
|
||||||
@ -3667,8 +3666,6 @@ do -- SET_CLIENT
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
do -- SET_PLAYER
|
do -- SET_PLAYER
|
||||||
|
|
||||||
--- @type SET_PLAYER
|
--- @type SET_PLAYER
|
||||||
@ -4071,8 +4068,6 @@ do -- SET_PLAYER
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
do -- SET_AIRBASE
|
do -- SET_AIRBASE
|
||||||
|
|
||||||
--- @type SET_AIRBASE
|
--- @type SET_AIRBASE
|
||||||
@ -4415,8 +4410,6 @@ do -- SET_AIRBASE
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
do -- SET_CARGO
|
do -- SET_CARGO
|
||||||
|
|
||||||
--- @type SET_CARGO
|
--- @type SET_CARGO
|
||||||
|
|||||||
@ -149,7 +149,6 @@ function SPAWNSTATIC:Spawn( Heading, NewName ) --R2.3
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
--- Creates a new @{Static} from a POINT_VEC2.
|
--- Creates a new @{Static} from a POINT_VEC2.
|
||||||
-- @param #SPAWNSTATIC self
|
-- @param #SPAWNSTATIC self
|
||||||
-- @param Core.Point#POINT_VEC2 PointVec2 The 2D coordinate where to spawn the static.
|
-- @param Core.Point#POINT_VEC2 PointVec2 The 2D coordinate where to spawn the static.
|
||||||
|
|||||||
@ -984,8 +984,6 @@ do -- Group
|
|||||||
-- @param #Group self
|
-- @param #Group self
|
||||||
-- @return #Group.Category
|
-- @return #Group.Category
|
||||||
|
|
||||||
--TODO check coalition.side
|
|
||||||
|
|
||||||
--- Returns the coalition of the group.
|
--- Returns the coalition of the group.
|
||||||
-- @function [parent=#Group] getCoalition
|
-- @function [parent=#Group] getCoalition
|
||||||
-- @param #Group self
|
-- @param #Group self
|
||||||
|
|||||||
@ -180,7 +180,7 @@ function CLEANUP_AIRBASE.__:DestroyUnit( CleanUpUnit )
|
|||||||
if CleanUpUnit then
|
if CleanUpUnit then
|
||||||
local CleanUpUnitName = CleanUpUnit:GetName()
|
local CleanUpUnitName = CleanUpUnit:GetName()
|
||||||
local CleanUpGroup = CleanUpUnit:GetGroup()
|
local CleanUpGroup = CleanUpUnit:GetGroup()
|
||||||
-- TODO Client bug in 1.5.3
|
-- TODO DCS BUG - Client bug in 1.5.3
|
||||||
if CleanUpGroup:IsAlive() then
|
if CleanUpGroup:IsAlive() then
|
||||||
local CleanUpGroupUnits = CleanUpGroup:GetUnits()
|
local CleanUpGroupUnits = CleanUpGroup:GetUnits()
|
||||||
if #CleanUpGroupUnits == 1 then
|
if #CleanUpGroupUnits == 1 then
|
||||||
@ -229,7 +229,7 @@ end
|
|||||||
function CLEANUP_AIRBASE.__:OnEventCrash( Event )
|
function CLEANUP_AIRBASE.__:OnEventCrash( Event )
|
||||||
self:F( { Event } )
|
self:F( { Event } )
|
||||||
|
|
||||||
--TODO: This stuff is not working due to a DCS bug. Burning units cannot be destroyed.
|
--TODO: DCS BUG - This stuff is not working due to a DCS bug. Burning units cannot be destroyed.
|
||||||
-- self:T("before getGroup")
|
-- self:T("before getGroup")
|
||||||
-- local _grp = Unit.getGroup(event.initiator)-- Identify the group that fired
|
-- local _grp = Unit.getGroup(event.initiator)-- Identify the group that fired
|
||||||
-- self:T("after getGroup")
|
-- self:T("after getGroup")
|
||||||
|
|||||||
@ -433,11 +433,7 @@ function CLIENT:ShowCargo()
|
|||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- TODO (1) I urgently need to revise this.
|
|
||||||
--- A local function called by the DCS World Menu system to switch off messages.
|
|
||||||
function CLIENT.SwitchMessages( PrmTable )
|
|
||||||
PrmTable[1].MessageSwitch = PrmTable[2]
|
|
||||||
end
|
|
||||||
|
|
||||||
--- The main message driver for the CLIENT.
|
--- The main message driver for the CLIENT.
|
||||||
-- This function displays various messages to the Player logged into the CLIENT through the DCS World Messaging system.
|
-- This function displays various messages to the Player logged into the CLIENT through the DCS World Messaging system.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user