Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
ReligionManager Class Reference
Inheritance diagram for ReligionManager:
EClass

Public Member Functions

void SetOwner ()
 
void OnCreateGame ()
 
void OnLoad ()
 
Religion Find (string id)
 
Religion GetRandomReligion (bool onlyJoinable=true, bool includeMinor=false)
 

Public Attributes

Dictionary< string, ReligiondictAll = new Dictionary<string, Religion>()
 
List< Religionlist = new List<Religion>()
 
ReligionEyth Eyth = new ReligionEyth()
 
ReligionWind Wind = new ReligionWind()
 
ReligionEarth Earth = new ReligionEarth()
 
ReligionHealing Healing = new ReligionHealing()
 
ReligionLuck Luck = new ReligionLuck()
 
ReligionMachine Machine = new ReligionMachine()
 
ReligionElement Element = new ReligionElement()
 
ReligionHarvest Harvest = new ReligionHarvest()
 
ReligionOblivion Oblivion = new ReligionOblivion()
 
ReligionHarmony Harmony = new ReligionHarmony()
 
ReligionTrickery Trickery = new ReligionTrickery()
 
ReligionMoonShadow MoonShadow = new ReligionMoonShadow()
 
ReligionStrife Strife = new ReligionStrife()
 

Additional Inherited Members

- Static Public Member Functions inherited from EClass
static int rnd (int a)
 
static int curve (int a, int start, int step, int rate=75)
 
static int rndHalf (int a)
 
static float rndf (float a)
 
static int rndSqrt (int a)
 
static void Wait (float a, Card c)
 
static void Wait (float a, Point p)
 
static int Bigger (int a, int b)
 
static int Smaller (int a, int b)
 
- Static Public Attributes inherited from EClass
static Core core
 
- Properties inherited from EClass
static Game game [get]
 
static bool AdvMode [get]
 
static Player player [get]
 
static Chara pc [get]
 
static UI ui [get]
 
static Map _map [get]
 
static Zone _zone [get]
 
static FactionBranch Branch [get]
 
static FactionBranch BranchOrHomeBranch [get]
 
static Faction Home [get]
 
static Faction Wilds [get]
 
static Scene scene [get]
 
static BaseGameScreen screen [get]
 
static GameSetting setting [get]
 
static GameData gamedata [get]
 
static ColorProfile Colors [get]
 
static World world [get]
 
static SourceManager sources [get]
 
static SourceManager editorSources [get]
 
static SoundManager Sound [get]
 
static CoreDebug debug [get]
 

Detailed Description

Definition at line 5 of file ReligionManager.cs.

Member Function Documentation

◆ Find()

Religion ReligionManager.Find ( string  id)
inline

Definition at line 81 of file ReligionManager.cs.

82 {
83 foreach (Religion value in dictAll.Values)
84 {
85 if (value.id == id)
86 {
87 return value;
88 }
89 }
90 return null;
91 }
Dictionary< string, Religion > dictAll
virtual string id
Definition: Religion.cs:26

References dictAll, and Religion.id.

Referenced by Thing.WriteNote().

◆ GetRandomReligion()

Religion ReligionManager.GetRandomReligion ( bool  onlyJoinable = true,
bool  includeMinor = false 
)
inline

Definition at line 93 of file ReligionManager.cs.

94 {
95 return list.Where((Religion a) => (!onlyJoinable || a.CanJoin) && (includeMinor || !a.IsMinorGod)).RandomItem();
96 }
List< Religion > list
virtual bool IsMinorGod
Definition: Religion.cs:50
virtual bool CanJoin
Definition: Religion.cs:52

References Religion.CanJoin, Religion.IsMinorGod, and list.

Referenced by GameLang.ConvertDrama(), Chara.OnCreate(), TraitAltar.OnCreate(), TraitAltar.OnImportMap(), and Zone.SpawnAltar().

◆ OnCreateGame()

void ReligionManager.OnCreateGame ( )
inline

Definition at line 63 of file ReligionManager.cs.

64 {
65 SetOwner();
66 foreach (Religion item in list)
67 {
68 item.Init();
69 }
70 }

References item, list, and SetOwner().

Referenced by Game._Create().

◆ OnLoad()

void ReligionManager.OnLoad ( )
inline

Definition at line 72 of file ReligionManager.cs.

73 {
74 SetOwner();
75 foreach (Religion value in dictAll.Values)
76 {
77 value.OnLoad();
78 }
79 }
void OnLoad()
Definition: Religion.cs:64

References dictAll, Religion.OnLoad(), and SetOwner().

Referenced by Game.OnLoad().

◆ SetOwner()

void ReligionManager.SetOwner ( )
inline

Definition at line 50 of file ReligionManager.cs.

51 {
52 list = new List<Religion>
53 {
56 };
57 foreach (Religion item in list)
58 {
59 dictAll.Add(item.id, item);
60 }
61 }
ReligionWind Wind
ReligionOblivion Oblivion
ReligionHarvest Harvest
ReligionMachine Machine
ReligionEyth Eyth
ReligionLuck Luck
ReligionStrife Strife
ReligionHarmony Harmony
ReligionMoonShadow MoonShadow
ReligionTrickery Trickery
ReligionElement Element
ReligionEarth Earth
ReligionHealing Healing

References dictAll, Earth, Element, Eyth, Harmony, Harvest, Healing, item, list, Luck, Machine, MoonShadow, Oblivion, Strife, Trickery, and Wind.

Referenced by OnCreateGame(), and OnLoad().

Member Data Documentation

◆ dictAll

◆ Earth

ReligionEarth ReligionManager.Earth = new ReligionEarth()

Definition at line 18 of file ReligionManager.cs.

Referenced by Religion.IsValidArtifact(), Religion.Reforge(), and SetOwner().

◆ Element

ReligionElement ReligionManager.Element = new ReligionElement()

◆ Eyth

◆ Harmony

ReligionHarmony ReligionManager.Harmony = new ReligionHarmony()

Definition at line 39 of file ReligionManager.cs.

Referenced by SetOwner().

◆ Harvest

ReligionHarvest ReligionManager.Harvest = new ReligionHarvest()

◆ Healing

◆ list

List<Religion> ReligionManager.list = new List<Religion>()

◆ Luck

ReligionLuck ReligionManager.Luck = new ReligionLuck()

◆ Machine

ReligionMachine ReligionManager.Machine = new ReligionMachine()

Definition at line 27 of file ReligionManager.cs.

Referenced by Religion.IsValidArtifact(), Religion.Reforge(), and SetOwner().

◆ MoonShadow

◆ Oblivion

ReligionOblivion ReligionManager.Oblivion = new ReligionOblivion()

Definition at line 36 of file ReligionManager.cs.

Referenced by SetOwner().

◆ Strife

ReligionStrife ReligionManager.Strife = new ReligionStrife()

Definition at line 48 of file ReligionManager.cs.

Referenced by Religion.IsValidArtifact(), Religion.Reforge(), and SetOwner().

◆ Trickery

◆ Wind

ReligionWind ReligionManager.Wind = new ReligionWind()

Definition at line 15 of file ReligionManager.cs.

Referenced by Religion.IsValidArtifact(), Religion.Reforge(), and SetOwner().


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