-------------------------------------------------------------------------------- -- Main File -- -------------------------------------------------------------------------------- require( "common" ) --[[ require( "Data/Name" ) -- ÆÄÀÏ°æ·Î, ÆÄÀÏÀ̸§, ¿ªÂüÁ¶¸¦ À§ÇÑ ³×ÀÓ Å×À̺í require( "Data/Process" ) -- °¢Á¾ µô·¹ÀÌŸÀÓ°ú ¸µÅ© Á¤º¸, °øÁö, Äù½ºÆ® µîÀÇ ÁøÇà °ü·Ã µ¥ÀÌÅÍ require( "Data/NPC" ) -- NPC Á¤º¸ require( "Data/Regen" ) -- ¸®Á¨ µ¥ÀÌÅÍ(±×·ì, ¸÷, NPC, ¹®, ¾ÆÀÌÅÛ µîÀÇ ¸®Á¨ Á¾·ù, À§Ä¡ ¹× ¼Ó¼º °ü·Ã) require( "Functions/SubFunc" ) -- ÀüüÀûÀÎ ÁøÇà¿¡ ÇÊ¿äÇÑ °¢Á¾ Sub Functions require( "Functions/Routine" ) -- ¸÷ µî¿¡ ºÙ´Â AI °ü·Ã ·çƾµé require( "Functions/Progress" ) -- °¢ ´Ü°è°¡ Á¤ÀÇµÈ ÁøÇà ÇÔ¼öµé --]]-- require( "KQ/KDSoccer/Data/Name" ) -- ÆÄÀÏ°æ·Î, ÆÄÀÏÀ̸§, ¿ªÂüÁ¶¸¦ À§ÇÑ ³×ÀÓ Å×À̺í require( "KQ/KDSoccer/Data/Process" ) -- °¢Á¾ µô·¹ÀÌŸÀÓ°ú ¸µÅ© Á¤º¸, °øÁö, Äù½ºÆ® µîÀÇ ÁøÇà °ü·Ã µ¥ÀÌÅÍ require( "KQ/KDSoccer/Data/NPC" ) -- NPC Á¤º¸ require( "KQ/KDSoccer/Data/Regen" ) -- ¸®Á¨ µ¥ÀÌÅÍ(±×·ì, ¸÷, NPC, ¹®, ¾ÆÀÌÅÛ µîÀÇ ¸®Á¨ Á¾·ù, À§Ä¡ ¹× ¼Ó¼º °ü·Ã) require( "KQ/KDSoccer/Functions/SubFunc" ) -- ÀüüÀûÀÎ ÁøÇà¿¡ ÇÊ¿äÇÑ °¢Á¾ Sub Functions require( "KQ/KDSoccer/Functions/Routine" ) -- ¸÷ µî¿¡ ºÙ´Â AI °ü·Ã ·çƾµé require( "KQ/KDSoccer/Functions/Progress" ) -- °¢ ´Ü°è°¡ Á¤ÀÇµÈ ÁøÇà ÇÔ¼öµé --]]-- function Main( Field ) cExecCheck "Main" local Var = InstanceField[ Field ] if Var == nil then InstanceField[ Field ] = {} -- Å·Äù Å×ÀÌºí »ý¼º Var = InstanceField[ Field ] Var["MapIndex"] = Field -- ¸Ê À妽º( Çʵå À妽º ) Var["KQLimitTime"] = 0 -- Å·Äù ÁøÇà ½Ã°£ Var["InitialSec"] = cCurrentSecond() -- ÃÖÃÊ ½ÇÇà ½Ã°£ Var["CurSec"] = Var["InitialSec"] -- ÇöÀç ½Ã°£ Var["StepFunc"] = InitSoccer -- ½ºÅÇ ÇÔ¼ö- -- Ç÷¹À̾î Á¤º¸ ÃʱâÈ­ Var["Player"] = {} -- Var["Player"][ i ]["CharNo"] = nil -- Var["Player"][ i ]["CharID"] = nil -- Var["Player"][ i ]["Handle"] = nil -- Var["Player"][ i ]["TeamType"] = KQ_TEAM["MAX"] -- Var["Player"][ i ]["Goal"] = nil -- Var["Player"][ i ]["IsInMap"] = true -- Var["Player"][ i ]["SpeedUpBuff"] = {} -- °É¸±¶§ ¸¸µé¾îÁØ´Ù. -- Var["Player"][ i ]["InvincibleBuff"] = {} -- °É¸±¶§ ¸¸µé¾îÁØ´Ù. -- ÆÀ Á¤º¸(Á¡¼ö) ÃʱâÈ­ Var["Team"] = {} Var["Team"][ KQ_TEAM["RED"] ] = 0 Var["Team"][ KQ_TEAM["BLUE"] ] = 0 -- Kicker Á¤º¸ ÃʱâÈ­ Var["Kicker"] = {} -- Var["Kicker"]["IsPlayer"] = nil -- Var["Kicker"]["TeamType"] = KQ_TEAM["MAX"] -- Var["Kicker"]["CharNo"] = nil -- Var["Kicker"]["NPCHandle"] = nil -- InvisibleDoor Á¤º¸ ÃʱâÈ­ Var["InvisibleDoor"] = nil -- SoccerBall Á¤º¸ ÃʱâÈ­ Var["SoccerBall"] = nil -- Referee Á¤º¸ ÃʱâÈ­ Var["Referee"] = {} -- Var["Referee"]["Handle"] = nil -- Var["Referee"]["FollowCheckTime"] = 0 -- Var["Referee"]["RoutineCheckTime"] = 0 -- Keeper Á¤º¸ ÃʱâÈ­ Var["Keeper"] = {} -- Var["Keeper"][ i ]["Handle"] = nil -- Var["Keeper"][ i ]["TeamType"] = KQ_TEAM["MAX"] -- Var["Keeper"][ i ]["RoutineCheckTime"] = 0 -- Var["Keeper"][ i ]["MoveStep"] = 1 -- Var["Keeper"][ i ]["MoveBack"] = false -- BuffBox Á¤º¸ ÃʱâÈ­ Var["BuffBox"] = {} -- Var["BuffBox"][ i ] = 0 ´ÙÀ½ ¸®Á¨ ½Ã°£ -- ¸Ê ·Î±×ÀÎ ÇÔ¼ö ¼³Á¤ cSetFieldScript ( Var["MapIndex"], MainLuaScriptPath ) cFieldScriptFunc( Var["MapIndex"], "MapLogin", "PlayerMapLogin" ) end -- 0.1ÃÊ ¸¶´Ù ½ÇÇà if Var["CurSec"] + 0.1 > cCurrentSecond() then return else Var["CurSec"] = cCurrentSecond() end -- ½ºÅÜÇÔ¼ö ½ÇÇà ( Functions/Progress.lua ) Var["StepFunc"] ( Var ) end