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