Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
CustomAssetManager Class Reference
Inheritance diagram for CustomAssetManager:

Public Member Functions

void OnBeforeSerialize ()
 
void OnAfterDeserialize ()
 
ExcelBookImportSetting GetBook (string id)
 
ExcelBookImportSetting GetOrCreateBook (string id)
 

Public Attributes

string pathEditor = "Assets/Plugins/Essential/DB/Editor/"
 
string exportPath = "Assets/Resources/Data/"
 
string assembly = "Plugins.BaseCore"
 
List< string > pathRawImport
 
List< ExcelBookImportSettingbooks
 

Static Public Attributes

static CustomAssetManager Instance
 

Private Member Functions

void Awake ()
 

Detailed Description

Definition at line 4 of file CustomAssetManager.cs.

Member Function Documentation

◆ Awake()

void CustomAssetManager.Awake ( )
inlineprivate

Definition at line 18 of file CustomAssetManager.cs.

19 {
20 Instance = this;
21 }
static CustomAssetManager Instance

References Instance.

◆ GetBook()

ExcelBookImportSetting CustomAssetManager.GetBook ( string  id)
inline

Definition at line 33 of file CustomAssetManager.cs.

34 {
36 {
37 if (book.name == id)
38 {
39 return book;
40 }
41 }
42 return null;
43 }
List< ExcelBookImportSetting > books

References book, and books.

Referenced by GetOrCreateBook().

◆ GetOrCreateBook()

ExcelBookImportSetting CustomAssetManager.GetOrCreateBook ( string  id)
inline

Definition at line 45 of file CustomAssetManager.cs.

46 {
48 if (book != null)
49 {
50 return book;
51 }
53 {
54 name = id
55 };
56 books.Add(book);
57 return book;
58 }
ExcelBookImportSetting GetBook(string id)

References book, books, and GetBook().

◆ OnAfterDeserialize()

void CustomAssetManager.OnAfterDeserialize ( )
inline

Definition at line 28 of file CustomAssetManager.cs.

29 {
30 Instance = this;
31 }

References Instance.

◆ OnBeforeSerialize()

void CustomAssetManager.OnBeforeSerialize ( )
inline

Definition at line 23 of file CustomAssetManager.cs.

24 {
25 Instance = this;
26 }

References Instance.

Member Data Documentation

◆ assembly

string CustomAssetManager.assembly = "Plugins.BaseCore"

Definition at line 12 of file CustomAssetManager.cs.

◆ books

List<ExcelBookImportSetting> CustomAssetManager.books

Definition at line 16 of file CustomAssetManager.cs.

Referenced by GetBook(), and GetOrCreateBook().

◆ exportPath

string CustomAssetManager.exportPath = "Assets/Resources/Data/"

Definition at line 10 of file CustomAssetManager.cs.

◆ Instance

CustomAssetManager CustomAssetManager.Instance
static

Definition at line 6 of file CustomAssetManager.cs.

Referenced by Awake(), OnAfterDeserialize(), and OnBeforeSerialize().

◆ pathEditor

string CustomAssetManager.pathEditor = "Assets/Plugins/Essential/DB/Editor/"

Definition at line 8 of file CustomAssetManager.cs.

◆ pathRawImport

List<string> CustomAssetManager.pathRawImport

Definition at line 14 of file CustomAssetManager.cs.


The documentation for this class was generated from the following file: