Elin Decompiled Documentation EA 23.284 Nightly Patch 2
Loading...
Searching...
No Matches
RendererReplacer.cs
Go to the documentation of this file.
1public class RendererReplacer : EClass
2{
3 public int tile = 1820;
4
5 public int mat = -1;
6
8
10
11 public static RendererReplacer CreateFrom(string id, int shift = 0, int mat = -1)
12 {
13 CardRow cardRow = EClass.sources.cards.map.TryGetValue(id);
14 if (cardRow == null || cardRow.tiles.Length == 0)
15 {
16 cardRow = EClass.sources.cards.map["money2"];
17 }
18 return new RendererReplacer
19 {
20 tile = cardRow._tiles[0] + shift,
21 data = cardRow.renderData,
22 pref = cardRow.pref,
23 mat = mat
24 };
25 }
26}
Definition: EClass.cs:6
static SourceManager sources
Definition: EClass.cs:43
RenderData renderData
Definition: RenderRow.cs:71
SourcePref pref
Definition: RenderRow.cs:68
int[] _tiles
Definition: RenderRow.cs:12
int[] tiles
Definition: RenderRow.cs:10
static RendererReplacer CreateFrom(string id, int shift=0, int mat=-1)
Dictionary< string, CardRow > map
Definition: SourceCard.cs:9
SourceCard cards