Exemple #1
0
        public static bool LoadAICharNameList(string sFileName)
        {
            bool result;
            int  I;

            result = false;
            if (File.Exists(sFileName))
            {
                g_AICharNameList.Clear();
                g_AICharNameList.LoadFromFile(sFileName);
                I = 0;
                while (true)
                {
                    if (g_AICharNameList.Count <= I)
                    {
                        break;
                    }
                    if (g_AICharNameList[I].Trim() == "")
                    {
                        g_AICharNameList.RemoveAt(I);
                        continue;
                    }
                    I++;
                }
                result = true;
            }
            return(result);
        }
Exemple #2
0
        public static bool LoadClearMakeIndexList(string sFileName)
        {
            bool   result;
            int    I;
            int    nIndex;
            string sLineText;

            result = false;
            if (File.Exists(sFileName))
            {
                //@ Unsupported property or method(A): 'LoadFromFile'
                g_ClearMakeIndex.LoadFromFile(sFileName);
                I = 0;
                while (true)
                {
                    if (g_ClearMakeIndex.Count <= I)
                    {
                        break;
                    }
                    sLineText = g_ClearMakeIndex[I];

                    //@ Undeclared identifier(3): 'Str_ToInt'
                    nIndex = GameFramework.HUtil32.Str_ToInt(sLineText, -1);
                    if (nIndex < 0)
                    {
                        g_ClearMakeIndex.RemoveAt(I);
                        continue;
                    }

                    //@ Unsupported property or method(A): 'Values'
                    g_ClearMakeIndex[I] = Convert.ToString(nIndex);
                    I++;
                }
                result = true;
            }
            return(result);
        }