Example #1
0
        public CubeWorld(ICWListener cwListener, ICWFxListener fxListener)
        {
			this.cwListener = cwListener;
            this.fxListener = fxListener;
            this.sectorManager = new SectorManager(this);
			this.tileManager = new TileManager(this);
			this.itemManager = new ItemManager(this);
			this.avatarManager = new AvatarManager(this);
			this.dayCycleManager = new DayCycleManager(this);
        }
Example #2
0
        public void Clear()
        {
            stats = null;
			
			sectorManager.Clear();
			sectorManager = null;
			
			tileManager.Clear();
			tileManager = null;
			
			itemManager.Clear();
			itemManager = null;
			
			avatarManager.Clear();
			avatarManager = null;
			
			dayCycleManager.Clear();
			dayCycleManager = null;

            gameplay.Clear();
            gameplay = null;
		}