mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
Updated Set
This commit is contained in:
parent
5c5bedd794
commit
0ebff60e8d
@ -538,7 +538,7 @@ function SET_BASE:_EventOnBirth( Event )
|
|||||||
if Event.IniDCSUnit then
|
if Event.IniDCSUnit then
|
||||||
local ObjectName, Object = self:AddInDatabase( Event )
|
local ObjectName, Object = self:AddInDatabase( Event )
|
||||||
self:T3( ObjectName, Object )
|
self:T3( ObjectName, Object )
|
||||||
if self:IsIncludeObject( Object ) then
|
if Object and self:IsIncludeObject( Object ) then
|
||||||
self:Add( ObjectName, Object )
|
self:Add( ObjectName, Object )
|
||||||
--self:_EventOnPlayerEnterUnit( Event )
|
--self:_EventOnPlayerEnterUnit( Event )
|
||||||
end
|
end
|
||||||
@ -908,9 +908,11 @@ end
|
|||||||
function SET_GROUP:AddInDatabase( Event )
|
function SET_GROUP:AddInDatabase( Event )
|
||||||
self:F3( { Event } )
|
self:F3( { Event } )
|
||||||
|
|
||||||
if not self.Database[Event.IniDCSGroupName] then
|
if Event.IniObjectCategory == 1 then
|
||||||
self.Database[Event.IniDCSGroupName] = GROUP:Register( Event.IniDCSGroupName )
|
if not self.Database[Event.IniDCSGroupName] then
|
||||||
self:T3( self.Database[Event.IniDCSGroupName] )
|
self.Database[Event.IniDCSGroupName] = GROUP:Register( Event.IniDCSGroupName )
|
||||||
|
self:T3( self.Database[Event.IniDCSGroupName] )
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return Event.IniDCSGroupName, self.Database[Event.IniDCSGroupName]
|
return Event.IniDCSGroupName, self.Database[Event.IniDCSGroupName]
|
||||||
@ -1333,9 +1335,11 @@ end
|
|||||||
function SET_UNIT:AddInDatabase( Event )
|
function SET_UNIT:AddInDatabase( Event )
|
||||||
self:F3( { Event } )
|
self:F3( { Event } )
|
||||||
|
|
||||||
if not self.Database[Event.IniDCSUnitName] then
|
if Event.IniObjectCategory == 1 then
|
||||||
self.Database[Event.IniDCSUnitName] = UNIT:Register( Event.IniDCSUnitName )
|
if not self.Database[Event.IniDCSUnitName] then
|
||||||
self:T3( self.Database[Event.IniDCSUnitName] )
|
self.Database[Event.IniDCSUnitName] = UNIT:Register( Event.IniDCSUnitName )
|
||||||
|
self:T3( self.Database[Event.IniDCSUnitName] )
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return Event.IniDCSUnitName, self.Database[Event.IniDCSUnitName]
|
return Event.IniDCSUnitName, self.Database[Event.IniDCSUnitName]
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
env.info( '*** MOOSE STATIC INCLUDE START *** ' )
|
env.info( '*** MOOSE STATIC INCLUDE START *** ' )
|
||||||
env.info( 'Moose Generation Timestamp: 20170305_0931' )
|
env.info( 'Moose Generation Timestamp: 20170305_0950' )
|
||||||
local base = _G
|
local base = _G
|
||||||
|
|
||||||
Include = {}
|
Include = {}
|
||||||
@ -8535,7 +8535,7 @@ function SET_BASE:_EventOnBirth( Event )
|
|||||||
if Event.IniDCSUnit then
|
if Event.IniDCSUnit then
|
||||||
local ObjectName, Object = self:AddInDatabase( Event )
|
local ObjectName, Object = self:AddInDatabase( Event )
|
||||||
self:T3( ObjectName, Object )
|
self:T3( ObjectName, Object )
|
||||||
if self:IsIncludeObject( Object ) then
|
if Object and self:IsIncludeObject( Object ) then
|
||||||
self:Add( ObjectName, Object )
|
self:Add( ObjectName, Object )
|
||||||
--self:_EventOnPlayerEnterUnit( Event )
|
--self:_EventOnPlayerEnterUnit( Event )
|
||||||
end
|
end
|
||||||
@ -8905,9 +8905,11 @@ end
|
|||||||
function SET_GROUP:AddInDatabase( Event )
|
function SET_GROUP:AddInDatabase( Event )
|
||||||
self:F3( { Event } )
|
self:F3( { Event } )
|
||||||
|
|
||||||
if not self.Database[Event.IniDCSGroupName] then
|
if Event.IniObjectCategory == 1 then
|
||||||
self.Database[Event.IniDCSGroupName] = GROUP:Register( Event.IniDCSGroupName )
|
if not self.Database[Event.IniDCSGroupName] then
|
||||||
self:T3( self.Database[Event.IniDCSGroupName] )
|
self.Database[Event.IniDCSGroupName] = GROUP:Register( Event.IniDCSGroupName )
|
||||||
|
self:T3( self.Database[Event.IniDCSGroupName] )
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return Event.IniDCSGroupName, self.Database[Event.IniDCSGroupName]
|
return Event.IniDCSGroupName, self.Database[Event.IniDCSGroupName]
|
||||||
@ -9330,9 +9332,11 @@ end
|
|||||||
function SET_UNIT:AddInDatabase( Event )
|
function SET_UNIT:AddInDatabase( Event )
|
||||||
self:F3( { Event } )
|
self:F3( { Event } )
|
||||||
|
|
||||||
if not self.Database[Event.IniDCSUnitName] then
|
if Event.IniObjectCategory == 1 then
|
||||||
self.Database[Event.IniDCSUnitName] = UNIT:Register( Event.IniDCSUnitName )
|
if not self.Database[Event.IniDCSUnitName] then
|
||||||
self:T3( self.Database[Event.IniDCSUnitName] )
|
self.Database[Event.IniDCSUnitName] = UNIT:Register( Event.IniDCSUnitName )
|
||||||
|
self:T3( self.Database[Event.IniDCSUnitName] )
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return Event.IniDCSUnitName, self.Database[Event.IniDCSUnitName]
|
return Event.IniDCSUnitName, self.Database[Event.IniDCSUnitName]
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
env.info( '*** MOOSE STATIC INCLUDE START *** ' )
|
env.info( '*** MOOSE STATIC INCLUDE START *** ' )
|
||||||
env.info( 'Moose Generation Timestamp: 20170305_0931' )
|
env.info( 'Moose Generation Timestamp: 20170305_0950' )
|
||||||
local base = _G
|
local base = _G
|
||||||
|
|
||||||
Include = {}
|
Include = {}
|
||||||
@ -8535,7 +8535,7 @@ function SET_BASE:_EventOnBirth( Event )
|
|||||||
if Event.IniDCSUnit then
|
if Event.IniDCSUnit then
|
||||||
local ObjectName, Object = self:AddInDatabase( Event )
|
local ObjectName, Object = self:AddInDatabase( Event )
|
||||||
self:T3( ObjectName, Object )
|
self:T3( ObjectName, Object )
|
||||||
if self:IsIncludeObject( Object ) then
|
if Object and self:IsIncludeObject( Object ) then
|
||||||
self:Add( ObjectName, Object )
|
self:Add( ObjectName, Object )
|
||||||
--self:_EventOnPlayerEnterUnit( Event )
|
--self:_EventOnPlayerEnterUnit( Event )
|
||||||
end
|
end
|
||||||
@ -8905,9 +8905,11 @@ end
|
|||||||
function SET_GROUP:AddInDatabase( Event )
|
function SET_GROUP:AddInDatabase( Event )
|
||||||
self:F3( { Event } )
|
self:F3( { Event } )
|
||||||
|
|
||||||
if not self.Database[Event.IniDCSGroupName] then
|
if Event.IniObjectCategory == 1 then
|
||||||
self.Database[Event.IniDCSGroupName] = GROUP:Register( Event.IniDCSGroupName )
|
if not self.Database[Event.IniDCSGroupName] then
|
||||||
self:T3( self.Database[Event.IniDCSGroupName] )
|
self.Database[Event.IniDCSGroupName] = GROUP:Register( Event.IniDCSGroupName )
|
||||||
|
self:T3( self.Database[Event.IniDCSGroupName] )
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return Event.IniDCSGroupName, self.Database[Event.IniDCSGroupName]
|
return Event.IniDCSGroupName, self.Database[Event.IniDCSGroupName]
|
||||||
@ -9330,9 +9332,11 @@ end
|
|||||||
function SET_UNIT:AddInDatabase( Event )
|
function SET_UNIT:AddInDatabase( Event )
|
||||||
self:F3( { Event } )
|
self:F3( { Event } )
|
||||||
|
|
||||||
if not self.Database[Event.IniDCSUnitName] then
|
if Event.IniObjectCategory == 1 then
|
||||||
self.Database[Event.IniDCSUnitName] = UNIT:Register( Event.IniDCSUnitName )
|
if not self.Database[Event.IniDCSUnitName] then
|
||||||
self:T3( self.Database[Event.IniDCSUnitName] )
|
self.Database[Event.IniDCSUnitName] = UNIT:Register( Event.IniDCSUnitName )
|
||||||
|
self:T3( self.Database[Event.IniDCSUnitName] )
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return Event.IniDCSUnitName, self.Database[Event.IniDCSUnitName]
|
return Event.IniDCSUnitName, self.Database[Event.IniDCSUnitName]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user