Axiom.Components.Paging.PageWorld.CreateSection C# (CSharp) Method

CreateSection() private method

Create a new section of the world.
private CreateSection ( Axiom.Components.Paging.PageStrategy strategy, SceneManager sceneMgr, string sectionName ) : PagedWorldSection
strategy Axiom.Components.Paging.PageStrategy
sceneMgr Axiom.Core.SceneManager
sectionName string
return PagedWorldSection
        PagedWorldSection CreateSection(PageStrategy strategy, SceneManager sceneMgr,
            string sectionName)
        {
            string theName = sectionName;
            if (theName == string.Empty)
            {
                do
                {
                    theName = mSectionNameGenerator.GetNextUniqueName();
                }
                while (!mSections.ContainsKey(theName));
            }
            else if (mSections.ContainsKey(theName))
            {
                throw new Exception("World section named '" + theName + "' allready exists!" + 
                "[PageWorld.CreateSection]");
            }

            PagedWorldSection ret = new PagedWorldSection(theName, this, strategy, sceneMgr);
            mSections.Add(theName, ret);
            return ret;
        }
        /// <summary>

Same methods

PageWorld::CreateSection ( Axiom.Components.Paging.PageStrategy strategy, SceneManager sceneMgr ) : PagedWorldSection
PageWorld::CreateSection ( string strategyName, SceneManager sceneMgr ) : PagedWorldSection
PageWorld::CreateSection ( string strategyName, SceneManager sceneMgr, string sectionName ) : PagedWorldSection