Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
BiomeProfile.BaseTile Class Reference
Inheritance diagram for BiomeProfile.BaseTile:
BiomeProfile.Cluster.BaseItem BiomeProfile.SpawnList BiomeProfile.Style BiomeProfile.Tile BiomeProfile.Cluster.Item BiomeProfile.Cluster.ItemThing BiomeProfile.SpawnListChara BiomeProfile.SpawnListThing BiomeProfile.TileBlock BiomeProfile.TileFloor

Public Types

enum  SubType {
  None = 0 , Rnd5 = 10 , Rnd10 = 11 , Rnd20 = 12 ,
  Pattern = 20
}
 
enum  DirType { Random8 , RandomSqrt8 , RandomSqrtSqrt8 }
 

Protected Member Functions

string _GetThing (string id)
 
void _SetThing (ref string id, string value)
 
IEnumerable< string > ThingRows ()
 
string _GetObj (int id)
 
void _SetObj (ref int id, string value)
 
IEnumerable< string > ObjRows ()
 
string _GetFloor (int id)
 
void _SetFloor (ref int id, string value)
 
IEnumerable< string > FloorRows ()
 
string _GetBlock (int id)
 
void _SetBlock (ref int id, string value)
 
IEnumerable< string > BlockRows ()
 
string _GetMat (int id)
 
void _SetMat (ref int id, string value)
 
IEnumerable< string > MatRows ()
 
string _GetSpawnList (string id)
 
void _SetSpawnList (ref string id, string value)
 
IEnumerable< string > _SpawnList ()
 

Detailed Description

Definition at line 26 of file BiomeProfile.cs.

Member Enumeration Documentation

◆ DirType

Enumerator
Random8 
RandomSqrt8 
RandomSqrtSqrt8 

Definition at line 37 of file BiomeProfile.cs.

◆ SubType

Enumerator
None 
Rnd5 
Rnd10 
Rnd20 
Pattern 

Definition at line 28 of file BiomeProfile.cs.

Member Function Documentation

◆ _GetBlock()

string BiomeProfile.BaseTile._GetBlock ( int  id)
inlineprotected

Definition at line 108 of file BiomeProfile.cs.

109 {
110 SourceBlock.Row row = EClass.editorSources.blocks.rows.First((SourceBlock.Row a) => a.id == id);
111 if (row != null)
112 {
113 return row.id + "-" + row.alias + "(" + row.name_JP + ")";
114 }
115 return "-";
116 }
Definition: EClass.cs:5
static SourceManager editorSources
Definition: EClass.cs:44
SourceBlock blocks

References SourceManager.blocks, and EClass.editorSources.

◆ _GetFloor()

string BiomeProfile.BaseTile._GetFloor ( int  id)
inlineprotected

Definition at line 88 of file BiomeProfile.cs.

89 {
90 SourceFloor.Row row = EClass.editorSources.floors.rows.First((SourceFloor.Row a) => a.id == id);
91 if (row != null)
92 {
93 return row.id + "-" + row.alias + "(" + row.name_JP + ")";
94 }
95 return "-";
96 }
SourceFloor floors

References EClass.editorSources, and SourceManager.floors.

◆ _GetMat()

string BiomeProfile.BaseTile._GetMat ( int  id)
inlineprotected

Definition at line 128 of file BiomeProfile.cs.

129 {
130 if (id == -1)
131 {
132 id = 0;
133 }
134 SourceMaterial.Row row = EClass.editorSources.materials.rows.First((SourceMaterial.Row a) => a.id == id);
135 if (row != null)
136 {
137 return row.id + "-" + row.alias + "(" + row.name_JP + ")";
138 }
139 return "-";
140 }
SourceMaterial materials

References EClass.editorSources, and SourceManager.materials.

◆ _GetObj()

string BiomeProfile.BaseTile._GetObj ( int  id)
inlineprotected

Definition at line 68 of file BiomeProfile.cs.

69 {
70 SourceObj.Row row = EClass.editorSources.objs.rows.First((SourceObj.Row a) => a.id == id);
71 if (row != null)
72 {
73 return row.id + "-" + row.alias + "(" + row.name_JP + ")";
74 }
75 return "-";
76 }
SourceObj objs

References EClass.editorSources, and SourceManager.objs.

◆ _GetSpawnList()

string BiomeProfile.BaseTile._GetSpawnList ( string  id)
inlineprotected

Definition at line 152 of file BiomeProfile.cs.

153 {
154 if (id.IsEmpty() || !EClass.editorSources.spawnLists.map.ContainsKey(id))
155 {
156 return "-";
157 }
158 SourceSpawnList.Row row = EClass.editorSources.spawnLists.rows.First((SourceSpawnList.Row a) => a.id == id);
159 if (row != null)
160 {
161 return row.id;
162 }
163 return "-";
164 }
SourceSpawnList spawnLists

References EClass.editorSources, SourceSpawnList.Row.id, and SourceManager.spawnLists.

◆ _GetThing()

string BiomeProfile.BaseTile._GetThing ( string  id)
inlineprotected

Definition at line 44 of file BiomeProfile.cs.

45 {
46 if (id.IsEmpty())
47 {
48 return "-";
49 }
50 SourceThing.Row row = EClass.editorSources.things.rows.First((SourceThing.Row a) => a.id == id);
51 if (row != null)
52 {
53 return row.id + "-(" + row.name_JP + ")";
54 }
55 return "-";
56 }
SourceThing things

References EClass.editorSources, and SourceManager.things.

◆ _SetBlock()

void BiomeProfile.BaseTile._SetBlock ( ref int  id,
string  value 
)
inlineprotected

Definition at line 118 of file BiomeProfile.cs.

119 {
120 id = EClass.editorSources.blocks.rows.First((SourceBlock.Row a) => a.id == int.Parse(value.Split('-')[0])).id;
121 }

References SourceManager.blocks, and EClass.editorSources.

◆ _SetFloor()

void BiomeProfile.BaseTile._SetFloor ( ref int  id,
string  value 
)
inlineprotected

Definition at line 98 of file BiomeProfile.cs.

99 {
100 id = EClass.editorSources.floors.rows.First((SourceFloor.Row a) => a.id == int.Parse(value.Split('-')[0])).id;
101 }

References EClass.editorSources, and SourceManager.floors.

◆ _SetMat()

void BiomeProfile.BaseTile._SetMat ( ref int  id,
string  value 
)
inlineprotected

Definition at line 142 of file BiomeProfile.cs.

143 {
144 id = EClass.editorSources.materials.rows.First((SourceMaterial.Row a) => a.id == int.Parse(value.Split('-')[0])).id;
145 }

References EClass.editorSources, and SourceManager.materials.

◆ _SetObj()

void BiomeProfile.BaseTile._SetObj ( ref int  id,
string  value 
)
inlineprotected

Definition at line 78 of file BiomeProfile.cs.

79 {
80 id = EClass.editorSources.objs.rows.First((SourceObj.Row a) => a.id == int.Parse(value.Split('-')[0])).id;
81 }

References EClass.editorSources, and SourceManager.objs.

◆ _SetSpawnList()

void BiomeProfile.BaseTile._SetSpawnList ( ref string  id,
string  value 
)
inlineprotected

Definition at line 166 of file BiomeProfile.cs.

167 {
168 id = ((value == null) ? "" : EClass.editorSources.spawnLists.rows.First((SourceSpawnList.Row a) => a.id == value).id);
169 }

References EClass.editorSources, and SourceManager.spawnLists.

◆ _SetThing()

void BiomeProfile.BaseTile._SetThing ( ref string  id,
string  value 
)
inlineprotected

Definition at line 58 of file BiomeProfile.cs.

59 {
60 id = EClass.editorSources.things.rows.First((SourceThing.Row a) => a.id == value.Split('-')[0]).id;
61 }

References EClass.editorSources, and SourceManager.things.

◆ _SpawnList()

IEnumerable< string > BiomeProfile.BaseTile._SpawnList ( )
inlineprotected

Definition at line 171 of file BiomeProfile.cs.

172 {
173 return EClass.editorSources.spawnLists.GetListString();
174 }

References EClass.editorSources, and SourceManager.spawnLists.

◆ BlockRows()

IEnumerable< string > BiomeProfile.BaseTile.BlockRows ( )
inlineprotected

Definition at line 123 of file BiomeProfile.cs.

124 {
125 return EClass.editorSources.blocks.GetListString();
126 }

References SourceManager.blocks, and EClass.editorSources.

◆ FloorRows()

IEnumerable< string > BiomeProfile.BaseTile.FloorRows ( )
inlineprotected

Definition at line 103 of file BiomeProfile.cs.

104 {
105 return EClass.editorSources.floors.GetListString();
106 }

References EClass.editorSources, and SourceManager.floors.

◆ MatRows()

IEnumerable< string > BiomeProfile.BaseTile.MatRows ( )
inlineprotected

Definition at line 147 of file BiomeProfile.cs.

148 {
149 return EClass.editorSources.materials.GetListString();
150 }

References EClass.editorSources, and SourceManager.materials.

◆ ObjRows()

IEnumerable< string > BiomeProfile.BaseTile.ObjRows ( )
inlineprotected

Definition at line 83 of file BiomeProfile.cs.

84 {
85 return EClass.editorSources.objs.GetListString();
86 }

References EClass.editorSources, and SourceManager.objs.

◆ ThingRows()

IEnumerable< string > BiomeProfile.BaseTile.ThingRows ( )
inlineprotected

Definition at line 63 of file BiomeProfile.cs.

64 {
65 return EClass.editorSources.things.GetListString();
66 }

References EClass.editorSources, and SourceManager.things.


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