Ejemplo n.º 1
0
            public static void Load(Microsoft.Xna.Framework.Content.ContentManager p_loader)
            {
                string str = "mods/props/textures/old_man/";
                Dictionary <string, OldManSettings> dictionary = UltraContent.LoadXmlFiles <OldManSettings>(Game1.instance, str + "lines/", ".xml");

                JKContentManager.OldMan._settings = new Dictionary <string, JKContentManager.OldMan.OldManData>();
                foreach (string key in dictionary.Keys)
                {
                    NPCs.AddSetting(p_loader, dictionary[key]);
                }
                JKContentManager.OldMan.spawn_names = new string[JKContentManager.OldMan._settings.Count];
                int num = 0;

                foreach (string text in JKContentManager.OldMan._settings.Keys)
                {
                    JKContentManager.OldMan.spawn_names[num++] = text;
                }
                NPCs.LoadMerchants(p_loader);
            }