Elin Decompiled Documentation EA 23.309 Nightly Patch 1
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 bool syncMods;
515
516 public bool disableMods;
517
518 public string idMainWidgetTheme;
519
520 public string idSubWidgetTheme;
521 }
522
523 [Serializable]
524 public class Test
525 {
526 public int idSkin;
527
528 public int animeFramePCC;
529
530 public int animeFrame;
531
532 public int extraToneMTP;
533
535
537
538 public bool showNumbers;
539
540 public bool stackNumbers;
541
542 public bool aaPortrait;
543
544 public bool extraTurnaround;
545
546 public bool bloom2;
547
548 public bool extraRace;
549
550 public bool allRace;
551
552 public bool unsealWidgets;
553
554 public bool extraMoveCancel;
555
556 public bool showNetError;
557
558 public bool alwaysRun;
559
560 public bool allowBlockOnItem;
561
563
564 public bool alwaysFixCamera;
565
567
568 public bool showRefIcon;
569
570 public bool showTrait;
571
572 public bool toolNoPick;
573
574 public bool compressSave;
575
576 public bool cacheEffect;
577
578 public float brightnessNight;
579 }
580
581 [Serializable]
582 public class Fix
583 {
585
587 }
588
590
591 public string lang = "JP";
592
593 public string nameReport;
594
595 public string emailReport;
596
597 public string rewardCode;
598
599 public int maxPlayedHours;
600
602
604
605 public bool cloud;
606
607 public new UISetting ui;
608
610
612
614
615 public new GameConfig game;
616
618
620
622
624
626
627 public Fix fix;
628
629 public Test test;
630
631 public List<FontSource> customFonts;
632
633 public HashSet<string> helpFlags = new HashSet<string>();
634
635 public int[] colors = new int[10];
636
637 [NonSerialized]
638 public bool ignoreApply;
639
640 private int[] _framerates = new int[4] { 120, 60, 30, 15 };
641
642 public static string path => CorePath.ConfigFile;
643
644 public static int ZoomStep
645 {
646 get
647 {
648 if (!EClass.debug.enable)
649 {
650 return 5;
651 }
652 return 5;
653 }
654 }
655
656 [JsonIgnore]
658
659 public static bool Exist()
660 {
661 if (!File.Exists(path) || (EClass.debug.useNewConfig && Application.isEditor))
662 {
663 return false;
664 }
665 return true;
666 }
667
668 public static CoreConfig TryLoadConfig()
669 {
670 if (!File.Exists(path) || (EClass.debug.useNewConfig && Application.isEditor))
671 {
672 return null;
673 }
674 if (!File.Exists(CorePath.VersionFile))
675 {
676 return null;
677 }
678 CoreConfig coreConfig = IO.LoadFile<CoreConfig>(path);
679 if (!IsCompatible(coreConfig.version))
680 {
681 Debug.Log("Config version is different. deleting:" + coreConfig.version.ToString() + "/" + EClass.core.version.GetText());
682 return null;
683 }
684 if (coreConfig.game.backupInterval == 0)
685 {
686 coreConfig.game.numBackup = 5;
687 coreConfig.game.backupInterval = 8;
688 coreConfig.game.autoBackup = true;
689 }
690 if (coreConfig.version.IsBelow(0, 23, 138))
691 {
692 coreConfig.test.extraToneMTP = 1;
693 }
694 if (coreConfig.version.IsBelow(0, 23, 63))
695 {
696 coreConfig.graphic.floorEx = true;
697 }
698 if (coreConfig.version.IsBelow(0, 22, 17))
699 {
700 coreConfig.game.tutorial = true;
701 }
702 if (coreConfig.version.IsBelow(0, 22, 24))
703 {
704 coreConfig.ui.balloonBG = true;
705 }
706 if (coreConfig.version.IsBelow(0, 23, 282))
707 {
708 coreConfig.input.keys.chat.key = KeyCode.Return;
709 }
710 return coreConfig;
711 }
712
713 public static bool IsCompatible(Version v)
714 {
715 return v.minor >= 22;
716 }
717
718 public static void Init()
719 {
720 if (EClass.core.config == null)
721 {
722 Debug.Log("Creating new config.");
723 CoreConfig coreConfig = (EClass.core.config = IO.DeepCopy(EClass.setting.config));
724 coreConfig.SetLang(EClass.core.langCode);
725 if (!Application.isEditor || !EClass.debug.useNewConfig)
726 {
727 coreConfig.Save();
728 }
730 if (EClass.debug.enable)
731 {
732 coreConfig.other.showTestOptions = true;
733 coreConfig.test.showNumbers = true;
734 coreConfig.game.waiter = 0;
735 coreConfig.game.advancedMenu = true;
736 }
737 }
739 }
740
741 public void OnInit()
742 {
743 EClass.core.ui.skins.SetMainSkin(test.idSkin);
744 Apply();
745 }
746
748 {
750 }
751
752 public static void Reset()
753 {
754 string text = EClass.core.config.lang;
755 string text2 = EClass.core.config.rewardCode;
756 EClass.core.config = IO.DeepCopy(EClass.setting.config);
759 EClass.core.config.rewardCode = text2;
760 }
761
762 public static void ResetGeneral()
763 {
764 CoreConfig coreConfig = IO.DeepCopy(EClass.setting.config);
765 EClass.core.config.ui = coreConfig.ui;
766 EClass.core.config.font = coreConfig.font;
767 EClass.core.config.sound = coreConfig.sound;
770 }
771
772 public static void ResetGraphics()
773 {
774 CoreConfig coreConfig = IO.DeepCopy(EClass.setting.config);
775 EClass.core.config.graphic = coreConfig.graphic;
778 }
779
780 public static void ResetGame()
781 {
782 CoreConfig coreConfig = IO.DeepCopy(EClass.setting.config);
783 EClass.core.config.game = coreConfig.game;
784 EClass.core.config.net = coreConfig.net;
785 EClass.core.config.backer = coreConfig.backer;
787 }
788
789 public static void ResetInput()
790 {
791 CoreConfig coreConfig = IO.DeepCopy(EClass.setting.config);
792 EClass.core.config.input = coreConfig.input;
793 EClass.core.config.camera = coreConfig.camera;
795 }
796
797 public static void ResetOther()
798 {
799 CoreConfig coreConfig = IO.DeepCopy(EClass.setting.config);
800 EClass.core.config.fix = coreConfig.fix;
801 EClass.core.config.other = coreConfig.other;
803 }
804
805 public static void ResetTest()
806 {
807 CoreConfig coreConfig = IO.DeepCopy(EClass.setting.config);
808 EClass.core.config.test = coreConfig.test;
810 }
811
812 public void OnReset()
813 {
815 Apply();
816 ApplyFont();
817 ApplySkin();
818 }
819
820 public void SetLang(string id)
821 {
822 lang = id;
823 }
824
826 {
828 {
829 int num = (int)(EClass.player.stats.timeElapsed / 3600.0);
830 if (num > maxPlayedHours)
831 {
832 maxPlayedHours = num;
833 Save();
834 }
835 }
836 }
837
838 public void Save()
839 {
841 IO.SaveFile(path, this, compress: false, IO.jsWriteConfig);
842 IO.SaveFile(CorePath.VersionFile, version);
843 Debug.Log("Config saved to " + path);
844 }
845
846 public void OnChangeResolution()
847 {
848 ApplyScale();
849 }
850
851 public void ApplyFPS(bool force = false)
852 {
853 if (EClass.core.IsGameStarted || force)
854 {
855 if (graphic.vsync)
856 {
857 QualitySettings.vSyncCount = 1;
858 Application.targetFrameRate = 60;
859 }
860 else
861 {
862 QualitySettings.vSyncCount = 0;
863 Application.targetFrameRate = _framerates[graphic.fps];
864 }
865 }
866 else
867 {
868 QualitySettings.vSyncCount = 0;
869 Application.targetFrameRate = 60;
870 }
871 }
872
873 public void Apply()
874 {
875 if (!ignoreApply)
876 {
878 ApplyFPS();
879 Application.runInBackground = Application.isEditor || other.runBackground;
880 ApplyVolume();
881 ApplyGrading();
882 ApplyHUD();
884 Window.openLastTab = ui.openLastTab;
885 Layer.closeOnRightClick = ui.rightClickClose;
886 RenderObject.animeSetting = EClass.core.gameSetting.render.anime;
887 RenderObject.renderSetting = (RenderData.renderSetting = EClass.core.gameSetting.render);
888 TC._setting = EClass.core.gameSetting.render.tc;
889 UIScrollView.sensitivity = ui.ScrollSensitivity;
890 UIContextMenu.closeOnMouseLeave = ui.closePopupOnMouseLeave;
891 EClass.core.canvas.pixelPerfect = graphic.pixelperfectUI;
893 CharaRenderer._animeFrame = EClass.setting.render.anime.animeStep[test.animeFrame];
894 CharaRenderer._animeFramePCC = EClass.setting.render.anime.animeStep[test.animeFramePCC];
895 CharaRenderer.smoothmove = camera.smoothMove;
896 CharaRenderer._animeFramePC = (camera.smoothMove ? 6000 : camera.moveframe);
897 Scene.skipAnime = true;
898 QualitySettings.maxQueuedFrames = 0;
899 PopManager.outlineAlpha = ui.outlineAlpha;
900 Window.animateWindow = ui.animeWindow;
901 EInput.rightScroll = game.rightScroll;
902 EInput.buttonScroll = (game.rightScroll ? EInput.rightMouse : EInput.middleMouse);
903 EInput.antiMissClick = 0.1f * (float)other.antiMissClick;
904 camSupport.bloom.enabled = graphic.bloom;
906 camSupport.cam.allowHDR = graphic.hdr;
907 ApplyScale();
909 EClass.core.effects.effects.usePool = test.cacheEffect;
910 }
911 }
912
913 public void ApplyResolution(bool force = false)
914 {
916 {
917 force = true;
918 }
919 if (force)
920 {
921 Screen.SetResolution(graphic.w, graphic.h, graphic.fullScreen);
922 }
923 Screen.fullScreen = graphic.fullScreen;
924 }
925
926 public void ApplyScale()
927 {
928 float num = (float)ui.scale * 0.05f;
929 if (ui.autoscale)
930 {
931 float a = 0.55f;
932 float b = num + 0.05f;
933 num = 0.01f * (float)Mathf.RoundToInt(Mathf.Lerp(a, b, (float)Screen.height / 1080f) * 100f);
934 }
935 if (ui.secureMinWidth && Screen.width < EClass.core.ui.minWidth)
936 {
937 float num2 = (float)Screen.width / (float)EClass.core.ui.minWidth;
938 if (num2 < num)
939 {
940 num = num2;
941 }
942 }
943 Debug.Log("#UI ApplyScale:" + num);
944 EClass.core.canvas.GetComponent<CanvasScaler>().scaleFactor = num;
945 }
946
947 public void ApplyHUD()
948 {
949 }
950
951 public void ApplyZoom(float a)
952 {
953 camSupport.Zoom = a;
956 }
957
958 public PostEffectProfile GetPostEffectProfile(bool replaceWorld = false)
959 {
960 string text = graphic.idPostProfile.IsEmpty("None");
961 if (replaceWorld && EClass.core.IsGameStarted && EClass.core.game.activeZone.IsRegion && text != "None")
962 {
963 text = "NFAA";
964 }
965 return ResourceCache.Load<PostEffectProfile>("Scene/Profile/PostEffect/" + text);
966 }
967
968 public void ApplyGrading()
969 {
970 PostEffectProfile postEffectProfile = GetPostEffectProfile();
971 ScreenGrading grading = camSupport.grading;
972 grading.userSaturation = graphic.saturation + postEffectProfile.Saturation;
973 grading.userBrightness = graphic.brightness + postEffectProfile.Brightness;
974 grading.userContrast = graphic.contrast + postEffectProfile.Contrast;
975 camSupport.beautify.saturate = graphic.vibrance + grading.profile.Vibrance;
976 camSupport.kuwahara.enabled = graphic.kuwahara;
977 camSupport.blur.enabled = graphic.blur > 0;
978 camSupport.blur.Amount = 0.01f * (float)graphic.blur;
980 {
982 }
985 postEffectProfile.Apply(EClass.scene.cam);
986 }
987
989 {
990 ScreenGrading grading = camSupport.grading;
991 float num = 0f;
992 float num2 = 0f;
994 {
996 {
997 num -= 0.05f * ui.dynamicBrightnessMod;
998 }
999 }
1000 else
1001 {
1002 num = -0.05f;
1003 }
1004 Shader.SetGlobalFloat("_UIBrightness", 0.01f * (float)ui.brightness + grading.profile.uiBrightness + num);
1005 Shader.SetGlobalFloat("_UIContrast", 0.01f * (float)ui.contrast + grading.profile.uiContrast + EClass.core.ui.lightContrast + num2);
1006 }
1007
1008 public void ApplyVolume()
1009 {
1010 SetVolume("VolumeMaster", sound.volumeMaster);
1011 SetVolume("VolumeBGM", EClass.Sound.muteBGM ? 0f : sound.volumeBGM);
1012 SetVolume("VolumeSpatialBGM", sound.volumeBGM);
1013 SetVolume("VolumeSFX", sound.volumeSFX);
1014 SetVolume("VolumeAmbience", sound.volumeAMB);
1016 }
1017
1018 public void SetBGMInterval()
1019 {
1021 {
1022 EClass._map.plDay.interval = other.bgmInterval * 5f;
1023 }
1024 }
1025
1026 public void SetVolume(string id, float v)
1027 {
1028 SoundManager.current.mixer.SetFloat(id, Mathf.Log((v < 0.01f) ? 0.01f : v) * 20f);
1029 }
1030
1031 public void OnSetLang()
1032 {
1034 ApplyFont();
1035 }
1036
1037 public void ApplyFont()
1038 {
1040 }
1041
1042 public void ApplySkin()
1043 {
1044 Core.Instance.ui.skins.SetMainSkin(test.idSkin);
1046 }
1047}
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:584
ScreenSnapType snapType
Definition: CoreConfig.cs:586
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:554
bool allowBlockOnItem
Definition: CoreConfig.cs:560
bool alwaysFixCamera
Definition: CoreConfig.cs:564
bool ignoreBackerDestoryFlag
Definition: CoreConfig.cs:566
bool extraTurnaround
Definition: CoreConfig.cs:544
float brightnessNight
Definition: CoreConfig.cs:578
bool dontCancelIfZeroDamage
Definition: CoreConfig.cs:562
bool ignoreApply
Definition: CoreConfig.cs:638
int maxPlayedHours
Definition: CoreConfig.cs:599
static void ResetGame()
Definition: CoreConfig.cs:780
SoundSetting sound
Definition: CoreConfig.cs:609
void ApplyVolume()
Definition: CoreConfig.cs:1008
void OnInit()
Definition: CoreConfig.cs:741
List< FontSource > customFonts
Definition: CoreConfig.cs:631
new GameConfig game
Definition: CoreConfig.cs:615
static int ZoomStep
Definition: CoreConfig.cs:645
void SetVolume(string id, float v)
Definition: CoreConfig.cs:1026
HashSet< string > helpFlags
Definition: CoreConfig.cs:633
void ApplyGrading()
Definition: CoreConfig.cs:968
string rewardCode
Definition: CoreConfig.cs:597
void Save()
Definition: CoreConfig.cs:838
string nameReport
Definition: CoreConfig.cs:593
static void ResetInput()
Definition: CoreConfig.cs:789
void Apply()
Definition: CoreConfig.cs:873
string emailReport
Definition: CoreConfig.cs:595
void ApplyResolution(bool force=false)
Definition: CoreConfig.cs:913
void ApplySkin()
Definition: CoreConfig.cs:1042
void ApplyScale()
Definition: CoreConfig.cs:926
bool ignoreLinuxModWarning
Definition: CoreConfig.cs:603
bool HasBackerRewardCode()
Definition: CoreConfig.cs:747
static void ResetTest()
Definition: CoreConfig.cs:805
void SetBGMInterval()
Definition: CoreConfig.cs:1018
static CoreConfig TryLoadConfig()
Definition: CoreConfig.cs:668
bool cloud
Definition: CoreConfig.cs:605
Version version
Definition: CoreConfig.cs:589
void RefreshUIBrightness()
Definition: CoreConfig.cs:988
void ApplyFont()
Definition: CoreConfig.cs:1037
GraphicSetting graphic
Definition: CoreConfig.cs:613
PostEffectProfile GetPostEffectProfile(bool replaceWorld=false)
Definition: CoreConfig.cs:958
string lang
Definition: CoreConfig.cs:591
void ApplyHUD()
Definition: CoreConfig.cs:947
CameraConfig camera
Definition: CoreConfig.cs:623
void SetLang(string id)
Definition: CoreConfig.cs:820
int[] _framerates
Definition: CoreConfig.cs:640
FontSetting font
Definition: CoreConfig.cs:611
void OnChangeResolution()
Definition: CoreConfig.cs:846
static string path
Definition: CoreConfig.cs:642
void ApplyFPS(bool force=false)
Definition: CoreConfig.cs:851
void TryUpdatePlayedHour()
Definition: CoreConfig.cs:825
bool ignoreParallelsWarning
Definition: CoreConfig.cs:601
void ApplyZoom(float a)
Definition: CoreConfig.cs:951
OtherSetting other
Definition: CoreConfig.cs:625
static bool IsCompatible(Version v)
Definition: CoreConfig.cs:713
static void ResetGraphics()
Definition: CoreConfig.cs:772
new UISetting ui
Definition: CoreConfig.cs:607
NetSetting net
Definition: CoreConfig.cs:617
BackerContentConfig backer
Definition: CoreConfig.cs:619
int[] colors
Definition: CoreConfig.cs:635
void OnSetLang()
Definition: CoreConfig.cs:1031
static bool Exist()
Definition: CoreConfig.cs:659
static void ResetOther()
Definition: CoreConfig.cs:797
static void Reset()
Definition: CoreConfig.cs:752
void OnReset()
Definition: CoreConfig.cs:812
CameraSupport camSupport
Definition: CoreConfig.cs:657
InputSetting input
Definition: CoreConfig.cs:621
static void Init()
Definition: CoreConfig.cs:718
static void ResetGeneral()
Definition: CoreConfig.cs:762
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:84
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:6
static string langCode
Definition: Lang.cs:28
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