Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
BiomeProfile.Tile Class Reference
Inheritance diagram for BiomeProfile.Tile:
BiomeProfile.BaseTile BiomeProfile.TileBlock BiomeProfile.TileFloor

Public Member Functions

int GetDir ()
 

Public Attributes

int id
 
int mat
 
int idSub
 
int matSub
 
SubType subType
 
DirType dirType
 

Properties

string _mat [get, set]
 
string _matSub [get, set]
 

Additional Inherited Members

- Public Types inherited from BiomeProfile.BaseTile
enum  SubType {
  None = 0 , Rnd5 = 10 , Rnd10 = 11 , Rnd20 = 12 ,
  Pattern = 20
}
 
enum  DirType { Random8 , RandomSqrt8 , RandomSqrtSqrt8 }
 
- Protected Member Functions inherited from BiomeProfile.BaseTile
string _GetThing (string id)
 
void _SetThing (ref string id, string value)
 
IEnumerable< string > ThingRows ()
 
string _GetObj (int id)
 
void _SetObj (ref int id, string value)
 
IEnumerable< string > ObjRows ()
 
string _GetFloor (int id)
 
void _SetFloor (ref int id, string value)
 
IEnumerable< string > FloorRows ()
 
string _GetBlock (int id)
 
void _SetBlock (ref int id, string value)
 
IEnumerable< string > BlockRows ()
 
string _GetMat (int id)
 
void _SetMat (ref int id, string value)
 
IEnumerable< string > MatRows ()
 
string _GetSpawnList (string id)
 
void _SetSpawnList (ref string id, string value)
 
IEnumerable< string > _SpawnList ()
 

Detailed Description

Definition at line 178 of file BiomeProfile.cs.

Member Function Documentation

◆ GetDir()

int BiomeProfile.Tile.GetDir ( )
inline

Definition at line 220 of file BiomeProfile.cs.

221 {
222 return dirType switch
223 {
224 DirType.Random8 => EScriptable.rnd(8),
225 DirType.RandomSqrt8 => EScriptable.rnd(EScriptable.rnd(8) + 1),
226 DirType.RandomSqrtSqrt8 => EScriptable.rnd(EScriptable.rnd(EScriptable.rnd(8) + 1) + 1),
227 _ => EScriptable.rnd(8),
228 };
229 }
static int rnd(int a)
Definition: EScriptable.cs:5

References BiomeProfile.Tile.dirType, and EScriptable.rnd().

Referenced by MapGen.OnGenerateTerrain().

Member Data Documentation

◆ dirType

DirType BiomeProfile.Tile.dirType

Definition at line 194 of file BiomeProfile.cs.

Referenced by BiomeProfile.Tile.GetDir().

◆ id

int BiomeProfile.Tile.id

◆ idSub

int BiomeProfile.Tile.idSub

Definition at line 187 of file BiomeProfile.cs.

◆ mat

int BiomeProfile.Tile.mat

Definition at line 184 of file BiomeProfile.cs.

Referenced by PartialMap.Apply(), ZonePreEnterDigStairs.Execute(), and GenRoom.Fill().

◆ matSub

int BiomeProfile.Tile.matSub

Definition at line 190 of file BiomeProfile.cs.

◆ subType

SubType BiomeProfile.Tile.subType

Definition at line 192 of file BiomeProfile.cs.

Property Documentation

◆ _mat

string BiomeProfile.Tile._mat
getset

Definition at line 196 of file BiomeProfile.cs.

197 {
198 get
199 {
200 return _GetMat(mat);
201 }
202 set
203 {
204 _SetMat(ref mat, value);
205 }
206 }
void _SetMat(ref int id, string value)
string _GetMat(int id)

◆ _matSub

string BiomeProfile.Tile._matSub
getset

Definition at line 208 of file BiomeProfile.cs.

209 {
210 get
211 {
212 return _GetMat(matSub);
213 }
214 set
215 {
216 _SetMat(ref matSub, value);
217 }
218 }

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