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