Elin Decompiled Documentation EA 23.350.1 Nightly
Loading...
Searching...
No Matches
RenderRow Class Reference
Inheritance diagram for RenderRow:
SourceData< T, T2 >.BaseRow IRenderSource CardRow TileRow SourceChara.Row SourceThing.Row SourceBlock.Row SourceCellEffect.Row SourceDeco.Row SourceFloor.Row SourceObj.Row SourceThingV.Row SourceFood.Row2

Public Member Functions

bool HasTag (CTAG _tag)
 
virtual string GetSearchName (bool jp)
 
bool ContainsTag (string _tag)
 
override void OnImportData (SourceData data)
 
void SetRenderData ()
 
virtual void SetTiles ()
 
int ConvertTile (int tile)
 
Sprite GetSprite (int dir=0, int skin=0, bool snow=false)
 
void SetSpriteRenderer (SpriteRenderer sr, Sprite sprite=null, int matCol=0, bool setTransform=true, int dir=0, int idSkin=0)
 
virtual SourcePref GetPref ()
 
void SetImage (Image image, Sprite sprite=null, int matCol=0, bool setNativeSize=true, int dir=0, int idSkin=0, Card card=null)
 
void SetImage (Image image, Sprite sprite, int matCol, bool setNativeSize, int dir, int idSkin, RenderData _renderData, SourcePref _pref)
 
void SetRenderParam (RenderParam p, SourceMaterial.Row mat, int dir)
 
virtual RenderParam GetRenderParam (SourceMaterial.Row mat, int dir, Point point=null, int bridgeHeight=-1)
 
virtual int GetTile (SourceMaterial.Row mat, int dir=0)
 
int GetColorInt (SourceMaterial.Row mat)
 
- Public Member Functions inherited from SourceData< T, T2 >.BaseRow
Dictionary< string, FieldInfo > GetRowFields ()
 
virtual string GetName ()
 
string GetDetail ()
 
virtual string GetEditorListName ()
 
string GetText (string id="name", bool returnNull=false)
 
string[] GetTextArray (string id)
 
virtual void SetID (ref int count)
 
virtual void OnImportData (SourceData data)
 
virtual IDictionary< string, string > ExportTexts (string idField="id")
 
virtual void ImportTexts (IReadOnlyDictionary< string, string > texts, string idField="id")
 

Public Attributes

int[] tiles
 
int[] _tiles
 
int[] skins
 
int colorMod
 
int sort
 
int value
 
int LV
 
int chance
 
int tempChance
 
int snowTile
 
string name
 
string name_JP
 
string detail
 
string detail_JP
 
string _idRenderData
 
string _tileType
 
string defMat
 
string colorType
 
string category
 
string idSound
 
string aliasPref
 
string[] components
 
string[] factory
 
string[] recipeKey
 
string[] tag
 
int W = 1
 
int H = 1
 
bool multisize
 
bool fixedMaterial
 
SourcePref pref
 
RenderData renderData
 
Sprite[,] sprites
 
TileType tileType
 
bool useAltColor
 
bool useRandomColor
 
SourceMaterial.Row DefaultMaterial
 
SpriteReplacer replacer
 
string _nameSearch
 
string _nameSearchJP
 
- Public Attributes inherited from SourceData< T, T2 >.BaseRow
int _index
 

Static Public Attributes

static Dictionary< string, RenderData > DictRenderData = new Dictionary<string, RenderData>()
 

Properties

virtual string idString [get]
 
virtual string RecipeID [get]
 
virtual string pathRenderData [get]
 
virtual string idRenderData [get]
 
virtual RenderData defaultRenderData [get]
 
virtual string pathSprite [get]
 
virtual string idSprite [get]
 
virtual string prefabName [get]
 
SourceCategory.Row Category [get]
 
string RecipeCat [get]
 
SourceManager sources [get]
 
- Properties inherited from SourceData< T, T2 >.BaseRow
virtual bool UseAlias [get]
 
virtual string GetAlias [get]
 

Private Attributes

SourceCategory.Row _category
 
string _recipeCat
 

Detailed Description

Definition at line 6 of file RenderRow.cs.

Member Function Documentation

◆ ContainsTag()

bool RenderRow.ContainsTag ( string  _tag)
inline

Definition at line 159 of file RenderRow.cs.

160 {
161 return tag.Contains(_tag);
162 }
string[] tag
Definition: RenderRow.cs:58

References tag.

Referenced by CharaRenderer.DrawHeld(), SourceFloor.OnAfterInit(), Chara.RestockEquip(), ElementContainerCard.SetOwner(), and TraitFakeTile.TrySetHeldAct().

◆ ConvertTile()

int RenderRow.ConvertTile ( int  tile)
inline

Definition at line 278 of file RenderRow.cs.

279 {
280 return renderData.ConvertTile(tile);
281 }
int ConvertTile(int tile)
Definition: RenderData.cs:111
RenderData renderData
Definition: RenderRow.cs:71

References RenderData.ConvertTile(), and renderData.

◆ GetColorInt()

int RenderRow.GetColorInt ( SourceMaterial::Row  mat)
inline

Definition at line 456 of file RenderRow.cs.

457 {
458 if (useAltColor)
459 {
460 if (colorMod != 0)
461 {
462 return BaseTileMap.GetColorInt(ref mat.altColor, colorMod);
463 }
464 return 104025;
465 }
466 if (colorMod != 0)
467 {
468 return BaseTileMap.GetColorInt(ref mat.matColor, colorMod);
469 }
470 return 104025;
471 }
static int GetColorInt(ref Color matColor, int p)
bool useAltColor
Definition: RenderRow.cs:80
int colorMod
Definition: RenderRow.cs:16

References colorMod, BaseTileMap.GetColorInt(), and useAltColor.

Referenced by CharaRenderer.DrawHat(), Recipe.GetDefaultColor(), GetRenderParam(), UIDragGridInfo.Init(), UIDragGridInfo.InitFuel(), DropdownGrid.OnChangeIngredient(), UIRecipeInfo.RefreshImages(), Recipe.SetImage(), ButtonGrid.SetRecipeVariation(), and SetRenderParam().

◆ GetPref()

virtual SourcePref RenderRow.GetPref ( )
inlinevirtual

Reimplemented in CardRow.

Definition at line 373 of file RenderRow.cs.

374 {
375 return pref;
376 }
SourcePref pref
Definition: RenderRow.cs:68

References pref.

Referenced by SetImage(), and AM_Build.StartBuild().

◆ GetRenderParam()

virtual RenderParam RenderRow.GetRenderParam ( SourceMaterial::Row  mat,
int  dir,
Point  point = null,
int  bridgeHeight = -1 
)
inlinevirtual

Reimplemented in SourceBlock.Row.

Definition at line 420 of file RenderRow.cs.

421 {
423 shared.tile = GetTile(mat, dir);
424 shared.matColor = GetColorInt(mat);
425 shared.mat = mat;
426 shared.liquidLv = 0;
427 shared.dir = dir;
428 shared.cell = null;
429 Vector3 vector;
430 if (point == null)
431 {
432 shared.color = 11010048f;
435 {
436 vector.y -= 0.8f;
437 }
438 }
439 else
440 {
441 shared.color = 10485760f;
443 vector = point.Position(bridgeHeight);
444 }
445 shared.x = vector.x;
446 shared.y = vector.y;
447 shared.z = vector.z;
448 return shared;
449 }
BaseTileMap tileMap
Vector3 renderPos
Definition: Core.cs:14
static new Core Instance
Definition: Core.cs:15
Scene scene
Definition: Core.cs:65
BaseGameScreen screen
Definition: Core.cs:67
ref Vector3 Position(int height)
Definition: Point.cs:553
bool multiSize
Definition: RenderData.cs:33
static RenderParam shared
Definition: RenderParam.cs:5
int GetColorInt(SourceMaterial.Row mat)
Definition: RenderRow.cs:456
virtual int GetTile(SourceMaterial.Row mat, int dir=0)
Definition: RenderRow.cs:451
CameraSupport camSupport
Definition: Scene.cs:41

References Scene.camSupport, GetColorInt(), GetTile(), Core.Instance, RenderData.multiSize, renderData, CameraSupport.renderPos, Core.scene, Core.screen, RenderParam.shared, BaseGameScreen.tileMap, and BaseTileMap.x.

Referenced by Recipe.OnRenderMarker(), and UICardInfo.UpdateRecipe().

◆ GetSearchName()

virtual string RenderRow.GetSearchName ( bool  jp)
inlinevirtual

Reimplemented in SourceChara.Row, and SourceThing.Row.

Definition at line 141 of file RenderRow.cs.

142 {
143 object obj;
144 if (!jp)
145 {
146 obj = _nameSearch;
147 if (obj == null)
148 {
149 return _nameSearch = name.ToLower();
150 }
151 }
152 else
153 {
154 obj = _nameSearchJP ?? (_nameSearchJP = GetText().ToLower());
155 }
156 return (string)obj;
157 }
string _nameSearch
Definition: RenderRow.cs:92
string name
Definition: RenderRow.cs:30
string _nameSearchJP
Definition: RenderRow.cs:95
string GetText(string id="name", bool returnNull=false)
Definition: SourceData.cs:688

References _nameSearch, _nameSearchJP, SourceData< T, T2 >.BaseRow.GetText(), and name.

Referenced by WidgetSearch.Search().

◆ GetSprite()

Sprite RenderRow.GetSprite ( int  dir = 0,
int  skin = 0,
bool  snow = false 
)
inline

Definition at line 283 of file RenderRow.cs.

284 {
285 bool flag = this is SourceChara.Row;
287 {
288 Sprite sprite = replacer.GetSprite(dir, skin, snow);
289 if ((bool)sprite)
290 {
291 return sprite;
292 }
293 }
294 int[] array = null ?? _tiles;
295 if (sprites == null)
296 {
297 sprites = new Sprite[(skins == null) ? 1 : (skins.Length + 1), (array.Length == 0) ? 1 : array.Length];
298 }
299 if (flag)
300 {
301 dir = skin;
302 skin = 0;
303 }
304 if (skin != 0 && skin >= sprites.GetLength(0))
305 {
306 skin = 0;
307 }
308 if (dir < 0)
309 {
310 dir *= -1;
311 }
312 if (dir >= array.Length)
313 {
314 dir = 0;
315 }
316 if (!sprites[skin, dir])
317 {
318 MeshPass pass = renderData.pass;
319 if ((bool)pass)
320 {
321 Texture2D texture2D = pass.mat.GetTexture("_MainTex") as Texture2D;
322 ProceduralMesh pmesh = pass.pmesh;
323 int num = 0;
324 num = ((skin != 0) ? Mathf.Abs(array[dir] + (skins[skin - 1] / 100 * (int)renderData.pass.pmesh.tiling.x + skins[skin - 1] % 100) * ((array[dir] > 0) ? 1 : (-1))) : Mathf.Abs(array[dir]));
325 int num2 = (int)((float)texture2D.width / pmesh.tiling.x);
326 int num3 = (int)((float)texture2D.height / pmesh.tiling.y);
327 int num4 = (int)((float)num % pmesh.tiling.x);
328 int num5 = (int)((float)num / pmesh.tiling.x);
329 sprites[skin, dir] = Sprite.Create(texture2D, new Rect(num4 * num2, texture2D.height - (num5 + 1) * num3, num2, num3 * ((!renderData.multiSize) ? 1 : 2)), Vector2.zero, 100f, 0u, SpriteMeshType.FullRect);
330 }
331 else
332 {
333 sprites[skin, dir] = SpriteSheet.Get(idSprite);
334 if (!sprites[skin, dir])
335 {
336 sprites[skin, dir] = Resources.Load<Sprite>(pathSprite + idSprite) ?? Resources.Load<Sprite>(pathSprite + idSprite + "_0");
337 }
338 }
339 if (!sprites[skin, dir])
340 {
341 sprites[skin, dir] = Core.Instance.refs.spriteNull;
342 }
343 }
344 return sprites[skin, dir];
345 }
Sprite spriteNull
Definition: CoreRef.cs:394
CoreRef refs
Definition: Core.cs:51
ProceduralMesh pmesh
Definition: MeshPass.cs:25
Material mat
Definition: MeshPass.cs:21
MeshPass pass
Definition: RenderData.cs:17
virtual string idSprite
Definition: RenderRow.cs:115
SpriteReplacer replacer
Definition: RenderRow.cs:89
virtual string pathSprite
Definition: RenderRow.cs:113
Sprite[,] sprites
Definition: RenderRow.cs:74
int[] skins
Definition: RenderRow.cs:14
int[] _tiles
Definition: RenderRow.cs:12
bool HasSprite(string id, RenderData renderData=null)
Sprite GetSprite(string suffix="")
static Sprite Get(string id)
Definition: SpriteSheet.cs:28

References _tiles, SpriteSheet.Get(), SpriteReplacer.GetSprite(), SpriteReplacer.HasSprite(), idSprite, Core.Instance, MeshPass.mat, RenderData.multiSize, RenderData.pass, pathSprite, MeshPass.pmesh, Core.refs, renderData, replacer, skins, CoreRef.spriteNull, sprites, and ProceduralMesh.tiling.

Referenced by Card.GetSprite(), Chara.GetSprite(), SetImage(), and SetSpriteRenderer().

◆ GetTile()

virtual int RenderRow.GetTile ( SourceMaterial::Row  mat,
int  dir = 0 
)
inlinevirtual

Reimplemented in SourceBlock.Row, SourceCellEffect.Row, SourceDeco.Row, and SourceFloor.Row.

Definition at line 451 of file RenderRow.cs.

452 {
453 return _tiles[dir % _tiles.Length];
454 }

References _tiles.

Referenced by GetRenderParam(), and SetRenderParam().

◆ HasTag()

bool RenderRow.HasTag ( CTAG  _tag)
inline

Definition at line 136 of file RenderRow.cs.

137 {
138 return tag.Contains(_tag.ToString());
139 }

References tag.

Referenced by CodexManager.ListKills(), SourceChara.Row.SetTiles(), and ActEffect.Wish().

◆ OnImportData()

override void RenderRow.OnImportData ( SourceData  data)
inlinevirtual

Reimplemented from SourceData< T, T2 >.BaseRow.

Reimplemented in SourceThing.Row.

Definition at line 164 of file RenderRow.cs.

165 {
166 base.OnImportData(data);
167 _tiles = new int[0];
168 SetTiles();
169 if (defMat.Length > 0 && defMat[0] == '!')
170 {
171 fixedMaterial = true;
172 defMat = defMat.Substring(1, defMat.Length - 1);
173 }
174 else
175 {
176 fixedMaterial = false;
177 }
178 }
string defMat
Definition: RenderRow.cs:42
virtual void SetTiles()
Definition: RenderRow.cs:258
bool fixedMaterial
Definition: RenderRow.cs:66

References _tiles, defMat, fixedMaterial, and SetTiles().

◆ SetImage() [1/2]

void RenderRow.SetImage ( Image  image,
Sprite  sprite,
int  matCol,
bool  setNativeSize,
int  dir,
int  idSkin,
RenderData  _renderData,
SourcePref  _pref 
)
inline

Definition at line 386 of file RenderRow.cs.

387 {
388 image.sprite = sprite ?? GetSprite(dir, idSkin);
389 int num = ((matCol == 0) ? 104025 : matCol);
390 float num2 = 0.02f;
391 Color color = new Color(num2 * (float)(num % 262144 / 4096), num2 * (float)(num % 4096 / 64), num2 * (float)(num % 64), (float)(num / 262144) * 0.01f);
392 color.a = 1f;
393 image.color = color;
394 RectTransform rectTransform = image.Rect();
395 rectTransform.pivot = _renderData.imagePivot - new Vector2(0.01f * (float)_pref.pivotX, 0.01f * (float)_pref.pivotY);
396 float x = Mathf.Abs(image.transform.localScale.x) * (float)((_tiles == null || _tiles.Length == 0 || _tiles[dir % _tiles.Length] >= 0) ? 1 : (-1));
397 float y = image.transform.localScale.y;
398 image.transform.localScale = new Vector3(x, y, image.transform.localScale.z);
399 _pref.Validate();
400 if (setNativeSize)
401 {
402 image.SetNativeSize();
403 if (_renderData.imageScale.x != 1f || _renderData.imageScale.y != 1f || _pref.scaleIcon != 0)
404 {
405 rectTransform.sizeDelta = new Vector2(rectTransform.sizeDelta.x * (_renderData.imageScale.x + (float)_pref.scaleIcon * 0.01f), rectTransform.sizeDelta.y * (_renderData.imageScale.y + (float)_pref.scaleIcon * 0.01f));
406 }
407 }
408 }
Vector2 imageScale
Definition: RenderData.cs:29
Sprite GetSprite(int dir=0, int skin=0, bool snow=false)
Definition: RenderRow.cs:283
int scaleIcon
Definition: SourcePref.cs:293
void Validate()
Definition: SourcePref.cs:385

References _tiles, Color, GetSprite(), RenderData.imageScale, SourcePref.pivotX, SourcePref.pivotY, SourcePref.scaleIcon, and SourcePref.Validate().

◆ SetImage() [2/2]

void RenderRow.SetImage ( Image  image,
Sprite  sprite = null,
int  matCol = 0,
bool  setNativeSize = true,
int  dir = 0,
int  idSkin = 0,
Card  card = null 
)
inline

Definition at line 378 of file RenderRow.cs.

379 {
380 bool num = card != null && card.isChara && card.Chara.spriteReplacer != null && !card.HasHost;
381 SourcePref sourcePref = ((card != null) ? card.Pref : GetPref());
382 RenderData renderData = (num ? card.renderer.data : this.renderData);
383 SetImage(image, sprite, matCol, setNativeSize, dir, idSkin, renderData, sourcePref);
384 }
virtual SourcePref GetPref()
Definition: RenderRow.cs:373
void SetImage(Image image, Sprite sprite=null, int matCol=0, bool setNativeSize=true, int dir=0, int idSkin=0, Card card=null)
Definition: RenderRow.cs:378

References card, GetPref(), renderData, and SetImage().

Referenced by UIDragGridInfo.Init(), UIDragGridInfo.InitFuel(), DropdownGrid.OnChangeIngredient(), TraitFigure.OnSetCardGrid(), LayerInspect.Refresh(), UIRecipeInfo.RefreshImages(), GridItemCardSource.SetButton(), GridItemRecipe.SetButton(), Recipe.SetImage(), Card.SetImage(), SetImage(), ButtonResourceTrack.SetProp(), ButtonGrid.SetRecipe(), and ButtonGrid.SetRecipeVariation().

◆ SetRenderData()

void RenderRow.SetRenderData ( )
inline

Definition at line 180 of file RenderRow.cs.

181 {
182 replacer = new SpriteReplacer();
183 if (idRenderData.IsEmpty())
184 {
185 this.renderData = defaultRenderData;
186 }
187 else if (idRenderData[0] == '@')
188 {
189 string[] array = idRenderData.Replace("@", "").Split('#');
190 string text = array[0];
191 if (array.Length > 1)
192 {
193 aliasPref = array[1];
194 }
195 this.renderData = DictRenderData.TryGetValue(text);
196 if (this.renderData == null)
197 {
199 if (this is SourceChara.Row)
200 {
201 renderData.offset.x += renderData.pass.pmesh.size.x * 0.5f;
202 renderData.offset.y += renderData.pass.pmesh.size.y * 0.5f;
203 }
204 else
205 {
206 float num = renderData.pass.pmesh.size.x * 0.5f + renderData.pass.pmesh.pos.x;
207 float num2 = renderData.pass.pmesh.size.y * 0.5f + renderData.pass.pmesh.pos.y;
208 renderData.offset.x += num;
209 renderData.offset.y += num2;
210 renderData.offsetBack.x += num;
211 renderData.offsetBack.y += num2;
212 renderData.heldPos.x += num * 0.7f;
213 renderData.heldPos.y += num2 * 0.7f;
214 }
215 renderData.pass = null;
216 this.renderData = renderData;
218 }
219 }
220 else
221 {
223 }
224 if (!Application.isEditor && !aliasPref.IsEmpty())
225 {
227 }
228 if (pref == null)
229 {
230 pref = new SourcePref();
231 }
232 if (!this.renderData.initialized)
233 {
234 this.renderData.Init();
235 }
236 SetTiles();
237 string text2 = colorType;
238 if (!(text2 == "alt"))
239 {
240 if (text2 == "random")
241 {
242 useRandomColor = true;
243 }
244 }
245 else
246 {
247 useAltColor = true;
248 }
249 Dictionary<string, SourceMaterial.Row> alias = sources.materials.alias;
250 if (!alias.TryGetValue(defMat.IsEmpty("granite"), out var defaultMaterial))
251 {
252 defaultMaterial = alias["granite"];
253 Debug.LogError($"#source failed to set def mat '{defMat}' - {ModUtil.FindSourceRowPackage(this)}");
254 }
255 DefaultMaterial = defaultMaterial;
256 }
bool initialized
Definition: RenderData.cs:54
void Init()
Definition: RenderData.cs:95
SourceManager sources
Definition: RenderRow.cs:134
virtual string pathRenderData
Definition: RenderRow.cs:107
virtual RenderData defaultRenderData
Definition: RenderRow.cs:111
bool useRandomColor
Definition: RenderRow.cs:83
virtual string idRenderData
Definition: RenderRow.cs:109
static Dictionary< string, RenderData > DictRenderData
Definition: RenderRow.cs:8
string colorType
Definition: RenderRow.cs:44
string aliasPref
Definition: RenderRow.cs:50
SourceMaterial.Row DefaultMaterial
Definition: RenderRow.cs:86
Dictionary< string, CardRow > map
Definition: SourceCard.cs:9
SourceMaterial materials
SourceCard cards

References $, aliasPref, SourceManager.cards, colorType, Debug, DefaultMaterial, defaultRenderData, defMat, DictRenderData, idRenderData, RenderData.Init(), RenderData.initialized, SourceCard.map, SourceManager.materials, RenderData.pass, pathRenderData, MeshPass.pmesh, ProceduralMesh.pos, pref, renderData, replacer, SetTiles(), sources, useAltColor, and useRandomColor.

Referenced by SourceCard.AddRow(), and TileRow.Init().

◆ SetRenderParam()

void RenderRow.SetRenderParam ( RenderParam  p,
SourceMaterial::Row  mat,
int  dir 
)
inline

Definition at line 410 of file RenderRow.cs.

411 {
412 p.tile = GetTile(mat ?? DefaultMaterial, dir);
413 p.matColor = GetColorInt(mat ?? DefaultMaterial);
414 p.mat = mat ?? DefaultMaterial;
415 p.liquidLv = 0;
416 p.dir = dir;
417 p.cell = null;
418 }

References DefaultMaterial, GetColorInt(), and GetTile().

Referenced by BaseTileMap.DrawRoof().

◆ SetSpriteRenderer()

void RenderRow.SetSpriteRenderer ( SpriteRenderer  sr,
Sprite  sprite = null,
int  matCol = 0,
bool  setTransform = true,
int  dir = 0,
int  idSkin = 0 
)
inline

Definition at line 347 of file RenderRow.cs.

348 {
349 sr.sprite = sprite ?? GetSprite(dir, idSkin);
351 {
352 sr.sprite = EClass.core.refs.spriteThingActor;
353 }
354 int num = ((matCol == 0) ? 104025 : matCol);
355 float num2 = (float)(num / 262144) * 0.01f;
356 float num3 = 0.02f;
357 float num4 = 0.3f;
358 if (num2 != 0f)
359 {
360 num3 *= num2;
361 }
362 Color color = new Color(num3 * (float)(num % 262144 / 4096) + num4, num3 * (float)(num % 4096 / 64) + num4, num3 * (float)(num % 64) + num4, 1f);
363 sr.color = color;
364 if (setTransform)
365 {
366 float num5 = sr.bounds.max.x - sr.bounds.min.x;
367 _ = sr.bounds.max;
368 _ = sr.bounds.min;
369 sr.transform.localPosition = new Vector3(-0.5f * num5, 0f, 0f);
370 }
371 }
Sprite spriteThingActor
Definition: CoreRef.cs:404
Definition: EClass.cs:6
static Core core
Definition: EClass.cs:7

References Color, EClass.core, GetSprite(), Core.refs, renderData, and CoreRef.spriteThingActor.

◆ SetTiles()

virtual void RenderRow.SetTiles ( )
inlinevirtual

Reimplemented in SourceChara.Row, and SourceThing.Row.

Definition at line 258 of file RenderRow.cs.

259 {
260 if (!renderData || !renderData.pass)
261 {
262 return;
263 }
264 if (tiles == null || tiles.Length == 0)
265 {
266 _tiles = new int[1];
267 }
268 else if (_tiles.Length != tiles.Length)
269 {
270 _tiles = new int[tiles.Length];
271 for (int i = 0; i < tiles.Length; i++)
272 {
273 _tiles[i] = tiles[i] / 100 * (int)renderData.pass.pmesh.tiling.x + tiles[i] % 100;
274 }
275 }
276 }
int[] tiles
Definition: RenderRow.cs:10

References _tiles, RenderData.pass, MeshPass.pmesh, renderData, tiles, and ProceduralMesh.tiling.

Referenced by TileManager.ApplyRow(), OnImportData(), and SetRenderData().

Member Data Documentation

◆ _category

SourceCategory.Row RenderRow._category
private

Definition at line 98 of file RenderRow.cs.

◆ _idRenderData

string RenderRow._idRenderData

Definition at line 38 of file RenderRow.cs.

Referenced by CardRenderer.Draw().

◆ _nameSearch

string RenderRow._nameSearch

◆ _nameSearchJP

string RenderRow._nameSearchJP

◆ _recipeCat

string RenderRow._recipeCat
private

Definition at line 101 of file RenderRow.cs.

◆ _tiles

◆ _tileType

string RenderRow._tileType

Definition at line 40 of file RenderRow.cs.

Referenced by SourceCard.AddRow(), and TileRow.Init().

◆ aliasPref

string RenderRow.aliasPref

Definition at line 50 of file RenderRow.cs.

Referenced by SetRenderData().

◆ category

string RenderRow.category

Definition at line 46 of file RenderRow.cs.

Referenced by RecipeManager.Add(), SourceThingV.OnAfterImportData(), and CardFilter.Pass().

◆ chance

◆ colorMod

int RenderRow.colorMod

◆ colorType

string RenderRow.colorType

Definition at line 44 of file RenderRow.cs.

Referenced by SetRenderData().

◆ components

◆ DefaultMaterial

◆ defMat

string RenderRow.defMat

Definition at line 42 of file RenderRow.cs.

Referenced by SourceThingV.OnAfterImportData(), OnImportData(), and SetRenderData().

◆ detail

string RenderRow.detail

Definition at line 34 of file RenderRow.cs.

Referenced by SourceThingV.OnAfterImportData().

◆ detail_JP

string RenderRow.detail_JP

Definition at line 36 of file RenderRow.cs.

Referenced by SourceThingV.OnAfterImportData().

◆ DictRenderData

Dictionary<string, RenderData> RenderRow.DictRenderData = new Dictionary<string, RenderData>()
static

Definition at line 8 of file RenderRow.cs.

Referenced by SetRenderData().

◆ factory

string [] RenderRow.factory

Definition at line 54 of file RenderRow.cs.

Referenced by RecipeManager.Create(), and SourceThingV.OnAfterImportData().

◆ fixedMaterial

bool RenderRow.fixedMaterial

Definition at line 66 of file RenderRow.cs.

Referenced by Card.ChangeMaterial(), Card.Create(), and OnImportData().

◆ H

int RenderRow.H = 1

Definition at line 62 of file RenderRow.cs.

Referenced by CardRow.OnImportData().

◆ idSound

string RenderRow.idSound

Definition at line 48 of file RenderRow.cs.

◆ LV

◆ multisize

◆ name

◆ name_JP

string RenderRow.name_JP

Definition at line 32 of file RenderRow.cs.

Referenced by SourceChara.Row.GetSearchName(), and SourceThingV.OnAfterImportData().

◆ pref

◆ recipeKey

string [] RenderRow.recipeKey

◆ renderData

◆ replacer

SpriteReplacer RenderRow.replacer

Definition at line 89 of file RenderRow.cs.

Referenced by GetSprite(), CardActor.OnRender(), and SetRenderData().

◆ skins

int [] RenderRow.skins

Definition at line 14 of file RenderRow.cs.

Referenced by GetSprite(), and SourceThingV.OnAfterImportData().

◆ snowTile

int RenderRow.snowTile

Definition at line 28 of file RenderRow.cs.

Referenced by TileManager.BuildGrid(), BaseTileMap.DrawRoof(), and BaseTileMap.DrawTile().

◆ sort

◆ sprites

Sprite [,] RenderRow.sprites

Definition at line 74 of file RenderRow.cs.

Referenced by GetSprite().

◆ tag

◆ tempChance

int RenderRow.tempChance

Definition at line 26 of file RenderRow.cs.

◆ tiles

◆ tileType

◆ useAltColor

bool RenderRow.useAltColor

◆ useRandomColor

bool RenderRow.useRandomColor

Definition at line 83 of file RenderRow.cs.

Referenced by Card.RefreshColor(), and SetRenderData().

◆ value

int RenderRow.value

◆ W

int RenderRow.W = 1

Definition at line 60 of file RenderRow.cs.

Referenced by CardRow.OnImportData().

Property Documentation

◆ Category

SourceCategory.Row RenderRow.Category
get

Definition at line 119 of file RenderRow.cs.

120 {
121 get
122 {
123 if (_category == null && !sources.categories.map.TryGetValue(category, out _category))
124 {
125 Debug.LogError("#source unknown category '" + category + "' for " + GetType().DeclaringType?.Name + " " + RecipeID + ", using 'obj'");
126 _category = sources.categories.map["obj"];
127 }
128 return _category;
129 }
130 }
virtual string RecipeID
Definition: RenderRow.cs:105
string category
Definition: RenderRow.cs:46
SourceCategory.Row _category
Definition: RenderRow.cs:98
SourceCategory categories

Referenced by RecipeManager.ComeUpWithRecipe(), RecipeManager.GetLearnedRecipe(), UIDragGridInfo.InitFuel(), Recipe.IsStaticLV(), SpawnList.Select(), and Card.SpawnLoot().

◆ defaultRenderData

virtual RenderData RenderRow.defaultRenderData
get

Definition at line 111 of file RenderRow.cs.

Referenced by SetRenderData().

◆ idRenderData

virtual string RenderRow.idRenderData
get

Definition at line 109 of file RenderRow.cs.

Referenced by SetRenderData().

◆ idSprite

virtual string RenderRow.idSprite
get

Definition at line 115 of file RenderRow.cs.

Referenced by GetSprite().

◆ idString

virtual string RenderRow.idString
get

Definition at line 103 of file RenderRow.cs.

◆ pathRenderData

virtual string RenderRow.pathRenderData
get

Definition at line 107 of file RenderRow.cs.

Referenced by SetRenderData().

◆ pathSprite

virtual string RenderRow.pathSprite
get

Definition at line 113 of file RenderRow.cs.

Referenced by GetSprite().

◆ prefabName

virtual string RenderRow.prefabName
get

Definition at line 117 of file RenderRow.cs.

◆ RecipeCat

string RenderRow.RecipeCat
get

Definition at line 132 of file RenderRow.cs.

◆ RecipeID

virtual string RenderRow.RecipeID
get

◆ sources

SourceManager RenderRow.sources
get

Definition at line 134 of file RenderRow.cs.

Referenced by SetRenderData().


The documentation for this class was generated from the following file: