-------------------------------------------------------------------------------- -- Seiren Castle Main File -- -------------------------------------------------------------------------------- require( "common" ) --[[ require( "Data/Name" ) -- ÆÄÀÏ°æ·Î, ÆÄÀÏÀ̸§, ¿ªÂüÁ¶, ´Ü°è ÁøÇàÀ» À§ÇÑ ³×ÀÓ Å×À̺í require( "Data/Chat" ) -- ¸ðµç äÆà °ü·Ã require( "Data/Process" ) -- °¢Á¾ µô·¹ÀÌŸÀÓ°ú ¸µÅ© Á¤º¸, Äù½ºÆ® µîÀÇ ÁøÇà °ü·Ã µ¥ÀÌÅÍ require( "Data/Regen" ) -- ¸®Á¨ µ¥ÀÌÅÍ(±×·ì, ¸÷, NPC, ¹®, ¾ÆÀÌÅÛ µîÀÇ ¸®Á¨ Á¾·ù, À§Ä¡ ¹× ¼Ó¼º °ü·Ã) require( "Data/Stuff" ) -- Stuff°ü·Ã ó¸® µ¥ÀÌÅÍ( NPC ¾×¼Ç Á¤º¸ ¹× ¾×¼ÇÀ» ÀÏÀ¸Å°±â À§ÇÑ ¿ä¼Ò Á¤º¸ ) require( "Data/Boss" ) -- Boss°ü·Ã ó¸® µ¥ÀÌÅÍ( º¸½ºÀü Phase Data(¼Òȯ ¸÷ Æ÷ÇÔ), »óÅÂÀÌ»ó, Ä¡ÇÁ¸÷ °ü·Ã °æ°í¹® Á¤º¸ ) require( "Functions/SubFunc" ) -- ÀüüÀûÀÎ ÁøÇà¿¡ ÇÊ¿äÇÑ °¢Á¾ Sub Functions require( "Functions/Routine" ) -- ¸÷ µî¿¡ ºÙ´Â AI °ü·Ã ·çƾµé require( "Functions/Progress" ) -- °¢ ´Ü°è°¡ Á¤ÀÇµÈ ÁøÇà ÇÔ¼öµé --]] require( "ID/GraveYardH/Data/Name" ) -- ÆÄÀÏ°æ·Î, ÆÄÀÏÀ̸§, ¿ªÂüÁ¶, ´Ü°è ÁøÇàÀ» À§ÇÑ ³×ÀÓ Å×À̺í require( "ID/GraveYardH/Data/Chat" ) -- ¸ðµç äÆà °ü·Ã require( "ID/GraveYardH/Data/Process" ) -- °¢Á¾ µô·¹ÀÌŸÀÓ°ú ¸µÅ© Á¤º¸, Äù½ºÆ® µîÀÇ ÁøÇà °ü·Ã µ¥ÀÌÅÍ require( "ID/GraveYardH/Data/Regen" ) -- ¸®Á¨ µ¥ÀÌÅÍ(±×·ì, ¸÷, NPC, ¹®, ¾ÆÀÌÅÛ µîÀÇ ¸®Á¨ Á¾·ù, À§Ä¡ ¹× ¼Ó¼º °ü·Ã) require( "ID/GraveYardH/Data/Stuff" ) -- Stuff°ü·Ã ó¸® µ¥ÀÌÅÍ( NPC ¾×¼Ç Á¤º¸ ¹× ¾×¼ÇÀ» ÀÏÀ¸Å°±â À§ÇÑ ¿ä¼Ò Á¤º¸ ) require( "ID/GraveYardH/Data/Boss" ) -- Boss°ü·Ã ó¸® µ¥ÀÌÅÍ( º¸½ºÀü Phase Data(¼Òȯ ¸÷ Æ÷ÇÔ), »óÅÂÀÌ»ó, Ä¡ÇÁ¸÷ °ü·Ã °æ°í¹® Á¤º¸ ) require( "ID/GraveYardH/Functions/SubFunc" ) -- ÀüüÀûÀÎ ÁøÇà¿¡ ÇÊ¿äÇÑ °¢Á¾ Sub Functions require( "ID/GraveYardH/Functions/Routine" ) -- ¸÷ µî¿¡ ºÙ´Â AI °ü·Ã ·çƾµé require( "ID/GraveYardH/Functions/Progress" ) -- °¢ ´Ü°è°¡ Á¤ÀÇµÈ ÁøÇà ÇÔ¼öµé --]] function Main( Field ) cExecCheck "Main" local Var = InstanceField[ Field ] if Var == nil then InstanceField[ Field ] = {} Var = InstanceField[ Field ] Var["MapIndex"] = Field Var["Enemy"] = {} -- Àû Á¤º¸ ´ã´Â ¸Þ¸ð¸® Var["Door"] = {} -- ¹® Á¤º¸ ´ã´Â ¸Þ¸ð¸® Var["RoutineTime"] = {} -- ·çƾ ŸÀÓÀ» Çڵ鸶´Ù º¸°üÇÏ´Â ¸Þ¸ð¸® Var["GateProcess"] = {} -- °ÔÀÌÆ® ¿ÀǺ°·Î ó¸®ÇÏ´Â ¸Þ¸ð¸® cSetFieldScript ( Var["MapIndex"], MainLuaScriptPath ) cFieldScriptFunc( Var["MapIndex"], "MapLogin", "PlayerMapLogin" ) -- ÃÖÃÊ ½Ã°£ ÀÔ·Â Var["InitialSec"] = cCurrentSecond() Var["CurSec"] = cCurrentSecond() DebugLog("¸ÞÀÎÇÔ¼ö ½ÃÀÛ") -- ù ½ºÅÜÀ¸·Î Var["StepFunc"] = InitDungeon end -- 0.5Ãʸ¶´Ù ½ÇÇà if Var["CurSec"] + 0.5 > cCurrentSecond() then return else Var["CurSec"] = cCurrentSecond() end -- ½ºÅÜÇÔ¼ö ½ÇÇà ( Functions/Progress.lua ) Var["StepFunc"]( Var ) end