2using System.Collections.Generic;
57 RenderParam renderParam = base.GetRenderParam(mat, dir, point, bridgeHeight);
61 Row row = ((
id == 5) ? base.sources.blocks.rows[mat.defBlock] :
this);
62 renderParam.tile = row.
_tiles[0];
71 public static readonly IReadOnlyDictionary<string, int>
RowMapping =
new Dictionary<string, int>
82 [
"_idRenderData"] = 9,
106 public static readonly IReadOnlyDictionary<string, string>
TypeMapping =
new Dictionary<string, string>
109 [
"alias"] =
"string",
110 [
"name_JP"] =
"string",
113 [
"reqHarvest"] =
"string[]",
115 [
"idThing"] =
"string",
116 [
"_tileType"] =
"string",
117 [
"_idRenderData"] =
"string",
120 [
"snowTile"] =
"int",
121 [
"colorMod"] =
"int",
122 [
"colorType"] =
"string",
125 [
"recipeKey"] =
"string[]",
126 [
"factory"] =
"string[]",
127 [
"components"] =
"string[]",
128 [
"defMat"] =
"string",
129 [
"category"] =
"string",
131 [
"autoFloor"] =
"string",
132 [
"concrete"] =
"bool",
133 [
"transparent"] =
"bool",
134 [
"transition"] =
"int[]",
135 [
"tag"] =
"string[]",
136 [
"soundFoot"] =
"string",
137 [
"detail_JP"] =
"string",
138 [
"detail"] =
"string"
141 public Dictionary<int, Row>
_rows =
new Dictionary<int, Row>();
239 foreach (
Row row
in rows)
247 foreach (
Row row
in rows)
255 foreach (
Row row
in rows)
264 foreach (
Row row
in rows)
279 Cell.blockList = rows;
281 foreach (
Row row
in rows)
284 row.sourceAutoFloor = (row.
autoFloor.IsEmpty() ? floors.rows[40] : floors.alias[row.
autoFloor]);
static int GetColorInt(ref Color matColor, int p)
override RenderParam GetRenderParam(SourceMaterial.Row mat, int dir, Point point=null, int bridgeHeight=-1)
override RenderData defaultRenderData
SourceFloor.Row sourceAutoFloor
override int GetTile(SourceMaterial.Row mat, int dir=0)
override void ValidatePref()
override IReadOnlyDictionary< string, string > GetTypeMapping()
override void BackupPref()
override void RestorePref()
override void OnAfterImportData()
override void SetRow(Row r)
static RenderData FallbackRenderData
override Row CreateRowByMapping(IReadOnlyDictionary< string, int > mapping)
Dictionary< int, Row > _rows
static readonly IReadOnlyDictionary< string, int > RowMapping
static readonly IReadOnlyDictionary< string, string > TypeMapping
override IReadOnlyDictionary< string, int > GetRowMapping()
static string[] GetStringArray(int id)
static string GetString(int id)
static bool GetBool(int id)
static int GetInt(int id)
static int[] GetIntArray(int id)
static TileTypeHalfBlock HalfBlock