public PagedWorld GetWorld(string name) { PagedWorld ret = null; this.mWorlds.TryGetValue(name, out ret); return(ret); }
public PagedWorld LoadWorld(Stream stream, string name) #endif { PagedWorld ret = CreateWorld(name); ret.Load(stream); return(ret); }
public PagedWorldSection(string name, PagedWorld parent, SceneManager sm) : base() { this.mName = name; this.mParent = parent; Strategy = null; this.mPageProvider = null; this.mSceneMgr = sm; }
public PagedWorldSection CreateWorldSection(string typeName, string name, PagedWorld parent, SceneManager sm) { PagedWorldSectionFactory fact = GetWorldSectionFactory(typeName); if (fact == null) { throw new AxiomException("{0} is not the name of a valid PagedWorldSectionFactory PageManager.CreateWorldSection", typeName); } return(fact.CreateInstance(name, parent, sm)); }
public PagedWorld LoadWorld(string fileName, string name) #endif { PagedWorld ret = CreateWorld(name); StreamSerializer ser = ReadWorldStream(fileName); ret.Load(ser); ser.SafeDispose(); ser = null; return(ret); }
public PagedWorld CreateWorld(string name) #endif { string theName = name; if (theName == string.Empty) { do { theName = this.mWorldNameGenerator.GetNextUniqueName(); }while (this.mWorlds.ContainsKey(theName)); } else if (this.mWorlds.ContainsKey(theName)) { throw new AxiomException("World named '{0}' allready exists! PageManager.CreateWorld", theName); } var ret = new PagedWorld(theName, this); this.mWorlds.Add(theName, ret); return(ret); }
public PagedWorld CreateWorld( string name ) #endif { string theName = name; if ( theName == string.Empty ) { do { theName = this.mWorldNameGenerator.GetNextUniqueName(); } while ( this.mWorlds.ContainsKey( theName ) ); } else if ( this.mWorlds.ContainsKey( theName ) ) { throw new AxiomException( "World named '{0}' allready exists! PageManager.CreateWorld", theName ); } var ret = new PagedWorld( theName, this ); this.mWorlds.Add( theName, ret ); return ret; }
public void SaveWorld( PagedWorld world, string fileName ) { world.Save( fileName ); }
public void SaveWorld(PagedWorld world, Stream stream) { world.Save(stream); }
public void SaveWorld(PagedWorld world, string fileName) { world.Save(fileName); }
public void SaveWorld( PagedWorld world, Stream stream ) { world.Save( stream ); }
public void DestroyWorld(PagedWorld world) { DestroyWorld(world.Name); }
public abstract PagedWorldSection CreateInstance(string name, PagedWorld parent, SceneManager sm);
public TerrainPagedWorldSection( string name, PagedWorld parent, SceneManager sm ) : base( name, parent, sm ) { // we always use a grid strategy Strategy = parent.Manager.GetStrategy( "Grid2D" ); }
public void DestroyWorld( PagedWorld world ) { DestroyWorld( world.Name ); }
public override PagedWorldSection CreateInstance( string name, PagedWorld parent, SceneManager sm ) { return new TerrainPagedWorldSection( name, parent, sm ); }
public TerrainPagedWorldSection CreateWorldSection( PagedWorld world, TerrainGroup terrainGroup, Real loadRadius, Real holdRadius, #if NET_40 int minX = -10, int minY = -10, int maxX = 10, int maxY = 10, string sectionName = "" )
public abstract PagedWorldSection CreateInstance( string name, PagedWorld parent, SceneManager sm );
public PagedWorldSection( string name, PagedWorld parent, SceneManager sm ) : base() { this.mName = name; this.mParent = parent; Strategy = null; this.mPageProvider = null; this.mSceneMgr = sm; }
public PagedWorldSection CreateWorldSection( string typeName, string name, PagedWorld parent, SceneManager sm ) { PagedWorldSectionFactory fact = GetWorldSectionFactory( typeName ); if ( fact == null ) { throw new AxiomException( "{0} is not the name of a valid PagedWorldSectionFactory PageManager.CreateWorldSection", typeName ); } return fact.CreateInstance( name, parent, sm ); }