Example #1
0
        protected override void OnParseGrid(StringGrid grid, AdvBootSetting bootSetting)
        {
            if (GridList.Count == 0)
            {
                Debug.LogError("Old Version Reimport Excel Scenario Data");
                return;
            }

            string            sheetName = grid.SheetName;
            AdvParamStructTbl data;

            if (!StructTbl.TryGetValue(sheetName, out data))
            {
                data = new AdvParamStructTbl();
                StructTbl.Add(sheetName, data);
            }

            if (sheetName == SheetNameParam)
            {
                data.AddSingle(grid);
            }
            else
            {
                data.AddTbl(grid);
            }
        }
Example #2
0
        //中身を全てコピー
        internal AdvParamStructTbl Clone()
        {
            AdvParamStructTbl clone = new AdvParamStructTbl();

            foreach (var item in Tbl)
            {
                clone.Tbl.Add(item.Key, item.Value.Clone());
            }
            return(clone);
        }
Example #3
0
        internal AdvParamStructTbl Clone()
        {
            AdvParamStructTbl tbl = new AdvParamStructTbl();

            foreach (KeyValuePair <string, AdvParamStruct> pair in this.Tbl)
            {
                tbl.Tbl.Add(pair.Key, pair.Value.Clone());
            }
            return(tbl);
        }
Example #4
0
 /// <summary>
 /// システムデータ以外の値をデフォルト値で初期化
 /// </summary>
 internal void InitDefaultNormal(AdvParamStructTbl src)
 {
     foreach (var keyValue in src.Tbl)
     {
         AdvParamStruct data;
         if (Tbl.TryGetValue(keyValue.Key, out data))
         {
             data.InitDefaultNormal(keyValue.Value);
         }
         else
         {
             Debug.LogError("Param: " + keyValue.Key + "  is not found in default param");
         }
     }
 }
Example #5
0
 internal void InitDefaultNormal(AdvParamStructTbl src)
 {
     foreach (KeyValuePair <string, AdvParamStruct> pair in src.Tbl)
     {
         AdvParamStruct struct2;
         if (this.Tbl.TryGetValue(pair.Key, out struct2))
         {
             struct2.InitDefaultNormal(pair.Value);
         }
         else
         {
             Debug.LogError("Param: " + pair.Key + "  is not found in default param");
         }
     }
 }