Elin Decompiled Documentation EA 23.356.1 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
394 public int maxInvColumn = 40;
395
397 }
398
399 [Serializable]
400 public class FontSetting
401 {
403
405
407
409
411
413 }
414
415 [Serializable]
416 public class CustomFont
417 {
418 public string id;
419
420 public string name;
421 }
422
423 [Serializable]
424 public class NetSetting
425 {
426 public bool enable;
427
428 public bool sendEvent;
429
430 public bool receiveRealtime;
431
432 public bool password;
433
434 public bool noAdult;
435 }
436
437 [Serializable]
439 {
440 public int filter;
441
442 public bool FilterAll => filter == 2;
443
444 public bool FilterLang => filter == 1;
445
446 public bool FilterNone => filter == 0;
447
448 public bool Show(int id)
449 {
450 return Show(EClass.sources.backers.map.TryGetValue(id));
451 }
452
453 public bool Show(SourceBacker.Row row)
454 {
455 if (row == null)
456 {
457 return false;
458 }
459 if (FilterNone)
460 {
461 return true;
462 }
463 if (FilterAll)
464 {
465 return false;
466 }
467 bool flag = row.lang == "JP" || row.lang == "CN";
468 string langCode = Lang.langCode;
469 if (langCode == "JP" || langCode == "CN")
470 {
471 return flag;
472 }
473 return !flag;
474 }
475
476 public bool Show(string s)
477 {
478 if (FilterNone)
479 {
480 return true;
481 }
482 if (FilterAll)
483 {
484 return false;
485 }
486 bool flag = IsJapanese(s);
487 string langCode = Lang.langCode;
488 if (langCode == "JP" || langCode == "CN")
489 {
490 return flag;
491 }
492 return !flag;
493 }
494
495 private bool IsJapanese(string text)
496 {
497 return Regex.IsMatch(text, "[\\p{IsHiragana}\\p{IsKatakana}\\p{IsCJKUnifiedIdeographs}]+");
498 }
499 }
500
501 [Serializable]
502 public class OtherSetting
503 {
504 public int antiMissClick = 2;
505
506 public float bgmInterval = 1f;
507
508 public bool noCensor;
509
510 public bool runBackground;
511
512 public bool muteBackground;
513
514 public bool showTestOptions;
515
516 public string idMainWidgetTheme;
517
518 public string idSubWidgetTheme;
519
520 public bool syncMods;
521
522 public bool disableMods;
523
524 public bool exceptionPopup2 = true;
525 }
526
527 [Serializable]
528 public class Test
529 {
530 public int idSkin;
531
532 public int animeFramePCC;
533
534 public int animeFrame;
535
536 public int extraToneMTP;
537
539
541
542 public int maxSimHours;
543
544 public int maxSleepSimHours = 168;
545
546 public int maxSimBases = 3;
547
548 public bool showNumbers;
549
550 public bool stackNumbers;
551
552 public bool aaPortraitFilter;
553
554 public bool extraTurnaround;
555
556 public bool bloom2;
557
558 public bool extraRace;
559
560 public bool allRace;
561
562 public bool unsealWidgets;
563
564 public bool extraMoveCancel;
565
566 public bool showNetError;
567
568 public bool alwaysRun;
569
570 public bool allowBlockOnItem;
571
573
574 public bool disableShake2;
575
576 public bool alwaysFixCamera;
577
579
580 public bool showRefIcon;
581
582 public bool showTrait;
583
584 public bool toolNoPick;
585
586 public bool compressSave;
587
588 public bool cacheEffect;
589
590 public float brightnessNight;
591
592 public bool aaPortrait => true;
593 }
594
595 [Serializable]
596 public class Fix
597 {
599
601 }
602
604
605 public string lang = "JP";
606
607 public string nameReport;
608
609 public string emailReport;
610
611 public string rewardCode;
612
613 public int maxPlayedHours;
614
616
618
619 public bool cloud;
620
621 public new UISetting ui;
622
624
626
628
629 public new GameConfig game;
630
632
634
636
638
640
641 public Fix fix;
642
643 public Test test;
644
645 public List<FontSource> customFonts;
646
647 public HashSet<string> helpFlags = new HashSet<string>();
648
649 public int[] colors = new int[10];
650
651 [NonSerialized]
652 public bool ignoreApply;
653
654 private int[] _framerates = new int[4] { 120, 60, 30, 15 };
655
656 public static string path => CorePath.ConfigFile;
657
658 public static int ZoomStep
659 {
660 get
661 {
662 if (!EClass.debug.enable)
663 {
664 return 5;
665 }
666 return 5;
667 }
668 }
669
670 [JsonIgnore]
672
673 public static bool Exist()
674 {
675 if (!File.Exists(path) || (EClass.debug.useNewConfig && Application.isEditor))
676 {
677 return false;
678 }
679 return true;
680 }
681
682 public static CoreConfig TryLoadConfig()
683 {
684 if (!File.Exists(path) || (EClass.debug.useNewConfig && Application.isEditor))
685 {
686 return null;
687 }
688 if (!File.Exists(CorePath.VersionFile))
689 {
690 return null;
691 }
692 CoreConfig coreConfig = IO.LoadFile<CoreConfig>(path);
693 if (!IsCompatible(coreConfig.version))
694 {
695 Debug.Log("Config version is different. deleting:" + coreConfig.version.ToString() + "/" + EClass.core.version.GetText());
696 return null;
697 }
698 if (coreConfig.game.backupInterval == 0)
699 {
700 coreConfig.game.numBackup = 5;
701 coreConfig.game.backupInterval = 8;
702 coreConfig.game.autoBackup = true;
703 }
704 if (coreConfig.version.IsBelow(0, 23, 138))
705 {
706 coreConfig.test.extraToneMTP = 1;
707 }
708 if (coreConfig.version.IsBelow(0, 23, 63))
709 {
710 coreConfig.graphic.floorEx = true;
711 }
712 if (coreConfig.version.IsBelow(0, 22, 17))
713 {
714 coreConfig.game.tutorial = true;
715 }
716 if (coreConfig.version.IsBelow(0, 22, 24))
717 {
718 coreConfig.ui.balloonBG = true;
719 }
720 if (coreConfig.version.IsBelow(0, 23, 282))
721 {
722 coreConfig.input.keys.chat.key = KeyCode.Return;
723 }
724 return coreConfig;
725 }
726
727 public static bool IsCompatible(Version v)
728 {
729 return v.minor >= 22;
730 }
731
732 public static void Init()
733 {
734 if (EClass.core.config == null)
735 {
736 Debug.Log("Creating new config.");
737 CoreConfig coreConfig = (EClass.core.config = IO.DeepCopy(EClass.setting.config));
738 coreConfig.SetLang(EClass.core.langCode);
739 if (!Application.isEditor || !EClass.debug.useNewConfig)
740 {
741 coreConfig.Save();
742 }
744 if (EClass.debug.enable)
745 {
746 coreConfig.other.showTestOptions = true;
747 coreConfig.test.showNumbers = true;
748 coreConfig.game.waiter = 0;
749 coreConfig.game.advancedMenu = true;
750 }
751 }
753 }
754
755 public void OnInit()
756 {
757 EClass.core.ui.skins.SetMainSkin(test.idSkin);
758 Apply();
759 }
760
762 {
764 }
765
766 public static void Reset()
767 {
768 string text = EClass.core.config.lang;
769 string text2 = EClass.core.config.rewardCode;
770 EClass.core.config = IO.DeepCopy(EClass.setting.config);
773 EClass.core.config.rewardCode = text2;
774 }
775
776 public static void ResetGeneral()
777 {
778 CoreConfig coreConfig = IO.DeepCopy(EClass.setting.config);
779 EClass.core.config.ui = coreConfig.ui;
780 EClass.core.config.font = coreConfig.font;
781 EClass.core.config.sound = coreConfig.sound;
784 }
785
786 public static void ResetGraphics()
787 {
788 CoreConfig coreConfig = IO.DeepCopy(EClass.setting.config);
789 EClass.core.config.graphic = coreConfig.graphic;
792 }
793
794 public static void ResetGame()
795 {
796 CoreConfig coreConfig = IO.DeepCopy(EClass.setting.config);
797 EClass.core.config.game = coreConfig.game;
798 EClass.core.config.net = coreConfig.net;
799 EClass.core.config.backer = coreConfig.backer;
801 }
802
803 public static void ResetInput()
804 {
805 CoreConfig coreConfig = IO.DeepCopy(EClass.setting.config);
806 EClass.core.config.input = coreConfig.input;
807 EClass.core.config.camera = coreConfig.camera;
809 }
810
811 public static void ResetOther()
812 {
813 CoreConfig coreConfig = IO.DeepCopy(EClass.setting.config);
814 EClass.core.config.fix = coreConfig.fix;
815 EClass.core.config.other = coreConfig.other;
817 }
818
819 public static void ResetTest()
820 {
821 CoreConfig coreConfig = IO.DeepCopy(EClass.setting.config);
822 EClass.core.config.test = coreConfig.test;
824 }
825
826 public void OnReset()
827 {
829 Apply();
830 ApplyFont();
831 ApplySkin();
832 }
833
834 public void SetLang(string id)
835 {
836 lang = id;
837 }
838
840 {
842 {
843 int num = (int)(EClass.player.stats.timeElapsed / 3600.0);
844 if (num > maxPlayedHours)
845 {
846 maxPlayedHours = num;
847 Save();
848 }
849 }
850 }
851
852 public void Save()
853 {
855 IO.SaveFile(path, this, compress: false, IO.jsWriteConfig);
856 IO.SaveFile(CorePath.VersionFile, version);
857 Debug.Log("Config saved to " + path);
858 }
859
860 public void OnChangeResolution()
861 {
862 ApplyScale();
863 }
864
865 public void ApplyFPS(bool force = false)
866 {
867 if (EClass.core.IsGameStarted || force)
868 {
869 if (graphic.vsync)
870 {
871 QualitySettings.vSyncCount = 1;
872 Application.targetFrameRate = 60;
873 }
874 else
875 {
876 QualitySettings.vSyncCount = 0;
877 Application.targetFrameRate = _framerates[graphic.fps];
878 }
879 }
880 else
881 {
882 QualitySettings.vSyncCount = 0;
883 Application.targetFrameRate = 60;
884 }
885 }
886
887 public void Apply()
888 {
889 if (!ignoreApply)
890 {
892 ApplyFPS();
893 Application.runInBackground = Application.isEditor || other.runBackground;
894 ApplyVolume();
895 ApplyGrading();
896 ApplyHUD();
898 Window.openLastTab = ui.openLastTab;
899 Layer.closeOnRightClick = ui.rightClickClose;
900 RenderObject.animeSetting = EClass.core.gameSetting.render.anime;
901 RenderObject.renderSetting = (RenderData.renderSetting = EClass.core.gameSetting.render);
902 TC._setting = EClass.core.gameSetting.render.tc;
903 UIScrollView.sensitivity = ui.ScrollSensitivity;
904 UIContextMenu.closeOnMouseLeave = ui.closePopupOnMouseLeave;
905 EClass.core.canvas.pixelPerfect = graphic.pixelperfectUI;
907 CharaRenderer._animeFrame = EClass.setting.render.anime.animeStep[test.animeFrame];
908 CharaRenderer._animeFramePCC = EClass.setting.render.anime.animeStep[test.animeFramePCC];
909 CharaRenderer.smoothmove = camera.smoothMove;
910 CharaRenderer._animeFramePC = (camera.smoothMove ? 6000 : camera.moveframe);
911 Scene.skipAnime = true;
912 QualitySettings.maxQueuedFrames = 0;
913 PopManager.outlineAlpha = ui.outlineAlpha;
914 Window.animateWindow = ui.animeWindow;
915 EInput.rightScroll = game.rightScroll;
916 EInput.buttonScroll = (game.rightScroll ? EInput.rightMouse : EInput.middleMouse);
917 EInput.antiMissClick = 0.1f * (float)other.antiMissClick;
918 camSupport.bloom.enabled = graphic.bloom;
920 camSupport.cam.allowHDR = graphic.hdr;
921 ApplyScale();
924 EClass.core.effects.effects.usePool = test.cacheEffect;
925 }
926 }
927
928 public void ApplyPortraitAA()
929 {
930 Portrait.loadOption.mipmap = (test.aaPortraitFilter ? new Vector2Int?(Portrait.standardSize) : ((Vector2Int?)null));
931 Portrait.loadOptionFull.mipmap = (test.aaPortraitFilter ? new Vector2Int?(Portrait.standardFullSize) : ((Vector2Int?)null));
932 }
933
934 public void ApplyResolution(bool force = false)
935 {
937 {
938 force = true;
939 }
940 if (force)
941 {
942 Screen.SetResolution(graphic.w, graphic.h, graphic.fullScreen);
943 }
944 Screen.fullScreen = graphic.fullScreen;
945 }
946
947 public void ApplyScale()
948 {
949 float num = (float)ui.scale * 0.05f;
950 if (ui.autoscale)
951 {
952 float a = 0.55f;
953 float b = num + 0.05f;
954 num = 0.01f * (float)Mathf.RoundToInt(Mathf.Lerp(a, b, (float)Screen.height / 1080f) * 100f);
955 }
956 if (ui.secureMinWidth && Screen.width < EClass.core.ui.minWidth)
957 {
958 float num2 = (float)Screen.width / (float)EClass.core.ui.minWidth;
959 if (num2 < num)
960 {
961 num = num2;
962 }
963 }
964 Debug.Log("#UI ApplyScale:" + num);
965 EClass.core.canvas.GetComponent<CanvasScaler>().scaleFactor = num;
966 }
967
968 public void ApplyHUD()
969 {
970 }
971
972 public void ApplyZoom(float a)
973 {
974 camSupport.Zoom = a;
977 }
978
979 public PostEffectProfile GetPostEffectProfile(bool replaceWorld = false)
980 {
981 string text = graphic.idPostProfile.IsEmpty("None");
982 if (replaceWorld && EClass.core.IsGameStarted && EClass.core.game.activeZone.IsRegion && text != "None")
983 {
984 text = "NFAA";
985 }
986 return ResourceCache.Load<PostEffectProfile>("Scene/Profile/PostEffect/" + text);
987 }
988
989 public void ApplyGrading()
990 {
991 PostEffectProfile postEffectProfile = GetPostEffectProfile();
992 ScreenGrading grading = camSupport.grading;
993 grading.userSaturation = graphic.saturation + postEffectProfile.Saturation;
994 grading.userBrightness = graphic.brightness + postEffectProfile.Brightness;
995 grading.userContrast = graphic.contrast + postEffectProfile.Contrast;
996 camSupport.beautify.saturate = graphic.vibrance + grading.profile.Vibrance;
997 camSupport.kuwahara.enabled = graphic.kuwahara;
998 camSupport.blur.enabled = graphic.blur > 0;
999 camSupport.blur.Amount = 0.01f * (float)graphic.blur;
1001 {
1003 }
1006 postEffectProfile.Apply(EClass.scene.cam);
1007 }
1008
1010 {
1011 ScreenGrading grading = camSupport.grading;
1012 float num = 0f;
1013 float num2 = 0f;
1015 {
1017 {
1018 num -= 0.05f * ui.dynamicBrightnessMod;
1019 }
1020 }
1021 else
1022 {
1023 num = -0.05f;
1024 }
1025 Shader.SetGlobalFloat("_UIBrightness", 0.01f * (float)ui.brightness + grading.profile.uiBrightness + num);
1026 Shader.SetGlobalFloat("_UIContrast", 0.01f * (float)ui.contrast + grading.profile.uiContrast + EClass.core.ui.lightContrast + num2);
1027 }
1028
1029 public void ApplyVolume()
1030 {
1031 SetVolume("VolumeMaster", sound.volumeMaster);
1032 SetVolume("VolumeBGM", EClass.Sound.muteBGM ? 0f : sound.volumeBGM);
1033 SetVolume("VolumeSpatialBGM", sound.volumeBGM);
1034 SetVolume("VolumeSFX", sound.volumeSFX);
1035 SetVolume("VolumeAmbience", sound.volumeAMB);
1037 }
1038
1039 public void SetBGMInterval()
1040 {
1042 {
1043 EClass._map.plDay.interval = other.bgmInterval * 5f;
1044 }
1045 }
1046
1047 public void SetVolume(string id, float v)
1048 {
1049 SoundManager.current.mixer.SetFloat(id, Mathf.Log((v < 0.01f) ? 0.01f : v) * 20f);
1050 }
1051
1052 public void OnSetLang()
1053 {
1055 ApplyFont();
1056 }
1057
1058 public void ApplyFont()
1059 {
1061 }
1062
1063 public void ApplySkin()
1064 {
1065 Core.Instance.ui.skins.SetMainSkin(test.idSkin);
1067 }
1068}
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:495
bool Show(SourceBacker.Row row)
Definition: CoreConfig.cs:453
CameraSupport.Divider divider
Definition: CoreConfig.cs:598
ScreenSnapType snapType
Definition: CoreConfig.cs:600
SkinManager.FontSaveData fontDialog
Definition: CoreConfig.cs:408
SkinManager.FontSaveData fontNews
Definition: CoreConfig.cs:412
SkinManager.FontSaveData fontChatbox
Definition: CoreConfig.cs:404
SkinManager.FontSaveData fontWidget
Definition: CoreConfig.cs:410
SkinManager.FontSaveData fontUI
Definition: CoreConfig.cs:402
SkinManager.FontSaveData fontBalloon
Definition: CoreConfig.cs:406
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:564
bool allowBlockOnItem
Definition: CoreConfig.cs:570
bool alwaysFixCamera
Definition: CoreConfig.cs:576
bool ignoreBackerDestoryFlag
Definition: CoreConfig.cs:578
bool extraTurnaround
Definition: CoreConfig.cs:554
float brightnessNight
Definition: CoreConfig.cs:590
bool aaPortraitFilter
Definition: CoreConfig.cs:552
bool dontCancelIfZeroDamage
Definition: CoreConfig.cs:572
bool ignoreApply
Definition: CoreConfig.cs:652
int maxPlayedHours
Definition: CoreConfig.cs:613
static void ResetGame()
Definition: CoreConfig.cs:794
SoundSetting sound
Definition: CoreConfig.cs:623
void ApplyVolume()
Definition: CoreConfig.cs:1029
void OnInit()
Definition: CoreConfig.cs:755
List< FontSource > customFonts
Definition: CoreConfig.cs:645
new GameConfig game
Definition: CoreConfig.cs:629
static int ZoomStep
Definition: CoreConfig.cs:659
void SetVolume(string id, float v)
Definition: CoreConfig.cs:1047
HashSet< string > helpFlags
Definition: CoreConfig.cs:647
void ApplyGrading()
Definition: CoreConfig.cs:989
string rewardCode
Definition: CoreConfig.cs:611
void Save()
Definition: CoreConfig.cs:852
string nameReport
Definition: CoreConfig.cs:607
static void ResetInput()
Definition: CoreConfig.cs:803
void Apply()
Definition: CoreConfig.cs:887
string emailReport
Definition: CoreConfig.cs:609
void ApplyResolution(bool force=false)
Definition: CoreConfig.cs:934
void ApplySkin()
Definition: CoreConfig.cs:1063
void ApplyScale()
Definition: CoreConfig.cs:947
bool ignoreLinuxModWarning
Definition: CoreConfig.cs:617
bool HasBackerRewardCode()
Definition: CoreConfig.cs:761
static void ResetTest()
Definition: CoreConfig.cs:819
void SetBGMInterval()
Definition: CoreConfig.cs:1039
static CoreConfig TryLoadConfig()
Definition: CoreConfig.cs:682
bool cloud
Definition: CoreConfig.cs:619
Version version
Definition: CoreConfig.cs:603
void RefreshUIBrightness()
Definition: CoreConfig.cs:1009
void ApplyFont()
Definition: CoreConfig.cs:1058
GraphicSetting graphic
Definition: CoreConfig.cs:627
PostEffectProfile GetPostEffectProfile(bool replaceWorld=false)
Definition: CoreConfig.cs:979
string lang
Definition: CoreConfig.cs:605
void ApplyHUD()
Definition: CoreConfig.cs:968
CameraConfig camera
Definition: CoreConfig.cs:637
void SetLang(string id)
Definition: CoreConfig.cs:834
int[] _framerates
Definition: CoreConfig.cs:654
FontSetting font
Definition: CoreConfig.cs:625
void OnChangeResolution()
Definition: CoreConfig.cs:860
static string path
Definition: CoreConfig.cs:656
void ApplyFPS(bool force=false)
Definition: CoreConfig.cs:865
void TryUpdatePlayedHour()
Definition: CoreConfig.cs:839
void ApplyPortraitAA()
Definition: CoreConfig.cs:928
bool ignoreParallelsWarning
Definition: CoreConfig.cs:615
void ApplyZoom(float a)
Definition: CoreConfig.cs:972
OtherSetting other
Definition: CoreConfig.cs:639
static bool IsCompatible(Version v)
Definition: CoreConfig.cs:727
static void ResetGraphics()
Definition: CoreConfig.cs:786
new UISetting ui
Definition: CoreConfig.cs:621
NetSetting net
Definition: CoreConfig.cs:631
BackerContentConfig backer
Definition: CoreConfig.cs:633
int[] colors
Definition: CoreConfig.cs:649
void OnSetLang()
Definition: CoreConfig.cs:1052
static bool Exist()
Definition: CoreConfig.cs:673
static void ResetOther()
Definition: CoreConfig.cs:811
static void Reset()
Definition: CoreConfig.cs:766
void OnReset()
Definition: CoreConfig.cs:826
CameraSupport camSupport
Definition: CoreConfig.cs:671
InputSetting input
Definition: CoreConfig.cs:635
static void Init()
Definition: CoreConfig.cs:732
static void ResetGeneral()
Definition: CoreConfig.cs:776
bool useNewConfig
Definition: CoreDebug.cs:140
bool enable
Definition: CoreDebug.cs:302
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:782
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:384
RenderSetting render
Definition: GameSetting.cs:348
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:40
double timeElapsed
Definition: Player.cs:66
Stats stats
Definition: Player.cs:1086
static readonly Vector2Int standardFullSize
Definition: Portrait.cs:10
static readonly Vector2Int standardSize
Definition: Portrait.cs:8
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:34
bool IsBelow(int _major, int _minor, int _batch)
Definition: Version.cs:49