Exemplo n.º 1
0
        public SoundObjectWorld()
        {
            FileLocation  fl     = FileSystem.Instance.Locate("soundObjects.xml", GameFileLocs.Config);
            Configuration config = ConfigurationManager.Instance.CreateInstance(fl);

            foreach (KeyValuePair <string, ConfigurationSection> e in config)
            {
                SoundEmitterObject obj = new SoundEmitterObject();
                obj.Parse(e.Value);

                objectList.Add(obj);
            }
        }
Exemplo n.º 2
0
        public SoundObjectWorld()
        {
            FileLocation fl = FileSystem.Instance.Locate("soundObjects.xml", GameFileLocs.Config);
            Configuration config = ConfigurationManager.Instance.CreateInstance(fl);

            foreach (KeyValuePair<string, ConfigurationSection> e in config)
            {
                SoundEmitterObject obj = new SoundEmitterObject();
                obj.Parse(e.Value);

                objectList.Add(obj);
            }
        }