Elin Decompiled Documentation EA 23.153 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 realAdv
 
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 167 of file GamePrincipal.cs.

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

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

◆ dropRate

bool GamePrincipal.dropRate

Definition at line 151 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 160 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 154 of file GamePrincipal.cs.

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

◆ petFeatExpMtp

int GamePrincipal.petFeatExpMtp

Definition at line 121 of file GamePrincipal.cs.

Referenced by ListItems().

◆ realAdv

bool GamePrincipal.realAdv

Definition at line 148 of file GamePrincipal.cs.

◆ 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: