Example #1
0
		public void Init( string defaultZoneTypeName, string filename )
		{
			// delete ALL portals
			this.portals.Clear();

			// delete all the zones
			this.zones.Clear();

			this.frameCount = 0;

			this.defaultZoneTypeName = defaultZoneTypeName;
			this.defaultZoneFileName = filename;

			// create a new default zone
			this.zoneFactoryManager = PCZoneFactoryManager.Instance;
			this.defaultZone = CreateZoneFromFile( this.defaultZoneTypeName, "Default_Zone", RootSceneNode as PCZSceneNode,
			                                       this.defaultZoneFileName );
		}
Example #2
0
		public PCZSceneManager( string name )
			: base( name )
		{
			this.defaultZone = null;
			this.activeCameraZone = null;
			this.zoneFactoryManager = null;
			this.showPortals = false;
			this.defaultZoneTypeName = "ZoneType_Default";
			this.defaultZoneFileName = "none";
			rootSceneNode = new PCZSceneNode( this, "Root" );
			defaultRootNode = rootSceneNode;
		}