2using System.Collections.Generic;
60 Debug.LogWarning(
$"#source obj {id}/{alias} has unknown val type '{valType}', using 'None'");
70 string arg =
"GrowSystem" +
_growth[0];
74 Debug.LogWarning(
$"#source obj {id}/{alias} has unknown growth class '{arg}', growing disabled");
84 Debug.LogWarning(
$"#source obj {id}/{alias} has invalid _growth '{string.Join(',', _growth)}', growing disabled\n{ex.Message}");
101 public static readonly IReadOnlyDictionary<string, int>
RowMapping =
new Dictionary<string, int>
117 [
"_idRenderData"] = 14,
130 [
"matCategory"] = 27,
137 public static readonly IReadOnlyDictionary<string, string>
TypeMapping =
new Dictionary<string, string>
140 [
"alias"] =
"string",
141 [
"name_JP"] =
"string",
143 [
"_growth"] =
"string[]",
144 [
"costSoil"] =
"int",
145 [
"objType"] =
"string",
146 [
"vals"] =
"string[]",
147 [
"tag"] =
"string[]",
149 [
"reqHarvest"] =
"string[]",
151 [
"_tileType"] =
"string",
152 [
"valType"] =
"string",
153 [
"_idRenderData"] =
"string",
156 [
"snowTile"] =
"int",
157 [
"colorMod"] =
"int",
158 [
"colorType"] =
"string",
162 [
"recipeKey"] =
"string[]",
163 [
"factory"] =
"string[]",
164 [
"components"] =
"string[]",
165 [
"defMat"] =
"string",
166 [
"matCategory"] =
"string",
167 [
"category"] =
"string",
169 [
"detail_JP"] =
"string",
170 [
"detail"] =
"string"
173 public Dictionary<int, Row>
_rows =
new Dictionary<int, Row>();
280 foreach (
Row row
in rows)
288 foreach (
Row row
in rows)
296 foreach (
Row row
in rows)
304 return map[id].GetName().ToTitleCase();
310 foreach (
Row row
in rows)
319 rows.Sort((
Row r) => r.
id);
326 Cell.objSource =
this;
328 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()
TileLookup< Row > _lookup
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