/// <summary>
        /// The function converts the data about the worlds from an xml file
        /// </summary>
        /// <param name="objects"></param>
        public void convert(ObjectSpace objects)
        {
            IEnumerator<xmlObject> iter = objects.getIter();
            String temp;

            while (iter.MoveNext())
            {
                World world = new World();

                temp = iter.Current.findValueOfProperty("name");

                if (temp != null)
                {
                    world.Name = temp;
                }

                temp = iter.Current.findValueOfProperty("map");

                if (temp != null)
                {
                    world.MapFile = temp;
                }

                temp = iter.Current.findValueOfProperty("events");

                if (temp != null)
                {
                    world.EventMapFile = temp;
                }

                temp = iter.Current.findValueOfProperty("assets");

                if (temp != null)
                {
                    world.AssetFile = temp;
                }

                temp = iter.Current.findValueOfProperty("world_script");

                if (temp != null)
                {
                    world.ScriptFile = temp;
                }

                information.Add(world.Name,world);
            }
        }
 private WorldsKeeper()
 {
     information = new Dictionary<string, World>();
     current = null;
 }
 public void add(World world)
 {
     information.Add(world.Name, world);
 }
 /// <summary>
 /// The function sets the current world
 /// </summary>
 /// <param name="world"></param>
 public void setCurrent(World world)
 {
     current = world;
 }