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