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

Classes

class  Item
 
class  ItemSlider
 

Public Types

enum  Type { Oath , Workaround }
 

Public Member Functions

List< ItemListItems ()
 

Public Attributes

int id
 
int socre
 
int dropRateMtp
 
int petFeatExpMtp
 
bool ignoreEvaluate
 
bool disableDeathPenaltyProtection
 
bool tax
 
bool opMilk
 
bool disableManualSave
 
bool permadeath
 
bool infiniteMarketFund
 
bool disableUsermapBenefit
 
bool dropRate
 
bool petFeatExp
 
bool disableVoidBlessing
 
HashSet< string > modified = new HashSet<string>()
 

Properties

bool IsCustom [get]
 
- 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]
 

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
 

Detailed Description

Definition at line 6 of file GamePrincipal.cs.

Member Enumeration Documentation

◆ Type

Enumerator
Oath 
Workaround 

Definition at line 8 of file GamePrincipal.cs.

Member Function Documentation

◆ ListItems()

List< Item > GamePrincipal.ListItems ( )
inline

Definition at line 160 of file GamePrincipal.cs.

161 {
162 List<Item> list = new List<Item>();
163 Add(1, Type.Oath, "disableManualSave", () => disableManualSave, delegate(bool a)
164 {
166 });
167 Add(1, Type.Oath, "disableDeathPenaltyProtection", () => disableDeathPenaltyProtection, delegate(bool a)
168 {
170 });
171 Add(1, Type.Oath, "disableUsermapBenefit", () => disableUsermapBenefit, delegate(bool a)
172 {
174 });
175 Add(3, Type.Oath, "permadeath", () => permadeath, delegate(bool a)
176 {
177 permadeath = a;
178 });
179 Add(2, Type.Workaround, "disableVoidBlessing", () => disableVoidBlessing, delegate(bool a)
180 {
182 });
183 AddSlider(2, Type.Workaround, "dropRate", () => dropRate, delegate(bool a)
184 {
185 dropRate = a;
186 }, () => dropRateMtp, delegate(int a)
187 {
188 dropRateMtp = a;
189 }, (int a) => 0.5f + 0.5f * (float)a + "x", 5);
190 AddSlider(2, Type.Workaround, "petFeatExp", () => petFeatExp, delegate(bool a)
191 {
192 petFeatExp = a;
193 }, () => petFeatExpMtp, delegate(int a)
194 {
195 petFeatExpMtp = a;
196 }, (int a) => 0.5f + 0.5f * (float)a + "x", 3);
197 return list;
198 void Add(int grade, Type type, string id, Func<bool> _get, Action<bool> _set)
199 {
200 list.Add(new Item
201 {
202 type = type,
203 grade = grade,
204 id = id,
205 _get = _get,
206 _set = _set
207 });
208 }
209 void AddSlider(int grade, Type type, string id, Func<bool> _get, Action<bool> _set, Func<int> _getInt, Action<int> _setInt, Func<int, string> funcText, int max)
210 {
211 list.Add(new ItemSlider
212 {
213 type = type,
214 grade = grade,
215 id = id,
216 _get = _get,
217 _set = _set,
218 _getInt = _getInt,
219 _setInt = _setInt,
220 funcText = funcText,
221 max = max
222 });
223 }
224 }
list. Add(item3)
bool disableManualSave
bool disableVoidBlessing
bool disableUsermapBenefit
bool disableDeathPenaltyProtection

References Add(), disableDeathPenaltyProtection, disableManualSave, disableUsermapBenefit, disableVoidBlessing, dropRate, dropRateMtp, id, permadeath, petFeatExp, and petFeatExpMtp.

Referenced by LayerWorldSetting.Apply(), and LayerWorldSetting.Refresh().

Member Data Documentation

◆ disableDeathPenaltyProtection

bool GamePrincipal.disableDeathPenaltyProtection

Definition at line 126 of file GamePrincipal.cs.

Referenced by ListItems(), and Chara.Revive().

◆ disableManualSave

bool GamePrincipal.disableManualSave

Definition at line 135 of file GamePrincipal.cs.

Referenced by AM_Adv._OnUpdateInput(), ListItems(), and HotItemContext.Show().

◆ disableUsermapBenefit

◆ disableVoidBlessing

bool GamePrincipal.disableVoidBlessing

Definition at line 153 of file GamePrincipal.cs.

Referenced by ListItems(), and Chara.RefreshSpeed().

◆ dropRate

bool GamePrincipal.dropRate

Definition at line 147 of file GamePrincipal.cs.

Referenced by ListItems(), and Card.SpawnLoot().

◆ dropRateMtp

int GamePrincipal.dropRateMtp

Definition at line 117 of file GamePrincipal.cs.

Referenced by ListItems(), and Card.SpawnLoot().

◆ id

int GamePrincipal.id

Definition at line 111 of file GamePrincipal.cs.

Referenced by ListItems(), and LayerWorldSetting.RefreshTemplate().

◆ ignoreEvaluate

bool GamePrincipal.ignoreEvaluate

Definition at line 123 of file GamePrincipal.cs.

◆ infiniteMarketFund

bool GamePrincipal.infiniteMarketFund

Definition at line 141 of file GamePrincipal.cs.

◆ modified

HashSet<string> GamePrincipal.modified = new HashSet<string>()

◆ opMilk

bool GamePrincipal.opMilk

Definition at line 132 of file GamePrincipal.cs.

◆ permadeath

bool GamePrincipal.permadeath

◆ petFeatExp

bool GamePrincipal.petFeatExp

Definition at line 150 of file GamePrincipal.cs.

Referenced by Card.AddExp(), and ListItems().

◆ petFeatExpMtp

int GamePrincipal.petFeatExpMtp

Definition at line 120 of file GamePrincipal.cs.

Referenced by ListItems().

◆ socre

int GamePrincipal.socre

Definition at line 114 of file GamePrincipal.cs.

◆ tax

bool GamePrincipal.tax

Definition at line 129 of file GamePrincipal.cs.

Referenced by Faction.OnAdvanceMonth().

Property Documentation

◆ IsCustom

bool GamePrincipal.IsCustom
get

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