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

Public Member Functions

override void OnImportData (SourceData data)
 
override void SetTiles ()
 
override string GetName (SourceMaterial.Row mat, int sum)
 
override string GetName ()
 
override string GetSearchName (bool jp)
 
- 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

string unknown_JP
 
string unit_JP
 
string naming
 
string unit
 
string unknown
 
int[] altTiles
 
int[] anime
 
string[] disassemble
 
int HP
 
int weight
 
int electricity
 
int range
 
string attackType
 
int[] offense
 
int[] substats
 
int[] defense
 
string idToggleExtra
 
string idActorEx
 
string workTag
 
string[] roomName_JP
 
string[] roomName
 
int[] _altTiles
 
bool ignoreAltFix
 
string name_L
 
string detail_L
 
string unit_L
 
string unknown_L
 
string[] name2_L
 
string[] roomName_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]
 
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 SourceThing.cs.

Member Function Documentation

◆ GetName() [1/2]

override string SourceThing.Row.GetName ( )
inlinevirtual

Reimplemented from CardRow.

Definition at line 120 of file SourceThing.cs.

121 {
122 string text = GetText();
123 if (Lang.setting.nameStyle == 0)
124 {
125 return text;
126 }
127 if (!unit.IsEmpty())
128 {
129 return "_of".lang(text, unit);
130 }
131 return text;
132 }
Definition: Lang.cs:6
static LangSetting setting
Definition: Lang.cs:54
string GetText(string id="name", bool returnNull=false)
Definition: SourceData.cs:553

References SourceData< T, T2 >.BaseRow.GetText(), LangSetting.nameStyle, Lang.setting, and SourceThing.Row.unit.

Referenced by SourceThing.Row.GetName().

◆ GetName() [2/2]

override string SourceThing.Row.GetName ( SourceMaterial::Row  mat,
int  sum 
)
inlinevirtual

Reimplemented from CardRow.

Definition at line 107 of file SourceThing.cs.

108 {
109 if (naming == "m")
110 {
111 return base.GetName(mat, sum);
112 }
113 if (naming == "ma")
114 {
115 return mat.GetName() + " (" + sum + ")";
116 }
117 return GetName() + " (" + sum + ")";
118 }
override string GetName()
Definition: SourceThing.cs:120

References SourceThing.Row.GetName(), and SourceThing.Row.naming.

◆ GetSearchName()

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

Reimplemented from RenderRow.

Definition at line 134 of file SourceThing.cs.

135 {
136 if (jp)
137 {
138 return _nameSearchJP ?? (_nameSearchJP = GetText().ToLower());
139 }
140 return _nameSearch ?? (_nameSearch = (unit.IsEmpty() ? name : (unit + " of " + name)).ToLower());
141 }
string _nameSearch
Definition: RenderRow.cs:92
string name
Definition: RenderRow.cs:30
string _nameSearchJP
Definition: RenderRow.cs:95

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

◆ OnImportData()

override void SourceThing.Row.OnImportData ( SourceData  data)
inlinevirtual

Reimplemented from CardRow.

Definition at line 79 of file SourceThing.cs.

80 {
81 base.OnImportData(data);
82 _altTiles = new int[0];
83 }

References SourceThing.Row._altTiles.

Referenced by SourceThingV.OnAfterImportData().

◆ SetTiles()

override void SourceThing.Row.SetTiles ( )
inlinevirtual

Reimplemented from RenderRow.

Definition at line 85 of file SourceThing.cs.

86 {
87 if (!renderData || !renderData.pass)
88 {
89 return;
90 }
91 base.SetTiles();
92 if (_altTiles.Length != altTiles.Length)
93 {
94 _altTiles = new int[altTiles.Length];
95 int num = 0;
96 if (origin != null && !ignoreAltFix)
97 {
98 num = _tiles[0] - origin._tiles[0];
99 }
100 for (int i = 0; i < altTiles.Length; i++)
101 {
102 _altTiles[i] = altTiles[i] / 100 * (int)renderData.pass.pmesh.tiling.x + altTiles[i] % 100 + num;
103 }
104 }
105 }
CardRow origin
Definition: CardRow.cs:49
ProceduralMesh pmesh
Definition: MeshPass.cs:25
MeshPass pass
Definition: RenderData.cs:16
RenderData renderData
Definition: RenderRow.cs:71
int[] _tiles
Definition: RenderRow.cs:12

References SourceThing.Row._altTiles, RenderRow._tiles, SourceThing.Row.altTiles, SourceThing.Row.ignoreAltFix, CardRow.origin, RenderData.pass, MeshPass.pmesh, RenderRow.renderData, and ProceduralMesh.tiling.

Member Data Documentation

◆ _altTiles

int [] SourceThing.Row._altTiles

◆ altTiles

int [] SourceThing.Row.altTiles

Definition at line 19 of file SourceThing.cs.

Referenced by SourceThing.Row.SetTiles().

◆ anime

int [] SourceThing.Row.anime

Definition at line 21 of file SourceThing.cs.

Referenced by Thing.SetRenderParam().

◆ attackType

string SourceThing.Row.attackType

Definition at line 33 of file SourceThing.cs.

◆ defense

int [] SourceThing.Row.defense

Definition at line 39 of file SourceThing.cs.

◆ detail_L

string SourceThing.Row.detail_L

Definition at line 59 of file SourceThing.cs.

◆ disassemble

string [] SourceThing.Row.disassemble

Definition at line 23 of file SourceThing.cs.

◆ electricity

int SourceThing.Row.electricity

Definition at line 29 of file SourceThing.cs.

◆ HP

int SourceThing.Row.HP

Definition at line 25 of file SourceThing.cs.

◆ idActorEx

string SourceThing.Row.idActorEx

Definition at line 43 of file SourceThing.cs.

◆ idToggleExtra

string SourceThing.Row.idToggleExtra

Definition at line 41 of file SourceThing.cs.

◆ ignoreAltFix

bool SourceThing.Row.ignoreAltFix

Definition at line 53 of file SourceThing.cs.

Referenced by SourceThing.Row.SetTiles().

◆ name2_L

string [] SourceThing.Row.name2_L

Definition at line 68 of file SourceThing.cs.

◆ name_L

string SourceThing.Row.name_L

Definition at line 56 of file SourceThing.cs.

◆ naming

string SourceThing.Row.naming

Definition at line 13 of file SourceThing.cs.

Referenced by SourceThing.Row.GetName().

◆ offense

int [] SourceThing.Row.offense

Definition at line 35 of file SourceThing.cs.

◆ range

int SourceThing.Row.range

Definition at line 31 of file SourceThing.cs.

◆ roomName

string [] SourceThing.Row.roomName

Definition at line 49 of file SourceThing.cs.

◆ roomName_JP

string [] SourceThing.Row.roomName_JP

Definition at line 47 of file SourceThing.cs.

◆ roomName_L

string [] SourceThing.Row.roomName_L

Definition at line 71 of file SourceThing.cs.

◆ substats

int [] SourceThing.Row.substats

Definition at line 37 of file SourceThing.cs.

◆ unit

string SourceThing.Row.unit

◆ unit_JP

string SourceThing.Row.unit_JP

Definition at line 11 of file SourceThing.cs.

Referenced by SourceThingV.OnAfterImportData(), and SourceFood.OnImportRow().

◆ unit_L

string SourceThing.Row.unit_L

Definition at line 62 of file SourceThing.cs.

◆ unknown

string SourceThing.Row.unknown

Definition at line 17 of file SourceThing.cs.

◆ unknown_JP

string SourceThing.Row.unknown_JP

Definition at line 9 of file SourceThing.cs.

◆ unknown_L

string SourceThing.Row.unknown_L

Definition at line 65 of file SourceThing.cs.

◆ weight

int SourceThing.Row.weight

Definition at line 27 of file SourceThing.cs.

Referenced by SourceThingV.OnAfterImportData().

◆ workTag

string SourceThing.Row.workTag

Definition at line 45 of file SourceThing.cs.

Property Documentation

◆ GetAlias

override string SourceThing.Row.GetAlias
get

Definition at line 75 of file SourceThing.cs.

◆ RecipeID

override string SourceThing.Row.RecipeID
get

Definition at line 77 of file SourceThing.cs.

◆ UseAlias

override bool SourceThing.Row.UseAlias
get

Definition at line 73 of file SourceThing.cs.


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