-------------------------------------------------------------------------------- -- Main File -- -------------------------------------------------------------------------------- require( "common" ) --[[ require( "Data/Name" ) -- ÆÄÀÏ°æ·Î, ÆÄÀÏÀ̸§, ¿ªÂüÁ¶¸¦ À§ÇÑ ³×ÀÓ Å×À̺í require( "Data/Process" ) -- °¢Á¾ µô·¹ÀÌŸÀÓ°ú ¸µÅ© Á¤º¸, °øÁö, Äù½ºÆ® µîÀÇ ÁøÇà °ü·Ã µ¥ÀÌÅÍ require( "Data/Servant" ) -- ¼Òȯ¼ö Á¤º¸ require( "Data/Regen" ) -- ¸®Á¨ µ¥ÀÌÅÍ(±×·ì, ¸÷, NPC, ¹®, ¾ÆÀÌÅÛ µîÀÇ ¸®Á¨ Á¾·ù, À§Ä¡ ¹× ¼Ó¼º °ü·Ã) require( "Functions/SubFunc" ) -- ÀüüÀûÀÎ ÁøÇà¿¡ ÇÊ¿äÇÑ °¢Á¾ Sub Functions require( "Functions/Routine" ) -- ¸÷ µî¿¡ ºÙ´Â AI °ü·Ã ·çƾµé require( "Functions/Progress" ) -- °¢ ´Ü°è°¡ Á¤ÀÇµÈ ÁøÇà ÇÔ¼öµé --]]-- require( "KQ/KDWater/Data/Name" ) -- ÆÄÀÏ°æ·Î, ÆÄÀÏÀ̸§, ¿ªÂüÁ¶¸¦ À§ÇÑ ³×ÀÓ Å×À̺í require( "KQ/KDWater/Data/Process" ) -- °¢Á¾ µô·¹ÀÌŸÀÓ°ú ¸µÅ© Á¤º¸, °øÁö, Äù½ºÆ® µîÀÇ ÁøÇà °ü·Ã µ¥ÀÌÅÍ require( "KQ/KDWater/Data/Servant" ) -- ¼Òȯ¼ö Á¤º¸ require( "KQ/KDWater/Data/Regen" ) -- ¸®Á¨ µ¥ÀÌÅÍ(±×·ì, ¸÷, NPC, ¹®, ¾ÆÀÌÅÛ µîÀÇ ¸®Á¨ Á¾·ù, À§Ä¡ ¹× ¼Ó¼º °ü·Ã) require( "KQ/KDWater/Functions/SubFunc" ) -- ÀüüÀûÀÎ ÁøÇà¿¡ ÇÊ¿äÇÑ °¢Á¾ Sub Functions require( "KQ/KDWater/Functions/Routine" ) -- ¸÷ µî¿¡ ºÙ´Â AI °ü·Ã ·çƾµé require( "KQ/KDWater/Functions/Progress" ) -- °¢ ´Ü°è°¡ Á¤ÀÇµÈ ÁøÇà ÇÔ¼öµé --]]-- function Main( Field ) cExecCheck "Main" local Var = InstanceField[ Field ] if Var == nil then InstanceField[ Field ] = {} -- Å·Äù Å×ÀÌºí »ý¼º Var = InstanceField[ Field ] Var["MapIndex"] = Field -- ¸Ê À妽º( Çʵå À妽º ) Var["InitialSec"] = cCurrentSecond() -- ÃÖÃÊ ½ÇÇà ½Ã°£ Var["CurSec"] = Var["InitialSec"] -- ÇöÀç ½Ã°£ Var["StepFunc"] = KQInit -- ½ºÅÇ ÇÔ¼ö Var["Round"] = 1 -- ÇöÀç ¶ó¿îµå Var["RoundEndTime"] = 0 -- ¶ó¿îµå ³¡³ª´Â ½Ã°£ Var["RoundTimeOver"]= false -- ¶ó¿îµå Á¾·á°¡ ŸÀÓ¿À¹ö ÀÏ°æ¿ì -- Ç÷¹À̾î Á¤º¸ ÃʱâÈ­ 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 ]["BalloonHandle"] = nil -- Var["Player"][ i ]["BalloonAbstateTime"] = 0 -- Var["Player"][ i ]["PrisonLinkToWaitTime"] = 0 -- Var["Player"][ i ]["IsOut"] = false -- µµ¾î ÇÚµé -- Var["Door"] = nil -- ÆÀ Á¤º¸(Á¡¼ö) ÃʱâÈ­ Var["Team"] = {} Var["Team"][ KQ_TEAM["RED"] ] = { Score = 0, Win = 0, Lose = 0, Draw = 0, } Var["Team"][ KQ_TEAM["BLUE"] ] = { Score = 0, Win = 0, Lose = 0, Draw = 0, } -- InvisibleDoor Á¤º¸ ÃʱâÈ­ Var["InvisibleDoor"] = nil -- ¸Ê ·Î±×ÀÎ ÇÔ¼ö ¼³Á¤ cSetFieldScript ( Var["MapIndex"], MainLuaScriptPath ) cFieldScriptFunc( Var["MapIndex"], "MapLogin", "PlayerMapLogin" ) cFieldScriptFunc( Var["MapIndex"], "ServantSummon", "ServantSummon" ) end -- 0.1ÃÊ ¸¶´Ù ½ÇÇà if Var["CurSec"] + 0.1 > cCurrentSecond() then return else Var["CurSec"] = cCurrentSecond() end -- ½ºÅÜÇÔ¼ö ½ÇÇà ( Functions/Progress.lua ) Var["StepFunc"]( Var ) end