Ejemplo n.º 1
0
        public static string GetNewName(string raw)
        {
            var initial = MobileExport.GetNewItemName(raw);

            if (initial != null)
            {
                return(initial);
            }
            if (ItemNames.ContainsKey(raw))
            {
                var str = ItemNames[raw];
                if (str.Contains("Placeholder") || str == raw.Split('/').Last().Replace("StoreItem", ""))
                {
                    var fetch = GetMobileFetch(raw);
                    if (fetch != null)
                    {
                        return(fetch);
                    }
                }
                return(str);
            }
            var noMatchFetch = GetMobileFetch(raw);

            if (noMatchFetch != null)
            {
                return(noMatchFetch);
            }
            return(GetUnknownName(raw));
        }
Ejemplo n.º 2
0
        public static string GetPlanetName(string node)
        {
            var initial = MobileExport.GetPlanetName(node);

            if (initial != null)
            {
                return(initial);
            }
            return(PlanetRegionNames.ContainsKey(node) ? PlanetRegionNames[node].Split('|')[1] : node);
        }
Ejemplo n.º 3
0
        public static string GetNodeMission(string node)
        {
            var initial = MobileExport.GetNodeMission(node);

            if (initial != null)
            {
                return(initial);
            }
            if (PlanetRegionNames.ContainsKey(node))
            {
                var data = PlanetRegionNames[node].Split('|');
                return(Names.GetMissionType(data[2]));
            }
            return("-");
        }
Ejemplo n.º 4
0
        private static string GetMobileFetch(string raw)
        {
            if (NewItemNames.ContainsKey(raw))
            {
                return(NewItemNames[raw]);
            }
            var mobileFetch = MobileExport.GetItemName(raw);

            if (mobileFetch == null)
            {
                return(null);
            }
            NewItemNames[raw] = mobileFetch;
            SerializeLanguageStrings();
            return(mobileFetch);
        }
Ejemplo n.º 5
0
        public static string GetRegion(string node)
        {
            var initial = MobileExport.GetRegion(node);

            if (initial != null)
            {
                return(initial);
            }
            if (!PlanetRegionNames.ContainsKey(node))
            {
                return("-");
            }
            var data = PlanetRegionNames[node].Split('|');

            return(data[0]);
        }