You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
1.6 KiB
73 lines
1.6 KiB
1 year ago
|
--------------------------------------------------------------------------------
|
||
|
-- Sub Functions --
|
||
|
--------------------------------------------------------------------------------
|
||
|
function DummyFunc( Var )
|
||
|
cExecCheck "DummyFunc"
|
||
|
end
|
||
|
|
||
|
--------------------------------------------------------------------------------
|
||
|
-- EnemyBufferClear
|
||
|
--------------------------------------------------------------------------------
|
||
|
function EnemyBufferClear( Var, Handle )
|
||
|
cExecCheck "EnemyBufferClear"
|
||
|
|
||
|
if Var == nil
|
||
|
then
|
||
|
ErrorLog( "EnemyBufferClear::Var == nil" )
|
||
|
return
|
||
|
end
|
||
|
|
||
|
if Var["Enemy"] == nil
|
||
|
then
|
||
|
ErrorLog( "EnemyBufferClear::Var[\"Enemy\"] == nil" )
|
||
|
return
|
||
|
end
|
||
|
|
||
|
if Var["Enemy"][ Handle ] == nil
|
||
|
then
|
||
|
ErrorLog( "EnemyBufferClear::Var[\"Enemy\"][Handle] == nil" )
|
||
|
return
|
||
|
end
|
||
|
|
||
|
|
||
|
local EnemyIndex = Var["Enemy"][ Handle ]["Index"]
|
||
|
|
||
|
if EnemyIndex ~= nil
|
||
|
then
|
||
|
Var["Enemy"][ EnemyIndex ] = nil
|
||
|
end
|
||
|
|
||
|
Var["Enemy"][ Handle ] = nil
|
||
|
end
|
||
|
|
||
|
--------------------------------------------------------------------------------
|
||
|
-- DebugLog
|
||
|
--------------------------------------------------------------------------------
|
||
|
function DebugLog( String )
|
||
|
|
||
|
if String == nil
|
||
|
then
|
||
|
cAssertLog( "DebugLog::String == nil" )
|
||
|
return
|
||
|
end
|
||
|
|
||
|
--cAssertLog( "Debug - "..String )
|
||
|
|
||
|
end
|
||
|
|
||
|
--------------------------------------------------------------------------------
|
||
|
-- ErrorLog
|
||
|
--------------------------------------------------------------------------------
|
||
|
function ErrorLog( String )
|
||
|
|
||
|
if String == nil
|
||
|
then
|
||
|
cAssertLog( "ErrorLog::String == nil" )
|
||
|
return
|
||
|
end
|
||
|
|
||
|
cAssertLog( "Error - "..String )
|
||
|
|
||
|
end
|
||
|
|