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