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