Elin Decompiled Documentation EA 23.240 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 return coreConfig;
701 }
702
703 public static bool IsCompatible(Version v)
704 {
705 return v.minor >= 22;
706 }
707
708 public static void Init()
709 {
710 if (EClass.core.config == null)
711 {
712 Debug.Log("Creating new config.");
713 CoreConfig coreConfig = (EClass.core.config = IO.DeepCopy(EClass.setting.config));
714 coreConfig.SetLang(EClass.core.langCode);
715 if (!Application.isEditor || !EClass.debug.useNewConfig)
716 {
717 coreConfig.Save();
718 }
720 if (EClass.debug.enable)
721 {
722 coreConfig.other.showTestOptions = true;
723 coreConfig.test.showNumbers = true;
724 coreConfig.game.waiter = 0;
725 coreConfig.game.advancedMenu = true;
726 }
727 }
729 }
730
731 public void OnInit()
732 {
733 EClass.core.ui.skins.SetMainSkin(test.idSkin);
734 Apply();
735 }
736
738 {
740 }
741
742 public static void Reset()
743 {
744 string text = EClass.core.config.lang;
745 string text2 = EClass.core.config.rewardCode;
746 EClass.core.config = IO.DeepCopy(EClass.setting.config);
749 EClass.core.config.rewardCode = text2;
750 }
751
752 public static void ResetGeneral()
753 {
754 CoreConfig coreConfig = IO.DeepCopy(EClass.setting.config);
755 EClass.core.config.ui = coreConfig.ui;
756 EClass.core.config.font = coreConfig.font;
757 EClass.core.config.sound = coreConfig.sound;
760 }
761
762 public static void ResetGraphics()
763 {
764 CoreConfig coreConfig = IO.DeepCopy(EClass.setting.config);
765 EClass.core.config.graphic = coreConfig.graphic;
768 }
769
770 public static void ResetGame()
771 {
772 CoreConfig coreConfig = IO.DeepCopy(EClass.setting.config);
773 EClass.core.config.game = coreConfig.game;
774 EClass.core.config.net = coreConfig.net;
775 EClass.core.config.backer = coreConfig.backer;
777 }
778
779 public static void ResetInput()
780 {
781 CoreConfig coreConfig = IO.DeepCopy(EClass.setting.config);
782 EClass.core.config.input = coreConfig.input;
783 EClass.core.config.camera = coreConfig.camera;
785 }
786
787 public static void ResetOther()
788 {
789 CoreConfig coreConfig = IO.DeepCopy(EClass.setting.config);
790 EClass.core.config.fix = coreConfig.fix;
791 EClass.core.config.other = coreConfig.other;
793 }
794
795 public static void ResetTest()
796 {
797 CoreConfig coreConfig = IO.DeepCopy(EClass.setting.config);
798 EClass.core.config.test = coreConfig.test;
800 }
801
802 public void OnReset()
803 {
805 Apply();
806 ApplyFont();
807 ApplySkin();
808 }
809
810 public void SetLang(string id)
811 {
812 lang = id;
813 }
814
816 {
818 {
819 int num = (int)(EClass.player.stats.timeElapsed / 3600.0);
820 if (num > maxPlayedHours)
821 {
822 maxPlayedHours = num;
823 Save();
824 }
825 }
826 }
827
828 public void Save()
829 {
831 IO.SaveFile(path, this, compress: false, IO.jsWriteConfig);
832 IO.SaveFile(CorePath.VersionFile, version);
833 Debug.Log("Config saved to " + path);
834 }
835
836 public void OnChangeResolution()
837 {
838 ApplyScale();
839 }
840
841 public void ApplyFPS(bool force = false)
842 {
843 if (EClass.core.IsGameStarted || force)
844 {
845 if (graphic.vsync)
846 {
847 QualitySettings.vSyncCount = 1;
848 Application.targetFrameRate = 60;
849 }
850 else
851 {
852 QualitySettings.vSyncCount = 0;
853 Application.targetFrameRate = _framerates[graphic.fps];
854 }
855 }
856 else
857 {
858 QualitySettings.vSyncCount = 0;
859 Application.targetFrameRate = 60;
860 }
861 }
862
863 public void Apply()
864 {
865 if (!ignoreApply)
866 {
868 ApplyFPS();
869 Application.runInBackground = Application.isEditor || other.runBackground;
870 ApplyVolume();
871 ApplyGrading();
872 ApplyHUD();
874 Window.openLastTab = ui.openLastTab;
875 Layer.closeOnRightClick = ui.rightClickClose;
876 RenderObject.animeSetting = EClass.core.gameSetting.render.anime;
877 RenderObject.renderSetting = (RenderData.renderSetting = EClass.core.gameSetting.render);
878 TC._setting = EClass.core.gameSetting.render.tc;
879 UIScrollView.sensitivity = ui.ScrollSensitivity;
880 UIContextMenu.closeOnMouseLeave = ui.closePopupOnMouseLeave;
881 EClass.core.canvas.pixelPerfect = graphic.pixelperfectUI;
883 CharaRenderer._animeFrame = EClass.setting.render.anime.animeStep[test.animeFrame];
884 CharaRenderer._animeFramePCC = EClass.setting.render.anime.animeStep[test.animeFramePCC];
885 CharaRenderer.smoothmove = camera.smoothMove;
886 CharaRenderer._animeFramePC = (camera.smoothMove ? 6000 : camera.moveframe);
887 Scene.skipAnime = true;
888 QualitySettings.maxQueuedFrames = 0;
889 PopManager.outlineAlpha = ui.outlineAlpha;
890 Window.animateWindow = ui.animeWindow;
891 EInput.rightScroll = game.rightScroll;
892 EInput.buttonScroll = (game.rightScroll ? EInput.rightMouse : EInput.middleMouse);
893 EInput.antiMissClick = 0.1f * (float)other.antiMissClick;
894 camSupport.bloom.enabled = graphic.bloom;
896 camSupport.cam.allowHDR = graphic.hdr;
897 ApplyScale();
898 }
899 }
900
901 public void ApplyResolution(bool force = false)
902 {
904 {
905 force = true;
906 }
907 if (force)
908 {
909 Screen.SetResolution(graphic.w, graphic.h, graphic.fullScreen);
910 }
911 Screen.fullScreen = graphic.fullScreen;
912 }
913
914 public void ApplyScale()
915 {
916 float num = (float)ui.scale * 0.05f;
917 if (ui.autoscale)
918 {
919 float a = 0.55f;
920 float b = num + 0.05f;
921 num = 0.01f * (float)Mathf.RoundToInt(Mathf.Lerp(a, b, (float)Screen.height / 1080f) * 100f);
922 }
923 if (ui.secureMinWidth && Screen.width < EClass.core.ui.minWidth)
924 {
925 float num2 = (float)Screen.width / (float)EClass.core.ui.minWidth;
926 if (num2 < num)
927 {
928 num = num2;
929 }
930 }
931 Debug.Log("#UI ApplyScale:" + num);
932 EClass.core.canvas.GetComponent<CanvasScaler>().scaleFactor = num;
933 }
934
935 public void ApplyHUD()
936 {
937 }
938
939 public void ApplyZoom(float a)
940 {
941 camSupport.Zoom = a;
944 }
945
946 public PostEffectProfile GetPostEffectProfile(bool replaceWorld = false)
947 {
948 string text = graphic.idPostProfile.IsEmpty("None");
949 if (replaceWorld && EClass.core.IsGameStarted && EClass.core.game.activeZone.IsRegion && text != "None")
950 {
951 text = "NFAA";
952 }
953 return ResourceCache.Load<PostEffectProfile>("Scene/Profile/PostEffect/" + text);
954 }
955
956 public void ApplyGrading()
957 {
958 PostEffectProfile postEffectProfile = GetPostEffectProfile();
959 ScreenGrading grading = camSupport.grading;
960 grading.userSaturation = graphic.saturation + postEffectProfile.Saturation;
961 grading.userBrightness = graphic.brightness + postEffectProfile.Brightness;
962 grading.userContrast = graphic.contrast + postEffectProfile.Contrast;
963 camSupport.beautify.saturate = graphic.vibrance + grading.profile.Vibrance;
964 camSupport.kuwahara.enabled = graphic.kuwahara;
965 camSupport.blur.enabled = graphic.blur > 0;
966 camSupport.blur.Amount = 0.01f * (float)graphic.blur;
968 {
970 }
973 postEffectProfile.Apply(EClass.scene.cam);
974 }
975
977 {
978 ScreenGrading grading = camSupport.grading;
979 float num = 0f;
980 float num2 = 0f;
982 {
984 {
985 num -= 0.05f * ui.dynamicBrightnessMod;
986 }
987 }
988 else
989 {
990 num = -0.05f;
991 }
992 Shader.SetGlobalFloat("_UIBrightness", 0.01f * (float)ui.brightness + grading.profile.uiBrightness + num);
993 Shader.SetGlobalFloat("_UIContrast", 0.01f * (float)ui.contrast + grading.profile.uiContrast + EClass.core.ui.lightContrast + num2);
994 }
995
996 public void ApplyVolume()
997 {
998 SetVolume("VolumeMaster", sound.volumeMaster);
999 SetVolume("VolumeBGM", EClass.Sound.muteBGM ? 0f : sound.volumeBGM);
1000 SetVolume("VolumeSpatialBGM", sound.volumeBGM);
1001 SetVolume("VolumeSFX", sound.volumeSFX);
1002 SetVolume("VolumeAmbience", sound.volumeAMB);
1004 }
1005
1006 public void SetBGMInterval()
1007 {
1009 {
1010 EClass._map.plDay.interval = other.bgmInterval * 5f;
1011 }
1012 }
1013
1014 public void SetVolume(string id, float v)
1015 {
1016 SoundManager.current.mixer.SetFloat(id, Mathf.Log((v < 0.01f) ? 0.01f : v) * 20f);
1017 }
1018
1019 public void OnSetLang()
1020 {
1022 ApplyFont();
1023 }
1024
1025 public void ApplyFont()
1026 {
1028 }
1029
1030 public void ApplySkin()
1031 {
1032 Core.Instance.ui.skins.SetMainSkin(test.idSkin);
1034 }
1035}
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:770
SoundSetting sound
Definition: CoreConfig.cs:603
void ApplyVolume()
Definition: CoreConfig.cs:996
void OnInit()
Definition: CoreConfig.cs:731
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:1014
HashSet< string > helpFlags
Definition: CoreConfig.cs:627
void ApplyGrading()
Definition: CoreConfig.cs:956
string rewardCode
Definition: CoreConfig.cs:591
void Save()
Definition: CoreConfig.cs:828
string nameReport
Definition: CoreConfig.cs:587
static void ResetInput()
Definition: CoreConfig.cs:779
void Apply()
Definition: CoreConfig.cs:863
string emailReport
Definition: CoreConfig.cs:589
void ApplyResolution(bool force=false)
Definition: CoreConfig.cs:901
void ApplySkin()
Definition: CoreConfig.cs:1030
void ApplyScale()
Definition: CoreConfig.cs:914
bool ignoreLinuxModWarning
Definition: CoreConfig.cs:597
bool HasBackerRewardCode()
Definition: CoreConfig.cs:737
static void ResetTest()
Definition: CoreConfig.cs:795
void SetBGMInterval()
Definition: CoreConfig.cs:1006
static CoreConfig TryLoadConfig()
Definition: CoreConfig.cs:662
bool cloud
Definition: CoreConfig.cs:599
Version version
Definition: CoreConfig.cs:583
void RefreshUIBrightness()
Definition: CoreConfig.cs:976
void ApplyFont()
Definition: CoreConfig.cs:1025
GraphicSetting graphic
Definition: CoreConfig.cs:607
PostEffectProfile GetPostEffectProfile(bool replaceWorld=false)
Definition: CoreConfig.cs:946
string lang
Definition: CoreConfig.cs:585
void ApplyHUD()
Definition: CoreConfig.cs:935
CameraConfig camera
Definition: CoreConfig.cs:617
void SetLang(string id)
Definition: CoreConfig.cs:810
int[] _framerates
Definition: CoreConfig.cs:634
FontSetting font
Definition: CoreConfig.cs:605
void OnChangeResolution()
Definition: CoreConfig.cs:836
static string path
Definition: CoreConfig.cs:636
void ApplyFPS(bool force=false)
Definition: CoreConfig.cs:841
void TryUpdatePlayedHour()
Definition: CoreConfig.cs:815
bool ignoreParallelsWarning
Definition: CoreConfig.cs:595
void ApplyZoom(float a)
Definition: CoreConfig.cs:939
OtherSetting other
Definition: CoreConfig.cs:619
static bool IsCompatible(Version v)
Definition: CoreConfig.cs:703
static void ResetGraphics()
Definition: CoreConfig.cs:762
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:1019
static bool Exist()
Definition: CoreConfig.cs:653
static void ResetOther()
Definition: CoreConfig.cs:787
static void Reset()
Definition: CoreConfig.cs:742
void OnReset()
Definition: CoreConfig.cs:802
CameraSupport camSupport
Definition: CoreConfig.cs:651
InputSetting input
Definition: CoreConfig.cs:615
static void Init()
Definition: CoreConfig.cs:708
static void ResetGeneral()
Definition: CoreConfig.cs:752
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: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: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:251
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:1016
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