Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
SourceGlobalTile Class Reference
Inheritance diagram for SourceGlobalTile:
SourceDataInt< SourceGlobalTile.Row >

Classes

class  Row
 

Public Member Functions

override Row CreateRow ()
 
override void SetRow (Row r)
 
override void OnInit ()
 
- Public Member Functions inherited from SourceDataInt< SourceGlobalTile.Row >
override T GetRow (string id)
 

Public Attributes

Dictionary< int, RowtileAlias = new Dictionary<int, Row>()
 

Detailed Description

Definition at line 4 of file SourceGlobalTile.cs.

Member Function Documentation

◆ CreateRow()

override Row SourceGlobalTile.CreateRow ( )
inline

Definition at line 44 of file SourceGlobalTile.cs.

45 {
46 return new Row
47 {
48 id = SourceData.GetInt(0),
49 alias = SourceData.GetString(1),
50 name_JP = SourceData.GetString(2),
51 name = SourceData.GetString(3),
52 tiles = SourceData.GetIntArray(4),
53 floor = SourceData.GetInt(5),
54 zoneProfile = SourceData.GetString(6),
56 dangerLv = SourceData.GetInt(8),
57 trait = SourceData.GetStringArray(9),
58 idBiome = SourceData.GetString(10),
59 attribs = SourceData.GetIntArray(11),
60 detail_JP = SourceData.GetString(12),
61 detail = SourceData.GetString(13)
62 };
63 }
static string[] GetStringArray(int id)
Definition: SourceData.cs:741
static string GetString(int id)
Definition: SourceData.cs:746
static int GetInt(int id)
Definition: SourceData.cs:711
static int[] GetIntArray(int id)
Definition: SourceData.cs:736

References SourceData< T, T2 >.GetInt(), SourceData< T, T2 >.GetIntArray(), SourceData< T, T2 >.GetString(), and SourceData< T, T2 >.GetStringArray().

◆ OnInit()

override void SourceGlobalTile.OnInit ( )
inline

Definition at line 70 of file SourceGlobalTile.cs.

71 {
72 foreach (Row row in rows)
73 {
74 int[] tiles = row.tiles;
75 foreach (int key in tiles)
76 {
77 tileAlias[key] = row;
78 }
79 }
80 }
Dictionary< int, Row > tileAlias

References tileAlias, and SourceGlobalTile.Row.tiles.

◆ SetRow()

override void SourceGlobalTile.SetRow ( Row  r)
inline

Definition at line 65 of file SourceGlobalTile.cs.

66 {
67 map[r.id] = r;
68 }

References SourceGlobalTile.Row.id.

Member Data Documentation

◆ tileAlias

Dictionary<int, Row> SourceGlobalTile.tileAlias = new Dictionary<int, Row>()

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