Exemplo n.º 1
0
        /// <summary>
        /// Loads additional assets specified by assets.xml
        /// </summary>
        public void loadAdditionalAssets()
        {       //Load up our assets config file
            ConfigSetting cfg = new Xmlconfig(@"../Global/assets.xml", false).Settings;

            foreach (ConfigSetting asset in cfg.GetNamedChildren("asset"))
            {   //Insert it into the asset list
                AssetFile assetf = AssetFileFactory.CreateFromGlobalFile <AssetFile>(asset.Value);

                if (assetf != null)
                {
                    addAssetData(assetf);
                }
            }
        }