|
| Dictionary< int, Row > | _rows = new Dictionary<int, Row>() |
| |
Definition at line 5 of file SourceFloor.cs.
◆ BackupPref()
| override void SourceFloor.BackupPref |
( |
| ) |
|
|
inline |
Definition at line 245 of file SourceFloor.cs.
246 {
248 foreach (Row row in rows)
249 {
251 }
252 }
Dictionary< int, Row > _rows
References _rows, and TileRow.id.
◆ CreateRow()
| override Row SourceFloor.CreateRow |
( |
| ) |
|
|
inline |
◆ CreateRowByMapping()
| override Row SourceFloor.CreateRowByMapping |
( |
IReadOnlyDictionary< string, int > |
mapping | ) |
|
|
inline |
◆ GetRowMapping()
| override IReadOnlyDictionary< string, int > SourceFloor.GetRowMapping |
( |
| ) |
|
|
inline |
Definition at line 235 of file SourceFloor.cs.
236 {
238 }
static readonly IReadOnlyDictionary< string, int > RowMapping
References RowMapping.
◆ GetTypeMapping()
| override IReadOnlyDictionary< string, string > SourceFloor.GetTypeMapping |
( |
| ) |
|
|
inline |
Definition at line 240 of file SourceFloor.cs.
241 {
243 }
static readonly IReadOnlyDictionary< string, string > TypeMapping
References TypeMapping.
◆ OnAfterImportData()
| override void SourceFloor.OnAfterImportData |
( |
| ) |
|
|
inline |
Definition at line 270 of file SourceFloor.cs.
271 {
272 int num = 0;
273 foreach (Row row in rows)
274 {
275 if (row.sort != 0)
276 {
277 num = row.sort;
278 }
279 row.sort = num;
280 num++;
281 }
282 rows.Sort((Row r) => r.id);
283 }
References TileRow.id, and RenderRow.sort.
◆ OnAfterInit()
| void SourceFloor.OnAfterInit |
( |
| ) |
|
|
inline |
Definition at line 301 of file SourceFloor.cs.
302 {
304 foreach (Row row2 in rows)
305 {
306 row2._defBlock = Resolve(row2, row2.defBlock);
307 row2._bridgeBlock = Resolve(row2, row2.bridgeBlock);
308 row2.nonGradient = row2.ContainsTag("nonGradient");
309 }
311 {
313 if (row == null)
314 {
315 Debug.LogWarning(
$"#source floor {r.id}/{r.alias} has invalid block alias '{aliasName}'");
316 row = blocks[0];
317 }
318 return row;
319 }
320 }
static SourceManager sources
References $, TileRow.alias, SourceManager.blocks, SourceFloor.Row.bridgeBlock, RenderRow.ContainsTag(), Debug, SourceFloor.Row.defBlock, and EClass.sources.
Referenced by SourceImporter.HotInit(), and SourceManager.Init().
◆ OnInit()
| override void SourceFloor.OnInit |
( |
| ) |
|
|
inline |
Definition at line 285 of file SourceFloor.cs.
286 {
289 Cell.floorSource = this;
290 Cell.floorList = rows;
291 FLOOR.sourceSnow = this[39];
292 FLOOR.sourceSnow2 = this[56];
293 FLOOR.sourceIce = this[38];
294 FLOOR.sourceWood = this[21];
295 foreach (Row row in rows)
296 {
298 }
299 }
static RenderData FallbackRenderData
References FallbackRenderData, TileRow.Init(), and Lookup.
◆ RestorePref()
| override void SourceFloor.RestorePref |
( |
| ) |
|
|
inline |
◆ SetRow()
| override void SourceFloor.SetRow |
( |
Row |
r | ) |
|
|
inline |
◆ ValidatePref()
| override void SourceFloor.ValidatePref |
( |
| ) |
|
|
inline |
◆ _lookup
◆ _rows
| Dictionary<int, Row> SourceFloor._rows = new Dictionary<int, Row>() |
◆ FallbackRenderData
◆ RowMapping
| readonly IReadOnlyDictionary<string, int> SourceFloor.RowMapping |
|
static |
◆ TypeMapping
| readonly IReadOnlyDictionary<string, string> SourceFloor.TypeMapping |
|
static |
◆ Lookup
◆ this[int id]
| Row SourceFloor.this[int id] |
|
get |
The documentation for this class was generated from the following file: