Elin Modding Docs Doc
Loading...
Searching...
No Matches
Core.cs
1using System;
2using System.Collections;
3using System.Collections.Generic;
4using System.IO;
5using AeLa.EasyFeedback.FormFields;
6using DG.Tweening;
7using DG.Tweening.Core;
8using DG.Tweening.Plugins.Options;
9using ReflexCLI;
10using Steamworks;
11using UnityEngine;
12
13// Token: 0x02000002 RID: 2
14public class Core : BaseCore
15{
16 // Token: 0x17000001 RID: 1
17 // (get) Token: 0x06000001 RID: 1 RVA: 0x00002050 File Offset: 0x00000250
18 public bool IsGameStarted
19 {
20 get
21 {
22 return this.game != null && this.game.activeZone != null;
23 }
24 }
25
26 // Token: 0x17000002 RID: 2
27 // (get) Token: 0x06000002 RID: 2 RVA: 0x0000206A File Offset: 0x0000026A
28 public override float uiScale
29 {
30 get
31 {
32 return this.ui.canvasScaler.scaleFactor;
33 }
34 }
35
36 // Token: 0x06000003 RID: 3 RVA: 0x0000207C File Offset: 0x0000027C
37 protected override void Awake()
38 {
39 base.Awake();
40 Application.targetFrameRate = 60;
41 IO.CreateDirectory(CorePath.Temp);
42 Core.SetCurrent(null);
43 Lang.langCode = "";
44 if (Application.isEditor && this.debug.langCode != Lang.LangCode.None)
45 {
46 this.forceLangCode = this.debug.langCode.ToString();
47 }
48 foreach (string text in Application.isEditor ? this.debug.command.Split(',', StringSplitOptions.None) : Environment.GetCommandLineArgs())
49 {
50 text = text.Replace("-", "").ToUpper();
51 Debug.Log("Commandline args:" + text);
52 if (text.StartsWith("LANG_"))
53 {
54 this.forceLangCode = text.Replace("LANG_", "");
55 }
56 else if (text == "DEV")
57 {
58 this.releaseMode = ReleaseMode.Debug;
59 }
60 }
61 NewsList.dict = null;
62 InvOwner.Trader = (InvOwner.Main = null);
63 SpriteSheet.dict.Clear();
64 SpriteSheet.loadedPath.Clear();
65 SpriteReplacerAnimation.dict.Clear();
66 LayerDrama.haltPlaylist = false;
67 LayerDrama.keepBGM = false;
68 BaseModManager.isInitialized = false;
69 Net.isUploading = false;
70 MapPiece.initialized = false;
71 ActPlan.warning = false;
72 Game.isPaused = false;
73 if (Application.isEditor && BaseCore.resetRuntime)
74 {
75 this.ResetRuntime();
76 }
77 Window.dictData.Clear();
78 LayerInventory.listInv.Clear();
79 this.debug = Resources.Load<CoreDebug>("_Debug " + this.releaseMode.ToString());
80 this.debug.enable = (this.releaseMode > ReleaseMode.Public);
81 if (this.useUImat)
82 {
83 Canvas.GetDefaultCanvasMaterial().CopyPropertiesFromMaterial(this.matUI);
84 Canvas.GetDefaultCanvasMaterial().shader = this.matUI.shader;
85 }
86 if (!this.ui)
87 {
88 this.ui = Util.Instantiate<UI>("UI/UI", null);
89 }
90 if (!this.scene)
91 {
92 this.scene = Util.Instantiate<Scene>("Scene/Scene", null);
93 }
94 this.scene.screenNoMap.Activate();
95 this.ui.ShowCover(0f, 1f, null, default(Color));
96 this.canvas = this.ui.canvas;
97 this.ui.OnCoreStart();
98 BaseCore.BlockInput = (() => this.ui.IsDragging);
99 CommandRegistry.assemblies.Add(typeof(Core).Assembly);
100 SoundData.EditorPlaySpatial = delegate(SoundData a)
101 {
102 this.game.player.chara.PlaySound(a.name, 1f, true);
103 };
104 SoundManager.funcCanPlayBGM = (() => !LayerDrama.haltPlaylist && !LayerDrama.keepBGM);
105 FileDragAndDrop.onDrop = new Action<List<string>>(this.textures.OnDropFile);
106 MOD.langs.Clear();
107 MOD.OnAddPcc = new Action<DirectoryInfo>(this.pccs.Add);
108 MOD.listTalk = new TalkDataList();
109 MOD.tones = new ToneDataList();
110 MOD.listMaps.Clear();
111 MOD.listPartialMaps.Clear();
112 Portrait.modPortraitBGFs = new ModItemList<Sprite>(0);
113 Portrait.modPortraitBGs = new ModItemList<Sprite>(0);
114 Portrait.modPortraits = new ModItemList<Sprite>(0);
115 Portrait.modOverlays = new ModItemList<Sprite>(0);
116 Portrait.modFull = new ModItemList<Sprite>(0);
117 Portrait.dictList = new Dictionary<string, List<ModItem<Sprite>>>();
118 TileType.Init();
119 this.screen.tileMap.rendererObjDummy.Init();
120 Debug.Log("Core Awake");
121 Debug.Log(this.steam.steamworks.settings.applicationId);
122 }
123
124 // Token: 0x06000004 RID: 4 RVA: 0x00002428 File Offset: 0x00000628
125 private void Start()
126 {
127 TextField.onAddEmail = delegate()
128 {
129 string text = "";
130 foreach (BaseModPackage baseModPackage in this.mods.packages)
131 {
132 if (!baseModPackage.builtin)
133 {
134 text = string.Concat(new string[]
135 {
136 text,
137 baseModPackage.id,
138 "/",
139 baseModPackage.activated.ToString(),
140 Environment.NewLine
141 });
142 }
143 }
144 if (!text.IsEmpty())
145 {
146 return Environment.NewLine + Environment.NewLine + text;
147 }
148 return "";
149 };
150 this.config = CoreConfig.TryLoadConfig();
151 string str = "Loading Config:";
152 string path = CoreConfig.path;
153 string str2 = " - ";
154 CoreConfig coreConfig = this.config;
155 Debug.Log(str + path + str2 + ((coreConfig != null) ? coreConfig.ToString() : null));
156 try
157 {
158 this.steam.Init();
159 }
160 catch
161 {
162 }
163 this.StartCase();
164 }
165
166 // Token: 0x06000005 RID: 5 RVA: 0x000024A4 File Offset: 0x000006A4
167 public void StartCase()
168 {
169 Debug.Log("StartCase:" + ModManager.IsInitialized.ToString());
170 if (!ModManager.IsInitialized)
171 {
172 this.mods.Init(CorePath.rootMod, "_Elona");
173 base.StartCoroutine(this.mods.RefreshMods(delegate
174 {
175 MOD.actorSources.Initialize();
176 this.StartCase();
177 }, !BaseCore.IsOffline && !this.debug.skipModSync && (this.config == null || this.config.other.syncMods)));
178 return;
179 }
180 Debug.Log("Plugins:" + ModManager.ListPluginObject.Count.ToString());
181 foreach (object obj in ModManager.ListPluginObject)
182 {
183 Component component = obj as Component;
184 if (component)
185 {
186 GameObject gameObject = component.gameObject;
187 gameObject.SendMessage("OnStartCore");
188 foreach (Component component2 in gameObject.GetComponentsInChildren<Component>())
189 {
190 Debug.Log(component2.GetType().Assembly.GetName().Name);
191 ClassCache.assemblies.Add(component2.GetType().Assembly.GetName().Name);
192 }
193 break;
194 }
195 Debug.Log("no go");
196 }
197 this.sources.Init();
198 if (!this.forceLangCode.IsEmpty())
199 {
200 this.langCode = this.forceLangCode;
201 }
202 else if (this.config == null)
203 {
204 Debug.Log("Config doesn't exist.");
205 if (this.debug.enable || !SteamAPI.IsSteamRunning())
206 {
207 BookList.dict = null;
208 this.ui.ShowLang();
209 return;
210 }
211 string currentGameLanguage = SteamApps.GetCurrentGameLanguage();
212 if (!(currentGameLanguage == "chinese"))
213 {
214 if (!(currentGameLanguage == "japanese"))
215 {
216 BookList.dict = null;
217 this.ui.ShowLang();
218 return;
219 }
220 this.langCode = "JP";
221 }
222 else
223 {
224 this.langCode = "CN";
225 }
226 }
227 if (this.debug.showSceneSelector || (Input.GetKey(KeyCode.LeftShift) && this.debug.enable))
228 {
229 this.ui.ShowSceneSelector();
230 return;
231 }
232 this.Init();
233 }
234
235 // Token: 0x06000006 RID: 6 RVA: 0x00002710 File Offset: 0x00000910
236 public void Update()
237 {
238 SoundManager.requestCount = 0;
239 InputModuleEX.UpdateEventData();
240 EInput.uiMousePosition = Input.mousePosition / this.ui.canvasScaler.scaleFactor;
241 if (!this.initialized)
242 {
243 return;
244 }
245 this.ui.OnUpdate();
246 this.debug.UpdateAlways();
247 PoolManager.ignorePool = this.debug.ignorePool;
248 if (this.screen.tileMap && !this.screen.tileMap.passBlock.mat.mainTexture)
249 {
250 this.textures.RefreshTextures();
251 }
252 if (this.useUImat)
253 {
254 Canvas.GetDefaultCanvasMaterial().CopyPropertiesFromMaterial(this.matUI);
255 }
256 Core.avgDelta += (Time.smoothDeltaTime - Core.delta) * 0.1f;
257 Core.delta = Time.smoothDeltaTime;
258 EInput.delta = (ButtonState.delta = Core.delta);
259 bool? flag = this.lastFullScreen;
260 bool fullScreen = Screen.fullScreen;
261 if (!(flag.GetValueOrDefault() == fullScreen & flag != null))
262 {
263 int width = Display.main.systemWidth;
264 int height = Display.main.systemHeight;
265 if (this.config != null && this.config.graphic.fixedResolution)
266 {
267 width = this.config.graphic.w;
268 height = this.config.graphic.h;
269 }
270 if (Screen.fullScreen)
271 {
272 Screen.SetResolution(width, height, true);
273 }
274 this.lastFullScreen = new bool?(Screen.fullScreen);
275 this.nextResolutionUpdate = 0f;
276 }
277 if (this.nextResolutionUpdate <= 0f)
278 {
279 if (this.config != null && this.config.graphic.fixedResolution)
280 {
281 int w = this.config.graphic.w;
282 int h = this.config.graphic.h;
283 if (Screen.width != w || Screen.height != h)
284 {
285 Screen.SetResolution(w, h, Screen.fullScreen);
286 }
287 }
288 if (Screen.width != this.lastScreenWidth || Screen.height != this.lastScreenHeight)
289 {
290 this.OnChangeResolution();
291 }
292 this.nextResolutionUpdate = 0.1f;
293 }
294 else
295 {
296 this.nextResolutionUpdate -= Core.delta;
297 }
298 if (this.IsGameStarted)
299 {
300 this.game.OnUpdate();
301 Core.gameDeltaNoPause = Core.delta * this.scene.actionMode.gameSpeed;
302 Core.gameDelta = (FlockChild.delta = (this.ui.IsPauseGame ? 0f : Core.gameDeltaNoPause));
303 }
304 else
305 {
306 Core.gameDelta = 0f;
307 }
308 this.scene.OnUpdate();
309 if (this.actionsNextFrame.Count > 0)
310 {
311 for (int i = this.actionsNextFrame.Count - 1; i >= 0; i--)
312 {
313 this.actionsNextFrame[i]();
314 this.actionsNextFrame.RemoveAt(i);
315 }
316 }
317 }
318
319 // Token: 0x06000007 RID: 7 RVA: 0x00002A00 File Offset: 0x00000C00
320 private void LateUpdate()
321 {
322 if (!this.initialized)
323 {
324 return;
325 }
326 if (this.actionsLateUpdate.Count > 0)
327 {
328 for (int i = this.actionsLateUpdate.Count - 1; i >= 0; i--)
329 {
330 this.actionsLateUpdate[i]();
331 this.actionsLateUpdate.RemoveAt(i);
332 }
333 }
334 this.scene.OnLateUpdate();
335 }
336
337 // Token: 0x06000008 RID: 8 RVA: 0x00002A64 File Offset: 0x00000C64
338 public void OnApplicationFocus(bool focus)
339 {
340 if (focus && Core.Instance)
341 {
342 this.actionsNextFrame.Add(delegate
343 {
344 this.textures.RefreshTextures();
345 this.actionsNextFrame.Add(delegate
346 {
347 if (this.IsGameStarted)
348 {
349 if (Application.isEditor && WidgetMinimap.Instance)
350 {
351 WidgetMinimap.Instance.Reload();
352 }
353 foreach (CardRow cardRow in this.sources.cards.rows)
354 {
355 if (cardRow.replacer.hasChacked && cardRow.replacer.data != null)
356 {
357 cardRow.replacer.data.GetSprite(false);
358 }
359 }
360 }
361 });
362 });
363 if (this.IsGameStarted && this.debug.enable)
364 {
365 foreach (PCC.Part part in this.pccs.allParts.Values)
366 {
367 foreach (ModItem<Texture2D> modItem in part.modTextures.Values)
368 {
369 modItem.ClearCache();
370 }
371 }
372 CharaActorPCC[] array = UnityEngine.Object.FindObjectsOfType<CharaActorPCC>();
373 for (int i = 0; i < array.Length; i++)
374 {
375 array[i].provider.Rebuild(PCCState.Normal);
376 }
377 }
378 }
379 EInput.Consume(false, 1);
380 EInput.dragHack = 0f;
381 }
382
383 // Token: 0x06000009 RID: 9 RVA: 0x00002B78 File Offset: 0x00000D78
384 public void OnApplicationQuit()
385 {
386 try
387 {
388 foreach (Widget widget in this.ui.widgets.GetComponentsInChildren<Widget>(true))
389 {
390 if (widget.gameObject != null)
391 {
392 UnityEngine.Object.Destroy(widget.gameObject);
393 }
394 }
395 IO.PrintLog();
396 }
397 catch (Exception ex)
398 {
399 string str = "Exception:";
400 Exception ex2 = ex;
401 Debug.Log(str + ((ex2 != null) ? ex2.ToString() : null));
402 }
403 try
404 {
405 if (SteamAPI.IsSteamRunning())
406 {
407 SteamAPI.Shutdown();
408 }
409 }
410 catch (Exception ex3)
411 {
412 string str2 = "Exception:";
413 Exception ex4 = ex3;
414 Debug.Log(str2 + ((ex4 != null) ? ex4.ToString() : null));
415 }
416 try
417 {
418 IO.DeleteDirectory(CorePath.Temp);
419 GameIO.DeleteEmptyGameFolders();
420 }
421 catch (Exception ex5)
422 {
423 string str3 = "Exception:";
424 Exception ex6 = ex5;
425 Debug.Log(str3 + ((ex6 != null) ? ex6.ToString() : null));
426 }
427 }
428
429 // Token: 0x0600000A RID: 10 RVA: 0x00002C74 File Offset: 0x00000E74
430 public void ResetRuntime()
431 {
432 BaseCore.resetRuntime = false;
433 BiomeProfile.forceInitialize = true;
434 WidgetHotbar.registering = false;
435 WidgetHotbar.registeringItem = null;
436 WordGen.initialized = false;
437 RecipeManager.rebuild = true;
438 BookList.dict = null;
439 SpawnList.allList.Clear();
440 }
441
442 // Token: 0x0600000B RID: 11 RVA: 0x00002CAC File Offset: 0x00000EAC
443 public void Init()
444 {
445 Debug.Log("Initializing:" + this.langCode + "/" + this.forceLangCode);
446 base.StartCoroutine("OnEndOfFrame");
447 base.InvokeRepeating("Update100ms", 0.1f, 0.1f);
448 UnityEngine.Object.DestroyImmediate(this.ui.layoutLang.gameObject);
449 CoreConfig.Init();
450 this.SetLang(this.config.lang, false);
451 this.refs.Init();
452 this.debug.Init();
453 SpriteSheet.Add("Media/Graphics/Icon/icons_48");
454 Cal.Init();
455 this.Colors.Init();
456 this.gameSetting.Init();
457 this.mods.InitLang();
458 if (!Lang.isBuiltin)
459 {
460 this.sources.ImportSourceTexts();
461 }
462 PCCManager.current.Init();
463 SpriteVariationManager.current.Init();
464 this.scene.InitPass();
465 this.textures.Init();
466 this.textures.RefreshTextures();
467 SoundManager.current.Reset();
468 if (this.debug.validatePref)
469 {
470 SourcePrefInspector.Instance.ValidatePrefs();
471 }
472 if (this.debug.startScene == CoreDebug.StartScene.Title)
473 {
474 this.scene.Init(Scene.Mode.Title);
475 }
476 else
477 {
478 this.debug.QuickStart();
479 }
480 this.ui.HideCover(2f, null);
481 this.initialized = true;
482 }
483
484 // Token: 0x0600000C RID: 12 RVA: 0x00002E12 File Offset: 0x00001012
485 public void Quit()
486 {
487 Application.Quit();
488 Debug.Log("Quit");
489 }
490
491 // Token: 0x0600000D RID: 13 RVA: 0x00002E23 File Offset: 0x00001023
492 public override void ConsumeInput()
493 {
494 EInput.Consume(false, 1);
495 }
496
497 // Token: 0x0600000E RID: 14 RVA: 0x00002E2C File Offset: 0x0000102C
498 public static Core SetCurrent(Core _current = null)
499 {
500 if (Core.Instance)
501 {
502 return Core.Instance;
503 }
504 Core.Instance = (_current ?? UnityEngine.Object.FindObjectOfType<Core>());
505 BaseCore.Instance = Core.Instance;
506 if (Core.Instance)
507 {
508 Core.Instance.SetReferences();
509 }
510 return Core.Instance;
511 }
512
513 // Token: 0x0600000F RID: 15 RVA: 0x00002E7F File Offset: 0x0000107F
514 public static Core GetCurrent()
515 {
516 return Core.Instance ?? Core.SetCurrent(null);
517 }
518
519 // Token: 0x06000010 RID: 16 RVA: 0x00002E90 File Offset: 0x00001090
520 public void SetReferences()
521 {
522 CorePath.Init();
523 SourceData.dataPath = CorePath.packageCore + "/Data/Source/";
524 EMono.core = this;
525 EClass.core = this;
526 Core.Instance = this;
527 SkinManager._Instance = this.skins;
528 PathManager.Instance = this.pathManager;
529 EffectManager.Instance = this.effects;
530 this.sources.InitLang();
531 }
532
533 // Token: 0x06000011 RID: 17 RVA: 0x00002EF4 File Offset: 0x000010F4
534 public void SetReleaseMode(ReleaseMode m)
535 {
536 if (this.releaseMode == m)
537 {
538 return;
539 }
540 this.releaseMode = m;
541 this.debug = Resources.Load<CoreDebug>("_Debug " + this.releaseMode.ToString());
542 }
543
544 // Token: 0x06000012 RID: 18 RVA: 0x00002F2D File Offset: 0x0000112D
545 private IEnumerator OnEndOfFrame()
546 {
547 for (;;)
548 {
549 yield return new WaitForEndOfFrame();
550 if (this.screen.guide)
551 {
552 this.screen.guide.OnEndOfFrame();
553 }
554 }
555 yield break;
556 }
557
558 // Token: 0x06000013 RID: 19 RVA: 0x00002F3C File Offset: 0x0000113C
559 private void Update100ms()
560 {
561 if (!this.IsGameStarted)
562 {
563 return;
564 }
565 this.game.updater.Update100ms();
566 }
567
568 // Token: 0x06000014 RID: 20 RVA: 0x00002F58 File Offset: 0x00001158
569 public void OnChangeResolution()
570 {
571 if (this.config != null)
572 {
573 this.config.OnChangeResolution();
574 }
575 this.screen.RefreshScreenSize();
576 this.lastScreenWidth = Screen.width;
577 this.lastScreenHeight = Screen.height;
578 IChangeResolution[] componentsInChildren = this.ui.GetComponentsInChildren<IChangeResolution>();
579 for (int i = 0; i < componentsInChildren.Length; i++)
580 {
581 componentsInChildren[i].OnChangeResolution();
582 }
583 this.scene.camSupport.OnChangeResolution();
584 }
585
586 // Token: 0x06000015 RID: 21 RVA: 0x00002FCB File Offset: 0x000011CB
587 public void Halt()
588 {
589 }
590
591 // Token: 0x06000016 RID: 22 RVA: 0x00002FCD File Offset: 0x000011CD
592 public override void FreezeScreen(float duration)
593 {
594 this.ui.FreezeScreen(duration);
595 }
596
597 // Token: 0x06000017 RID: 23 RVA: 0x00002FDB File Offset: 0x000011DB
598 public override void UnfreezeScreen()
599 {
600 this.ui.UnfreezeScreen();
601 }
602
603 // Token: 0x06000018 RID: 24 RVA: 0x00002FE8 File Offset: 0x000011E8
604 public override void RebuildBGMList()
605 {
606 this.refs.RebuildBGMList();
607 }
608
609 // Token: 0x06000019 RID: 25 RVA: 0x00002FF8 File Offset: 0x000011F8
610 public override void StopEventSystem(Component c, Action action, float duration = 0.12f)
611 {
612 this.eventSystem.enabled = false;
613 c.transform.DOScale(new Vector3(1f, 0f, 1f), duration).OnKill(delegate
614 {
615 this.eventSystem.enabled = true;
616 }).OnComplete(delegate
617 {
618 action();
619 }).SetEase(Ease.Linear);
620 }
621
622 // Token: 0x0600001A RID: 26 RVA: 0x0000306E File Offset: 0x0000126E
623 public override void StopEventSystem(float duration = 0.2f)
624 {
625 this.eventSystem.enabled = false;
626 TweenUtil.Tween(duration, null, delegate()
627 {
628 this.eventSystem.enabled = true;
629 });
630 }
631
632 // Token: 0x0600001B RID: 27 RVA: 0x00003090 File Offset: 0x00001290
633 public void SetLang(string langCode, bool force = false)
634 {
635 if (Lang.langCode == langCode && this.sources && this.sources.langGeneral)
636 {
637 return;
638 }
639 Lang.Init(langCode);
640 AliasGen.list = null;
641 NameGen.list = null;
642 WordGen.initialized = false;
643 this.sources.OnChangeLang();
644 if (this.game != null && !this.IsGameStarted)
645 {
646 this.game.Kill();
647 }
648 this.config.OnSetLang();
649 }
650
651 // Token: 0x0600001C RID: 28 RVA: 0x00003114 File Offset: 0x00001314
652 public static int[] ParseElements(string str)
653 {
654 if (string.IsNullOrEmpty(str))
655 {
656 return new int[0];
657 }
658 string[] array = str.Replace("\n", "").Split(',', StringSplitOptions.None);
659 int[] array2 = new int[array.Length * 2];
660 for (int i = 0; i < array.Length; i++)
661 {
662 string[] array3 = array[i].Split('/', StringSplitOptions.None);
663 array2[i * 2] = Core.GetElement(array3[0]);
664 array2[i * 2 + 1] = ((array3.Length == 1) ? 1 : int.Parse(array3[1]));
665 }
666 return array2;
667 }
668
669 // Token: 0x0600001D RID: 29 RVA: 0x00003194 File Offset: 0x00001394
670 public static int GetElement(string id)
671 {
672 Core.SetCurrent(null);
673 if (Core.sourceElement == null)
674 {
675 Core.sourceElement = UnityEngine.Object.FindObjectOfType<SourceManager>().GetComponent<SourceManager>().elements;
676 }
677 if (!Core.sourceElement.initialized)
678 {
679 Core.sourceElement.Init();
680 }
682 if (!Core.sourceElement.alias.TryGetValue(id ?? "_void", out row))
683 {
684 Debug.LogError("exception:" + id);
685 row = Core.sourceElement.rows[0];
686 }
687 return row.id;
688 }
689
690 // Token: 0x0600001E RID: 30 RVA: 0x00003224 File Offset: 0x00001424
691 public void ApplySkins()
692 {
693 IUISkin[] componentsInChildren = this.ui.GetComponentsInChildren<IUISkin>(true);
694 for (int i = 0; i < componentsInChildren.Length; i++)
695 {
696 componentsInChildren[i].ApplySkin();
697 }
698 }
699
700 // Token: 0x04000001 RID: 1
701 public new static Core Instance;
702
703 // Token: 0x04000002 RID: 2
704 public static float delta;
705
706 // Token: 0x04000003 RID: 3
707 public static float avgDelta;
708
709 // Token: 0x04000004 RID: 4
710 public static float gameDelta;
711
712 // Token: 0x04000005 RID: 5
713 public static float gameDeltaNoPause;
714
715 // Token: 0x04000006 RID: 6
716 public static bool spiked;
717
718 // Token: 0x04000007 RID: 7
719 private static SourceElement sourceElement;
720
721 // Token: 0x04000008 RID: 8
722 public CoreDebug debug;
723
724 // Token: 0x04000009 RID: 9
725 public SourceManager sources;
726
727 // Token: 0x0400000A RID: 10
728 public PathManager pathManager;
729
730 // Token: 0x0400000B RID: 11
731 public EffectManager effects;
732
733 // Token: 0x0400000C RID: 12
734 public ModManager mods = new ModManager();
735
736 // Token: 0x0400000D RID: 13
737 public PCCManager pccs;
738
739 // Token: 0x0400000E RID: 14
740 public SkinManager skins;
741
742 // Token: 0x0400000F RID: 15
743 public TextureManager textures = new TextureManager();
744
745 // Token: 0x04000010 RID: 16
746 public GameSetting gameSetting;
747
748 // Token: 0x04000011 RID: 17
749 public GameData gamedata;
750
751 // Token: 0x04000012 RID: 18
752 public CoreRef refs;
753
754 // Token: 0x04000013 RID: 19
755 public ColorProfile Colors;
756
757 // Token: 0x04000014 RID: 20
758 public Material matUI;
759
760 // Token: 0x04000015 RID: 21
761 public Steam steam;
762
763 // Token: 0x04000016 RID: 22
764 public bool useUImat;
765
766 // Token: 0x04000017 RID: 23
767 public bool trial;
768
769 // Token: 0x04000018 RID: 24
770 public UI ui;
771
772 // Token: 0x04000019 RID: 25
773 public Scene scene;
774
775 // Token: 0x0400001A RID: 26
776 public BaseGameScreen screen;
777
778 // Token: 0x0400001B RID: 27
779 [NonSerialized]
780 public CoreConfig config;
781
782 // Token: 0x0400001C RID: 28
783 public Game game;
784
785 // Token: 0x0400001D RID: 29
786 [NonSerialized]
787 public bool initialized;
788
789 // Token: 0x0400001E RID: 30
790 private bool? lastFullScreen;
791
792 // Token: 0x0400001F RID: 31
793 private float nextResolutionUpdate;
794
795 // Token: 0x04000020 RID: 32
796 private float skinTimer;
797}
Definition Game.cs:10
Definition Scene.cs:10
Definition Steam.cs:11