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

Public Member Functions

override void OnInit ()
 
- Public Member Functions inherited from TileRow
void Init ()
 
virtual void OnInit ()
 
- 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, 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

string[] _growth
 
int costSoil
 
string objType
 
string[] vals
 
string[] reqHarvest
 
string valType
 
int[] anime
 
string matCategory
 
int idRoof
 
bool HasGrowth
 
bool autoTile
 
GrowSystem growth
 
ObjValType objValType
 
string name_L
 
string detail_L
 
- Public Attributes inherited from TileRow
bool ignoreSnow
 
int id
 
int hp
 
string alias
 
string soundFoot
 
- 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]
 
override RenderData defaultRenderData [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, RenderData > DictRenderData = new Dictionary<string, RenderData>()
 

Detailed Description

Definition at line 8 of file SourceObj.cs.

Member Function Documentation

◆ OnInit()

override void SourceObj.Row.OnInit ( )
inlinevirtual

Reimplemented from TileRow.

Definition at line 52 of file SourceObj.cs.

53 {
54 if (valType.IsEmpty())
55 {
57 }
58 else if (!Enum.TryParse<ObjValType>(valType, ignoreCase: true, out objValType))
59 {
60 Debug.LogWarning($"#source obj {id}/{alias} has unknown val type '{valType}', using 'None'");
62 }
63 autoTile = tag.Contains("autotile");
64 HasGrowth = false;
65 growth = null;
66 if (_growth.IsEmpty())
67 {
68 return;
69 }
70 string arg = "GrowSystem" + _growth[0];
71 growth = ClassCache.Create<GrowSystem>(arg, "Elin");
72 if (growth == null)
73 {
74 Debug.LogWarning($"#source obj {id}/{alias} has unknown growth class '{arg}', growing disabled");
75 return;
76 }
77 try
78 {
79 growth.Init(this);
80 HasGrowth = true;
81 }
82 catch (Exception ex)
83 {
84 Debug.LogWarning($"#source obj {id}/{alias} has invalid _growth '{string.Join(',', _growth)}', growing disabled\n{ex.Message}");
85 growth = null;
86 }
87 }
ObjValType
Definition: ObjValType.cs:2
void Init(SourceObj.Row _row)
Definition: GrowSystem.cs:154
string[] tag
Definition: RenderRow.cs:58
bool HasGrowth
Definition: SourceObj.cs:29
ObjValType objValType
Definition: SourceObj.cs:36
string valType
Definition: SourceObj.cs:20
string[] _growth
Definition: SourceObj.cs:10
GrowSystem growth
Definition: SourceObj.cs:34
bool autoTile
Definition: SourceObj.cs:32

References $, SourceObj.Row._growth, SourceObj.Row.autoTile, Debug, SourceObj.Row.growth, SourceObj.Row.HasGrowth, GrowSystem.Init(), SourceObj.Row.objValType, RenderRow.tag, and SourceObj.Row.valType.

Member Data Documentation

◆ _growth

string [] SourceObj.Row._growth

Definition at line 10 of file SourceObj.cs.

Referenced by SourceObj.Row.OnInit().

◆ anime

int [] SourceObj.Row.anime

Definition at line 22 of file SourceObj.cs.

◆ autoTile

bool SourceObj.Row.autoTile

Definition at line 32 of file SourceObj.cs.

Referenced by SourceObj.Row.OnInit().

◆ costSoil

int SourceObj.Row.costSoil

Definition at line 12 of file SourceObj.cs.

◆ detail_L

string SourceObj.Row.detail_L

Definition at line 42 of file SourceObj.cs.

◆ growth

GrowSystem SourceObj.Row.growth

Definition at line 34 of file SourceObj.cs.

Referenced by TileManager.Allocate(), and SourceObj.Row.OnInit().

◆ HasGrowth

bool SourceObj.Row.HasGrowth

◆ idRoof

int SourceObj.Row.idRoof

Definition at line 26 of file SourceObj.cs.

◆ matCategory

string SourceObj.Row.matCategory

Definition at line 24 of file SourceObj.cs.

Referenced by Map.SetObj().

◆ name_L

string SourceObj.Row.name_L

Definition at line 39 of file SourceObj.cs.

◆ objType

string SourceObj.Row.objType

Definition at line 14 of file SourceObj.cs.

◆ objValType

ObjValType SourceObj.Row.objValType

Definition at line 36 of file SourceObj.cs.

Referenced by SourceObj.Row.OnInit().

◆ reqHarvest

string [] SourceObj.Row.reqHarvest

Definition at line 18 of file SourceObj.cs.

◆ vals

string [] SourceObj.Row.vals

Definition at line 16 of file SourceObj.cs.

◆ valType

string SourceObj.Row.valType

Definition at line 20 of file SourceObj.cs.

Referenced by SourceObj.Row.OnInit().

Property Documentation

◆ defaultRenderData

override RenderData SourceObj.Row.defaultRenderData
get

Definition at line 50 of file SourceObj.cs.

◆ GetAlias

override string SourceObj.Row.GetAlias
get

Definition at line 46 of file SourceObj.cs.

◆ RecipeID

override string SourceObj.Row.RecipeID
get

Definition at line 48 of file SourceObj.cs.

◆ UseAlias

override bool SourceObj.Row.UseAlias
get

Definition at line 44 of file SourceObj.cs.


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