Elin Decompiled Documentation
EA 23.102 Nightly
Loading...
Searching...
No Matches
ExcelBookImportSetting.cs
Go to the documentation of this file.
1
using
System;
2
using
System.Collections.Generic;
3
4
[Serializable]
5
public
class
ExcelBookImportSetting
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
29
public
ExcelSheetImportSetting
GetSheet
(
string
id
)
30
{
31
foreach
(
ExcelSheetImportSetting
sheet
in
sheets
)
32
{
33
if
(sheet.
name
==
id
)
34
{
35
return
sheet;
36
}
37
}
38
return
null
;
39
}
40
41
public
ExcelSheetImportSetting
GetOrCreateSheet
(
string
id
)
42
{
43
ExcelSheetImportSetting
sheet =
GetSheet
(
id
);
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
}
CustomAssetManager
Definition:
CustomAssetManager.cs:5
CustomAssetManager.Instance
static CustomAssetManager Instance
Definition:
CustomAssetManager.cs:6
CustomAssetManager.exportPath
string exportPath
Definition:
CustomAssetManager.cs:10
ExcelBookImportSetting
Definition:
ExcelBookImportSetting.cs:6
ExcelBookImportSetting.name
string name
Definition:
ExcelBookImportSetting.cs:7
ExcelBookImportSetting.sheets
List< ExcelSheetImportSetting > sheets
Definition:
ExcelBookImportSetting.cs:13
ExcelBookImportSetting.path
string path
Definition:
ExcelBookImportSetting.cs:27
ExcelBookImportSetting.ToString
override string ToString()
Definition:
ExcelBookImportSetting.cs:56
ExcelBookImportSetting._prefix
string _prefix
Definition:
ExcelBookImportSetting.cs:11
ExcelBookImportSetting.GetSheet
ExcelSheetImportSetting GetSheet(string id)
Definition:
ExcelBookImportSetting.cs:29
ExcelBookImportSetting.GetOrCreateSheet
ExcelSheetImportSetting GetOrCreateSheet(string id)
Definition:
ExcelBookImportSetting.cs:41
ExcelBookImportSetting.prefix
string prefix
Definition:
ExcelBookImportSetting.cs:16
ExcelBookImportSetting.exportPath
string exportPath
Definition:
ExcelBookImportSetting.cs:9
ExcelSheetImportSetting
Definition:
ExcelSheetImportSetting.cs:5
ExcelSheetImportSetting.name
string name
Definition:
ExcelSheetImportSetting.cs:12
Elin
Plugins.basecore
ExcelBookImportSetting.cs
Generated by
1.9.6