예제 #1
0
 private void ParseAccessory(CSVLoader csvLoader)
 {
     for (int i = 0; i < csvLoader.Rows; i++)
     {
         csvLoader.ReadValue(0, i, string.Empty, out string Value);
         csvLoader.ReadValue(1, i, string.Empty, out string Value2);
         csvLoader.ReadValue(2, i, string.Empty, out string Value3);
         csvLoader.ReadValue(3, i, string.Empty, out string Value4);
         csvLoader.ReadValue(4, i, string.Empty, out string Value5);
         csvLoader.ReadValue(5, i, string.Empty, out string Value6);
         csvLoader.ReadValue(6, i, def: true, out bool Value7);
         csvLoader.ReadValue(7, i, string.Empty, out string Value8);
         csvLoader.ReadValue(8, i, string.Empty, out string Value9);
         csvLoader.ReadValue(9, i, string.Empty, out string Value10);
         csvLoader.ReadValue(10, i, string.Empty, out string Value11);
         csvLoader.ReadValue(11, i, def: false, out bool Value12);
         csvLoader.ReadValue(12, i, string.Empty, out string Value13);
         csvLoader.ReadValue(13, i, string.Empty, out string Value14);
         csvLoader.ReadValue(14, i, string.Empty, out string Value15);
         csvLoader.ReadValue(15, i, 0, out int Value16);
         csvLoader.ReadValue(16, i, 0f, out float Value17);
         csvLoader.ReadValue(17, i, string.Empty, out string Value18);
         csvLoader.ReadValue(18, i, string.Empty, out string Value19);
         csvLoader.ReadValue(19, i, string.Empty, out string Value20);
         csvLoader.ReadValue(20, i, string.Empty, out string Value21);
         csvLoader.ReadValue(21, i, string.Empty, out string Value22);
         csvLoader.ReadValue(22, i, 100, out int Value23);
         Value.Trim();
         Value.ToLower();
         Value2.Trim();
         Value3.Trim();
         Value4.Trim();
         Value4.ToLower();
         Value5.Trim();
         Value5.ToLower();
         Value6.Trim();
         Value6.ToLower();
         Value8.Trim();
         Value9.Trim();
         Value10.Trim();
         Value11.Trim();
         Value19.Trim();
         Value20.Trim();
         Value21.Trim();
         Value22.Trim();
         Value14 = Value14.Trim();
         Value14 = Value14.ToLower();
         Value15.Trim();
         Value18 = Value18.ToLower();
         int num   = TItem.String2Type(Value4);
         int ck    = TItem.String2Kind(num, Value5);
         int upCat = TItem.String2UpgradeCategory(Value18);
         Add(Value, new TAccessory(Value, Value2, Value9, FindPrefab(Value8), FindIcon(Value3), num, ck, Value7, TItem.String2Slot(Value6), Value10, BuffManager.Instance.Get(Value11), Value12, Value13, TItem.String2FunctionMask(Value14), Value16, Value17, upCat, Convert.ToInt32(Value19), Value20, Value21, Value22, FindIcon(Value15), Value23));
     }
 }
예제 #2
0
 private void ParseCharacter(CSVLoader csvLoader)
 {
     for (int i = 0; i < csvLoader.Rows; i++)
     {
         csvLoader.ReadValue(0, i, string.Empty, out string Value);
         csvLoader.ReadValue(1, i, string.Empty, out string Value2);
         csvLoader.ReadValue(2, i, string.Empty, out string Value3);
         csvLoader.ReadValue(3, i, string.Empty, out string Value4);
         csvLoader.ReadValue(4, i, def: true, out bool Value5);
         csvLoader.ReadValue(5, i, string.Empty, out string Value6);
         csvLoader.ReadValue(6, i, string.Empty, out string Value7);
         csvLoader.ReadValue(7, i, string.Empty, out string Value8);
         csvLoader.ReadValue(8, i, string.Empty, out string Value9);
         csvLoader.ReadValue(9, i, def: false, out bool Value10);
         csvLoader.ReadValue(10, i, string.Empty, out string Value11);
         csvLoader.ReadValue(11, i, string.Empty, out string Value12);
         csvLoader.ReadValue(12, i, string.Empty, out string Value13);
         csvLoader.ReadValue(13, i, string.Empty, out string Value14);
         csvLoader.ReadValue(14, i, string.Empty, out string Value15);
         csvLoader.ReadValue(15, i, string.Empty, out string Value16);
         csvLoader.ReadValue(16, i, 100, out int Value17);
         Value.Trim();
         Value.ToLower();
         Value2.Trim();
         Value3.Trim();
         Value4.Trim();
         Value4.ToLower();
         Value6.Trim();
         Value7.Trim();
         Value8.Trim();
         Value9.Trim();
         Value12.Trim();
         Value13.Trim();
         Value14.Trim();
         Value15.Trim();
         Value16.Trim();
         int ct = TItem.String2Type(Value4);
         Add(Value, new TCharacter(Value, Value2, FindIcon(Value3), ct, Value5, Value6, Value7, Value8, BuffManager.Instance.Get(Value9), Value10, Value11, Convert.ToInt32(Value12), FindMaterial(Value13), Value14, Value15, Value16, Value17));
     }
 }