Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
ExcelBookImportSetting.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Generic;
3
4[Serializable]
6{
7 public string name;
8
9 public string exportPath;
10
11 public string _prefix;
12
13 public List<ExcelSheetImportSetting> sheets = new List<ExcelSheetImportSetting>();
14
15 public string prefix
16 {
17 get
18 {
19 if (!string.IsNullOrEmpty(_prefix))
20 {
21 return _prefix;
22 }
23 return "Source";
24 }
25 }
26
27 public string path => exportPath.IsEmpty(CustomAssetManager.Instance.exportPath) + "Export/";
28
30 {
31 foreach (ExcelSheetImportSetting sheet in sheets)
32 {
33 if (sheet.name == id)
34 {
35 return sheet;
36 }
37 }
38 return null;
39 }
40
42 {
44 if (sheet != null)
45 {
46 return sheet;
47 }
48 sheet = new ExcelSheetImportSetting
49 {
50 name = id
51 };
52 sheets.Add(sheet);
53 return sheet;
54 }
55
56 public override string ToString()
57 {
58 return name;
59 }
60}
static CustomAssetManager Instance
List< ExcelSheetImportSetting > sheets
ExcelSheetImportSetting GetSheet(string id)
ExcelSheetImportSetting GetOrCreateSheet(string id)