2using System.Collections.Generic;
79 public static readonly IReadOnlyDictionary<string, int>
RowMapping =
new Dictionary<string, int>
95 [
"_idRenderData"] = 14,
108 [
"matCategory"] = 27,
115 public static readonly IReadOnlyDictionary<string, string>
TypeMapping =
new Dictionary<string, string>
118 [
"alias"] =
"string",
119 [
"name_JP"] =
"string",
121 [
"_growth"] =
"string[]",
122 [
"costSoil"] =
"int",
123 [
"objType"] =
"string",
124 [
"vals"] =
"string[]",
125 [
"tag"] =
"string[]",
127 [
"reqHarvest"] =
"string[]",
129 [
"_tileType"] =
"string",
130 [
"valType"] =
"string",
131 [
"_idRenderData"] =
"string",
134 [
"snowTile"] =
"int",
135 [
"colorMod"] =
"int",
136 [
"colorType"] =
"string",
140 [
"recipeKey"] =
"string[]",
141 [
"factory"] =
"string[]",
142 [
"components"] =
"string[]",
143 [
"defMat"] =
"string",
144 [
"matCategory"] =
"string",
145 [
"category"] =
"string",
147 [
"detail_JP"] =
"string",
148 [
"detail"] =
"string"
151 public Dictionary<int, Row>
_rows =
new Dictionary<int, Row>();
251 foreach (
Row row
in rows)
259 foreach (
Row row
in rows)
267 foreach (
Row row
in rows)
275 return map[id].GetName().ToTitleCase();
281 foreach (
Row row
in rows)
297 foreach (
Row row
in rows)
void Init(SourceObj.Row _row)
static string[] GetStringArray(int id)
static string GetString(int id)
static int GetInt(int id)
static int[] GetIntArray(int id)
override RenderData defaultRenderData
override IReadOnlyDictionary< string, string > GetTypeMapping()
override Row CreateRowByMapping(IReadOnlyDictionary< string, int > mapping)
override void OnAfterImportData()
override IReadOnlyDictionary< string, int > GetRowMapping()
static readonly IReadOnlyDictionary< string, string > TypeMapping
static readonly IReadOnlyDictionary< string, int > RowMapping
override void RestorePref()
override void SetRow(Row r)
override void BackupPref()
static RenderData FallbackRenderData
override void ValidatePref()
Dictionary< int, Row > _rows