Elin Decompiled Documentation EA 23.102 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)
 
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[] _growth
 
int costSoil
 
string objType
 
string[] vals
 
string[] reqHarvest
 
string valType
 
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, RenderDataDictRenderData = new Dictionary<string, RenderData>()
 

Detailed Description

Definition at line 7 of file SourceObj.cs.

Member Function Documentation

◆ OnInit()

override void SourceObj.Row.OnInit ( )
inlinevirtual

Reimplemented from TileRow.

Definition at line 49 of file SourceObj.cs.

50 {
51 objValType = ((!valType.IsEmpty()) ? valType.ToEnum<ObjValType>() : ObjValType.None);
52 autoTile = tag.Contains("autotile");
53 if (!_growth.IsEmpty())
54 {
55 growth = ClassCache.Create<GrowSystem>("GrowSystem" + _growth[0], "Elin");
56 growth.Init(this);
57 HasGrowth = true;
58 }
59 else
60 {
61 HasGrowth = false;
62 }
63 }
ObjValType
Definition: ObjValType.cs:2
void Init(SourceObj.Row _row)
Definition: GrowSystem.cs:131
string[] tag
Definition: RenderRow.cs:58
bool HasGrowth
Definition: SourceObj.cs:26
ObjValType objValType
Definition: SourceObj.cs:33
string valType
Definition: SourceObj.cs:19
string[] _growth
Definition: SourceObj.cs:9
GrowSystem growth
Definition: SourceObj.cs:31
bool autoTile
Definition: SourceObj.cs:29

References SourceObj.Row._growth, SourceObj.Row.autoTile, 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 9 of file SourceObj.cs.

Referenced by SourceObj.Row.OnInit().

◆ autoTile

bool SourceObj.Row.autoTile

Definition at line 29 of file SourceObj.cs.

Referenced by SourceObj.Row.OnInit().

◆ costSoil

int SourceObj.Row.costSoil

Definition at line 11 of file SourceObj.cs.

◆ detail_L

string SourceObj.Row.detail_L

Definition at line 39 of file SourceObj.cs.

◆ growth

GrowSystem SourceObj.Row.growth

Definition at line 31 of file SourceObj.cs.

Referenced by BaseTileMap.DrawTile(), and SourceObj.Row.OnInit().

◆ HasGrowth

bool SourceObj.Row.HasGrowth

◆ idRoof

int SourceObj.Row.idRoof

Definition at line 23 of file SourceObj.cs.

◆ matCategory

string SourceObj.Row.matCategory

Definition at line 21 of file SourceObj.cs.

Referenced by Map.SetObj().

◆ name_L

string SourceObj.Row.name_L

Definition at line 36 of file SourceObj.cs.

◆ objType

string SourceObj.Row.objType

Definition at line 13 of file SourceObj.cs.

◆ objValType

ObjValType SourceObj.Row.objValType

Definition at line 33 of file SourceObj.cs.

Referenced by SourceObj.Row.OnInit().

◆ reqHarvest

string [] SourceObj.Row.reqHarvest

Definition at line 17 of file SourceObj.cs.

◆ vals

string [] SourceObj.Row.vals

Definition at line 15 of file SourceObj.cs.

◆ valType

string SourceObj.Row.valType

Definition at line 19 of file SourceObj.cs.

Referenced by SourceObj.Row.OnInit().

Property Documentation

◆ defaultRenderData

override RenderData SourceObj.Row.defaultRenderData
get

Definition at line 47 of file SourceObj.cs.

◆ GetAlias

override string SourceObj.Row.GetAlias
get

Definition at line 43 of file SourceObj.cs.

◆ RecipeID

override string SourceObj.Row.RecipeID
get

Definition at line 45 of file SourceObj.cs.

◆ UseAlias

override bool SourceObj.Row.UseAlias
get

Definition at line 41 of file SourceObj.cs.


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