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