Exemplo n.º 1
0
            // Token: 0x060000D1 RID: 209 RVA: 0x0000AEFC File Offset: 0x000090FC
            private static void LoadMerchants(Microsoft.Xna.Framework.Content.ContentManager p_loader)
            {
                JKContentManager.OldMan.merchantSettings = new Dictionary <string, MerchantSettings>();
                string str = "mods/props/textures/old_man/";
                Dictionary <string, MerchantSettings> dictionary = UltraContent.LoadXmlFiles <MerchantSettings>(Game1.instance, str + "merchant/", ".xml");

                JKContentManager.OldMan.merchant_names = new string[dictionary.Count];
                int num = 0;

                foreach (string key in dictionary.Keys)
                {
                    NPCs.AddSetting(p_loader, dictionary[key].settings);
                    JKContentManager.OldMan.merchant_names[num++] = dictionary[key].settings.name;
                    JKContentManager.OldMan.merchantSettings.Add(dictionary[key].settings.name, dictionary[key]);
                }
            }
Exemplo n.º 2
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);
            }