Exemple #1
0
        public ADTFile(WDTFile wdt, string fileName, uint indexX, uint indexY, bool initial = false)
        {
            bool unkFlag = (wdt.Flags & 0x84) != 0;

            if (unkFlag)
            {
                throw new Exception();
            }

            IndexX     = indexX;
            IndexY     = indexY;
            FileName   = fileName;
            mLoadEvent = new System.Threading.ManualResetEvent(false);
            if (initial == false)
            {
                Game.GameManager.ThreadManager.LaunchThread(
                    () =>
                {
                    try
                    {
                        AsyncLoadProc();
                    }
                    catch (Exception)
                    {
                    }
                }
                    );
            }
            else
            {
                AsyncLoadProc();
            }

            ADTManager.AddADT(this);
        }
Exemple #2
0
        public ADTFile(string fileName, uint indexX, uint indexY, bool initial = false)
        {
            IndexX     = indexX;
            IndexY     = indexY;
            FileName   = fileName;
            mLoadEvent = new System.Threading.ManualResetEvent(false);
            if (initial == false)
            {
                Game.GameManager.ThreadManager.LaunchThread(AsyncLoadProc);
            }
            else
            {
                AsyncLoadProc();
            }

            ADTManager.AddADT(this);
        }