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

Public Member Functions

override SourcePref GetPref ()
 
override void OnImportData (SourceData data)
 
virtual string GetName (int i)
 
virtual string GetName (SourceMaterial.Row mat, int sum)
 
override string GetEditorListName ()
 
override string GetName ()
 
string GetName (Card c, bool full=false)
 
- Public Member Functions inherited from RenderRow
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)
 
virtual SourcePref GetPref ()
 
void SetImage (Image image, Sprite sprite=null, int matCol=0, bool setNativeSize=true, int dir=0, int idSkin=0)
 
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
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)
 

Public Attributes

string id
 
string idExtra
 
string tierGroup
 
string lightData
 
string _origin
 
int idShadow
 
int quality
 
int[] elements
 
int[] shadow
 
int[] size
 
int[] light
 
string[] loot
 
string[] filter
 
string[] trait
 
string[] idActor
 
string[] vals
 
string[] name2
 
string[] name2_JP
 
Dictionary< int, int > elementMap
 
Sprite sprite
 
CardRow origin
 
bool isOrigin
 
bool isChara
 
Card _model
 
- Public Attributes inherited from RenderRow
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
 

Properties

Card model [get]
 
override string idRenderData [get]
 
override string idSprite [get]
 
override string idString [get]
 
override string pathSprite [get]
 
- Properties inherited from RenderRow
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]
 

Additional Inherited Members

- Static Public Attributes inherited from RenderRow
static Dictionary< string, RenderDataDictRenderData = new Dictionary<string, RenderData>()
 

Detailed Description

Definition at line 5 of file CardRow.cs.

Member Function Documentation

◆ GetEditorListName()

override string CardRow.GetEditorListName ( )
inlinevirtual

Reimplemented from SourceData< T, T2 >.BaseRow.

Definition at line 105 of file CardRow.cs.

106 {
107 return this.GetField<string>("id") + "-" + this.GetField<string>("name_JP");
108 }

◆ GetName() [1/4]

override string CardRow.GetName ( )
inlinevirtual

Reimplemented from SourceData< T, T2 >.BaseRow.

Reimplemented in SourceChara.Row, and SourceThing.Row.

Definition at line 110 of file CardRow.cs.

111 {
112 return GetName(null);
113 }
override string GetName()
Definition: CardRow.cs:110

References GetName().

Referenced by GetName().

◆ GetName() [2/4]

string CardRow.GetName ( Card  c,
bool  full = false 
)
inline

Definition at line 115 of file CardRow.cs.

116 {
117 string text = base.GetName();
119 if (c != null && c.isChara)
120 {
121 source = c.Chara.MainElement.source;
122 }
123 text = ((source == Element.Void.source) ? text.Replace("#ele4", "").Replace("#ele3", "").Replace("#ele2", "")
124 .Replace("#ele", "") : text.Replace("#ele4", source.GetAltname(2)).Replace("#ele3", source.GetAltname(1)).Replace("#ele2", source.GetAltname(0))
125 .Replace("#ele", source.GetName().ToLower()));
126 string text2 = GetText("aka");
127 if (text == "*r")
128 {
129 return text2;
130 }
131 int type = ((quality == 3) ? 3 : ((quality < 2) ? 1 : 2));
132 if (full && !text2.IsEmpty())
133 {
134 text = text2.ToTitleCase(wholeText: true) + Lang.space + text.Bracket(type);
135 }
136 return text;
137 }
int quality
Definition: CardRow.cs:19
virtual Chara Chara
Definition: Card.cs:1946
virtual bool isChara
Definition: Card.cs:1959
Element MainElement
Definition: Chara.cs:702
SourceElement.Row source
Definition: ELEMENT.cs:263
static Element Void
Definition: ELEMENT.cs:228
string GetText(string id="name", bool returnNull=false)
Definition: SourceData.cs:553
override string GetName()
string GetAltname(int i)

References Card.Chara, SourceElement.Row.GetAltname(), SourceElement.Row.GetName(), SourceData< T, T2 >.BaseRow.GetText(), Card.isChara, Chara.MainElement, quality, Element.source, and Element.Void.

◆ GetName() [3/4]

virtual string CardRow.GetName ( int  i)
inlinevirtual

◆ GetName() [4/4]

virtual string CardRow.GetName ( SourceMaterial::Row  mat,
int  sum 
)
inlinevirtual

Reimplemented in SourceThing.Row.

Definition at line 100 of file CardRow.cs.

101 {
102 return "_of2".lang(mat.GetName(), GetName()) + " (" + sum + ")";
103 }

References GetName().

◆ GetPref()

override SourcePref CardRow.GetPref ( )
inlinevirtual

Reimplemented from RenderRow.

Definition at line 70 of file CardRow.cs.

71 {
72 if (origin != null && !pref.UsePref)
73 {
74 return origin.pref;
75 }
76 return pref;
77 }
CardRow origin
Definition: CardRow.cs:49
SourcePref pref
Definition: RenderRow.cs:68
bool UsePref
Definition: SourcePref.cs:310

References origin, RenderRow.pref, and SourcePref.UsePref.

◆ OnImportData()

override void CardRow.OnImportData ( SourceData  data)
inlinevirtual

Reimplemented from SourceData< T, T2 >.BaseRow.

Reimplemented in SourceThing.Row.

Definition at line 79 of file CardRow.cs.

80 {
81 base.OnImportData(data);
82 if (size == null || size.Length == 0)
83 {
84 W = (H = 1);
85 multisize = false;
86 }
87 else
88 {
89 W = size[0];
90 H = size[1];
91 multisize = true;
92 }
93 }
int[] size
Definition: CardRow.cs:25
bool multisize
Definition: RenderRow.cs:64

References RenderRow.H, RenderRow.multisize, size, and RenderRow.W.

Member Data Documentation

◆ _model

Card CardRow._model

Definition at line 58 of file CardRow.cs.

◆ _origin

◆ elementMap

Dictionary<int, int> CardRow.elementMap

Definition at line 43 of file CardRow.cs.

Referenced by ElementContainerCard.SetOwner().

◆ elements

int [] CardRow.elements

◆ filter

string [] CardRow.filter

Definition at line 31 of file CardRow.cs.

Referenced by CardFilter.Pass().

◆ id

◆ idActor

string [] CardRow.idActor

◆ idExtra

string CardRow.idExtra

Definition at line 9 of file CardRow.cs.

Referenced by CardRenderer.Draw(), and CardRenderer.RefreshExtra().

◆ idShadow

int CardRow.idShadow

Definition at line 17 of file CardRow.cs.

◆ isChara

◆ isOrigin

bool CardRow.isOrigin

◆ light

int [] CardRow.light

Definition at line 27 of file CardRow.cs.

◆ lightData

string CardRow.lightData

Definition at line 13 of file CardRow.cs.

Referenced by SerializedCards.Restore().

◆ loot

string [] CardRow.loot

Definition at line 29 of file CardRow.cs.

Referenced by Card.SpawnLoot().

◆ name2

string [] CardRow.name2

Definition at line 39 of file CardRow.cs.

Referenced by SourceFood.OnImportRow().

◆ name2_JP

string [] CardRow.name2_JP

Definition at line 41 of file CardRow.cs.

Referenced by SourceFood.OnImportRow().

◆ origin

CardRow CardRow.origin

◆ quality

◆ shadow

int [] CardRow.shadow

Definition at line 23 of file CardRow.cs.

◆ size

int [] CardRow.size

Definition at line 25 of file CardRow.cs.

Referenced by OnImportData().

◆ sprite

Sprite CardRow.sprite

Definition at line 46 of file CardRow.cs.

◆ tierGroup

string CardRow.tierGroup

Definition at line 11 of file CardRow.cs.

Referenced by Card.Create().

◆ trait

string [] CardRow.trait

◆ vals

Property Documentation

◆ idRenderData

override string CardRow.idRenderData
get

Definition at line 62 of file CardRow.cs.

Referenced by SerializedCards.Add().

◆ idSprite

override string CardRow.idSprite
get

Definition at line 64 of file CardRow.cs.

◆ idString

override string CardRow.idString
get

Definition at line 66 of file CardRow.cs.

◆ model

Card CardRow.model
get

Definition at line 60 of file CardRow.cs.

Referenced by CardRenderer.Draw(), Card.TryMakeRandomItem(), and Thing.WriteNote().

◆ pathSprite

override string CardRow.pathSprite
get

Definition at line 68 of file CardRow.cs.


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