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

Classes

class  Item
 
class  ItemSlider
 

Public Types

enum  Type { Oath , Workaround , Legacy }
 

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
 
bool enableDamageReduction
 
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 rndSeed (int a, int seed)
 
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 
Legacy 

Definition at line 8 of file GamePrincipal.cs.

Member Function Documentation

◆ ListItems()

List< Item > GamePrincipal.ListItems ( )
inline

Definition at line 164 of file GamePrincipal.cs.

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

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

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

Member Data Documentation

◆ disableDeathPenaltyProtection

bool GamePrincipal.disableDeathPenaltyProtection

Definition at line 127 of file GamePrincipal.cs.

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

◆ disableManualSave

bool GamePrincipal.disableManualSave

Definition at line 136 of file GamePrincipal.cs.

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

◆ disableUsermapBenefit

◆ disableVoidBlessing

bool GamePrincipal.disableVoidBlessing

Definition at line 154 of file GamePrincipal.cs.

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

◆ dropRate

bool GamePrincipal.dropRate

Definition at line 148 of file GamePrincipal.cs.

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

◆ dropRateMtp

int GamePrincipal.dropRateMtp

Definition at line 118 of file GamePrincipal.cs.

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

◆ enableDamageReduction

bool GamePrincipal.enableDamageReduction

Definition at line 157 of file GamePrincipal.cs.

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

◆ id

int GamePrincipal.id

Definition at line 112 of file GamePrincipal.cs.

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

◆ ignoreEvaluate

bool GamePrincipal.ignoreEvaluate

Definition at line 124 of file GamePrincipal.cs.

◆ infiniteMarketFund

bool GamePrincipal.infiniteMarketFund

Definition at line 142 of file GamePrincipal.cs.

◆ modified

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

◆ opMilk

bool GamePrincipal.opMilk

Definition at line 133 of file GamePrincipal.cs.

◆ permadeath

bool GamePrincipal.permadeath

◆ petFeatExp

bool GamePrincipal.petFeatExp

Definition at line 151 of file GamePrincipal.cs.

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

◆ petFeatExpMtp

int GamePrincipal.petFeatExpMtp

Definition at line 121 of file GamePrincipal.cs.

Referenced by ListItems().

◆ socre

int GamePrincipal.socre

Definition at line 115 of file GamePrincipal.cs.

◆ tax

bool GamePrincipal.tax

Definition at line 130 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: