Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
BiomeProfile.Spawns Class Reference

Public Member Functions

string GetRandomCharaId ()
 
string GetRandomThingId ()
 

Public Attributes

List< SpawnListCharachara
 
List< SpawnListThingthing
 

Detailed Description

Definition at line 401 of file BiomeProfile.cs.

Member Function Documentation

◆ GetRandomCharaId()

string BiomeProfile.Spawns.GetRandomCharaId ( )
inline

Definition at line 407 of file BiomeProfile.cs.

408 {
409 if (chara.Count != 0)
410 {
411 return chara.RandomItemWeighted((SpawnListChara a) => a.chance).id;
412 }
413 return "c_dungeon";
414 }
List< SpawnListChara > chara

References BiomeProfile.SpawnList.chance, and BiomeProfile.Spawns.chara.

Referenced by Region.OnAdvanceHour(), and SerializedCards.Restore().

◆ GetRandomThingId()

string BiomeProfile.Spawns.GetRandomThingId ( )
inline

Definition at line 416 of file BiomeProfile.cs.

417 {
418 if (thing.Count != 0)
419 {
420 return thing.RandomItemWeighted((SpawnListThing a) => a.chance).id;
421 }
422 return "dungeon";
423 }
List< SpawnListThing > thing

References BiomeProfile.SpawnList.chance, and BiomeProfile.Spawns.thing.

Referenced by SerializedCards.Restore().

Member Data Documentation

◆ chara

List<SpawnListChara> BiomeProfile.Spawns.chara

Definition at line 403 of file BiomeProfile.cs.

Referenced by BiomeProfile.Spawns.GetRandomCharaId().

◆ thing

List<SpawnListThing> BiomeProfile.Spawns.thing

Definition at line 405 of file BiomeProfile.cs.

Referenced by BiomeProfile.Spawns.GetRandomThingId().


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