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