Elin Decompiled Documentation EA 23.338.2 Stable
Loading...
Searching...
No Matches
CoreConfig.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Generic;
3using System.IO;
4using System.Text.RegularExpressions;
5using Newtonsoft.Json;
6using UnityEngine;
7using UnityEngine.UI;
8
9[Serializable]
10[JsonObject(MemberSerialization.OptOut)]
11public class CoreConfig : EClass
12{
13 public enum GameFunc
14 {
15 None,
17 ShowInv,
23 EmuAlt,
27 Talk,
29 Fire,
33 }
34
35 public enum GameFuncBuild
36 {
37 None,
39 Rotate,
47 }
48
49 public enum ScreenSnapType
50 {
51 None,
52 Default,
53 Floor,
54 Ceil,
55 Hack3,
56 Hack4,
57 Hack5,
58 Hack6,
59 Hack7,
60 Hack8,
61 Hack9,
62 Grid
63 }
64
65 [Serializable]
66 public class CameraConfig
67 {
68 public bool invertX;
69
70 public bool invertY;
71
72 public bool edgeScroll;
73
74 public bool zoomToMouse;
75
76 public bool extendZoomMin;
77
78 public bool extendZoomMax;
79
80 public bool linearZoom;
81
82 public bool smoothFollow;
83
84 public bool smoothMove;
85
86 public float senseKeyboard;
87
88 public float sensEdge;
89
90 public float sensDrag;
91
92 public float momentum;
93
94 public float zoomSpeed;
95
96 public int defaultZoom;
97
98 public int moveframe;
99
100 public float[] zooms;
101
102 public float[] listZoom = new float[7] { 0.125f, 0.25f, 0.5f, 0.75f, 1f, 1.5f, 2f };
103 }
104
105 [Serializable]
106 public class GameConfig
107 {
108 public int numBackup;
109
110 public int backupInterval;
111
112 public bool autoBackup;
113
114 public bool sortEach;
115
116 public bool antiSpider;
117
118 public bool autopause;
119
120 public bool showQuickMenuHint;
121
123
124 public bool freePos;
125
126 public bool showOffhand;
127
128 public bool confirmGive;
129
130 public bool confirmMapExit;
131
133
134 public bool doubleClickToHold;
135
137
138 public float runDistance;
139
140 public float angleMargin;
141
142 public int newlineCount;
143
144 public int showBorder;
145
146 public int showRide;
147
148 public int waiter;
149
150 public bool altUI;
151
152 public bool altInv;
153
154 public bool altAbility;
155
156 public bool altCraft;
157
158 public bool autoSave;
159
161
162 public bool showInvBG;
163
164 public bool useGrid;
165
166 public bool rightScroll;
167
168 public bool tutorial;
169
170 public bool advancedMenu;
171
172 public bool warnCrime;
173
174 public bool warnMana;
175
176 public bool warnDisassemble;
177
178 public bool hideWeapons;
179
180 public bool disableAutoStairs;
181
182 public bool smoothPick;
183
184 public bool markStack;
185
186 public bool waitOnRange;
187
188 public bool waitOnDebuff;
189
190 public bool waitOnMelee;
191
192 public bool highlightEnemy;
193
195
197
198 public bool haltOnSpotEnemy;
199
200 public bool haltOnSpotTrap;
201
202 [NonSerialized]
203 [JsonIgnore]
204 public bool ignoreWarnCrime;
205
206 [NonSerialized]
207 [JsonIgnore]
208 public bool ignoreWarnMana;
209
210 [NonSerialized]
211 [JsonIgnore]
213
214 [NonSerialized]
215 [JsonIgnore]
217 }
218
219 [Serializable]
220 public class InputSetting
221 {
222 public bool autorun;
223
224 public bool autowalk;
225
226 public bool altKeyAxis;
227
228 public bool keepRunning;
229
231
232 public bool ignoreNPCs;
233
234 public bool altExamine;
235
236 public bool altChangeHeight;
237
239
241
243
245
247
249
251
253
255
257
259
261
263 }
264
265 [Serializable]
266 public class SoundSetting
267 {
268 public float volumeMaster;
269
270 public float volumeBGM;
271
272 public float volumeSFX;
273
274 public float volumeAMB;
275 }
276
277 [Serializable]
278 public class GraphicSetting
279 {
280 public string idPostProfile;
281
282 public bool fullScreen;
283
284 public bool pixelperfectUI;
285
286 public bool alwaysClearCamera;
287
288 public bool vsync;
289
290 public bool kuwahara;
291
292 public bool drawAllyLight;
293
294 public bool hdr;
295
296 public bool fixedResolution;
297
298 public bool floorEx;
299
300 public bool cloud;
301
302 public bool firefly;
303
304 public bool bloom;
305
306 public bool gradientWater;
307
308 public bool godray;
309
310 public bool enhanceRain;
311
312 public bool blizzard;
313
314 public bool disableShake;
315
316 public bool noLightning;
317
318 public int fps;
319
320 public int fireflyCount = 150;
321
322 public int starCount = 200;
323
324 public int sharpen;
325
326 public int sharpen2;
327
328 public int blur;
329
330 public int spriteFrameMode;
331
332 public int w = 1280;
333
334 public int h = 768;
335
336 public float brightness;
337
338 public float contrast;
339
340 public float saturation;
341
342 public float vibrance;
343
344 public float gradientWaterLevel = 0.2f;
345 }
346
347 [Serializable]
348 public class UISetting
349 {
350 public string defaultTheme;
351
352 public bool openLastTab;
353
354 public bool rightClickClose;
355
356 public bool blur;
357
358 public bool cornerHoard;
359
360 public bool animeWindow;
361
362 public bool autoscale;
363
364 public bool dynamicBrightness;
365
366 public bool secureMinWidth;
367
368 public bool autoFocusWindow;
369
370 public bool showFloatButtons;
371
372 public bool balloonBG;
373
375
376 public float scrollSens;
377
378 public float baseScrollSens;
379
380 public float blurSize;
381
383
384 public int mouseDragMargin;
385
386 public int scale;
387
388 public int brightness;
389
390 public int contrast;
391
392 public int outlineAlpha;
393
395 }
396
397 [Serializable]
398 public class FontSetting
399 {
401
403
405
407
409
411 }
412
413 [Serializable]
414 public class CustomFont
415 {
416 public string id;
417
418 public string name;
419 }
420
421 [Serializable]
422 public class NetSetting
423 {
424 public bool enable;
425
426 public bool sendEvent;
427
428 public bool receiveRealtime;
429
430 public bool password;
431
432 public bool noAdult;
433 }
434
435 [Serializable]
437 {
438 public int filter;
439
440 public bool FilterAll => filter == 2;
441
442 public bool FilterLang => filter == 1;
443
444 public bool FilterNone => filter == 0;
445
446 public bool Show(int id)
447 {
448 return Show(EClass.sources.backers.map.TryGetValue(id));
449 }
450
451 public bool Show(SourceBacker.Row row)
452 {
453 if (row == null)
454 {
455 return false;
456 }
457 if (FilterNone)
458 {
459 return true;
460 }
461 if (FilterAll)
462 {
463 return false;
464 }
465 bool flag = row.lang == "JP" || row.lang == "CN";
466 string langCode = Lang.langCode;
467 if (langCode == "JP" || langCode == "CN")
468 {
469 return flag;
470 }
471 return !flag;
472 }
473
474 public bool Show(string s)
475 {
476 if (FilterNone)
477 {
478 return true;
479 }
480 if (FilterAll)
481 {
482 return false;
483 }
484 bool flag = IsJapanese(s);
485 string langCode = Lang.langCode;
486 if (langCode == "JP" || langCode == "CN")
487 {
488 return flag;
489 }
490 return !flag;
491 }
492
493 private bool IsJapanese(string text)
494 {
495 return Regex.IsMatch(text, "[\\p{IsHiragana}\\p{IsKatakana}\\p{IsCJKUnifiedIdeographs}]+");
496 }
497 }
498
499 [Serializable]
500 public class OtherSetting
501 {
502 public int antiMissClick = 2;
503
504 public float bgmInterval = 1f;
505
506 public bool noCensor;
507
508 public bool runBackground;
509
510 public bool muteBackground;
511
512 public bool showTestOptions;
513
514 public string idMainWidgetTheme;
515
516 public string idSubWidgetTheme;
517
518 public bool syncMods;
519
520 public bool disableMods;
521
522 public bool exceptionPopup2 = true;
523 }
524
525 [Serializable]
526 public class Test
527 {
528 public int idSkin;
529
530 public int animeFramePCC;
531
532 public int animeFrame;
533
534 public int extraToneMTP;
535
537
539
540 public bool showNumbers;
541
542 public bool stackNumbers;
543
544 public bool aaPortrait;
545
546 public bool extraTurnaround;
547
548 public bool bloom2;
549
550 public bool extraRace;
551
552 public bool allRace;
553
554 public bool unsealWidgets;
555
556 public bool extraMoveCancel;
557
558 public bool showNetError;
559
560 public bool alwaysRun;
561
562 public bool allowBlockOnItem;
563
565
566 public bool disableShake2;
567
568 public bool alwaysFixCamera;
569
571
572 public bool showRefIcon;
573
574 public bool showTrait;
575
576 public bool toolNoPick;
577
578 public bool compressSave;
579
580 public bool cacheEffect;
581
582 public float brightnessNight;
583 }
584
585 [Serializable]
586 public class Fix
587 {
589
591 }
592
594
595 public string lang = "JP";
596
597 public string nameReport;
598
599 public string emailReport;
600
601 public string rewardCode;
602
603 public int maxPlayedHours;
604
606
608
609 public bool cloud;
610
611 public new UISetting ui;
612
614
616
618
619 public new GameConfig game;
620
622
624
626
628
630
631 public Fix fix;
632
633 public Test test;
634
635 public List<FontSource> customFonts;
636
637 public HashSet<string> helpFlags = new HashSet<string>();
638
639 public int[] colors = new int[10];
640
641 [NonSerialized]
642 public bool ignoreApply;
643
644 private int[] _framerates = new int[4] { 120, 60, 30, 15 };
645
646 public static string path => CorePath.ConfigFile;
647
648 public static int ZoomStep
649 {
650 get
651 {
652 if (!EClass.debug.enable)
653 {
654 return 5;
655 }
656 return 5;
657 }
658 }
659
660 [JsonIgnore]
662
663 public static bool Exist()
664 {
665 if (!File.Exists(path) || (EClass.debug.useNewConfig && Application.isEditor))
666 {
667 return false;
668 }
669 return true;
670 }
671
672 public static CoreConfig TryLoadConfig()
673 {
674 if (!File.Exists(path) || (EClass.debug.useNewConfig && Application.isEditor))
675 {
676 return null;
677 }
678 if (!File.Exists(CorePath.VersionFile))
679 {
680 return null;
681 }
682 CoreConfig coreConfig = IO.LoadFile<CoreConfig>(path);
683 if (!IsCompatible(coreConfig.version))
684 {
685 Debug.Log("Config version is different. deleting:" + coreConfig.version.ToString() + "/" + EClass.core.version.GetText());
686 return null;
687 }
688 if (coreConfig.game.backupInterval == 0)
689 {
690 coreConfig.game.numBackup = 5;
691 coreConfig.game.backupInterval = 8;
692 coreConfig.game.autoBackup = true;
693 }
694 if (coreConfig.version.IsBelow(0, 23, 138))
695 {
696 coreConfig.test.extraToneMTP = 1;
697 }
698 if (coreConfig.version.IsBelow(0, 23, 63))
699 {
700 coreConfig.graphic.floorEx = true;
701 }
702 if (coreConfig.version.IsBelow(0, 22, 17))
703 {
704 coreConfig.game.tutorial = true;
705 }
706 if (coreConfig.version.IsBelow(0, 22, 24))
707 {
708 coreConfig.ui.balloonBG = true;
709 }
710 if (coreConfig.version.IsBelow(0, 23, 282))
711 {
712 coreConfig.input.keys.chat.key = KeyCode.Return;
713 }
714 return coreConfig;
715 }
716
717 public static bool IsCompatible(Version v)
718 {
719 return v.minor >= 22;
720 }
721
722 public static void Init()
723 {
724 if (EClass.core.config == null)
725 {
726 Debug.Log("Creating new config.");
727 CoreConfig coreConfig = (EClass.core.config = IO.DeepCopy(EClass.setting.config));
728 coreConfig.SetLang(EClass.core.langCode);
729 if (!Application.isEditor || !EClass.debug.useNewConfig)
730 {
731 coreConfig.Save();
732 }
734 if (EClass.debug.enable)
735 {
736 coreConfig.other.showTestOptions = true;
737 coreConfig.test.showNumbers = true;
738 coreConfig.game.waiter = 0;
739 coreConfig.game.advancedMenu = true;
740 }
741 }
743 }
744
745 public void OnInit()
746 {
747 EClass.core.ui.skins.SetMainSkin(test.idSkin);
748 Apply();
749 }
750
752 {
754 }
755
756 public static void Reset()
757 {
758 string text = EClass.core.config.lang;
759 string text2 = EClass.core.config.rewardCode;
760 EClass.core.config = IO.DeepCopy(EClass.setting.config);
763 EClass.core.config.rewardCode = text2;
764 }
765
766 public static void ResetGeneral()
767 {
768 CoreConfig coreConfig = IO.DeepCopy(EClass.setting.config);
769 EClass.core.config.ui = coreConfig.ui;
770 EClass.core.config.font = coreConfig.font;
771 EClass.core.config.sound = coreConfig.sound;
774 }
775
776 public static void ResetGraphics()
777 {
778 CoreConfig coreConfig = IO.DeepCopy(EClass.setting.config);
779 EClass.core.config.graphic = coreConfig.graphic;
782 }
783
784 public static void ResetGame()
785 {
786 CoreConfig coreConfig = IO.DeepCopy(EClass.setting.config);
787 EClass.core.config.game = coreConfig.game;
788 EClass.core.config.net = coreConfig.net;
789 EClass.core.config.backer = coreConfig.backer;
791 }
792
793 public static void ResetInput()
794 {
795 CoreConfig coreConfig = IO.DeepCopy(EClass.setting.config);
796 EClass.core.config.input = coreConfig.input;
797 EClass.core.config.camera = coreConfig.camera;
799 }
800
801 public static void ResetOther()
802 {
803 CoreConfig coreConfig = IO.DeepCopy(EClass.setting.config);
804 EClass.core.config.fix = coreConfig.fix;
805 EClass.core.config.other = coreConfig.other;
807 }
808
809 public static void ResetTest()
810 {
811 CoreConfig coreConfig = IO.DeepCopy(EClass.setting.config);
812 EClass.core.config.test = coreConfig.test;
814 }
815
816 public void OnReset()
817 {
819 Apply();
820 ApplyFont();
821 ApplySkin();
822 }
823
824 public void SetLang(string id)
825 {
826 lang = id;
827 }
828
830 {
832 {
833 int num = (int)(EClass.player.stats.timeElapsed / 3600.0);
834 if (num > maxPlayedHours)
835 {
836 maxPlayedHours = num;
837 Save();
838 }
839 }
840 }
841
842 public void Save()
843 {
845 IO.SaveFile(path, this, compress: false, IO.jsWriteConfig);
846 IO.SaveFile(CorePath.VersionFile, version);
847 Debug.Log("Config saved to " + path);
848 }
849
850 public void OnChangeResolution()
851 {
852 ApplyScale();
853 }
854
855 public void ApplyFPS(bool force = false)
856 {
857 if (EClass.core.IsGameStarted || force)
858 {
859 if (graphic.vsync)
860 {
861 QualitySettings.vSyncCount = 1;
862 Application.targetFrameRate = 60;
863 }
864 else
865 {
866 QualitySettings.vSyncCount = 0;
867 Application.targetFrameRate = _framerates[graphic.fps];
868 }
869 }
870 else
871 {
872 QualitySettings.vSyncCount = 0;
873 Application.targetFrameRate = 60;
874 }
875 }
876
877 public void Apply()
878 {
879 if (!ignoreApply)
880 {
882 ApplyFPS();
883 Application.runInBackground = Application.isEditor || other.runBackground;
884 ApplyVolume();
885 ApplyGrading();
886 ApplyHUD();
888 Window.openLastTab = ui.openLastTab;
889 Layer.closeOnRightClick = ui.rightClickClose;
890 RenderObject.animeSetting = EClass.core.gameSetting.render.anime;
891 RenderObject.renderSetting = (RenderData.renderSetting = EClass.core.gameSetting.render);
892 TC._setting = EClass.core.gameSetting.render.tc;
893 UIScrollView.sensitivity = ui.ScrollSensitivity;
894 UIContextMenu.closeOnMouseLeave = ui.closePopupOnMouseLeave;
895 EClass.core.canvas.pixelPerfect = graphic.pixelperfectUI;
897 CharaRenderer._animeFrame = EClass.setting.render.anime.animeStep[test.animeFrame];
898 CharaRenderer._animeFramePCC = EClass.setting.render.anime.animeStep[test.animeFramePCC];
899 CharaRenderer.smoothmove = camera.smoothMove;
900 CharaRenderer._animeFramePC = (camera.smoothMove ? 6000 : camera.moveframe);
901 Scene.skipAnime = true;
902 QualitySettings.maxQueuedFrames = 0;
903 PopManager.outlineAlpha = ui.outlineAlpha;
904 Window.animateWindow = ui.animeWindow;
905 EInput.rightScroll = game.rightScroll;
906 EInput.buttonScroll = (game.rightScroll ? EInput.rightMouse : EInput.middleMouse);
907 EInput.antiMissClick = 0.1f * (float)other.antiMissClick;
908 camSupport.bloom.enabled = graphic.bloom;
910 camSupport.cam.allowHDR = graphic.hdr;
911 ApplyScale();
913 EClass.core.effects.effects.usePool = test.cacheEffect;
914 }
915 }
916
917 public void ApplyResolution(bool force = false)
918 {
920 {
921 force = true;
922 }
923 if (force)
924 {
925 Screen.SetResolution(graphic.w, graphic.h, graphic.fullScreen);
926 }
927 Screen.fullScreen = graphic.fullScreen;
928 }
929
930 public void ApplyScale()
931 {
932 float num = (float)ui.scale * 0.05f;
933 if (ui.autoscale)
934 {
935 float a = 0.55f;
936 float b = num + 0.05f;
937 num = 0.01f * (float)Mathf.RoundToInt(Mathf.Lerp(a, b, (float)Screen.height / 1080f) * 100f);
938 }
939 if (ui.secureMinWidth && Screen.width < EClass.core.ui.minWidth)
940 {
941 float num2 = (float)Screen.width / (float)EClass.core.ui.minWidth;
942 if (num2 < num)
943 {
944 num = num2;
945 }
946 }
947 Debug.Log("#UI ApplyScale:" + num);
948 EClass.core.canvas.GetComponent<CanvasScaler>().scaleFactor = num;
949 }
950
951 public void ApplyHUD()
952 {
953 }
954
955 public void ApplyZoom(float a)
956 {
957 camSupport.Zoom = a;
960 }
961
962 public PostEffectProfile GetPostEffectProfile(bool replaceWorld = false)
963 {
964 string text = graphic.idPostProfile.IsEmpty("None");
965 if (replaceWorld && EClass.core.IsGameStarted && EClass.core.game.activeZone.IsRegion && text != "None")
966 {
967 text = "NFAA";
968 }
969 return ResourceCache.Load<PostEffectProfile>("Scene/Profile/PostEffect/" + text);
970 }
971
972 public void ApplyGrading()
973 {
974 PostEffectProfile postEffectProfile = GetPostEffectProfile();
975 ScreenGrading grading = camSupport.grading;
976 grading.userSaturation = graphic.saturation + postEffectProfile.Saturation;
977 grading.userBrightness = graphic.brightness + postEffectProfile.Brightness;
978 grading.userContrast = graphic.contrast + postEffectProfile.Contrast;
979 camSupport.beautify.saturate = graphic.vibrance + grading.profile.Vibrance;
980 camSupport.kuwahara.enabled = graphic.kuwahara;
981 camSupport.blur.enabled = graphic.blur > 0;
982 camSupport.blur.Amount = 0.01f * (float)graphic.blur;
984 {
986 }
989 postEffectProfile.Apply(EClass.scene.cam);
990 }
991
993 {
994 ScreenGrading grading = camSupport.grading;
995 float num = 0f;
996 float num2 = 0f;
998 {
1000 {
1001 num -= 0.05f * ui.dynamicBrightnessMod;
1002 }
1003 }
1004 else
1005 {
1006 num = -0.05f;
1007 }
1008 Shader.SetGlobalFloat("_UIBrightness", 0.01f * (float)ui.brightness + grading.profile.uiBrightness + num);
1009 Shader.SetGlobalFloat("_UIContrast", 0.01f * (float)ui.contrast + grading.profile.uiContrast + EClass.core.ui.lightContrast + num2);
1010 }
1011
1012 public void ApplyVolume()
1013 {
1014 SetVolume("VolumeMaster", sound.volumeMaster);
1015 SetVolume("VolumeBGM", EClass.Sound.muteBGM ? 0f : sound.volumeBGM);
1016 SetVolume("VolumeSpatialBGM", sound.volumeBGM);
1017 SetVolume("VolumeSFX", sound.volumeSFX);
1018 SetVolume("VolumeAmbience", sound.volumeAMB);
1020 }
1021
1022 public void SetBGMInterval()
1023 {
1025 {
1026 EClass._map.plDay.interval = other.bgmInterval * 5f;
1027 }
1028 }
1029
1030 public void SetVolume(string id, float v)
1031 {
1032 SoundManager.current.mixer.SetFloat(id, Mathf.Log((v < 0.01f) ? 0.01f : v) * 20f);
1033 }
1034
1035 public void OnSetLang()
1036 {
1038 ApplyFont();
1039 }
1040
1041 public void ApplyFont()
1042 {
1044 }
1045
1046 public void ApplySkin()
1047 {
1048 Core.Instance.ui.skins.SetMainSkin(test.idSkin);
1050 }
1051}
if(!match.Success)
string langCode
Definition: BaseCore.cs:25
Canvas canvas
Definition: BaseCore.cs:34
Version version
Definition: BaseCore.cs:17
void RefreshScreenSize()
void OnChangeResolution()
ScreenGrading grading
BloomOptimized bloom
Beautify beautify
bool IsJapanese(string text)
Definition: CoreConfig.cs:493
bool Show(SourceBacker.Row row)
Definition: CoreConfig.cs:451
CameraSupport.Divider divider
Definition: CoreConfig.cs:588
ScreenSnapType snapType
Definition: CoreConfig.cs:590
SkinManager.FontSaveData fontDialog
Definition: CoreConfig.cs:406
SkinManager.FontSaveData fontNews
Definition: CoreConfig.cs:410
SkinManager.FontSaveData fontChatbox
Definition: CoreConfig.cs:402
SkinManager.FontSaveData fontWidget
Definition: CoreConfig.cs:408
SkinManager.FontSaveData fontUI
Definition: CoreConfig.cs:400
SkinManager.FontSaveData fontBalloon
Definition: CoreConfig.cs:404
bool shiftToUseNegativeAbilityOnSelf
Definition: CoreConfig.cs:196
GameFuncBuild b_mouse4PressLong
Definition: CoreConfig.cs:260
GameFuncBuild b_middlePressLong
Definition: CoreConfig.cs:252
GameFuncBuild b_mouse3Click
Definition: CoreConfig.cs:254
GameFuncBuild b_mouse3PressLong
Definition: CoreConfig.cs:256
EInput.KeyMapManager keys
Definition: CoreConfig.cs:262
GameFuncBuild b_middleClick
Definition: CoreConfig.cs:250
GameFuncBuild b_mouse4Click
Definition: CoreConfig.cs:258
bool extraMoveCancel
Definition: CoreConfig.cs:556
bool allowBlockOnItem
Definition: CoreConfig.cs:562
bool alwaysFixCamera
Definition: CoreConfig.cs:568
bool ignoreBackerDestoryFlag
Definition: CoreConfig.cs:570
bool extraTurnaround
Definition: CoreConfig.cs:546
float brightnessNight
Definition: CoreConfig.cs:582
bool dontCancelIfZeroDamage
Definition: CoreConfig.cs:564
bool ignoreApply
Definition: CoreConfig.cs:642
int maxPlayedHours
Definition: CoreConfig.cs:603
static void ResetGame()
Definition: CoreConfig.cs:784
SoundSetting sound
Definition: CoreConfig.cs:613
void ApplyVolume()
Definition: CoreConfig.cs:1012
void OnInit()
Definition: CoreConfig.cs:745
List< FontSource > customFonts
Definition: CoreConfig.cs:635
new GameConfig game
Definition: CoreConfig.cs:619
static int ZoomStep
Definition: CoreConfig.cs:649
void SetVolume(string id, float v)
Definition: CoreConfig.cs:1030
HashSet< string > helpFlags
Definition: CoreConfig.cs:637
void ApplyGrading()
Definition: CoreConfig.cs:972
string rewardCode
Definition: CoreConfig.cs:601
void Save()
Definition: CoreConfig.cs:842
string nameReport
Definition: CoreConfig.cs:597
static void ResetInput()
Definition: CoreConfig.cs:793
void Apply()
Definition: CoreConfig.cs:877
string emailReport
Definition: CoreConfig.cs:599
void ApplyResolution(bool force=false)
Definition: CoreConfig.cs:917
void ApplySkin()
Definition: CoreConfig.cs:1046
void ApplyScale()
Definition: CoreConfig.cs:930
bool ignoreLinuxModWarning
Definition: CoreConfig.cs:607
bool HasBackerRewardCode()
Definition: CoreConfig.cs:751
static void ResetTest()
Definition: CoreConfig.cs:809
void SetBGMInterval()
Definition: CoreConfig.cs:1022
static CoreConfig TryLoadConfig()
Definition: CoreConfig.cs:672
bool cloud
Definition: CoreConfig.cs:609
Version version
Definition: CoreConfig.cs:593
void RefreshUIBrightness()
Definition: CoreConfig.cs:992
void ApplyFont()
Definition: CoreConfig.cs:1041
GraphicSetting graphic
Definition: CoreConfig.cs:617
PostEffectProfile GetPostEffectProfile(bool replaceWorld=false)
Definition: CoreConfig.cs:962
string lang
Definition: CoreConfig.cs:595
void ApplyHUD()
Definition: CoreConfig.cs:951
CameraConfig camera
Definition: CoreConfig.cs:627
void SetLang(string id)
Definition: CoreConfig.cs:824
int[] _framerates
Definition: CoreConfig.cs:644
FontSetting font
Definition: CoreConfig.cs:615
void OnChangeResolution()
Definition: CoreConfig.cs:850
static string path
Definition: CoreConfig.cs:646
void ApplyFPS(bool force=false)
Definition: CoreConfig.cs:855
void TryUpdatePlayedHour()
Definition: CoreConfig.cs:829
bool ignoreParallelsWarning
Definition: CoreConfig.cs:605
void ApplyZoom(float a)
Definition: CoreConfig.cs:955
OtherSetting other
Definition: CoreConfig.cs:629
static bool IsCompatible(Version v)
Definition: CoreConfig.cs:717
static void ResetGraphics()
Definition: CoreConfig.cs:776
new UISetting ui
Definition: CoreConfig.cs:611
NetSetting net
Definition: CoreConfig.cs:621
BackerContentConfig backer
Definition: CoreConfig.cs:623
int[] colors
Definition: CoreConfig.cs:639
void OnSetLang()
Definition: CoreConfig.cs:1035
static bool Exist()
Definition: CoreConfig.cs:663
static void ResetOther()
Definition: CoreConfig.cs:801
static void Reset()
Definition: CoreConfig.cs:756
void OnReset()
Definition: CoreConfig.cs:816
CameraSupport camSupport
Definition: CoreConfig.cs:661
InputSetting input
Definition: CoreConfig.cs:625
static void Init()
Definition: CoreConfig.cs:722
static void ResetGeneral()
Definition: CoreConfig.cs:766
bool useNewConfig
Definition: CoreDebug.cs:139
bool enable
Definition: CoreDebug.cs:301
static string ConfigFile
Definition: CorePath.cs:178
static string VersionFile
Definition: CorePath.cs:180
Definition: Core.cs:14
GameSetting gameSetting
Definition: Core.cs:47
Game game
Definition: Core.cs:72
EffectManager effects
Definition: Core.cs:37
static new Core Instance
Definition: Core.cs:15
void ApplySkins()
Definition: Core.cs:771
bool IsGameStarted
Definition: Core.cs:87
UI ui
Definition: Core.cs:63
CoreConfig config
Definition: Core.cs:70
bool IsNight
Definition: Date.cs:112
Definition: EClass.cs:6
static Scene scene
Definition: EClass.cs:31
static Core core
Definition: EClass.cs:7
static World world
Definition: EClass.cs:41
static Map _map
Definition: EClass.cs:19
static SourceManager sources
Definition: EClass.cs:43
static BaseGameScreen screen
Definition: EClass.cs:33
static Player player
Definition: EClass.cs:13
static CoreDebug debug
Definition: EClass.cs:49
static SoundManager Sound
Definition: EClass.cs:47
static GameSetting setting
Definition: EClass.cs:35
Definition: EInput.cs:8
static ButtonState middleMouse
Definition: EInput.cs:364
static void SetKeyMap(KeyMapManager _keys)
Definition: EInput.cs:444
static bool IsValid(string code)
Definition: ElinEncoder.cs:48
CoreConfig config
Definition: GameSetting.cs:339
RenderSetting render
Definition: GameSetting.cs:303
Zone activeZone
Definition: Game.cs:252
Definition: Lang.cs:7
static string langCode
Definition: Lang.cs:29
bool indoor
Definition: MapConfig.cs:29
MapConfig config
Definition: Map.cs:37
double timeElapsed
Definition: Player.cs:66
Stats stats
Definition: Player.cs:1083
void Apply(Camera cam)
CameraSupport camSupport
Definition: Scene.cs:41
Camera cam
Definition: Scene.cs:37
void InitFont()
Definition: SkinManager.cs:109
static SkinManager Instance
Definition: SkinManager.cs:78
SourceBacker backers
virtual bool IsRegion
Definition: Spatial.cs:515
GameDate date
Definition: World.cs:6
string GetText()
Definition: Version.cs:16
bool IsBelow(int _major, int _minor, int _batch)
Definition: Version.cs:31