コード例 #1
0
ファイル: Labels.cs プロジェクト: reubene/Civ2-clone
        public static string For(LabelIndex index, params string[] strings)
        {
            var label = Items[(int)index];

            for (int i = 0; i < strings.Length; i++)
            {
                var rep = "%STRING" + i;
                if (label.Contains(rep))
                {
                    label = label.Replace(rep, strings[i]);
                }
            }

            return(label);
        }
コード例 #2
0
ファイル: Labels.cs プロジェクト: reubene/Civ2-clone
 public static string For(LabelIndex index)
 {
     return(Items[(int)index]);
 }