12 id = SourceData.GetInt(0),
13 alias = SourceData.GetString(1),
14 name_JP = SourceData.GetString(2),
15 name = SourceData.GetString(3),
16 sort = SourceData.GetInt(4),
17 reqHarvest = SourceData.GetStringArray(5),
18 hp = SourceData.GetInt(6),
19 idThing = SourceData.GetString(7),
20 _tileType = SourceData.GetString(8),
21 _idRenderData = SourceData.GetString(9),
22 tiles = SourceData.GetIntArray(10),
23 snowTile = SourceData.GetInt(11),
24 colorMod = SourceData.GetInt(12),
25 colorType = SourceData.GetString(13),
26 value = SourceData.GetInt(14),
27 LV = SourceData.GetInt(15),
28 recipeKey = SourceData.GetStringArray(16),
29 factory = SourceData.GetStringArray(17),
30 components = SourceData.GetStringArray(18),
31 defMat = SourceData.GetString(19),
32 category = SourceData.GetString(20),
33 roof = SourceData.GetInt(21),
34 autoFloor = SourceData.GetString(22),
35 concrete = SourceData.GetBool(23),
36 transparent = SourceData.GetBool(24),
37 transition = SourceData.GetIntArray(25),
38 tag = SourceData.GetStringArray(26),
39 soundFoot = SourceData.GetString(27),
40 detail_JP = SourceData.GetString(28),
41 detail = SourceData.GetString(29)
52 public override void BackupPref()
57 this._rows[row.id] = row;
62 public override void RestorePref()
68 renderRow.pref = (((row2 !=
null) ? row2.pref :
null) ??
new SourcePref());
73 public override void ValidatePref()
82 public override void OnAfterImportData()
98 public override void OnInit()
100 SourceBlock.FallbackRenderData = ResourceCache.Load<
RenderData>(
"Scene/Render/Data/block");
101 Cell.blockList = this.rows;
106 row.sourceAutoFloor = (row.autoFloor.IsEmpty() ? floors.rows[40] : floors.alias[row.autoFloor]);
122 public override bool UseAlias
132 public override string GetAlias
142 public override string RecipeID
146 return "b" + this.
id.ToString();
161 public override void OnInit()
163 this.isBlockOrRamp = (this.tileType == TileType.Block || this.tileType.IsRamp);
169 return this._tiles[dir % this._tiles.Length];
175 RenderParam renderParam = base.GetRenderParam(mat, dir, point, bridgeHeight);
176 if (this.tileType ==
TileType.HalfBlock)
179 SourceBlock.Row row = (this.id == 5) ? base.sources.blocks.rows[mat.defBlock] :
this;
180 renderParam.tile = (float)row._tiles[0];
181 renderParam.matColor = (float)((row.colorMod == 0) ? num :
BaseTileMap.GetColorInt(ref mat.matColor, row.colorMod));
182 renderParam.tile2 = row.sourceAutoFloor._tiles[0];
183 renderParam.halfBlockColor = ((row.sourceAutoFloor.colorMod == 0) ? num :
BaseTileMap.GetColorInt(ref mat.matColor, row.sourceAutoFloor.colorMod));
189 public string[] reqHarvest;
192 public string idThing;
198 public string autoFloor;
201 public bool concrete;
204 public bool transparent;
207 public int[] transition;
211 public bool isBlockOrRamp;
218 public string name_L;
221 public string detail_L;