mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Removed flushes
This commit is contained in:
parent
d5671a5f65
commit
9b15ec1988
@ -770,7 +770,6 @@ function DETECTION_AREAS:CreateDetectionSets()
|
|||||||
if DetectedArea then
|
if DetectedArea then
|
||||||
|
|
||||||
local DetectedSet = DetectedArea.Set
|
local DetectedSet = DetectedArea.Set
|
||||||
DetectedSet:Flush()
|
|
||||||
|
|
||||||
local AreaExists = false -- This flag will determine of the detected area is still existing.
|
local AreaExists = false -- This flag will determine of the detected area is still existing.
|
||||||
|
|
||||||
|
|||||||
@ -339,8 +339,6 @@ function SET_BASE:Remove( ObjectName )
|
|||||||
self.Set[ObjectName] = nil
|
self.Set[ObjectName] = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
self:Flush()
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Retrieves the amount of objects in the @{Set#SET_BASE} and derived classes.
|
--- Retrieves the amount of objects in the @{Set#SET_BASE} and derived classes.
|
||||||
@ -499,7 +497,6 @@ function SET_BASE:_EventOnBirth( Event )
|
|||||||
self:T3( ObjectName, Object )
|
self:T3( ObjectName, Object )
|
||||||
if self:IsIncludeObject( Object ) then
|
if self:IsIncludeObject( Object ) then
|
||||||
self:Add( ObjectName, Object )
|
self:Add( ObjectName, Object )
|
||||||
self:Flush()
|
|
||||||
--self:_EventOnPlayerEnterUnit( Event )
|
--self:_EventOnPlayerEnterUnit( Event )
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -510,7 +507,6 @@ end
|
|||||||
-- @param Event#EVENTDATA Event
|
-- @param Event#EVENTDATA Event
|
||||||
function SET_BASE:_EventOnDeadOrCrash( Event )
|
function SET_BASE:_EventOnDeadOrCrash( Event )
|
||||||
self:E( { Event } )
|
self:E( { Event } )
|
||||||
self:Flush()
|
|
||||||
|
|
||||||
if Event.IniDCSUnit then
|
if Event.IniDCSUnit then
|
||||||
local ObjectName, Object = self:FindInDatabase( Event )
|
local ObjectName, Object = self:FindInDatabase( Event )
|
||||||
@ -1378,8 +1374,6 @@ function SET_UNIT:GetUnitTypesText()
|
|||||||
local MT = {} -- Message Text
|
local MT = {} -- Message Text
|
||||||
local UnitTypes = {}
|
local UnitTypes = {}
|
||||||
|
|
||||||
self:Flush()
|
|
||||||
|
|
||||||
for UnitID, UnitData in pairs( self:GetSet() ) do
|
for UnitID, UnitData in pairs( self:GetSet() ) do
|
||||||
local TextUnit = UnitData -- Unit#UNIT
|
local TextUnit = UnitData -- Unit#UNIT
|
||||||
if TextUnit:IsAlive() then
|
if TextUnit:IsAlive() then
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
env.info( '*** MOOSE STATIC INCLUDE START *** ' )
|
env.info( '*** MOOSE STATIC INCLUDE START *** ' )
|
||||||
env.info( 'Moose Generation Timestamp: 20160719_1811' )
|
env.info( 'Moose Generation Timestamp: 20160719_1818' )
|
||||||
local base = _G
|
local base = _G
|
||||||
|
|
||||||
Include = {}
|
Include = {}
|
||||||
@ -11811,8 +11811,6 @@ function SET_BASE:Remove( ObjectName )
|
|||||||
self.Set[ObjectName] = nil
|
self.Set[ObjectName] = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
self:Flush()
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Retrieves the amount of objects in the @{Set#SET_BASE} and derived classes.
|
--- Retrieves the amount of objects in the @{Set#SET_BASE} and derived classes.
|
||||||
@ -11971,7 +11969,6 @@ function SET_BASE:_EventOnBirth( Event )
|
|||||||
self:T3( ObjectName, Object )
|
self:T3( ObjectName, Object )
|
||||||
if self:IsIncludeObject( Object ) then
|
if self:IsIncludeObject( Object ) then
|
||||||
self:Add( ObjectName, Object )
|
self:Add( ObjectName, Object )
|
||||||
self:Flush()
|
|
||||||
--self:_EventOnPlayerEnterUnit( Event )
|
--self:_EventOnPlayerEnterUnit( Event )
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -11982,7 +11979,6 @@ end
|
|||||||
-- @param Event#EVENTDATA Event
|
-- @param Event#EVENTDATA Event
|
||||||
function SET_BASE:_EventOnDeadOrCrash( Event )
|
function SET_BASE:_EventOnDeadOrCrash( Event )
|
||||||
self:E( { Event } )
|
self:E( { Event } )
|
||||||
self:Flush()
|
|
||||||
|
|
||||||
if Event.IniDCSUnit then
|
if Event.IniDCSUnit then
|
||||||
local ObjectName, Object = self:FindInDatabase( Event )
|
local ObjectName, Object = self:FindInDatabase( Event )
|
||||||
@ -12850,8 +12846,6 @@ function SET_UNIT:GetUnitTypesText()
|
|||||||
local MT = {} -- Message Text
|
local MT = {} -- Message Text
|
||||||
local UnitTypes = {}
|
local UnitTypes = {}
|
||||||
|
|
||||||
self:Flush()
|
|
||||||
|
|
||||||
for UnitID, UnitData in pairs( self:GetSet() ) do
|
for UnitID, UnitData in pairs( self:GetSet() ) do
|
||||||
local TextUnit = UnitData -- Unit#UNIT
|
local TextUnit = UnitData -- Unit#UNIT
|
||||||
if TextUnit:IsAlive() then
|
if TextUnit:IsAlive() then
|
||||||
@ -25857,7 +25851,6 @@ function DETECTION_AREAS:CreateDetectionSets()
|
|||||||
if DetectedArea then
|
if DetectedArea then
|
||||||
|
|
||||||
local DetectedSet = DetectedArea.Set
|
local DetectedSet = DetectedArea.Set
|
||||||
DetectedSet:Flush()
|
|
||||||
|
|
||||||
local AreaExists = false -- This flag will determine of the detected area is still existing.
|
local AreaExists = false -- This flag will determine of the detected area is still existing.
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
env.info( '*** MOOSE STATIC INCLUDE START *** ' )
|
env.info( '*** MOOSE STATIC INCLUDE START *** ' )
|
||||||
env.info( 'Moose Generation Timestamp: 20160719_1811' )
|
env.info( 'Moose Generation Timestamp: 20160719_1818' )
|
||||||
local base = _G
|
local base = _G
|
||||||
|
|
||||||
Include = {}
|
Include = {}
|
||||||
@ -11811,8 +11811,6 @@ function SET_BASE:Remove( ObjectName )
|
|||||||
self.Set[ObjectName] = nil
|
self.Set[ObjectName] = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
self:Flush()
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Retrieves the amount of objects in the @{Set#SET_BASE} and derived classes.
|
--- Retrieves the amount of objects in the @{Set#SET_BASE} and derived classes.
|
||||||
@ -11971,7 +11969,6 @@ function SET_BASE:_EventOnBirth( Event )
|
|||||||
self:T3( ObjectName, Object )
|
self:T3( ObjectName, Object )
|
||||||
if self:IsIncludeObject( Object ) then
|
if self:IsIncludeObject( Object ) then
|
||||||
self:Add( ObjectName, Object )
|
self:Add( ObjectName, Object )
|
||||||
self:Flush()
|
|
||||||
--self:_EventOnPlayerEnterUnit( Event )
|
--self:_EventOnPlayerEnterUnit( Event )
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -11982,7 +11979,6 @@ end
|
|||||||
-- @param Event#EVENTDATA Event
|
-- @param Event#EVENTDATA Event
|
||||||
function SET_BASE:_EventOnDeadOrCrash( Event )
|
function SET_BASE:_EventOnDeadOrCrash( Event )
|
||||||
self:E( { Event } )
|
self:E( { Event } )
|
||||||
self:Flush()
|
|
||||||
|
|
||||||
if Event.IniDCSUnit then
|
if Event.IniDCSUnit then
|
||||||
local ObjectName, Object = self:FindInDatabase( Event )
|
local ObjectName, Object = self:FindInDatabase( Event )
|
||||||
@ -12850,8 +12846,6 @@ function SET_UNIT:GetUnitTypesText()
|
|||||||
local MT = {} -- Message Text
|
local MT = {} -- Message Text
|
||||||
local UnitTypes = {}
|
local UnitTypes = {}
|
||||||
|
|
||||||
self:Flush()
|
|
||||||
|
|
||||||
for UnitID, UnitData in pairs( self:GetSet() ) do
|
for UnitID, UnitData in pairs( self:GetSet() ) do
|
||||||
local TextUnit = UnitData -- Unit#UNIT
|
local TextUnit = UnitData -- Unit#UNIT
|
||||||
if TextUnit:IsAlive() then
|
if TextUnit:IsAlive() then
|
||||||
@ -25857,7 +25851,6 @@ function DETECTION_AREAS:CreateDetectionSets()
|
|||||||
if DetectedArea then
|
if DetectedArea then
|
||||||
|
|
||||||
local DetectedSet = DetectedArea.Set
|
local DetectedSet = DetectedArea.Set
|
||||||
DetectedSet:Flush()
|
|
||||||
|
|
||||||
local AreaExists = false -- This flag will determine of the detected area is still existing.
|
local AreaExists = false -- This flag will determine of the detected area is still existing.
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user