LoadSection() public method

public LoadSection ( byte section ) : void
section byte
return void
コード例 #1
0
        private bool FnEnterSection(uint sectionNo, uint b, uint c)
        {
            if (SkyEngine.IsDemo && (sectionNo > 2))
            {
                Control.ShowGameQuitMsg();
            }

            _scriptVariables[CUR_SECTION]    = sectionNo;
            SystemVars.Instance.CurrentMusic = 0;

            if (sectionNo == 5) //linc section - has different mouse icons
            {
                _skyMouse.ReplaceMouseCursors(60302);
            }

            if ((sectionNo != _currentSection) || SystemVars.Instance.SystemFlags.HasFlag(SystemFlags.GameRestored))
            {
                _currentSection = sectionNo;

                sectionNo++;
                _skyMusic.LoadSection((byte)sectionNo);
                _skySound.LoadSection((byte)sectionNo);
                _skyGrid.LoadGrids();
                SystemVars.Instance.SystemFlags &= ~SystemFlags.GameRestored;
            }

            return(true);
        }