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

Public Member Functions

override string GetSearchName (bool jp)
 
override void SetTiles ()
 
override string GetName ()
 
- Public Member Functions inherited from CardRow
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

int _id
 
string aka_JP
 
string aka
 
int[] tiles_snow
 
string hostility
 
string biome
 
string race
 
string job
 
string tactics
 
string aiIdle
 
int[] aiParam
 
string[] actCombat
 
string[] mainElement
 
string equip
 
string[] gachaFilter
 
string tone
 
string[] actIdle
 
string bio
 
string faith
 
string[] works
 
string[] hobbies
 
string idText
 
string moveAnime
 
bool staticSkin
 
int[] _tiles_snow
 
SourceRace.Row _race_row
 
string name_L
 
string detail_L
 
string aka_L
 
- Public Attributes inherited from CardRow
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

override bool UseAlias [get]
 
override string GetAlias [get]
 
SourceRace.Row race_row [get]
 
override string RecipeID [get]
 
- Properties inherited from CardRow
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 7 of file SourceChara.cs.

Member Function Documentation

◆ GetName()

override string SourceChara.Row.GetName ( )
inlinevirtual

Reimplemented from CardRow.

Definition at line 111 of file SourceChara.cs.

112 {
113 string text = GetText();
114 text = text.Replace("#ele4", "").Replace("#ele3", "").Replace("#ele2", "")
115 .Replace("#ele", "");
116 if (text == "*r")
117 {
118 text = GetText("aka");
119 }
120 if (text[0] == ' ')
121 {
122 text = text.TrimStart(' ');
123 }
124 return text;
125 }
string GetText(string id="name", bool returnNull=false)
Definition: SourceData.cs:553

References SourceData< T, T2 >.BaseRow.GetText().

◆ GetSearchName()

override string SourceChara.Row.GetSearchName ( bool  jp)
inlinevirtual

Reimplemented from RenderRow.

Definition at line 79 of file SourceChara.cs.

80 {
81 object obj;
82 if (!jp)
83 {
84 obj = _nameSearch;
85 if (obj == null)
86 {
87 return _nameSearch = (name.StartsWith("*") ? aka : name).ToLower();
88 }
89 }
90 else
91 {
92 obj = _nameSearchJP ?? (_nameSearchJP = (name_JP.StartsWith("*") ? GetText("aka") : GetText()).ToLower());
93 }
94 return (string)obj;
95 }
string _nameSearch
Definition: RenderRow.cs:92
string name
Definition: RenderRow.cs:30
string _nameSearchJP
Definition: RenderRow.cs:95
string name_JP
Definition: RenderRow.cs:32

References RenderRow._nameSearch, RenderRow._nameSearchJP, SourceChara.Row.aka, SourceData< T, T2 >.BaseRow.GetText(), RenderRow.name, and RenderRow.name_JP.

◆ SetTiles()

override void SourceChara.Row.SetTiles ( )
inlinevirtual

Reimplemented from RenderRow.

Definition at line 97 of file SourceChara.cs.

98 {
99 base.SetTiles();
100 staticSkin = HasTag(CTAG.staticSkin);
101 if ((bool)renderData && (bool)renderData.pass && (_tiles_snow == null || _tiles_snow.Length != tiles_snow.Length))
102 {
103 _tiles_snow = new int[tiles_snow.Length];
104 for (int i = 0; i < tiles_snow.Length; i++)
105 {
106 _tiles_snow[i] = tiles_snow[i] / 100 * (int)renderData.pass.pmesh.tiling.x + tiles_snow[i] % 100;
107 }
108 }
109 }
CTAG
Definition: CTAG.cs:2
ProceduralMesh pmesh
Definition: MeshPass.cs:25
MeshPass pass
Definition: RenderData.cs:16
RenderData renderData
Definition: RenderRow.cs:71
bool HasTag(CTAG _tag)
Definition: RenderRow.cs:125

References SourceChara.Row._tiles_snow, RenderRow.HasTag(), RenderData.pass, MeshPass.pmesh, RenderRow.renderData, SourceChara.Row.staticSkin, SourceChara.Row.tiles_snow, and ProceduralMesh.tiling.

Member Data Documentation

◆ _id

int SourceChara.Row._id

Definition at line 9 of file SourceChara.cs.

◆ _race_row

SourceRace.Row SourceChara.Row._race_row

Definition at line 60 of file SourceChara.cs.

◆ _tiles_snow

int [] SourceChara.Row._tiles_snow

Definition at line 57 of file SourceChara.cs.

Referenced by Chara.SetRenderParam(), and SourceChara.Row.SetTiles().

◆ actCombat

string [] SourceChara.Row.actCombat

Definition at line 31 of file SourceChara.cs.

◆ actIdle

string [] SourceChara.Row.actIdle

Definition at line 41 of file SourceChara.cs.

◆ aiIdle

string SourceChara.Row.aiIdle

Definition at line 27 of file SourceChara.cs.

◆ aiParam

int [] SourceChara.Row.aiParam

Definition at line 29 of file SourceChara.cs.

◆ aka

string SourceChara.Row.aka

Definition at line 13 of file SourceChara.cs.

Referenced by SourceChara.Row.GetSearchName().

◆ aka_JP

string SourceChara.Row.aka_JP

Definition at line 11 of file SourceChara.cs.

◆ aka_L

string SourceChara.Row.aka_L

Definition at line 69 of file SourceChara.cs.

◆ bio

string SourceChara.Row.bio

Definition at line 43 of file SourceChara.cs.

◆ biome

string SourceChara.Row.biome

Definition at line 19 of file SourceChara.cs.

◆ detail_L

string SourceChara.Row.detail_L

Definition at line 66 of file SourceChara.cs.

◆ equip

string SourceChara.Row.equip

Definition at line 35 of file SourceChara.cs.

Referenced by Chara.RestockEquip().

◆ faith

string SourceChara.Row.faith

Definition at line 45 of file SourceChara.cs.

◆ gachaFilter

string [] SourceChara.Row.gachaFilter

Definition at line 37 of file SourceChara.cs.

◆ hobbies

string [] SourceChara.Row.hobbies

Definition at line 49 of file SourceChara.cs.

Referenced by Chara.RerollHobby().

◆ hostility

string SourceChara.Row.hostility

Definition at line 17 of file SourceChara.cs.

◆ idText

string SourceChara.Row.idText

Definition at line 51 of file SourceChara.cs.

Referenced by Chara.GetTopicText().

◆ job

string SourceChara.Row.job

Definition at line 23 of file SourceChara.cs.

Referenced by ContentCodex.RefreshInfo(), Tactics.Tactics(), and DNA.WriteNote().

◆ mainElement

string [] SourceChara.Row.mainElement

Definition at line 33 of file SourceChara.cs.

Referenced by SpawnList.Filter().

◆ moveAnime

string SourceChara.Row.moveAnime

Definition at line 53 of file SourceChara.cs.

Referenced by Chara._CreateRenderer().

◆ name_L

string SourceChara.Row.name_L

Definition at line 63 of file SourceChara.cs.

◆ race

string SourceChara.Row.race

Definition at line 21 of file SourceChara.cs.

Referenced by CardRenderer.Draw(), and ContentCodex.RefreshInfo().

◆ staticSkin

bool SourceChara.Row.staticSkin

Definition at line 55 of file SourceChara.cs.

Referenced by Chara.GetSprite(), Chara.SetRenderParam(), and SourceChara.Row.SetTiles().

◆ tactics

string SourceChara.Row.tactics

Definition at line 25 of file SourceChara.cs.

Referenced by Chara.GetHoverText2(), Tactics.Tactics(), and DNA.WriteNote().

◆ tiles_snow

int [] SourceChara.Row.tiles_snow

Definition at line 15 of file SourceChara.cs.

Referenced by SourceChara.Row.SetTiles().

◆ tone

string SourceChara.Row.tone

Definition at line 39 of file SourceChara.cs.

◆ works

string [] SourceChara.Row.works

Definition at line 47 of file SourceChara.cs.

Referenced by Chara.RerollHobby().

Property Documentation

◆ GetAlias

override string SourceChara.Row.GetAlias
get

Definition at line 73 of file SourceChara.cs.

◆ race_row

SourceRace.Row SourceChara.Row.race_row
get

Definition at line 75 of file SourceChara.cs.

Referenced by CharaFilter.ContainsTag(), and TraitCrafter.IsIngredient().

◆ RecipeID

override string SourceChara.Row.RecipeID
get

Definition at line 77 of file SourceChara.cs.

◆ UseAlias

override bool SourceChara.Row.UseAlias
get

Definition at line 71 of file SourceChara.cs.


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