|
| Dictionary< int, Row > | _rows = new Dictionary<int, Row>() |
| |
|
| static readonly IReadOnlyDictionary< string, int > | RowMapping |
| |
| static readonly IReadOnlyDictionary< string, string > | TypeMapping |
| |
Definition at line 4 of file SourceDeco.cs.
◆ BackupPref()
| override void SourceDeco.BackupPref |
( |
| ) |
|
|
inline |
Definition at line 199 of file SourceDeco.cs.
200 {
202 foreach (Row row in rows)
203 {
205 }
206 }
Dictionary< int, Row > _rows
References _rows, and TileRow.id.
◆ CreateRow()
| override Row SourceDeco.CreateRow |
( |
| ) |
|
|
inline |
◆ CreateRowByMapping()
| override Row SourceDeco.CreateRowByMapping |
( |
IReadOnlyDictionary< string, int > |
mapping | ) |
|
|
inline |
◆ GetRowMapping()
| override IReadOnlyDictionary< string, int > SourceDeco.GetRowMapping |
( |
| ) |
|
|
inline |
Definition at line 189 of file SourceDeco.cs.
190 {
192 }
static readonly IReadOnlyDictionary< string, int > RowMapping
References RowMapping.
◆ GetTypeMapping()
| override IReadOnlyDictionary< string, string > SourceDeco.GetTypeMapping |
( |
| ) |
|
|
inline |
Definition at line 194 of file SourceDeco.cs.
195 {
197 }
static readonly IReadOnlyDictionary< string, string > TypeMapping
References TypeMapping.
◆ OnAfterImportData()
| override void SourceDeco.OnAfterImportData |
( |
| ) |
|
|
inline |
Definition at line 224 of file SourceDeco.cs.
225 {
226 int num = 0;
227 foreach (Row row in rows)
228 {
229 if (row.sort != 0)
230 {
231 num = row.sort;
232 }
233 row.sort = num;
234 num++;
235 }
236 rows.Sort((Row r) => r.id);
237 }
References TileRow.id, and RenderRow.sort.
◆ OnInit()
| override void SourceDeco.OnInit |
( |
| ) |
|
|
inline |
Definition at line 239 of file SourceDeco.cs.
240 {
242 Cell.decoSource = this;
243 Cell.decoList = rows;
244 foreach (Row row in rows)
245 {
246 row.Init();
247 }
248 }
References TileRow.Init(), and Lookup.
◆ RestorePref()
| override void SourceDeco.RestorePref |
( |
| ) |
|
|
inline |
◆ SetRow()
| override void SourceDeco.SetRow |
( |
Row |
r | ) |
|
|
inline |
◆ ValidatePref()
| override void SourceDeco.ValidatePref |
( |
| ) |
|
|
inline |
◆ _lookup
◆ _rows
| Dictionary<int, Row> SourceDeco._rows = new Dictionary<int, Row>() |
◆ RowMapping
| readonly IReadOnlyDictionary<string, int> SourceDeco.RowMapping |
|
static |
◆ TypeMapping
| readonly IReadOnlyDictionary<string, string> SourceDeco.TypeMapping |
|
static |
◆ Lookup
◆ this[int id]
| Row SourceDeco.this[int id] |
|
get |
The documentation for this class was generated from the following file: